import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL 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 EstimateDate=({setting:l={},styles:c,builderAttrs:n,style:f,builderProps:g,advanced:y,isText:j,pageContext:u})=>{let E=i({"estimate-date-container":!0}),S=o({setting:l,advanced:y,type:"Liquid"}),v=p({type:"Liquid",styles:c,setting:l,builderProps:g,pageContext:u});return e`
    <gp-estimate-date>
      ${a({builderProps:g,builderAttrs:n,advanced:{...y,cssClass:S},style:f,styles:d(c),setting:v,className:E,isText:j,pageContext:u,elementAttrs:{"setting-estimate-date":encodeURIComponent(JSON.stringify(l))},isForceValue:!0})}
    </gp-estimate-date>
    ${t(s,`<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")}="${m}/assets-v2/gp-estimate-date-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
  `};export{EstimateDate as default};
