PageSourceSearch

https://voicelab.uz/_next/static/chunks/app/app/layout-f314da07bafd6a97.js

js voicelab.uz collected 2026-09-24 15:14:57 UTC 25,396 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8253],{11:(e,t,r)=>{"use strict";r.d(t,{TelegramProvider:()=>k,j:()=>b});var a=r(95155),n=r(98500),i=r.n(n),s=r(12115),o=r(73321),l=r(69842),c=r(51276),d=r(4474),u=r(71441),h=r(75745),m=r(21548);function p({ticket:e,initData:t,onContinue:r}){let{t:n}=(0,l.c3)("accountLinking"),[i,o]=(0,s.useState)(null),[c,u]=(0,s.useState)("loading"),h=(0,s.useRef)(!1);async function g(){if(!h.current&&"preview"===c){h.current=!0,u("saving");try{await (0,m.e)(e,{init_data:t}),u("linked")}catch(e){u(e instanceof m.h5&&409===e.status?"conflict":"error")}finally{h.current=!1}}}return(0,s.useEffect)(()=>{let t=!1;return u("loading"),(0,m.DN)(e).then(e=>{if(!t){if("telegram"!==e.provider)return void u("error");o(e.account.name),u("preview")}}).catch(()=>{t||u("error")}),()=>{t=!0}},[e]),(0,a.jsx)("main",{className:"flex min-h-svh items-center justify-center bg-background px-6 py-12 text-foreground",children:(0,a.jsxs)("section",{className:"w-full max-w-sm space-y-5 text-center",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold",children:n("telegramTitle")}),"loading"===c||"saving"===c?(0,a.jsx)("p",{role:"status",children:n("loading")}):null,"preview"===c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"break-words",children:n("telegramDescription",{name:i||n("unnamed")})}),(0,a.jsxs)("div",{className:"flex justify-center gap-3",children:[(0,a.jsx)(d.$,{variant:"outline",onClick:()=>u("cancelled"),children:n("cancel")}),(0,a.jsx)(d.$,{onClick:()=>void g(),children:n("confirm")})]})]}):null,"linked"===c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{role:"status",children:n("done")}),(0,a.jsx)(d.$,{onClick:r,children:n("continue")})]}):null,"error"===c||"conflict"===c?(0,a.jsx)("p",{role:"alert",children:n("conflict"===c?"conflict":"invalidTicket")}):null,"cancelled"===c?(0,a.jsx)("p",{role:"status",children:n("cancelled")}):null]})})}var g=r(30370),f=r(95083),v=r(41463);let x=(0,s.createContext)({active:!1,destination:"/app/home"}),b=()=>(0,s.useContext)(x);function k({children:e}){let t=(0,o.usePathname)(),r=(0,o.useRouter)(),{t:n}=(0,l.c3)("telegram"),{setTheme:m}=(0,c.D)(),[b,y]=(0,s.useState)("checking"),[w,j]=(0,s.useState)(null),[A,N]=(0,s.useState)(0),[_,z]=(0,s.useState)("/app/telegram"),T=(0,s.useRef)(!1),[E,C]=(0,s.useState)(null),S=(0,s.useRef)(null),P="/app/telegram"===t;if((0,s.useEffect)(()=>{if(T.current)return;let e=!1,a=(0,g.b_)();return P||a||(0,f.zh)(window.location.hash)||(0,f.uv)((0,f.nB)())?(y("checking"),(async()=>{let n=await (0,f.Jh)(),i=function(e){let t=new URLSearchParams(e).getAll("start_param");if(!t.some(e=>e.startsWith("link_")))return{kind:"none"};if(1!==t.length)return{kind:"invalid"};let r=t[0].slice(5);return/^[A-Za-z0-9_-]{43}$/.test(r)?{kind:"link",ticket:r}:{kind:"invalid"}}(n.initData);if("invalid"===i.kind)throw Error("invalid_telegram_link");if("link"===i.kind&&S.current!==i.ticket){e||(n.ready(),n.expand(),C({ticket:i.ticket,initData:n.initData}));return}let s=(0,f.uv)(n);if(!s&&!a){e||y("outside");return}n.ready();let o=!s&&a?a.destination:P?(0,g.yt)(new URLSearchParams(window.location.search).get("tool")):"/app/onboarding"===window.location.pathname?"/app/telegram":window.location.pathname,l=s?await (0,h.En)(n.initData):await (0,h.qQ)();if(!s&&l.user.id!==a?.userId)throw Error("telegram_session_changed");!e&&(T.current=!0,(0,g.uL)({userId:l.user.id,destination:o}),z(o),j(n),n.expand(),l.user.onboarding&&"completed"!==l.user.onboarding.status?(y("/app/onboarding"===t?"ready":"redirecting"),r.replace("/app/onboarding")):(y("ready"),P&&"/app/telegram"!==o&&r.replace(o)))})().catch(()=>{e||y("error")}),()=>{e=!0}):void y("browser")},[P,A,t,r]),(0,s.useEffect)(()=>{"redirecting"===b&&"/app/onboarding"===t&&y("ready")},[b,t]),(0,s.useEffect)(()=>{if(!w)return;let e=()=>m(w.colorScheme);return e(),w.onEvent("themeChanged",e),()=>w.offEvent("themeChanged",e)},[w,m]),(0,s.useEffect)(()=>{if(!w)return;let e=()=>r.replace("/app/telegram");return"/app/telegram"===t||"/app/onboarding"===t?w.BackButton.hide():w.BackButton.show(),w.BackButton.onClick(e),()=>{w.BackButton.offClick(e),w.BackButton.hide()}},[w,t,r]),(0,s.useEffect)(()=>
1{if(!w)return;let e=document.documentElement,t=()=>{for(let t of["top","right","bottom","left"]){let r=Math.max(0,w.safeAreaInset?.[t]??0)+Math.max(0,w.contentSafeAreaInset?.[t]??0);e.style.setProperty(`--telegram-inset-${t}`,`${r}px`)}e.dataset.telegram="true"};return t(),w.onEvent("safeAreaChanged",t),w.onEvent("contentSafeAreaChanged",t),()=>{for(let r of(w.offEvent("safeAreaChanged",t),w.offEvent("contentSafeAreaChanged",t),delete e.dataset.telegram,["top","right","bottom","left"]))e.style.removeProperty(`--telegram-inset-${r}`)}},[w]),E)return(0,a.jsx)(p,{ticket:E.ticket,initData:E.initData,onContinue:()=>{S.current=E.ticket,C(null),N(e=>e+1)}},E.ticket);if("browser"===b||"ready"===b)return(0,a.jsx)(x.Provider,{value:{active:"ready"===b,destination:"ready"===b?_:"/app/home"},children:(0,a.jsx)("div",{className:"ready"===b?"telegram-shell":void 0,children:e})});if("checking"===b||"redirecting"===b)return(0,a.jsx)("main",{className:"flex min-h-svh items-center justify-center bg-background text-foreground",children:(0,a.jsx)(u.y,{className:"size-5 text-muted-foreground"})});let $=(0,g.Gv)(v.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME);return(0,a.jsx)("main",{className:"flex min-h-svh items-center justify-center bg-background px-6 py-12 text-foreground",children:(0,a.jsxs)("div",{className:"w-full max-w-sm space-y-5 text-center",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold",children:n("title")}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{role:"error"===b?"alert":void 0,children:n("error"===b?"error":"outside")}),"error"===b&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:n("errorDescription")}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:["error"===b&&(0,a.jsx)(d.$,{onClick:()=>N(e=>e+1),children:n("retry")}),$&&(0,a.jsx)("a",{className:"font-medium underline underline-offset-4",href:$,children:n("openBot")}),(0,a.jsx)(i(),{className:"text-sm underline underline-offset-4",href:"/app/home",onClick:e=>{e.preventDefault(),(0,g.uL)(null),window.location.assign("/app/home")},children:n("browser")})]})]})]})})}},4474:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var a=r(95155),n=r(35684),i=r(18460),s=r(71441),o=r(91337);let l=(0,i.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[color,background-color,border-color,box-shadow,opacity,transform] duration-150 [transition-timing-function:cubic-bezier(0.23,1,0.32,1)] outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-current [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function c({className:e,variant:t="default",size:r="default",loading:i=!1,loadingLabel:d="Loading",children:u,disabled:h,"aria-label":m,...p}){return(0,a.jsx)(n.$,{"data-slot":"button",className:(0,o.cn)(l({variant:t,size:r,className:e}),i&&"relative"),disabled:h||i,"aria-busy":i||void 0,"aria-label":i?d:m,...p,children:i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"invisible inline-flex items-center gap-[inherit]",children:u}),(0,a.jsx)(s.y,{"aria-hidden":"true",className:"absolute text-current"})]}):u})}},4922:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var a=r(45322);
1let n=null,i=null,s=0;function o(e){s+=1,n="string"==typeof e&&e.trim()?e:null,i=null}async function l(){let e=function(){try{return new URL("v2/auth/refresh",`${a.H$.replace(/\/$/,"")}/api/`).toString()}catch{return null}}();if(!e)return null;if(i)return i;let t=s,r=(async()=>{try{let r=await fetch(e,{method:"POST",credentials:"include",cache:"no-store"});if(!r.ok){if(t!==s)return n;return n=null,null}let a=function(e){if("object"!=typeof e||null===e)return null;let t=e.access??e.access_token;return"string"==typeof t&&t.trim()?t:null}(await r.json().catch(()=>null));if(t!==s)return n;return n=a,a}catch{return t===s?null:n}})().finally(()=>{i===r&&(i=null)});return i=r,r}let c={hasAccessToken:()=>!!n,getAccessToken:(e=!1)=>!e&&n?Promise.resolve(n):e?l():Promise.resolve(null),setAccessToken(e){o(e)},clearAccessToken(){o(null)}}},9005:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let n={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};n.node;let i=(0,a.A)(n)},15688:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let n={name:"mic",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]};n.node;let i=(0,a.A)(n)},16085:(e,t,r)=>{"use strict";r.d(t,{PasswordResetProvider:()=>s,e:()=>o});var a=r(95155),n=r(12115);let i=(0,n.createContext)(null);function s({children:e}){let[t,r]=(0,n.useState)(null);return(0,a.jsx)(i.Provider,{value:{challengeId:t,setChallengeId:r,clearChallenge:()=>r(null)},children:e})}function o(){let e=(0,n.useContext)(i);if(!e)throw Error("usePasswordReset must be used within PasswordResetProvider");return e}},18219:(e,t,r)=>{"use strict";let a,n;r.d(t,{Gh:()=>f,sf:()=>g,zW:()=>h});var i,s=r(66173),o=r(65620),l=r(4922);let c={limit:2,statusCodes:[401,408,413,429,500,502,503,504],methods:["get","post","put","patch","head","delete","options","trace"],afterStatusCodes:[413,429,503]},d={...c,limit:1,statusCodes:[401],methods:["post","put","patch","delete"],shouldRetry:({error:e})=>e instanceof s.H&&401===e.response.status};function u(e){if(!e)return null;try{let t=new URL(e),r="localhost"===t.hostname||"127.0.0.1"===t.hostname||"[::1]"===t.hostname;return"https:"===t.protocol||"http:"===t.protocol&&r?t:null}catch{return null}}function h(e,t="https://api.voicelab.uz",r="production"){let a=u(t),n="development"===r&&("/api/v7/stt"===e||/^\/api\/v7\/stt\/transcriptions\/stt_[A-Za-z0-9_-]{1,124}$/.test(e));return a&&(e.startsWith("/api/v1/")||n)?new URL(e.slice(1),a).toString():null}let m=(i=()=>{!function(e){let t=u(e);if(!t)return window.location.replace("/app/sign-in");let r=`${t.origin}${t.pathname.replace(/\/+$/,"")}/api/`;(async()=>{await fetch(new URL("v2/auth/logout".replace(/^\/+/,""),r),{method:"POST",credentials:"include",cache:"no-store"}).catch(()=>void 0),window.location.replace("/app/sign-in")})()}("https://api.voicelab.uz")},a=0,n=!1,{observe(e){n||401!==e||(a+=1)<5||(n=!0,i())}});function p(e){401===e&&l.n.hasAccessToken()||m.observe(e)}function g(e={}){let t=e.fetch??globalThis.fetch,r=e.observeResponse??p;return o.Ay.create({prefix:e.baseUrl??"https://api.voicelab.uz",timeout:e.timeout??!1,retry:e.retry??c,throwHttpErrors:e.throwHttpErrors??!0,credentials:e.credentials??"include",cache:e.cache??"no-store",headers:{Accept:"application/json",...e.headers},fetch:function(e,t,r,a=!1){let n=e===globalThis.fetch;return async(i,s)=>{let o,l,c,d=(o=i instanceof Request?i:null,l=a?r.credentials??"include":o?.credentials??s?.credentials??r.credentials??"include",c=a?r.cache??"no-store":o?.cache??s?.cache??r.cache??"no-store",!o||n?{input:i,init:{...s,credentials:l,cache:c}}:{input:o.url,init:{...s,method:o.method,headers:o.headers,body:s?.body??o.body,credentials:l,cache:c,signal:s?.signal??o.signal}}),u=await e(d.input,d.init);return t(u.status),u}}(t,r,{credentials:e.credentials,cache:e.cache},e.forceCredentialsAndCache??!1),hooks:function(e){if(!e.getAccessToken)return;let t=e.tokenScheme??"Token";return{beforeRequest:[async({request:r})=>{if(r.headers.get("Authorization"))return;let a=await e.getAccessToken?.();a||(a=await e.getAccessToken?.(!0)),a&&r.headers.set("Authorization",`${t} ${a}`)}],beforeRetry:[async({error:r,request:a,retryCount:n})=>{if(r instanceof s.H&&401===r.response.status&&1===n){let r=await e.getAccessToken?.(!0);r&&a.headers.set("Authorization",`${t} ${r}`)}}]}}(e)})}!function(e="https://api.voicelab.uz"){g({baseUrl:e,getAccessToken:l.n.getAccessToken,tokenScheme:"Bearer"})}(),function(e="https://api.voicelab.uz"){g({baseUrl:e})}();let f=function(e=globalThis.fetch,t="https://api.voicelab.uz",r=p){let a=g({fetch:e,observeResponse:r,throwHttpErrors:!0,forceCredentialsAndCache:!0,getAccessToken:l.n.getAccessToken,tokenScheme:"Bearer"});return async function(e,r={}){let n=h(e,t);if(!n)throw Error("Direct API is not configured.");let i=(r.method??"GET").toUpperCase(),o=new Headers(r.headers).has("Idempotency-Key"),l="POST"===i&&"/api/v1/tts/async"===e&&!o;try{return await a(new URL(n),{...r,retry:l?0:"GET"===i||"HEAD"===i||o?c:d,throwHttpErrors:!0})}catch(e){if(e instanceof s.H){let t=e.response;if(t.bodyUsed&&void 0!==e.data){let r=new Headers(t.headers),a=(r.get("content-type")??"").split(";",1)[0].trim().toLowerCase(),n=/\/(?:.*[.+-])?json$/.test(a)?JSON.stringify(e.data):String(e.data);return r.delete("content-length"),r.delete("content-encoding"),new Response(n,{status:t.status,statusText:t.statusText,headers:r})}return t}throw e}}}()},31966:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let n={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};n.node;let i=(0,a.A)(n)},45322:(e,t,r)=>{"use strict";r.d(t,{E5:()=>o,H$:()=>n,aq:()=>i,f:()=>s});var a=r(41463);let n="https://api.voicelab.uz".trim()||"https://api.voicelab.uz",i="https://docs.voicelab.uz";a.env.NEXT_PUBLIC_AUTH_LOGIN_PATH,a.env.NEXT_PUBLIC_AUTH_SESSION_PATH,a.env.NEXT_PUBLIC_AUTH_LOGOUT_PATH,a.env.NEXT_PUBLIC_AUTH_LOGOUT_METHOD,a.env.NEXT_PUBLIC_AUTH_REFRESH_PATH?.trim();let s=a.env.NEXT_PUBLIC_AUTH_GOOGLE_PATH?.trim()||"auth/google",o="449767245552-boo40p457r63cagbrdfo3ue5eropmn06.apps.googleusercontent.com".trim()||null},51276:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>l,D:()=>c});var a=r(95155),n=r(12115);let i="theme",s=(0,n.createContext)(null);function o(e){return"light"===e||"dark"===e||"system"===e}function l({children:e}
1){let[t,r]=(0,n.useState)("system"),[c,d]=(0,n.useState)("light"),[u,h]=(0,n.useState)(!1),m="system"===t?c:t;(0,n.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>d(e.matches?"dark":"light"),a=null;try{a=window.localStorage.getItem(i)}catch{}return o(a)&&r(a),t(),h(!0),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,n.useEffect)(()=>{if(u){var e;let t,r;return e=document.documentElement,t=e.getAttribute("data-voicelab-theme"),r=e.style.colorScheme,e.setAttribute("data-voicelab-theme",m),e.style.colorScheme=m,function(){e.getAttribute("data-voicelab-theme")===m&&e.style.colorScheme===m&&(null===t?e.removeAttribute("data-voicelab-theme"):e.setAttribute("data-voicelab-theme",t),e.style.colorScheme=r)}}},[u,m]);let p=(0,n.useCallback)(e=>{if(o(e)){r(e);try{window.localStorage.setItem(i,e)}catch{}}},[]),g=(0,n.useMemo)(()=>({theme:t,resolvedTheme:m,setTheme:p}),[m,p,t]);return(0,a.jsx)(s.Provider,{value:g,children:(0,a.jsx)("div",{"data-app-theme":u?m:void 0,className:"min-h-svh",children:e})})}function c(){let e=(0,n.useContext)(s);if(!e)throw Error("useTheme must be used inside ThemeProvider.");return e}},61549:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>l});var a=r(95155),n=r(66609),i=r(2793),s=r(51276),o=r(71441);let l=({...e})=>{let{theme:t="system"}=(0,s.D)();return(0,a.jsx)(n.l$,{theme:t,className:"toaster group",icons:{success:(0,a.jsx)(i.rK8,{className:"size-4"}),info:(0,a.jsx)(i.CwO,{className:"size-4"}),warning:(0,a.jsx)(i.sFm,{className:"size-4"}),error:(0,a.jsx)(i.qFd,{className:"size-4"}),loading:(0,a.jsx)(o.y,{"aria-hidden":"true"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...e})}},64577:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let n={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};n.node;let i=(0,a.A)(n)},71441:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var a=r(95155),n=r(92571),i=r(69842),s=r(91337);function o({className:e,...t}){let{t:r}=(0,i.c3)("common");return(0,a.jsx)(n.A,{"data-slot":"spinner",role:"status","aria-label":r("loading"),className:(0,s.cn)("size-4 animate-spin motion-reduce:animate-none",e),...t})}},74350:(e,t,r)=>{"use strict";r.d(t,{C:()=>d,l:()=>c});var a=r(95155),n=r(82741),i=r(32949),s=r(45477),o=r(29579),l=r(91337);function c({...e}){return(0,a.jsx)(n.D,{"data-slot":"dialog",...e})}function d({className:e,...t}){return(0,a.jsxs)(i.Z,{"data-slot":"dialog-portal",children:[(0,a.jsx)(s.X,{"data-slot":"dialog-overlay",className:"fixed inset-0 z-50 bg-black/12 backdrop-blur-sm transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:bg-black/55"}),(0,a.jsx)(o.h,{"data-slot":"dialog-content",className:(0,l.cn)("fixed z-50 rounded-2xl border border-black/10 bg-white text-sm text-black shadow-2xl outline-none transition-opacity duration-150 ease-out data-ending-style:opacity-0 data-starting-style:opacity-0 dark:border-white/12 dark:bg-[#1a1a1a] dark:text-white",e),...t})]})}},75780:(e,t,r)=>{Promise.resolve().then(r.bind(r,85451)),Promise.resolve().then(r.bind(r,16085)),Promise.resolve().then(r.bind(r,69842)),Promise.resolve().then(r.bind(r,11)),Promise.resolve().then(r.bind(r,51276)),Promise.resolve().then(r.bind(r,61549))},85451:(e,t,r)=>{"use strict";r.d(t,{AishaWelcomeController:()=>N});var a=r(95155),n=r(12115),i=r(92437),s=r(51811);let o={name:"speech",size:24,node:[["path",{d:"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20",key:"11atix"}],["path",{d:"M19.8 17.8a7.5 7.5 0 0 0 .003-10.603",key:"yol142"}],["path",{d:"M17 15a3.5 3.5 0 0 0-.025-4.975",key:"ssbmkc"}]]};o.node;let l=(0,s.A)(o);var c=r(15688),d=r(64577),u=r(86272),h=r(9005),m=r(31966),p=r(90467),g=r(69842),f=r(4474),v=r(74350),x=r(91337);let b=[{key:"welcome",icon:i.A},{key:"speech",icon:l},{key:"voice",icon:c.A},{key:"ready",icon:d.A}],k=[16,28,44,24,56,36,64,44,28,52,36,20,40,56,28,44,64,36,24,48,32,16];function y({onClose:e}){let{t}
1=(0,g.c3)("aishaWelcome"),[r,i]=(0,n.useState)(0),s=(0,n.useId)(),o=b[r],l=o.icon,c=r===b.length-1;return(0,a.jsxs)(v.C,{"aria-labelledby":`${s}-title`,"aria-describedby":`${s}-description`,className:"top-1/2 left-1/2 max-h-[calc(100dvh-2rem)] w-[calc(100vw-2rem)] max-w-[30rem] -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-3xl",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 px-6 pt-5 sm:px-8",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-black/8 px-3 py-1.5 text-xs font-medium text-black/65 dark:border-white/12 dark:text-white/70",children:[(0,a.jsx)(u.A,{"aria-hidden":"true",className:"size-3.5"}),t("badge")]}),(0,a.jsx)(f.$,{type:"button",variant:"ghost",size:"icon",onClick:e,"aria-label":t("close"),children:(0,a.jsx)(h.A,{"aria-hidden":"true"})})]}),(0,a.jsxs)("div",{"aria-hidden":"true",className:"relative mx-6 mt-6 flex h-44 items-center justify-center overflow-hidden rounded-2xl bg-[#f6f5f2] sm:mx-8 sm:h-52 dark:bg-[#252522]",children:[(0,a.jsx)("div",{className:"absolute flex items-center gap-1.5 opacity-20 dark:opacity-30",children:k.map((e,t)=>(0,a.jsx)("span",{className:"w-1.5 rounded-full bg-black dark:bg-white",style:{height:e}},t))}),(0,a.jsx)("div",{className:"absolute size-40 rounded-full border border-black/5 dark:border-white/5"}),(0,a.jsx)("div",{className:"absolute size-60 rounded-full border border-black/5 dark:border-white/5"}),(0,a.jsx)("div",{className:"relative grid size-20 place-items-center rounded-3xl border border-black/8 bg-white shadow-[0_8px_30px_rgba(0,0,0,0.06)] dark:border-white/15 dark:bg-[#1a1a1a]",children:(0,a.jsx)(l,{className:"size-9 stroke-[1.5]"})})]}),(0,a.jsxs)("div",{className:"px-6 pt-6 sm:px-8",children:[(0,a.jsxs)("div",{"aria-live":"polite","aria-atomic":"true",className:"min-h-32",children:[(0,a.jsx)("h2",{id:`${s}-title`,className:"text-2xl leading-tight font-semibold tracking-tight",children:t(`slides.${o.key}.title`)}),(0,a.jsx)("p",{id:`${s}-description`,className:"mt-3 text-sm leading-6 text-black/60 dark:text-white/65",children:t(`slides.${o.key}.description`)})]}),(0,a.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-3",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"flex items-center gap-1.5",children:b.map(({key:e},t)=>(0,a.jsx)("span",{className:(0,x.cn)("h-1.5 rounded-full transition-[width,background-color] duration-200 motion-reduce:transition-none",t===r?"w-6 bg-black dark:bg-white":"w-1.5 bg-black/15 dark:bg-white/20")},e))}),(0,a.jsx)("span",{className:"text-xs tabular-nums text-black/45 dark:text-white/50",children:t("progress",{current:r+1,total:b.length})})]})]}),(0,a.jsxs)("div",{className:"mt-6 flex flex-wrap items-center justify-between gap-3 border-t border-black/8 px-6 py-5 sm:px-8 dark:border-white/10",children:[(0,a.jsxs)(f.$,{type:"button",variant:"ghost",className:"min-h-10 px-3",onClick:0===r?e:()=>i(e=>e-1),children:[r>0&&(0,a.jsx)(m.A,{"aria-hidden":"true"}),t(0===r?"skip":"back")]}),(0,a.jsxs)(f.$,{type:"button",className:"min-h-10 min-w-28 px-4",onClick:c?e:()=>i(e=>e+1),children:[t(c?"finish":"next"),(0,a.jsx)(p.A,{"aria-hidden":"true"})]})]})]})}function w({open:e,onClose:t}){return(0,a.jsx)(v.l,{open:e,onOpenChange:e=>!e&&t(),children:e&&(0,a.jsx)(y,{onClose:t})})}var j=r(57994);let A="voicelab_aisha_welcome_v1";function N(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("utm_source");if(e?.toLowerCase()==="aisha"){try{if("acknowledged"===window.localStorage.getItem(A))return}catch{}t(!0),(0,j.KG)("tutorial_begin",{tutorial_name:"aisha_welcome"})}},[]),(0,a.jsx)(w,{open:e,onClose:function(){try{window.localStorage.setItem(A,"acknowledged")}catch{}t(!1)}})}},86272:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let n={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};n.node;let i=(0,a.A)(n)},90467:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let n={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};n.node;let i=(0,a.A)(n)},91337:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var a=r(29722),n=r(622);function i(...e){return(0,n.QP)((0,a.$)(e))}},92437:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(51811);let n={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};n.node;let i=(0,a.A)(n)}},e=>{e.O(0,[8823,9432,4270,5542,8500,2173,687,5620,9842,6684,8441,3794,7358],()=>e(e.s=75780)),_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.