PageSourceSearch

https://assets.foodi.de/_nuxt/BYqNO8WN.js

js foodi.de collected 2026-10-01 23:49:41 UTC 8,283 bytes, 1 lines download raw bytes

1import{_ as J}from"./DKgkHNCe.js";import{K as Q,T as ee,D as ae,l as t,U as te,V as re,W as le,X as se,Y as ne,Z as oe,$ as ue,a0 as ie,r as y,p as j,a1 as de,d as ce,u as ve,a as pe,o as me,c as fe,e as ge,g as L,h as P,t as B,i as a,j as N,w as Z,F as ke,C as E,s as h,v as ye,a2 as he,f as d,k as _e,_ as be}from"./BSliLbpZ.js";import{u as we,a as Le,p as Pe,b as Te,T as Se,c as Ce,d as Re,e as xe,f as Be,g as Ee,h as Ie,i as Oe}from"./BV2yINuV.js";import{s as De}from"./C7_IyyJh.js";import{u as Me}from"./oGnDziKz.js";import{G as Ue}from"./CkhJhBpJ.js";import"./5B2o6dxm.js";import"./BJVGanQ8.js";import"./uLiMoaBN.js";import"./CrsgJFlk.js";const Ve=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/;function Ne(n){if(n===null||typeof n!="object"||Array.isArray(n))return null;const l=n,u=l.handle;if(typeof u!="string")return null;const o=u.trim();return Ve.test(o)?{handle:o,amount:We(l.amount)}:null}function We(n){if(typeof n!="number"&&typeof n!="string")return null;const l=typeof n=="string"?n.trim():n;if(l==="")return null;const u=Number(l);return!Number.isFinite(u)||u<=0?null:u}const Ae=1e4;function $e(n,l){const u=Q().public.apiBase,o=ee(),g=ae(),f=t(()=>j(n)),m=t(()=>j(l)),c=t(()=>({orderId:f.value,uid:m.value})),v=y(null),e=y(null),i=y(null),I=y(null),T=y(!1),_=y(!1),b=y(!1),O=t(()=>_.value&&i.value===null),S=t(()=>_.value&&(b.value||O.value)),C=t(()=>i.value?.status??""),w=t(()=>i.value?.info??""),p=t(()=>ie(i.value?.timings)),k=t(()=>v.value?ue(v.value):"delivery"),W=t(()=>v.value?oe(v.value):!1),D=t(()=>ne(C.value)),M=t(()=>le(k.value)),U=t(()=>{const r=v.value?Pe(v.value.deliverytimeConfirmed):null;return se(C.value,de(r,Date.now()))}),A=t(()=>re(u,f.value,m.value)),F=t(()=>{const r=e.value;return r?`https://www.google.com/maps/dir//${r.street??""}+${r.number??""},+${r.zip??""}+${r.city??""}/`:null}),R=t(()=>te(k.value,U.value)),s=we({orderId:()=>f.value,uid:()=>m.value,enabled:R}),$=Le(()=>{G()});let x=null;function H(){x===null&&(x=De(()=>{G()},Ae))}function z(){x!==null&&(clearInterval(x),x=null)}async function G(){try{const r=await o.fetchOrderStatus(c.value);r?(i.value=r,$.subscribe(r.id,m.value)):z()}catch{i.value===null&&(b.value=!0),z()}}async function K(){try{const r=await o.fetchOrderStatus(c.value);return r?(i.value=r,!0):!1}catch{return!1}}async function Y(){T.value=!0;try{await g.ensureToken();const[r,V]=await Promise.allSettled([o.lastOrder("",c.value),o.fetchOrderStatus(c.value)]);r.status==="fulfilled"&&r.value&&(v.value=r.value.order,e.value=r.value.host,I.value=Ne(r.value.groupPayPal)),V.status==="fulfilled"?V.value&&(i.value=V.value,$.subscribe(V.value.id,m.value)):b.value=!0}finally{T.value=!1,_.value=!0}}async function q(){await Y(),i.value!==null&&H()}function X(){z(),s.stop(),$.teardown()}return{order:v,host:e,statusOrder:i,groupPayPal:I,loading:T,loaded:_,failed:b,notFound:O,unavailable:S,status:C,info:w,timings:p,kind:k,isPreorder:W,special:D,step:U,labels:M,mapUrl:A,gmapsUrl:F,hasLivePosition:s.hasLivePosition,driverLat:s.driverLat,driverLng:s.driverLng,customerLat:s.customerLat,customerLng:s.customerLng,hostLat:s.hostLat,hostLng:s.hostLng,driverStale:s.driverStale,trackingDisabled:s.trackingDisabled,stopsBeforeYou:s.stopsBeforeYou,etaWindow:s.etaWindow,isEnRoute:R,refresh:Y,refreshStatus:K,start:q,stop:X}}const ze={key:0,class:"track__state",role:"status","aria-live":"polite"},Fe={class:"track__state-text"},Ge={key:1,class:"track__state track__empty"},Ye={class:"track__empty-title"},je={class:"track__empty-text"},Ze={key:0,class:"track__map"},He={class:"track__panel"},Ke={key:0,class:"track__grabber","aria-hidden":"true"},qe={class:"track__note"},Xe=ce({__name:"[uid]",setup(n){const{t:l}=ve(),u=pe(),o=t(()=>he(u.params.orderId,u.params.uid)),g=t(()=>o.value!==null),f=t(()=>o.value?.orderId??""),m=t(()=>o.value?.uid??""),c=t(()=>o.value?.mode==="viewer"),v=t(()=>o.value?.mode==="owner"),e=$e(f,m),{headline:i,body:I,preorderLabel:T,etaWindowLabel:_}=Te({kind:e.kind,preorder:e.isPreorder,status:e.status,info:e.info,deliverytime:()=>e.order.value?.deliverytime,deliverytimeConfirmed:()=>e.order.value?.deliverytimeConfirmed,etaWindow:e.etaWindow}),b=t(()=>e.kind.value==="delivery"&&e.step.value>=3),O=t(()=>e.special.value!=="normal"),S=Me({special:e.special,paymentUrl:()=>c.value?void 0:e.statusOrder.value?.paymentUrl,refreshStatus:e.refreshStatus,backTo:()=>u.path}),C=t(()=>e.special.value==="normal"||e.special.value==="pending"||e.special.value==="cancel_requested"),w=t(()=>e.kind.value!=="table"&&e.special.value==="normal"),p=t(()=>({kind:e.kind.value,special:e.special.value,step:e.step.value,enRoute:e.isEnRoute.value,etaWindow:e.etaWindow.value,deliverytimeConfirmed:e.order.value?.deliverytimeConfirmed??null,orderCreated:e.order.value?.build??null})),k=t(()=>
1w.value&&Ie({...p.value,nowMs:Date.now()})),W=t(()=>c.value&&e.groupPayPal.value!==null),D=t(()=>g.value&&!e.loaded.value),M=t(()=>!g.value||e.unavailable.value),U=t(()=>g.value?l("tracking.verfolgen.unavailable.title"):l("tracking.verfolgen.invalid.title")),A=t(()=>g.value?l("tracking.verfolgen.unavailable.text"):l("tracking.verfolgen.invalid.text"));return me(()=>{g.value&&e.start()}),fe(()=>{e.stop()}),ge(()=>({title:l("tracking.verfolgen.seoTitle"),meta:[{name:"robots",content:"noindex,nofollow"},{name:"referrer",content:"no-referrer"}]})),(F,R)=>{const s=J;return d(),L("div",{class:ye(["track",[w.value&&!M.value&&!D.value?"track--map":"track--single",{"track--ring":k.value}]])},[D.value?(d(),L("div",ze,[R[0]||(R[0]=P("div",{class:"track__spinner","aria-hidden":"true"},null,-1)),P("p",Fe,B(a(l)("tracking.loading")),1)])):M.value?(d(),L("div",Ge,[P("h1",Ye,B(U.value),1),P("p",je,B(A.value),1),N(s,{to:"/",class:"track__empty-cta"},{default:Z(()=>[_e(B(a(l)("tracking.verfolgen.cta")),1)]),_:1})])):(d(),L(ke,{key:2},[w.value?(d(),L("div",Ze,[N(Se,{kind:a(e).kind.value,"map-url":a(e).mapUrl.value,"gmaps-url":a(e).gmapsUrl.value,"driver-lat":a(e).driverLat.value,"driver-lng":a(e).driverLng.value,"customer-lat":a(e).customerLat.value,"customer-lng":a(e).customerLng.value,"host-lat":a(e).hostLat.value,"host-lng":a(e).hostLng.value},null,8,["kind","map-url","gmaps-url","driver-lat","driver-lng","customer-lat","customer-lng","host-lat","host-lng"]),k.value?(d(),E(Ce,{key:0,class:"track__ring",kind:p.value.kind,special:p.value.special,step:p.value.step,"en-route":p.value.enRoute,"eta-window":p.value.etaWindow,"deliverytime-confirmed":p.value.deliverytimeConfirmed,"order-created":p.value.orderCreated},null,8,["kind","special","step","en-route","eta-window","deliverytime-confirmed","order-created"])):h("",!0),v.value?(d(),E(Re,{key:1,class:"track__share","order-id":f.value,"order-uid":m.value},null,8,["order-id","order-uid"])):h("",!0)])):h("",!0),P("div",He,[w.value&&!k.value?(d(),L("span",Ke)):h("",!0),O.value?(d(),E(xe,{key:1,special:a(e).special.value,"info-text":a(e).info.value,"restaurant-name":a(e).host.value?.name,"payment-url":c.value?void 0:a(e).statusOrder.value?.paymentUrl,"retry-ready":a(S).retryReady.value,"retry-checking":a(S).retryChecking.value,onRetry:a(S).onRetry},null,8,["special","info-text","restaurant-name","payment-url","retry-ready","retry-checking","onRetry"])):h("",!0),C.value?(d(),E(Be,{key:2,headline:a(i),"order-number":f.value,body:a(I),kind:a(e).kind.value,phone:a(e).host.value?.phone,"restaurant-name":a(e).host.value?.name,"show-courier":b.value,"order-id":c.value?void 0:f.value,"order-uid":c.value?void 0:m.value,"eta-window-label":a(_),"stops-before-you":a(e).stopsBeforeYou.value,"driver-stale":a(e).driverStale.value},{default:Z(()=>[N(Oe,{step:a(e).step.value,labels:a(e).labels.value,kind:a(e).kind.value,preorder:a(e).isPreorder.value,"preorder-label":a(T)},null,8,["step","labels","kind","preorder","preorder-label"])]),_:1},8,["headline","order-number","body","kind","phone","restaurant-name","show-courier","order-id","order-uid","eta-window-label","stops-before-you","driver-stale"])):h("",!0),W.value?(d(),E(Ue,{key:3,handle:a(e).groupPayPal.value?.handle??"","order-value":a(e).groupPayPal.value?.amount??0},null,8,["handle","order-value"])):h("",!0),N(Ee,{timings:a(e).timings.value},null,8,["timings"]),P("p",qe,B(a(l)("tracking.verfolgen.note")),1)])],64))],2)}}}),ua=be(Xe,[["__scopeId","data-v-aa06b759"]]);export{ua 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.