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