PageSourceSearch

https://www.deligo.pt/_next/static/chunks/0.j6f5tr7gs9q.js

js deligo.pt collected 2026-09-24 15:10:44 UTC 9,561 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61161,e=>{"use strict";let t=(0,e.i(6927).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],61161)},70557,e=>{"use strict";var t=e.i(73576);let r=[],a=0;e.s(["useEscapeToClose",0,function(e,n,o){let i=o?.layer??50,s=(0,t.useRef)(n),l=(0,t.useRef)(!!o?.disabled);(0,t.useEffect)(()=>{s.current=n,l.current=!!o?.disabled}),(0,t.useEffect)(()=>{if(!e)return;let t=Symbol("modal");r.push({id:t,layer:i,order:++a});let n=e=>{"Escape"!==e.key||e.isComposing||e.defaultPrevented||function(){let e;for(let t of r)(!e||t.layer>e.layer||t.layer===e.layer&&t.order>e.order)&&(e=t);return e?.id}()!==t||(e.preventDefault(),l.current||s.current())};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n);let e=r.findIndex(e=>e.id===t);-1!==e&&r.splice(e,1)}},[e,i])}])},15288,e=>{"use strict";let t=(0,e.i(94237).cva)("rounded-3xl border border-border bg-card",{variants:{variant:{static:"",interactive:"transition-all duration-300 hover:-translate-y-1 hover:shadow-2xl"},padding:{none:"",card:"p-4 sm:p-6"}},defaultVariants:{variant:"static",padding:"none"}});e.s(["cardVariants",0,t])},51066,e=>{"use strict";let t=(0,e.i(6927).default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,t],51066)},77048,e=>{"use strict";let t=(0,e.i(6927).default)("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);e.s(["Truck",0,t],77048)},96908,e=>{"use strict";let t=(0,e.i(6927).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],96908)},36420,e=>{"use strict";var t=e.i(54157),r=e.i(24098),a=e.i(15383),n=e.i(65372),o=e.i(68124);function i(){return!!(0,n.getAccessToken)()}e.s(["useVendor",0,function(e,n){let s=(0,o.useStore)(e=>e.lang),l=i();return(0,t.useQuery)({queryKey:["vendors","detail",s,l,e??""],queryFn:async({signal:t})=>{let r=l?`/vendors/customer/${e}`:`/vendors/nearby/open/${e}`,n=await a.apiClient.get(r,{signal:t}),o=n.data?.data;if(!o)throw Error("Vendor not found");return{...o,id:o.id??o._id??""}},enabled:(n?.enabled??!0)&&!!e,placeholderData:r.keepPreviousData})},"useVendorProductCategories",0,function(e,n){let i=(0,o.useStore)(e=>e.lang);return(0,t.useQuery)({queryKey:["vendors","product-categories",i,e??""],queryFn:async({signal:t})=>{let r=await a.apiClient.get(`/product-categories/open?vendorId=${e}&page=1&limit=100`,{signal:t});return r.data?.data??[]},enabled:(n?.enabled??!0)&&!!e,placeholderData:r.keepPreviousData})},"useVendorProducts",0,function(e,n){let s=(0,o.useStore)(e=>e.lang),l=i();return(0,t.useQuery)({queryKey:["vendors","products",s,l,e??""],queryFn:async({signal:t})=>{if(l){let r=await a.apiClient.get(`/products?vendorId=${e}&limit=100`,{signal:t});return r.data?.data??[]}let r=await a.apiClient.get(`/products/open?vendorId=${e}&page=1&limit=1`,{signal:t}),n=r.data?.meta?.total||10,o=await a.apiClient.get(`/products/open?vendorId=${e}&page=1&limit=${n}`,{signal:t});return o.data?.data??[]},enabled:(n?.enabled??!0)&&!!e,placeholderData:r.keepPreviousData})},"useVendorSearch",0,function(e,n,i){let s,l,u,d=(0,o.useStore)(e=>e.lang),c=n.trim();return(0,t.useQuery)({queryKey:(s=d,l=e?.lat??null,u=e?.lng??null,["vendors","search",s,l,u,c]),queryFn:async({signal:t})=>{let r=await a.apiClient.get("/vendors/nearby/open",{params:{latitude:e.lat,longitude:e.lng,searchTerm:c,limit:i?.limit??12},signal:t});return r.data?.data??[]},enabled:(i?.enabled??!0)&&!!e&&c.length>0,placeholderData:r.keepPreviousData})},"useVendorsCustomer",0,function(e){let n=(0,o.useStore)(e=>e.lang),i=e?.page??1,s=e?.limit??100;return(0,t.useQuery)({queryKey:["vendors","customer","list",n,i,s],queryFn:async({signal:e})=>{let t=await a.apiClient.get("/vendors/customer",{params:{page:i,limit:s},signal:e});return t.data?.data??[]},enabled:e?.enabled??!0,placeholderData:r.keepPreviousData})},"useVendorsNearby",0,function(e,n){let i,s,l,u=(0,o.useStore)(e=>e.lang),d=n?.page,c=n?.limit;return(0,t.useQuery)({queryKey:(i=u,s=e?.lat??null,l=e?.lng??null,["vendors","nearby",i,s,l,d??null,c??null]),queryFn:async({signal:t})=>{let r={latitude:e.lat,longitude:e.lng};null!=d&&(r.page=d),null!=c&&(r.limit=c);let n=await a.apiClient.get("/vendors/nearby/open",{params:r,signal:t});return{data:n.data?.data??[],totalPage:n.data?.meta?.totalPage??1}},enabled:(n?.enabled??!0)&&!!e,placeholderData:r.keepPreviousData})}])},49174,e=>{"use strict";let t=(0,e.i(6927).default)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]]);e.s(["Store",0,t],49174)},74400,e=>{"use strict";let t=/^[0-9a-f]{24}$/i,r=/^S?V-[A-Z0-9]+$/i;function a(e){return e?.id??e?._id??""}e.s(["isLegacyVendorUserId",0,function(e){return"string"==typeof e&&r.test(e)},"isVendorObjectId",0,function(e){return"string"==typeof e&&t.test(e)},"vendorHref",0,function(e){let t=a(e);return t?`/vendors/${encodeURIComponent(t)}`:"/vendors"},"vendorRouteId",0,a])},12291,e=>{"use strict";let t=["**.deligo.pt"],r=[{protocol:"https",hostname:"lh3.googleusercontent.com"},{protocol:"https",hostname:"flagcdn.com"},{protocol:"https",hostname:"res.cloudinary.com"},{protocol:"https",hostname:"**.deligo.pt"},{protocol:"https",hostname:"images.unsplash.com"},{protocol:"https",hostname:"source.unsplash.com",pathname:"/**"},{protocol:"https",hostname:"placehold.co"},{protocol:"https",hostname:"maps.googleapis.com"}];function a(e,t){if(e.startsWith("**.")){let r=e.slice(2);return t.endsWith(r)&&t.length>r.length}if(e.startsWith("*.")){let r=e.slice(1);if(!t.endsWith(r))return!1;let a=t.slice(0,-r.length);return a.length>0&&!a.includes(".")}return e===t}e.s(["isOptimizableImageHost",0,function(e){let n;if(!e)return!1;if(e.startsWith("/"))return!0;try{n=new URL(e)}catch{return!1}return!t.some(e=>a(e,n.hostname))&&r.some(e=>`${e.protocol}:`===n.protocol&&a(e.hostname,n.hostname)&&function(e,t){if(!e||"/**"===e)return!0;let r=e.indexOf("*");return -1===r?e===t:t.startsWith(e.slice(0,r))}(e.pathname,n.pathname))}])},70452,e=>{"use strict";var t=e.i(76350),r=e.i(92321),a=e.i(73576),n=e.i(12291);e.s(["default",0,function({src:e,alt:o,priority:i,sizes:s="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:l="object-cover",fallbackIcon:u,onSettled:d,dataLoaded:c}){let[p,h]=(0,a.useState)(!1);return!e||p?(0,t.jsx)("div",{role:"img","aria-label":o,ref:d?()=>void d():void 0,className:"flex h-full w-full items-center justify-center bg-gray-100 dark:bg-neutral-800 text-gray-300 dark:text-neutral-600",children:u}):(0,t.jsx)(r.default,{src:e,alt:o,fill:!0,priority:i,sizes:s,unoptimized:!(0,n.isOptimizableImageHost)(e),"data-loaded":c,onLoad:d,onError:()=>{h(!0),d?.()},className:l})}])},86726,e=>{"use strict";let t=(0,e.i(6927).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],86726)},66393,e=>{"use strict";let t=/[\u0300-\u036f]/g,r=/#/g,a=/\s+/g;e.s(["foldText",0,function(e){return String(e??"").normalize("NFD").replace(t,"").replace(r,"").replace(a," ").trim().toLowerCase()}])},65557,e=>{"use strict";let t=e.i(66393).foldText,r=e=>(Array.isArray(e)?e:[e]).map(e=>String(e??"").trim()).filter(e=>e.length>0);e.s(["cuisineMatches",0,(e,a)=>{if(0===a.length)return!0;let n=a.map(t);return r(e).some(e=>n.includes(t(e)))},"formatCuisine",0,e=>
1r(e).join(", ")])},86556,e=>{"use strict";var t=e.i(73576);let r="(prefers-reduced-motion: reduce)";function a(e){if(!window.matchMedia)return()=>{};let t=window.matchMedia(r);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function n(){return!!window.matchMedia&&window.matchMedia(r).matches}function o(){return!1}e.s(["usePrefersReducedMotion",0,function(){return(0,t.useSyncExternalStore)(a,n,o)},"useRevealOnScroll",0,function(){let[e,r]=(0,t.useState)(null),[a,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(!e||a)return;if("u"<typeof IntersectionObserver){let e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)}let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(n(!0),t.disconnect())},{rootMargin:"0px 0px -10% 0px"});return t.observe(e),()=>t.disconnect()},[e,a]),[r,a?"true":"false"]}])},8671,e=>{"use strict";let t=(0,e.i(6927).default)("utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);e.s(["Utensils",0,t],8671)}]);

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.