'use client';
import{jsx as e,Fragment as a}from"react/jsx-runtime";import g from"../ThirdPartyPreview.js";import i from"../../configs/Stamped.js";import{useMemo as t}from"react";let l={"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"},r={"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"},o=({setting:o})=>{let d=o?.version,n="v1"===d?o?.widgetType&&l[o.widgetType]:o?.widgetTypeV2&&r[o.widgetTypeV2],s=t(()=>n?`${i.label} - ${n}`:i.label,[n]);return e(a,{children:e("div",{className:"gp-p-2",children:e(g,{setting:{label:s,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${i.logoUrl}">`}})})})};export{o as default};
