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