1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7180],{8750:function(e,n,r){"use strict";r.d(n,{Z:function(){return t}});r(7294);var s=r(5893);function t(e){var n=e.reverse,r=void 0!==n&&n;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"38",viewBox:"0 0 38 38",children:(0,s.jsxs)("g",{id:"Group_127","data-name":"Group 127",transform:"translate(0.096 -0.214)",children:[(0,s.jsxs)("g",{id:"Ellipse_18","data-name":"Ellipse 18",transform:"translate(-0.096 0.214)",fill:r?"black":"white",stroke:"rgba(0,0,0,0)",strokeWidth:"1",children:[(0,s.jsx)("circle",{cx:"19",cy:"19",r:"19",stroke:"none"}),(0,s.jsx)("circle",{cx:"19",cy:"19",r:"18.5",fill:"none"})]}),(0,s.jsx)("path",{id:"Path_208","data-name":"Path 208",d:"M-113.356,1004.549l-7.5,7.233,7.5,6.564",transform:"translate(131.581 -992.398)",fill:"none",stroke:r?"white":"black",strokeLinecap:"round",strokeWidth:"2"}),(0,s.jsx)("path",{id:"Path_210","data-name":"Path 210",d:"M-118.748,1012.383h14.883",transform:"translate(130.653 -992.951)",fill:"none",stroke:r?"white":"black",strokeLinecap:"round",strokeWidth:"2"})]})})}},1916:function(e,n,r){"use strict";r.d(n,{Z:function(){return t}});r(7294);var s=r(5893);function t(){return(0,s.jsx)("svg",{id:"cancel-event",xmlns:"http://www.w3.org/2000/svg",width:"49.187",height:"49.187",viewBox:"0 0 49.187 49.187",children:(0,s.jsx)("g",{id:"Group_834","data-name":"Group 834",children:(0,s.jsx)("g",{id:"Group_833","data-name":"Group 833",children:(0,s.jsx)("path",{id:"Path_18346","data-name":"Path 18346",d:"M45.088,29.227V8.2a4.1,4.1,0,0,0-4.1-4.1H34.841V1.025a1.025,1.025,0,0,0-2.049,0V4.1H14.346V1.025a1.025,1.025,0,1,0-2.049,0V4.1H4.1A4.1,4.1,0,0,0,0,8.2V40.989a4.1,4.1,0,0,0,4.1,4.1H29.227A11.267,11.267,0,1,0,45.088,29.227ZM2.049,8.2A2.052,2.052,0,0,1,4.1,6.148h8.2V8.2a2.049,2.049,0,1,0,2.049,2.049v-4.1H32.791V8.2a2.049,2.049,0,1,0,2.049,2.049v-4.1h6.148A2.052,2.052,0,0,1,43.039,8.2v6.148H2.049ZM4.1,43.039A2.052,2.052,0,0,1,2.05,40.989V16.4H43.039V27.888A11.252,11.252,0,0,0,27.888,43.039Zm33.816,4.1a9.233,9.233,0,0,1-9.223-9.223,9.13,9.13,0,0,1,2.049-5.725l12.9,12.9A9.13,9.13,0,0,1,37.915,47.138Zm7.174-3.5-12.9-12.9a9.13,9.13,0,0,1,5.725-2.049,9.233,9.233,0,0,1,9.223,9.223A9.131,9.131,0,0,1,45.089,43.64Z",fill:"#fff"})})})})}},1543:function(e,n,r){"use strict";r(7294);var s=r(4359),t=r(3935),a=r(5893);n.Z=function(e){return e.show?t.createPortal((0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(s.Z,{show:e.show,onHide:e.handleClose,centered:!0,children:[(0,a.jsx)(s.Z.Header,{closeButton:!0,children:(0,a.jsx)(s.Z.Title,{children:e.title})}),(0,a.jsx)(s.Z.Body,{children:e.children}),e.confirmation?(0,a.jsx)(s.Z.Footer,{children:(0,a.jsx)("button",{className:"cus-btn-black",onClick:e.handleProceed,children:"OK"})}):(0,a.jsxs)(s.Z.Footer,{children:[(0,a.jsx)("button",{className:"cus-btn-white",onClick:e.handleClose,children:"Cancel"}),(0,a.jsx)("button",{className:"cus-btn-black",onClick:e.handleProceed,children:"OK"})]})]})}),document.querySelector("#modal-root")):null}},6608:function(e,n,r){"use strict";var s=r(7294),t=r(5893);n.Z=s.memo((function(e){var n=e.children;return(0,t.jsx)("div",{className:"anima-container-center-horizontal",children:(0,t.jsx)("div",{className:"dashboard anima-screen container-center-horizontal min-vh-100",children:n})})}))},8839:function(e,n,r){"use strict";r.r(n);var s=r(2809),t=r(1163),a=r(7294),i=r(9249),o=r(7536),c=r(8834),l=r(9501),d=r(4883),u=r(6608),h=r(8750),m=r(1916),f=r(1543),x=r(5893);function j(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,s)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?j(Object(r),!0).forEach((function(n){(0,s.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.default=function(){var e,n,r=(0,t.useRouter)(),s=function(){r.push("/billing")},j=(0,a.useState)([]),v=j[0],b=j[1];(0,a.useEffect)((function(){d.W.getBillingSubscriptionCancelFlags().then((function(e){var n=e.success,r=e.reasons;n&&b(r)}))}),[]);var g=(0,a.useState)(!1),w=g[0],y=g[1],N=function(){return y(!1)},k=l.Ry().shape({reason:l.Z_().test("no-none","Reason is required",(function(e){return e&&"none"!==e})),comments:l.Z_().nullable()}),Z={resolver:(0,c.X)(k)},C=(0,o.cI)(Z),O=C.register,P=C.handleSubmit,_=C.formState,S=C.setValue,A=_.errors;function V(e){var n=e.reason,r=e.comments;if(e.modalConfirmed)return d.W.cancelBillingSubscription({reasonId:n,customComment:r}).then((function(e){var n=e.success,r=e.errorMessage;n?(i.Am.success("Billing subscription cancelled!"),s()):i.Am.error(r)})).finally((function(){S("modalConfirmed",!1),S("reason","none"),S("comments",null)}));y(!0)}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(u.Z,{children:(0,x.jsxs)("div",{className:"main-panel",children:[(0,x.jsx)("div",{className:"back-button",onClick:s,children:(0,x.jsx)(h.Z,{})}),(0,x.jsxs)("div",{className:"container text-center pt-5 pb-3",children:[(0,x.jsx)("div",{className:"header-icon",children:(0,x.jsx)(m.Z,{})}),(0,x.jsx)("h4",{className:"pt-2",children:"Cancel Subscription"})]}),(0,x.jsx)("div",{className:"title-border"}),(0,x.jsxs)("div",{className:"d-flex flex-column align-items-center w-75 m-auto p-4 bg-light text-dark",children:[(0,x.jsx)("div",{className:"py-2",children:(0,x.jsx)("h4",{children:"Are you sure you want to cancel?"})}),(0,x.jsx)("div",{className:"py-2",children:"Cancelling your subscription will disable funding wallet, creating virtual cards, and receiving money. Some functionality will still be available such as spending virtual cards, transfer between wallet and already created virtual cars, and withdraw."}),(0,x.jsxs)("form",{onSubmit:P(V),autoComplete:"off",className:"my-4",children:[(0,x.jsxs)("div",{className:"form-group",children:[(0,x.jsx)("label",{htmlFor:"reason",children:"Reason for deactivation"}),(0,x.jsxs)("select",p(p({className:"form-control",id:"reason",name:"reason"},O("reason")),{},{children:[(0,x.jsx)("option",{value:"none",children:"Choose a reason"}),v.length>0&&v.map((function(e,n){var r=e.reasonId,s=e.description;return(0,x.jsx)("option",{value:r,children:"".concat(s)},n)}))]})),(0,x.jsx)("div",{className:"form-validation",children:(0,x.jsx)("div",{className:"form-error-messages justify-content-start",children:null===(e=A.reason)||void 0===e?void 0:e.message})})]}),(0,x.jsxs)("div",{className:"form-group",children:[(0,x.jsx)("label",{htmlFor:"issue-textarea",children:"Please describe your issue below"}),(0,x.jsx)("textarea",p(p({id:"issue-textarea",rows:"4",cols:"50"},O("comments")),{},{style:{height:"auto"},className:"form-control text-left"})),(0,x.jsx)("div",{className:"form-validation",children:(0,x.jsx)("div",{className:"form-error-messages justify-content-start",children:null===(n=A.comments)||void 0===n?void 0:n.message})})]}),(0,x.jsx)("div",{className:"form-group",children:(0,x.jsx)("input",p({type:"hidden"},O("modalConfirmed")))}),(0,x.jsx)("div",{className:"form-group py-3",children:(0,x.jsxs)("button",{disabled:_.isSubmitting,className:"btn cus-btn-black",children:[_.isSubmitting&&(0,x.jsx)("span",{className:"spinner-border spinner-border-sm mr-1"}),"Submit"]})})]})]})]})}),(0,x.jsx)(f.Z,{show:w,handleClose:N,handleProceed:function(){N(),S("modalConfirmed",!0),P(V)()},title:"Cancel Subscription",children:(0,x.jsx)("p",{children:"Are you sure you want to cancel your subscription?"})})]})}},2792:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cancel-subscription",function(){return r(8839)}])}},function(e){e.O(0,[9204,3752,4359,9774,2888,179],(function(){return n=2792,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.