1import{c as e,r as a,d as t,_ as s,a9 as c,ae as n,at as u,au as r,h as i,F as o,ar as l,R as m,av as p,aw as d,P as g,i as f}from"./index.Dcq7Tn10.js";import{c as _,g as b,aX as E,a0 as A,aJ as R,aY as T,ah as h,p as I,B as N,T as x,a9 as y,aa as S,U as j}from"./main.BpO2XlP_.js";import{c as D,P}from"./connect.B8_DVB94.js";import{S as M}from"./index.BYz0Ryw7.js";import"./staticTextEn.UPMVf61n.js";import"./staticTextEs.DJF2PufX.js";import"./staticTextDe.DGaNPAXM.js";import"./staticTextFr.CRVsglAw.js";function O(){return null}function H({resetUserAccountManageSubscriptionData:e,isProcessingAccountResume:g,updateUserAccountResume:f,dialogComponent:_,renderModal:b,userAccount:j,staticText:D,history:P,user:H,auth:U}){a.useEffect(()=>()=>{e()},[]),a.useEffect(()=>{(_===E||g)&&ce()},[g]);const C=t(),{features:q}=C,v=s(q,["userAccount","accountPause"]),F=c(H.getIn(["data","language"])),G=j.getIn(["details","data","billing","subscriptions","status"]),B=j.getIn(["details","data","billing","subscriptions","pauseMonths"]),k=j.getIn(["details","data","billing","subscriptions","pauseDate"]),z=j.getIn(["details","data","billing","subscriptions","resumeDate"]),L=j.size&&v&&B&&k,V=j.getIn(["details","data","billing","subscriptions","nextBillAmount"]),$=j.getIn(["details","data","billing","subscriptions","paidThroughDate"]),w=j.getIn(["details","data","billing","subscriptions","currencyIso"]),J=n(w,V,!1,null,F),K=z,X=k,Y=d(F),Q=p(F),W=u(K),Z=u(X),ee=u($),ae=r(W,Y,{locale:Q}),te=r(Z,Y,{locale:Q}),se=r(ee,Y,{locale:Q}),ce=a.useCallback(()=>{b(E,{price:J,status:G,userAccount:j,userLanguage:F,onReturnFocus:O,resumeDate:G===A?se:ae,resumeAccount:f,hideDismiss:g})},[J,G,j,g,se,ae]),ne=i(D.get("description1"),"${ lengthOfPause }",B),ue=D.get("description2");return v&&o(U)||P.push(l),m.createElement("div",{className:"account-pause-confirm"},L?m.createElement(m.Fragment,null,m.createElement("div",{className:"account-pause-confirm__content"},m.createElement(h,{className:"account-pause-confirm__title",as:[I.H3_MOBILE,I.H3_DESKTOP]},D.get("title")),m.createElement("div",{className:"account-pause-confirm__description"},m.createElement("span",null,ne),m.createElement("span",{className:"account-pause-confirm__date"},te,"."),m.createElement("span",null,` ${ue}`),m.createElement("span",{className:"account-pause-confirm__date"},ae,".")),m.createElement(N,{url:l,className:"account-pause-confirm__cta",type:x.GHOST},D.get("return"),m.createElement(y,{className:"account-pause-confirm__icon",type:S.CHEVRON_RIGHT})),m.createElement(N,{onClick:ce,className:"account-pause-confirm__cta",type:x.GHOST},D.get("resume"),m.createElement(y,{className:"account-pause-confirm__icon",type:S.CHEVRON_RIGHT}))),m.createElement(M,null)):m.createElement("div",{className:"account-pause-confirm__placeholder"},m.createElement(R,{type:T})))}H.propTypes={resetUserAccountManageSubscriptionData:g.func.isRequired,userAccount:j.map.isRequired,staticText:j.map.isRequired,user:j.map.isRequired,auth:j.map.isRequired,history:g.object.isRequired};const U=_(D({seoType:P}),e(e=>({isProcessingAccountResume:e.userAccount.getIn(["manageSubscription","data","accountResumeProcessing"],!1)||e.userAccount.getIn(["manageSubscription","data","success"],!1),staticText:e.staticText.getIn(["data","accountPauseConfirmPage","data"]),userAccount:e.userAccount,dialogComponent:e.dialog.get("componentName"),user:e.user,auth:e.auth}),e=>{const a=b(e);return{updateUserAccountResume:a.userAccount.updateUserAccountResume,resetUserAccountManageSubscriptionData:a.userAccount.resetUserAccountManageSubscriptionData,renderModal:a.dialog.renderModal}}))(H),C=f(Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})));export{C as default}; 2//# sourceMappingURL=index.DbsYIwkq.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.