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