"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/system"),t=require("./common/styles.js"),s=require("../../../helpers.js"),r=require("../../../button/components/Button.liquid.js"),i=require("@gem-sdk/core"),o=require("./common/helpers.js"),l=require("../../settings/product-view-more/configs/translate.js");exports.default=({style:a,styles:d,setting:u,advanced:n,builderProps:c,builderAttrs:p,pageContext:g})=>i.template`
    <gp-product-view-more>
      ${r.default({translateSetting:l.ProductViewMore?.label?.id,styles:d,advanced:n,builderProps:c,builderAttrs:p,setting:{...o.getButtonSettings(u),...o.getButtonLiquidSettings(u,g??{})},style:{...t.getButtonStyle(a,d)},pageContext:g,className:"btn-view-more"})}
      ${e.If(i.isLocalEnv,`<script ${s.getSettingPreloadData('class="gps-link" delay',"src")}="{{ 'gp-product-view-more-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${s.getSettingPreloadData('class="gps-link" delay',"src")}="${i.baseAssetURL}/assets-v2/gp-product-view-more-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
    </gp-product-view-more>
  `;
