'use client';
import{jsx as e,Fragment as r}from"react/jsx-runtime";import t from"../ThirdPartyPreview.js";import o from"../../configs/Wiser.js";import{useMemo as d}from"react";import{WISER_VERSION as s}from"../../types.js";let mapWidgetLabelV1={related:"Related Products",recommended:"Recommended Products",alsobought:"Frequently Bought Together",recentview:"Recently Viewed Products",newarrivals:"New Arrivals",featured:"Featured Products",topselling:"Top Selling Products",trending:"Trending Products",recent_related:"Inspired By Your Browsing History"},mapWidgetLabelV2={"evm-also-bought-products":"Frequently Bought Together","evm-related-product":"Related Products","evm-featured-collections-product":"Featured Products","evm-recommended-products":"Manual Recommendations","evm-most-popular-products":"Top Selling Recommendations","evm-new-arrivals-product":"New Arrivals","recently-viewed":"Recently Viewed Products","evm-recent_purchased_recomm-product":"Recommendations Based On Past Purchases","evm-recent_purchased-product":"Products Purchased Before","trending-products":"Trending Products","evm-related-viewed-browsing":"AI Based Recommendations"},WiserSampleContent=({setting:a})=>{let n=a?.wiserVersion||s.V1,c=n===s.V2?mapWidgetLabelV2[a?.widgetTypeV2||"evm-also-bought-products"]:mapWidgetLabelV1[a?.widgetType||"related"],i=d(()=>c?`${o.label} - ${n} - ${c}`:o.label,[c,n]);return e(r,{children:e("div",{className:"gp-p-2",children:e(t,{setting:{label:i,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${o.logoUrl}">`}})})})};export{WiserSampleContent as default};
