import{RenderIf as e,isLocalEnv as t,baseAssetURL as s,template as m}from"@gem-sdk/core";import{getSettingPreloadData as r}from"../../helpers.js";import{createClass as i}from"@gem-sdk/system";import a from"../../text/components/Text.liquid.js";import{getClassAdvanced as o}from"../common/classes.js";import{getNewSetting as p}from"../common/helpers.js";import{getTextStyles as d}from"../common/styles.js";let l=({setting:l={},styles:c,builderAttrs:n,style:f,builderProps:g,advanced:y,isText:j,pageContext:u})=>{let S=i({"estimate-date-container":!0}),v=o({setting:l,advanced:y,type:"Liquid"}),E=p({type:"Liquid",styles:c,setting:l,builderProps:g,pageContext:u});return m`
    <gp-estimate-date>
      ${a({builderProps:g,builderAttrs:n,advanced:{cssClass:v},style:f,styles:d(c),setting:E,className:S,isText:j,pageContext:u,elementAttrs:{"setting-estimate-date":encodeURIComponent(JSON.stringify(l))}})}
    </gp-estimate-date>
    ${e(t,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-estimate-date-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${s}/assets-v2/gp-estimate-date-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
  `};export{l as default};
