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