1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5059],{9144:function(e,n,t){"use strict";var r=t(63366),i=t(87462),s=t(67294),c=t(95408),a=t(98700),o=t(39707),l=t(59766),d=t(67074),u=t(78884),p=t(85893);const h=["component","direction","spacing","divider","children"];function x(e,n){const t=s.Children.toArray(e).filter(Boolean);return t.reduce(((e,r,i)=>(e.push(r),i<t.length-1&&e.push(s.cloneElement(n,{key:`separator-${i}`})),e)),[])}const m=(0,d.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>[n.root]})((({ownerState:e,theme:n})=>{let t=(0,i.Z)({display:"flex",flexDirection:"column"},(0,c.k9)({theme:n},(0,c.P$)({values:e.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=(0,a.hB)(n),i=Object.keys(n.breakpoints.values).reduce(((n,t)=>(("object"===typeof e.spacing&&null!=e.spacing[t]||"object"===typeof e.direction&&null!=e.direction[t])&&(n[t]=!0),n)),{}),s=(0,c.P$)({values:e.direction,base:i}),o=(0,c.P$)({values:e.spacing,base:i});"object"===typeof s&&Object.keys(s).forEach(((e,n,t)=>{if(!s[e]){const r=n>
10?s[t[n-1]]:"column";s[e]=r}}));const d=(n,t)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${i=t?s[t]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,a.NA)(r,n)}};var i};t=(0,l.Z)(t,(0,c.k9)({theme:n},o,d))}return t=(0,c.dt)(n.breakpoints,t),t})),f=s.forwardRef((function(e,n){const t=(0,u.Z)({props:e,name:"MuiStack"}),s=(0,o.Z)(t),{component:c="div",direction:a="column",spacing:l=0,divider:d,children:f}=s,b=(0,r.Z)(s,h),v={direction:a,spacing:l};return(0,p.jsx)(m,(0,i.Z)({as:c,ownerState:v,ref:n},b,{children:d?x(f,d):f}))}));n.Z=f},34557:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/subscription",function(){return t(75468)}])},20852:function(e,n,t){"use strict";var r=t(85893),i=t(41664),s=t.n(i),c=t(18935),a=t.n(c);n.Z=function(e){var n=e.children,t=e.href;return(0,r.jsx)(s(),{href:t,passHref:!0,children:(0,r.jsxs)("div",{className:a().root,children:[(0,r.jsx)("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7.64724 15.4265L0.576172 8.35547L7.64724 1.2844",stroke:"#1F2128",strokeLinecap:"round",strokeLinejoin:"round"})}),n]})})}},75468:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return N},default:function(){return P}});var r=t(47568),i=t(10253),s=t(70655),c=t(85893),a=t(30120),o=t(10096),l=t(86010),d=t(210),u=t(9008),p=t.n(u),h=t(67294),x=t(10708),m=t(60258),f=t(19233),b=t(14547),v=t(37207),j=t(31260),_=t(66789),g=t(20852),k=function(e){var n=new Date(e),t=n.getFullYear(),r=String(n.getMonth()+1).padStart(2,"0"),i=String(n.getDate()).padStart(2,"0");return"".concat(t,"-").concat(r,"-").concat(i)},Z=t(57156),w=t(35312),S=t.n(w),N=!0,P=function(e){var n,t,u=e.cookieUser,w=e.userToken,N=(0,d.$G)("index").t,P=(0,Z.Z)((function(e){return e.mainReducer.user})),y=(0,d.$G)("AccountSetings").t,B=y("subcription",{returnObjects:!0}),T=N("plansPage",{returnObjects:!0}),C=h.useRef(null),D=(0,h.useRef)(null),L=(0,i.Z)(h.useState(!1),2),R=L[0],E=L[1],H=(0,i.Z)(h.useState(!1),2),O=H[0],M=H[1],W=(0,i.Z)(h.useState(!1),2),A=W[0],F=W[1],$=(0,i.Z)(h.useState(!1),2),U=$[0],z=$[1],G=function(){E(!1)},Y=function(e){R||D.current&&!D.current.contains(e.target)&&E(!1)},X=(0,i.Z)((0,x.Z)(),1)[0],K=function(){var e=(0,r.Z)((function(){var e;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return M(!0),e={headers:{Authorization:X.user.accessToken}},[4,m.V0.post("/user/cancel-subscription",void 0,e)];case 1:return n.sent(),F(!0),M(!1),E(!1),P.subscription||z(!0),I(!0),[2]}}))}));return function(){return e.apply(this,arguments)}}(),Q=(0,i.Z)(h.useState(!1),2),V=Q[0],I=Q[1],q=function(){return(0,c.jsx)("svg",{children:(0,c.jsxs)("svg",{id:"done",focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"}),(0,c.jsx)("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})]})})};(0,h.useEffect)((function(){return document.addEventListener("click",Y,!0),function(){document.removeEventListener("click",Y,!0)}}));var J="will-cancel"===(null===(n=P.subscription)||void 0===n?void 0:n.status)||A,ee=(!J||J&&(null===(t=P.subscription)||void 0===t?void 0:t.paymentDue))&&P.plan&&!P.cancelSubscriptionDisabled;return(0,c.jsxs)(_.Z,{userToken:w,children:[(0,c.jsx)(p(),{children:(0,c.jsx)("title",{children:y("headTitle")})}),(0,c.jsx)(j.Z,{userToken:w,cookieUser:u,authorized:!!u,sidePanelData:y("navbarItemsData",{returnObjects:!0}),sidePanelBaseUrl:"/settings",local:N,headerBtnPrimaryRef:C,children:(0,c.jsxs)("div",{className:S().root,children:[(0,c.jsx)("div",{className:S().linkBackWrapper,children:(0,c.jsx)(g.Z,{href:"/settings",children:B.title})}),(0,c.jsx)("div",{className:S().blockTitle,children:B.title}),(0,c.jsx)("div",{className:S().wrapper,children:"free"===P.plan?(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:S().card,children:[(0,c.jsx)("label",{children:"Pro"}),(0,c.jsx)("p",{className:S().underText,children:B.pro.subtitle}),(0,c.jsx)(v.Z,{remainingDownloads:u.remainingDownloads,br:!0}),(0,c.jsx)("br",{}),Object.keys(T.cards.pro).slice(2).map((function(e){return(0,c.jsxs)("div",{className:S().adv,children:[q(),T.cards.pro[e]]},e)}))]})}):(0,c.jsxs)("div",{className:S().card,children:[(0,c.jsx)("div",{className:S().HeaderWrapper,children:(0,c.jsx)("label",{children:"Pro"})}),(0,c.jsx)("p",{className:S().underText,children:B.pro.subtitle}),Object.keys(T.cards.pro).slice(2).map((function(e){return(0,c.jsxs)("div",{className:S().adv,children:[q(),T.cards.pro[e]]},e)})),ee&&(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(b.Z,{className:S().cancelBtn,onClick:function(){var e;V||"will-cancel"===(null===(e=P.subscription)||void 0===e?void 0:e.status)||E(!0)},disabled:J,children:J?y("subcription.activeUntil",{date:k(P.subscription.paymentDue)}):B.temporaryText})})]})})]})}),(0,c.jsx)(o.Z,{open:R,onClose:G,closeAfterTransition:!0,BackdropProps:{timeout:500},children:(0,c.jsx)(a.Z,{className:(0,l.Z)("modal",S().root),children:(0,c.jsxs)(a.Z,{className:S().modalHolder,children:[(0,c.jsx)("button",{className:S().closeBtn,onClick:G}),(0,c.jsx)("div",{className:S().title,children:B.temporaryText}),(0,c.jsxs)("div",{className:S().text,children:[" ",B.cancelSubscriptionWarning]}),(0,c.jsxs)(a.Z,{sx:{display:"flex",justifycontent:"space-between",margin:"20px 12px",gap:"10px"},children:[(0,c.jsx)(f.Z,{variant:"root",onClick:G,disabled:O,children:(0,c.jsx)("label",{children:B.keepSubscription})}),(0,c.jsx)(f.Z,{variant:"red",disabled:O,onClick:K,children:B.btn1})]})]})})}),(0,c.jsx)(o.Z,{open:U,onClose:G,closeAfterTransition:!0,BackdropProps:{timeout:500},children:(0,c.jsx)(a.Z,{className:(0,l.Z)("modal",S().root),children:(0,c.jsxs)(a.Z,{className:S().modalHolder,children:[(0,c.jsx)("button",{className:S().closeBtn,onClick:function(){return z(!1)}}),(0,c.jsx)("div",{className:S().title,children:B.subscriptionCancelledTitle}),(0,c.jsx)("div",{className:S().text,children:B.subscriptionCancelledText}),(0,c.jsx)(a.Z,{sx:{display:"flex",justifycontent:"space-between",margin:"20px 12px"},children:(0,c.jsx)(f.Z,{variant:"root",onClick:function(){return z(!1)},children:B.subscriptionCancelledBtn})})]})})})]})}},18935:function(e){e.exports={root:"LinkBack_root__DG8Xh"}},35312:function(e){e.exports={root:"SubscriptionPage_root__FBFgl",modalHolder:"SubscriptionPage_modalHolder__ZgTh8",closeBtn:"SubscriptionPage_closeBtn__UPQCZ",title:"SubscriptionPage_title__GpUR9",text:"SubscriptionPage_text__HcRm7",blockTitle:"SubscriptionPage_blockTitle__Ze0Qk",linkBackWrapper:"SubscriptionPage_linkBackWrapper__WW
1irP",HeaderWrapper:"SubscriptionPage_HeaderWrapper__zKVuG",wrapper:"SubscriptionPage_wrapper__Zz7Se",card:"SubscriptionPage_card__lYiY3",underText:"SubscriptionPage_underText__LmfO_",adv:"SubscriptionPage_adv__sHCtm",cancelBtn:"SubscriptionPage_cancelBtn__KFgvx"}}},function(e){e.O(0,[409,6172,4392,3231,8513,5431,2288,1786,1260,8920,9774,2888,179],(function(){return n=34557,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.