1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8224,9938],{13496:(e,t,n)=>{"use strict";n.d(t,{$m:()=>f,As:()=>p,nD:()=>m,ub:()=>x});var r=n(95155),a=n(61343),i=n(1737),l=n(33151),s=n(14313),o=n(25201),c=n(64269),d=n(24033),u=n(12108);function m(e){let{className:t,...n}=e;return(0,r.jsx)(a.X,{"data-slot":"accordion",className:(0,c.cn)("flex w-full flex-col",t),...n})}function p(e){let{className:t,...n}=e;return(0,r.jsx)(i.A,{"data-slot":"accordion-item",className:(0,c.cn)("not-last:border-b",t),...n})}function f(e){let{className:t,children:n,...a}=e;return(0,r.jsx)(l.u,{className:"flex",children:(0,r.jsxs)(s.$,{"data-slot":"accordion-trigger",className:(0,c.cn)("focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground rounded-md py-4 text-left text-sm font-medium hover:underline focus-visible:ring-[3px] **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none disabled:pointer-events-none disabled:opacity-50",t),...a,children:[n,(0,r.jsx)(d.A,{"data-slot":"accordion-trigger-icon",className:"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"}),(0,r.jsx)(u.A,{"data-slot":"accordion-trigger-icon",className:"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"})]})})}function x(e){let{className:t,children:n,...a}=e;return(0,r.jsx)(o.v,{"data-slot":"accordion-content",className:"data-open:animate-accordion-down data-closed:animate-accordion-up text-sm overflow-hidden",...a,children:(0,r.jsx)("div",{className:(0,c.cn)("pt-0 pb-4 [&_a]:hover:text-foreground h-(--accordion-panel-height) data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4",t),children:n})})}},14147:(e,t,n)=>{"use strict";n.d(t,{AH:()=>s,QK:()=>c,xy:()=>o});var r=n(89371),a=n(90960),i=n(47434);let l=["active","billing_issue","grace"];function s(e){var t,n,r,a;if(!e)return null;let i=e.sources.filter(e=>"stripe"!==e.source&&l.includes(e.status));return null!=(a=null!=(r=null!=(n=null!=(t=i.find(t=>t.source===e.plan_tier_source&&t.tier===e.effective_tier))?t:i.find(t=>t.tier===e.effective_tier))?n:i.find(t=>t.source===e.plan_tier_source))?r:i[0])?a:null}let o={apple:"https://apps.apple.com/account/subscriptions",google:"https://play.google.com/store/account/subscriptions"};async function c(){let e=(0,a.gf)(),t=await (0,r.Ud)("".concat(i.H$,"/api/billing/iap/summary"),{headers:{"Content-Type":"application/json",...e?{Authorization:"Bearer ".concat(e)}:{}}});if(!t.ok){let e=await t.json().catch(()=>null),n=e&&"object"==typeof e?e.detail:null;throw Error((0,i.PE)(n,"HTTP ".concat(t.status)))}return await t.json()}},26556:(e,t,n)=>{Promise.resolve().then(n.bind(n,89403))},28509:(e,t,n)=>{"use strict";n.d(t,{fz:()=>j,GV:()=>f,v9:()=>b,ew:()=>w,Tt:()=>x,l8:()=>h,E6:()=>_,sk:()=>g,oX:()=>v,U7:()=>y});var r=n(89371),a=n(90960),i=n(47434);let l="/api/admin/legal";class s extends Error{constructor(e,t){super(e),this.name="ApiRequestError",this.status=t}}function o(e){return"object"==typeof e&&null!==e}function c(e){var t,n,r,a,i,l,s,c,d,u,m;if(!o(e))throw Error("Invalid legal document response.");return{id:String(null!=(t=e.id)?t:""),document_type:String(null!=(n=e.document_type)?n:"agb"),locale:String(null!=(r=e.locale)?r:"de"),version_label:String(null!=(a=e.version_label)?a:""),title:String(null!=(i=e.title)?i:""),summary:"string"==typeof e.summary&&e.summary.trim()?e.summary:null,body_markdown:String(null!=(l=e.body_markdown)?l:""),status:String(null!=(s=e.status)?s:"draft"),change_kind:String(null!=(c=e.change_kind)?c:"initial"),requires_reacceptance:!!e.requires_reacceptance,effective_at:String(null!=(d=e.effective_at)?d:""),published_at:"string"==typeof e.published_at&&e.published_at?e.published_at:null,created_at:String(null!=(u=e.created_at)?u:""),updated_at:String(null!=(m=e.updated_at)?m:""),updated_by:"string"==typeof e.updated_by&&e.updated_by?e.updated_by:null}}function d(e){var t,n,r,a,i,l,s,c,d,u;if(!o(e))throw Error("Invalid legal event response.");return{id:String(null!=(t=e.id)?t:""),user_id:"string"==typeof e.user_id&&e.user_id?e.user_id:null,document_version_id:"string"==typeof e.document_version_id&&e.document_version_id?e.document_version_id:null,document_type:String(null!=(n=e.document_type)?n:"agb"),locale:String(null!=(r=e.locale)?r:"de"),version_label:String(null!=(a=e.version_label)?a:""),event_type:String(null!=(i=e.event_type)?i:"notified"),event_source:String(null!=(l=e.event_source)?l:"system"),document_title:String(null!=(s=e.document_title)?s:""),document_body_markdown:String(null!=(c=e.document_body_markdown)?c:""),document_effective_at:String(null!=(d=e.document_effective_at)?d:""),occurred_at:String(null!=(u=e.occurred_at)?u:"")}}async function u(e){let t="HTTP ".concat(e.status),n=await e.json().catch(()=>null);return o(n)?(0,i.PE)(n.detail,t):t}
1async function m(e,t){let n=await (0,r.Ud)("".concat(i.H$).concat(e),{...t,headers:{"Content-Type":"application/json",...function(){let e=(0,a.gf)();return e?{Authorization:"Bearer ".concat(e)}:{}}(),...(null==t?void 0:t.headers)||{}}});if(!n.ok)throw new s(await u(n),n.status);return n.json()}async function p(e,t){let n=await (0,r.Ud)("".concat(i.H$).concat(e),{...t,...{},headers:{"Content-Type":"application/json",...(null==t?void 0:t.headers)||{}}});if(!n.ok)throw new s(await u(n),n.status);return n.json()}function f(e){return{document_version_id:e.id,version_label:e.version_label}}async function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"de";return c(await p("/api/legal/documents/".concat(encodeURIComponent(e),"/active?locale=").concat(encodeURIComponent(t)),{next:{revalidate:300,tags:["legal-document:".concat(e)]}}))}async function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"de";try{return await x(e,t)}catch(n){if(n instanceof s&&404===n.status)return null;return console.error('Active legal document fetch failed for "'.concat(e,'" (').concat(t,"); serving static fallback content"),n),null}}async function g(e){let t=e?"?document_type=".concat(encodeURIComponent(e)):"";return(await m("".concat(l,"/documents").concat(t))).map(e=>c(e))}async function b(e){return c(await m("".concat(l,"/documents"),{method:"POST",body:JSON.stringify(e)}))}async function y(e,t){return c(await m("".concat(l,"/documents/").concat(e),{method:"PATCH",body:JSON.stringify(t)}))}async function v(e){return c(await m("".concat(l,"/documents/").concat(e,"/publish"),{method:"POST"}))}async function j(e){return c(await m("".concat(l,"/documents/").concat(e,"/archive"),{method:"POST"}))}async function _(e){return(await m("".concat(l,"/users/").concat(e,"/history"))).map(e=>d(e))}async function w(e,t){return d(await m("/api/legal/documents/".concat(e,"/events"),{method:"POST",body:JSON.stringify(t)}))}},35446:(e,t,n)=>{"use strict";n.d(t,{GI:()=>s,x0:()=>l});var r=n(52923),a=n(81250);function i(e,t){return"".concat(a.W6,"/").concat(e).concat(t&&"/"!==t?t.startsWith("/")?t:"/".concat(t):"")}function l(e){var t;let n=null!=(t=r.lU[e.locale])?t:r.lU.en,l=i(e.locale,e.path);return{"@context":"https://schema.org","@type":"SoftwareApplication",name:a.Az,description:e.description,url:l,inLanguage:n.hreflang,applicationCategory:"BusinessApplication",operatingSystem:"Web",brand:{"@type":"Organization","@id":a.A6,name:a.Az},offers:e.offers.flatMap(e=>[{"@type":"Offer",name:"".concat(e.name," monthly"),description:"".concat(e.description," Billed monthly."),price:e.monthlyPrice,priceCurrency:"EUR",availability:"https://schema.org/InStock",category:"monthly",url:l},{"@type":"Offer",name:"".concat(e.name," annual"),description:"".concat(e.description," Billed annually."),price:e.annualPrice,priceCurrency:"EUR",availability:"https://schema.org/InStock",category:"annual",url:l}])}}function s(e){return{"@context":"https://schema.org","@type":"ItemList",name:"".concat(a.Az," primary navigation"),itemListElement:e.items.map((t,n)=>({"@type":"SiteNavigationElement",position:n+1,name:t.name,url:i(e.locale,t.path)}))}}},40798:(e,t,n)=>{"use strict";n.d(t,{$m:()=>N,Bm:()=>T,CD:()=>f,E$:()=>g,Gc:()=>p,KL:()=>C,ON:()=>A,Rv:()=>S,Wz:()=>q,i$:()=>k,lY:()=>u,pE:()=>m,sN:()=>w,uO:()=>E,vU:()=>P});var r=n(89371),a=n(90960),i=n(47434),l=n(86699);let s="/api/admin/site-settings",o=/^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$/,c=/^\d+(\.\d{0,2})?$/,d=/^https?:\/\/[^\s]+$/i,u=2048,m=["functional","analytics","advertising"],p=80,f=50,x=["browserbase","worker_runtime","stub"],h={premium:!0,pro:!0},g={admin_notification_email:null,status_page_url:null,apply_agent_runtime:null,tier_prices:l.uf,tier_active:h,consent_vendors:[]};function b(e){return"object"==typeof e&&null!==e}function y(e,t){if(!b(e))return t;let n={...t};for(let t of l.tN){let r=e[t];"number"==typeof r&&Number.isFinite(r)&&r>=0&&(n[t]=r)}return n}function v(e){return b(e)?{admin_notification_email:"string"==typeof e.admin_notification_email&&e.admin_notification_email.trim()?e.admin_notification_email:null,status_page_url:"string"==typeof e.status_page_url&&e.status_page_url.trim()?e.status_page_url.trim():null,apply_agent_runtime:"string"==typeof e.apply_agent_runtime&&x.includes(e.apply_agent_runtime)?e.apply_agent_runtime:null,tier_prices:function(e){if(!b(e))return l.uf;let t=y("monthly"in e?e.monthly:e,l.uf.monthly),n=y("annual"in e?e.annual:null,(0,l.nx)({monthly:t}).annual);return(0,l.nx)({monthly:t,annual:n})}(e.tier_prices),tier_active:function(e){if(!b(e))return h;let t={...h};for(let n of["premium","pro"])"boolean"==typeof e[n]&&(t[n]=e[n]);return t}(e.tier_active),consent_vendors:function(e){if(!Array.isArray(e))return[];let t=new Set,n=[];for(let r of e){if(!b(r))continue;let e=r.category,a=r.name;if("string"!=typeof e||!m.includes(e)||"string"!=typeof a)continue;let i=a.trim();if(!i||i.length>p)continue;let l="".concat(e,"|").concat(i.toLowerCase());if(!t.has(l)&&(t.add(l),n.push({category:e,name:i}),n.length>=f))break}return n}(e.consent_vendors)}:g}async function j(e){let t="HTTP ".concat(e.status),n=await e.json().catch(()=>null);return b(n)?(0,i.PE)(n.detail,t):t}async function _(e,t){let n=arguments.length>
12&&void 0!==arguments[2]&&arguments[2],l=await (0,r.Ud)("".concat(i.H$).concat(e),{...t,headers:{"Content-Type":"application/json",...n?function(){let e=(0,a.gf)();return e?{Authorization:"Bearer ".concat(e)}:{}}():{},...(null==t?void 0:t.headers)||{}}});if(!l.ok)throw Error(await j(l));return l.json()}function w(e){return e.trim().toLowerCase()}function N(e){let t=w(e);return t?o.test(t)?null:"Enter a valid email address such as [email protected].":null}function k(e){return e.trim()}function S(e){let t=k(e);return t?t.length>u?"Status page URL must be ".concat(u," characters or fewer."):d.test(t)?null:"Enter an absolute URL starting with http:// or https://.":null}function C(e){return Number.isInteger(e)?String(e):e.toFixed(2).replace(/\.00$/,"").replace(/(\.\d)0$/,"$1")}function P(e){let t=e.trim();return t?Number(t):null}function A(e,t){let n=e.trim();return n?c.test(n)?null:"".concat(t," price must be a non-negative number with up to 2 decimal places."):null}async function T(){return v(await _(s,void 0,!0))}async function q(e){return v(await _(s,{method:"PATCH",body:JSON.stringify(e)},!0))}async function E(){try{let e=await (0,r.Ud)("".concat(i.H$).concat("/api/public/site-settings"),{headers:{"Content-Type":"application/json"}});if(!e.ok)return null;return v(await e.json())}catch(e){return null}}},48030:(e,t,n)=>{"use strict";n.d(t,{CP:()=>g,De:()=>u,M2:()=>p,OJ:()=>x,_w:()=>d,a2:()=>c,fK:()=>f,qC:()=>b,qU:()=>h,uV:()=>m});var r=n(89371),a=n(90960),i=n(47434),l=n(57254);async function s(e){let t="HTTP ".concat(e.status),n=await e.json().catch(()=>null);if(!n||"object"!=typeof n)return t;let r=n.detail;return"string"==typeof r&&(0,l.A)(r),(0,i.PE)(r,t)}async function o(e,t){let n=await (0,r.Ud)("".concat(i.H$).concat(e),{...t,headers:{"Content-Type":"application/json",...function(){let e=(0,a.gf)();return e?{Authorization:"Bearer ".concat(e)}:{}}(),...(null==t?void 0:t.headers)||{}}});if(!n.ok)throw Error(await s(n));return n.json()}async function c(e){return o("/api/billing/stripe/checkout-session",{method:"POST",body:JSON.stringify(e)})}async function d(e){return o("/api/billing/stripe/checkout-session/".concat(e))}async function u(e,t){let n=new URLSearchParams({plan_tier:e,billing_interval:t});return o("/api/billing/stripe/upgrade-preview?".concat(n.toString()))}async function m(){return o("/api/billing/stripe/subscription")}async function p(){return o("/api/billing/stripe/subscription/cancel",{method:"POST"})}async function f(){return o("/api/billing/stripe/subscription/resume",{method:"POST"})}async function x(e,t){let n=new URLSearchParams({plan_tier:e,billing_interval:t});return o("/api/billing/stripe/scheduled-change/preview?".concat(n.toString()))}async function h(e,t){return o("/api/billing/stripe/scheduled-change",{method:"POST",body:JSON.stringify({plan_tier:e,billing_interval:t})})}async function g(){return o("/api/billing/stripe/scheduled-change/cancel",{method:"POST"})}async function b(){return o("/api/billing/stripe/subscription/refund",{method:"POST"})}},51993:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,q:()=>s});var r=n(89371),a=n(90960),i=n(47434);async function l(e){let t="HTTP ".concat(e.status),n=await e.json().catch(()=>null);if(!n||"object"!=typeof n)return t;let r=n.detail;return(0,i.PE)(r,t)}async function s(e){let t=await (0,r.Ud)("".concat(i.H$).concat("/api/public/plan-interest"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error(await l(t))}async function o(){let e=(0,a.gf)(),t=await (0,r.Ud)("".concat(i.H$).concat("/api/admin/plan-interest-signups"),{headers:e?{Authorization:"Bearer ".concat(e)}:{}});if(!t.ok)throw Error(await l(t));return t.json()}},52444:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(86699);function a(e){var t;if(!e)return{showOffer:r.Co,isActive:!1,daysRemaining:r.CC,tier:r.Bg,isFinished:!1,startsOnVerification:!1};let n=e.trial,a=!!(null==n?void 0:n.is_active);return{showOffer:!!(null==n?void 0:n.is_eligible),isActive:a,daysRemaining:a?n.days_remaining:0,tier:"premium"===(t=a?n.plan_tier:r.Bg)||"pro"===t?t:r.Bg,isFinished:!!(null==n?void 0:n.has_used_trial)&&!a,startsOnVerification:!!(null==n?void 0:n.starts_on_verification)}}}
1,57254:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,IZ:()=>r,aT:()=>i});let r="jobsense:email-verification-required";function a(e){return"EMAIL_NOT_VERIFIED"===e}function i(e){return e instanceof Error&&a(e.message)}function l(e){return!!a(e)&&(window.dispatchEvent(new Event(r)),!0)}},64269:(e,t,n)=>{"use strict";n.d(t,{cn:()=>i});var r=n(2821),a=n(75889);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.QP)((0,r.$)(t))}},74465:(e,t,n)=>{"use strict";n.d(t,{SiteSettingsProvider:()=>s,y:()=>o});var r=n(95155),a=n(12115),i=n(40798);let l=(0,a.createContext)(i.E$);function s(e){let{children:t,initialSettings:n}=e,[s,o]=(0,a.useState)(null!=n?n:i.E$);return(0,a.useEffect)(()=>{let e=!1;return(0,i.uO)().then(t=>{!e&&t&&o(t)}),()=>{e=!0}},[]),(0,r.jsx)(l.Provider,{value:s,children:t})}function o(){return(0,a.useContext)(l)}},81250:(e,t,n)=>{"use strict";var r;n.d(t,{A6:()=>l,Az:()=>i,Rv:()=>s,W6:()=>a});let a=(null!=(r=n(87358).env.NEXT_PUBLIC_SITE_URL)?r:"https://jobsense.ai").replace(/\/+$/,""),i="JobSense",l="".concat(a,"/#organization"),s=[{network:"x",label:"X",value:"https://x.com/JobsenseAI"},{network:"linkedin",label:"LinkedIn",value:"https://linkedin.com/company/jobsenseai"},{network:"instagram",label:"Instagram",value:""}].flatMap(e=>{let{network:t,label:n,value:r}=e,a=function(e){let t=null==e?void 0:e.trim();if(!t)return null;try{let e=new URL(t),n=e.pathname.split("/").filter(Boolean);if("https:"!==e.protocol||0===n.length||1===n.length&&["in","company"].includes(n[0]))return null;return e.toString().replace(/\/+$/,"")}catch(e){return null}}(r);return a?[{network:t,label:n,href:a}]:[]});Array.from(new Set([...s.map(e=>e.href),"https://www.producthunt.com/products/jobsense"]))},86699:(e,t,n)=>{"use strict";var r;n.d(t,{Bg:()=>d,CC:()=>c,Co:()=>u,Gs:()=>q,IN:()=>C,Ky:()=>N,Lu:()=>A,NU:()=>_,Q7:()=>w,Wb:()=>T,gD:()=>j,gy:()=>P,m9:()=>S,nx:()=>y,tN:()=>i,uf:()=>g});let a={prem:"premium",premium_plus:"pro",development:"pro"},i=["free","premium","pro"],l="true".trim().toLowerCase(),s=Number.parseInt(null!=(r="7".trim())?r:"",10),o="premium".trim().toLowerCase(),c=Number.isFinite(s)&&s>=0?s:7,d="pro"===o?"pro":"premium",u=(void 0===l||["1","true","yes","on"].includes(l))&&c>0&&(void 0===o||""===o||"premium"===o||"pro"===o),m={free:0,premium:9,pro:19};function p(e){return"object"==typeof e&&null!==e}function f(e){let t=Number(e.toFixed(2));return Number.isInteger(t)?Math.trunc(t):t}function x(e,t){let n={...t};if(!p(e))return n;for(let t of i){let r=e[t];"number"==typeof r&&Number.isFinite(r)&&r>=0&&(n[t]=f(r))}return n}function h(e){return{free:f(10*e.free),premium:f(10*e.premium),pro:f(10*e.pro)}}let g={monthly:m,annual:h(m)},b={free:{label:"Free",description:"Start free: one Match Score a day, one CV and one cover letter. No card required.",features:["1 Match Score every 24 hours","Job recommendations in your dashboard","1 CV in the CV builder","1 cover letter","PDF and DOCX downloads plus a share link","Daily new-jobs email"]},premium:{label:"Premium",description:"Unlimited Match Scores, CV Tailor rewrites, and unlimited CVs and cover letters for an active search.",features:["Unlimited Match Scores","CV Tailor rewrite plans","Match scores on your recommendations","Unlimited CVs and cover letters","Recommendation settings and manual refresh","Rebuild your profile from a new CV"],highlighted:!0},pro:{label:"Pro",description:"Everything in Premium, plus Apply with JobSense: our agent fills in and submits applications for you.",features:["Apply with JobSense: automatic applications","Unlimited Match Scores","CV Tailor rewrite plans","Match scores on your recommendations","Unlimited CVs and cover letters","Recommendation settings and manual refresh","Rebuild your profile from a new CV"]}};function y(e){let t=p(e)?e:null,n=!!(t&&("monthly"in t||"annual"in t)),r=x(n?null==t?void 0:t.monthly:e,g.monthly),a=x(n?null==t?void 0:t.annual:null,h(r));return{monthly:r,annual:a}}let v={free:[],premium:[1,2,4,5],pro:[0]};function j(e,t){return v[e].includes(t)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"monthly",n=y(e)[t],r="monthly"===t?"month":"year",a="monthly"===t?"monthly":"annual";return{free:{key:"free",...b.free,price:n.free,interval:t,intervalLabel:r,billingLabel:a},premium:{key:"premium",...b.premium,price:n.premium,interval:t,intervalLabel:r,billingLabel:a},pro:{key:"pro",...b.pro,price:n.pro,interval:t,intervalLabel:r,billingLabel:a}}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"monthly",n=_(e,t);return[n.free,n.premium,n.pro]}let N="EUR";
1function k(e,t,n){return new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return k(e,t,N)}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;return k(e,t,n)}function P(e,t){let n=y(e),r=12*n.monthly[t],a=n.annual[t];return r<=0||a<=0||a>=r?null:Math.round((r-a)/r*100)}function A(e){var t;if(!e)return null;let n=null!=(t=a[e])?t:e;return i.includes(n)?n:null}function T(e){let t=A(e);return t?b[t].label:"Free"}function q(e){let t=A(e);return"premium"===t||"pro"===t}_(),w()},89403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ec});var r=n(95155),a=n(12115),i=n(57660),l=n(18955),s=n(22952),o=n(89715),c=n(21786),d=n(95740),u=n(26145),m=n(75091),p=n(39068),f=n(56154),x=n(14755),h=n(54485),g=n(80534),b=n(5917),y=n(65229),v=n(39347),j=n(76907),_=n(13804),w=n(32320),N=n(88119),k=n(68157),S=n(78367),C=n(20859),P=n(65104),A=n(86827),T=n(93919),q=n(76700),E=n(95706),F=n(48030),O=n(14147),$=n(90758),D=n(28509),L=n(86699),U=n(52444),z=n(74465),B=n(64269),R=n(60080),I=n(98148),M=n(52659),V=n(18700),H=n(65556),J=n(49016),Q=n(98653),K=n(51993);let Z=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function W(e){let{open:t,planTier:n,onClose:s}=e,o=(0,l.c)("pricing.notifyModal"),c=(0,i.Ym)(),{user:d}=(0,E.A)(),u=(0,N.p)({isOpen:t,onOpenChange:e=>{e||s()}}),[m,p]=(0,a.useState)(""),[f,x]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!1),[b,y]=(0,a.useState)(!1),[v,j]=(0,a.useState)("");(0,a.useEffect)(()=>{var e;t&&(p(null!=(e=null==d?void 0:d.user.email)?e:""),x(!1),y(!1),j(""))},[t,d]);let _=Z.test(m.trim()),w=n?(0,L.Wb)(n):"";async function k(){if(n&&_&&f){g(!0),j("");try{await (0,K.q)({email:m.trim(),plan_tier:n,locale:c,consent:!0}),y(!0)}catch(e){j(e instanceof Error?e.message:o("errorMessage"))}finally{g(!1)}}}return(0,r.jsx)(q.aF,{state:u,children:(0,r.jsx)(q.aF.Backdrop,{variant:"blur",isDismissable:!0,children:(0,r.jsx)(q.aF.Container,{size:"md",scroll:"outside",className:"w-full p-1 sm:p-2",children:(0,r.jsxs)(q.aF.Dialog,{className:"flex w-full flex-col overflow-visible",children:[(0,r.jsx)(q.aF.CloseTrigger,{}),(0,r.jsxs)(q.aF.Header,{className:"shrink-0",children:[(0,r.jsx)(q.aF.Heading,{className:"text-xl font-extrabold tracking-tight text-foreground",children:o("heading",{plan:w})}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:o("description",{plan:w})})]}),(0,r.jsx)(q.aF.Body,{className:"px-6 pb-1",children:b?(0,r.jsx)("div",{className:"rounded-xl border border-green-200 bg-green-50 px-4 py-3 text-sm text-green-900",children:o("successMessage")}):(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsxs)(M.A_,{isInvalid:!!m&&!_,validate:()=>m&&!_?o("emailInvalid"):null,children:[(0,r.jsx)(V.JU,{className:"mb-1.5 text-xs font-bold uppercase tracking-wide text-muted-foreground",children:o("emailLabel")}),(0,r.jsx)(H.pd,{type:"email",value:m,className:"bg-muted/10",onChange:e=>p(e.target.value),placeholder:o("emailPlaceholder"),autoComplete:"email"}),(0,r.jsx)(J.bg,{})]}),(0,r.jsxs)(Q.Sc,{isSelected:f,onChange:x,variant:"secondary",className:"items-start gap-3",children:[(0,r.jsx)(Q.Sc.Control,{className:"mt-0.5 rounded-md border border-border bg-card/80 data-[selected=true]:border-primary data-[selected=true]:bg-primary/10",children:(0,r.jsx)(Q.Sc.Indicator,{})}),(0,r.jsx)(Q.Sc.Content,{children:(0,r.jsx)(V.JU,{className:"text-sm font-medium text-muted-foreground",children:o("consentLabel",{plan:w})})})]}),v&&(0,r.jsx)("div",{className:"rounded-xl border border-rose-200 bg-rose-50 px-4 py-2 text-sm text-rose-900",children:v})]})}),(0,r.jsx)(q.aF.Footer,{className:"shrink-0",children:b?(0,r.jsx)(S.$n,{variant:"primary",onPress:s,children:o("closeButton")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S.$n,{variant:"ghost",onPress:s,children:o("cancelButton")}),(0,r.jsxs)(S.$n,{variant:"primary",onPress:()=>void k(),isDisabled:!_||!f||h,children:[h?(0,r.jsx)(C.y$,{size:"sm",color:"current"}):null,h?o("submittingButton"):o("submitButton")]})]})})]})})})})}var G=n(57254),X=n(35446),Y=n(13496),ee=n(6191);let et="premium",en=(0,L.Wb)(L.Bg),er="w-full justify-center border border-black !bg-primary !text-card hover:!bg-card hover:!text-primary",ea={free:{card:"border border-border/70 bg-background/90 shadow-[0_18px_40px_rgba(15,23,42,0.06)]",badge:"bg-foreground
1/8 text-foreground",price:"text-foreground",description:"text-muted-foreground",check:"text-foreground/70",button:"outline"},premium:{card:"border border-border/70 bg-card shadow-[0_18px_40px_rgba(15,23,42,0.06)]",badge:"bg-primary/10 text-primary",price:"text-foreground",description:"text-muted-foreground",check:"text-primary",button:"primary"},pro:{card:"border border-border/70 bg-card shadow-[0_18px_40px_rgba(15,23,42,0.06)]",badge:"bg-foreground/10 text-foreground",price:"text-foreground",description:"text-muted-foreground",check:"text-foreground/70",button:"outline"}},ei="w-full justify-center border border-primary bg-card text-black hover:bg-primary hover:text-card",el={"CV Analysis":o.A,"Monthly Uploads":c.A,"AI Suggestions":d.A,"Match Accuracy":u.A,"Alert Priority":m.A,"Global Search":p.A,"Processing Speed":f.A,"Support Level":x.A,"History Retention":h.A,"Insights Dashboard":g.A};function es(e){let{value:t,isHighlighted:n}=e;return"boolean"==typeof t?t?(0,r.jsx)(b.A,{className:"size-5 text-primary","aria-label":"Included"}):(0,r.jsx)(y.A,{className:"size-5 text-muted-foreground/40","aria-label":"Not included"}):(0,r.jsx)("span",{className:(0,B.cn)("text-sm",n?"font-semibold text-foreground":"text-muted-foreground"),children:t})}function eo(){var e,t,n,o,c,u,m,p;let f=(0,s.rd)(),[x,h]=(0,a.useState)(""),g=(0,a.useMemo)(()=>new URLSearchParams(x),[x]),y=(0,i.Ym)(),{user:M,loading:V,refresh:H}=(0,E.A)(),{tier_prices:J,tier_active:Q}=(0,z.y)(),K="annual"===g.get("billing")?"annual":"monthly",Z="quick_match"===g.get("source")&&null!=(t=null==(e=g.get("qm"))?void 0:e.trim())?t:"",eo="1"===g.get("canceled"),[ec,ed]=(0,a.useState)(K),[eu,em]=(0,a.useState)(""),[ep,ef]=(0,a.useState)(null),[ex,eh]=(0,a.useState)(null),[eg,eb]=(0,a.useState)(null),ey=null!=(n=null==eg?void 0:eg.billing_interval)?n:null,[ev,ej]=(0,a.useState)(null),e_=(0,N.p)(),[ew,eN]=(0,a.useState)(null),[ek,eS]=(0,a.useState)(null),[eC,eP]=(0,a.useState)(null),eA=(0,N.p)(),[eT,eq]=(0,a.useState)(null),[eE,eF]=(0,a.useState)(null),[eO,e$]=(0,a.useState)(null),[eD,eL]=(0,a.useState)(!1),[eU,ez]=(0,a.useState)(null),eB=(0,l.c)("pricing");(0,a.useEffect)(()=>{h(window.location.search.slice(1))},[]);let eR=[{label:eB("compareCategories.cvOptimization"),rows:[{featureKey:"CV Builder",feature:eB("compareFeatures.cvBuilder"),free:eB("compareValues.oneCv"),premium:eB("compareValues.unlimited"),pro:eB("compareValues.unlimited")},{featureKey:"Cover Letters",feature:eB("compareFeatures.coverLetters"),free:eB("compareValues.oneLetter"),premium:eB("compareValues.unlimited"),pro:eB("compareValues.unlimited")},{featureKey:"Downloads and Share",feature:eB("compareFeatures.downloadsShare"),free:!0,premium:!0,pro:!0},{featureKey:"CV Tailor",feature:eB("compareFeatures.cvTailor"),free:!1,premium:!0,pro:!0},{featureKey:"Profile Rebuild",feature:eB("compareFeatures.profileRebuild"),free:!1,premium:!0,pro:!0}]},{label:eB("compareCategories.jobMatching"),rows:[{featureKey:"Quick Match",feature:eB("compareFeatures.quickMatch"),free:eB("compareValues.onePer24h"),premium:eB("compareValues.unlimited"),pro:eB("compareValues.unlimited")},{featureKey:"Recommendations",feature:eB("compareFeatures.recommendations"),free:!0,premium:!0,pro:!0},{featureKey:"Recommendation Scores",feature:eB("compareFeatures.recommendationScores"),free:!1,premium:!0,pro:!0},{featureKey:"Recommendation Controls",feature:eB("compareFeatures.recommendationControls"),free:!1,premium:!0,pro:!0},{featureKey:"Daily Digest",feature:eB("compareFeatures.dailyDigest"),free:!0,premium:!0,pro:!0}]},{label:eB("compareCategories.automation"),rows:[{featureKey:"Apply with JobSense",feature:eB("compareFeatures.autoApply"),free:!1,premium:!1,pro:!0}]}],eI=[{question:eB("faq.item0Question"),answer:eB("faq.item0Answer")},{question:eB("faq.item1Question"),answer:eB("faq.item1Answer")},{question:eB("faq.item2Question"),answer:eB("faq.item2Answer")},{question:eB("faq.item3Question"),answer:eB("faq.item3Answer")},{question:eB("faq.item4Question"),answer:eB("faq.item4Answer")},{question:eB("faq.item5Question"),answer:eB("faq.item5Answer")},{question:eB("faq.item6Question"),answer:eB("faq.item6Answer")},{question:eB("faq.item7Question"),answer:eB("faq.item7Answer")},{question:eB("faq.item8Question"),answer:eB("faq.item8Answer")},{question:eB("faq.item9Question"),answer:eB("faq.item9Answer")},...L.Co?[{question:eB("faq.item10Question",{days:L.CC,plan:en}),answer:eB("faq.item10Answer",{days:L.CC,plan:en})}]:[]],eM=(0,L.Lu)(null==M?void 0:M.user.plan_tier),eV=null!=(o=(0,L.Lu)(null==M?void 0:M.user.billable_plan_tier))?o:eM,eH=(0,a.useMemo)(()=>(0,U.k)(M),[M]),eJ=null===eV||"free"===eV&&eH.isActive?null:eV,eQ=(null==M?void 0:M.user.billable_plan_source)==="stripe",eK=(null==M?void 0:M.user.billable_plan_source)==="apple"?"apple":(null==M?void 0:M.user.billable_plan_source)==="google"?"google":null;(0,a.useEffect)(()=>{let e=!0;return eQ?((0,F.uV)().then(t=>{e&&eb(t.subscription_id?t:null)}
1).catch(()=>{e&&eb(null)}),()=>{e=!1}):(eb(null),()=>{e=!1})},[eQ]);let eZ="monthly"===ey&&"annual"===ec,eW="annual"===ey&&"monthly"===ec,eG=e=>L.tN.indexOf(e),eX=(null==eg?void 0:eg.pending_change_effective_at)?{tier:eg.pending_plan_tier,interval:eg.pending_billing_interval,effectiveAt:eg.pending_change_effective_at}:null,eY=e=>null!==eX&&eX.tier===e&&(null===eX.interval||eX.interval===ec),e0=e=>new Date(1e3*e).toLocaleDateString(y,{month:"long",day:"numeric",year:"numeric"}),e1=(0,L.Wb)(eH.tier),e4=eH.isActive?eB("trial.activeStrip",{days:eH.daysRemaining,plan:e1}):eH.startsOnVerification?eB("trial.verifyStrip",{days:L.CC,plan:e1}):eH.showOffer?eB("trial.offerStrip",{days:L.CC,plan:e1}):null,e2=(0,L.Q7)(J,"monthly"),e5=(0,L.Q7)(J,"annual"),e6=(0,L.Q7)(J,ec),e3=e6.map(e=>{let t=eB.raw("plans.".concat(e.key,"Features"));return{...e,label:eB("plans.".concat(e.key,"Label")),description:eB("plans.".concat(e.key,"Description")),features:Array.isArray(t)?t.filter(e=>"string"==typeof e):e.features}}),e8=(0,X.x0)({locale:y,path:"/pricing",description:eB("hero.subheading"),offers:L.tN.map(e=>{var t,n,r,a;return{name:eB("plans.".concat(e,"Label")),description:eB("plans.".concat(e,"Description")),monthlyPrice:null!=(r=null==(t=e2.find(t=>t.key===e))?void 0:t.price)?r:0,annualPrice:null!=(a=null==(n=e5.find(t=>t.key===e))?void 0:n.price)?a:0}})}),e9="annual"===ec,e7=e6.reduce((e,t)=>{var n;return Math.max(e,null!=(n=(0,L.gy)(J,t.key))?n:0)},0),te=null!=(c=null==M?void 0:M.legal.pending_agb_version_label)?c:null;(0,a.useEffect)(()=>{ed(K)},[K]);let tt=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(V||tt.current===ec)return;tt.current=ec;let e=e6.map(e=>({plan_tier:e.key,billing_interval:ec,price:e.price}));(0,R.W$)({plans:e,item_list_id:R.m$,item_list_name:R._W}),(0,R.L_)({plans:e.filter(e=>"free"!==e.plan_tier)})},[ec,V,e6]);let tn=(0,a.useRef)(!1);(0,a.useEffect)(()=>{eo&&!tn.current&&(tn.current=!0,(0,R.lD)({plan_tier:(0,L.Lu)(g.get("plan")),billing_interval:K}))},[K,g,eo]),(0,a.useEffect)(()=>{let e=!0;return Promise.all([(0,D.Tt)("agb","de"),(0,D.Tt)("privacy_notice","de")]).then(t=>{let[n,r]=t;e&&(eF(n),e$(r))}).catch(()=>{e&&em("The current German legal versions could not be loaded. Please refresh and try again.")}),()=>{e=!1}},[]),(0,a.useEffect)(()=>{let e=!0;return Z?((0,$.lZ)(Z).then(t=>{var n,r,a,i;if(!e)return;if(t.tailored_score)return void ez(null);let l=null!=(a=null==(n=t.result)?void 0:n.match_score)?a:t.submission.match_score,s=null!=(i=null==(r=t.result)?void 0:r.projected_score_with_tailor)?i:l;if(null==l||null==s)return void ez(null);let o=Math.max(0,s-l);if(o<=0)return void ez(null);ez({submissionId:t.submission.id,jobTitle:t.submission.job_title,matchScore:l,projectedScoreWithTailor:s,upliftDelta:o})}).catch(()=>{e&&ez(null)}),()=>{e=!1}):(ez(null),()=>{e=!1})},[Z]),(0,a.useEffect)(()=>{eU&&(0,R.Vo)({qm_submission_id:eU.submissionId,match_score:eU.matchScore,projected_score_with_tailor:eU.projectedScoreWithTailor,uplift_delta:eU.upliftDelta,plan_tier:null!=eM?eM:"free"})},[eM,eU]);let tr=e=>eK?eB("banner.storeBilled.".concat(eK,".description")):e||eB("banner.checkoutError"),ta=async e=>{if(V||"free"===e)return;if(!1===Q[e])return void eq(e);if(te)return void em(eB("agbBanner.blocked",{version:te}));let t=eQ&&null!==eJ&&"free"!==e&&(eG(e)<eG(eJ)||e===eJ&&eW);if((0,R.AM)({click_source:"pricing_page",plan_tier:e,billing_interval:ec,cta_text:!M&&e===eH.tier&&eH.showOffer?"Start ".concat(L.CC," free days"):e===eJ&&eZ?"Switch ".concat(e," to annual"):e===eJ&&eW?"Switch ".concat(e," to monthly"):"".concat("free"===eV||!eV?"Upgrade":"Switch"," to ").concat(e)}),!t){var n;(0,R.zK)({plan_tier:e,billing_interval:ec,price:null==(n=e6.find(t=>t.key===e))?void 0:n.price})}if(!M){let t=new URLSearchParams({plan:e,billing:ec}).toString();f.push("/register?".concat(t));return}if(em(""),eP(null),t){ef(e);try{let t=await (0,F.OJ)(e,ec);eN(t),ej(e),eA.open()}catch(e){(0,G.aT)(e)||em(tr(e instanceof Error?e.message:""))}finally{ef(null)}return}if(eV&&"free"!==eV){ef(e);try{let t=await (0,F.De)(e,ec);eh(t),ej(e),e_.open()}catch(e){(0,G.aT)(e)||em(tr(e instanceof Error?e.message:""))}finally{ef(null)}return}await ti(e)},ti=async e=>{em(""),ef(e);try{if(!eE||!eO)throw Error(eB("agbBanner.legalLoading"));let n=e6.find(t=>t.key===e),r=await (0,F.a2)({plan_tier:e,billing_interval:ec,legal:{agb:(0,D.GV)(eE),privacy_notice:(0,D.GV)(eO)}});if(n){var t;(0,R.xS)({plan_tier:e,billing_interval:ec,value:n.price,currency:(null!=(t=null==ex?void 0:ex.currency)?t:L.Ky).toUpperCase()})}window.location.assign(r.checkout_url)}catch(e){(0,G.aT)(e)||em(tr(e instanceof Error?e.message:"")),ef(null)}},tl=(e,t)=>
1new Intl.NumberFormat(y,{style:"currency",currency:t.toUpperCase()}).format(e/100),ts=async()=>{if(ev&&"free"!==ev){em(""),eS(ev);try{let e=await (0,F.qU)(ev,ec);eA.close(),eP(eB("banner.changeScheduled",{plan:eB("plans.".concat(e.plan_tier,"Label")),date:e0(e.effective_at)}));let t=await (0,F.uV)();eb(t.subscription_id?t:null)}catch(e){(0,G.aT)(e)||em(tr(e instanceof Error?e.message:""))}finally{eS(null)}}},to=(e,t)=>{let n=(0,L.Lu)(e)?eB("plans.".concat((0,L.Lu)(e),"Label")):e;return t?eB("downgradeConfirm.planWithInterval",{plan:n,interval:eB("downgradeConfirm.".concat(t))}):n},tc=async()=>{if(!eE)return void em("The current German AGB is still loading. Please try again in a moment.");eL(!0);try{await (0,D.ew)(eE.id,{event_type:"accepted",event_source:"manual_reaccept"}),await H(),em("")}catch(e){em(e instanceof Error?e.message:"The current German AGB could not be accepted.")}finally{eL(!1)}};return(0,r.jsxs)("div",{className:"relative min-h-screen text-foreground",children:[(0,r.jsx)(I.Z,{data:e8}),(0,r.jsxs)("main",{className:"mx-auto max-w-7xl px-4 pb-24 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"flex min-h-dvh flex-col items-center pt-24 min-[1180px]:pt-[6.5rem]",children:[(0,r.jsxs)("section",{className:"mx-auto mb-16 max-w-3xl text-center",children:[eU?(0,r.jsxs)("div",{className:"mb-6 rounded-2xl border border-primary/20 bg-primary/5 px-4 py-4 text-left shadow-[0_18px_40px_rgba(15,23,42,0.06)]",children:[(0,r.jsx)("div",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-primary",children:eB("banner.quickMatchContextEyebrow")}),(0,r.jsx)("div",{className:"mt-2 text-lg font-semibold text-foreground sm:text-xl",children:eB("banner.quickMatchContextTitle",{uplift:eU.upliftDelta})}),(0,r.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:eB("banner.quickMatchContextDescription",{role:null!=(u=eU.jobTitle)?u:eB("banner.quickMatchContextUntitledRole"),score:eU.matchScore,projected:eU.projectedScoreWithTailor})})]}):null,eo?(0,r.jsx)("div",{className:"mb-6 rounded-xl border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800",children:eB("banner.canceled")}):null,eK?(0,r.jsxs)("div",{className:"mb-6 rounded-2xl border border-border bg-secondary/40 px-4 py-4 text-left text-sm text-foreground",children:[(0,r.jsx)("div",{className:"font-semibold",children:eB("banner.storeBilled.".concat(eK,".title"))}),(0,r.jsx)("p",{className:"mb-0 mt-2 leading-relaxed text-muted-foreground",children:eB("banner.storeBilled.".concat(eK,".description"))}),(0,r.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:(0,r.jsxs)(k.N_,{href:O.xy[eK],target:"_blank",rel:"noopener noreferrer",children:[eB("banner.storeBilled.".concat(eK,".button")),(0,r.jsx)(k.N_.Icon,{"aria-hidden":"true"})]})})]}):null,eC?(0,r.jsx)("div",{role:"status",className:"mb-6 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm text-emerald-900",children:eC}):null,eu?(0,r.jsx)("div",{className:"mb-6 rounded-xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800",children:eu}):null,te?(0,r.jsxs)("div",{className:"mb-6 rounded-2xl border border-amber-200 bg-amber-50 px-4 py-4 text-left text-sm text-amber-900",children:[(0,r.jsx)("div",{className:"font-semibold text-amber-950",children:eB("agbBanner.title")}),(0,r.jsx)("p",{className:"mb-0 mt-2 leading-relaxed",children:eB("agbBanner.description",{version:te})}),(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,r.jsx)(S.$n,{variant:"secondary",onPress:()=>f.push("/terms"),children:eB("agbBanner.review")}),(0,r.jsx)(S.$n,{variant:"primary",onPress:()=>void tc(),isPending:eD,isDisabled:eD||!eE,children:e=>{let{isPending:t}=e;return(0,r.jsxs)(r.Fragment,{children:[t?(0,r.jsx)(C.y$,{size:"sm",color:"current"}):null,t?eB("agbBanner.accepting"):eB("agbBanner.accept")]})}})]})]}):null,(0,r.jsx)("h1",{className:"text-balance text-4xl font-semibold tracking-tight sm:text-5xl",children:eB("hero.heading")}),(0,r.jsx)("h2",{className:"mt-4 text-base text-muted-foreground sm:text-lg",children:eB("hero.subheading")}),e4?(0,r.jsxs)("p",{className:"mx-auto mt-6 flex w-fit max-w-full items-center justify-center gap-2.5 rounded-full bg-black px-5 py-2.5 text-sm font-semibold text-white shadow-[0_12px_30px_rgba(19,27,46,0.18)] lg:whitespace-nowrap",children:[(0,r.jsx)(d.A,{className:"size-4 shrink-0 text-white","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-center leading-5",children:e4})]}):null,(0,r.jsx)("div",{className:"mt-8 flex justify-center",children:(0,r.jsxs)("div",{className:"inline-flex flex-wrap items-center justify-center gap-3 rounded-full border border-border/70 bg-card/80 px-4 py-3 shadow-[0_18px_40px_rgba(15,23,42,0.06)] backdrop-blur",children:[(0,r.jsx)("span",{className:(0,B.cn)("text-sm font-semibold",e9?"text-muted-foreground":"text-foreground"),children:eB("hero.monthly")}),(0,r.jsx)(P.dO,{isSelected:e9,onChange:e=>(e=>{ed(e);let t=new URLSearchParams(g.toString());"annual"===e?t.set("billing","annual"):t.delete("billing");let n=t.toString();h(n),f.replace(n?"/pricing?".concat(n):"/pricing",{scroll:!1})}
1)(e?"annual":"monthly"),"aria-label":eB("aria.toggleBilling"),children:(0,r.jsx)(P.dO.Control,{children:(0,r.jsx)(P.dO.Thumb,{})})}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:(0,B.cn)("text-sm font-semibold",e9?"text-foreground":"text-muted-foreground"),children:eB("hero.annual")}),e7>0?(0,r.jsx)(A.vu,{variant:"soft",color:"accent",className:"text-[10px] font-bold uppercase tracking-[0.16em]",children:eB("hero.saveUpTo",{maxSavings:e7})}):null]})]})})]}),(0,r.jsx)("section",{className:"mx-auto grid max-w-sm gap-6 sm:max-w-none lg:grid-cols-3",children:e3.map(e=>{let t=ea[e.key],n=eJ===e.key,a=eM===e.key,i=e.key===et,l="free"!==e.key&&!1===Q[e.key],s=n&&eZ&&!l,o=n&&eW&&!l,c=eY(e.key),u=e9?(0,L.gy)(J,e.key):null,m=e.key===eH.tier&&eH.showOffer;return(0,r.jsxs)(T.Zp,{className:(0,B.cn)("relative overflow-visible flex h-full flex-col rounded-2xl p-6 sm:p-7",t.card,a&&"border-2 border-primary/90 bg-card shadow-[0_32px_64px_-12px_rgba(15,23,42,0.14)] shadow-primary/15"),children:[n&&(0,r.jsx)("div",{className:"absolute -top-3 left-1/2 z-20 -translate-x-1/2",children:(0,r.jsx)(A.vu,{variant:"primary",size:"lg",className:"relative z-20 border border-white/50 bg-primary text-card text-[10px] font-bold uppercase tracking-wider shadow-[0_14px_28px_-10px_rgba(15,23,42,0.45),0_6px_12px_rgba(15,23,42,0.18),inset_0_1px_0_rgba(255,255,255,0.35)]",children:eB("card.current")})}),m?(0,r.jsxs)("p",{"data-pricing-trial-promo":!0,className:"absolute -right-2 top-[-0.75rem] z-20 flex items-center gap-1.5 whitespace-nowrap rounded-l-full rounded-r-sm bg-black py-2 pl-3 pr-4 text-xs font-bold text-white shadow-[0_14px_28px_-10px_rgba(15,23,42,0.5),0_6px_12px_rgba(15,23,42,0.16)] ring-1 ring-white/15",children:[(0,r.jsx)(d.A,{className:"size-3.5 shrink-0 text-white","aria-hidden":"true"}),(0,r.jsx)("span",{children:eB("card.trialNote",{days:L.CC})}),(0,r.jsx)("span",{className:"absolute right-0 top-full size-0 border-b-[7px] border-l-[7px] border-b-transparent border-l-black/60","aria-hidden":"true"})]}):null,(0,r.jsxs)(T.Zp.Header,{className:"gap-4 p-0",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("h3",{className:"text-xl font-bold",children:e.label}),i&&(0,r.jsx)(A.vu,{variant:"primary",color:"accent",className:"text-[10px] font-bold uppercase tracking-wider",children:eB("card.mostPopular")})]}),(0,r.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,r.jsx)("span",{className:(0,B.cn)("text-4xl font-extrabold tracking-tight",t.price),children:(0,L.m9)(e.price,y)}),(0,r.jsxs)("span",{className:(0,B.cn)("text-sm",t.description),children:["/",e.intervalLabel]})]}),(0,r.jsx)("div",{className:"min-h-6",children:u?(0,r.jsx)(A.vu,{variant:"soft",color:"accent",className:"w-fit text-[10px] font-bold uppercase tracking-[0.16em]",children:eB("card.savePct",{savings:u})}):null}),(0,r.jsx)(T.Zp.Description,{className:(0,B.cn)("max-w-xs text-sm leading-relaxed",t.description),children:e.description})]}),(0,r.jsxs)(T.Zp.Content,{className:"flex flex-1 flex-col p-0 pt-8",children:[(0,r.jsx)("ul",{className:"flex flex-1 flex-col gap-3.5",children:e.features.map((n,i)=>{let l=(0,L.gD)(e.key,i);return(0,r.jsxs)("li",{className:"flex items-start gap-2.5 text-sm",children:[a?(0,r.jsx)(v.A,{className:(0,B.cn)("mt-0.5 size-4 shrink-0 fill-current",t.check),"aria-hidden":"true"}):(0,r.jsx)(b.A,{className:(0,B.cn)("mt-0.5 size-4 shrink-0",t.check),"aria-hidden":"true"}),(0,r.jsx)("span",{className:(0,B.cn)(l?"font-semibold text-foreground":"text-foreground/80"),children:n})]},n)})}),(0,r.jsx)(T.Zp.Footer,{className:"mt-auto p-0 pt-8",children:"free"===e.key?n?(0,r.jsx)(S.$n,{variant:"secondary",onPress:()=>f.push("/settings"),isDisabled:V,className:ei,children:eB("card.myPlan")}):(0,r.jsx)(S.$n,{variant:"outline",onPress:()=>f.push(M?"/dashboard":"/register"),isDisabled:V,className:"w-full justify-center",children:eB("card.getStarted")}):c&&eX?(0,r.jsx)(S.$n,{variant:"secondary",isDisabled:!0,className:ei,children:eB("card.scheduled",{date:e0(eX.effectiveAt)})}):s||o?(0,r.jsxs)(S.$n,{variant:t.button,onPress:()=>void ta(e.key),isDisabled:V||null!==ep||null!==eK,isPending:ep===e.ke
1y,className:er,children:[ep===e.key?(0,r.jsx)(C.y$,{size:"sm",color:"current"}):null,s?eB("card.switchToAnnual"):eB("card.switchToMonthly")]}):n?(0,r.jsx)(S.$n,{variant:t.button,onPress:()=>f.push("/settings"),isDisabled:V,className:(0,B.cn)("w-full justify-center",a&&"border border-black/10 bg-white text-black hover:bg-white/90"),children:eB("card.myPlan")}):l?(0,r.jsx)(S.$n,{variant:t.button,onPress:()=>eq(e.key),isDisabled:V,className:er,children:eB("card.notifyMe")}):(0,r.jsx)(S.$n,{variant:t.button,onPress:()=>void ta(e.key),isDisabled:V||null!==ep||null!==eK,isPending:ep===e.key,className:er,children:t=>{let{isPending:n}=t;return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(C.y$,{size:"sm",color:"current"}),!M&&e.key===eH.tier&&eH.showOffer?eB("card.startTrial",{days:L.CC}):"free"!==eV&&eV?eB("card.switchTo",{plan:e.label}):eB("card.upgradeTo",{plan:e.label})]})}})})]})]},e.key)})}),(0,r.jsxs)("div",{className:"mt-8 flex min-h-10 flex-wrap items-center justify-center gap-3 text-sm text-muted-foreground",children:[(0,r.jsx)("span",{children:e9?eB("billing.annual"):eB("billing.monthly")}),(0,r.jsx)("span",{className:"h-1 w-1 rounded-full bg-border","aria-hidden":"true"}),(0,r.jsx)("span",{children:e9?eB("billing.annualDetail"):eB("billing.monthlyDetail")}),(0,r.jsx)("span",{className:"h-1 w-1 rounded-full bg-border","aria-hidden":"true"}),(0,r.jsx)("span",{children:e9&&e7>0?eB("billing.annualSavings",{maxSavings:e7}):eB("billing.guarantee")})]}),(0,r.jsxs)("div",{className:"mx-auto mt-6 max-w-3xl rounded-2xl border border-border/70 bg-card/70 px-5 py-4 text-sm leading-relaxed text-muted-foreground shadow-[0_18px_40px_rgba(15,23,42,0.06)]",children:[(0,r.jsx)("p",{children:eB("legalNotes.tax")}),(0,r.jsx)("p",{className:"mt-2",children:eB("legalNotes.currency")}),(0,r.jsx)("p",{className:"mt-2",children:eB("legalNotes.agb",{agb:null!=(m=null==eE?void 0:eE.version_label)?m:eB("legalNotes.loading"),privacy:null!=(p=null==eO?void 0:eO.version_label)?p:eB("legalNotes.loading")})}),(0,r.jsxs)("div",{className:"mt-2 flex flex-wrap items-center justify-center gap-3 text-xs font-semibold",children:[(0,r.jsx)(s.N_,{href:"/terms",className:"underline hover:text-foreground",children:eB("legalNotes.openAgb")}),(0,r.jsx)("span",{className:"h-1 w-1 rounded-full bg-border","aria-hidden":"true"}),(0,r.jsx)(s.N_,{href:"/privacy",className:"underline hover:text-foreground",children:eB("legalNotes.openPrivacy")})]})]})]}),(0,r.jsxs)("section",{className:"mt-24",children:[(0,r.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,r.jsx)("h3",{className:"text-3xl font-semibold tracking-tight sm:text-4xl",children:eB("compare.heading")}),(0,r.jsx)("p",{className:"mt-3 text-base text-muted-foreground sm:text-lg",children:eB("compare.description")})]}),(0,r.jsx)("div",{className:"mt-10 overflow-hidden rounded-xl border-2 border-white shadow-[0_20px_40px_rgba(15,23,42,0.04)]",children:(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)("table",{className:"w-full border-collapse text-left",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"bg-card",children:[(0,r.jsx)("th",{className:"w-1/4 p-8 align-bottom",children:(0,r.jsx)("span",{className:"text-xs font-bold uppercase tracking-widest text-muted-foreground",children:eB("compare.plans")})}),e3.map(e=>{let t=eM===e.key,n=e.key===et,a=e9?(0,L.gy)(J,e.key):null;return(0,r.jsx)("th",{className:(0,B.cn)("w-1/4 p-8 align-top",t&&"relative z-10 bg-card ring-2 ring-inset ring-primary"),children:(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("h3",{className:(0,B.cn)("text-2xl font-bold",t&&"text-primary"),children:e.label}),n?(0,r.jsx)(A.vu,{variant:"primary",color:"accent",className:"text-[10px] font-bold uppercase tracking-wider",children:eB("card.mostPopular")}):null]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:e.description.split(".")[0]}),(0,r.jsxs)("div",{className:"pt-4",children:[(0,r.jsx)("span",{className:"text-3xl font-extrabold",children:(0,L.m9)(e.price,y)}),(0,r.jsx)("span",{className:"text-sm text-muted-foreground",children:"annual"===e.interval?eB("compare.perYear"):eB("compare.perMonth")})]}),(0,r.jsx)("div",{className:"min-h-6",children:a?(0,r.jsx)(A.vu,{variant:"soft",color:"accent",className:"w-fit text-[10px] font-bold uppercase tracking-[0.16em]",children:eB("card.savePct",{savings:a})}):null})]})},e.key)})]})}),(0,r.jsxs)("tbody",{className:"text-sm",children:[eR.map(e=>(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("tr",{className:"bg-card/50",children:(0,r.jsx)("td",{colSpan:4,className:"px-8 py-4 text-md font-bold uppercase tracking-wider text-primary instrument-font",children:e.label})}),e.rows.map((e,t)=>(0,r.jsxs)("tr",{className:(0,B.cn)(t%2==0?"bg-muted/10":"bg-muted/20"),children:[(0,r.jsx)("td",{className:"px-8 py-6",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(()=>{let t=el[e.featureKey];return t?(0,r.jsx)(t,{className:"size-4 text-muted-foreground","aria-hidden":"true"}):null})(),(0,r.jsx)("span",{className:"font-medium text-foreground",children:e.feature})]})}),e3.map(t=>{let n=e[t.key],a=eM===t.key;return(0,r.jsx)("td",{className:(0,B.cn)("px-8 py-6",a&&""),children:(0,r.jsx)(es,{value:n,isHighlighted:a})},t.key)})]},e.feature))]},e.label)),(0,r.jsxs)("tr",{className:"bg-card",children:[(0,r.jsx)("td",{className:"p-8"}),e3.map(e=>
1{let t=eJ===e.key,n=eM===e.key,a="free"!==e.key&&!1===Q[e.key],i=t&&eZ&&!a,l=t&&eW&&!a,s=i||l,o=eY(e.key),c=o&&eX?eB("card.scheduled",{date:e0(eX.effectiveAt)}):t&&!s?eB("card.myPlan"):i?eB("card.switchToAnnual"):l?eB("card.switchToMonthly"):a?eB("card.notifyMe"):null,d=()=>t&&!s?f.push("/settings"):a?eq(e.key):void ta(e.key),u=V||o||(!t||s)&&!a&&(null!==ep||null!==eK);return(0,r.jsx)("td",{className:(0,B.cn)("p-8",n&&""),children:"free"===e.key?(0,r.jsx)(S.$n,{variant:"outline",onPress:()=>f.push(M?"/dashboard":"/register"),isDisabled:V,className:"w-full justify-center",children:t?eB("card.myPlan"):eB("compare.getStarted")}):n?(0,r.jsx)(S.$n,{variant:"primary",onPress:d,isDisabled:u,className:er,children:null!=c?c:eB("compare.choosePlan",{plan:e.label})}):(0,r.jsx)(S.$n,{variant:"outline",onPress:d,isDisabled:u,className:er,children:null!=c?c:eB("compare.goPlan",{plan:e.label})})},e.key)})]})]})]})})}),(0,r.jsxs)("div",{className:"mt-16 grid gap-6 md:grid-cols-3",children:[(0,r.jsx)(T.Zp,{className:"rounded-xl border border-border bg-card p-6 text-center",children:(0,r.jsxs)(T.Zp.Content,{className:"flex flex-col items-center gap-3 p-0",children:[(0,r.jsx)(j.A,{className:"size-8 text-primary","aria-hidden":"true"}),(0,r.jsx)("h4",{className:"text-lg font-bold",children:eB("trust.secureDataTitle")}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:eB("trust.secureDataDescription")})]})}),(0,r.jsx)(T.Zp,{className:"rounded-xl border border-border bg-card p-6 text-center",children:(0,r.jsxs)(T.Zp.Content,{className:"flex flex-col items-center gap-3 p-0",children:[(0,r.jsx)(_.A,{className:"size-8 text-primary","aria-hidden":"true"}),(0,r.jsx)("h4",{className:"text-lg font-bold",children:eB("trust.moneyBackTitle")}),(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:[eB("trust.moneyBackDescription")," ",(0,r.jsx)(s.N_,{href:"/refund",className:"underline hover:text-foreground",children:eB("trust.moneyBackLink")}),"."]})]})}),(0,r.jsx)(T.Zp,{className:"rounded-xl border border-border bg-card p-6 text-center",children:(0,r.jsxs)(T.Zp.Content,{className:"flex flex-col items-center gap-3 p-0",children:[(0,r.jsx)(w.A,{className:"size-8 text-primary","aria-hidden":"true"}),(0,r.jsx)("h4",{className:"text-lg font-bold",children:eB("trust.cancelTitle")}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:eB("trust.cancelDescription")})]})})]})]}),(0,r.jsxs)("section",{className:"mx-auto mt-24 max-w-3xl",children:[(0,r.jsx)("h3",{className:"mb-8 text-center text-2xl font-bold",children:eB("faq.heading")}),(0,r.jsx)("p",{className:"mx-auto mb-8 max-w-2xl text-center text-sm leading-6 text-muted-foreground",children:eB("faq.description")}),(0,r.jsx)(Y.nD,{className:"flex w-full flex-col gap-4",children:eI.map((e,t)=>(0,r.jsxs)(Y.As,{value:"faq-".concat(t),className:"rounded-xl border border-border bg-card p-5",children:[(0,r.jsxs)(Y.$m,{className:"p-0 text-base font-bold hover:no-underline **:data-[slot=accordion-trigger-icon]:hidden",children:[(0,r.jsx)("span",{className:"text-left text-foreground",children:e.question}),(0,r.jsx)(ee.A,{className:"size-5 shrink-0 transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-45"})]}),(0,r.jsx)(Y.ub,{className:"p-0 text-sm text-muted-foreground",children:(0,r.jsx)("p",{className:"leading-relaxed",children:e.answer})})]},"faq-".concat(t)))}),(0,r.jsxs)("div",{className:"mt-8 rounded-xl border border-border bg-card p-6 text-center",children:[(0,r.jsx)("h4",{className:"text-lg font-bold text-foreground",children:eB("faq.moreQuestionsTitle")}),(0,r.jsx)("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:eB("faq.moreQuestionsBody")}),(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap justify-center gap-3 text-sm font-semibold",children:[(0,r.jsx)(s.N_,{href:"/faq",className:"text-primary no-underline hover:underline",children:eB("faq.moreQuestionsAll")}),(0,r.jsx)(s.N_,{href:"/contact",className:"text-primary no-underline hover:underline",children:eB("faq.moreQuestionsContact")}),(0,r.jsx)("a",{href:"mailto:[email protected]",className:"text-primary no-underline hover:underline",children:eB("faq.moreQuestionsEmail")})]})]})]})]}),(0,r.jsx)(W,{open:null!==eT,planTier:"free"!==eT?eT:null,onClose:()=>eq(null)}),(0,r.jsx)(q.aF,{isOpen:e_.isOpen,onOpenChange:e_.setOpen,children:(0,r.jsx)(q.aF.Backdrop,{isDismissable:null===ep,children:(0,r.jsx)(q.aF.Container,{size:"md",children:(0,r.jsxs)(q.aF.Dialog,{children:[(0,r.jsxs)(q.aF.Header,{children:[(0,r.jsx)(q.aF.Heading,{children:eB("upgradeConfirm.title")}),null===ep&&(0,r.jsx)(q.aF.CloseTrigger,{})]}),(0,r.jsx)(q.aF.Body,{children:ex?(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("dl",{className:"space-y-2 rounded-2xl border border-border bg-background/70 p-4 text-sm",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsx)("dt",{className:"text-muted-foreground",children:eB("upgradeConfirm.fullPrice")}),(0,r.jsx)("dd",{className:"font-medium text-foreground",children:tl(ex.full_price_cents,ex.currency)})]}),ex.credit_cents>0?(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsx)("dt",{className:"text-muted-foreground",children:eB("upgradeConfirm.credit")}),(0,r.jsxs)("dd",{className:"font-medium text-foreground",children:["â",tl(ex.credit_cents,ex.currency)]})]}):null,(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 border-t border-border pt-2",children:[(0,r.jsx)("dt",{className:"font-medium text-foreground",children:eB("upgradeConfirm.dueToday")}),(0,r.jsx)("dd",{className:"text-base font-semibold text-foreground",children:tl(ex.due_today_cents,ex.currency)})]})]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:eB("upgradeConfirm.explanation")})]}):null}),(0,r.jsxs)(q.aF.Footer,{children:[(0,r.jsx)(S.$n,{variant:"outline",onPress:()=>e_.close(),isDisabled:null!==ep,children:eB("upgradeConfirm.cancel")}),(0,r.jsxs)(S.$n,{variant:"primary",isPending:null!==ep,onPress:()=>{ev&&ti(ev)},children:[null!==ep?(0,r.jsx)(C.y$,{size:"sm",color:"current"}):null,eB("upgradeConfirm.confirm")]})]})]})})})}),(0,r.jsx)(q.aF,{isOpen:eA.isOpen,onOpenChange:eA.setOpen,children:(0,r.jsx)(q.aF.Backdrop,{isDismissable:null===ek,children:(0,r.jsx)(q.aF.Container,{size:"md",children:(0,r.jsxs)(q.aF.Dialog,{children:[(0,r.jsxs)(q.aF.Header,{children:[(0,r.jsx)(q.aF.Heading,{children:eB("downgradeConfirm.title")}),null===ek&&(0,r.jsx)(q.aF.CloseTrigger,{})]}),(0,r.jsx)(q.aF.Body,{children:ew?(()=>{let e=e0(ew.effective_at),t=to(ew.current_plan_tier,ew.current_billing_interval),n=to(ew.plan_tier,ew.billing_interval),a=eB("annual"===ew.billing_interval?"downgradeConfirm.pricePerYear":"downgradeConfirm.pricePerMonth",{price:tl(ew.price_cents,ew.currency)});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("dl",{className:"space-y-2 rounded-2xl border border-border bg-background/70 p-4 text-sm",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsx)("dt",{className:"text-muted-foreground",children:eB("downgradeConfirm.currentPlan")}),(0,r.jsx)("dd",{className:"text-right font-medium text-foreground",children:eB("downgradeConfirm.currentPlanValue",{plan:t,date:e})})]}),(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsx)("dt",{className:"text-muted-foreground",children:eB("downgradeConfirm.newPlan",{date:e})}),(0,r.jsx)("dd",{className:"text-right font-medium text-foreground",children:eB("downgradeConfirm.newPlanValue",{plan:n,price:a})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 border-t border-border pt-2",children:[(0,r.jsx)("dt",{className:"font-medium text-foreground",children:eB("downgradeConfirm.dueToday")}),(0,r.jsx)("dd",{className:"text-base font-semibold text-foreground",children:tl(0,ew.currency)})]})]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:eB("downgradeConfirm.explanation",{date:e,currentPlan:t,price:a})}),ew.clears_cancellation?(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:eB("downgradeConfirm.clearsCancellation")}):null,ew.replaces_pending?(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:eB("downgradeConfirm.replacesPending")}):null]})})():null}),(0,r.jsxs)(q.aF.Footer,{children:[(0,r.jsx)(S.$n,{variant:"outline",onPress:()=>eA.close(),isDisabled:null!==ek,children:eB("downgradeConfirm.cancel")}),(0,r.jsxs)(S.$n,{variant:"primary",isPending:null!==ek,onPress:()=>void ts(),children:[null!==ek?(0,r.jsx)(C.y$,{size:"sm",color:"current"}):null,eB("downgradeConfirm.confirm")]})]})]})})})})]})}function ec(){return(0,r.jsx)(eo,{})}},90758:(e,t,n)=>{"use strict";n.d(t,{D2:()=>h,Dt:()=>d,Hh:()=>g,Jy:()=>f,Op:()=>c,Sn:()=>y,bG:()=>p,bn:()=>m,eK:()=>x,iY:()=>b,lZ:()=>u});var r=n(89371),a=n(90960),i=n(47434);function l(){let e=(0,a.gf)();return e?{Authorization:"Bearer ".concat(e)}:{}}async function s(e){let t="HTTP ".concat(e.status),n=await e.json().catch(()=>null);return n?(0,i.PE)(n.detail,t):t}async function o(e,t){let n=arguments.length>
12&&void 0!==arguments[2]&&arguments[2],a=await (0,r.Ud)("".concat(i.H$).concat(e),{...t,headers:{"Content-Type":"application/json",...n?l():{},...(null==t?void 0:t.headers)||{}}});if(!a.ok)throw Error(await s(a));return a.json()}async function c(e){let t=e?"?locale=".concat(encodeURIComponent(e)):"";return o("/api/public/quick-match/definition".concat(t))}async function d(e){var t;let n=new FormData,a={email:e.email||null,consent_document_id:e.consent_document_id,consent_version_label:e.consent_version_label,locale:e.locale,job_input:e.job_input,cv_input:e.cv_input,captcha_token:null!=(t=e.captcha_token)?t:null};n.append("payload",JSON.stringify(a)),e.cv_file&&n.append("cv_file",e.cv_file);let o=await (0,r.Ud)("".concat(i.H$,"/api/public/quick-match/score"),{method:"POST",headers:{...l(),...e.client_fingerprint?{"X-Client-Fingerprint":e.client_fingerprint}:{}},body:n});if(!o.ok)throw Error(await s(o));return o.json()}async function u(e){let t=await (0,r.Ud)("".concat(i.H$,"/api/public/quick-match/submissions/").concat(e),{headers:{...l()}});if(!t.ok)throw Error(await s(t));return t.json()}async function m(e){return o("/api/public/quick-match/submissions/".concat(e,"/link"),{method:"POST"},!0)}async function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return o("/api/quick-match/submissions?limit=".concat(e),void 0,!0)}async function f(e){let t=e?"?locale=".concat(encodeURIComponent(e)):"";return o("/api/admin/quick-match/consent-documents".concat(t),void 0,!0)}async function x(e){return o("/api/admin/quick-match/consent-documents",{method:"POST",body:JSON.stringify(e)},!0)}async function h(e,t){return o("/api/admin/quick-match/consent-documents/".concat(e),{method:"PATCH",body:JSON.stringify(t)},!0)}async function g(){return o("/api/admin/quick-match/overview",void 0,!0)}async function b(e){return o("/api/admin/quick-match/rollout",{method:"PATCH",body:JSON.stringify(e)},!0)}async function y(e){let t=e?"?limit=".concat(encodeURIComponent(String(e))):"";return o("/api/admin/quick-match/cleanup".concat(t),{method:"POST"},!0)}},95706:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,AuthProvider:()=>o});var r=n(95155),a=n(12115),i=n(90960),l=n(89371);let s=(0,a.createContext)(void 0);function o(e){let{children:t}=e,[n,o]=(0,a.useState)(null),[c,d]=(0,a.useState)(!0),[u,m]=(0,a.useState)(!1),p=(0,a.useRef)(0),f=(0,a.useRef)(!1),x=(0,a.useCallback)(async()=>{let e=++p.current,t=(0,l.X$)(),n=(0,i.gf)();if(!n)return f.current=!1,o(null),d(!1),m(!1),null;try{f.current=!0;let r=await (0,i.jp)(n);if(e!==p.current||(0,l.X$)()!==t)return null;return o(r),d(!1),m(!1),r}catch(n){if(e!==p.current||(0,l.X$)()!==t)return null;if(n instanceof l._T&&n.isSessionInvalid)return(0,i.eF)(),o(null),d(!1),m(!1),null;throw m(!0),n}finally{e===p.current&&(f.current=!1)}},[]);(0,a.useEffect)(()=>{let e=()=>{x().catch(()=>void 0)},t=t=>{(null===t.key||"jobsense_token"===t.key||"jobsense_session"===t.key)&&e()};return e(),window.addEventListener("online",e),window.addEventListener("focus",e),window.addEventListener("storage",t),window.addEventListener(l.FN,e),()=>{++p.current,window.removeEventListener("online",e),window.removeEventListener("focus",e),window.removeEventListener("storage",t),window.removeEventListener(l.FN,e)}},[x]),(0,a.useEffect)(()=>{if(!u)return;let e=window.setInterval(()=>{f.current||x().catch(()=>void 0)},5e3);return()=>window.clearInterval(e)},[x,u]);let h=(0,a.useCallback)(async(e,t)=>{(0,i.f7)(e,t),d(!0);let n=await x();if(!n)throw new l._T(401);return n},[x]),g=(0,a.useCallback)(()=>{++p.current,(0,l.JQ)(),o(null),d(!1),m(!1)},[]),b=(0,a.useCallback)(async()=>{await x().catch(()=>void 0)},[x]);return(0,r.jsxs)(s.Provider,{value:{user:n,loading:c,loginWithToken:h,logout:g,refresh:b},children:[u&&(0,r.jsx)("div",{role:"status",className:"fixed bottom-4 left-4 right-4 z-50 rounded-xl border border-border bg-card p-4 text-sm text-foreground shadow-lg",children:"Your account is temporarily unavailable. Reconnecting automatically."}),t]})}function c(){let e=(0,a.useContext)(s);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}}
1,98148:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(95155);function a(e){let{data:t}=e;return(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}}},e=>{e.O(0,[7660,5889,2619,2657,8472,6762,8673,9051,1543,3745,8470,2440,3785,6926,6700,7754,8653,7669,4724,8624,6539,3336,960,2345,8441,1255,7358],()=>e(e.s=26556)),_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.