'use client';
import{jsx as e}from"react/jsx-runtime";import i from"../ThirdPartyPreview.js";import r from"../../configs/FeraReviews.js";import{useMemo as a}from"react";import{FERA_VERSION as t}from"../../types.js";let o={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"},l={allReviews:"All Reviews",testimonialCarousel:"Testimonial Carousel",mediaGallery:"Media Gallery",productDetailRating:"Product Detail Rating",productReviews:"Product Reviews",productCollectionRating:"Product Collection Rating",otherWidget:"Other"},s=({setting:s})=>{let d=s?.feraVersion||t.V2,g=d===t.V3?l[s?.widgetTypeV3||"allReviews"]:o[s?.widgetType||"allReviews"],n=a(()=>g?`${r.label} - ${d} - ${g}`:r.label,[g,d]);return e("div",{className:"gp-p-2",children:e(i,{setting:{label:n,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${r.logoUrl}">`}})})};export{s as default};
