'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 JudgemeSampleContent=i(()=>import("./JudgemeSampleContent.js")),JudgemeWithoutProduct=({setting:i,styles:m})=>{let d=s(),{widgetType:c}=i??{},g=l(()=>{switch(c){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"}}},[c]);return e("div",{style:{...t("ta",m?.align)},...g,children:["edit"===d&&a(JudgemeSampleContent,{setting:i,styles:m}),"all_reviews_widget"===c&&a("div",{className:"jdgm-all-reviews__body"}),"reviews_carousel"===c&&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{JudgemeWithoutProduct as default};
