'use client';
import{jsxs as t,Fragment as e,jsx as r}from"react/jsx-runtime";import{useStoreFront as o}from"@gem-sdk/core";import s from"next/script";import i from"next/dynamic";let p=i(()=>import("./LooxReviews/SingleProduct.js")),l=i(()=>import("./LooxReviews/WithoutProduct.js")),d=({setting:i,styles:d,builderProps:m})=>{let{widgetType:n}=i??{},{storefrontUrl:a}=o(),c=a?.replace("https://","")?.replace("http://","")?.split("/")?.[0];return t(e,{children:[r(s,{defer:!0,strategy:"lazyOnload",src:`//loox.io/widget/loox.js?shop=${c}`}),"product_reviews_widget"===n||"product_star_ratings_widget"===n?r(p,{setting:i,styles:d,builderProps:m}):r(l,{setting:i,styles:d,builderProps:m})]})};export{d as default};
