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