PageSourceSearch

https://www.globus.cz/_nuxt/BQJE3S2D.js

js globus.cz collected 2026-09-25 04:31:22 UTC 2,926 bytes, 2 lines download raw bytes

1import{_ as z}from"./CgdfkhSA.js";import{_ as M}from"./Dmbx25bG.js";import{c$ as N,bt as T,bD as x,aM as A,aX as I,aN as P}from"./BzIBLxk0.js";import{u as R}from"./EXCdcAnf.js";import{m as V,W as b,k as p,c as X,u as o,X as W,Q as G,a0 as H,M as K,a3 as y,L as v}from"./CQKhF-oe.js";import"./CNYbCyth.js";import"./C3KpoJDm.js";import"./ONE7F6K8.js";import"./Bm5oTmFB.js";import"./g_QplsWf.js";import"./BErrEtiy.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="9b244aea-a02f-4e75-a52b-2d1b5f5a8e09",n._sentryDebugIdIdentifier="sentry-dbid-9b244aea-a02f-4e75-a52b-2d1b5f5a8e09")}catch{}})();const S="shoppingListsItems-";function Q(){const n=N();function t(e,i){return i.payload.data[e]??i.static.data[e]}function r(e,i){if(n.shoppingLists!==null)return t(e,i)}function a(e,i){if(e.startsWith(S)){const d=Number(e.slice(S.length));if(Number.isFinite(d)&&n.getShoppingListItemsByListId(d)===void 0)return}return t(e,i)}return{getListsCachedData:r,getListItemsCachedData:a}}const Y={key:0,class:"space-y-section"},j={class:"container"},ot=V({__name:"[id]",async setup(n){var _;let t,r;const a=T("id"),e=N(),{isAuthenticated:i}=x(),d=i.value,{getListsCachedData:D,getListItemsCachedData:w}=Q(),{status:h,data:C}=([t,r]=b(()=>I("shoppingLists",()=>e.fetchShoppingLists(),{watch:[a],server:d,getCachedData:D})),t=await t,r(),t),{status:m,data:g}=([t,r]=b(async()=>I(`shoppingListsItems-${a.value}`,async()=>{const s=Number(a.value);if(Number.isFinite(s))return await e.fetchShoppingListItems(String(s),{force:!0}),e.getShoppingListItemsByListId(s)},{watch:[a],server:d,getCachedData:w})),t=await t,r(),t),{shoppingLists:k}=A(e),l=p(()=>k.value??C.value??null),u=p(()=>{var s,c;return(c=(s=l.value)==null?void 0:s.Items)==null?void 0:c.find(f=>f.ID===Number(a.value))}),B=p(()=>{const s=Number(a.value),c=e.getShoppingListItemsByListId(s);if(c!==void 0)return c;if(g.value!=null)return g.value;if(!(m.value==="pending"||m.value==="idle"))return[]}),E=p(()=>{var s;
1return[...i.value?[{id:0,parent_id:null,slug:"nakupni-seznamy",name:"Nákupní seznamy"}]:[],{id:1,parent_id:null,slug:`nakupni-seznamy/${a.value}`,name:((s=u.value)==null?void 0:s.Name)??"Nákupní seznam"}]}),F=p(()=>!!a.value&&Number.isFinite(Number(a.value))&&h.value==="success"&&m.value==="success"&&!u.value);return X(F,s=>{s&&P({statusCode:404})},{immediate:!0}),R(`${(_=u.value)==null?void 0:_.Name} | Globus`),(s,c)=>{var L;const f=z,$=M;return o(u)?(v(),W("main",Y,[G(f,{items:o(E),class:"container text-body-tertiary"},null,8,["items"]),H("section",j,[o(u)&&((L=o(l))!=null&&L.Items)?(v(),K($,{key:0,summary:o(u),items:o(B),lists:o(l).Items,loading:o(h)==="pending"||o(m)==="pending"},null,8,["summary","items","lists","loading"])):y("",!0)])])):y("",!0)}}});export{ot as default};
2//# sourceMappingURL=BQJE3S2D.js.map

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.