1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{4989:function(e,t,r){Promise.resolve().then(r.bind(r,8212))},7818:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var l=r(551),n=r.n(l)},551:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let l=r(9920);r(7437),r(2265);let n=l._(r(148));function s(e,t){var r;let l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};"function"==typeof e&&(l.loader=e);let s={...l,...t};return(0,n.default)({...s,modules:null==(r=s.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let l=r(5592);function n(e){let{reason:t,children:r}=e;if("undefined"==typeof window)throw new l.BailoutToCSRError(t);return r}},148:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let l=r(7437),n=r(2265),s=r(912),a=r(1481);function o(e){return{default:e&&"default"in e?e.default:e}}let d={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},i=function(e){let t={...d,...e},r=(0,n.lazy)(()=>t.loader().then(o)),i=t.loading;function u(e){let o=i?(0,l.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,d=t.ssr?(0,l.jsxs)(l.Fragment,{children:["undefined"==typeof window?(0,l.jsx)(a.PreloadCss,{moduleIds:t.modules}):null,(0,l.jsx)(r,{...e})]}):(0,l.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,l.jsx)(r,{...e})});return(0,l.jsx)(n.Suspense,{fallback:o,children:d})}return u.displayName="LoadableComponent",u}},1481:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return s}});let l=r(7437),n=r(8512);function s(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let r=(0,n.getExpectedRequestStore)("next/dynamic css"),s=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files.filter(e=>e.endsWith(".css"));s.push(...t)}}return 0===s.length?null:(0,l.jsx)(l.Fragment,{children:s.map(e=>(0,l.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:r.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},8212:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return N}});var l=r(7437),n=r(2265),s=r(6463),a=r(6202),o=r(9733),d=r(8185),i=r(7786),u=r(4500),c=r(6763),f=r(8087),x=r(4035),m=r(5430),g=r(8604),h=r(921),p=r(7138),j=r(7818),b=r(7992);let y=(0,j.default)(()=>Promise.all([r.e(529),r.e(103),r.e(210),r.e(290),r.e(875)]).then(r.bind(r,1875)).then(e=>e.MunroMap),{loadableGenerated:{webpack:()=>[1875]},ssr:!1,loading:()=>(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center h-full min-h-[300px] flex-grow bg-muted rounded-md",children:[(0,l.jsx)(f.Z,{className:"h-12 w-12 lg:h-14 lg:w-14 animate-spin text-primary mb-4"}),(0,l.jsx)("p",{className:"text-muted-foreground lg:text-lg",children:"Loading map..."})]})});function N(){let{currentUser:e,isLoading:t}=(0,i.a)(),{allMunros:r,baggedMunroIds:j,isLoading:N,error:v}=(0,u.q)(),w=(0,s.useRouter)(),{toast:M}=(0,c.pm)();return((0,n.useEffect)(()=>{!t&&e&&w.replace("/dashboard")},[e,t,w]),t||!e&&N)?(0,l.jsxs)("div",{className:"flex flex-col min-h-screen bg-background",children:[(0,l.jsx)(a.c,{hideAuthButtons:!0}),(0,l.jsxs)("main",{className:"flex-grow mx-auto w-full max-w-screen-xl px-4 sm:px-6 lg:px-8 py-8 flex items-center justify-center",children:[(0,l.jsx)(f.Z,{className:"h-12 w-12 lg:h-16 lg:w-16 animate-spin text-primary"}),!e&&N&&(0,l.jsx)("span",{className:"ml-3 lg:text-lg",children:"Loading map data..."})]}),(0,l.jsx)("footer",{className:"py-4 text-center text-xs lg:text-sm text-muted-foreground border-t border-border/40",children:(0,l.jsxs)("div",{className:"flex justify-center items-center space-x-2 sm:space-x-4",children:[(0,l.jsxs)("span",{children:["360\xb0 Munros \xa9 ",new Date().getFullYear()]}
1),(0,l.jsx)("span",{className:"text-muted-foreground/50",children:"|"}),(0,l.jsxs)(p.default,{href:"/user-guide",className:"hover:text-primary hover:underline flex items-center",children:[(0,l.jsx)(x.Z,{className:"mr-1 h-3.5 w-3.5 lg:h-4 lg:w-4"}),"User Guide"]})]})})]}):e?null:(0,l.jsxs)("div",{className:"flex flex-col min-h-screen bg-background",children:[(0,l.jsx)(a.c,{hideAuthButtons:!0}),(0,l.jsxs)("main",{className:"flex-grow mx-auto w-full max-w-screen-xl px-4 sm:px-6 lg:px-8 py-8 flex flex-col items-center",children:[(0,l.jsxs)(d.Zb,{className:"w-full max-w-3xl text-center shadow-xl border-border mb-8",children:[(0,l.jsxs)(d.Ol,{children:[(0,l.jsx)("div",{className:"mx-auto p-4 rounded-full w-fit mb-3",style:{backgroundColor:"#6B7280"},children:(0,l.jsx)(m.Z,{className:"h-5 w-5 lg:h-6 lg:w-6",color:"white"})}),(0,l.jsx)(d.ll,{className:"text-3xl lg:text-4xl font-bold",children:"Munro Logbook"}),(0,l.jsx)(d.SZ,{className:"text-lg lg:text-xl text-muted-foreground pt-2",children:"Track and conquer Scotland's majestic Munros."})]}),(0,l.jsxs)(d.aY,{className:"space-y-6",children:[(0,l.jsx)("p",{className:"text-muted-foreground text-base lg:text-lg max-w-xl mx-auto",children:"Log your Munro Journey here. Keep a diary of dates, times, weather conditions and walk reports. Search Munros by area, Height, Climbed/Unclimbed. Watch the map icons and progress meter change as your round nears completion."}),(0,l.jsx)("p",{className:"text-muted-foreground text-base lg:text-lg",children:"Log in or register to manage your bagged Munros"}),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row justify-center gap-4",children:[(0,l.jsx)(o.z,{asChild:!0,size:"lg",children:(0,l.jsx)(p.default,{href:"/login",children:"Login"})}),(0,l.jsx)(o.z,{asChild:!0,variant:"outline",size:"lg",children:(0,l.jsx)(p.default,{href:"/register",children:"Register"})})]})]})]}),(0,l.jsxs)("section",{className:"w-full max-w-5xl relative mb-8",style:{height:"500px"},children:[(0,l.jsx)("h2",{className:"text-2xl lg:text-3xl font-semibold text-center mb-4 text-primary",children:"Explore the Munros"}),v&&(0,l.jsxs)(b.bZ,{variant:"destructive",className:"mb-4",children:[(0,l.jsx)(g.Z,{className:"h-5 w-5 lg:h-6 lg:w-6"}),(0,l.jsx)(b.Cd,{className:"lg:text-xl",children:"Map Data Error"}),(0,l.jsxs)(b.X,{className:"lg:text-base",children:["Could not load Munro locations for the map preview. Error: ",v]})]}),!v&&0===r.length&&!N&&(0,l.jsxs)(b.bZ,{variant:"default",className:"mb-4",children:[(0,l.jsx)(h.Z,{className:"h-5 w-5 lg:h-6 lg:w-6"}),(0,l.jsx)(b.Cd,{className:"lg:text-xl",children:"No Munro Data"}),(0,l.jsx)(b.X,{className:"lg:text-base",children:"Munro locations are currently unavailable for the map preview."})]}),!v&&(r.length>0||N)&&(0,l.jsx)(y,{munros:r,baggedMunroIds:j,onToggleBagged:e=>{M({title:"Feature Locked",description:"Please log in or register to bag Munros and track your progress.",duration:5e3})},onOpenLogAscentDialog:()=>{M({title:"Feature Locked",description:"Please log in or register to log ascents.",duration:5e3})}})]})]}),(0,l.jsx)("footer",{className:"py-4 text-center text-xs lg:text-sm text-muted-foreground border-t border-border/40",children:(0,l.jsxs)("div",{className:"flex justify-center items-center space-x-2 sm:space-x-4",children:[(0,l.jsxs)("span",{children:["360\xb0 Munros \xa9 ",new Date().getFullYear()]}),(0,l.jsx)("span",{className:"text-muted-foreground/50",children:"|"}),(0,l.jsxs)(p.default,{href:"/user-guide",className:"hover:text-primary hover:underline flex items-center",children:[(0,l.jsx)(x.Z,{className:"mr-1 h-3.5 w-3.5 lg:h-4 lg:w-4"}),"User Guide"]})]})})]})}},7992:function(e,t,r){"use strict";r.d(t,{Cd:function(){return i},X:function(){return u},bZ:function(){return d}});var l=r(7437),n=r(2265),s=r(3027),a=r(9354);let o=(0,s.j)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d=n.forwardRef((e,t)=>
1{let{className:r,variant:n,...s}=e;return(0,l.jsx)("div",{ref:t,role:"alert",className:(0,a.cn)(o({variant:n}),r),...s})});d.displayName="Alert";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("h5",{ref:t,className:(0,a.cn)("mb-1 font-medium leading-none tracking-tight",r),...n})});i.displayName="AlertTitle";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{ref:t,className:(0,a.cn)("text-sm [&_p]:leading-relaxed",r),...n})});u.displayName="AlertDescription"},8185:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return i},Zb:function(){return a},aY:function(){return u},eW:function(){return c},ll:function(){return d}});var l=r(7437),n=r(2265),s=r(9354);let a=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...n})});a.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{ref:t,className:(0,s.cn)("text-2xl lg:text-3xl font-semibold leading-none tracking-tight",r),...n})});d.displayName="CardTitle";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{ref:t,className:(0,s.cn)("text-sm lg:text-base text-muted-foreground",r),...n})});i.displayName="CardDescription";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});u.displayName="CardContent";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});c.displayName="CardFooter"},921:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let l=(0,r(6497).Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},8604:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let l=(0,r(6497).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}},function(e){e.O(0,[358,139,510,538,787,949,202,500,971,23,744],function(){return e(e.s=4989)}),_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.