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