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