PageSourceSearch

https://carlnann.com/_nuxt/CuI_yQPD.js

js carlnann.com collected 2026-10-08 06:43:58 UTC 3,350 bytes, 1 lines download raw bytes

1import{u as F,g as E,o as M,s as y,c as k,d as $,h as A,a as P,w as H,b as q,e as R,f as b,i as V,j,k as z,l as S,F as O,m as X,r as G,n as L,_ as J,p as K}from"./Baz0BqQ6.js";function Q(t,e){const n=e/t*100;return 2/Math.PI*100*Math.atan(n/50)}function U(t={}){const{duration:e=2e3,throttle:n=200,hideDelay:r=500,resetDelay:c=400}=t,d=t.estimatedProgress||Q,s=F(),a=y(0),i=y(!1),g=y(!1);let f=!1,m,h,_,D;const I=(o={})=>{N(),g.value=!1,T(0,o)};function T(o=0,l={}){if(s.isHydrating)return;if(o>=100)return p({force:l.force});v(),a.value=o<0?0:o;const u=l.force?0:n;u?h=setTimeout(()=>{i.value=!0,x()},u):(i.value=!0,x())}function w(){_=setTimeout(()=>{i.value=!1,D=setTimeout(()=>{a.value=0},c)},r)}function p(o={}){a.value=100,f=!0,v(),N(),o.error&&(g.value=!0),o.force?(a.value=0,i.value=!1):w()}function N(){clearTimeout(_),clearTimeout(D)}function v(){clearTimeout(h),cancelAnimationFrame(m)}function x(){f=!1;let o;function l(u){if(f)return;o??(o=u);const B=u-o;a.value=Math.max(0,Math.min(100,d(e,B))),m=requestAnimationFrame(l)}m=requestAnimationFrame(l)}let C=()=>{};{const o=s.hook("page:loading:start",()=>{I()}),l=s.hook("page:loading:end",()=>{p()}),u=s.hook("vue:error",()=>p());C=()=>{u(),o(),l(),v()}}return{_cleanup:C,progress:k(()=>a.value),isLoading:k(()=>i.value),error:k(()=>g.value),start:I,set:T,finish:p,clear:v}}function W(t={}){const e=F(),n=e._loadingIndicator||(e._loadingIndicator=U(t));return E()&&(e._loadingIndicatorDeps||(e._loadingIndicatorDeps=0),e._loadingIndicatorDeps++,M(()=>{e._loadingIndicatorDeps--,e._loadingIndicatorDeps===0&&(n._cleanup(),delete e._loadingIndicator)})),n}const Y=$({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(t,{slots:e,expose:n}){const{progress:r,isLoading:c,error:d,start:s,finish:a,clear:i}=W({duration:t.duration,throttle:t.throttle,hideDelay:t.hideDelay,resetDelay:t.resetDelay,estimatedProgress:t.estimatedProgress});return n({progress:r,isLoading:c,error:d,start:s,finish:a,clear:i}),()=>A("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${t.height}px`,opacity:c.value?1:0,background:d.value?t.errorColor:t.color||void 0,backgroundSize:`${100/r.value*100}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},e)}}),ee={__name:"[...slug]",async setup(t){let e,n;const{slug:r}=P().params,c=["teaser.cases","case.related_cases"],s=P().fullPath.includes("_storyblok")?"draft":"published",a=([e,n]=H(()=>X(r&&r.length>0?r.join("/"):"home",{version:s,resolve_relations:c,resolve_links:"url"})),e=await e,n(),e);if(!a.value)throw q({statusCode:404,statusMessage:"Seite nicht gefunden",fatal:!0});return(i,g)=>{const f=Y,m=J,h=G("StoryblokComponent"),_=K;return L(),R(O,null,[b(f),b(m),V("main",null,[S(a)?(L(),j(h,{key:0,blok:S(a).content},null,8,["blok"])):z("",!0)]),b(_)],64)}}};export{ee 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.