'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),Divider=require("./Divider.js"),system=require("@gem-sdk/system"),classes=require("../common/classes.js"),styles=require("../common/styles.js"),helpers=require("../common/helpers.js");const Line=e=>{let{className:s,setting:t,styles:l,advanced:a,builderProps:r}=e,{text:i,iconSvg:n}=t??{},y=helpers.getConfigLine({styles:l,setting:t}),c=system.createClass(classes.getClassContainerLine({className:s,styles:l,advanced:a})),m=system.createClass(classes.getClassWrapNotIcon({className:s,setting:t})),o=system.createClass(classes.getClassWrapIcon({className:s,setting:t})),u=system.createClass(classes.getClassIcon()),d=system.createClass(classes.getClassText({styles:l})),x=system.createStyle(styles.getStyleWrapNotIcon({styles:l})),j=system.createStyle(styles.getStyleWrapIcon({styles:l})),g=system.createStyle(styles.getStyleIcon({styles:l,setting:t})),C=system.createStyle(styles.getStyleContainerText({styles:l})),f={config:y,fixedSide:"left",className:s},p={config:y,fixedSide:"right",className:s};return jsxRuntime.jsxs("div",{"data-id":r?.uid,className:c,children:[jsxRuntime.jsx("div",{style:x,className:m}),jsxRuntime.jsxs("div",{className:o,style:j,children:[jsxRuntime.jsx(Divider.default,{...f}),system.If(!!n,jsxRuntime.jsx("span",{className:u,style:g,dangerouslySetInnerHTML:{__html:n??""}})),system.If(!!i,jsxRuntime.jsx("span",{className:d,style:C,dangerouslySetInnerHTML:{__html:i??""}})),jsxRuntime.jsx(Divider.default,{...p})]})]})};exports.default=Line;
