1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[9180],{37431(e,t,r){r.r(t);var a=r(23579),n=r(31371),s=r(3707),l=r(30369),i=r(72407),o=r(36461),c=r(50183),f=r(96607),u=r(10289);function d(){let{t:e}=(0,i.Bd)(),t=(0,s.Z)(),{chatPresets:r,serverAddress:d}=(0,f.w)(),p=(0,n.useMemo)(()=>r.find(e=>"web"===e.type),[r]),{data:h,error:m}=(0,c.f)(!!p);return(0,n.useEffect)(()=>{if(!p){r.length>0&&o.oR.error(e("No available Web chat links"));return}if(void 0===h&&!m)return;if(m||!h){let r=m instanceof Error?m.message:e("No enabled tokens available");o.oR.error(r),t({to:"/keys"});return}let a=(0,u.Kf)({template:p.url,apiKey:h,serverAddress:d});a&&(window.location.href=a)},[p,h,m,d,r.length,t,e]),(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3",children:[(0,a.jsx)(l.A,{className:"text-muted-foreground h-8 w-8 animate-spin"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:e("Redirecting to chat page...")})]})}r.d(t,{component:()=>d})}}]);
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.