"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers$1=require("../../helpers.js"),system=require("@gem-sdk/system"),Text_liquid=require("../../text/components/Text.liquid.js"),classes=require("../common/classes.js"),helpers=require("../common/helpers.js");const EstimateDate=({setting:e={},styles:s,builderAttrs:t,style:r,builderProps:a,advanced:i,isText:l,pageContext:d})=>{let c=system.createClass({"estimate-date-container":!0}),p=classes.getClassAdvanced({setting:e,advanced:i,type:"Liquid"}),n=helpers.getNewSetting({type:"Liquid",styles:s,setting:e,builderProps:a,pageContext:d});return core.template`
    <gp-estimate-date>
      ${Text_liquid.default({builderProps:a,builderAttrs:t,advanced:{...i,cssClass:p},style:r,styles:s,setting:n,className:c,isText:l,pageContext:d,elementAttrs:{"setting-estimate-date":encodeURIComponent(JSON.stringify(e))}})}
    </gp-estimate-date>
    ${core.RenderIf(core.isLocalEnv,`<script ${helpers$1.getSettingPreloadData('class="gps-link" delay',"src")}="{{ 'gp-estimate-date-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${helpers$1.getSettingPreloadData('class="gps-link" delay',"src")}="${core.baseAssetURL}/assets-v2/gp-estimate-date-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
  `};exports.default=EstimateDate;
