import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{d as defineCustomElement$1}from"./sc-icon2.js";const scCcLogoCss=":host{display:inline-block}.cc-logo{border-radius:var(--sc-cc-border-radius, 4px);line-height:0;overflow:hidden}",ScCcLogoStyle0=scCcLogoCss,ScCcLogo=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.brand=void 0}renderLogo(){return["visa","mastercard","amex","discover","diners","jcb","unionpay"].includes(this.brand)?h("sc-icon",{name:this.brand,style:{"--height":"0.63em"}}):h("sc-icon",{name:"creditcard",style:{"--height":"0.63em"}})}render(){return h("div",{key:"e9f7f69732dede93cbbfead07c30686bab5dc8bc",class:"cc-logo",part:"base"},this.renderLogo())}static get style(){return ScCcLogoStyle0}},[1,"sc-cc-logo",{brand:[1]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-cc-logo","sc-icon"].forEach((e=>{switch(e){case"sc-cc-logo":customElements.get(e)||customElements.define(e,ScCcLogo);break;case"sc-icon":customElements.get(e)||defineCustomElement$1()}}))}export{ScCcLogo as S,defineCustomElement as d};