'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("next/head"),s=require("../hooks/useCSSCode.js"),a=require("@gem-sdk/system"),t=require("../common/styles.js"),i=require("../common/classes.js");exports.default=({setting:d,style:l,advanced:o,builderAttrs:c,builderProps:u,children:n,pageContext:g})=>{let{editorData:m}=o,{handleDoubleClickCustomCode:k,htmlPlainText:j,mode:x}=s.default(o,d),h=a.createStyle(t.getCodeStyle({setting:d,style:l,isLiquid:!1,uid:u?.uid,pageContext:g??{},type:"React"})),b=a.createClass(i.getCodeClasses(u?.uid,"edit"!==x&&!m?.html,o?.cssClass)),p=a.createAttr({...u?.uid&&{"data-id":u?.uid}});return e.jsxs(e.Fragment,{children:[e.jsx(r,{children:!!d?.preloadBgImage&&e.jsxs(e.Fragment,{children:[!!d?.background?.desktop?.image?.src&&e.jsx("link",{rel:"preload",href:d.background.desktop.image.src,as:"image"}),!!d?.background?.tablet?.image?.src&&e.jsx("link",{rel:"preload",href:d.background.tablet.image.src,as:"image"}),!!d?.background?.mobile?.image?.src&&e.jsx("link",{rel:"preload",href:d.background.mobile.image.src,as:"image"})]})}),e.jsxs("div",{...p,onClick:k,"aria-hidden":"true",style:h,...c,className:b,children:[e.jsx("div",{dangerouslySetInnerHTML:{__html:j||""}}),n]})]})};
