(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{42480:function(){},75266:function(e,t,n){Promise.resolve().then(n.t.bind(n,52445,23)),Promise.resolve().then(n.t.bind(n,99717,23)),Promise.resolve().then(n.bind(n,94650)),Promise.resolve().then(n.t.bind(n,85935,23)),Promise.resolve().then(n.t.bind(n,11274,23))},94650:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var r=n(57437),o=n(58714),a=n(2265),i=n(47907),s=n(78718),u=n(66974),c=n.n(u),l=n(18009),d=n(46919),p=n(97869),m=n(79456),y=n(31491),f=n(38896),L=n(97764),g=n(68158),v=n(90687),S=n(33646);n(59895);let h=(0,y.oM)({name:"auth",initialState:{user:null,isLoggedIn:!1,loading:!1},reducers:{login:(e,t)=>{e.user=t.payload,e.isLoggedIn=!0},logout:e=>{e.user=null,e.isLoggedIn=!1},setUser:(e,t)=>{e.user=t.payload},profile:(e,t)=>{e.user=t.payload},setProfileLoading:(e,t)=>{e.loading=t.payload}}}),{login:C,logout:_,setUser:b}=h.actions;var I=h.reducer,O=n(12625),R=n(67249),A=n(55326);let w=(0,S.UY)({auth:I,resume:O.ZP,coverLetter:R.ZP,resignationLetter:A.ZP}),z={key:"resumeup",storage:L.Z,whitelist:["resume","coverLetter","resignationLetter"],transforms:[(0,g.m)({secretKey:"process.env.NEXTAUTH_SECRET"})]},E=(0,f.OJ)(z,w),D=(0,y.xC)({reducer:E,devTools:!1,middleware:()=>[v.I]});var k=n(30828);let T=(0,f.p5)(D);function P(e){let{children:t}=e,[n,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{o(!0)},[]),(0,r.jsx)(k.zt,{store:D,children:n?(0,r.jsx)(m.r,{loading:null,persistor:T,children:t}):t})}let x=()=>{let e=(0,i.usePathname)(),t=(0,k.I0)(),n=(0,o.createClientComponentClient)(),[r,u]=(0,a.useState)(null);return(0,a.useEffect)(()=>{(async()=>{let{data:{session:e}}=await n.auth.getSession();e&&(u(e.user),t(C(e.user)))})()},[]),(0,a.useEffect)(()=>{var t,n;(null===p.Z||void 0===p.Z?void 0:null===(t=p.Z.crisp)||void 0===t?void 0:t.id)&&(s.fv.configure(p.Z.crisp.id),!p.Z.crisp.onlyShowOnRoutes||(null===(n=p.Z.crisp.onlyShowOnRoutes)||void 0===n?void 0:n.includes(e))||(s.fv.chat.hide(),s.fv.chat.onChatClosed(()=>{s.fv.chat.hide()})))},[e]),(0,a.useEffect)(()=>{var e,t;(null==r?void 0:r.user)&&(null===p.Z||void 0===p.Z?void 0:null===(e=p.Z.crisp)||void 0===e?void 0:e.id)&&s.fv.session.setData({userId:null===(t=r.user)||void 0===t?void 0:t.id})},[r]),null};var Z=e=>{let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{color:p.Z.colors.main,showSpinner:!1}),(0,r.jsxs)(P,{children:[t,(0,r.jsx)(x,{})]}),(0,r.jsx)(l.x7,{toastOptions:{duration:3e3}}),(0,r.jsx)(d.u,{id:"tooltip",className:"z-[60] !opacity-100 max-w-sm shadow-lg"})]})}},97869:function(e,t,n){"use strict";var r=n(6244);let o={appName:"ResumeUp.AI",appDescription:"Build the best resume in minutes with our AI Resume Builder! Get a powerful Resume Editor and an ATS Resume Checker to ensure your resume stands out!",domainName:"resumeup.ai",gtmTag:"GTM-N6J8GP4J",crisp:{id:"",onlyShowOnRoutes:["/"]},stripe:{plans:[{priceId:"13d108cd-50d5-4da1-9680-c19f94bf4e32",name:"Monthly Plan",save:"",description:"For those who need flexibility and access to all features without a long-term commitment.",price:7.99,priceAnchor:9.99,features:[{name:"AI Assisted Resume Builder"},{name:"Access to Job Tracker"},{name:"Chrome Extension"}],checkoutLink:"https://resumeupai.lemonsqueezy.com/buy/60c4792b-bca6-4b7e-a308-bd79b2de2500"},{priceId:"c17c1866-6273-46a1-adcd-842f73b463ed",name:"Quarterly Plan",save:"Save 18%",description:"Save 18% and enjoy 3 months of uninterrupted access to all premium features!",price:6.49,priceAnchor:9.99,features:[{name:"Resume Analysis and Score Checker"},{name:"LinkedIn Profile Optiomisation"},{name:"Personalised Support"}],checkoutLink:"https://resumeupai.lemonsqueezy.com/buy/681720d6-3329-44ed-8c1f-e206ea4d43bb"},{priceId:"e31757cc-f4fe-4ab1-b5fc-0dfdc17ab9c5",isFeatured:!0,name:"Yearly Plan",save:"Save 44%",description:"Save 44% and unlock a full year of access to every premium feature available!",price:4.49,priceAnchor:9.99,features:[{name:"Access to All Premium Templates"},{name:"AI Cover Letter Generator"},{name:"Unlimited Resume and Cover Letters"}],checkoutLink:"https://resumeupai.lemonsqueezy.com/buy/0db0ed53-9586-492c-9263-78ba1faa5d65"}]},aws:{bucket:"bucket-name",bucketUrl:"https://bucket-name.s3.amazonaws.com/",cdn:"https://cdn-id.cloudfront.net/"},mailgun:{subdomain:"mg",fromNoReply:"ShipFast <noreply@mg.shipfa.st>",fromAdmin:"Marc at ShipFast <resumeup.ai@gmail.com>",supportEmail:"resumeup.ai@gmail.com",forwardRepliesTo:"accounts@resumeup.ai"},colors:{theme:"light",main:n.n(r)().light.primary},auth:{loginUrl:"/signin",callbackUrl:"/dashboard/resumes"}};t.Z=o},59895:function(e,t,n){"use strict";var r=n(7908),o=n(18009),a=n(47907),i=n(97869);let s=r.Z.create({baseURL:"/api"});s.interceptors.response.use(function(e){return e.data},function(e){var t,n,r,s;let u="";return(null===(t=e.response)||void 0===t?void 0:t.status)===401?(o.Am.error("Please login"),(0,a.redirect)(i.Z.auth.loginUrl)):u=(null===(n=e.response)||void 0===n?void 0:n.status)===403?"Pick a plan to use this feature":(null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(r=s.data)||void 0===r?void 0:r.error)||e.message||e.toString(),e.message="string"==typeof u?u:JSON.stringify(u),console.error(e.message),e.message?o.Am.error(e.message):o.Am.error("something went wrong..."),Promise.reject(e)}),t.Z=s},67249:function(e,t,n){"use strict";n.d(t,{E2:function(){return C},Gf:function(){return d},LO:function(){return m},Mq:function(){return O},SN:function(){return a},UK:function(){return S},UW:function(){return u},Yi:function(){return I},n2:function(){return f},pK:function(){return p},pm:function(){return h},sU:function(){return l},uE:function(){return g},xZ:function(){return c},zv:function(){return _}});var r=n(31491);n(18009);let o=(0,r.oM)({name:"coverLetter",initialState:{coverLetter:null,coverLetterCurrentSection:null,coverLetterSectionsOrder:[],coverLetterFormSections:[],coverLetterSectionsCount:{},coverLetterHiddenSections:[],coverLetterTemplateId:null,coverLetterTemplateCode:"",coverLetterJobDescription:"",coverLetterName:"",coverLetterScore:null,coverLetterContentAnalyzerData:null,coverLetterLayoutAnalyzerData:null,coverLetterIsAnalyzerModeOn:{isModeOn:!1,resumeId:""},coverLetterDownloadCount:null,coverLetterIgnoredSuggestions:null},reducers:{setCoverLetterHiddenSections:(e,t)=>{e.coverLetterHiddenSections=t.payload},setCoverLetterSectionsCount:(e,t)=>{e.coverLetterSectionsCount={...e.coverLetterSectionsCount,...t.payload}},setCoverLetterFormSections:(e,t)=>{e.coverLetterFormSections=t.payload},setCoverLetterSectionsOrder:(e,t)=>{e.coverLetterSectionsOrder=t.payload},setCoverLetterCurrentSection:(e,t)=>{e.coverLetterCurrentSection=t.payload},setCoverLetter:(e,t)=>{e.coverLetter=t.payload},removeCoverLetterSectionFields:(e,t)=>{let{sectionCode:n,index:r}=t.payload;if(e.coverLetter){let t={...e.coverLetter};Object.keys(t).forEach(e=>{new RegExp("^".concat(n,"-.+_").concat(r,"$")).test(e)&&delete t[e]}),Object.keys(t).forEach(e=>{let o=new RegExp("^".concat(n,"-.+_(\\d+)$")),a=e.match(o);if(a&&parseInt(a[1],10)>r){let n=parseInt(a[1],10)-1;t[e.replace("_".concat(a[1]),"_".concat(n))]=t[e],delete t[e]}}),e.coverLetter=t}},updateCoverLetterSectionName:(e,t)=>{let{sectionCode:n,name:r}=t.payload;e.coverLetterSectionsOrder=e.coverLetterSectionsOrder.map(e=>e.code===n?{...e,name:r}:e)},updateCoverLetterTemplateIdAndCode:(e,t)=>{let{templateId:n,templateCode:r}=t.payload;e.coverLetterTemplateId=n,e.coverLetterTemplateCode=r},updateCoverLetterJobDescription:(e,t)=>{e.coverLetterJobDescription=t.payload},updateCoverLetterName:(e,t)=>{e.coverLetterName=t.payload},updateCoverLetterScore:(e,t)=>{e.coverLetterScore=t.payload},updateCoverLetterContentAnalyzerData:(e,t)=>{e.coverLetterContentAnalyzerData=t.payload},updateCoverLetterLayoutAnalyzerData:(e,t)=>{e.coverLetterLayoutAnalyzerData=t.payload},setCoverLetterIsAnalyzerModeOn:(e,t)=>{e.coverLetterIsAnalyzerModeOn=t.payload},setCoverLetterDownloadCount:(e,t)=>{e.coverLetterDownloadCount=t.payload},setCoverLetterIgnoredSuggestions:(e,t)=>{e.coverLetterIgnoredSuggestions=t.payload}}}),{setCoverLetter:a,setCoverLetterLoading:i,setCoverLetterError:s,setCoverLetterCurrentSection:u,setCoverLetterSectionsOrder:c,setCoverLetterFormSections:l,setCoverLetterSectionsCount:d,setCoverLetterHiddenSections:p,removeCoverLetterSectionFields:m,updateCoverLetterSectionName:y,updateCoverLetterTemplateIdAndCode:f,updateCoverLetterIndustry:L,updateCoverLetterJobDescription:g,updateCoverLetterProfessionalExperience:v,updateCoverLetterName:S,updateCoverLetterScore:h,updateCoverLetterContentAnalyzerData:C,updateCoverLetterLayoutAnalyzerData:_,setCoverLetterIsAnalyzerModeOn:b,setCoverLetterDownloadCount:I,setCoverLetterIgnoredSuggestions:O}=o.actions;t.ZP=o.reducer},55326:function(e,t,n){"use strict";n.d(t,{Bt:function(){return p},Dv:function(){return h},Er:function(){return S},RO:function(){return a},T9:function(){return L},U5:function(){return d},Vy:function(){return u},Xy:function(){return m},a9:function(){return c},cO:function(){return _},m9:function(){return O},m_:function(){return f},ml:function(){return C},o9:function(){return I},pT:function(){return l},tQ:function(){return g}});var r=n(31491);n(18009);let o=(0,r.oM)({name:"resignationLetter",initialState:{resignationLetter:null,resignationLetterCurrentSection:null,resignationLetterSectionsOrder:[],resignationLetterFormSections:[],resignationLetterSectionsCount:{},resignationLetterHiddenSections:[],resignationLetterTemplateId:null,resignationLetterTemplateCode:"",resignationLetterJobTitle:"",resignationLetterIndustry:"",resignationLetterName:"",resignationLetterScore:null,resignationLetterContentAnalyzerData:null,resignationLetterLayoutAnalyzerData:null,resignationLetterIsAnalyzerModeOn:{isModeOn:!1,resumeId:""},resignationLetterDownloadCount:null,resignationLetterIgnoredSuggestions:null},reducers:{setResignationLetterHiddenSections:(e,t)=>{e.resignationLetterHiddenSections=t.payload},setResignationLetterSectionsCount:(e,t)=>{e.resignationLetterSectionsCount={...e.resignationLetterSectionsCount,...t.payload}},setResignationLetterFormSections:(e,t)=>{e.resignationLetterFormSections=t.payload},setResignationLetterSectionsOrder:(e,t)=>{e.resignationLetterSectionsOrder=t.payload},setResignationLetterCurrentSection:(e,t)=>{e.resignationLetterCurrentSection=t.payload},setResignationLetter:(e,t)=>{e.resignationLetter=t.payload},removeResignationLetterSectionFields:(e,t)=>{let{sectionCode:n,index:r}=t.payload;if(e.resignationLetter){let t={...e.resignationLetter};Object.keys(t).forEach(e=>{new RegExp("^".concat(n,"-.+_").concat(r,"$")).test(e)&&delete t[e]}),Object.keys(t).forEach(e=>{let o=new RegExp("^".concat(n,"-.+_(\\d+)$")),a=e.match(o);if(a&&parseInt(a[1],10)>r){let n=parseInt(a[1],10)-1;t[e.replace("_".concat(a[1]),"_".concat(n))]=t[e],delete t[e]}}),e.resignationLetter=t}},updateResignationLetterSectionName:(e,t)=>{let{sectionCode:n,name:r}=t.payload;e.resignationLetterSectionsOrder=e.resignationLetterSectionsOrder.map(e=>e.code===n?{...e,name:r}:e)},updateResignationLetterTemplateIdAndCode:(e,t)=>{let{templateId:n,templateCode:r}=t.payload;e.resignationLetterTemplateId=n,e.resignationLetterTemplateCode=r},updateResignationLetterJobTitle:(e,t)=>{e.resignationLetterJobTitle=t.payload},updateResignationLetterIndustry:(e,t)=>{e.resignationLetterIndustry=t.payload},updateResignationLetterName:(e,t)=>{e.resignationLetterName=t.payload},updateResignationLetterScore:(e,t)=>{e.resignationLetterScore=t.payload},updateResignationLetterContentAnalyzerData:(e,t)=>{e.resignationLetterContentAnalyzerData=t.payload},updateResignationLetterLayoutAnalyzerData:(e,t)=>{e.resignationLetterLayoutAnalyzerData=t.payload},setResignationLetterIsAnalyzerModeOn:(e,t)=>{e.resignationLetterIsAnalyzerModeOn=t.payload},setResignationLetterDownloadCount:(e,t)=>{e.resignationLetterDownloadCount=t.payload},setResignationLetterIgnoredSuggestions:(e,t)=>{e.resignationLetterIgnoredSuggestions=t.payload}}}),{setResignationLetter:a,setResignationLetterLoading:i,setResignationLetterError:s,setResignationLetterCurrentSection:u,setResignationLetterSectionsOrder:c,setResignationLetterFormSections:l,setResignationLetterSectionsCount:d,setResignationLetterHiddenSections:p,removeResignationLetterSectionFields:m,updateResignationLetterSectionName:y,updateResignationLetterTemplateIdAndCode:f,updateResignationLetterIndustry:L,updateResignationLetterJobTitle:g,updateResignationLetterProfessionalExperience:v,updateResignationLetterName:S,updateResignationLetterScore:h,updateResignationLetterContentAnalyzerData:C,updateResignationLetterLayoutAnalyzerData:_,setResignationLetterIsAnalyzerModeOn:b,setResignationLetterDownloadCount:I,setResignationLetterIgnoredSuggestions:O}=o.actions;t.ZP=o.reducer},12625:function(e,t,n){"use strict";n.d(t,{$h:function(){return O},B:function(){return A},Dq:function(){return b},EQ:function(){return m},Ee:function(){return S},El:function(){return R},KJ:function(){return w},Os:function(){return g},Q8:function(){return I},VX:function(){return C},Vs:function(){return h},Y7:function(){return y},c:function(){return c},im:function(){return a},iq:function(){return L},jU:function(){return v},nR:function(){return p},oC:function(){return u},oZ:function(){return f},qC:function(){return _},vV:function(){return l},zc:function(){return d}});var r=n(31491);n(18009);let o=(0,r.oM)({name:"resume",initialState:{resume:null,currentSection:null,sectionsOrder:[],formSections:[],sectionsCount:{},hiddenSections:[],template_id:null,template_code:"",industry:"",professional_experience:"",job_description:"",name:"",score:null,content_analyzer_data:null,layout_analyzer_data:null,is_analyzer_mode_on:{is_mode_on:!1,resume_id:""},download_count:null,ignored_suggestions:null,selected_color:null,selected_font_family:"Merriweather, serif",is_paid_template:!1},reducers:{setHiddenSections:(e,t)=>{e.hiddenSections=t.payload},setSectionsCount:(e,t)=>{e.sectionsCount=t.payload},setFormSections:(e,t)=>{e.formSections=t.payload},setSectionsOrder:(e,t)=>{e.sectionsOrder=t.payload},setCurrentSection:(e,t)=>{e.currentSection=t.payload},setResume:(e,t)=>{e.resume=t.payload},setResumeLoading:(e,t)=>{e.loading=t.payload},setResumeError:(e,t)=>{e.error=t.payload},removeSectionFields:(e,t)=>{let{sectionCode:n,index:r}=t.payload;if(e.resume){let t={...e.resume};Object.keys(t).forEach(e=>{new RegExp("^".concat(n,"-.+_").concat(r,"$")).test(e)&&delete t[e]}),Object.keys(t).forEach(e=>{let o=new RegExp("^".concat(n,"-.+_(\\d+)$")),a=e.match(o);if(a&&parseInt(a[1],10)>r){let n=parseInt(a[1],10)-1;t[e.replace("_".concat(a[1]),"_".concat(n))]=t[e],delete t[e]}}),e.resume=t}},updateSectionName:(e,t)=>{let{sectionCode:n,name:r}=t.payload;e.sectionsOrder=e.sectionsOrder.map(e=>e.code===n?{...e,name:r}:e)},updateTemplateIdAndTemplateCode:(e,t)=>{let{template_id:n,template_code:r}=t.payload;e.template_id=n,e.template_code=r},updateIndustry:(e,t)=>{e.industry=t.payload},updateProfessionalExperience:(e,t)=>{e.professional_experience=t.payload},updateJobDescription:(e,t)=>{e.job_description=t.payload},updateName:(e,t)=>{e.name=t.payload},updateScore:(e,t)=>{e.score=t.payload},updateContentAnalyzerData:(e,t)=>{e.content_analyzer_data=t.payload},updateLayoutAnalyzerData:(e,t)=>{e.layout_analyzer_data=t.payload},setIsAnalyzerModeOn:(e,t)=>{e.is_analyzer_mode_on=t.payload},setDownloadCount:(e,t)=>{e.download_count=t.payload},setIgnoreSuggestions:(e,t)=>{e.ignored_suggestions=t.payload},setSelectedColor:(e,t)=>{e.selected_color=t.payload},setSelectedFontFamily:(e,t)=>{e.selected_font_family=t.payload},setPaidTemplate:(e,t)=>{e.is_paid_template=t.payload}}}),{setResume:a,setResumeLoading:i,setResumeError:s,setCurrentSection:u,setSectionsOrder:c,setFormSections:l,setSectionsCount:d,setHiddenSections:p,removeSectionFields:m,updateSectionName:y,updateTemplateIdAndTemplateCode:f,updateIndustry:L,updateJobDescription:g,updateProfessionalExperience:v,updateName:S,updateScore:h,updateContentAnalyzerData:C,updateLayoutAnalyzerData:_,setIsAnalyzerModeOn:b,setDownloadCount:I,setIgnoreSuggestions:O,setSelectedColor:R,setSelectedFontFamily:A,setPaidTemplate:w}=o.actions;t.ZP=o.reducer},52445:function(){},99717:function(){}},function(e){e.O(0,[3369,3479,8009,7908,1491,5426,5935,4528,2971,8069,1744],function(){return e(e.s=75266)}),_N_E=e.O()}]);