'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 c={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"},n={"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"},i=({setting:i})=>{let a=i?.wiserVersion||s.V1,l=a===s.V2?n[i?.widgetTypeV2||"evm-also-bought-products"]:c[i?.widgetType||"related"],u=d(()=>l?`${o.label} - ${a} - ${l}`:o.label,[l,a]);return e(r,{children:e("div",{className:"gp-p-2",children:e(t,{setting:{label:u,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${o.logoUrl}">`}})})})};export{i as default};
