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