PageSourceSearch

https://joeburgerlist.com/_next/static/chunks/3151-6522d8876859e5ce.js

js joeburgerlist.com collected 2026-09-24 14:45:59 UTC 6,575 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3151],{15987:(e,t,o)=>{o.d(t,{LR:()=>i,Os:()=>s,Qm:()=>u,j5:()=>d,sU:()=>n,t0:()=>a,ud:()=>r});let n="all";function l(e){if("string"!=typeof e)return null;let t=e.trim();return""===t?null:t}function r(e){var t;let o=null==(t=l(e))?void 0:t.toLowerCase();return!o||o===n}function u(e){let t=l(e);return!t||r(t)?n:t}function i(e,t){return u(e)===u(t)}function s(e){return(null!=e?e:"").trim().toLowerCase()===n.toLowerCase()}function a(e){let t=l(null!=e?e:"");if(!(!t||s(t)))return t}function d(e){let{userSelectedCommunity:t,addressCommunity:o,coordinateCommunity:r,deliveryAddressCommunity:i}=e;return t&&l(t)?{value:u(t),source:"userSelected"}:(null==o?void 0:o.community)&&l(o.community)?{value:u(o.community),source:"address"}:void 0!=o?{value:n,source:"address"}:r&&l(r)?{value:u(r),source:"coordinate"}:i&&l(i)?{value:u(i),source:"deliveryAddress"}:{value:n,source:null}}},53151:(e,t,o)=>{o.d(t,{CurrentCommunityProvider:()=>p,I:()=>_});var n=o(95155),l=o(12115),r=o(65581),u=o(4592),i=o(9613),s=o(95988),a=o(29340),d=o(5981),c=o(15987),m=o(27297);let v="community_address";function y(e){return"".concat(v,"_").concat(e)}let g=(0,s.vt)(e=>({communityAddress:null,setCommunityAddress:(t,o)=>{if(o)try{t?sessionStorage.setItem(y(o),JSON.stringify(t)):sessionStorage.removeItem(y(o))}catch(e){}e({communityAddress:t}),t&&(0,d.V)(t.lat,"latitude")&&(0,d.V)(t.lng,"longitude")?a.c.getState().setCoordinatesFromCommunityAddress({lat:t.lat,lng:t.lng}):a.c.getState().setCoordinatesFromCommunityAddress(null)},clearCommunityAddress:t=>{try{t&&sessionStorage.removeItem(y(t));let e="".concat(v,"_");Object.keys(sessionStorage).forEach(t=>{t.startsWith(e)&&sessionStorage.removeItem(t)})}catch(e){}e({communityAddress:null}),a.c.getState().setCoordinatesFromCommunityAddress(null)},hydrateFromSessionStorage:t=>{try{let o=sessionStorage.getItem(y(t));if(!o)return;let n=JSON.parse(o);if(!n||"object"!=typeof n)return;let l="string"==typeof n.streetLabel?n.streetLabel:"",r=function(e){return"string"!=typeof e||""===e.trim()?c.sU:(0,c.Qm)(e)}(n.community),u="number"==typeof n.lat?n.lat:void 0,i="number"==typeof n.lng?n.lng:void 0,s="search_places"===n.source||"map_drag"===n.source||"saved_shortcut"===n.source?n.source:void 0,m="boolean"==typeof n.hasUserVisibleTitle?n.hasUserVisibleTitle:void 0;if(!(0,d.V)(u,"latitude")||!(0,d.V)(i,"longitude"))return;e({communityAddress:{streetLabel:l,community:r,lat:u,lng:i,source:s,hasUserVisibleTitle:m}}),a.c.getState().setCoordinatesFromCommunityAddress({lat:u,lng:i})}catch(e){(0,m.u4)("exception_caught",{context:"communityAddressStore.hydrateFromSessionStorage",message:e instanceof Error?e.message:String(e)})}}}));var f=o(74583),C=o(99669);function S(e){return(null!=e?e:"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/comunidad de |region de /g,"").trim()}function h(e){return"".concat("discover_manual_community","_").concat(e)}let A={community:c.sU,communityContextSource:null,isAllCommunities:!0,hasManualSelection:!1,selectedAddressCommunity:"",setCommunity:()=>{},clearUserSelectedCommunity:()=>{},communityAddress:null,setCommunityAddress:()=>{},clearCommunityAddress:()=>{},resetToDeviceCoordinates:()=>{}},b=(0,l.createContext)(A);function p(e){var t,o,s,v,y,A,p,_,w,I,k;let{children:x}=e,{config:V}=(0,i.T)(),E=null!=(p=null==V||null==(t=V.domains)?void 0:t[0])?p:"",F=null!=(_=null==V||null==(s=V.home)||null==(o=s.discover)?void 0:o.communityGeolocationEnabled)&&_,L=null!=(w=null==V||null==(y=V.home)||null==(v=y.discover)?void 0:v.locationModalVariant)?w:"default",{communityAddress:M,setCommunityAddress:O,clearCommunityAddress:U,hydrateFromSessionStorage:j}=g(),{selectedAddress:N,addresses:T}=(0,f._)(),P=(0,a.c)(e=>e.setCoordinatesFromDevice),Q=(0,a.c)(e=>e.resolvedCoordinates()),B=(0,a.c)(e=>e.coordinatesBySource.device),D=(0,a.c)(e=>e.resolvedSource()),[J,z]=(0,l.useState)(null),G=(0,l.useMemo)(()=>"default"!==L?"":function(e){var t,o,n,l,r;let{selectedAddress:u,addresses:i}=e;if(!u)return"";if(null==u?void 0:u.community){let e=(0,C.fO)(u.community);if(e)return e}let s=(null==u?void 0:u.addressId)&&null!=(o=null==(t=i.find(e=>e._id===u.addressId))?void 0:t.community)?o:"";if(s)return s;let a="".concat(null!=(n=null==u?void 0:u.label)?n:""," ").concat(null!=(l=null==u?void 0:u.formatted_address)?l:"").trim();if(!a)return"";let d=S(a),c=(0,C.th)().find(e=>{if(!e.value)return!1;let t=S(e.value);return d.includes(t)||t.includes(d)});return null!=(r=null==c?void 0:c.value)?r:""}({selectedAddress:N,addresses:T}),[T,N,L]);(0,l.useEffect)(()=>
1{if(E){j(E);try{let e=window.sessionStorage.getItem(h(E));e?z((0,c.Qm)(e)):z(null)}catch(e){(0,m.u4)("exception_caught",{context:"CurrentCommunityContext.hydrate",message:e instanceof Error?e.message:String(e)}),z(null)}}},[E,j]),(0,l.useEffect)(()=>{F&&navigator.geolocation&&"address"!==D&&"communityAddress"!==D&&(B||navigator.geolocation.getCurrentPosition(e=>{P({lat:e.coords.latitude,lng:e.coords.longitude})},e=>{}))},[F,D,P,B]);let R=!F||!!J||!!M||!(0,d.V)(null==Q?void 0:Q.lat,"latitude")||!(0,d.V)(null==Q?void 0:Q.lng,"longitude"),{data:W}=(0,r.IT)(u.gs,{variables:{latitude:null!=(I=null==Q?void 0:Q.lat)?I:0,longitude:null!=(k=null==Q?void 0:Q.lng)?k:0},skip:R}),q=(0,l.useCallback)(e=>{let t=e?(0,c.Qm)(e):null;if(z(t),E)try{t?window.sessionStorage.setItem(h(E),t):window.sessionStorage.removeItem(h(E))}catch(e){}},[E]),H=(0,l.useCallback)(()=>{if(z(null),E)try{window.sessionStorage.removeItem(h(E))}catch(e){}},[E]),K=(0,l.useCallback)(e=>{O(e,E)},[E,O]),X=(0,l.useCallback)(()=>{U(E)},[E,U]),Y=(0,l.useCallback)(()=>{U(E),P(null),navigator.geolocation&&navigator.geolocation.getCurrentPosition(e=>{P({lat:e.coords.latitude,lng:e.coords.longitude})},e=>{})},[E,U,P]),Z=(0,l.useMemo)(()=>{var e,t;return(0,c.j5)({userSelectedCommunity:null!=J?J:void 0,addressCommunity:null!=M?M:void 0,coordinateCommunity:"pinOnlyCommunity"===L&&null!=(t=null==W||null==(e=W.getCommunityByCoordinate)?void 0:e.data)?t:void 0,deliveryAddressCommunity:"default"===L&&G?G:void 0})},[null==W||null==(A=W.getCommunityByCoordinate)?void 0:A.data,L,M,G,J]),$=(0,l.useMemo)(()=>({community:Z.value,communityContextSource:Z.source,isAllCommunities:(0,c.ud)(Z.value),hasManualSelection:!!J,selectedAddressCommunity:G,setCommunity:q,clearUserSelectedCommunity:H,communityAddress:M,setCommunityAddress:K,clearCommunityAddress:X,resetToDeviceCoordinates:Y}),[X,H,M,Y,Z,G,q,K,J]);return(0,n.jsx)(b.Provider,{value:$,children:x})}function _(){return(0,l.useContext)(b)}}}]);

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.