PageSourceSearch

https://tapeapp.com/3277.5ae00cdfd1caac32.js

js tapeapp.com collected 2026-09-24 13:15:34 UTC 8,344 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb_client=self.webpackChunkweb_client||[]).push([[3277],{16330:(C,p,i)=>{i.d(p,{Z:()=>e});const e={immediately:"immediately"}},23277:(C,p,i)=>{i.r(p),i.d(p,{CancelSubscriptionPageModule:()=>E});var e=i(9983),u=i(55853),c=i(54520),b=i(82372),S=i(93591),f=i(70103),d=i(42866),o=i(74434),B=i(70174),P=i(66233);const v="[client-store-billing-subscription-cancel]",a={loadActiveSubscription:(0,c.PH)(`${v} Load active billing subscription`),loadActiveSubscriptionError:(0,S.bR)(`${v} Loading active billing subscription failed`),loadActiveSubscriptionSuccess:(0,c.PH)(`${v} Loaded active billing subscription`,(0,c.Ky)()),cancelActiveSubscription:(0,c.PH)(`${v} Cancel active billing subscription`,(0,c.Ky)()),cancelActiveSubscriptionError:(0,S.bR)(`${v} Canceling active billing subscription failed`),cancelActiveSubscriptionSuccess:(0,c.PH)(`${v} Canceled active billing subscription`),setImmediately:(0,c.PH)(`${v} Set immediately`,(0,c.Ky)())};var t=i(91052);class m{constructor(n,s){this.actions$=n,this.service=s,this.loadActiveSubscription$=(0,u.GW)(()=>this.actions$.pipe((0,u.l4)(a.loadActiveSubscription),(0,d.w)(()=>this.service.getBillingSubscription().pipe((0,o.U)(l=>{if(!f.j.isActiveBillingSubscription(l))throw new Error("Cannot cancel if no active subscription available");return a.loadActiveSubscriptionSuccess({activeBillingSubscription:l})}),(0,S.Mr)(a.loadActiveSubscriptionError),(0,B.R)(this.actions$.pipe((0,u.l4)(a.cancelActiveSubscriptionSuccess))))))),this.cancelActiveSubscription$=(0,u.GW)(()=>this.actions$.pipe((0,u.l4)(a.cancelActiveSubscription),(0,P.zg)(({input:l})=>this.service.cancelBillingSubscription(l).pipe((0,o.U)(()=>a.cancelActiveSubscriptionSuccess()),(0,S.Mr)(a.cancelActiveSubscriptionError)))))}static#i=this.\u0275fac=function(s){return new(s||m)(t.LFG(u.eX),t.LFG(b.uc))};static#t=this.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac})}const h={isLoading:!1,immediately:!1},I=(0,c.Lq)(h,(0,c.on)(a.setImmediately,(r,{immediately:n})=>({...r,immediately:n})),(0,c.on)(a.loadActiveSubscriptionError,r=>({...r,isLoading:!1})),(0,c.on)(a.loadActiveSubscription,r=>({...r,isLoading:!0})),(0,c.on)(a.loadActiveSubscriptionSuccess,(r,{activeBillingSubscription:n})=>({...r,activeBillingSubscription:n,isLoading:!1})),(0,c.on)(a.cancelActiveSubscription,r=>({...r,isLoading:!0})),(0,c.on)(a.cancelActiveSubscriptionSuccess,()=>({...h,isLoading:!1})),(0,c.on)(a.cancelActiveSubscriptionError,r=>({...r,isLoading:!1}))),L="billingSubscriptionCancel",$=(0,c.ZF)(L);class w{static#i=this.\u0275fac=function(s){return new(s||w)};static#t=this.\u0275mod=t.oAB({type:w});static#n=this.\u0275inj=t.cJS({providers:[{provide:b.uc,useFactory:n=>new b.uc(n),deps:[b.RZ]}],imports:[c.Aw.forFeature(L,I),u.sQ.forFeature([m])]})}const F=(0,c.P1)($,r=>r.activeBillingSubscription),Z=(0,c.P1)($,r=>r.isLoading),x=(0,c.P1)($,r=>r.immediately);var Q=i(25007),K=i(97091),J=i(38477),N=i(65104),W=i(40558),G=i(76466),z=i(16330);class y{constructor(n){this.store$=n}canActivate({queryParams:n}){this.store$.dispatch(a.loadActiveSubscription());const s=n[z.Z.immediately];if(!s)throw new Error("Cannot access cancel billing subscription route without immediately query param set.");const l=G.C.fromString(s);return this.store$.dispatch(a.setImmediately({immediately:l})),!0}static#i=this.\u0275fac=function(s){return new(s||y)(t.LFG(c.yh))};static#t=this.\u0275prov=t.Yz7({token:y,factory:y.\u0275fac})}var H=i(82315),O=i(24822);class A{constructor(n){this.actions$=n,this.newSubscriptionCreatedGoToOverview$=(0,u.GW)(()=>this.actions$.pipe((0,u.l4)(a.cancelActiveSubscriptionSuccess),(0,o.U)(()=>O.U.navigateToBillingOverview(H.i.CANCEL))))}static#i=this.\u0275fac=function(s){return new(s||A)(t.LFG(u.eX))};static#t=this.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac})}var M=i(78667),j=i(14805),X=i(87721),D=i(71409),Y=i(77815),V=i(23550),k=i(72805),q=i(37690),ii=i(63866);class U{constructor(n){this.store$=n,this.pageTitle=D.hk.translate((0,M.mu)(),D.hk.key.pageTitle),this.pageDescription=D.hk.translate((0,M.mu)(),D.hk.key.pageDescription),this.i18n=(0,M.mu)(),this.I18n=X.q,this.Icons=j.PJ,this.activeSubscriptionToCancel$=n.select(F),this.cancelImmediately$=n.select(x),this.isLoading$=n.select(Z)}cancelActiveSubscription({immediately:n}
1){this.store$.dispatch(a.cancelActiveSubscription({input:{immediately:n}}))}navigateToBillingOverview(){this.store$.dispatch(O.U.navigateToBillingOverview())}static#i=this.\u0275fac=function(s){return new(s||U)(t.Y36(c.yh))};static#t=this.\u0275cmp=t.Xpm({type:U,selectors:[["t5s-cancel-subscription-review-page"]],decls:7,vars:13,consts:[[3,"title","description"],[3,"title"],["section-leading","","data-cy","t5s-wc-billing-renew-subscription-input-back",3,"icon","btnClick"],[3,"activeBillingSubscription","immediately","isLoading","confirmCancelClick","backClick"]],template:function(s,l){1&s&&(t.TgZ(0,"t5s-settings-page-template",0)(1,"t5s-settings-page-section",1)(2,"t5s-primary-icon-button-20px",2),t.NdJ("btnClick",function(){return l.navigateToBillingOverview()}),t.qZA(),t.TgZ(3,"t5s-cancel-review-view",3),t.NdJ("confirmCancelClick",function(ni){return l.cancelActiveSubscription(ni)})("backClick",function(){return l.navigateToBillingOverview()}),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()()()),2&s&&(t.Q6J("title",l.pageTitle)("description",l.pageDescription),t.xp6(1),t.Q6J("title",l.I18n.translate(l.i18n,l.I18n.key.cancel.title)),t.xp6(1),t.Q6J("icon",l.Icons.arrowBackRounded.name),t.xp6(1),t.Q6J("activeBillingSubscription",t.lcZ(4,7,l.activeSubscriptionToCancel$))("immediately",t.lcZ(5,9,l.cancelImmediately$))("isLoading",t.lcZ(6,11,l.isLoading$)))},dependencies:[Y.y,V.H,k.Q,q.n,ii.Ov],styles:["[_nghost-%COMP%]{height:100%;width:100%}"],changeDetection:0})}const ti=[{path:"",component:U,canActivate:[y]},{path:"**",redirectTo:"",pathMatch:"full"}];class E{static#i=this.\u0275fac=function(s){return new(s||E)};static#t=this.\u0275mod=t.oAB({type:E});static#n=this.\u0275inj=t.cJS({providers:[y],imports:[K.tJ,e.Bz.forChild(ti),u.sQ.forFeature([A]),J.b,N.F_,W.zM,Q.s_,w]})}},91266:(C,p,i)=>{i.d(p,{U:()=>e});const e={billingPeriod:"billingPeriod"}},70814:(C,p,i)=>{i.d(p,{c:()=>e});const e={plan:"plan"}},17380:(C,p,i)=>{i.d(p,{i:()=>e});const e={plan:"plan",billingPeriod:"billingPeriod"}},24822:(C,p,i)=>{i.d(p,{U:()=>R});var e=i(42989),u=i(77987),c=i(16330),b=i(91266),S=i(70814),f=i(17380),d=i(40558);const{settings:o}=u.a,B=u.a.settingsChildren,{billing:{newSubscription:P,overview:v,paymentMethod:a,cancelSubscription:t,changeSubscriptionBillingPeriod:m,changeSubscriptionPlan:h,explorePlans:I,renewSubscription:T}}=B,R={navigateToNewSubscription:(g,L)=>(0,e.D6)({commands:[o,P],extras:{replaceUrl:!0,queryParams:{[f.i.plan]:g,[f.i.billingPeriod]:L??null,[d.Zq.billingActionSuccess]:null}}}),navigateToNewSubscriptionInput:()=>(0,e.D6)({commands:[o,P],extras:{replaceUrl:!0}}),navigateToNewSubscriptionReview:()=>(0,e.D6)({commands:[o,P,"review"],extras:{replaceUrl:!0}}),navigateToChangeSubscriptionPlan:g=>(0,e.D6)({commands:[o,h],extras:{replaceUrl:!0,queryParams:{[S.c.plan]:g,[d.Zq.billingActionSuccess]:null}}}),navigateToChangeSubscriptionPlanInput:()=>(0,e.D6)({commands:[o,h],extras:{replaceUrl:!0}}),navigateToChangeSubscriptionPlanReview:()=>(0,e.D6)({commands:[o,h,"review"],extras:{replaceUrl:!0}}),navigateToChangeSubscriptionBillingPeriod:g=>(0,e.D6)({commands:[o,m],extras:{replaceUrl:!0,queryParams:{[b.U.billingPeriod]:g,[d.Zq.billingActionSuccess]:null}}}),navigateToChangeSubscriptionBillingPeriodInput:()=>(0,e.D6)({commands:[o,m],extras:{replaceUrl:!0}}),navigateToChangeSubscriptionBillingPeriodReview:()=>(0,e.D6)({commands:[o,m,"review"],extras:{replaceUrl:!0}}),navigateToRenewewSubscription:()=>(0,e.D6)({commands:[o,T],extras:{replaceUrl:!0}}),navigateToRenewewSubscriptionReview:()=>(0,e.D6)({commands:[o,T,"review"],extras:{replaceUrl:!0}}),navigateToCancelSubscription:g=>(0,e.D6)({commands:[o,t],extras:{replaceUrl:!0,queryParams:{[c.Z.immediately]:g,[d.Zq.billingActionSuccess]:null}}}),navigateToBillingOverview:g=>(0,e.D6)({commands:[o,v],extras:{replaceUrl:!0,queryParams:g?{[d.Zq.billingActionSuccess]:g}:{}}}),navigateToExplorePlans:()=>(0,e.D6)({commands:[o,I],extras:{replaceUrl:!0}}),navigateToPaymentMethods:()=>(0,e.D6)({commands:[o,a],extras:{replaceUrl:!0}})}}}]);

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.