'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),t=require("next/script"),s=require("next/dynamic");const o=s(()=>Promise.resolve().then(function(){return require("./LooxReviews/SingleProduct.js")})),i=s(()=>Promise.resolve().then(function(){return require("./LooxReviews/WithoutProduct.js")}));exports.default=({setting:s,styles:u,builderProps:n})=>{let{widgetType:l}=s??{},{storefrontUrl:c}=r.useStoreFront(),d=c?.replace("https://","")?.replace("http://","")?.split("/")?.[0];return e.jsxs(e.Fragment,{children:[e.jsx(t,{defer:!0,strategy:"lazyOnload",src:`//loox.io/widget/loox.js?shop=${d}`}),"product_reviews_widget"===l||"product_star_ratings_widget"===l?e.jsx(o,{setting:s,styles:u,builderProps:n}):e.jsx(i,{setting:s,styles:u,builderProps:n})]})};
