1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8580],{72101:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/team/accept",function(){return a(12708)}])},51846:function(e,t,a){"use strict";a.d(t,{B7:function(){return l},MR:function(){return i},T0:function(){return s},Wr:function(){return r}});var n=a(34155);let s=[{id:"free",name:"Free",description:"Perfect for trying out our AI resume builder",price:{monthly:0,yearly:0,monthlyDisplay:"$0",yearlyDisplay:""},stripePriceIds:{monthly:"",yearly:""},features:[{name:"3 resumes",included:!0},{name:"Basic templates",included:!0},{name:"PDF downloads",included:!0}],limits:{resumeGenerations:3,templates:["ats-professional","ats-modern","ats-minimalist"],downloads:["pdf"]},cta:"Get Started Free"},{id:"pro",name:"Pro",description:"Best for job seekers who want unlimited resumes",price:{monthly:19.99,yearly:0,monthlyDisplay:"$19.99",yearlyDisplay:""},stripePriceIds:{monthly:n.env.NEXT_PUBLIC_STRIPE_PRICE_ID_PRO_MONTHLY||"",yearly:""},features:[{name:"Single user account",included:!0},{name:"Unlimited resume generations",included:!0},{name:"All premium templates",included:!0},{name:"PDF + Word downloads",included:!0},{name:"AI-powered resume analysis",included:!0},{name:"H1B visa job listings",included:!0},{name:"Priority support (email & chat)",included:!0}],limits:{resumeGenerations:-1,templates:["ats-professional","ats-modern","ats-minimalist","ats-executive","ats-technical","ats-creative"],downloads:["pdf","word"]},popular:!0,cta:"Start Pro Trial"},{id:"enterprise",name:"Enterprise",description:"For teams and recruitment agencies",price:{monthly:29.99,yearly:0,monthlyDisplay:"$29.99",
1yearlyDisplay:""},stripePriceIds:{monthly:n.env.NEXT_PUBLIC_STRIPE_PRICE_ID_ENTERPRISE_MONTHLY||"",yearly:""},features:[{name:"All Pro features",included:!0},{name:"3 team seats",included:!0},{name:"Collaborative team workspace",included:!0},{name:"Shared team templates",included:!0},{name:"Unlimited H1B visa job access",included:!0},{name:"Admin & billing dashboard",included:!0},{name:"Dedicated account support",included:!0}],limits:{resumeGenerations:-1,templates:["ats-professional","ats-modern","ats-minimalist","ats-executive","ats-technical","ats-creative"],downloads:["pdf","word"]},cta:"Contact Sales"}],r=e=>{let t=s.find(t=>t.id===e);return(null==t?void 0:t.price.monthly)||0};n.env.STRIPE_PRICE_ID_PRO_MONTHLY,n.env.STRIPE_PRICE_ID_ENTERPRISE_MONTHLY;let i=()=>s.map(e=>{var t;return{id:e.id,name:"enterprise"===e.id?"Team":e.name,description:e.description,price:e.price.monthly,priceDisplay:e.price.monthlyDisplay||"$".concat(e.price.monthly),popular:!!e.popular,benefits:e.features.filter(e=>e.included).map(e=>e.name),stripePriceId:(null===(t=e.stripePriceIds)||void 0===t?void 0:t.monthly)||""}}),l=e=>i().find(t=>t.id===e)},12708:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return f},default:function(){return y}});var n=a(85893),s=a(67294),r=a(11163),i=a(33299),l=a(9008),o=a.n(l),c=a(85412),d=a(51846),m=a(67694);let u=s.forwardRef(function(e,t){let{title:a,titleId:n,...r}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},r),a?s.createElement("title",{id:n},a):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});var h=a(11429),p=a(29711),x=a(7145),f=!0;function y(){var e;let t=(0,r.useRouter)(),{data:a,status:l}=(0,i.useSession)(),{theme:f}=(0,m.F)(),[y,g]=(0,s.useState)(!1),[b,w]=(0,s.useState)(null),{token:v}=t.query;(0,s.useEffect)(()=>{"authenticated"!==l||!v||y||b||j()},[l,v]);let j=async()=>{if(v){g(!0);try{let a=await fetch("/api/team/accept",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:v})}),n=await a.json();if(a.ok){var e;w({success:!0,message:n.message||"Successfully joined the team!",teamOwner:(null===(e=n.details)||void 0===e?void 0:e.teamOwner)||n.teamOwner}),setTimeout(()=>{t.push("/profile-management")},3e3)}else console.error("Accept invitation failed:",n),w({success:!1,message:n.message||n.error||"Failed to accept invitation. Please try again."})}catch(e){console.error("Network error:",e),w({success:!1,message:"Network error. Please check your connection and try again."})}finally{g(!1)}}};return(0,n.jsxs)("div",{className:"min-h-screen",style:{background:"dark"===f?"linear-gradient(135deg, #0f172a 0%, #1e293b 100%)":"linear-gradient(135deg, #F43F5E 0%, #e11d48 100%)"},children:[(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:"Accept Invitation - TrueResume"}),(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,n.jsx)(c.Z,{}),(0,n.jsx)("div",{className:"container mx-auto px-4 py-12",children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsxs)("div",{className:"rounded-2xl border p-8 text-center ".concat("dark"===f?"bg-[#272729] border-[#343536] ":"bg-white border-gray-200"),children:[(0,n.jsxs)("div",{className:"mb-6",children:[y&&(0,n.jsx)(u,{className:"w-14 h-14 sm:w-16 sm:h-16 mx-auto text-blue-600 animate-spin"}),(null==b?void 0:b.success)&&(0,n.jsx)(h.Z,{className:"w-14 h-14 sm:w-16 sm:h-16 mx-auto text-green-500"}),(null==b?void 0:b.success)===!1&&(0,n.jsx)(p.Z,{className:"w-14 h-14 sm:w-16 sm:h-16 mx-auto text-red-500"}),!y&&!b&&(0,n.jsx)(x.Z,{className:"w-14 h-14 sm:w-16 sm:h-16 mx-auto text-blue-600"})]}),(0,n.jsxs)("h1",{className:"text-3xl font-bold mb-4 ".concat("dark"===f?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif"},children:[y&&"Joining Team...",(null==b?void 0:b.success)&&"Welcome to the Team! \uD83C\uDF89",(null==b?void 0:b.success)===!1&&"Invitation Failed",!y&&!b&&"Team Invitation"]}),(0,n.jsxs)("p",{className:"text-lg mb-6 ".concat("dark"===f?"text-[#D7DADC]":"text-gray-700"),children:[y&&"Please wait while we add you to the team...",null==b?void 0:b.message,!y&&!b&&"unauthenticated"===l&&"Please sign in to accept this team invitation"]}),(null==b?void 0:b.success)&&(0,n.jsx)("div",{className:"p-4 rounded-lg mb-6 ".concat("dark"===f?"bg-[#343536]":"bg-gray-50"),children:(0,n.jsxs)("p",{className:"text-sm ".concat("dark"===f?"text-[#818384]":"text-gray-600"),children:["You have been added to ",(0,n.jsxs)("span",{className:"font-semibold",children:[b.teamOwner,"'s"]})," team. Redirecting to dashboard..."]})}),"unauthenticated"===l&&!b&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"p-4 rounded-lg ".concat("dark"===f?"bg-blue-900/30 border border-blue-700":"bg-blue-50 border border-blue-200"),children:[(0,n.jsxs)("p",{className:"text-sm mb-3 ".concat("dark"===f?"text-blue-300":"text-blue-900"),children:[(0,n.jsx)("strong",{children:"New to TrueResume?"})," No worries! You can create an account in seconds."]}),(0,n.jsx)("p",{className:"text-xs ".concat("dark"===f?"text-blue-400":"text-blue-700"),
1children:"After signing in, you'll automatically join the team."})]}),(0,n.jsx)("button",{onClick:()=>t.push("/login?callbackUrl=/team/accept?token=".concat(v)),className:"w-full bg-[#FF4500] text-white px-8 py-3 rounded-lg font-semibold hover:shadow-lg transition-all",children:"Sign In or Create Account"}),(0,n.jsx)("p",{className:"text-xs text-center ".concat("dark"===f?"text-[#818384]":"text-gray-500"),children:"Don't have an account? You'll be able to create one on the next page."})]}),(null==b?void 0:b.success)===!1&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("button",{onClick:()=>t.push("/profile-management"),className:"w-full py-3 rounded-lg font-semibold ".concat("dark"===f?"bg-[#343536] text-white hover:bg-[#343536]":"bg-gray-200 text-gray-900 hover:bg-gray-300"),children:"Go to Dashboard"}),(0,n.jsx)("p",{className:"text-sm ".concat("dark"===f?"text-[#818384]":"text-gray-600"),children:"Need help? Contact the team owner for a new invitation."})]})]}),(0,n.jsxs)("div",{className:"mt-6 rounded-xl border p-6 ".concat("dark"===f?"bg-[#272729] border-[#343536] ":"bg-white border-gray-200"),children:[(0,n.jsx)("h3",{className:"font-semibold mb-2 ".concat("dark"===f?"text-white":"text-gray-900"),children:"What happens next?"}),(0,n.jsx)("ul",{className:"space-y-2 text-sm ".concat("dark"===f?"text-[#D7DADC]":"text-gray-700"),children:null===(e=(0,d.B7)("enterprise"))||void 0===e?void 0:e.benefits.map((e,t)=>(0,n.jsxs)("li",{className:"flex items-start gap-2",children:[(0,n.jsx)(h.Z,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),(0,n.jsx)("span",{children:e})]},t))})]})]})})]})}},11429:function(e,t,a){"use strict";var n=a(67294);let s=n.forwardRef(function(e,t){let{title:a,titleId:s,...r}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},r),a?n.createElement("title",{id:s},a):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=s},7145:function(e,t,a){"use strict";var n=a(67294);let s=n.forwardRef(function(e,t){let{title:a,titleId:s,...r}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},r),a?n.createElement("title",{id:s},a):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"}))});t.Z=s},29711:function(e,t,a){"use strict";var n=a(67294);let s=n.forwardRef(function(e,t){let{title:a,titleId:s,...r}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},r),a?n.createElement("title",{id:s},a):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=s}},function(e){e.O(0,[4968,1296,5412,2888,9774,179],function(){return e(e.s=72101)}),_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.