import{r as e,h as t,a as s}from"./p-e97fde0a.js";import{s as a}from"./p-4cae87fc.js";import"./p-03631502.js";const i=':host{display:block}:slotted([slot="summary"]){line-height:1;display:flex;align-items:center;gap:0.5em}';const n=i;const l=class{constructor(t){e(this,t);this.methodId=undefined;this.processorId=undefined;this.isManual=undefined;this.card=undefined}isSelected(){if(this.methodId){return(a===null||a===void 0?void 0:a.id)===this.processorId&&(a===null||a===void 0?void 0:a.method)==this.methodId}return!(a===null||a===void 0?void 0:a.method)&&(a===null||a===void 0?void 0:a.id)===this.processorId}getAllOptions(){const e=this.el.closest("sc-payment")||this.el.parentElement;if(!e){return[]}return[...e.querySelectorAll(this.el.tagName)]}getSiblingItems(){return this.getAllOptions().filter((e=>e!==this.el))}hasOthers(){var e;return!!((e=this.getSiblingItems())===null||e===void 0?void 0:e.length)}render(){const e=this.hasOthers()?"sc-toggle":"div";return t(e,{key:"30a689b58b16b67de619340b34a732b808401ba3","show-control":true,borderless:true,open:this.isSelected(),onScShow:()=>{a.id=this.processorId;a.manual=!!this.isManual;a.method=this.methodId}},this.hasOthers()&&t("slot",{key:"9ff19943660fdb2d2845c5b573b515ce4e4a91d8",name:"summary",slot:"summary"}),this.card&&!this.hasOthers()?t("sc-card",null,t("slot",null)):t("slot",null))}get el(){return s(this)}};l.style=n;const c=":host{display:block}::slotted([slot=icon]){display:block;font-size:24px}.payment-selected{display:flex;flex-direction:column;gap:var(--sc-spacing-x-small)}.payment-selected__label{color:var(--sc-input-label-color);line-height:var(--sc-line-height-dense);font-size:var(--sc-font-size-medium)}.payment-selected__instructions{display:flex;justify-content:flex-start;align-items:center;gap:1em}.payment-selected__instructions svg{width:42px;height:42px;flex-shrink:0}.payment-selected__instructions-text{color:var(--sc-input-label-color);font-size:var(--sc-font-size-small);line-height:var(--sc-line-height-dense)}";const d=c;const o=class{constructor(t){e(this,t);this.iconName=undefined;this.label=undefined}render(){return t("div",{key:"10b3db7aef56a785033d6de0f6e86e60d68fd507",class:"payment-selected",part:"base"},t("slot",{key:"fc36061b3155e63180b44113de23837679a0f41c",name:"icon"}),t("div",{key:"74b1690dd7fd1cc6b48a9ca31a56e0404036fc26",class:"payment-selected__label"},this.label),t("sc-divider",{key:"33d5ac73adef755d929e045c82d8f56eaecf6815",style:{"--spacing":"var(--sc-spacing-xx-small)"},exportparts:"base:divider, line:divider__line"}),t("div",{key:"e608c027f2ddb39cffdfe9e181069779b8524244",part:"instructions",class:"payment-selected__instructions"},t("svg",{key:"0aee668c6c8f3dbad3e18a244571f98a99556eb7",part:"icon",viewBox:"0 0 48 40",fill:"var(--sc-color-gray-500)",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},t("path",{key:"73c2809ff23d7ae98ab18afa9a78d437f3a20a37",opacity:".6","fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5a4 4 0 00-4-4H17a4 4 0 00-4 4v11a1 1 0 102 0V5a2 2 0 012-2h22a2 2 0 012 2v30a2 2 0 01-2 2H17a2 2 0 01-2-2v-9a1 1 0 10-2 0v9a4 4 0 004 4h22a4 4 0 004-4V5zM17.992 16.409L21.583 20H6a1 1 0 100 2h15.583l-3.591 3.591a1 1 0 101.415 1.416l5.3-5.3a1 1 0 000-1.414l-5.3-5.3a1 1 0 10-1.415 1.416zM17 6a1 1 0 011-1h15a1 1 0 011 1v2a1 1 0 01-1 1H18a1 1 0 01-1-1V6zm21-1a1 1 0 100 2 1 1 0 000-2z"})),t("div",{key:"51f1d3b106c12bb2d860a9da25dcb31e3a553645",part:"text",class:"payment-selected__instructions-text"},t("slot",{key:"b33a44a01c0e49bc659a27dd881c32c995281234"}))))}};o.style=d;export{l as sc_payment_method_choice,o as sc_payment_selected};
//# sourceMappingURL=p-e9383c18.entry.js.map