'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),ThirdPartyPreview=require("../ThirdPartyPreview.js"),FeraReviews=require("../../configs/FeraReviews.js"),React=require("react"),types=require("../../types.js");const mapWidgetLabelV2={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"},mapWidgetLabelV3={allReviews:"All Reviews",testimonialCarousel:"Testimonial Carousel",mediaGallery:"Media Gallery",productDetailRating:"Product Detail Rating",productReviews:"Product Reviews",productCollectionRating:"Product Collection Rating",otherWidget:"Other"},FeraReviewsSampleContent=({setting:e})=>{let a=e?.feraVersion||types.FERA_VERSION.V2,t=a===types.FERA_VERSION.V3?mapWidgetLabelV3[e?.widgetTypeV3||"allReviews"]:mapWidgetLabelV2[e?.widgetType||"allReviews"],i=React.useMemo(()=>t?`${FeraReviews.default.label} - ${a} - ${t}`:FeraReviews.default.label,[t,a]);return jsxRuntime.jsx("div",{className:"gp-p-2",children:jsxRuntime.jsx(ThirdPartyPreview.default,{setting:{label:i,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${FeraReviews.default.logoUrl}">`}})})};exports.default=FeraReviewsSampleContent;
