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