'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),s=require("react"),t=require("next/head"),i=require("@gem-sdk/system"),l=require("../common/attrs.js"),a=require("../common/styles.js"),d=require("../common/classes.js");exports.default=n=>{let{builderAttrs:c,style:o,setting:m,children:u,styles:g,advanced:j,builderProps:p}=n,{preload:x}=m||{},{background:h}=g||{},y=i.createAttr({...l.getAttr({uid:p?.uid||""})}),f=i.createStyle({...a.getWrapperStyle(o,h)}),q=i.createClass({...d.getContainClasses(j?.cssClass)}),b=i.createStyle({...a.getContainStyle(g)});return e.jsxs(e.Fragment,{children:[!!x&&e.jsxs(t,{children:[!!h?.desktop?.image?.src&&e.jsx("link",{rel:"preload",href:h.desktop.image.src,as:"image"}),!!h?.tablet?.image?.src&&e.jsx("link",{rel:"preload",href:h.tablet.image.src,as:"image"}),!!h?.mobile?.image?.src&&e.jsx("link",{rel:"preload",href:h.mobile.image.src,as:"image"})]}),e.jsx("div",{...y,...c,"data-id":p?.uid,style:f,children:i.If(r.isEmptyChildren(u),e.jsx("div",{children:"Icons not found"}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:q,style:b,children:s.Children.map(r.filterToolbarPreview(u),r=>s.isValidElement(r)?e.jsx(r.type,{...r.props}):null)}),r.filterToolbarPreview(u,!0)]}))})]})};
