'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),ThirdPartyPreview=require("../ThirdPartyPreview.js"),LaiProductReviews=require("../../configs/LaiProductReviews.js"),React=require("react");const ADVANCED_WIDGETS="advanced_widget",mapWidgetLabel={reviews_widget:"Product Review Widget",star_ratings:"Star ratings",homepage_reviews:"Homepage Reviews",happy_customer_reviews:"Happy Customer Reviews",star_ratings_in_list:"Star Ratings in the List",advanced_widget:"Advanced Widget"},mapAdvancedWidgetLabel={cardCarousel:"Card Carousel",testimonialCarousel:"Testimonial carousel",mediaGallery:"Media gallery",cardGrid:"Card grid"},LaiProductReviewsSampleContent=({setting:e})=>{let a=()=>{let a=e?.widgetType,i=e?.advancedWidgetType;return a===ADVANCED_WIDGETS&&i?mapAdvancedWidgetLabel[i]||"":a&&mapWidgetLabel[a]||""},i=React.useCallback(a=>e?.widgetType===ADVANCED_WIDGETS?`${LaiProductReviews.default.label} - Advanced - ${a}`:`${LaiProductReviews.default.label} - ${a}`,[e?.widgetType]),t=a(),r=React.useMemo(()=>i(t),[t,i]);return jsxRuntime.jsx("div",{className:"gp-p-2",children:jsxRuntime.jsx(ThirdPartyPreview.default,{setting:{label:r,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${LaiProductReviews.default.logoUrl}">`}})})};exports.default=LaiProductReviewsSampleContent;
