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