1import{L as P}from"./exam-BtOLG55O.js";import{S as j}from"./SiteLogo-CJUXy43L.js";import{_ as I,ap as L,u as C,aj as A,a4 as F,a8 as S,ak as Y,c as i,b as e,D as W,e as d,t as l,F as f,r as u,I as g,R as q,a as m,f as p,w,v as T,d as b,h as x,k as v,N as z,O as E,o as c,aq as N,i as B}from"./index-6P0cCGxP.js";import{b as H,c as V,s as K,t as U,d as G,e as J,l as D,p as Q,a as X,r as Z,i as $,f as ee,D as te,C as se,n as oe}from"./cancel_flow-ZBJl8XMR.js";const ae=4e3,M="Sorry, we couldnât apply that just now. Please try again.",O="Sorry, we couldnât cancel that just now. Please try again.",R="Sorry, we couldnât send that just now. Please try again.",ne={name:"CancelFlow",props:{subscriptionId:{type:String,default:null}},emits:["unavailable"],data(){return{flowId:oe(),step:"loss",subscription:null,offer:null,offerSettled:!1,reason:null,comment:"",stats:{tests:0,scoreChange:null,solutions:0},nextTests:[],busy:!1,error:null,commentLimit:se,searchRoute:null,sentFor:null}},computed:{cancelHost(){return Y()||{}},done(){return te.includes(this.step)},progress(){return ee(this.step)},lowUsage(){return $(this.stats)},reasons(){return Z(this.offer)},interval(){return this.offer&&this.offer.interval||this.subscription&&this.subscription.interval||"year"},period(){return X(this.interval)},currency(){return this.offer&&this.offer.currency||this.subscription&&this.subscription.currency||null},renewDate(){return D(this.offer&&this.offer.renewsOn||this.subscription&&this.subscription.periodEnd)},planWord(){return S()},planText(){return Q(S(),this.interval)},full(){const a=this.offer&&this.offer.fullAmount!=null?this.offer.fullAmount:this.subscription&&this.subscription.amount;return this.money(a,this.currency)},half(){return this.money(this.offer&&this.offer.offerAmount,this.currency)},refundOffer(){return this.offer&&this.offer.refundOffer||{}},refundAmount(){return this.money(this.refundOffer.amount,this.refundOffer.currency||this.currency)},renewalCharge(){const a=this.refundOffer.chargedAmount!=null?this.refundOffer.chargedAmount:this.subscription&&this.subscription.amount;return this.money(a,this.refundOffer.currency||this.currency)},renewedOn(){return D(this.refundOffer.renewedOn||this.subscription&&this.subscription.periodStart)},tiles(){const a=[{key:"tests",value:String(this.stats.tests),label:"tests finished"}];return this.stats.scoreChange&&a.push({key:"score",value:`+${this.stats.scoreChange.points} pts`,label:`${this.stats.scoreChange.label} score since your first test`,good:!0}),this.stats.solutions>0&&a.push({key:"solutions",value:String(this.stats.solutions),label:"worked solutions you can reopen"}),a},lockedLines(){return["Full worked solutions for the tests youâve taken","Your progress dashboard and score trends","Every test beyond the first in each package"]},includedLines(){return["Every test in every package, timed or untimed","Full worked solutions for every question","A dashboard that tracks your scores as you practise"]},offerLines(){return["Every test and question","Full worked solutions","Your progress dashboard"]},finishedLines(){return["Your results and history stay in your account, ready for your next move.",`You keep full access until ${this.renewDate}, so you can still brush up before day one.`,"Come back any time. Sign in with the same email and everything is where you left it."]},nextTest(){return this.nextTests[0]||null}},watch:{step(){this.error=null,this.focusHeading()}},created(){this.searchRoute=this.safe(()=>typeof this.cancelHost.searchRoute=="function"?this.cancelHost.searchRoute():null,null),this.stats=J(F(this.safe(()=>C().data.attempts(),[]))),this.load()},methods:{testLine:V,testMeta:H,safe(a,s){try{const h=a();return h===void 0?s:h}catch{return s}},call(a,...s){try{const h=this.cancelHost[a];return typeof h!="function"?Promise.reject(new Error(`testplatform: host.cancel.${a} is missing`)):Promise.resolve(h(...s))}catch(h){return Promise.reject(h)}},load(){this.call("subscription",this.subscriptionId).catch(()=>null).then(a=>{if(!G(a)){this.$emit("unavailable",a||null),this.leaveTo(L()||this.dashboardRoute());return}this.subscription=a,this.record("started"),this.track("loss_shown"),this.focusHeading()}),this.offerPromise=this.call("offer",this.subscriptionId).catch(()=>null).then(a=>{this.offer=a&&typeof a=="object"?a:null,this.offerSettled=!0}),this.call("nextTests").then(a=>{this.nextTests=Array.isArray(a)?a.filter(s=>s&&s.name&&s.to).slice(0,3):[]}).catch(()=>{this.nextTests=[]})},money(a,s){return a==null||!s?"":this.safe(()=>this.cancelHost.formatMoney(a,s),"")},dashboardRoute(){return this.safe(()=>C().routes.dashboard(),"/")},focusHeading(){this.$nextTick(()=>{const a=this.$refs.heading,s=Array.isArray(a)?a[0]:a;s&&typeof s.focus=="function"&&s.focus()})},go(a){this.step=a},record(a,s={}){if(!this.subscription)return Promise.resolve(null);const h={flowId:this.flowId,event:a,reason:this.reason||null,comment:s.comment||null};try{return this.call("recordEvent",this.subscription&&this.subscription.id,h).catch(n=>{if(s.required)throw n;return null})}catch(k){return s.required?Promise.reject(k):Promise.resolve(null)}},track(a){try{C().tracker.trackEvent(U(a,this.reason,A()))}catch{}},run(a,s){return this.busy?Promise.resolve():(this.busy=!0,this.error=null,a().catch(()=>{this.error=s}).finally(()=>{this.busy=!1}))},leaveTo(a){this.$router&&a&&this.$router.push(a)},keep(){this.record("kept"),this.track("kept"),this.leaveTo(L()||this.dashboardRoute())},keepToDashboard(){this.record("kept"),this.track("kept"),this.leaveTo(this.dashboardRoute())},leaveForTest(){this.done||(this.record("kept"),this.track("kept"))},toDashboard(){this.leaveTo(this.dashboardRoute())},toReason(){if(this.busy)return;const a=new Promise(s=>setTimeout(s,ae));this.busy=!0,Promise.race([this.offerPromise||Promise.resolve(),a]).then(()=>{this.busy=!1,this.go("reason")})},toRespond(){if(!this.reason)return;this.comment="",this.sentFor=null,this.record("reason_chosen"),this.track("reason_chosen");const a=K(this.reason,this.offer);a!=="confirm"&&(this.record("response_shown"),this.track("response_shown")),this.go(a),a==="confirm"&&this.track("confirm_shown")},toConfirm(){this.go("confirm"),this.track("confirm_shown")},declineOffer(){this.record("offer_declined"),this.track("offer_declined"),this.toConfirm()},acceptOffer(){return this.run(()=>this.call("acceptOffer",this.subscription.id,{flowId:this.flowId,reason:this.reason,source:"flow"}).then(a=>{a&&typeof a=="object"&&a.offerAmount!=null&&(this.offer={...this.offer,...a}),this.track("offer_accepted"),this.go("saved")}),M)},send(a){const s=this.comment.trim();return!s||this.sentFor===`${a}:${s}`?Promise.resolve():this.record(a,{comment:s,required:!0}).then(()=>{this.sentFor=`${a}:${s}`,this.track(a)})},sendSupport(){if(this.comment.trim())return this.run(()=>this.send("support_sent").then(()=>this.go("support_sent")),R)},sendAndConfirm(a){return this.run(()=>this.send(a).then(()=>this.toConfirm()),R)},keepWithRequest(){return this.run(()=>this.send("missing_test_sent").then(()=>this.keep()),R)},confirmCancel(){return this.run(()=>this.call("cancel",this.subscription.id,{flowId:this.flowId,reason:this.reason,comment:this.comment.trim()||null}).then(()=>{this.track("confirmed"),this.go("cancelled")}),O)},keepRenewedPeriod(){return this.run(()=>this.call("cancel",this.subscription.id,{flowId:this.flowId,reason:"didnt_mean_to_renew",comment:null}).then(()=>{this.track("renewal_kept"),this.go("renewal_kept")}),O)},takeRefund(){return this.run(()=>this.call("acceptRefund",this.subscription.id,{flowId:this.flowId}).then(a=>{a&&typeof a=="object"&&a.amount!=null&&(this.offer={...this.offer,refundOffer:{...this.refundOffer,...a}}),this.track("refund_accepted"),this.go("refunded")}),M)},resume(){return this.run(()=>this.call("resume",this.subscription.id,{flowId:this.flowId}).then(()=>{this.track("resumed"),this.go("resumed")}),M)}}},r=a=>(z("data-v-3e7e30b9"),a=a(),E(),a),ce=["data-step","aria-busy"],re={class:"cf-header"},ie={class:"cf-logo"},le=["disabled"],de=r(()=>e("span",{class:"cf-exit-long"},"Keep my membership",-1)),he=r(()=>e("span",{class:"cf-exit-short"},"Keep membership",-1)),fe=r(()=>e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true"},[e("path",{d:"M6 6l12 12M18 6L6 18"})],-1)),ue=[de,he,fe],be={key:0,class:"cf-progress","data-test":"progress"},_e={class:"cf-progress-text"},pe=["aria-valuenow"],me={key:0,class:"cf-step","data-test":"step-loss"},ye={class:"cf-head"},ve=r(()=>e("div",{class:"cf-mark"},null,-1)),ke={ref:"heading",tabindex:"-1",class:"cf-h1"},ge={class:"cf-lead"},we=["data-test"],xe={class:"cf-tile-label"},Ce={class:"cf-list"},Te=r(()=>e("svg",{class:"cf-icon cf-icon--bad",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"}),e("path",{d:"M8 11V7a4 4 0 018 0v4"})],-1)),Me={class:"cf-actions"},Re=["disabled"],Le={key:1,class:"cf-step","data-test":"step-loss-new"},Se={class:"cf-head"},Be=r(()=>e("div",{class:"cf-mark"},null,-1)),De={ref:"heading",tabindex:"-1",class:"cf-h1"},Oe={class:"cf-lead"},Ie={class:"cf-list"},Pe=r(()=>
1e("svg",{class:"cf-icon cf-icon--good",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M5 12.5l4.5 4.5L19 7"})],-1)),je={key:0,class:"cf-next","data-test":"next-test"},Ae=r(()=>e("div",{class:"cf-next-icon"},[e("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M8 5v14l11-7z"})])],-1)),Fe={class:"cf-next-copy"},Ye=r(()=>e("div",{class:"cf-next-eyebrow"},"A good place to start",-1)),We={class:"cf-next-name"},qe={class:"cf-actions"},ze=["disabled"],Ee={key:2,class:"cf-step","data-test":"step-reason"},Ne={class:"cf-head"},He=r(()=>e("div",{class:"cf-mark"},null,-1)),Ve={id:"cf-reason-title",ref:"heading",tabindex:"-1",class:"cf-h1"},Ke=r(()=>e("p",{class:"cf-lead"},"Your answer helps us improve, and there may be something we can do.",-1)),Ue={role:"radiogroup","aria-labelledby":"cf-reason-title",class:"cf-reasons"},Ge=["value","data-test"],Je=r(()=>e("span",{class:"cf-dot","aria-hidden":"true"},[e("span")],-1)),Qe={class:"cf-actions"},Xe=["disabled"],Ze={key:3,class:"cf-step","data-test":"step-renewal"},$e={class:"cf-head"},et=r(()=>e("div",{class:"cf-mark"},null,-1)),tt={ref:"heading",tabindex:"-1",class:"cf-h1"},st={class:"cf-lead"},ot={class:"cf-choices"},at={class:"cf-choice cf-choice--main"},nt=r(()=>e("span",{class:"cf-chip cf-chip--accent"},"Most people choose this",-1)),ct={class:"cf-choice-title"},rt={class:"cf-choice-copy"},it=["disabled"],lt={class:"cf-choice"},dt=r(()=>e("span",{class:"cf-chip"},"One-time offer",-1)),ht={class:"cf-choice-title"},ft={class:"cf-choice-copy"},ut=["disabled"],bt=r(()=>e("p",{class:"cf-small cf-small--tight"},"Our terms donât include refunds once a membership renews. This is a one-time gesture because you havenât used it since.",-1)),_t={key:0,class:"cf-error",role:"alert","data-test":"error"},pt={class:"cf-actions"},mt=["disabled"],yt={key:4,class:"cf-step","data-test":"step-offer"},vt={class:"cf-head"},kt=r(()=>e("div",{class:"cf-mark"},null,-1)),gt={ref:"heading",tabindex:"-1",class:"cf-h1"},wt={class:"cf-lead","data-test":"offer-lead"},xt={ref:"heading",tabindex:"-1",class:"cf-h1"},Ct={class:"cf-lead","data-test":"offer-lead"},Tt={class:"cf-offer"},Mt={class:"cf-offer-price"},Rt={class:"cf-offer-eyebrow"},Lt={class:"cf-offer-amounts"},St={class:"cf-offer-half","data-test":"offer-half"},Bt={class:"cf-offer-full","data-test":"offer-full"},Dt={class:"cf-offer-renews"},Ot={class:"cf-offer-list"},It=r(()=>e("svg",{class:"cf-icon cf-icon--good",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M5 12.5l4.5 4.5L19 7"})],-1)),Pt=r(()=>e("p",{class:"cf-small cf-small--tight"},"Nothing is charged today. The discount applies once, to your next renewal. A one-time offer.",-1)),jt={key:0,class:"cf-error",role:"alert","data-test":"error"},At={class:"cf-actions"},Ft=["disabled"],Yt=["disabled"],Wt={key:5,class:"cf-step","data-test":"step-not-using"},qt={class:"cf-head"},zt=r(()=>e("div",{class:"cf-mark"},null,-1)),Et={ref:"heading",tabindex:"-1",class:"cf-h1"},Nt={class:"cf-lead"},Ht={key:0,class:"cf-tests"},Vt={class:"cf-test-copy"},Kt={class:"cf-test-name"},Ut={class:"cf-test-meta"},Gt={class:"cf-actions"},Jt={key:6,class:"cf-step","data-test":"step-missing"},Qt={class:"cf-head"},Xt=r(()=>e("div",{class:"cf-mark"},null,-1)),Zt={ref:"heading",tabindex:"-1",class:"cf-h1"},$t=r(()=>e("p",{class:"cf-lead"},"Tell us the employer or test name. We use these requests to decide what to add next.",-1)),es={class:"cf-field"},ts=r(()=>e("label",{for:"cf-missing-test",class:"cf-label"},"Employer or test",-1)),ss=["maxlength"],os={key:0,class:"cf-hint"},as={key:0,class:"cf-error",role:"alert","data-test":"error"},ns={class:"cf-actions"},cs=["disabled"],rs=["disabled"],is={key:7,class:"cf-step","data-test":"step-tech"},ls={class:"cf-head"},ds=r(()=>e("div",{class:"cf-mark"},null,-1)),hs={ref:"heading",tabindex:"-1",class:"cf-h1"},fs=r(()=>e("p",{class:"cf-lead"},"Tell us what went wrong and a real person will reply by email within five business days.",-1)),us={class:"cf-field"},bs=r(()=>e("label",{for:"cf-what-wrong",class:"cf-label"}
1,"What went wrong?",-1)),_s=["maxlength"],ps={key:0,class:"cf-error",role:"alert","data-test":"error"},ms={class:"cf-actions"},ys=["disabled"],vs=["disabled"],ks={key:8,class:"cf-step cf-step--center","data-test":"step-finished"},gs=v('<div class="cf-medal cf-medal--mark" aria-hidden="true" data-v-3e7e30b9><svg class="cf-confetti" width="132" height="132" viewBox="0 0 132 132" fill="none" data-v-3e7e30b9><circle cx="66" cy="66" r="64" class="cf-ring-outer" data-v-3e7e30b9></circle><circle cx="66" cy="66" r="48" class="cf-ring-inner" data-v-3e7e30b9></circle><path d="M18 22l3 7 7 3-7 3-3 7-3-7-7-3 7-3z" class="cf-fx-mark" data-v-3e7e30b9></path><path d="M112 16l2 5 5 2-5 2-2 5-2-5-5-2 5-2z" class="cf-fx-accent" data-v-3e7e30b9></path><path d="M116 100l2 4 4 2-4 2-2 4-2-4-4-2 4-2z" class="cf-fx-mark" data-v-3e7e30b9></path><circle cx="14" cy="96" r="4" class="cf-fx-accent" data-v-3e7e30b9></circle><circle cx="104" cy="122" r="3" class="cf-fx-good" data-v-3e7e30b9></circle></svg><div class="cf-medal-core" data-v-3e7e30b9><svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-3e7e30b9><path d="M8 21h8M12 17v4M7 4h10v5a5 5 0 01-10 0V4zM7 6H4v2a3 3 0 003 3M17 6h3v2a3 3 0 01-3 3" data-v-3e7e30b9></path></svg></div></div>',1),ws={class:"cf-head cf-head--center"},xs={ref:"heading",tabindex:"-1",class:"cf-h1 cf-h1--big"},Cs=r(()=>e("p",{class:"cf-lead cf-lead--big"},"Whether youâve landed the job or youâre ready for the big day, this is what all that practice was for. Good luck with what comes next.",-1)),Ts={class:"cf-card cf-card--left"},Ms=r(()=>e("div",{class:"cf-card-title"},"Whenever you need us again",-1)),Rs=r(()=>e("svg",{class:"cf-icon cf-icon--good",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M5 12.5l4.5 4.5L19 7"})],-1)),Ls={class:"cf-actions cf-actions--center"},Ss={key:9,class:"cf-step","data-test":"step-other"},Bs={class:"cf-head"},Ds=r(()=>e("div",{class:"cf-mark"},null,-1)),Os={ref:"heading",tabindex:"-1",class:"cf-h1"},Is=r(()=>e("p",{class:"cf-lead"},"Optional. We read every one.",-1)),Ps={class:"cf-field"},js=r(()=>e("label",{for:"cf-other-reason",class:"cf-label"},"Your reason",-1)),As=["maxlength"],Fs={class:"cf-actions"},Ys={key:10,class:"cf-step","data-test":"step-confirm"},Ws={class:"cf-head"},qs=r(()=>e("div",{class:"cf-mark"},null,-1)),zs={ref:"heading",tabindex:"-1",class:"cf-h1"},Es={class:"cf-facts"},Ns={class:"cf-fact"},Hs=r(()=>e("dt",null,"Plan",-1)),Vs={class:"cf-fact"},Ks=r(()=>e("dt",null,"Full access until",-1)),Us=r(()=>e("div",{class:"cf-fact"},[e("dt",null,"Future payments"),e("dd",null,"None")],-1)),Gs=r(()=>e("p",{class:"cf-small"},"After that date you move to a free account. Your results and history stay in your account.",-1)),Js={key:0,class:"cf-error",role:"alert","data-test":"error"},Qs={class:"cf-actions"},Xs=["disabled"],Zs=["disabled"],$s={key:11,class:"cf-step cf-step--center","data-test":"step-saved"},eo=v('<div class="cf-medal cf-medal--good" aria-hidden="true" data-v-3e7e30b9><svg class="cf-confetti" width="132" height="132" viewBox="0 0 132 132" fill="none" data-v-3e7e30b9><circle cx="66" cy="66" r="64" class="cf-ring-outer" data-v-3e7e30b9></circle><circle cx="66" cy="66" r="48" class="cf-ring-inner" data-v-3e7e30b9></circle><path d="M18 22l3 7 7 3-7 3-3 7-3-7-7-3 7-3z" class="cf-fx-mark" data-v-3e7e30b9></path><path d="M112 16l2 5 5 2-5 2-2 5-2-5-5-2 5-2z" class="cf-fx-accent" data-v-3e7e30b9></path><path d="M116 100l2 4 4 2-4 2-2 4-2-4-4-2 4-2z" class="cf-fx-mark" data-v-3e7e30b9></path><circle cx="14" cy="96" r="4" class="cf-fx-accent" data-v-3e7e30b9></circle><circle cx="104" cy="122" r="3" class="cf-fx-good" data-v-3e7e30b9></circle></svg><div class="cf-medal-core" data-v-3e7e30b9><svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round" data-v-3e7e30b9><path d="M5 12.5l4.5 4.5L19 7" data-v-3e7e30b9></path></svg></div></div>',1),to={class:"cf-head cf-head--center"},so={ref:"heading",tabindex:"-1",class:"cf-h1 cf-h1--big"},oo={class:"cf-lead cf-lead--big"},ao={class:"cf-card cf-card--flush"},no={class:"cf-summary cf-summary--3"},co={class:"cf-summary-cell"},ro=r(()=>e("div",{class:"cf-summary-label"},"Your next renewal",-1)),io={class:"cf-summary-value"},lo={class:"cf-summary-cell"},ho=r(()=>e("div",{class:"cf-summary-label"},"Youâll pay",-1)),fo={class:"cf-summary-amounts"},uo={class:"cf-summary-half","data-test":"saved-half"},bo={class:"cf-summary-full"},_o=r(()=>e("div",{class:"cf-summary-cell"},[e("div",{class:"cf-summary-label"},"Today"),e("div",{class:"cf-summary-value"},"Nothing to pay")],-1)),po={class:"cf-perks"},mo=r(()=>
1e("svg",{class:"cf-icon cf-icon--good",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M5 12.5l4.5 4.5L19 7"})],-1)),yo={key:0,class:"cf-next","data-test":"next-test"},vo=r(()=>e("div",{class:"cf-next-icon"},[e("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M8 5v14l11-7z"})])],-1)),ko={class:"cf-next-copy"},go=r(()=>e("div",{class:"cf-next-eyebrow"},"Pick up where you left off",-1)),wo={class:"cf-next-name"},xo={key:12,class:"cf-step cf-step--center","data-test":"step-renewal-kept"},Co=r(()=>e("div",{class:"cf-badge cf-badge--good","aria-hidden":"true"},[e("div",null,[e("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.8","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12.5l4.5 4.5L19 7"})])])],-1)),To={class:"cf-head cf-head--center"},Mo={ref:"heading",tabindex:"-1",class:"cf-h1 cf-h1--big"},Ro={class:"cf-lead cf-lead--big"},Lo={key:0,class:"cf-next","data-test":"next-test"},So=r(()=>e("div",{class:"cf-next-icon"},[e("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M8 5v14l11-7z"})])],-1)),Bo={class:"cf-next-copy"},Do=r(()=>e("div",{class:"cf-next-eyebrow"},"Pick up where you left off",-1)),Oo={class:"cf-next-name"},Io={key:13,class:"cf-step cf-step--center","data-test":"step-refunded"},Po=r(()=>e("div",{class:"cf-badge cf-badge--accent","aria-hidden":"true"},[e("div",null,[e("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"2.5",y:"6",width:"19",height:"12",rx:"2"}),e("path",{d:"M2.5 10h19M6.5 15h4"})])])],-1)),jo={class:"cf-head cf-head--center"},Ao=r(()=>e("p",{class:"cf-lead cf-lead--big"},"It usually reaches your card within 5 to 10 business days. Your membership has ended, and your results stay on your free account.",-1)),Fo=r(()=>e("div",{class:"cf-card cf-card--left cf-card--copy"},"Need us again for your next application? Come back any time. Sign in with the same email and everything is where you left it.",-1)),Yo={key:14,class:"cf-step cf-step--center","data-test":"step-support-sent"},Wo=v('<div class="cf-medal cf-medal--accent" aria-hidden="true" data-v-3e7e30b9><svg class="cf-confetti" width="132" height="132" viewBox="0 0 132 132" fill="none" data-v-3e7e30b9><circle cx="66" cy="66" r="64" class="cf-ring-outer" data-v-3e7e30b9></circle><circle cx="66" cy="66" r="48" class="cf-ring-inner" data-v-3e7e30b9></circle><path d="M18 22l3 7 7 3-7 3-3 7-3-7-7-3 7-3z" class="cf-fx-mark" data-v-3e7e30b9></path><path d="M112 16l2 5 5 2-5 2-2 5-2-5-5-2 5-2z" class="cf-fx-accent" data-v-3e7e30b9></path><path d="M116 100l2 4 4 2-4 2-2 4-2-4-4-2 4-2z" class="cf-fx-mark" data-v-3e7e30b9></path><circle cx="14" cy="96" r="4" class="cf-fx-accent" data-v-3e7e30b9></circle><circle cx="104" cy="122" r="3" class="cf-fx-good" data-v-3e7e30b9></circle></svg><div class="cf-medal-core" data-v-3e7e30b9><svg width="34" height="34" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-3e7e30b9><rect x="3" y="5" width="18" height="14" rx="2" data-v-3e7e30b9></rect><path d="M3 7l9 6 9-6" data-v-3e7e30b9></path></svg></div></div>',1),qo={class:"cf-head cf-head--center"},zo={ref:"heading",tabindex:"-1",class:"cf-h1 cf-h1--big"},Eo=r(()=>e("p",{class:"cf-lead cf-lead--big"},"A real person will read your message and help put it right. Your membership hasnât changed.",-1)),No=v('<ol class="cf-card cf-card--left cf-steps" data-v-3e7e30b9><li data-v-3e7e30b9><span class="cf-step-n" data-v-3e7e30b9>1</span><span data-v-3e7e30b9>Your message is with our support team now</span></li><li data-v-3e7e30b9><span class="cf-step-n" data-v-3e7e30b9>2</span><span data-v-3e7e30b9>Weâll reply by email within five business days</span></li><li data-v-3e7e30b9><span class="cf-step-n cf-step-n--good" data-v-3e7e30b9>
1<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-3e7e30b9><path d="M5 12.5l4.5 4.5L19 7" data-v-3e7e30b9></path></svg></span><span data-v-3e7e30b9>Meanwhile, everything in your membership keeps working</span></li></ol>',1),Ho={key:15,class:"cf-step cf-step--cancelled","data-test":"step-cancelled"},Vo={class:"cf-head"},Ko=r(()=>e("div",{class:"cf-mark"},null,-1)),Uo={ref:"heading",tabindex:"-1",class:"cf-h1"},Go={class:"cf-lead"},Jo={key:0,class:"cf-error",role:"alert","data-test":"error"},Qo={class:"cf-actions"},Xo=["disabled"],Zo={key:16,class:"cf-step cf-step--center","data-test":"step-resumed"},$o=v('<div class="cf-medal cf-medal--good" aria-hidden="true" data-v-3e7e30b9><svg class="cf-confetti" width="132" height="132" viewBox="0 0 132 132" fill="none" data-v-3e7e30b9><circle cx="66" cy="66" r="64" class="cf-ring-outer" data-v-3e7e30b9></circle><circle cx="66" cy="66" r="48" class="cf-ring-inner" data-v-3e7e30b9></circle><path d="M18 22l3 7 7 3-7 3-3 7-3-7-7-3 7-3z" class="cf-fx-mark" data-v-3e7e30b9></path><path d="M112 16l2 5 5 2-5 2-2 5-2-5-5-2 5-2z" class="cf-fx-accent" data-v-3e7e30b9></path><path d="M116 100l2 4 4 2-4 2-2 4-2-4-4-2 4-2z" class="cf-fx-mark" data-v-3e7e30b9></path><circle cx="14" cy="96" r="4" class="cf-fx-accent" data-v-3e7e30b9></circle><circle cx="104" cy="122" r="3" class="cf-fx-good" data-v-3e7e30b9></circle></svg><div class="cf-medal-core" data-v-3e7e30b9><svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round" data-v-3e7e30b9><path d="M5 12.5l4.5 4.5L19 7" data-v-3e7e30b9></path></svg></div></div>',1),ea={class:"cf-head cf-head--center"},ta={ref:"heading",tabindex:"-1",class:"cf-h1 cf-h1--big"},sa=r(()=>e("p",{class:"cf-lead cf-lead--big"},"Your membership is active again, with everything just as you left it.",-1)),oa={class:"cf-card cf-card--flush"},aa={class:"cf-summary cf-summary--2"},na=r(()=>e("div",{class:"cf-summary-cell"},[e("div",{class:"cf-summary-label"},"Membership"),e("div",{class:"cf-summary-value cf-summary-value--good"},"Active")],-1)),ca={class:"cf-summary-cell"},ra=r(()=>e("div",{class:"cf-summary-label"},"Renews",-1)),ia={class:"cf-summary-value"},la={class:"cf-perks"},da=r(()=>e("svg",{class:"cf-icon cf-icon--good",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M5 12.5l4.5 4.5L19 7"})],-1)),ha={key:0,class:"cf-next","data-test":"next-test"},fa=r(()=>e("div",{class:"cf-next-icon"},[e("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e("path",{d:"M8 5v14l11-7z"})])],-1)),ua={class:"cf-next-copy"},ba=r(()=>e("div",{class:"cf-next-eyebrow"},"Pick up where you left off",-1)),_a={class:"cf-next-name"};function pa(a,s,h,k,n,t){const _=x("router-link");return c(),i("div",{class:"cf","data-test":"cancel-flow","data-step":n.step,"aria-busy":n.subscription?null:"true"},[e("header",re,[e("div",ie,[W(a.$slots,"logo",{},void 0,!0)]),t.done?d("",!0):(c(),i("button",{key:0,type:"button",class:"cf-exit","aria-label":"Close and keep my membership",disabled:n.busy,"data-test":"header-keep",onClick:s[0]||(s[0]=(...o)=>t.keep&&t.keep(...o))},ue,8,le))]),n.subscription&&!t.done?(c(),i("div",be,[e("div",_e,[e("span",null,"Step "+l(t.progress.number)+" of 3",1),e("span",null,l(t.progress.name),1)]),e("div",{class:"cf-progress-bar",role:"progressbar","aria-label":"Progress","aria-valuenow":t.progress.number,"aria-valuemin":"1","aria-valuemax":"3"},[(c(),i(f,null,u(3,o=>e("span",{key:o,class:g(["cf-seg",{"cf-seg--on":o<=t.progress.number}])},null,2)),64))],8,pe)])):d("",!0),n.subscription?(c(),i("main",{key:1,class:g(["cf-body",{"cf-body--done":t.done}])},[n.step==="loss"&&!t.lowUsage?(c(),i("section",me,[e("div",ye,[ve,e("h1",ke,"Before you go, look how far youâve come",512),e("p",ge,"Your membership is paid until "+l(t.renewDate)+". If you cancel, this is what locks when it ends.",1)]),t.tiles.length?(c(),i("div",{key:0,class:"cf-tiles",style:q({gridTemplateColumns:`repeat(${t.tiles.length}, minmax(0, 1fr))`}),"data-test":"loss-tiles"},[(c(!0),i(f,null,u(t.tiles,o=>(c(),i("div",{key:o.key,class:"cf-tile","data-test":`tile-${o.key}`},[e("div",{class:g(["cf-tile-value",{"cf-tile-value--good":o.good}])},l(o.value),3),e("div",xe,l(o.label),1)],8,we))),128))],4)):d("",!0),e("ul",Ce,[(c(!0),i(f,null,u(t.lockedLines,o=>(c(),i("li",{key:o,class:"cf-list-row"},[Te,e("span",null,l(o),1)]))),128))]),e("div",Me,[e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"keep",onClick:s[1]||(s[1]=(...o)=>t.keep&&t.keep(...o))},"Keep my membership"),e("button",{type:"button",class:"cf-btn cf-btn--quiet",disabled:n.busy,"data-test":"continue",onClick:s[2]||(s[2]=(...o)=>t.toReason&&t.toReason(...o))},"Continue to cancel",8,Re)])])):n.step==="loss"?(c(),i("section",Le,[e("div",Se,[Be,e("h1",De,"Youâve only just started",512),e("p",Oe,"Your membership is paid until "+l(t.renewDate)+". Everything below is yours until then.",1)]),e("ul",Ie,[(c(!0),i(f,null,u(t.includedLines,o=>(c(),i("li",{key:o,class:"cf-list-row"},[Pe,e("span",null,l(o),1)]))),128))]),t.nextTest?(c(),i("div",je,[Ae,e
1("div",Fe,[Ye,e("div",We,l(t.testLine(t.nextTest)),1)]),m(_,{to:t.nextTest.to,class:"cf-next-btn",onClick:t.leaveForTest},{default:p(()=>[b("Start now")]),_:1},8,["to","onClick"])])):d("",!0),e("div",qe,[e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"keep",onClick:s[3]||(s[3]=(...o)=>t.keep&&t.keep(...o))},"Keep my membership"),e("button",{type:"button",class:"cf-btn cf-btn--quiet",disabled:n.busy,"data-test":"continue",onClick:s[4]||(s[4]=(...o)=>t.toReason&&t.toReason(...o))},"Continue to cancel",8,ze)])])):n.step==="reason"?(c(),i("section",Ee,[e("div",Ne,[He,e("h1",Ve,"Whatâs the main reason youâre leaving?",512),Ke]),e("div",Ue,[(c(!0),i(f,null,u(t.reasons,o=>(c(),i("label",{key:o.key,class:g(["cf-reason",{"cf-reason--on":n.reason===o.key}])},[w(e("input",{"onUpdate:modelValue":s[5]||(s[5]=y=>n.reason=y),class:"cf-radio",type:"radio",name:"cf-reason",value:o.key,"data-test":`reason-${o.key}`},null,8,Ge),[[N,n.reason]]),Je,e("span",null,l(o.label),1)],2))),128))]),e("div",Qe,[e("button",{type:"button",class:"cf-btn cf-btn--primary cf-btn--wide",disabled:!n.reason,"data-test":"reason-continue",onClick:s[6]||(s[6]=(...o)=>t.toRespond&&t.toRespond(...o))},"Continue",8,Xe),e("button",{type:"button",class:"cf-btn cf-btn--quiet","data-test":"back",onClick:s[7]||(s[7]=o=>t.go("loss"))},"Back")])])):n.step==="renewal"?(c(),i("section",Ze,[e("div",$e,[et,e("h1",tt,"Re
1newals can catch anyone out",512),e("p",st,"Your membership renewed on "+l(t.renewedOn)+" for "+l(t.renewalCharge)+", and you havenât used it since. Choose what suits you best.",1)]),e("div",ot,[e("div",at,[nt,e("div",ct,"Keep the "+l(t.period)+" youâve paid for",1),e("div",rt,"Full access until "+l(t.renewDate)+". Weâll switch off auto-renew now, so it wonât renew again.",1),e("button",{type:"button",class:"cf-btn cf-btn--primary cf-choice-btn",disabled:n.busy,"data-test":"renewal-keep",onClick:s[8]||(s[8]=(...o)=>t.keepRenewedPeriod&&t.keepRenewedPeriod(...o))},"Keep my "+l(t.period)+", stop renewals",9,it)]),e("div",lt,[dt,e("div",ht,"Take "+l(t.refundAmount)+" back now",1),e("div",ft,"Weâll refund half to your card today. "+l(t.planWord)+" ends now, and your results stay on a free account.",1),e("button",{type:"button",class:"cf-btn cf-btn--outline cf-choice-btn",disabled:n.busy,"data-test":"renewal-refund",onClick:s[9]||(s[9]=(...o)=>t.takeRefund&&t.takeRefund(...o))},"Refund "+l(t.refundAmount)+" and end it",9,ut)])]),bt,n.error?(c(),i("p",_t,l(n.error),1)):d("",!0),e("div",pt,[e("button",{type:"button",class:"cf-btn cf-btn--quiet",disabled:n.busy,"data-test":"back",onClick:s[10]||(s[10]=o=>t.go("reason"))},"Back",8,mt)])])):n.step==="offer"?(c(),i("section",yt,[e("div",vt,[kt,n.reason==="only_needed_once"?(c(),i(f,{key:0},[e("h1",gt,"Keep it ready for your next application",512),e("p",wt,"Your results, solutions and dashboard stay exactly where they are, and your next "+l(t.period)+" costs half.",1)],64)):(c(),i(f,{key:1},[e("h1",xt,"Stay for half price",512),e("p",Ct,"Weâd rather keep you. Stay a member and your next "+l(t.period)+" costs half.",1)],64))]),e("div",Tt,[e("div",Mt,[e("span",Rt,"Your next "+l(t.period),1),e("div",Lt,[e("span",St,l(t.half),1),e("s",Bt,l(t.full),1)]),e("span",Dt,"Renews "+l(t.renewDate),1)]),e("ul",Ot,[(c(!0),i(f,null,u(t.offerLines,o=>(c(),i("li",{key:o},[It,b(l(o),1)]))),128))])]),Pt,n.error?(c(),i("p",jt,l(n.error),1)):d("",!0),e("div",At,[e("button",{type:"button",class:"cf-btn cf-btn--primary",disabled:n.busy,"data-test":"accept-offer",onClick:s[11]||(s[11]=(...o)=>t.acceptOffer&&t.acceptOffer(...o))},"Keep my membership for "+l(t.half),9,Ft),e("button",{type:"button",class:"cf-btn cf-btn--quiet",disabled:n.busy,"data-test":"decline-offer",onClick:s[12]||(s[12]=(...o)=>t.declineOffer&&t.declineOffer(...o))},"No thanks, continue to cancel",8,Yt)])])):n.step==="not_using"?(c(),i("section",Wt,[e("div",qt,[zt,e("h1",Et,"Pick up where you left off",512),e("p",Nt,"You have full access until "+l(t.renewDate)+". One of these is a good place to pick up, based on what youâve practised.",1)]),n.nextTests.length?(c(),i("ul",Ht,[(c(!0),i(f,null,u(n.nextTests,(o,y)=>(c(),i("li",{key:y,class:"cf-test","data-test":"next-test-row"},[e("div",Vt,[e("div",Kt,l(o.name),1),e("div",Ut,l(t.testMeta(o)),1)]),m(_,{to:o.to,class:"cf-test-btn",onClick:t.leaveForTest},{default:p(()=>[b("Start")]),_:2},1032,["to","onClick"])]))),128))])):d("",!0),e("div",Gt,[e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"go-dashboard",onClick:s[13]||(s[13]=(...o)=>t.keepToDashboard&&t.keepToDashboard(...o))},"Go to my dashboard"),e("button",{type:"button",class:"cf-btn cf-btn--quiet","data-test":"to-confirm",onClick:s[14]||(s[14]=(...o)=>t.toConfirm&&t.toConfirm(...o))},"Continue to cancel")])])):n.step==="missing"?(c(),i("section",Jt,[e("div",Qt,[Xt,e("h1",Zt,"Which test do you need?",512),$t]),e("div",es,[ts,w(e("input",{id:"cf-missing-test","onUpdate:modelValue":s[15]||(s[15]=o=>n.comment=o),type:"text",class:"cf-input",maxlength:n.commentLimit,placeholder:"For example, Watson Glaser or Deloitte","data-test":"comment"},null,8,ss),[[T,n.comment]]),n.searchRoute?(c(),i("span",os,[b("It may already be here under another name. "),m(_,{to:n.searchRoute,class:"cf-link",onClick:t.leaveForTest},{default:p(()=>[b("Search all packages")]),_:1},8,["to","onClick"])])):d("",!0)]),n.error?(c(),i("p",as,l(n.error),1)):d("",!0),e("div",ns,[e("button",{type:"button",class:"cf-btn cf-btn--primary",disabled:n.busy,"data-test":"keep",onClick:s[16]||(s[16]=(...o)=>t.keepWithRequest&&t.keepWithRequest(...o))},"Keep my membership",8,cs),e("button",{type:"button",class:"cf-btn cf-btn--quiet",disabled:n.busy,"data-test":"to-confirm",onClick:s[17]||(s[17]=o=>t.sendAndConfirm("missing_test_sent"))},"Send and continue to cancel",8,rs)])])):n.step==="tech"?(c(),i("section",is,[e("div",ls,[ds,e("h1",hs,"Sorry about that. Letâs fix it.",512),fs]),e("div",us,[bs,w(e("textarea",{id:"cf-what-wrong","onUpdate:modelValue":s[18]||(s[18]=o=>n.comment=o),rows:"4",class:"cf-input cf-textarea",maxlength:n.commentLimit,placeholder:"For example, a test wouldnât load on my phone","data-test":"comment"},null,8,_s),[[T,n.comment]])]),n.error?(c(),i("p",ps,l(n.error),1)):d("",!0),e("div",ms,[e("button",{type:"button",class:"cf-btn cf-btn--primary",disabled:n.busy||!n.comment.trim(),"data-test":"send-support",onClick:s[19]||(s[19]=(...o)=>t.sendSupport&&t.sendSupport(...o))}
1,"Send to support and keep my membership",8,ys),e("button",{type:"button",class:"cf-btn cf-btn--quiet",disabled:n.busy,"data-test":"to-confirm",onClick:s[20]||(s[20]=o=>t.sendAndConfirm("support_sent"))},"Continue to cancel",8,vs)])])):n.step==="finished"?(c(),i("section",ks,[gs,e("div",ws,[e("h1",xs,"Congratulations! Weâre really pleased for you",512),Cs]),e("div",Ts,[Ms,(c(!0),i(f,null,u(t.finishedLines,o=>(c(),i("div",{key:o,class:"cf-check-line"},[Rs,e("span",null,l(o),1)]))),128))]),e("div",Ls,[e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"to-confirm",onClick:s[21]||(s[21]=(...o)=>t.toConfirm&&t.toConfirm(...o))},"Continue to cancel"),e("button",{type:"button",class:"cf-btn cf-btn--quiet","data-test":"back",onClick:s[22]||(s[22]=o=>t.go("reason"))},"Back")])])):n.step==="other"?(c(),i("section",Ss,[e("div",Bs,[Ds,e("h1",Os,"Anything youâd like to tell us?",512),Is]),e("div",Ps,[js,w(e("textarea",{id:"cf-other-reason","onUpdate:modelValue":s[23]||(s[23]=o=>n.comment=o),rows:"4",class:"cf-input cf-textarea",maxlength:n.commentLimit,"data-test":"comment"},null,8,As),[[T,n.comment]])]),e("div",Fs,[e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"to-confirm",onClick:s[24]||(s[24]=(...o)=>t.toConfirm&&t.toConfirm(...o))},"Continue"),e("button",{type:"button",class:"cf-btn cf-btn--quiet","data-test":"back",onClick:s[25]||(s[25]=o=>t.go("reason"))},"Back")])])):n.step==="confirm"?(c(),i("section",Ys,[e("div",Ws,[qs,e("h1",zs,"Confirm your cancellation",512)]),e("dl",Es,[e("div",Ns,[Hs,e("dd",null,l(t.planText),1)]),e("div",Vs,[Ks,e("dd",null,l(t.renewDate),1)]),Us]),Gs,n.error?(c(),i("p",Js,l(n.error),1)):d("",!0),e("div",Qs,[e("button",{type:"button",class:"cf-btn cf-btn--danger",disabled:n.busy,"data-test":"confirm-cancel",onClick:s[26]||(s[26]=(...o)=>t.confirmCancel&&t.confirmCancel(...o))},"Cancel my membership",8,Xs),e("button",{type:"button",class:"cf-btn cf-btn--outline",disabled:n.busy,"data-test":"keep",onClick:s[27]||(s[27]=(...o)=>t.keep&&t.keep(...o))},"Keep my membership",8,Zs)])])):n.step==="saved"?(c(),i("section",$s,[eo,e("div",to,[e("h1",so,"Great, youâre staying with us",512),e("p",oo,"Your membership carries on exactly as it is, and
1your next "+l(t.period)+" is half price.",1)]),e("div",ao,[e("div",no,[e("div",co,[ro,e("div",io,l(t.renewDate),1)]),e("div",lo,[ho,e("div",fo,[e("span",uo,l(t.half),1),e("s",bo,l(t.full),1)])]),_o]),e("div",po,[(c(!0),i(f,null,u(t.offerLines,o=>(c(),i("span",{key:o},[mo,b(l(o),1)]))),128))])]),t.nextTest?(c(),i("div",yo,[vo,e("div",ko,[go,e("div",wo,l(t.testLine(t.nextTest)),1)]),m(_,{to:t.nextTest.to,class:"cf-next-btn"},{default:p(()=>[b("Start now")]),_:1},8,["to"])])):d("",!0),e("button",{type:"button",class:"cf-btn cf-btn--link","data-test":"to-dashboard",onClick:s[28]||(s[28]=(...o)=>t.toDashboard&&t.toDashboard(...o))},"Back to my dashboard")])):n.step==="renewal_kept"?(c(),i("section",xo,[Co,e("div",To,[e("h1",Mo,"Done. It wonât renew again",512),e("p",Ro,"You keep full access until "+l(t.renewDate)+", and you wonât be charged again. Weâve emailed you a confirmation.",1)]),t.nextTest?(c(),i("div",Lo,[So,e("div",Bo,[Do,e("div",Oo,l(t.testLine(t.nextTest)),1)]),m(_,{to:t.nextTest.to,class:"cf-next-btn"},{default:p(()=>[b("Start now")]),_:1},8,["to"])])):d("",!0),e("button",{type:"button",class:"cf-btn cf-btn--link","data-test":"to-dashboard",onClick:s[29]||(s[29]=(...o)=>t.toDashboard&&t.toDashboard(...o))},"Back to my dashboard")])):n.step==="refunded"?(c(),i("section",Io,[Po,e("div",jo,[e("h1",{ref:"heading",tabindex:"-1",class:"cf-h1 cf-h1--big"}
1,"Your "+l(t.refundAmount)+" refund is on its way",513),Ao]),Fo,e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"to-dashboard",onClick:s[30]||(s[30]=(...o)=>t.toDashboard&&t.toDashboard(...o))},"Back to my dashboard")])):n.step==="support_sent"?(c(),i("section",Yo,[Wo,e("div",qo,[e("h1",zo,"Thanks, itâs with our team",512),Eo]),No,e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"to-dashboard",onClick:s[31]||(s[31]=(...o)=>t.toDashboard&&t.toDashboard(...o))},"Back to my dashboard")])):n.step==="cancelled"?(c(),i("section",Ho,[e("div",Vo,[Ko,e("h1",Uo,"Your membership is cancelled",512),e("p",Go,"You keep full access until "+l(t.renewDate)+" and wonât be charged again. Weâve emailed you a confirmation.",1)]),n.error?(c(),i("p",Jo,l(n.error),1)):d("",!0),e("div",Qo,[e("button",{type:"button",class:"cf-btn cf-btn--primary","data-test":"to-dashboard",onClick:s[32]||(s[32]=(...o)=>t.toDashboard&&t.toDashboard(...o))},"Back to my dashboard"),e("button",{type:"button",class:"cf-btn cf-btn--link",disabled:n.busy,"data-test":"resume",onClick:s[33]||(s[33]=(...o)=>t.resume&&t.resume(...o))},"Changed your mind? Resume my membership",8,Xo)])])):n.step==="resumed"?(c(),i("section",Zo,[$o,e("div",ea,[e("h1",ta,"Welcome back!",512),sa]),e("div",oa,[e("div",aa,[na,e("div",ca,[ra,e("div",ia,l(t.renewDate),1)])]),e("div",la,[(c(!0),i(f,null,u(t.offerLines,o=>(c(),i("span",{key:o},[da,b(l(o),1)]))),128))])]),t.nextTest?(c(),i("div",ha,[fa,e("div",ua,[ba,e("div",_a,l(t.testLine(t.nextTest)),1)]),m(_,{to:t.nextTest.to,class:"cf-next-btn"},{default:p(()=>[b("Start now")]),_:1},8,["to"])])):d("",!0),e("button",{type:"button",class:"cf-btn cf-btn--link","data-test":"to-dashboard",onClick:s[34]||(s[34]=(...o)=>t.toDashboard&&t.toDashboard(...o))},"Back to my dashboard")])):d("",!0)],2)):d("",!0)],8,ce)}const ma=I(ne,[["render",pa],["__scopeId","data-v-3e7e30b9"]]),ya={components:{Layout:P,SiteLogo:j,CancelFlow:ma},head:{title:"Cancel membership",meta:[{name:"robots",content:"noindex"}]},data(){return{ready:!1}},computed:{subscriptionId(){const a=this.$route.query.subscription;return typeof a=="string"&&a?a:null}},created(){(this.$store.state.user&&this.$store.state.user.attempts!==null?Promise.resolve():Promise.resolve(this.$store.dispatch("user/getAttempts"))).catch(()=>{}).then(()=>{this.ready=!0})},methods:{toSettings(){this.$router.replace({name:"settings"})}}},va={class:"text-primary",style:{width:"150px"}};function ka(a,s,h,k,n,t){const _=x("SiteLogo"),o=x("CancelFlow"),y=x("Layout");return c(),B(y,null,{default:p(()=>[n.ready?(c(),B(o,{key:0,"subscription-id":t.subscriptionId,onUnavailable:t.toSettings},{logo:p(()=>[e("div",va,[m(_)])]),_:1},8,["subscription-id","onUnavailable"])):d("",!0)]),_:1})}const Ta=I(ya,[["render",ka]]);export{Ta as default};
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.