1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6c652c00-d9e1-4374-92fb-80c35817903b",e._sentryDebugIdIdentifier="sentry-dbid-6c652c00-d9e1-4374-92fb-80c35817903b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8039],{5121:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var r=i(12115);let s=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim()},n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,r.forwardRef)((e,t)=>{let{color:i="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,...f}=e;return(0,r.createElement)("svg",{ref:t,...a,width:n,height:n,stroke:i,strokeWidth:l?24*Number(o)/Number(n):o,className:s("lucide",c),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(f)&&{"aria-hidden":"true"},...f},[...u.map(e=>{let[t,i]=e;return(0,r.createElement)(t,i)}),...Array.isArray(d)?d:[d]])}),l=(e,t)=>{let i=(0,r.forwardRef)((i,a)=>{let{className:l,...c}=i;return(0,r.createElement)(o,{ref:a,iconNode:t,className:s("lucide-".concat(n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...c})});return i.displayName=n(e),i}},5917:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=(0,i(5121).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},14005:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=(0,i(5121).A)("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]])},14200:(e,t,i)=>{Promise.resolve().then(i.bind(i,50960))},35299:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=(0,i(5121).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},50960:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var r=i(95155),s=i(12115),n=i(18955),a=i(52056),o=i(40964),l=i(89180);function c(e){let{error:t,reset:i}=e,c=(0,n.c)("errors");return(0,s.useEffect)(()=>{(0,o.s)({message:t.message||"Root error boundary",stack:t.stack,severity:"error",source:"boundary",context:t.digest?{digest:t.digest}:void 0})},[t]),(0,r.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center px-4 py-10",children:(0,r.jsxs)("div",{className:"glass glass-regular w-full max-w-md rounded-2xl p-8 text-center",children:[(0,r.jsx)("div",{className:"glass glass-indigo mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-full",children:(0,r.jsx)(a.A,{className:"h-7 w-7 text-indigo-600","aria-hidden":"true"})}),(0,r.jsx)("h1",{className:"text-xl font-bold text-gray-900",children:c("title")}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:c("description")}),(0,r.jsxs)("div",{className:"mt-7 flex flex-col items-center gap-3",children:[(0,r.jsx)("button",{onClick:i,className:"w-full rounded-xl bg-indigo-600 px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-indigo-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2",children:c("tryAgain")}),(0,r.jsx)(l.c,{className:"w-full",context:{message:t.message,severity:"error",request_id:t.digest||""}}),(0,r.jsx)("a",{href:"/",className:"text-sm font-medium text-gray-500 underline-offset-4 transition hover:text-gray-700 hover:underline",children:c("backHome")})]})]})})}},52056:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=(0,i(5121).A)("triangle-alert",[["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-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},52987:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=(0,i(5121).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},62833:(e,t,i)=>{"use strict";i.d(t,{A:()=>d,AuthProvider:()=>c});var r=i(95155),s=i(12115),n=i(90960);let a=(0,s.createContext)(void 0),o="token";function l(){localStorage.removeItem(o);let e=window.location.hostname.endsWith("zvonai.ai");document.cookie="auth_token=; path=/".concat(e?"; domain=.zvonai.ai":"","; max-age=0")}function c(e){let{children:t}
1=e,[i,c]=(0,s.useState)(null),[d,u]=(0,s.useState)(null),[f,m]=(0,s.useState)(!0);(0,s.useEffect)(()=>{let e=!1;return(async function(){try{let t=await (0,n.getSessionUser)();if(e)return;u(n.SESSION_COOKIE),c(t),l();return}catch(e){}let t=localStorage.getItem(o);if(t)try{await (0,n.refreshToken)(t);let i=await (0,n.getSessionUser)();if(e)return;u(n.SESSION_COOKIE),c(i)}catch(e){}finally{l()}})().finally(()=>{e||m(!1)}),()=>{e=!0}},[]),(0,s.useEffect)(()=>{if(!d)return;let e=setInterval(async()=>{try{await (0,n.refreshToken)(n.SESSION_COOKIE)}catch(e){u(null),c(null)}},27e5);return()=>clearInterval(e)},[d]);let h=async function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=await (0,n.login)(e,t,i);if(r.needs_2fa_setup){r.access_token&&(0,n.setAccessToken)(r.access_token);let e=Error("needs_2fa_setup");throw e.token=n.SESSION_COOKIE,u(n.SESSION_COOKIE),e}if(r.requires_2fa&&r.temp_token){let e=Error("2fa_required");throw e.tempToken=r.temp_token,e.method=r.two_factor_method||"app",e}r.access_token&&(0,n.setAccessToken)(r.access_token),u(n.SESSION_COOKIE),l();try{let e=await (0,n.getSessionUser)();return c(e),e}catch(e){if("email_not_verified"===(e instanceof Error?e.message:""))throw Error("email_not_verified");throw e}},g=(0,s.useCallback)(async e=>{(0,n.setAccessToken)(e),u(n.SESSION_COOKIE),l();let t=await (0,n.getSessionUser)();return c(t),t},[]),p=async()=>{if(d)try{let e=await (0,n.getSessionUser)();c(e)}catch(e){}};return(0,r.jsx)(a.Provider,{value:{user:i,token:d,isLoading:f,login:h,loginWithToken:g,logout:()=>{d&&(0,n.apiLogout)(n.SESSION_COOKIE),(0,n.setAccessToken)(null),l(),localStorage.removeItem("onboarding_draft"),u(null),c(null)},refreshUser:p},children:t})}function d(){let e=(0,s.useContext)(a);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}},89180:(e,t,i)=>{"use strict";i.d(t,{c:()=>g});var r=i(95155),s=i(12115),n=i(18955),a=i(49930),o=i(5917),l=i(35299),c=i(52987),d=i(14005),u=i(24024),f=i(90960),m=i(62833),h=i(40964);function g(e){let{context:t,className:i="",variant:g="button"}=e,p=(0,n.c)("errors"),y=(0,a.Ym)(),{user:x,token:v}=(0,m.A)(),[b,k]=(0,s.useState)("idle"),[w,_]=(0,s.useState)("");async function S(){if("sending"!==b&&"done"!==b){k("sending");try{let e=await fetch("".concat(u.H,"/observability/support-ticket"),{method:"POST",credentials:"include",headers:(0,f.authHeaders)(v,{"Content-Type":"application/json"}),body:JSON.stringify({message:t.message||"",route:t.route||window.location.pathname,request_id:t.request_id||"",severity:t.severity||"error",sentry_event_id:t.sentry_event_id||"",user_agent:"undefined"!=typeof navigator?navigator.userAgent:"",email:(null==x?void 0:x.email)||null,locale:"en"===y?"en":"pl"})});if(e.ok){let t=await e.json().catch(()=>({}));_("string"==typeof(null==t?void 0:t.ticket_id)?t.ticket_id:""),k("done")}else k("notified")}catch(e){(0,h.s)({message:"Support ticket submit failed",route:t.route,severity:"warning",source:"client"}),k("notified")}}}let N="link"===g;return"done"===b||"notified"===b?(0,r.jsxs)("p",{className:(N?"inline-flex items-center gap-1 text-xs font-medium text-emerald-700 ":"inline-flex items-center gap-2 text-sm font-medium text-emerald-700 ")+i,role:"status",children:[(0,r.jsx)(o.A,{className:N?"h-3.5 w-3.5 shrink-0":"h-4 w-4","aria-hidden":"true"}),"notified"===b?p("teamNotified"):w?p("reported",{id:w.slice(0,8)}):p("reportedNoId")]}):N?(0,r.jsx)("button",{type:"button",onClick:S,disabled:"sending"===b,className:"inline-flex items-center gap-1 rounded-sm text-xs font-semibold text-indigo-700 underline decoration-indigo-300 underline-offset-2 transition hover:text-indigo-900 disabled:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-1 "+i,children:"sending"===b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.A,{className:"h-3 w-3 animate-spin","aria-hidden":"true"}),p("reporting")]}):(0,r.jsxs)(r.Fragment,{children:[p("reportProblem"),(0,r.jsx)(c.A,{className:"h-3 w-3 shrink-0","aria-hidden":"true"})]})}):(0,r.jsxs)("button",{type:"button",onClick:S,disabled:"sending"===b,className:"glass glass-indigo glass-interactive inline-flex items-center justify-center gap-2 rounded-xl px-5 py-2.5 text-sm font-semibold text-indigo-700 transition disabled:opacity-60 focus-visible:outline-none "+i,children:["sending"===b?(0,r.jsx)(l.A,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):(0,r.jsx)(d.A,{className:"h-4 w-4","aria-hidden":"true"}),p("sending"===b?"reporting":"reportProblem")]})}}},e=>{e.O(0,[8955,960,8441,1255,7358],()=>e(e.s=14200)),_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.