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