'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"),s=require("react");const i=r(()=>Promise.resolve().then(function(){return require("./LooxReviewsSampleContent.js")}));exports.default=({setting:r,styles:d})=>{let o=t.useEditorMode(),a=t.useProduct(),u=a?.baseID?.replace("gid://shopify/Product/",""),c=s.useMemo(()=>{switch(r?.widgetType){case"product_reviews_widget":return{id:"looxReviews","data-product-id":u};case"product_star_ratings_widget":return{className:"loox-rating","data-id":u,"data-fetch":""}}},[u,r?.widgetType]);return e.jsxs("div",{style:{...t.makeStyleResponsive("ta",d?.align)},children:["edit"===o&&e.jsx(i,{setting:r,styles:d}),e.jsx("div",{...c})]})};
