text: /**
   * @license
   * Copyright (c) 2014, 2021, Oracle and/or its affiliates.
   * Licensed under The Universal Permissive License (UPL), Version 1.0
   * as shown at https://oss.oracle.com/licenses/upl/
   * @ignore
   */
  define(["exports","ojs/ojvcomponent-element"],function(t,e){"use strict";var i=function(t,e,i,o){var a,n=arguments.length,l=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(l=(n<3?a(l):n>3?a(e,i,l):a(e,i))||l);return n>3&&l&&Object.defineProperty(e,i,l),l};t.ListItemLayout=class extends e.ElementVComponent{constructor(){super(...arguments),this._hasContent=t=>Array.isArray(t)&&t.length>0||t}_getWrappedSlotContent(t,i){return this._hasContent(t)?i&&i.length>0?e.h("div",{class:i},t):e.h("div",null,t):null}_getWrappedSlotContentWithClickThroughDisabled(t,i){return this._hasContent(t)?i&&i.length>0?e.h("div",{"data-oj-clickthrough":"disabled",class:i},t):e.h("div",{"data-oj-clickthrough":"disabled"},t):null}render(){const t=this.props,i=this._hasContent(t.metadata)||this._hasContent(t.action)||this._hasContent(t.trailing);let o="";this._hasContent(t.secondary)&&this._hasContent(t.tertiary)&&(o="oj-listitemlayout-tertiary");let a="oj-listitemlayout-leading";this._hasContent(t.selector)&&this._hasContent(t.leading)&&(a+=" oj-listitemlayout-start-padding");let n="oj-listitemlayout-quaternary",l="oj-listitemlayout-textslots";return(this._hasContent(t.selector)||this._hasContent(t.leading))&&(l+=" oj-listitemlayout-start-padding",n+=" oj-listitemlayout-start-padding"),e.h("oj-list-item-layout",null,e.h("div",{class:"oj-listitemlayout-grid"},this._getWrappedSlotContent(t.selector,"oj-listitemlayout-selector"),this._getWrappedSlotContent(t.leading,a),e.h("div",{class:l},this._getWrappedSlotContent(t.overline),this._getWrappedSlotContent(t.children),this._getWrappedSlotContent(t.secondary),this._getWrappedSlotContent(t.tertiary,o)),i?e.h("div",{class:"oj-listitemlayout-extra"},this._getWrappedSlotContent(t.metadata,"oj-listitemlayout-metadata oj-listitemlayout-start-padding"),this._getWrappedSlotContent(t.trailing,"oj-listitemlayout-trailing oj-listitemlayout-image oj-listitemlayout-start-padding"),this._getWrappedSlotContentWithClickThroughDisabled(t.action,"oj-listitemlayout-action oj-listitemlayout-start-padding")):null,this._getWrappedSlotContent(t.quaternary,n),this._getWrappedSlotContentWithClickThroughDisabled(t.navigation,"oj-listitemlayout-navigation")))}},t.ListItemLayout.metadata={extension:{_DEFAULTS:class{}},slots:{"":{},overline:{},selector:{},leading:{},secondary:{},tertiary:{},metadata:{},trailing:{},action:{},quaternary:{},navigation:{}}},t.ListItemLayout=i([e.customElement("oj-list-item-layout")],t.ListItemLayout),Object.defineProperty(t,"__esModule",{value:!0})});
  //# sourceMappingURL=ojlistitemlayout.js.map