'use client';
import{jsx as e,Fragment as t}from"react/jsx-runtime";import{useEditorMode as i,useProduct as d,makeStyleResponsive as r}from"@gem-sdk/core";import a from"next/dynamic";import{useMemo as g}from"react";let m=a(()=>import("./JudgemeSampleContent.js")),s=({setting:a,styles:s})=>{let o=i(),l=d(),c=l?.baseID?.replace("gid://shopify/Product/",""),p=g(()=>{switch(a?.widgetType){case"single_product_preview_badge":return{className:"jdgm-widget jdgm-preview-badge","data-id":c};case"review_widget":return{className:"jdgm-widget jdgm-review-widget jdgm-outside-widget","data-product-title":l?.title,"data-id":c}}},[c,l?.title,a?.widgetType]);return e(t,{children:e("div",{style:{...r("ta",s?.align)},...p,children:"edit"===o&&e(m,{setting:a,styles:s})})})};export{s as default};
