1import{_ as h}from"./JojsxdA5.js";import{d as k,i as m,a4 as b,a2 as f,aa as w,e as r,f as s,a as c,h as P,t as _,a0 as q,o as n}from"./DjRoh7cm.js";import{a as C}from"./CqAjjBnD.js";import{u as B}from"./CRk_Kew1.js";import{u as N}from"./COzwoTgv.js";const U={class:"min-h-screen flex flex-col items-center justify-center p-6"},D={class:"w-full max-w-md bg-primary-solid-content shadow-md rounded-lg p-6 space-y-4"},R={key:0,class:"flex flex-col items-center space-y-2"},S={key:1},T={key:0,class:"mt-4 bg-error-solid-base p-4 rounded-radius-base"},V={class:"text-error-solid-content"},j={key:1,class:"mt-4 p-4 rounded-radius-base"},A={class:""},W=k({__name:"[quant]",async setup(E){let a,l;const i=m(),o=m(),d=m(!0),v=b(),g=q(),{lookupModel:y}=B(),{getTickerPageUrl:x}=N();let t=v.params.quant;if(typeof t=="string"&&t.length>0&&(t=t[0]?.toUpperCase()+t.slice(1)),typeof t=="string"&&C(t))try{const{data:u,error:e}=([a,l]=f(()=>y(t,g.public.marketVectorServer.httpUrl)),a=await a,l(),a);if(i.value=u.value,o.value=e.value,i.value){const p=x(i.value);[a,l]=f(()=>w(p,{replace:!0,redirectCode:302})),await a,l()}else o.value=o.value||"No model found for the provided quant."}catch(u){o.value=u.message||"An unknown error occurred."}finally{d.value=!1}else o.value="Invalid quant.",d.value=!1;return(u,e)=>{const p=h;return n(),r("div",U,[s("div",D,[e[4]||(e[4]=s("h1",{class:"text-3xl font-bold text-center"}," Redirect ",-1)),c(d)?(n(),r("div",R,[P(p),e[0]||(e[0]=s("p",{class:""}," Financial experts are guiding you to just the place you want to be... ",-1))])):(n(),r("div",S,[c(o)?(n(),r("div",T,[e[1]||(e[1]=s("p",{class:"text-error-solid-content font-semibold"}," Uh oh! We are automatically notified about these errors. But if it keeps happening, please contact support. ",-1)),e[2]||(e[2]=s("hr",{class:"my-4"},null,-1)),s("p",V,_(c(o)),1)])):(n(),r("div",j,[e[3]||(e[3]=s("p",{class:"font-semibold"}," Data ",-1)),s("p",A,_(c(i)),1)]))]))])])}}});export{W as default};
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.