'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../ThirdPartyPreview.js"),t=require("../../configs/Wiser.js"),d=require("react"),o=require("../../types.js");const s={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"},u={"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"};exports.default=({setting:c})=>{let n=c?.wiserVersion||o.WISER_VERSION.V1,a=n===o.WISER_VERSION.V2?u[c?.widgetTypeV2||"evm-also-bought-products"]:s[c?.widgetType||"related"],i=d.useMemo(()=>a?`${t.default.label} - ${n} - ${a}`:t.default.label,[a,n]);return e.jsx(e.Fragment,{children:e.jsx("div",{className:"gp-p-2",children:e.jsx(r.default,{setting:{label:i,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${t.default.logoUrl}">`}})})})};
