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