PageSourceSearch

https://majorfoodeventsspace.com/_next/static/chunks/9324.e0564c5f6bf4b927.js

js majorfoodeventsspace.com collected 2026-10-09 23:18:01 UTC 10,036 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9324],{99324:function(e,t,r){r.r(t),r.d(t,{default:function(){return S},turboChargeResultIfSourceMap:function(){return I}});var s=r(86385),n=r(17819),a=r(30751);function i(e){return"https://www.sanity.io/help/"+e}let u=e=>{var t;let r,s;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(s=t(...e),r=!0),s)};u(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),u(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),u(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),u(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),u(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${i("js-client-browser-token")} for more information and how to hide this warning.`]),u(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),u(["Using the Sanity client without specifying an API version is deprecated.",`See ${i("js-client-api-version")}`]),u(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),u(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."]);var o=r(96274),l=r(54297),c=r(11237),d=r(60318),p=r(45620),f=r(25474),h=r(19846),v=r(65606);function y(e,t){switch(t.type){case"message":return{...e,messages:[...e.messages,t]};case"reconnect":case"restart":return{...e,messages:[],resets:e.resets+1};case"welcome":return e;default:throw Error(`Unknown event: ${t.type}`,{cause:t})}}let w={messages:[],resets:0},b=(e,{previousValue:t})=>{if("string"==typeof t){if("number"==typeof e)return`${e}`;if(Array.isArray(e)){if(0===e.length)return"";if(e.some(e=>"object"==typeof e&&(0,v.HW)(e)))return(0,v.Kv)(e)}}return e};function m(e,t){switch(t.type){case"query-listen":return function(e,{payload:t}){var r,s,n;let a=(r=t.perspective,s=t.query,n=t.params,`${r}:${s}:${JSON.stringify(n)}`),i={query:t.query,params:t.params,perspective:t.perspective},u=new Map(e.heartbeats);u.set(a,{receivedAt:Date.now(),heartbeat:t.heartbeat});let o=e.queries;return e.queries.has(a)&&c(e.queries.get(a),i)||(o=new Map(e.queries)).set(a,i),{heartbeats:u,queries:o}}(e,t);case"gc":return function(e){if(e.queries.size<1)return e;let t=Date.now();if(!Array.from(e.heartbeats.values()).some(e=>!1!==e.heartbeat&&t>e.receivedAt+e.heartbeat))return e;let r=new Map,s=new Map;for(let[n,a]of e.heartbeats.entries())!1!==a.heartbeat&&t>a.receivedAt+a.heartbeat||(r.set(n,a),s.set(n,e.queries.get(n)));return{...e,queries:s,heartbeats:r}}(e);default:throw Error(`Unknown action: ${t.type}`,{cause:t})}}let g={queries:new Map,heartbeats:new Map};function S(e){let t,r,a,i,u,c,f,v,b;let S=(0,n.c)(28),{controller:A,perspective:I,onLoadersConnection:C,onDocumentsOnPage:E}=e,[M,T]=(0,d.useState)(),[D,$]=function(){let e,t,r;let s=(0,n.c)(4),[a,i]=(0,d.useReducer)(m,g);s[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=setInterval(()=>i({type:"gc"}),h.lU);return()=>clearInterval(e)},t=[],s[0]=e,s[1]=t):(e=s[0],t=s[1]),(0,d.useEffect)(e,t);let u=(0,d.useDeferredValue)(a.queries);return s[2]!==u?(r=[u,i],s[2]=u,s[3]=r):r=s[3],r}(),k=(0,p.vpR)(),j=(0,p.p9V)();S[0]!==A||S[1]!==j||S[2]!==$||S[3]!==E||S[4]!==C||S[5]!==k?(t=()=>{if(A){let e=A.createChannel({name:"presentation",connectTo:"loaders",heartbeat:!0},(0,o.XK)().provide({actors:(0,l.XP)()}));return T(e),e.onStatus(C),e.on("loader/documents",e=>{e.projectId===k&&e.dataset===j&&E("loaders",e.perspective,e.documents)}),e.on("loader/query-listen",e=>{if(e.projectId===k&&e.dataset===j){if("number"==typeof e.heartbeat&&e.heartbeat<h.g0)throw Error(`Loader query listen heartbeat interval must be at least ${h.g0}ms`);$({type:"query-listen",payload:{perspective:e.perspective,query:e.query,params:e.params,heartbeat:e.heartbeat??!1}})}}),e.start()}return _},r=[A,j,$,E,C,k],S[0]=A,S[1]=j,S[2]=$,S[3]=E,S[4]=C,S[5]=k,S[6]=t,S[7]=r):(t=S[6],r=S[7]),(0,d.useEffect)(t,r),S[8]!==I?(a=(0,p.$1R)(I)?p.$u2:{apiVersion:h.Gn},S[8]=I,S[9]=a):a=S[9];let N=(0,p.m85)(a);S[10]!==N?(u=N.withConfig({resultSourceMap:"withKeyArraySelector"}),S[10]=N,S[11]=u):u=S[11],i=u,S[12]!==I||S[13]!==M||S[14]!==j||S[15]!==k?(c=()=>{M&&M.post("loader/perspective",{projectId:k,dataset:j,perspective:I})},f=[M,I,k,j],S[12]=I,S[13]=M,S[14]=j,S[15]=k,S[16]=c,S[17]=f):(c=S[16],f=S[17]),(0,d.useEffect)(c,f);let P=(0,d.useDeferredValue)(e.liveDocument),V=function(e){let t,r;let s=(0,n.c)(3),[a,i]=(0,d.useReducer)(y,w),[u,o]=(0,d.useState)(null);if(null!==u)throw u;return s[0]!==e.live?(t=()=>{let t=e.live.events({includeDrafts:!0,tag:"presentation-loader"}).subscribe({next:i,error:e=>o(e instanceof Error?e:Error("Unexpected error in useLiveEvents",{cause:e}))});return()=>t.unsubscribe()},r=[e.live],s[0]=e.live,s[1]=t,s[2]=r):(t=s[1],r=s[2]),(0,d.useEffect)(t,r),(0,d.useDeferredValue)(a)}(i);return S[18]!==D?(v=[...D.entries()],S[18]=D,S[19]=v):v=S[19],S[20]!==i||S[21]!==M||S[22]!==j||S[23]!==P||S[24]!==V||S[25]!==k||S[26]!==v?(b=(0,s.jsx)(s.Fragment,{children:v.map(e=>{let[t,r]=e,{query:n,params:a,perspective:u}=r;return(0,s.jsx)(q,{projectId:k,dataset:j,perspective:u,query:n,params:a,comlink:M,client:i,liveDocument:P,liveEventsMessages:V.messages},`${V.resets}:${t}`)})}),S[20]=i,S[21]=M,S[22]=j,S[23]=P,S[24]=V,S[25]=k,S[26]=v,S[27]=b):b=S[27],b}function _(){}let q=(0,d.memo)(function(e){let t,r,s;let a=(0,n.c)(20),{projectId:i,dataset:u,perspective:o,query:l,client:p,liveDocument:h,params:v,comlink:y,liveEventsMessages:w}=e,{result:b,resultSourceMap:m,syncTags:g}=function(e){let t,r,s,a,i;let u=(0,n.c)(30),{liveDocument:o,client:l,query:p,params:f,perspective:h,liveEventsMessages:v}=e,[y,w]=(0,d.useState)(null),[b,m]=(0,d.useState)(null),[g,S]=(0,d.useState)(void 0);u[0]!==v?(t=()=>new Set(v.map(A)),u[0]=v,u[1]=t):t=u[1];let[_]=(0,d.useState)(t);if(u[2]!==v||u[3]!==_||u[4]!==g){let e,t;
1u[6]!==_?(e=e=>!_.has(e.id),u[6]=_,u[7]=e):e=u[7];let s=v.filter(e);u[8]!==g?(t=e=>e.tags.some(e=>g?.includes(e)),u[8]=g,u[9]=t):t=u[9],r=s.findLast(t),u[2]=v,u[3]=_,u[4]=g,u[5]=r}else r=u[5];let q=r?.id,[C,E]=(0,d.useState)(null);if(C)throw C;u[10]!==l||u[11]!==q||u[12]!==f||u[13]!==h||u[14]!==p?(s=()=>{let e=new AbortController;return l.fetch(p,f,{lastLiveEventId:q,tag:"presentation-loader",signal:e.signal,perspective:h,filterResponse:!1,returnQuery:!1}).then(e=>{(0,d.startTransition)(()=>{w(t=>c(t,e.result)?t:e.result),m(t=>c(t,e.resultSourceMap)?t:e.resultSourceMap),S(t=>c(t,e.syncTags)?t:e.syncTags)})}).catch(e=>{("object"!=typeof e||e?.name!=="AbortError")&&E(e)}),()=>{e.abort()}},a=[l,q,f,h,p],u[10]=l,u[11]=q,u[12]=f,u[13]=h,u[14]=p,u[15]=s,u[16]=a):(s=u[15],a=u[16]),(0,d.useEffect)(s,a);e:{let e;if(o&&b){let e,t;u[17]!==o||u[18]!==h||u[19]!==y||u[20]!==b?(e=I(o,y,h,b),u[17]=o,u[18]=h,u[19]=y,u[20]=b,u[21]=e):e=u[21],u[22]!==b||u[23]!==g||u[24]!==e?(t={result:e,resultSourceMap:b,syncTags:g},u[22]=b,u[23]=g,u[24]=e,u[25]=t):t=u[25],i=t;break e}u[26]!==y||u[27]!==b||u[28]!==g?(e={result:y,resultSourceMap:b,syncTags:g},u[26]=y,u[27]=b,u[28]=g,u[29]=e):e=u[29],i=e}return i}({client:p,liveDocument:h,params:v,perspective:o,query:l,liveEventsMessages:w})||{};a[0]!==u||a[1]!==i?(t=(e,t,r,s,n,a,o)=>{e?.post("loader/query-change",{projectId:i,dataset:u,perspective:t,query:r,params:s,result:n,resultSourceMap:a,tags:o})},a[0]=u,a[1]=i,a[2]=t):t=a[2];let S=(0,f.i)(t);return a[3]!==y||a[4]!==S||a[5]!==v||a[6]!==o||a[7]!==l||a[8]!==b||a[9]!==m||a[10]!==g?(r=()=>{m&&S(y,o,l,v,b,m,g)},a[3]=y,a[4]=S,a[5]=v,a[6]=o,a[7]=l,a[8]=b,a[9]=m,a[10]=g,a[11]=r):r=a[11],a[12]!==y||a[13]!==v||a[14]!==o||a[15]!==l||a[16]!==b||a[17]!==m||a[18]!==g?(s=[y,v,o,l,b,m,g],a[12]=y,a[13]=v,a[14]=o,a[15]=l,a[16]=b,a[17]=m,a[18]=g,a[19]=s):s=a[19],(0,d.useEffect)(r,s),null});function A(e){return e.id}function I(e,t,r,s){if("raw"===r)throw Error("turboChargeResultIfSourceMap does not support raw perspective");return function(e,t,r,s,n){if(!t)return e;let i=function(e,t){let r=function(e){if(function(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}(e),Array.isArray(e))return e.includes("published")?e:[...e,"published"];switch(e){case"previewDrafts":case"drafts":return["drafts","published"];default:return["published"]}}(t);return function(t){return function(t){for(let s of r){let r=null;if(s.startsWith("r")&&(r=e({...t,_id:(0,a.XL)(t._id,s)})),"drafts"===s&&(r=e({...t,_id:(0,a.qy)(t._id)})),"published"===s&&(r=e({...t,_id:(0,a.vs)(t._id)})),r)return{...r,_id:(0,a.vs)(r._id),_originalId:r._id}}return null}(t)}}(r,n),u=t.documents?.map?.(i)||[];return(0,a.lV)(JSON.parse(JSON.stringify(e)),(e,r)=>{let n=(0,a.Mx)(r,t);if(!n)return e;let{mapping:i,pathSuffix:o}=n;if("value"!==i.type||"documentValue"!==i.source.type)return e;let l=t.documents[i.source.document],c=t.paths[i.source.path];if(l){let t=(0,a.F5)(c+o),r=(0,a.BB)(t),n=u[i.source.document];if(!n)return e;let d=n?(0,a.U2)(n,r,e):e;return e===d?e:s(d,{cachedDocument:n,previousValue:e,sourceDocument:l,sourcePath:t})}return e})}(t,s,t=>!t._projectId&&e?._id&&(0,a.vs)(e._id)===(0,a.vs)(t._id)?"string"==typeof e._id&&"string"==typeof t._type?e:{...e,_id:e._id||t._id,_type:e._type||t._type}:null,b,r)}q.displayName="Memo(QuerySubscription)"}}]);

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.