1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{90920:function(e,t,n){Promise.resolve().then(n.bind(n,44447)),Promise.resolve().then(n.bind(n,19172)),Promise.resolve().then(n.bind(n,10030)),Promise.resolve().then(n.bind(n,56297)),Promise.resolve().then(n.bind(n,65601)),Promise.resolve().then(n.bind(n,13405)),Promise.resolve().then(n.bind(n,95470)),Promise.resolve().then(n.bind(n,70775)),Promise.resolve().then(n.bind(n,71508)),Promise.resolve().then(n.bind(n,78692)),Promise.resolve().then(n.bind(n,26110)),Promise.resolve().then(n.t.bind(n,65878,23)),Promise.resolve().then(n.t.bind(n,72972,23))},95206:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(57437),o=n(2265);function i(e){let{loader:t,componentProps:n,fallback:i=null,rootMargin:a="120px",className:s}=e,l=(0,o.useRef)(null),c=(0,o.useRef)(t);c.current=t;let[u,d]=(0,o.useState)(!1),[f,m]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=l.current;if(!e)return;if(!("IntersectionObserver"in window)){d(!0);return}let t=new IntersectionObserver(e=>{let[n]=e;(null==n?void 0:n.isIntersecting)&&(d(!0),t.disconnect())},{rootMargin:a});return t.observe(e),()=>t.disconnect()},[a]),(0,o.useEffect)(()=>{if(!u||f)return;let e=!1;return c.current().then(t=>{e||m(()=>t.default)}),()=>{e=!0}},[u,f]),(0,r.jsx)("div",{ref:l,className:s,children:f?(0,r.jsx)(f,{...null!=n?n:{}}):i})}},44447:function(e,t,n){"use strict";n.d(t,{DeferredWhenVisible:function(){return i}});var r=n(57437),o=n(2265);function i(e){let{children:t,fallback:n=null,rootMargin:i="120px",className:a}=e,s=(0,o.useRef)(null),[l,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=s.current;if(!e)return;if(!("IntersectionObserver"in window)){c(!0);return}let t=new IntersectionObserver(e=>{let[n]=e;(null==n?void 0:n.isIntersecting)&&(c(!0),t.disconnect())},{rootMargin:i});return t.observe(e),()=>t.disconnect()},[i]),(0,r.jsx)("div",{ref:s,className:a,children:l?t:n})}},74168:function(e,t,n){"use strict";n.d(t,{De:function(){return c},GoogleAdSense:function(){return m},bz:function(){return d},fn:function(){return u}});var r=n(2265),o=n(99376),i=n(79266),a=n(66332),s=n(37836);let l="ca-pub-3907468540135854",c="adsbygoogle-loaded",u="adsbygoogle-failed",d="adsbygoogle-request";function f(){if(!l||"undefined"==typeof document)return;let e="adsbygoogle-script";
1if(document.getElementById(e))return;let t=document.createElement("script");t.id=e,t.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=".concat(l),t.crossOrigin="anonymous",t.async=!0,t.onload=()=>{window.dispatchEvent(new CustomEvent(c))},t.onerror=()=>{window.dispatchEvent(new CustomEvent(u))},document.head.appendChild(t)}function m(){let e=(0,o.usePathname)();return(0,r.useEffect)(()=>{if(!l||"undefined"==typeof document||!(0,a.eH)()||!(0,i.P)(e))return;let t=()=>f();window.addEventListener(d,t);let n=(0,s.T)(f,8e3);return()=>{window.removeEventListener(d,t),n()}},[e]),null}},19172:function(e,t,n){"use strict";n.d(t,{GoogleAdSlot:function(){return b}});var r=n(57437),o=n(2265),i=n(99376),a=n(74168),s=n(79266);let l={w:320,h:100},c={w:728,h:90};function u(e){if(!e)return"empty";let t=e.getAttribute("data-ad-status");return"filled"===t?"filled":"unfilled"===t?"empty":e.querySelector("iframe")?"filled":"pending"}var d=n(66332),f=n(1996);let m="ca-pub-3907468540135854",p="9438140074",h={banner:{w:c.w,h:c.h},square:{w:250,h:250},skyscraper:{w:160,h:600}};function g(){return(0,r.jsx)("p",{className:"text-center text-sm text-gray-500 dark:text-gray-400 py-3 px-4 m-0",children:"Ad \xb7 This site is a solo project; ads help pay for hosting."})}function x(e,t){return"mobile-fixed"===e?{width:"100%",maxWidth:"".concat(l.w,"px"),height:"".concat(l.h,"px"),minHeight:"".concat(l.h,"px"),maxHeight:"".concat(l.h,"px"),margin:"0 auto"}:"desktop-fixed"===e?{width:"100%",maxWidth:"".concat(c.w,"px"),height:"".concat(c.h,"px"),minHeight:"".concat(c.h,"px"),maxHeight:"".concat(c.h,"px"),margin:"0 auto"}:{minHeight:"".concat(t.h,"px"),minWidth:"".concat(t.w,"px"),maxHeight:"".concat(t.h,"px")}}function b(e){var t;let{width:n,height:b,className:w="",format:v="banner",responsive:y=!0}=e,j=(0,i.usePathname)(),k=(0,f.d)(),S=(0,o.useRef)(null),N=(0,o.useRef)(null),P=(0,o.useRef)(!1),[E,A]=(0,o.useState)(!1),[C,I]=(0,o.useState)(!1),[L,_]=(0,o.useState)("pending"),R=null!==(t=h[v])&&void 0!==t?t:{w:n,h:b},Z="banner"===v?p:"square"===v?"2337605173":p,H=(0,s.P)(j),M=!!(m&&Z&&H&&!C),W="banner"===v&&y?k?"mobile-fixed":"desktop-fixed":"fixed",T="mobile-fixed"===W?l:"desktop-fixed"===W?c:null,z=null!=T?T:R;(0,o.useEffect)(()=>{I(!(0,d.eH)()),A(!0)},[]),(0,o.useEffect)(()=>{P.current=!1,_("pending")},[j]),(0,o.useEffect)(()=>{if(!M||!E)return;let e=N.current;if(!e)return;let t=()=>window.dispatchEvent(new CustomEvent(a.bz));if("IntersectionObserver"in window){let n=new IntersectionObserver(e=>{let[r]=e;(null==r?void 0:r.isIntersecting)&&(t(),n.disconnect())},{rootMargin:"300px"});return n.observe(e),()=>n.disconnect()}t()},[M,E]),(0,o.useEffect)(()=>{if(!M||!E||!S.current||P.current)return;function e(){if(P.current)return;let e=S.current;if(e){{var t;let n=null!==(t=e.offsetWidth)&&void 0!==t?t:e.getBoundingClientRect().width;if("number"!=typeof n||n<=0)return}try{(window.adsbygoogle=window.adsbygoogle||[]).push({}),P.current=!0}catch(e){console.error("AdSense push error:",e),_("empty")}}}e();let t=()=>e(),n=()=>_("empty");window.addEventListener(a.De,t),window.addEventListener(a.fn,n);let r=setTimeout(e,750);return()=>{window.removeEventListener(a.De,t),window.removeEventListener(a.fn,n),clearTimeout(r)}},[M,j,E,!0]),(0,o.useEffect)(()=>{if(!M||!E)return;let e=S.current;if(!e)return;let t=()=>{let t=u(e);"pending"!==t&&_(t)};t();let n=new MutationObserver(t);n.observe(e,{attributes:!0,attributeFilter:["data-ad-status"],childList:!0,subtree:!0});let r=window.setTimeout(()=>{_(t=>"pending"===t?function(e){let t=u(e);return"pending"===t?"empty":t}(e):t)},4500);return()=>{n.disconnect(),window.clearTimeout(r)}},[M,E,j]);let O="mobile-fixed"===W?" google-ad-slot--mobile-fixed":"desktop-fixed"===W?" google-ad-slot--desktop-fixed":"",D=z.w===c.w&&z.h===c.h;return C?null:M?E?"empty"===L?(0,r.jsx)("div",{ref:N,className:"google-ad-slot-wrapper ".concat(w),role:"complementary","aria-label":"Advertisement",children:(0,r.jsx)(g,{})}):(0,r.jsx)("div",{ref:N,className:"google-ad-slot-wrapper ".concat(D?"max-w-full overflow-x-auto":""," ").concat(w),role:"complementary","aria-label":"Advertisement","data-ad-fill":L,children:(0,r.jsx)("div",{className:"google-ad-slot".concat("filled"===L?" google-ad-slot--filled rounded border border-gray-200 dark:border-gray-700/60 p-1.5":"").concat(O),style:x(W,R),children:(0,r.jsx)("ins",{ref:S,className:"adsbygoogle",style:{display:"inline-block",width:z.w,height:z.h},"data-ad-client":m,"data-ad-slot":Z})})},j):(0,r.jsx)("div",{ref:N,className:"google-ad-slot-wrapper ".concat(w),"aria-hidden":!0,
1children:(0,r.jsx)("div",{className:"google-ad-slot".concat(O),style:x(W,R)})}):(0,r.jsx)("div",{ref:N,className:"google-ad-slot-wrapper ".concat(w),role:"complementary","aria-label":"Advertisement",children:(0,r.jsx)(g,{})})}},10030:function(e,t,n){"use strict";n.d(t,{HideWhenLoggedIn:function(){return i}});var r=n(57437),o=n(79179);function i(e){let{children:t}=e,{user:n}=(0,o.aC)();return n?null:(0,r.jsx)(r.Fragment,{children:t})}},13405:function(e,t,n){"use strict";n.d(t,{HomeSearchBoxWithModes:function(){return c}});var r=n(57437),o=n(99376),i=n(2265),a=n(41346),s=n(23911);let l="pbm-home-search-mode";function c(e){let{defaultMode:t="location",showAuto:n=!0,rememberMode:c=!1}=e,u=(0,o.useRouter)(),d=(0,i.useId)(),[f,m]=(0,i.useState)(""),[p,h]=(0,i.useState)(t),[g,x]=(0,i.useState)(!c);(0,i.useEffect)(()=>{if(c){try{let e=sessionStorage.getItem(l);e&&(0,s.dr)(e)&&(n||"auto"!==e)&&h(e)}catch(e){}x(!0)}},[c,n]),(0,i.useEffect)(()=>{if(c&&g)try{sessionStorage.setItem(l,p)}catch(e){}},[p,c,g]);let b=n?s.CV:s.CV.filter(e=>"auto"!==e.id),w=(0,s.To)(p),v="".concat(d,"-input"),y="".concat(d,"-hint"),j=!!f.trim();return(0,r.jsxs)("form",{role:"search",onSubmit:e=>{e.preventDefault();let t=(0,s.GW)(f,p);t&&u.push(t)},className:"w-full max-w-xl mx-auto mb-8","aria-labelledby":"".concat(d,"-label"),children:[(0,r.jsx)("p",{id:"".concat(d,"-label"),className:"sr-only",children:"Search for postboxes"}),(0,r.jsxs)("div",{className:"rounded-2xl bg-white shadow-xl ring-1 ring-black/10 overflow-hidden text-left",children:[(0,r.jsx)("div",{role:"group","aria-label":"What are you searching for?",className:"flex gap-1 p-1.5 bg-gray-100/90 border-b border-gray-200/80 overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",children:b.map(e=>{let t=p===e.id;return(0,r.jsx)("button",{type:"button",onClick:()=>h(e.id),"aria-pressed":t,className:"shrink-0 flex-1 min-h-[40px] px-3 rounded-xl text-sm font-semibold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 ".concat(t?"bg-primary text-white shadow-sm":"text-gray-600 hover:bg-white hover:text-gray-900"),children:e.shortLabel},e.id)})}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-stretch",children:[(0,r.jsx)("label",{htmlFor:v,className:"sr-only",children:w.label}),(0,r.jsx)("input",{id:v,type:"search",value:f,onChange:e=>m(e.target.value),placeholder:w.placeholder,autoComplete:"off",className:"flex-1 min-h-[52px] px-4 py-3 text-base text-gray-900 placeholder-gray-400 bg-transparent border-0 min-w-0 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary/30","aria-describedby":y}),(0,r.jsx)(a.zx,{type:"submit",disabled:!j,size:"md",className:"w-full sm:w-auto shrink-0 min-h-[52px] h-auto sm:self-stretch rounded-none sm:rounded-none px-7 text-base font-semibold focus-visible:ring-inset focus-visible:ring-offset-0 disabled:opacity-100 disabled:bg-primary/70",children:"Search"})]})]}),(0,r.jsx)("p",{id:y,className:"mt-3 text-center text-sm text-white/90 drop-shadow-sm",children:w.hint})]})}},95470:function(e,t,n){"use strict";n.d(t,{HomeStoreBadges:function(){return l}});var r=n(57437),o=n(2265),i=n(33145),a=n(15721);let s="inline-flex h-10 items-center focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 rounded";function l(){let[e,t]=(0,o.useState)("unknown");(0,o.useEffect)(()=>{t(function(){let e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1?"ios":/Android/i.test(e)?"android":"other"}())},[]);let n=!!a.l5&&("unknown"===e||"other"===e||"ios"===e);return(0,r.jsxs)(r.Fragment,{children:[n&&a.l5&&(0,r.jsx)("a",{href:a.l5,target:"_blank",rel:"noopener noreferrer",className:s,children:(0,r.jsx)(i.default,{src:"/assets/img/store-badges/app-store-badge.svg",alt:"Download on the App Store",width:120,height:40,unoptimized:!0,className:"h-10 w-auto"})}),("unknown"===e||"other"===e||"android"===e)&&(0,r.jsx)("a",{href:a.Cb,target:"_blank",rel:"noopener noreferrer",className:s,children:(0,r.jsx)(i.default,{src:"/assets/img/store-badges/google-play-badge.png?v=2",alt:"Get it on Google Play",width:134,height:40,unoptimized:!0,className:"h-10 w-auto"})})]})}},70775:function(e,t,n){"use strict";n.d(t,{HomeWebAppInstallButton:function(){return l}});var r=n(57437),o=n(2265),i=n(99376),a=n(91472),s=n(15522);function l(){let e=(0,i.useRouter)(),t=(0,a.wB)(),n=(0,a.mK)(),l=function(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=navigator.userAgent;t(!!(/iPad|iPhone|iPod/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))},[]),e}(),[c,u]=(0,o.useState)(null),[d,f]=(0,o.useState)(!1),[m,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=(0,s.C)();e&&u(e);let t=e=>{(0,s.M)(e),u(e)},n=()=>{p(!0),u(null),(0,s.M)(null)};return window.addEventListener("beforeinstallprompt",t),window.addEventListener("appinstalled",n),()=>{window.removeEventListener("beforeinstallprompt",t),window.removeEventListener("appinstalled",n)}},[]);let h=()=>{e.push(l?"/app#ios":"/app")},g=async()=>{let e=null!=c?c:(0,s.C)();if(!e){h();return}let t=e.prompt();f(!0);try{let e=await t;"accepted"===e.outcome&&p(!0),(0,s.M)(null),u(null)}finally{f(!1)}};return n||t||m?(0,r.jsxs)("div",{className:"box-border flex h-10 w-[120px] flex-col items-start justify-center rounded-md border border-emerald-300 bg-emerald-50 px-2.5 text-left",role:"status",children:[(0,r.jsx)("span",{className:"text-[9px] font-medium uppercase leading-none tracking-wide text-emerald-800/80",children:"Web app"}),(0,r.jsx)("span",{className:"mt-0.5 text-[13px] font-semibold leading-none text-emerald-900",children:"Installed"})]}):(0,r.jsxs)("button",{type:"button",onClick:g,disabled:d,className:"box-border flex h-10 w-[120px] flex-col items-start justify-center rounded-md border border-black bg-black px-2.5 text-left text-white transition hover:bg-gray-900 disabled:opacity-70 touch-manipulation","aria-label":c?"Install the PostboxMap web app":"Open the web app install guide",children:[(0,r.jsx)("span",{className:"text-[9px] font-medium uppercase leading-none tracking-wide text-white/85",children:d?"Please wait":"Install free"}),(0,r.jsx)("span",{className:"mt-0.5 text-[13px] font-semibold leading-none",children:d?"Installingâ¦":"Web App"})]})}},71508:function(e,t,n){"use strict";n.d(t,{RedirectToDashboard:function(){return s}});var r=n(79179),o=n(99376),i=n(2265),a=n(91472);function s(){let{status:e}=(0,r.aC)(),t=(0,o.useRouter)(),n=(0,a.Hk)();return(0,i.useEffect)(()=>{"loading"!==e&&n&&t.replace("/dashboard")},[e,n,t]),null}},78692:function(e,t,n){"use strict";n.d(t,{ShowWhenLoggedIn:function(){return i}});var r=n(57437),o=n(79179);function i(e){let{children:t}=e,{user:n}=(0,o.aC)();return n?(0,r.jsx)(r.Fragment,{children:t}):null}},70279:function(e,t,n){"use strict";n.d(t,{Pp:function(){return l},Skeleton:function(){return o},SkeletonList:function(){return a},SkeletonTable:function(){return s},en:function(){return u},yJ:function(){return c}});var r=n(57437);function o(e){let{className:t="",...n}=e;return(0,r.jsx)("div",{className:"".concat("animate-pulse rounded bg-gray-200 dark:bg-gray-700"," ").concat(t),...n})}function i(e){let{width:t="100%",className:n=""}=e;return(0,r.jsx)(o,{className:"h-4 ".concat(n),style:{width:"number"==typeof t?"".concat(t,"px"):t}})}function a(e){let{lines:t=5,className:n=""}=e;return(0,r.jsx)("div",{className:"space-y-3 ".concat(n),children:Array.from({length:t}).map((e,n)=>(0,r.jsx)(i,{width:n===t-1&&t>1?"75%":"100%"},n))})}function s(e){let{rows:t=8,cols:n=5,className:i=""}=e;return(0,r.jsxs)("div",{className:"overflow-hidden rounded-xl border border-gray-200 dark:border-gray-700 ".concat(i),children:[(0,r.jsx)("div",{className:"flex gap-4 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 px-4 py-3",children:Array.from({length:n}).map((e,t)=>(0,r.jsx)(o,{className:"h-4 flex-1 min-w-[60px]"},t))}),(0,r.jsx)("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:Array.from({length:t}).map((e,t)=>(0,r.jsx)("div",{className:"flex gap-4 px-4 py-3",children:Array.from({length:n}).map((e,t)=>(0,r.jsx)(o,{className:"h-4 flex-1 min-w-[40px]"},t))},t))})]})}
1function l(e){let{count:t=6,className:n=""}=e;return(0,r.jsx)("div",{className:"grid sm:grid-cols-2 gap-4 ".concat(n),children:Array.from({length:t}).map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-4 p-4 sm:p-5 rounded-xl border border-gray-200 dark:border-gray-700",children:[(0,r.jsx)(o,{className:"w-12 h-12 rounded-lg shrink-0"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,r.jsx)(o,{className:"h-5 w-24"}),(0,r.jsx)(o,{className:"h-4 w-full max-w-[180px]"})]})]},t))})}function c(e){let{title:t=!0,blocks:n=1,table:i=!1,tableRows:a=5,className:l=""}=e;return(0,r.jsxs)("div",{className:"space-y-6 ".concat(l),children:[t&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o,{className:"h-9 w-48"}),(0,r.jsx)(o,{className:"h-5 w-72"})]}),Array.from({length:n}).map((e,t)=>(0,r.jsx)(o,{className:"h-24 w-full rounded-xl"},t)),i&&(0,r.jsx)(s,{rows:a,cols:5})]})}function u(e){let{className:t=""}=e;return(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 p-3 sm:p-4 rounded-lg ".concat(t),children:[(0,r.jsxs)("div",{className:"space-y-2 flex-1",children:[(0,r.jsx)(o,{className:"h-5 w-32"}),(0,r.jsx)(o,{className:"h-4 w-24"})]}),(0,r.jsx)(o,{className:"h-9 w-16 rounded"})]})}},56297:function(e,t,n){"use strict";n.d(t,{DeferredHomeSections:function(){return a}});var r=n(57437),o=n(95206),i=n(70279);function a(e){let{initialData:t}=e;return(0,r.jsx)(o.P,{loader:()=>Promise.all([n.e(3855),n.e(3085)]).then(n.bind(n,39386)),componentProps:{initialData:t},rootMargin:"150px",fallback:(0,r.jsxs)("div",{className:"min-h-[36rem] rounded-xl bg-gray-100/80 animate-pulse","aria-hidden":!0,children:[(0,r.jsx)(i.Skeleton,{className:"h-8 w-64 mx-auto mb-8"}),(0,r.jsx)(i.Skeleton,{className:"h-48 w-full max-w-4xl mx-auto"})]})})}},65601:function(e,t,n){"use strict";n.d(t,{DeferredPwaPromoBanner:function(){return i}});var r=n(57437),o=n(95206);function i(){return(0,r.jsx)(o.P,{loader:()=>n.e(6344).then(n.bind(n,86344)),rootMargin:"200px",fallback:null})}},79266:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});let r=["/moderator","/moderator_new","/owner","/dashboard","/add","/field-mode","/login","/register","/verify-email","/forgot-password","/reset-password","/profile","/api-keys","/my-submissions","/my-corrections","/notifications","/sorting-office","/restore-owner","/offline"];function o(e){return!e||!r.some(t=>e===t||e.startsWith("".concat(t,"/")))}},66332:function(e,t,n){"use strict";n.d(t,{On:function(){return s},eH:function(){return i},iG:function(){return o}});var r=n(83125);let o=[".google-auto-placed","ins.adsbygoogle-noablate","ins.adsbygoogle[data-anchor-status]","ins.adsbygoogle[data-vignette-loaded]"];function i(){return!(0,r.xP)()}function a(e){return!!e.closest(".google-ad-slot-wrapper, .google-ad-slot")}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=0;for(let n of o)e.querySelectorAll(n).forEach(e=>{var n;if(!(e instanceof Element)||a(e))return;let r=e.classList.contains("google-auto-placed")?e:null!==(n=e.closest(".google-auto-placed"))&&void 0!==n?n:e;r.isConnected&&(r.remove(),t+=1)});return"undefined"!=typeof document&&e===document&&document.querySelectorAll("ins.adsbygoogle").forEach(e=>{if(!(e instanceof HTMLElement)||a(e))return;let n=e.style.position||("function"==typeof getComputedStyle?getComputedStyle(e).position:"");("fixed"===n||"sticky"===n)&&(e.remove(),t+=1)}),t}},17803:function(e,t,n){"use strict";n.d(t,{AppExperienceProvider:function(){return l},l:function(){return c}});var r=n(57437),o=n(2265);let i="app-experience-enabled",a="app-experience-popup-dismissed",s=(0,o.createContext)(null);function l(e){let{children:t}=e,[n,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[d,f]=(0,o.useState)(!1);(0,o.useEffect)(()=>{f(!0)},[]),(0,o.useEffect)(()=>{d&&(l(function(){try{return"1"===localStorage.getItem(i)}catch(e){return!1}}()),u(function(){try{return"1"===localStorage.getItem(a)}catch(e){return!1}}()))},[d]);let m=(0,o.useCallback)(e=>{try{e?localStorage.setItem(i,"1"):localStorage.removeItem(i)}catch(e){}l(e)},[]),p=(0,o.useCallback)(e=>{try{e?localStorage.setItem(a,"1"):localStorage.removeItem(a)}catch(e){}u(e)},[]);return(0,r.jsx)(s.Provider,{value:{preferAppExperience:n,setPreferAppExperience:m,popupDismissed:c,setPopupDismissed:p},children:t})}function c(){return(0,o.useContext)(s)||{preferAppExperience:!1,setPreferAppExperience:()=>{},popupDismissed:!1,setPopupDismissed:()=>{}}}},15721:function(e,t,n){"use strict";n.d(t,{Cb:function(){return o},Im:function(){return s},a_:function(){return a},l5:function(){return i}});var r=n(76374);let o=(0,r.XX)("https://play.google.com/store/apps/details?id=".concat("uk.co.postboxmap.app")),i=null;function a(){return i?(0,r.XX)(i):"/app#ios"}function s(){return!!i}},37836:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,n=window.requestIdleCallback;if("function"==typeof n){let r=n(e,{timeout:t});return()=>cancelIdleCallback(r)}let r=setTimeout(e,Math.min(t,2e3));return()=>clearTimeout(r)}n.d(t,{T:function(){return r},k:function(){return i}});let o=["scroll","keydown","pointerdown","touchstart"];function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3,n=!1,i=()=>{n||(n=!0,e())},a=()=>{c(),l(),i()},s={passive:!0};for(let e of o)window.addEventListener(e,a,s);let l=r(i,t),c=()=>{for(let e of o)window.removeEventListener(e,a)};return()=>{c(),l()}}},68039:function(e,t,n){"use strict";n.d(t,{L6:function(){return l},ZS:function(){return s}});var r=n(63921),o=n(83125);let i="/api/auth/google-callback";function a(e){return e.replace(/\/$/,"")}function s(e){return e.hasClientId&&e.clientReady&&!e.isNativeShell}function l(e){var t;let{flow:n,useRedirect:s="link"!==n,redirectPath:l="/dashboard"}=e;
1if("link"===n)return{useOneTap:!1,itp_support:!0,theme:"filled_blue",size:"medium",text:"continue_with",shape:"rectangular"};let c={useOneTap:!0,auto_select:"signin"===n,itp_support:!0,theme:"filled_blue",size:"large",text:"signup"===n?"signup_with":"continue_with",shape:"rectangular",width:"320",context:"signup"===n?"signup":"signin"};return s&&("undefined"!=typeof document&&(document.cookie="".concat("pwa_google_redirect","=").concat(encodeURIComponent(l),"; path=/; max-age=300; SameSite=Lax"),(0,o.LC)()),c.ux_mode="redirect",c.login_uri=(null===(t=window.location)||void 0===t?void 0:t.origin)?"".concat(a(window.location.origin)).concat(i):"https://postboxmap.co.uk/api/auth/google-callback".trim()||"".concat(a(r._O)).concat(i)),c}},1072:function(e,t,n){"use strict";n.d(t,{NativeShellHintProvider:function(){return a},P:function(){return s}});var r=n(57437),o=n(2265);let i=(0,o.createContext)(!1);function a(e){let{initialIsNative:t,children:n}=e;return(0,r.jsx)(i.Provider,{value:t,children:n})}function s(){return(0,o.useContext)(i)}},15522:function(e,t,n){"use strict";function r(){var e;return null!==(e=window.__pwaDeferredPrompt)&&void 0!==e?e:null}function o(e){window.__pwaDeferredPrompt=e}n.d(t,{C:function(){return r},M:function(){return o}})},23911:function(e,t,n){"use strict";n.d(t,{CV:function(){return r},GW:function(){return o},To:function(){return i},dr:function(){return a}});let r=[{id:"location",label:"Location",shortLabel:"Location",placeholder:"e.g. SW1A 1AA, Edinburgh, High Street Yorkâ¦",hint:"Finds postboxes near a postcode, town, village or address."},{id:"reg",label:"Reg no",shortLabel:"Reg",placeholder:"e.g. SE1 18 or CB23 552",hint:"Looks up a box by Royal Mail registration number. Wildcards ? and * work."},{id:"reign",label:"Reign",shortLabel:"Reign",placeholder:"e.g. VR, E II R, Penfold",hint:"Searches by royal cypher, reign or design name."},{id:"auto",label:"Auto",shortLabel:"Auto",placeholder:"e.g. SW1A 1AA, SE1 18, Edinburgh, VRâ¦",hint:"Guesses from what you type: place or postcode nearby; reg or reign in the catalogue."}];function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=e.trim();if(!n)return null;let r=encodeURIComponent(n);return"search"===function(e,t){switch(e){case"location":return"near-me";case"reg":case"reign":return"search";default:return function(e){let t=e.trim();return t?!function(e){let t=(e||"").trim().replace(/\s+/g," ");if(!t||t.length<2||t.length>100||function(e){let t=(e||"").trim();return!!t&&!(t.length>10)&&/^[A-Z]{1,2}[0-9][0-9A-Z]?\s*[0-9][A-Z]{2}$/i.test(t.replace(/\s+/g," "))}(t))return!1;if(/[*?]/.test(null!=t?t:""))return/^[A-Z0-9][A-Z0-9\s?*._-]*$/i.test(t);if(/^[A-Z]{1,4}[0-9]{0,3}[A-Z]?\s+[0-9]{1,6}[A-Z]?$/i.test(t))return!0;let n=t.replace(/\s/g,"");return!!/^[A-Z]{1,4}[0-9]{1,6}[A-Z]?$/i.test(n)&&n.length>=4}(t)&&!function(e){let t=e.replace(/\s+/g," ").trim().toLowerCase();if(!t)return!1;if(["vr","gr","e ii r","eiir","c iii r","ciiir","c ii r","ciir"].some(e=>t===e||t.replace(/\s/g,"")===e.replace(/\s/g,"")))return!0;let n=["victoria","edward","george","elizabeth","charles","scottish","penfold","reign","cypher"];return t.split(/\s+/).some(e=>n.includes(e))}(t)?"near-me":"search":"near-me"}(t)}}(t,n)?"/search?q=".concat(r):"/postboxes/near-me?q=".concat(r)}function i(e){var t;return null!==(t=r.find(t=>t.id===e))&&void 0!==t?t:r[0]}function a(e){return r.some(t=>t.id===e)}},1996:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(2265);function o(){let[e,t]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),n=()=>t(e.matches);return n(),e.addEventListener("change",n),()=>e.removeEventListener("change",n)},[]),e}},91472:function(e,t,n){"use strict";n.d(t,{DE:function(){return d},Hk:function(){return c},J7:function(){return m},mK:function(){return f},wB:function(){return u}});var r=n(2265),o=n(17803),i=n(1996),a=n(83125),s=n(68039),l=n(1072);function c(){let e=(0,l.P)(),[t,n]=(0,r.useState)(e),s=(0,i.d)(),{preferAppExperience:c}=(0,o.l)();return(0,r.useEffect)(()=>{n((0,a.xP)())},[]),t||e||s&&c}function u(){let e=(0,l.P)(),[t,n]=(0,r.useState)(e);return(0,r.useEffect)(()=>{n((0,a.xP)())},[]),t||e}function d(){let e=(0,l.P)(),[t,n]=(0,r.useState)(e);return(0,r.useEffect)(()=>
1{if((0,a.cz)()){n(!0);return}let e=!1,t=0,r=()=>{if(!e){if((0,a.cz)()||t>=30){n(!0);return}t+=1,window.setTimeout(r,50)}};return r(),()=>{e=!0}},[]),t}function f(){let e=(0,l.P)(),[t,n]=(0,r.useState)(e),o=d();return(0,r.useEffect)(()=>{o&&n((0,a.cz)())},[o]),t||e}function m(e){let t=f(),n=d();return(0,s.ZS)({hasClientId:e,clientReady:n,isNativeShell:t})}},39763:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2265),o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),a=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:d="",children:f,...m}=n;return(0,r.createElement)("svg",{ref:a,...o,width:l,height:l,stroke:s,strokeWidth:u?24*Number(c)/Number(l):c,className:["lucide","lucide-".concat(i(e)),d].join(" "),...m},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(f)?f:[f]])});return n.displayName="".concat(e),n}},32660:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},76858:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},30401:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},10407:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},33145:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(48461),o=n.n(r)},27648:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(72972),o=n.n(r)},99376:function(e,t,n){"use strict";var r=n(35475);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},48461:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(47043),o=n(55346),i=n(65878),a=r._(n(5084));function s(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=i.Image}},function(e){e.O(0,[2972,6137,3464,5878,9204,1346,9179,2971,2117,1744],function(){return e(e.s=90920)}),_N_E=e.O()}]);
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.