'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("../ThirdPartyPreview.js"),g=require("../../configs/Stamped.js"),t=require("react");const i={"main-widget":"Main Widget","badge-single":"Badge Single","badge-double":"Badge Double","badge-ribbon":"Badge Ribbon","product-rating":"Product Rating",carousel:"Carousel","full-page":"Full Page","visual-gallery":"Visual Gallery","wall-photos":"Wall Photos","site-badge":"Site Badge","instagram-feed":"Instagram Feed","checkout-reviews":"Checkout Reviews","single-highlight":"Single Highlight","top-rated":"Top Rated","star-rating-badge":"Star Rating"},l={"main-widget":"Main Widget","product-rating-image":"Product Rating","badge-double-image":"Badge Double","badge-ribbon-image":"Badge Ribbon","badge-single-image":"Badge Single",carousel:"Carousel","full-page":"Full Page","site-badge":"Site Badge","star-rating-badge":"Star Rating","visual-gallery":"Visual Gallery","wall-photos":"Wall Photos","instagram-feed":"Instagram Feed","single-highlight":"Single Highlight","top-rated":"Top Rated","checkout-comments":"Checkout Comments"};exports.default=({setting:r})=>{let d=r?.version,s="v1"===d?r?.widgetType&&i[r.widgetType]:r?.widgetTypeV2&&l[r.widgetTypeV2],o=t.useMemo(()=>s?`${g.default.label} - ${s}`:g.default.label,[s]);return e.jsx(e.Fragment,{children:e.jsx("div",{className:"gp-p-2",children:e.jsx(a.default,{setting:{label:o,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${g.default.logoUrl}">`}})})})};
