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