PageSourceSearch

https://www.iu.de/build/assets/useStory-xZxIYUWA.js

js iu.de collected 2026-10-02 02:59:23 UTC 1,358 bytes, 1 lines download raw bytes

1import{i as e}from"./dist-V0wV9pPA.js";import{g as t,xn as n}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{F as r}from"./dist-CpmBTglX.js";import{s as i}from"./dist-B-kFk9Az.js";import{n as a}from"./ssr-F9GWYbf6.js";import{n as o,t as s}from"./wayfinder-Dp7PqxvV.js";import{t as c}from"./usePublicConfig-BlEawDBt.js";var l=(e,t)=>({url:l.url(e,t),method:`get`});l.definition={methods:[`get`,`head`],url:`/api/story/{story}`},l.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={story:e}),typeof e==`object`&&!Array.isArray(e)&&`uuid`in e&&(e={story:e.uuid}),Array.isArray(e)&&(e={story:e[0]}),e=s(e);let n={story:typeof e.story==`object`?e.story.uuid:e.story};return l.definition.url.replace(`{story}`,n.story.toString()).replace(/\/+$/,``)+o(t)},l.get=(e,t)=>({url:l.url(e,t),method:`get`}),l.head=(e,t)=>({url:l.url(e,t),method:`head`});var u=new Map;function d(o){if(typeof o!=`string`)return{story:n(o),loading:n(!1),error:n(void 0)};let s=e(),{storiesByUuid:d={}}=s.props,f=u.get(s.url)??{};u.set(s.url,f);let p=d[o]??f[o];if(p||a)return{story:n(p??null),loading:n(!1),error:n(void 0)};let m=s.props.currentLocale,h=l(o,{query:{locale:m}}).url,g=a?new URL(h,c(`LOCAL_APP_URL`,`http://localhost`)).href:h,_=i(g).json(),v=t(()=>_.data.value??null);return r(_.data,e=>{e&&(f[o]=e)}),{story:v,loading:_.isFetching,error:_.error}}export{d as t};

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.