import{r as e,h as i,H as t,g as n,F as a}from"./p-23359d3b.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(e,i,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof i==="function"?e!==i||!n:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(e):n?n.value:i.get(e)};var o,d,l;const c=class{constructor(i){e(this,i);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 i(t,null,Boolean(this.url)?i("a",{class:{condensed:this.condensed,noXPadding:this.noXPadding},href:this.url},r(this,o,"m",l).call(this)):i("div",{class:{container:true,condensed:this.condensed,noXPadding:this.noXPadding}},r(this,o,"m",l).call(this)))}get el(){return n(this)}};o=new WeakSet,d=function e(){var i;const t=(i=this.el.shadowRoot)===null||i===void 0?void 0:i.querySelector("slot[name='secondary']");this.secondarySlotChildCount=t.assignedElements().length},l=function e(){return i(a,null,this.icon&&i("klevu-icon",{class:"icon",name:this.icon}),this.image&&i("img",{class:"image",src:this.image}),i("div",{class:"text"},i("klevu-typography",{variant:"body-s"},i("slot",{name:"primary"})),this.secondarySlotChildCount>0&&i("klevu-typography",{variant:"body-s",style:{"--klevu-typography-color":"var(--klevu-color-neutral-7)"}},i("slot",{name:"secondary"}))),i("slot",{name:"button"}))};c.style=s;export{c as klevu_list};
//# sourceMappingURL=p-e788d6d2.entry.js.map