"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:s,builderAttrs:t,style:r,setting:l,advanced:a,builderProps:i,className:y,isText:c,pageContext:o,elementAttrs:m})=>{let{htmlTag:n="div",excludeFlex:u}=l??{},g=system.createAttr({...e&&{id:e},...attrs.getAttr({uid:i?.uidInteraction??i?.uid??""}),...t}),d=system.createAttr({...attrs.getTextAttr(),...m}),p=system.createStyle({...styles.getStyle(s,r)}),$=system.createStyle({...styles.getContainerStyle(s,l)}),x=system.createStyle({...styles.getTextStyle(s,l)}),q=system.createClass({...classes.getClasses({setting:l,advanced:a,builderProps:i})}),T=system.createClass({"gp-flex":!u}),v=system.createClass({...classes.getTextClasses({styles:s,setting:l,className:y}),...c&&{"gp-text":!0}}),C=helpers.getDisplayText({type:"Liquid",styles:s,setting:l,builderProps:i,pageContext:o}),j=system.createContent(C);return core.template`
    {% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}
    <div ${{...g}}
        class="${q}"
        style="${p}"
        data-test-force-publish="${new Date().getTime()}"
      >
      <div class="${T}" style="${$}">
        <${n}
          ${{...d}}
          class="${v}"
          style="${x}"
        >
          ${j}
        </${n}>
      </div>
    </div>
    `};exports.default=Text;
