"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),system=require("@gem-sdk/system"),attrs=require("../common/attrs.js"),styles=require("../common/styles.js"),classes=require("../common/classes.js"),helpers=require("../common/helpers.js");const Text=({id:e,styles:t,builderAttrs:s,style:r,setting:l,advanced:a,builderProps:y,className:i,isText:c,pageContext:o,translateSetting:m,elementAttrs:n})=>{let{htmlTag:u="div",excludeFlex:g}=l??{},p=system.createAttr({...e&&{id:e},...attrs.getAttr({uid:y?.uidInteraction??y?.uid??""}),...s}),d=system.createAttr({...attrs.getTextAttr(),...n}),x=system.createStyle({...styles.getStyle(t,r)}),$=system.createStyle({...styles.getContainerStyle(t,l)}),q=system.createStyle({...styles.getTextStyle({styles:t,setting:l,builderProps:y,pageContext:o??{},type:"Liquid"})}),C=system.createClass({...classes.getClasses({setting:l,advanced:a,builderProps:y})}),v=system.createClass({"gp-flex":!g}),T=system.createClass({...classes.getTextClasses({styles:t,setting:l,className:i}),...c&&{"gp-text":!0}}),j=helpers.getDisplayText({type:"Liquid",styles:t,setting:l,builderProps:y,pageContext:o??{},translateSetting:m}),S=system.createContent(j);return core.template`
    {% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}
    <div ${{...p}}
        class="${C}"
        style="${x}"
      >
      <div class="${v}" style="${$}">
        <${u}
          ${{...d}}
          class="${T}"
          style="${q}"
        >
          ${S}
        </${u}>
      </div>
    </div>
    `};exports.default=Text;
