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