'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../ThirdPartyPreview.js"),a=require("../../configs/FeraReviews.js"),i=require("react"),t=require("../../types.js");const l={productReviews:"Product Reviews",testimonialCarousel:"Testimonial Carousel",allReviews:"All Reviews",averageStoreRatingBadge:"Average Store Rating Badge",inStoreMedia:"In Store Media",averageRatingBadge:"Average Rating Badge",productPageMedia:"Product Page Media"},o={allReviews:"All Reviews",testimonialCarousel:"Testimonial Carousel",mediaGallery:"Media Gallery",productDetailRating:"Product Detail Rating",productReviews:"Product Reviews",productCollectionRating:"Product Collection Rating",otherWidget:"Other"};exports.default=({setting:s})=>{let d=s?.feraVersion||t.FERA_VERSION.V2,g=d===t.FERA_VERSION.V3?o[s?.widgetTypeV3||"allReviews"]:l[s?.widgetType||"allReviews"],u=i.useMemo(()=>g?`${a.default.label} - ${d} - ${g}`:a.default.label,[g,d]);return e.jsx("div",{className:"gp-p-2",children:e.jsx(r.default,{setting:{label:u,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${a.default.logoUrl}">`}})})};
