PageSourceSearch

https://writing9.com/_next/static/chunks/pages/cancel-subscription-2ba683bed29e0742.js

js writing9.com collected 2026-10-05 09:35:23 UTC 18,357 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7180],{6900:function(e,t,i){"use strict";i.d(t,{$:function(){return P},e:function(){return $}});var s=i(9499),r=i(4730),n=i(8472),a=i.n(n),o=(i(7294),i(9008)),c=i.n(o),l=i(597),x=i(3352),d=i(6744),h=i(1718),m=i(1154),p=i(1751),u=i(4187),j=i(4085),f=i(8626),b=[".root.jsx-777417413{-webkit-text-decoration:none;text-decoration:none;color:black;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex:1;-ms-flex:1;flex:1;min-width:300px;box-shadow:0 0 15px 0px rgba(0,0,0,0.15);border-radius:10px;overflow:hidden;background:white;padding:20px;-webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease;-webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;transition: transform 0.3s ease, box-shadow 0.3s ease;}",".root.jsx-777417413:hover{box-shadow:0 0 20px 0px rgba(0,0,0,0.2);}",".image.jsx-777417413{width:100%;padding-top:55%;position:relative;border-radius:10px;overflow:hidden;}",".image.jsx-777417413 img{border:none;position:absolute;top:0;left:0;height:100%;width:100%;object-fit:cover;-webkit-transition:-webkit-transform 0.3s ease;-webkit-transition:transform 0.3s ease;transition:transform 0.3s ease;}",".root.jsx-777417413:hover .image.jsx-777417413 img{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05);}",".info.jsx-777417413{margin:20px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;}",".title.jsx-777417413{color:black;font-size:24px;font-weight:600;margin-bottom:10px;}",".subtitle.jsx-777417413{color:rgba(0,0,0,0.75);margin:10px 0;}",".description.jsx-777417413{padding:20px 0;margin:20px 0;border-top:1px dashed rgba(0,0,0,0.2);border-bottom:1px dashed rgba(0,0,0,0.2);-webkit-flex:1;-ms-flex:1;flex:1;}",".cat.jsx-777417413{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".cta.jsx-777417413{text-align:center;margin-top:20px;}",".root.jsx-777417413 ul{margin:0;padding:0 20px;}",".root.jsx-777417413 li{margin:10px 0;}",".premium-price.jsx-777417413{color:#28a745;font-weight:bold;background-color:#e6ffe6;padding:1px 5px;border-radius:5px;}","@media (max-width:768px){.root.jsx-777417413{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.image.jsx-777417413{padding-top:55%;min-width:100%;}.info.jsx-777417413{margin:30px 0 0 0px;}}"];b.__hash="777417413";var g=b,y=i(5893),w=function(e){var t=e.image,i=e.title,s=e.subtitle,r=e.howto,n=e.link,o=e.price,c=e.premiumPrice,l=e.cta,x=e.target,d=void 0===x?"_blank":x;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("a",{href:n,target:n?d:void 0,"aria-disabled":!n,className:`jsx-${g.__hash} root`,children:[(0,y.jsx)("div",{className:`jsx-${g.__hash} image`,children:t}),(0,y.jsxs)("div",{className:`jsx-${g.__hash} info`,children:[(0,y.jsx)("div",{className:`jsx-${g.__hash} title`,children:i}),(0,y.jsx)("div",{className:`jsx-${g.__hash} subtitle`,children:s}),(0,y.jsx)("div",{className:`jsx-${g.__hash} description`,children:(0,y.jsxs)("div",{className:`jsx-${g.__hash}`,children:[(0,y.jsx)(j.B,{children:"HOW TO ACTIVATE"}),(0,y.jsx)("div",{className:`jsx-${g.__hash}`,children:r})]})}),(0,y.jsxs)("div",{className:`jsx-${g.__hash} price`,children:[(0,y.jsxs)("div",{className:`jsx-${g.__hash} cat`,children:[(0,y.jsx)(j.B,{children:"Price"}),(0,y.jsx)("span",{className:`jsx-${g.__hash}`,children:o})]}),(0,y.jsxs)("div",{className:`jsx-${g.__hash} cat`,children:[(0,y.jsx)(j.B,{children:"Price for Premium"}),(0,y.jsx)("span",{className:`jsx-${g.__hash} premium-price`,children:c})]})]}),(0,y.jsx)("div",{className:`jsx-${g.__hash} cta`,children:(0,y.jsx)(f.Z,{text:l,theme:"green2",style:{width:"100%"},disabled:!n})})]})]}),(0,y.jsx)(a(),{id:g.__hash,children:g})]})},_=[".root.jsx-251303898{max-width:1280px;margin:0 auto;padding:50px 10px;border-radius:10px;}",".items.jsx-251303898{display:grid;grid-template-columns:repeat(2,1fr);gap:25px;margin:50px 0;-webkit-box-pack:center;
1-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}",".notice.jsx-251303898{text-align:center;font-size:16px;color:#555;margin-bottom:20px;background-color:#f0f0f0;padding:10px;border-radius:5px;}","@media (max-width:768px){.root.jsx-251303898{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.image.jsx-251303898{padding-top:55%;min-width:100%;}.info.jsx-251303898{margin:30px 0 0 0px;}}","@media (max-width:600px){.items.jsx-251303898{grid-template-columns:1fr;}}"];_.__hash="251303898";var k=_,v=["id","link","lockedCta"];function O(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function N(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?O(Object(i),!0).forEach((function(t){(0,s.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var $=[{id:"speakingcourse",price:"$39.99/month",premiumPrice:"Free",title:"Intermediate-Advanced English Speaking Course",subtitle:"This course is a must for people who want to speak fluent English at an advanced level in the near future.",image:(0,y.jsx)("img",{src:"/static/temp/speakingcourse.png",alt:"SpeakingCourse"}),howto:(0,y.jsxs)("ul",{children:[(0,y.jsx)("li",{children:"Download app"}),(0,y.jsx)("li",{children:"Create an account using your Writing9 email"}),(0,y.jsx)("li",{children:"Enjoy the course"})]}),link:"https://getspeakingcourse.com/",cta:"Start the course"},{id:"book",price:"$9.99",premiumPrice:"Free",title:"IELTS Writing Ebook - Band 7+ Guide",subtitle:"The ultimate guide to get a target band score of 7+.",image:(0,y.jsx)("img",{src:"/static/temp/book.png",alt:"The Ultimate Guide to Get a Target Band Score of 7+"}),howto:(0,y.jsxs)("ul",{children:[(0,y.jsx)("li",{children:"Open the link"}),(0,y.jsx)("li",{children:"Choose the right format"}),(0,y.jsx)("li",{children:"Download the book"})]}),link:"https://writing9.com/book",cta:"Download Book"},{id:"speaking9",price:"$9.99",premiumPrice:"Free",title:"Speaking9 - IELTS Speaking Simulator",subtitle:"Prepare for IELTS speaking section in a couple of days.",image:(0,y.jsx)("img",{src:"/static/temp/speaking9.png",alt:"Speaking9"}),howto:(0,y.jsxs)("ul",{children:[(0,y.jsx)("li",{children:"Open checkout"}),(0,y.jsx)("li",{children:'Click "Add discount"'}),(0,y.jsx)("li",{children:"Enter the code: WRITING9"})]}),link:"https://speaking9.com/",cta:"Open Speaking9"},{id:"sublex",price:"$69.99/year",premiumPrice:"Free",title:"IELTS Listening Video Practice",subtitle:"Train your listening with real English videos, interactive subtitles, and a personal vocabulary list.",image:(0,y.jsx)("img",{src:"/static/temp/sublex/ielts-listening-practice.webp",alt:"IELTS Listening Video Practice"}),howto:(0,y.jsxs)("ul",{children:[(0,y.jsx)("li",{children:"Install Sublex and complete onboarding"}),(0,y.jsx)("li",{children:"Return here and tap the button below"}),(0,y.jsx)("li",{children:"Your free access activates automatically"})]}),link:function(e){return!0===(null===e||void 0===e?void 0:e.isPremium)&&e.email?`englishlistening://writing9-access?email=${encodeURIComponent(e.email)}`:null},cta:"Open Sublex for free",lockedCta:"Premium only",target:"_self"},{id:"vocabulary",price:"Only for Premium users",premiumPrice:"Free",title:"IELTS Writing Vocabulary Practice",subtitle:"Practice using essential words for the IELTS exam.",image:(0,y.jsx)("img",{src:"/static/temp/pdf.png",alt:"IELTS Writing Vocabulary PDF"}),howto:(0,y.jsxs)("ul",{children:[(0,y.jsx)("li",{children:"Become Premium"}),(0,y.jsx)("li",{children:"Open the page"})]}),link:(0,p.sz)(),cta:"Open Vocabulary Practice"}],P=function(){var e="Premium Member Exclusive Bonuses",t="Premium members get these bonuses for free, while other users can still access them at regular prices.",i="https://writing9.com/static/og-image.png",s=(0,u.aC)().user;return(0,y.jsxs)(l.Z,{children:[(0,y.jsxs)(c(),{children:[(0,y.jsx)("title",{className:`jsx-${k.__hash}`,children:e}),(0,y.jsx)("meta",{name:"description",content:t,className:`jsx-${k.__hash}`}),(0,y.jsx)("meta",{property:"og:title",content:e,className:`jsx-${k.__hash}`}),(0,y.jsx)("meta",{property:"og:description",content:t,className:`jsx-${k.__hash}`}
1),(0,y.jsx)("meta",{property:"og:image",content:i,className:`jsx-${k.__hash}`}),(0,y.jsx)("meta",{property:"twitter:title",content:e,className:`jsx-${k.__hash}`}),(0,y.jsx)("meta",{property:"twitter:description",content:t,className:`jsx-${k.__hash}`}),(0,y.jsx)("meta",{property:"twitter:image",content:i,className:`jsx-${k.__hash}`}),(0,y.jsx)("meta",{property:"twitter:card",content:"summary_large_image",className:`jsx-${k.__hash}`})]}),(0,y.jsx)(x.Z,{}),(0,y.jsxs)("div",{className:`jsx-${k.__hash} root`,children:[(0,y.jsx)(m.H2,{as:"h1",children:e}),!0!==(null===s||void 0===s?void 0:s.isPremium)&&(0,y.jsxs)("div",{className:`jsx-${k.__hash} notice`,children:[(0,y.jsx)("p",{className:`jsx-${k.__hash}`,children:t}),(0,y.jsx)("p",{className:`jsx-${k.__hash}`,children:(0,y.jsx)(h.Z,{href:(0,p.T7)(),children:"Become Premium"})})]}),(0,y.jsx)("div",{className:`jsx-${k.__hash} items`,children:$.map((function(e){var t=e.id,i=e.link,n=e.lockedCta,a=(0,r.Z)(e,v),o="function"===typeof i?i(s):i;return(0,y.jsx)(w,N(N({},a),{},{link:o||void 0,cta:o?a.cta:n||a.cta}),t)}))})]}),(0,y.jsx)(d.Z,{}),(0,y.jsx)(a(),{id:k.__hash,children:k})]})}},4085:function(e,t,i){"use strict";i.d(t,{B:function(){return l}});var s=i(9499),r=i(8472),n=i.n(r),a=(i(7294),i(5893));function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){(0,s.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var l=function(e){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",c(c({},e),{},{className:n().dynamic([["3407965942",[e.color]]])+" "+(e&&null!=e.className&&e.className||"caps")})),(0,a.jsx)(n(),{id:"3407965942",dynamic:[e.color],children:[`.caps.__jsx-style-dynamic-selector{font-style:normal;font-weight:bold;font-size:14px;line-height:100%;text-transform:uppercase;color:${e.color};}`]})]})}},1154:function(e,t,i){"use strict";i.d(t,{H2:function(){return d}});var s=i(9499),r=i(4730),n=i(8472),a=i.n(n),o=(i(7294),i(5893)),c=["className","as","color"];function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){(0,s.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var d=function(e){var t=e.className,i=e.as,s=e.color,n=(0,r.Z)(e,c),l=i||"h2",d=["h2",t].join(" ");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l,x(x({},n),{},{className:a().dynamic([["1041637352",[s?`color: ${s}`:""]]])+" "+(n&&null!=n.className&&n.className||d||"")})),(0,o.jsx)(a(),{id:"1041637352",dynamic:[s?`color: ${s}`:""],children:[`.h2.__jsx-style-dynamic-selector{margin:0;font-style:normal;font-weight:700;font-size:35px;line-height:100%;${s?`color: ${s}`:""};}`,"@media (min-width:960px){.h2.__jsx-style-dynamic-selector{font-style:normal;font-weight:700;font-size:60px;line-height:120%;-webkit-letter-spacing:-0.015em;-moz-letter-spacing:-0.015em;-ms-letter-spacing:-0.015em;letter-spacing:-0.015em;}}"]})]})}},5350:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return _}});var s=i(116),r=i(29),n=i(8472),a=i.n(n),o=i(7794),c=i.n(o),l=i(7294),x=i(597),d=i(1718),h=i(8626),m=i(9125),p=i(1154),u=i(6900),j=i(1751),f=i(3352),b=i(6744),g=[".root.jsx-3636022372{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;min-height:100vh;}",".inner.jsx-3636022372{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex:1;-ms-flex:1;flex:1;max-width:1024px;margin:50px auto;padding:50px 10px;}",".form.jsx-3636022372{margin:0 auto;width:100%;max-width:300px;margin-top:20px;}",".button.jsx-3636022372{margin-bottom:10px;}",".checkbox-item.jsx-3636022372{margin-bottom:15px;
1display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".custom-checkbox.jsx-3636022372{margin-right:10px;width:20px;height:20px;cursor:pointer;border:2px solid #ccc;border-radius:4px;-webkit-transition:border-color 0.2s ease;transition:border-color 0.2s ease;}",".custom-checkbox.jsx-3636022372:checked{background-color:#28a745;border-color:#28a745;}",".custom-checkbox.jsx-3636022372:hover{border-color:#007bff;}",".center.jsx-3636022372{margin-top:50px;text-align:center;}","ul.jsx-3636022372{padding:0;}","label.jsx-3636022372{cursor:pointer;}","@media (max-width:768px){.inner.jsx-3636022372{margin:20px auto;padding:20px 10px;}}"];g.__hash="3636022372";var y=g,w=i(5893),_=function(){var e=(0,l.useState)(),t=e[0],i=e[1],n=(0,l.useState)(!1),o=n[0],g=n[1],_=(0,l.useState)(new Array(u.e.length).fill(!1)),k=_[0],v=_[1],O=function(){var e=(0,r.Z)(c().mark((function e(){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i(void 0),e.next=4,(0,m.Z)("/api/payment/unsubscribe",{method:"POST"});case 4:g(!0),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),t=e.t0,i(t.message);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),N=k.every((function(e){return e}));return(0,w.jsxs)(x.Z,{children:[(0,w.jsxs)("div",{className:`jsx-${y.__hash} root`,children:[(0,w.jsx)(f.Z,{}),(0,w.jsxs)("div",{className:`jsx-${y.__hash} inner`,children:[!1===o&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(p.H2,{children:"You are about to cancel your subscription"}),(0,w.jsx)("p",{className:`jsx-${y.__hash}`,children:"Once your subscription expires on your next invoice date, you'll lose access to Writing9."}),(0,w.jsx)("p",{className:`jsx-${y.__hash}`,children:"Please confirm that you understand the following:"}),(0,w.jsx)("ul",{className:`jsx-${y.__hash}`,children:u.e.map((function(e,t){return(0,w.jsxs)("li",{className:`jsx-${y.__hash} checkbox-item`,children:[(0,w.jsx)("input",{type:"checkbox",id:`checkbox-${t}`,checked:k[t],onChange:function(){return function(e){var t=(0,s.Z)(k);t[e]=!t[e],v(t)}(t)},className:`jsx-${y.__hash} custom-checkbox`}),(0,w.jsxs)("label",{htmlFor:`checkbox-${t}`,className:`jsx-${y.__hash}`,children:["I agree to lose Premium access to ",(0,w.jsx)("b",{className:`jsx-${y.__hash}`,children:e.title})," \u2013 ",e.subtitle]})]},e.id)}))}),(0,w.jsx)(d.Z,{href:(0,j.ob)(),children:(0,w.jsx)("b",{className:`jsx-${y.__hash}`,children:"\ud83d\ude80 Show all my Premium bonuses \xbb"})}),(0,w.jsxs)("div",{className:`jsx-${y.__hash} form`,children:[(0,w.jsx)("div",{className:`jsx-${y.__hash} button`,children:(0,w.jsx)(d.Z,{href:(0,j.T3)(),children:(0,w.jsx)(h.Z,{text:"Keep the subscription",theme:"green2",style:{width:"100%"}})})}),(0,w.jsx)("div",{className:`jsx-${y.__hash} button`,children:(0,w.jsx)(h.Z,{text:"Cancel subscription",theme:N?"italki":"white",style:{width:"100%"},onClick:O,disabled:!N})})]}),(0,w.jsx)("p",{style:{color:"red",textAlign:"center"},className:`jsx-${y.__hash}`,children:t})]}),!0===o&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(p.H2,{children:"You have successfully unsubscribed"}),(0,w.jsx)("p",{className:`jsx-${y.__hash}`,children:"We're sorry to see you go. If you change your mind, you can always resubscribe to regain access to all the benefits."}),(0,w.jsx)("div",{className:`jsx-${y.__hash} center`,children:(0,w.jsx)(d.Z,{href:(0,j.cd)(),children:(0,w.jsx)(h.Z,{text:"Back home",theme:"green2"})})})]})]}),(0,w.jsx)(b.Z,{})]}),(0,w.jsx)(a(),{id:y.__hash,children:y})]})}}
1,7716:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cancel-subscription",function(){return i(5350)}])},2587:function(e,t,i){"use strict";function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}i.d(t,{Z:function(){return s}})},8811:function(e,t,i){"use strict";function s(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}i.d(t,{Z:function(){return s}})},116:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var s=i(2587);var r=i(8811),n=i(2937);function a(e){return function(e){if(Array.isArray(e))return(0,s.Z)(e)}(e)||(0,r.Z)(e)||(0,n.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2937:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var s=i(2587);function r(e,t){if(e){if("string"===typeof e)return(0,s.Z)(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,s.Z)(e,t):void 0}}}},function(e){e.O(0,[9699,7102,6744,9774,2888,179],(function(){return t=7716,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.