'use client';
import{jsxs as e,jsx as a,Fragment as r}from"react/jsx-runtime";import{useEditorMode as s,makeStyleResponsive as t}from"@gem-sdk/core";import i from"next/dynamic";import{useMemo as l}from"react";let m=i(()=>import("./JudgemeSampleContent.js")),d=({setting:i,styles:d})=>{let c=s(),{widgetType:g}=i??{},n=l(()=>{switch(g){case"reviews_carousel":return{className:"jdgm-carousel-wrapper"};case"all_reviews_widget":return{className:"jdgm-widget jdgm-all-reviews-widget"};case"all_reviews_text":return{className:"jdgm-all-reviews-text"};case"verified_reviews_count_badge":return{className:"jdgm-verified-badge-wrapper"};case"medals":return{className:"jdgm-medals-wrapper"};case"media_grid":return{className:"jdgm-ugc-media-wrapper"};case"floating_reviews_tab":return{className:"jdgm-revs-tab-btn btn",position:"bottom"}}},[g]);return e("div",{style:{...t("ta",d?.align)},...n,children:["edit"===c&&a(m,{setting:i,styles:d}),"all_reviews_widget"===g&&a("div",{className:"jdgm-all-reviews__body"}),"reviews_carousel"===g&&e(r,{children:[a("h2",{className:"jdgm-carousel-title",children:" "})," ",e("a",{href:"/reviews",className:"jdgm-all-reviews-rating-wrapper",children:[" ",a("div",{"data-score":"",className:"jdgm-all-reviews-rating"})," ",a("span",{className:"jdgm-all-reviews-count"})," "]})]})]})};export{d as default};
