OCDevManageApplicationTBYBDisableButton.react",["fbt","GeoButton.react","GeoText.react","OCDevManageApplicationTBYBDisableButtonStopMutation.graphql","OCDevManageApplicationTryBeforeYouBuyRoute","OCDevUIFormModalCard.react","OCNavigatorHooks","asyncToGeneratorRuntime","react","useOCDevUICommitMutation","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.applicationID,f=a.experimentID;a=a.experimentStatus;var g=c("useOCDevUICommitMutation")(i!==void 0?i:i=b("OCDevManageApplicationTBYBDisableButtonStopMutation.graphql")),j=c("useOCDevUIModal")(),l=j.closeModal,m=j.openModal,n=d("OCNavigatorHooks").useNavigate();j=a==="DEACTIVATED";j=j||f===""||e===""||a==null;function o(){m(k.jsx(c("OCDevUIFormModalCard.react"),{children:k.jsxs("div",{children:[k.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Are you sure you want to disable the Try Before You Buy feature?")}),k.jsx("br",{}),k.jsx("br",{}),k.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"This action will remove the "Try for Free" button from your Product Detail Page and all users who are currently in a trial will lose access.")}),k.jsx("br",{}),k.jsx("br",{}),k.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"You can always re-enable this feature.")})]}),heading:h._(/*BTDS*/"Disable Try Before You Buy"),submitButtonLabel:h._(/*BTDS*/"Disable"),onSubmit:p}))}function p(){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield g({input:{experiment_id:f}}));if(a==null)return null;l();n(c("OCDevManageApplicationTryBeforeYouBuyRoute").getURI({applicationID:e}),{skipBrowserHistory:!0})});return q.apply(this,arguments)}return k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:j,label:h._(/*BTDS*/"Disable"),onClick:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----