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