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