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