'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),dynamic=require("next/dynamic"),React=require("react");const JudgemeSampleContent=dynamic(()=>Promise.resolve().then(function(){return require("./JudgemeSampleContent.js")})),JudgemeWithoutProduct=({setting:e,styles:s})=>{let r=core.useEditorMode(),{widgetType:a}=e??{},t=React.useMemo(()=>{switch(a){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"}}},[a]);return jsxRuntime.jsxs("div",{style:{...core.makeStyleResponsive("ta",s?.align)},...t,children:["edit"===r&&jsxRuntime.jsx(JudgemeSampleContent,{setting:e,styles:s}),"all_reviews_widget"===a&&jsxRuntime.jsx("div",{className:"jdgm-all-reviews__body"}),"reviews_carousel"===a&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("h2",{className:"jdgm-carousel-title",children:" "})," ",jsxRuntime.jsxs("a",{href:"/reviews",className:"jdgm-all-reviews-rating-wrapper",children:[" ",jsxRuntime.jsx("div",{"data-score":"",className:"jdgm-all-reviews-rating"})," ",jsxRuntime.jsx("span",{className:"jdgm-all-reviews-count"})," "]})]})]})};exports.default=JudgemeWithoutProduct;
