'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@gem-sdk/core"),s=require("../../button/components/Button.js"),r=require("../hooks/useGetTextSetting.js"),u=require("../hooks/useSubscriptionConsentCheck.js");exports.default=n=>{let i=t.useCurrentVariantInStock(),{isDisableAccept:o}=u.useSubscriptionConsentCheck(),{text:c}=r.useGetTextSetting({isInStock:i,props:n,isRequireSubscriptionConsent:o});return e.jsx(s.default,{...n,disabled:!i||o,setting:{...n.setting,text:c},styles:n.styles})};
