PageSourceSearch

https://www.theresumeapp.com/_next/static/chunks/pages/account-cc34c7649663bad7.js

js theresumeapp.com collected 2026-10-02 01:46:24 UTC 6,568 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{47017:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return s(15584)}])},14235:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},60641:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},82126:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},28378:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(63759).Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},15584:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return b},default:function(){return g}});var r=s(85893),n=s(67294),a=s(9008),c=s.n(a),i=s(41664),l=s.n(i),d=s(11163),u=s(98778),o=s(89346),m=s(95750),f=s(28809),x=s(49700),h=s(80675),p=s(20834),j=s(28378),y=s(82126);let N=(0,s(63759).Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var w=s(60641),k=s(14235),v=s(15452),b=!0,g=(0,m.Z)(()=>{let[e,t]=(0,n.useState)(!1),[s,a]=(0,n.useState)(""),i=(0,d.useRouter)(),{session:m}=(0,h.kP)(),b=(0,x.mU)(),{t:g}=(0,p.$G)("account"),Z=b&&("active"===b.status||"trialing"===b.status),_=async()=>{t(!0);let{data:e,error:s}=await (0,f.qC)("/api/subscription/stripe-portal-link",{},m.access_token);if(s){a(g("accountHome.redirectToStripeErrorMessage")),t(!1);return}i.push(e.url),t(!1)},C=Z&&b.prices.products.name,S=Z&&new Intl.NumberFormat("en-US",{style:"currency",currency:b.prices.currency,minimumFractionDigits:0}).format(b.prices.unit_amount/100);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{children:(0,r.jsx)("title",{children:g("accountHome.title")})}),(0,r.jsx)("div",{className:"min-h-full flex flex-col justify-center pt-6 pb-16 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:(0,r.jsxs)(o.Zb,{children:[(0,r.jsxs)(o.Ol,{children:[(0,r.jsx)(o.ll,{children:g("accountHome.heading")}),(0,r.jsx)(o.SZ,{children:Z?g("accountHome.activeSubscriptionLabel",{subscriptionName:C}):g("accountHome.noSubscriptionLabel")})]}),(0,r.jsx)(o.aY,{children:(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)("div",{className:"text-xl font-bold",children:Z?"".concat(S,"/").concat(b.prices.interval):(0,r.jsx)(u.z,{asChild:!0,children:(0,r.jsxs)(l(),{href:"/#pricing",children:[(0,r.jsx)(j.Z,{className:"mr-2 h-4 w-4"}),g("accountHome.choosePlanLink")]})})}),(0,r.jsxs)(u.z,{variant:"outline",className:"w-1/2 justify-start",onClick:()=>i.push("/account/send-feedback"),children:[(0,r.jsx)(v.Z,{className:"mr-2 h-4 w-4"}),"Send Feedback"]}),(0,r.jsxs)("div",{className:"space-y-3 pt-4 border-t",children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:"Account Settings"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,r.jsx)(u.z,{asChild:!0,variant:"outline",className:"w-1/2 justify-start",children:(0,r.jsxs)(l(),{href:"/account/change-password",children:[(0,r.jsx)(y.Z,{className:"mr-2 h-4 w-4"}),"Change password"]})}),(0,r.jsx)(u.z,{asChild:!0,variant:"outline",className:"w-1/2 justify-start text-red-600 hover:text-red-700 border-red-200 hover:border-red-300",children:(0,r.jsxs)(l(),{href:"/account/close-account",children:[(0,r.jsx)(N,{className:"mr-2 h-4 w-4"}),"Close account"]})})]})]}),Z&&b.cancel_at_period_end&&b.cancel_at&&(0,r.jsx)("div",{children:(0,r.jsxs)("span",{className:"text-sm",children:[g("accountHome.subscriptionEndsLabel")," ",new Date(b.cancel_at).toLocaleDateString()]})}),Z&&(0,r.jsx)("div",{children:(0,r.jsxs)(u.z,{type:"button",disabled:e,onClick:_,children:[e?(0,r.jsx)(w.Z,{className:"mr-2 h-4 w-4 animate-spin"}):(0,r.jsx)(k.Z,{className:"mr-2 h-4 w-4"}),g("accountHome.manageSubscriptionButton")]})}),s&&(0,r.jsx)("p",{className:"text-red-600 dark:text-red-300",children:s})]})})]})})})]})})},89346:function(e,t,s){"use strict";s.d(t,{Ol:function(){return i},SZ:function(){return d},Zb:function(){return c},aY:function(){return u},eW:function(){return o},ll:function(){return l}});var r=s(85893),n=s(67294),a=s(24515);let c=n.forwardRef((e,t)=>
1{let{className:s,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",s),...n})});c.displayName="Card";let i=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",s),...n})});i.displayName="CardHeader";let l=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)("h3",{ref:t,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",s),...n})});l.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",s),...n})});d.displayName="CardDescription";let u=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",s),...n})});u.displayName="CardContent";let o=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",s),...n})});o.displayName="CardFooter"},95750:function(e,t,s){"use strict";var r=s(85893),n=s(67294),a=s(11163),c=s(60641),i=s(87631);t.Z=function(e){return function(t){let s=(0,a.useRouter)(),[l,d]=(0,n.useState)(!1),[u,o]=(0,n.useState)(!0);return((0,n.useEffect)(()=>{(async()=>{let{data:{session:e}}=await i.e.auth.getSession();d(!!e),o(!1),e||s.replace("/")})()},[]),u||!l)?(0,r.jsx)("div",{className:"flex items-center justify-center px-4 py-8",children:(0,r.jsx)(c.Z,{className:"mr-2 h-8 w-8 animate-spin"})}):(0,r.jsx)(e,{...t})}}},9008:function(e,t,s){e.exports=s(23867)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=47017)}),_N_E=e.O()}]);

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.