'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@gem-sdk/core"),r=require("next/dynamic"),o=require("next/script"),s=require("../common/helpers.js");const i=r(()=>Promise.resolve().then(function(){return require("./YotpoLoyalty/YotpoLoyaltySampleContent.js")}));exports.default=({setting:r,styles:n,builderAttrs:a,style:d})=>{let{yotpoLoyaltyCodes:l}=r??{},u=t.useEditorMode();return e.jsxs(e.Fragment,{children:["edit"!==u&&l?.guid&&e.jsx(o,{strategy:"lazyOnload",src:s.getYotpoUri(l?.guid),defer:!0}),e.jsxs("div",{...a,style:{...d,...t.makeStyleResponsive("ta",n?.align)},className:"gp-h-full gp-w-full",children:[l?.yotpoWidget&&e.jsx("div",{className:"yotpo-widget-instance","data-yotpo-instance-id":s.getYotpoFormCode(l?.yotpoWidget)}),"edit"===u&&e.jsx(i,{style:n})]})]})};
