import{r as i,h as e,H as n,g as t,F as a}from"./p-567d4700.js";const s=":host{display:block}.container{display:flex;padding:var(--klevu-spacing-03) var(--klevu-spacing-05)}a{display:flex;text-decoration:none;padding:var(--klevu-spacing-03) var(--klevu-spacing-05)}.condensed{padding:0 var(--klevu-spacing-04)}.noXPadding{padding-left:0;padding-right:0}.text{display:flex;flex-direction:column}.icon{font-size:20px;margin-right:var(--klevu-spacing-03)}.image{max-width:48px;margin-right:var(--klevu-spacing-03);border-radius:var(--klevu-border-radius-xxl)}";var r=undefined&&undefined.__classPrivateFieldGet||function(i,e,n,t){if(n==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?i!==e||!t:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?t:n==="a"?t.call(i):t?t.value:e.get(i)};var o,d,l;const c=class{constructor(e){i(this,e);o.add(this);this.icon=undefined;this.image=undefined;this.url=undefined;this.condensed=false;this.noXPadding=false;this.secondarySlotChildCount=0}componentDidLoad(){r(this,o,"m",d).call(this)}handleSlotChange(){r(this,o,"m",d).call(this)}render(){return e(n,null,Boolean(this.url)?e("a",{class:{condensed:this.condensed,noXPadding:this.noXPadding},href:this.url},r(this,o,"m",l).call(this)):e("div",{class:{container:true,condensed:this.condensed,noXPadding:this.noXPadding}},r(this,o,"m",l).call(this)))}get el(){return t(this)}};o=new WeakSet,d=function i(){var e,n;const t=(e=this.el.shadowRoot)===null||e===void 0?void 0:e.querySelector("slot[name='secondary']");this.secondarySlotChildCount=(n=t===null||t===void 0?void 0:t.assignedElements().length)!==null&&n!==void 0?n:0},l=function i(){return e(a,null,this.icon&&e("klevu-icon",{class:"icon",name:this.icon}),this.image&&e("img",{class:"image",src:this.image}),e("div",{class:"text"},e("klevu-typography",{variant:"body-s"},e("slot",{name:"primary"})),this.secondarySlotChildCount>0&&e("klevu-typography",{variant:"body-s",style:{"--klevu-typography-color":"var(--klevu-color-neutral-7)"}},e("slot",{name:"secondary"}))),e("slot",{name:"button"}))};c.style=s;export{c as klevu_list};
//# sourceMappingURL=p-1eb47d5c.entry.js.map