'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../hooks/useGetProductId.js"),s=require("../../text/components/Text.js"),l=require("@gem-sdk/system"),a=require("../common/classes.js"),r=require("../common/styles.js"),c=require("../common/helpers.js"),o=require("../hooks/useIconLineHeight.js");exports.default=i=>{let{builderProps:n,builderAttrs:d,style:u,setting:y,styles:m,pageContext:p,advanced:g}=i,I=l.createClass({[n?.uid??""]:!0}),x=l.createClass(a.getClassWraplistIcon()),h=l.createClass(a.getClassColListIcon()),C=l.createClass(a.getClassWrapItemIcon({builderProps:n})),j=l.createClass(a.getClassWrapIcon()),S=l.createClass(a.getClassIcon()),v=l.createClass(a.getClassTextItem({setting:y})),W=l.createStyle(r.getStyleContainerIconlistMain({styles:m,style:u,type:"react",advanced:g})),q=l.createStyle(r.getStyleWraplistIcon({styles:m,uid:n?.uid??"",pageContext:p})),T=l.createStyle(r.getStyleColListIcon({styles:m})),N=l.createStyle(r.getStyleIcon({styles:m,setting:y})),f=r.getStyleTypoText({setting:y}),L=l.createAttr({...d}),M=c.getTextIconNotFound("react"),P=c.getvalueMap({setting:y}),{ref:_,lineHeight:k}=o.useIconLineHeight({iconWidth:c.composeIconWith(y?.iconWidth)}),w=c.composePostionIconList(k,m?.position,y?.iconWidth),{refContainer:H,productID:$}=t.useGetProductId(),G=l.createStyle({...r.getStyleWrapIcon({styles:m,setting:y}),...w.content}),b=l.createStyle({...r.getStyleWrapItemIcon({styles:m}),...w.wrapper});return e.jsx("div",{...L,...n,"data-id":n?.uid,style:W,className:I,ref:H,children:l.If(!P||!P.length,e.jsx("div",{children:M}),e.jsx("div",{className:x,style:q,children:e.jsx("div",{className:h,style:T,children:P?.map((t,l)=>{let a=c.getTextIconTranslations({setting:y,builderProps:n,pageContext:p,key:l,type:"react"});return e.jsxs("div",{"data-index":l,className:C,style:b,children:[e.jsx("div",{className:j,style:G,children:e.jsx("span",{style:N,className:S,dangerouslySetInnerHTML:{__html:t}})}),e.jsx(s.default,{setting:{text:a?.toString(),htmlTag:"div",options:{useState:!0,uniqueId:`${n?.uid}-${l}-${$}`,productID:$,customClass:{wrapper:"gp-w-full"}}},styles:f,className:v,ref:_})]},l)})})}))})};
