import{template as o,makeStyleResponsive as t}from"@gem-sdk/core";let KlarnaMessaging=({setting:e,advanced:r})=>{let{widgetType:a,align:i}=e??{},n=()=>{switch(a){case"topStripPromotionBadge":default:return"top-strip-promotion-badge";case"topStripPromotionAutoSize":return"top-strip-promotion-auto-size";case"footerPromotionAutoSize":return"footer-promotion-auto-size";case"infoPage":return"info-page";case"creditPromotionBadge":return"credit-promotion-badge";case"creditPromotionAutoSize":return"credit-promotion-auto-size"}};return o`
      <div
        class="${r?.cssClass}"
        style="${{...t("ta",i)}}"
      >
        <klarna-placement
          data-key=${n()}
          data-locale={{ request.locale.iso_code }}-{{ localization.country.iso_code }}
        ></klarna-placement>
      </div>
    `};export{KlarnaMessaging as default};
