PageSourceSearch

https://app.boosted.ai/assets/useStockPriceBars-CMOuW71g.js

js boosted.ai collected 2026-09-25 14:57:52 UTC 1,576 bytes, 1 lines download raw bytes

1import{d_ as u,h3 as c,jW as l}from"./usePrimeStore-C2Yvd7x-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"all-0.0.1608"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a657b406-9823-482b-abc4-641261bc149c",e._sentryDebugIdIdentifier="sentry-dbid-a657b406-9823-482b-abc4-641261bc149c")}catch{}})();function p(e){return u({queryKey:["company-description",e],queryFn:()=>c(`/stock/${e}/company-description`).then(t=>(t==null?void 0:t.description)??null),enabled:e!=null&&Number.isInteger(e),staleTime:60*6e4})}const o=6e4,i=30*6e4,f=15*6e4;function d(e){const t=/^(\d+)([mhdw])$/.exec(e.trim());if(!t)return null;const s=Number(t[1]),r={m:6e4,h:36e5,d:864e5,w:6048e5}[t[2]];return s>0&&r?s*r:null}function y(e,t){if(e.granularity!=="intraday")return!1;const s=d(e.interval);return!e.asOf||s==null?!1:t-e.asOf*1e3>f+2*s}function E(e,t){const s=e!=null&&Number.isInteger(e)&&!!t;return u({queryKey:["stock-price-bars",e,t],queryFn:async()=>{const{data:r,status:n,errorText:a}=await l("/stock/price-bars",{gbi_id:e,range:t});if(r==null||n<200||n>=300)throw new Error(`Failed to load price bars (status ${n}): ${a||"empty response"}`);return r},enabled:s,retry:!1,staleTime:o,placeholderData:r=>r,refetchInterval:r=>{const n=r.state.data;if(n!=null&&n.isLastCompletedSession||n&&y(n,Date.now()))return i;const a=n==null?void 0:n.refreshAfterSeconds;return a&&a>0?a*1e3:o},refetchIntervalInBackground:!1})}export{E as a,p as u};

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.