"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),r=require("../../../helpers.js"),t=require("../../../text/components/Text.liquid.js"),s=require("@gem-sdk/system"),c=require("./common/classes.js"),o=require("./common/attrs.js"),p=require("./common/helpers.js");const a=a=>{let{style:i,setting:u,builderProps:l,pageContext:d}=a,n=s.createClass(c.getWrapperClasses(a)),m=s.createAttr(o.getAttrs(a)),g=p.getTextProps(a),y=s.createStateOrContext({priceType:u?.priceType,uid:l?.uid,locale:"{{shop.locale}}",currency:"{{shop.currency}}",moneyFormat:`{{ ${d?.showPriceCurrency?"shop.money_with_currency_format":"shop.money_format"} | replace: '"', '\\"' | escape }}`});return s.Liquid(e.template`
      <gp-product-price
        ${m}
        class="${n}"
        style="${i}"
        gp-data='${e.dataStringify(y)}'
      >
        ${t.default({...g})}
      </gp-product-price>
      ${(()=>{let t=e.isLocalEnv?"{{ 'gp-product-price-v7-5.js' | asset_url }}":`${e.baseAssetURL}/assets-v2/gp-product-price-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${r.getSettingPreloadData('class="gps-link" delay',"src")}="${t}" defer="defer"></script>`})()}
  `)};exports.ProductPrice=a,exports.default=a;
