'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),s=require("@gem-sdk/system"),r=require("../../link/components/Link.js"),l=require("../common/attrs.js"),a=require("../common/classes.js"),i=require("../common/styles.js");exports.default=({styles:n,builderAttrs:c,builderProps:o,setting:u={},style:d,children:y,advanced:m})=>{let{iconSvg:g,iconLink:j,iconLinkEnable:p}=u,C=j?.link&&p?r.default:t.Fragment,q=j?.link?{setting:{type:"custom",href:j?.link,target:j?.target,label:j?.title,noFollow:j?.noFollow}}:{},x=s.createAttr({...l.getAttr({uid:o?.uid??"",builderAttrs:c})}),S=s.createAttr({...o?.uid&&{"data-id":o?.uid}}),k=s.createClass({"gp-leading-[0]":!0,...o?.uid&&{[o.uid]:!0},...m?.cssClass&&{[m.cssClass]:!0}}),f=s.createClass({...a.getContainerClasses({styles:n,builderProps:o})}),h=s.createClass({...a.getIconClasses({styles:n})}),v=s.createStyle({...i.getWrapperStyle(d,n)}),I=s.createStyle({...i.getContainerStyle(n)}),_=s.createStyle({...i.getIconStyle(n)});return e.jsxs("div",{...x,style:v,className:k,children:[e.jsx("div",{...S,className:f,style:I,children:s.If(!!g,e.jsx(C,{...q,children:e.jsx("span",{style:_,className:h,dangerouslySetInnerHTML:{__html:g||""}})}))}),y]})};
