'use client';
import{jsx as e,Fragment as i}from"react/jsx-runtime";import{useEditorMode as t,makeStyleResponsive as r}from"@gem-sdk/core";import l from"./ThirdPartyPreview.js";import{useMemo as o}from"react";import{WidgetOptions as p,AppConfig as s}from"../configs/QikifyUpsell.js";let QikifyUpsellContent=t=>{let r=o(()=>{let e=p.find(e=>e.value===t.setting?.widgetType)?.label;return`${s.label} - ${e}`},[t.setting?.widgetType]);return e(i,{children:e("div",{className:"gp-p-2",children:e(l,{setting:{label:r,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${s.logoUrl}">`}})})})},QikifyUpsell=({setting:i})=>{let l=t();return e("div",{style:{...r("ta",i?.align)},children:"edit"===l&&e(QikifyUpsellContent,{setting:i})})};export{QikifyUpsell as default};
