"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core");const KlarnaMessaging=({setting:e,advanced:o})=>{let{widgetType:t,align:r}=e??{},a=()=>{switch(t){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 core.template`
      <div
        class="${o?.cssClass}"
        style="${{...core.makeStyleResponsive("ta",r)}}"
      >
        <klarna-placement
          data-key=${a()}
          data-locale={{ request.locale.iso_code }}-{{ localization.country.iso_code }}
        ></klarna-placement>
      </div>
    `};exports.default=KlarnaMessaging;
