'use client';
import{jsx as e}from"react/jsx-runtime";import a from"../ThirdPartyPreview.js";import r from"../../configs/LaiProductReviews.js";import{useCallback as i,useMemo as t}from"react";let 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:d})=>{let s=()=>{let e=d?.widgetType,a=d?.advancedWidgetType;return e===ADVANCED_WIDGETS&&a?mapAdvancedWidgetLabel[a]||"":e&&mapWidgetLabel[e]||""},o=i(e=>d?.widgetType===ADVANCED_WIDGETS?`${r.label} - Advanced - ${e}`:`${r.label} - ${e}`,[d?.widgetType]),g=s(),l=t(()=>o(g),[g,o]);return e("div",{className:"gp-p-2",children:e(a,{setting:{label:l,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${r.logoUrl}">`}})})};export{LaiProductReviewsSampleContent as default};
