PageSourceSearch

https://centralparkstpete.com/_next/static/chunks/2886.543b66311e82c673.js

js centralparkstpete.com collected 2026-10-08 23:42:22 UTC 9,476 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2886],{72886:function(e,t,l){l.r(t);var i=l(85893),n=l(12608),o=l(49268),r=l(9473),d=l(67294),c=l(27840),s=l(38937),u=l(54402),a=l(22052),v=l(31567),h=l(26982),f=l(38858);let NavBar=e=>{let{blockData:t,blockId:l,children:u,backgroundColor:v,padding:h,blockStyle:m,selectedMenu:g,filterMenuBlock:p,itemType:b,itemPage:k,scrollPadding:I,itemPadding:w,itemsPadding:C,font:y,selectedItemFont:E,border:x,borderRadius:L,boxShadow:B,scrollDirection:j,showArrows:F,arrowsSize:S,arrowsColor:M,container:N}=e,Z=(0,r.v9)(e=>e.usersList.menus,a.Z),_=(0,r.v9)(e=>e.usersList.resizeBit,a.Z),R=(0,r.v9)(e=>e.usersList.editor,a.Z),D=(0,r.v9)(e=>e.usersList.menuFiltersBit,a.Z),O=(0,r.v9)(e=>e.usersList.menuReference,a.Z),z=(0,d.useContext)(f.P8),T=z||("undefined"!=typeof document?document:null),[W,q]=(0,d.useState)({}),[H,G]=(0,d.useState)(!1),[U,P]=(0,d.useState)(!1);(0,d.useEffect)(()=>{let e=null==T?void 0:T.getElementById("".concat(l,"_parent")),t=null==T?void 0:T.getElementById("".concat(l,"_child"));if(!e||!t)return;let measure=()=>{if("horizontal"===j){let l=e.getBoundingClientRect().width,i=t.scrollWidth;l-i<1&&i-l<1&&(i=l),"true"===F?(P(!0),G(l<i)):"auto"===F?l<i?(P(!0),G(!0)):(P(!1),G(!1)):(P(!1),G(l<i))}else if("vertical"===j){let l=e.getBoundingClientRect().height,i=t.scrollHeight;l-i<1&&i-l<1&&(i=l),"true"===F?(P(!0),G(l<i)):"auto"===F?l<i?(P(!0),G(!0)):(P(!1),G(!1)):(P(!1),G(l<i))}};measure();let i=new MutationObserver(measure);return i.observe(t,{childList:!0,subtree:!0,characterData:!0,attributeFilter:["style"]}),()=>i.disconnect()},[T,F,j,W,Z,_,R.open,D]),(0,d.useEffect)(()=>{var e,l;q((null==t?void 0:null===(e=t.get("menu"))||void 0===e?void 0:e.menu)||(null==Z?void 0:null===(l=Z[O[null==g?void 0:g.blockId]])||void 0===l?void 0:l.menu)||{})},[t,Z,g,O]);let arrowOnClick=e=>{let t=null==T?void 0:T.getElementById("".concat(l,"_parent"));if(!(null==t?void 0:t.children[0]))return;let i=t.scrollLeft,n=t.scrollLeft+t.getBoundingClientRect().width,o=0;for(let l=0;l<t.children[0].children.length;l++){let r=t.children[0].children[l].getBoundingClientRect().width;if(o+=r,"forward"===e&&n<o+r)break;if("backward"===e&&i<o+r){o-=t.getBoundingClientRect().width;break}}t.scrollLeft=o};return(0,i.jsx)("div",{style:{width:"100%",height:"100%",backgroundColor:(0,o.ad)(v),...(0,o.lG)(h),cursor:"default"},children:(0,i.jsx)(n.f,{block:u,children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"horizontal"===j?"row":"column",justifyContent:"space-between",alignItems:"center"},children:["scroll"===m&&(0,i.jsxs)(i.Fragment,{children:[U&&(0,i.jsx)("div",{style:{minWidth:(0,o.o3)(S),cursor:"pointer"},children:(0,i.jsx)(c.Z,{onClick:()=>arrowOnClick("backward"),size:null==S?void 0:S.value,color:(0,o.ad)(M)})}),(0,i.jsx)("div",{id:"".concat(l,"_parent"),style:{width:"100%",maxWidth:"100%",height:"100%",maxHeight:"100%",overflow:H?"horizontal"===j?"scroll hidden":"hidden scroll":"visible",scrollBehavior:"smooth",margin:"auto ".concat(H?(0,o.QS)(C).marginRight:"auto"," auto ").concat(H?(0,o.QS)(C).marginLeft:"auto")},children:(0,i.jsx)(MappedChildren,{menu:W,scrollable:H,...e})}),U&&(0,i.jsx)("div",{style:{minWidth:(0,o.o3)(S),cursor:"pointer"},children:(0,i.jsx)(s.Z,{onClick:()=>arrowOnClick("forward"),size:null==S?void 0:S.value,color:(0,o.ad)(M)})})]}),"flexbox"===m&&(0,i.jsx)(MappedChildren,{menu:W,scrollable:H,...e})]})})})},MappedChildren=e=>{var t,l,n;let c;let{blockId:s,border:h,borderRadius:m,boxShadow:g,container:p,selectedMenu:b,itemType:k,itemPage:I,itemPadding:w,scrollPadding:C,font:y,scrollable:E,selectedItemFont:x,menu:L,sectionsToShow:B}=e,j=(0,r.v9)(e=>e.usersList.kanvas,a.Z),F=(0,r.v9)(e=>e.usersList.menuType,a.Z),S=(0,r.v9)(e=>e.usersList.menuFilters,a.Z),M=(0,r.v9)(e=>e.usersList.clickableLinks,a.Z),N=(0,r.v9)(e=>e.usersList.searchFilter,a.Z),Z=(0,d.useContext)(f.P8),_=Z||("undefined"!=typeof document?document:null),[R,D]=(0,d.useState)(void 0),[O,z]=(0,d.useState)(null),[T,W]=(0,d.useState)(void 0),[q,H]=(0,d.useState)([]),[G,U]=(0,d.useState)(""),[P,V]=(0,d.useState)(0),{t:$}=(0,v.$)(),A=(n=()=>{V(Math.random())},function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];clearTimeout(c),c=setTimeout(()=>n.apply(this,t),100)});(0,d.useEffect)(()=>{let e=null==_?void 0:_.getElementById("myDiv"+(null==b?void 0:b.blockId)),t=[];for(;e&&e.parentElement;)e.parentElement.addEventListener("scroll",A),t.push(e.parentElement),e=e.parentElement;return()=>
1{t.forEach(e=>{e.removeEventListener("scroll",A)})}},[_,b]),(0,d.useEffect)(()=>{H([])},[null===(t=S[null==b?void 0:b.blockId])||void 0===t?void 0:t.sectionFilter]),(0,d.useEffect)(()=>{z(j.website.pages.find(e=>e.pageId===I))},[I]);let sectionSearchFilter=e=>{let t=!1,checkDiets=e=>{var t,l,i,n,o;if(null===(l=S[b.blockId])||void 0===l||null===(t=l.dietFilter)||void 0===t||!t.length)return!0;{let t=null===(n=S[b.blockId])||void 0===n?void 0:null===(i=n.dietFilter)||void 0===i?void 0:i.length,l=0;return(null===(o=S[null==b?void 0:b.blockId])||void 0===o?void 0:o.dietFilter)&&S[b.blockId].dietFilter.forEach(t=>{e.diets.forEach(e=>{e&&t===e.dietName&&(l+=1)})}),t===l}},forEach=e=>{e.sectionItems.forEach(e=>{var l,i,n;(null==e?void 0:null===(l=e.menuItem)||void 0===l?void 0:l.menuItemName)&&(e.menuItem.menuItemName.toLowerCase().includes(N.toLowerCase())||(null===(n=e.menuItem)||void 0===n?void 0:null===(i=n.menuItemDescription)||void 0===i?void 0:i.toLowerCase().includes(N.toLowerCase()))||e.menuItem.tags.toLowerCase().includes(N.toLowerCase()))&&checkDiets(e.menuItem)&&(t=!0)}),e.children[0]&&e.children.forEach(e=>forEach(e))};return forEach(e),t},sectionMenuTypeFilter=e=>"qr"===F&&(null===e.website||!!e.website)||"oo"===F&&(null===e.onlineOrder||!!e.onlineOrder)||"di"===F&&(null===e.tableSide||!!e.tableSide),sectionCheck=e=>{let t=!0;return e.guestFacing||(t=!1),N&&!sectionSearchFilter(e)&&(t=!1),e.sectionItems[0]||e.children[0]||(t=!1),sectionMenuTypeFilter(e)||(t=!1),t},onClick=e=>{e=e||new Map;let t=(null==e?void 0:e.get)?e.get("sectionId"):"";if(t&&M){let e=null==_?void 0:_.getElementById("".concat(t,"_").concat(b.blockId));if(e){U(t);let l=(0,o.lG)(C);e.style.scrollMargin="calc(".concat(l.paddingTop," - 50px) ").concat(l.paddingRight," ").concat(l.paddingBottom," ").concat(l.paddingLeft),e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}V(Math.random())}};(0,d.useEffect)(()=>{if(q[0]){if(P)for(let o=0;o<q.length;o++){let r=null==_?void 0:_.getElementById(q[o]);if(r){var e,t,l,i,n;let{top:d,left:c,bottom:s,right:u}=r.getBoundingClientRect(),a=parseInt(null==C?void 0:null===(e=C.top)||void 0===e?void 0:e.value);if(isNaN(a)&&(a=0),s-a>=0&&u>=0&&d-a<=((null==_?void 0:null===(t=_.defaultView)||void 0===t?void 0:t.innerHeight)||(null==_?void 0:null===(l=_.documentElement)||void 0===l?void 0:l.clientHeight))&&c<=((null==_?void 0:null===(i=_.defaultView)||void 0===i?void 0:i.innerWidth)||(null==_?void 0:null===(n=_.documentElement)||void 0===n?void 0:n.clientWidth))){W(q[o]);break}}}else W(q[0])}},[_,q,P]),(0,d.useEffect)(()=>{if(T&&T.includes(G)&&P){U("");let e=null==_?void 0:_.getElementById("".concat(s,"_parent")),t=0;if(null==e?void 0:e.children[0]){for(let l=0;l<e.children[0].children.length;l++){let i=e.children[0].children[l];if(T.includes(i.innerHTML))break;t+=i.getBoundingClientRect().width}e.scrollLeft=t}}},[T]);let getSectionFilter=()=>{var e,t,l,i;switch(typeof(null==S?void 0:null===(e=S[null==b?void 0:b.blockId])||void 0===e?void 0:e.sectionFilter)){case"object":return(null==S?void 0:null===(l=S[null==b?void 0:b.blockId])||void 0===l?void 0:null===(t=l.sectionFilter)||void 0===t?void 0:t.sectionId)||"";case"string":return(null==S?void 0:null===(i=S[null==b?void 0:b.blockId])||void 0===i?void 0:i.sectionFilter)||"";default:return""}};return(0,i.jsxs)("div",{id:"".concat(s,"_child"),style:{width:"100%",height:"100%",...(0,o.Fj)(h),boxShadow:(0,o.tX)(g),borderRadius:(0,o.Wl)(m),...(0,o.J$)(p),justifyContent:E?"flex-start":null===(l=(0,o.J$)(p))||void 0===l?void 0:l.justifyContent,alignItems:"center"},children:[b&&(null==L?void 0:L.section)&&(()=>{if("rootSections"===B)return[L.section];let e=[...L.section.children].sort((e,t)=>e.sequence-t.sequence),t=getSectionFilter().toUpperCase();return t?e.filter(e=>e.sectionId.toUpperCase()===t):e})().map(t=>t.children.filter(e=>sectionCheck(e)).sort((e,t)=>e.sequence-t.sequence).map((t,l)=>{var n,r,d,c;let s="".concat(t.sectionId,"_").concat(b.blockId);if(void 0===R&&D(s),q.includes(s)||H([s,...q]),"page"===k&&(null==O?void 0:null===(n=O.blocks)||void 0===n?void 0:n[0]))return(0,i.jsx)(u.Z,{block:null==O?void 0:null===(r=O.blocks)||void 0===r?void 0:r[0],localData:new Map([...(null==e?void 0:e.localData)||[],...Object.entries({sectionId:t,...t,keyId:"sectionId",onClick:onCl
1ick,active:T===s,useEffect:Math.random()})])},l);let a=$("".concat(null===(d=t.sectionId)||void 0===d?void 0:d.toUpperCase(),".name"));if(a==="".concat(null===(c=t.sectionId)||void 0===c?void 0:c.toUpperCase(),".name")&&(a=t.sectionName),"styled"===k)return(0,i.jsx)("div",{onClick:()=>onClick(new Map([...Object.entries(t)])),style:{whiteSpace:"nowrap",...(0,o.Gf)(T===s?x:y),cursor:"pointer",...(0,o.lG)(w)},children:a},l)})),!b&&(0,i.jsx)("div",{style:{width:"100%",height:"100%",textAlign:"center",fontSize:"16px"},children:"Please select a menu in properties."})]})};NavBar.displayName="NavBar",NavBar.schema=h.X,t.default=(0,d.memo)(NavBar)}}]);

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.