PageSourceSearch

https://www.gaia.com/assets/2.266.7/index.BK8byEYm.js

js gaia.com collected 2026-09-24 08:38:34 UTC 4,375 bytes, 2 lines download raw bytes

1import{c as e,a,r as t,a9 as s,ar as c,F as n,R as u,as as r,P as o,i as l}from"./index.Dcq7Tn10.js";import{g as i,aN as p,aO as m,Z as d,aP as g,aJ as _,aK as b,ab as E,aq as h,p as P,ah as f,aQ as N,aR as M,aS as R,aT as v,aU as y,aV as A,aW as T,B as I,T as x,a1 as S,U as j}from"./main.BpO2XlP_.js";import{B as k}from"./index.Bmi_K17R.js";import{S as D}from"./index.BYz0Ryw7.js";import"./staticTextEn.UPMVf61n.js";import"./staticTextEs.DJF2PufX.js";import"./staticTextDe.DGaNPAXM.js";import"./staticTextFr.CRVsglAw.js";function q(e){const a="account-pause__processing-sherpa-wrapper",t=[a];return e&&t.push(`${a}--active`),t.join(" ")}function C(){return null}function B(e){const{auth:o,user:l,history:i,staticText:j,isProcessing:B,updateUserAccountPause:U,renderModal:Y,userAccount:H,fromCancel:O}=e,[w,F]=t.useState(p),L=H.getIn(["details","data","billing","subscriptions","status"]),V=H.getIn(["details","data","billing","subscriptions","pauseDate"]),z=H.getIn(["details","data","billing","subscriptions","pauseMonths"]),J=V&&z,K=s(l.getIn(["data","language"])),Q=!H.getIn(["manageSubscription","data","errors"],a.List()).isEmpty()&&!H.getIn(["manageSubscription","data","success"]),W=H.getIn(["manageSubscription","data","success"]),Z=B||W,$=L===S||J,G=L&&K,X=m(e),ee=e=>F(parseInt(e,10)),ae=t.useCallback(()=>{U(w)},[w]);return t.useEffect(()=>{if(G)return $&&!W||!X?d({url:c,language:K,history:i,auth:o}):void 0},[$,X,G]),t.useEffect(()=>{Q&&Y(g,{onReturnFocus:C,userLanguage:K,pauseAccount:ae,hideDismiss:B})}),n(o)&&G&&!$&&X?u.createElement("div",{className:"account-pause"},u.createElement("div",{className:"account-pause__content"},u.createElement("div",{className:q(Z)},u.createElement(_,{type:b}),u.createElement("div",{className:"account-pause__sherpa-body"},u.createElement(E,null,j.get("processingHeader1")),u.createElement(h,{as:P.H6},j.get("processingHeader2")))),u.createElement(k,{className:"account-pause__back-button",url:c},j.get("back")),u.createElement(f,{className:"account-pause__title"},O?j.get("cancelPauseTitle"):j.get("pauseMembership")),u.createElement("p",{className:"account-pause__text"},O?j.get("cancelPauseDesc"):j.get("pauseMembershipDescription")),u.createElement(N,{className:"account-pause__form",onValidSubmit:ae},u.createElement(h,{as:P.H6,className:"account-pause__subtitle"},j.get("selectDuration")),u.createElement(M,{className:"account-pause__select",label:"",name:"pauseDurationSelect",onChange:e=>ee(e),value:w},u.createElement("option",{value:p,key:p},j.get("oneMonth")),u.createElement("option",{value:R,key:R},j.get("twoMonths")),u.createElement("option",{value:v,key:v},j.get("threeMonths"))),u.createElement(y,{name:"pauseDurationRadios",onChange:(e,a)=>ee(a),value:w},u.createElement(A,{style:T.PRIMARY,className:"account-pause__radio",label:j.get("oneMonth"),value:p,checked:w===p}),u.createElement(A,{style:T.PRIMARY,className:"account-pause__radio",label:j.get("twoMonths"),value:R,checked:w===R}),u.createElement(A,{style:T.PRIMARY,className:"account-pause__radio",label:j.get("threeMonths"),value:v,checked:w===v})),u.createElement("div",{className:"account-pause__buttons"},u.createElement(I,{className:"account-pause__submit-button",type:x.SECONDARY,submit:!0,disabled:B},B?j.get("pauseButtonProcessing"):j.get("pauseButton")),O?u.createElement(I,{url:r,className:"account-pause__submit-button",type:x.PRIMARY,disabled:B,scrollToTop:!0},B?j.get("pauseButtonProcessing"):j.get("cancelPauseBtn")):null))),u.createElement(D,null)):u.createElement("div",{className:"account-pause__sherpa-loader"},u.createElement(_,{className:["account-pause__sherpa"],type:b}))}B.defaultProps={fromCancel:!1},B.propTypes={auth:j.map.isRequired,isProcessing:o.bool.isRequired,renderModal:o.func.isRequired,staticText:j.map.isRequired,user:j.map.isRequired,userAccount:j.map.isRequired,fromCancel:o.bool};const U=e(e=>({auth:e.auth,user:e.user,userAccount:e.userAccount,isProcessing:e.userAccount.getIn(["manageSubscription","data","accountPauseProcessing"],!1),staticText:e.staticText.getIn(["data","accountPausePage","data"],a.Map())}),e=>{const a=i(e);return{renderModal:a.dialog.renderModal,updateUserAccountPause:a.userAccount.updateUserAccountPause}})(B),Y=l(Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})));export{Y as default};
2//# sourceMappingURL=index.BK8byEYm.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.