'use client';
import{jsx as o,Fragment as e}from"react/jsx-runtime";import{makeStyleResponsive as r}from"@gem-sdk/core";import t from"./ThirdPartyPreview.js";import{useMemo as i}from"react";import a from"../configs/KlarmaMessaging.js";let mapWidgetLabel={topStripPromotionBadge:"Top strip promotion badge",topStripPromotionAutoSize:"Top strip promotion auto size",footerPromotionAutoSize:"Footer promotion auto size",infoPage:"Info page"},KlarnaMessagingContent=({setting:r})=>{let n=r?.widgetType&&mapWidgetLabel[r.widgetType],g=i(()=>n?`${a.label} - ${n}`:a.label,[n]);return o(e,{children:o("div",{className:"gp-p-2",children:o(t,{setting:{label:g,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${a.logoUrl}">`}})})})},KlarnaMessaging=({setting:e})=>o("div",{style:{...r("ta",e?.align)},children:o(KlarnaMessagingContent,{})});export{KlarnaMessaging as default};
