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