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