import{r as t,h as i,H as e,g as a,F as s}from"./p-326e6826.js";const n=":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(t,i,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof i==="function"?t!==i||!a:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(t):a?a.value:i.get(t)};var o,d;const l=class{constructor(i){t(this,i);o.add(this);this.icon=undefined;this.image=undefined;this.url=undefined;this.condensed=false;this.noXPadding=false;this.primaryText="";this.secondaryText=""}render(){return i(e,null,i("div",{part:"list-base"},Boolean(this.url)?i("a",{class:{condensed:this.condensed,noXPadding:this.noXPadding},href:this.url},r(this,o,"m",d).call(this)):i("div",{class:{container:true,condensed:this.condensed,noXPadding:this.noXPadding}},r(this,o,"m",d).call(this))))}get el(){return a(this)}};o=new WeakSet,d=function t(){return i(s,null,this.icon&&i("klevu-icon",{part:"list-icon",class:"icon",name:this.icon}),this.image&&i("img",{part:"list-image",class:"image",src:this.image}),i("div",{class:"text",part:"list-content"},i("slot",{name:"primary"},this.primaryText&&i("klevu-typography",{variant:"body-s"},this.primaryText)),i("slot",{name:"secondary"},this.secondaryText&&i("klevu-typography",{variant:"body-s",style:{"--klevu-typography-color":"var(--klevu-color-neutral-7)"}},this.secondaryText))),i("span",{part:"list-button"},i("slot",{name:"button"})))};l.style=n;export{l as klevu_list};
//# sourceMappingURL=p-799d9aee.entry.js.map