'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@gem-sdk/core"),r=require("next/dynamic"),i=require("react");const d=r(()=>Promise.resolve().then(function(){return require("./JudgemeSampleContent.js")}));exports.default=({setting:r,styles:s})=>{let a=t.useEditorMode(),u=t.useProduct(),g=u?.baseID?.replace("gid://shopify/Product/",""),n=i.useMemo(()=>{switch(r?.widgetType){case"single_product_preview_badge":return{className:"jdgm-widget jdgm-preview-badge","data-id":g};case"review_widget":return{className:"jdgm-widget jdgm-review-widget jdgm-outside-widget","data-product-title":u?.title,"data-id":g}}},[g,u?.title,r?.widgetType]);return e.jsx(e.Fragment,{children:e.jsx("div",{style:{...t.makeStyleResponsive("ta",s?.align)},...n,children:"edit"===a&&e.jsx(d,{setting:r,styles:s})})})};
