1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{9344:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return e(8167)}])},4928:function(n,t,e){"use strict";e.d(t,{Z:function(){return ActivityCard}});var i=e(5893),o=e(2729),r=e(964),c=e(5675),l=e.n(c),a=e(6526);function _templateObject(){let n=(0,o._)(["\n position: relative;\n width: 311px;\n height: 234px;\n border-radius: 10px;\n overflow: hidden;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n\n @media only screen and (","){\n width: 280px;\n height: 211px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);\n }\n"]);return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,o._)(["\n position: relative;\n height: 100%;\n width: 100%;\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){let n=(0,o._)(["\n object-fit: cover;\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){let n=(0,o._)(["\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n background: rgba(0, 0, 0, 0.5);\n color: white;\n padding: 15px;\n box-sizing: border-box;\n z-index: 2;\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){let n=(0,o._)(["\n margin: 0 0 0 15px;\n font-size: 18px;\n font-weight: bold;\n letter-spacing: 0.5px;\n"]);return _templateObject4=function(){return n},n}function _templateObject5(){let n=(0,o._)(["\n margin: 7px 0 0 15px;\n font-size: 13px;\n font-weight: semibold;\n letter-spacing: 0.3px;\n"]);return _templateObject5=function(){return n},n}let d=r.ZP.div.withConfig({componentId:"sc-e91a3446-0"})(_templateObject(),a.u.xl),s=r.ZP.div.withConfig({componentId:"sc-e91a3446-1"})(_templateObject1()),p=(0,r.ZP)(l()).withConfig({componentId:"sc-e91a3446-2"})(_templateObject2()),u=r.ZP.div.withConfig({componentId:"sc-e91a3446-3"})(_templateObject3()),g=r.ZP.p.withConfig({componentId:"sc-e91a3446-4"})(_templateObject4()),m=r.ZP.p.withConfig({componentId:"sc-e91a3446-5"})(_templateObject5());var f=e(5964);function ActivityCard(n){let{image:t,title:e,area:o}=n;return(0,i.jsxs)(d,{children:[(0,i.jsxs)(s,{children:[(0,i.jsx)(p,{src:t,layout:"fill",alt:"Generated pixabay image"}),(0,i.jsx)(f.Fu,{})]}),(0,i.jsxs)(u,{children:[(0,i.jsx)(g,{children:e}),(0,i.jsx)(m,{children:o})]})]})}},5122:function(n,t,e){"use strict";e.d(t,{Z:function(){return Bookmark}});var i=e(5893);function IconStarBorder(){return(0,i.jsx)("svg",{version:"1.1",id:"Layer_1",viewBox:"0 0 512 512",width:"30px",height:"30px",fill:"white",children:(0,i.jsx)("path",{d:"M160.5,423.8c-6.1,0-12.3-2-17.6-5.9c-10-7.3-14-20.5-10.3-32.2l27.5-88.1l-69.4-56.5c-9.6-8.2-12.8-21.1-8.7-32.5 c4.1-11.5,15.2-19.1,27.5-19.1h87.8l31-83.4C232.6,95,243.4,88,256,88c12.6,0,23.4,7.1,27.5,18.2l31,83.4h87.8 c12.3,0,23.4,7.6,27.5,19.3l0,0c4.1,11.5,0.9,24.6-8.5,32.2l-69.4,56.5l28.7,87.2c3.8,11.7,0,24.9-10,32.2 c-10,7.6-23.4,8.2-33.7,1.5l-80.5-52.4l-79.3,53c-5,3.2-10.8,5-16.4,5L160.5,423.8z M109.6,218.5l76.7,62.4c4.7,3.8,6.4,10,4.7,15.8 l-30.4,97.8l87.2-58.2c5-3.2,11.1-3.2,16.1,0l88.7,57.7L320.7,297c-2-5.9,0-12,4.7-15.8l76.7-62.4h-98c-6.1,0-11.7-3.8-13.8-9.6 l-34.6-93.1l-34.6,93.1c-2,5.9-7.6,9.6-13.8,9.6h-98.1L109.6,218.5z M402.4,218.5L402.4,218.5z M402.4,218.5L402.4,218.5 L402.4,218.5z"})})}function IconStarFilled(){return(0,i.jsx)("svg",{version:"1.1",id:"Layer_1",viewBox:"0 0 512 512",width:"30px",height:"30px",fill:"white",children:(0,i.jsx)("path",{d:"M160.8,420.6c-6,0-12.4-1.9-17.5-5.8c-9.9-7.3-14-20.4-10.2-32.2l27.4-87.9l-69.5-56.4c-9.3-7.9-12.8-20.7-8.6-32.1 c4.1-11.4,15.3-19.1,27.4-19.1h87.6l30.9-83.1c4.1-11.4,15.3-19.1,27.4-19.1c12.1,0,23.3,7.6,27.4,19.1l30.9,83.1h87.4 c12.1,0,23.3,7.6,27.4,19.1c4.1,11.4,0.6,24.6-8.6,32.5l-69.1,56.4l28.7,87c3.8,11.8,0,24.8-9.9,32.2c-9.9,7.6-23.3,8-33.7,1.3 l-80.3-52.3l-79,52.9c-4.8,3.2-10.5,4.8-16.3,4.8L160.8,420.6z"})})}e(7294);var o=e(2729),r=e(964);function _templateObject(){let n=(0,o._)(["\n background: rgba(110, 110, 110, 0.5);\n border-radius: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n\n &:hover{\n cursor: pointer;\n }\n"]);
1return _templateObject=function(){return n},n}let c=r.ZP.div.withConfig({componentId:"sc-47b83281-0"})(_templateObject());function Bookmark(n){let{onHandleBookmark:t,bookmarkedActivities:e=[],activity:o}=n,r=!!o&&e.includes(o._id);return(0,i.jsx)(c,{onClick:()=>void t(o),isBookmarked:r,children:r?(0,i.jsx)(IconStarFilled,{}):(0,i.jsx)(IconStarBorder,{})})}},1205:function(n,t,e){"use strict";e.d(t,{Z:function(){return DarkModeSwitch}});var i=e(5893);e(7294);var o=e(2729),r=e(964),c=e(5675),l=e.n(c),a=e(6526);function _templateObject(){let n=(0,o._)(["\n display: flex;\n"]);return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,o._)(["\n position: absolute;\n right: 2px;\n z-index: 3;\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){let n=(0,o._)(["\n display: flex;\n z-index: 3;\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){let n=(0,o._)(["\n position: absolute;\n left: ",";\n transition: left 250ms ease-out;\n background-color: white;\n width: 33px;\n height: 29px;\n border-radius: 8px;\n margin-left: 2px;\n z-index: 2;\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){let n=(0,o._)(["\n position: absolute;\n display: flex;\n align-items: center;\n top: 102px;\n right: 15px;\n width: 73px;\n height: 35px;\n padding: 0;\n border: ",";\n border-radius: 10px;\n background-color: var(--primary-color-light);\n\n &:hover{\n cursor: pointer;\n }\n\n\n @media screen and (","){\n right: 21vw;\n }\n"]);return _templateObject4=function(){return n},n}let d=r.ZP.div.withConfig({componentId:"sc-ce3fd391-0"})(_templateObject()),s=(0,r.ZP)(l()).withConfig({componentId:"sc-ce3fd391-1"})(_templateObject1()),p=(0,r.ZP)(l()).withConfig({componentId:"sc-ce3fd391-2"})(_templateObject2()),u=r.ZP.div.withConfig({componentId:"sc-ce3fd391-3"})(_templateObject3(),n=>n.$isToggled?"34px":"0px"),g=r.ZP.button.withConfig({componentId:"sc-ce3fd391-4"})(_templateObject4(),n=>n.$isToggled?"1px solid var(--secondary-color-light)":"1px solid white",a.u.xl);function DarkModeSwitch(n){let{toggleDark:t,toggleDisplay:e}=n;return console.log("these are both toggle props",e,t),(0,i.jsx)(d,{children:(0,i.jsxs)(g,{onClick:()=>e(),$isToggled:t,children:[(0,i.jsx)(s,{src:"/weatherIcons/01d.png",alt:"Sun symbol indicating light mode",height:32,width:32}),(0,i.jsx)(u,{$isToggled:t}),(0,i.jsx)(p,{src:"/weatherIcons/01n.png",alt:"Moon symbol indicating light mode",height:29,width:29})]})})}},9157:function(n,t,e){"use strict";e.d(t,{Z:function(){return Header}});var i=e(5893),o=e(2729),r=e(964);function _templateObject(){let n=(0,o._)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n transition: color 250ms ease-in-out;\n"]);return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,o._)(["\n margin: 10px 0 10px 0;\n font-size: 18px;\n font-weight: 700;\n"]);return _templateObject1=function(){return n},n}let c=r.ZP.section.withConfig({componentId:"sc-711902f8-0"})(_templateObject()),l=r.ZP.h1.withConfig({componentId:"sc-711902f8-1"})(_templateObject1());var a=e(5675),d=e.n(a);function Header(n){let{children:t,toggleDark:e}=n;return(0,i.jsxs)(c,{$isToggled:e,children:[(0,i.jsx)(d(),{src:"/logo_leapout_old_-removebg-preview.png",alt:"Logo",width:200,height:50}),(0,i.jsx)(l,{children:t})]})}},5964:function(n,t,e){"use strict";e.d(t,{DD:function(){return l},Fh:function(){return c},Fu:function(){return r}});var i=e(2729),o=e(964);function _templateObject(){let n=(0,i._)(['\n position: relative;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100%;\n width: 100%;\n\n background-color: #E8E8E8;\n border-radius: 10px;\n z-index: -1;\n overflow: hidden;\n\n&::after {\n position: relative;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n transform: translateX(-100%);\n background-image: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0,\n rgba(255, 255, 255, 0.2) 20%,\n rgba(255, 255, 255, 0.5) 60%,\n rgba(255, 255, 255, 0)\n );\n animation: shimmer 1.5s infinite;\n content: "";\n\n @keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n}\n}\n']);
1return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,i._)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 282px;\n height: 211px;\n position: relative;\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){let n=(0,i._)(['\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 281.25px;\n height: 210.75px;\n background-color: #E8E8E8;\n border-radius: 10px;\n z-index: 1;\n overflow: hidden;\n\n&::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n transform: translateX(-100%);\n background-image: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0,\n rgba(255, 255, 255, 0.2) 20%,\n rgba(255, 255, 255, 0.5) 60%,\n rgba(255, 255, 255, 0)\n );\n animation: shimmer 1.5s infinite;\n content: "";\n\n @keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n }\n }\n']);return _templateObject2=function(){return n},n}let r=o.ZP.div.withConfig({componentId:"sc-adc22d8c-0"})(_templateObject()),c=o.ZP.div.withConfig({componentId:"sc-adc22d8c-1"})(_templateObject1()),l=o.ZP.div.withConfig({componentId:"sc-adc22d8c-2"})(_templateObject2())},8167:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return ProfilePage}});var i=e(5893),o=e(9157),r=e(2729),c=e(964),l=e(1664),a=e.n(l),d=e(5675),s=e.n(d);function _templateObject(){let n=(0,r._)(["\n color: ",";\n transition: color 250ms ease-in-out;\n font-size: medium;\n font-weight: 400;\n text-align: center;\n margin: 250px 0 0 0;\n"]);return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,r._)(["\n display: flex;\n flex-direction: column;\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){let n=(0,r._)(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n margin-top: 25px;\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){let n=(0,r._)(["\n border-radius: 50px;\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){let n=(0,r._)(["\n font-size: large;\n font-weight: bold;\n text-align: center;\n"]);return _templateObject4=function(){return n},n}function _templateObject5(){let n=(0,r._)(["\n text-align: center;\n font-size: medium;\n margin: 0 0 16px 0;\n"]);return _templateObject5=function(){return n},n}function _templateObject6(){let n=(0,r._)(["\n display: flex;\n flex-direction: column;\n gap: 25px;\n padding: 0 0 85px 0;\n margin: 0 2rem 0 2rem;\n"]);return _templateObject6=function(){return n},n}function _templateObject7(){let n=(0,r._)(["\n color: black;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-decoration: none;\n\n &:active {\n color: black;\n }\n"]);return _templateObject7=function(){return n},n}function _templateObject8(){let n=(0,r._)(["\n border-radius: 10px;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5);\n list-style-type: none;\n"]);return _templateObject8=function(){return n},n}function _templateObject9(){let n=(0,r._)(["\n color: #969A9E;\n font-size: medium;\n font-weight: 400;\n text-align: center;\n margin: 0 0 25px 0;\n"]);return _templateObject9=function(){return n},n}let p=c.ZP.p.withConfig({componentId:"sc-e3253ded-0"})(_templateObject(),n=>n.$isToggled?"white":"#969A9E"),u=c.ZP.div.withConfig({componentId:"sc-e3253ded-1"})(_templateObject1()),g=c.ZP.div.withConfig({componentId:"sc-e3253ded-2"})(_templateObject2()),m=(0,c.ZP)(s()).withConfig({componentId:"sc-e3253ded-3"})(_templateObject3()),f=c.ZP.h2.withConfig({componentId:"sc-e3253ded-4"})(_templateObject4()),h=c.ZP.h3.withConfig({componentId:"sc-e3253ded-5"})(_templateObject5()),b=c.ZP.ul.withConfig({componentId:"sc-e3253ded-6"})(_templateObject6()),x=(0,c.ZP)(a()).withConfig({componentId:"sc-e3253ded-7"})(_templateObject7()),j=c.ZP.li.withConfig({componentId:"sc-e3253ded-8"})(_templateObject8()),_=c.ZP.p.withConfig({componentId:"sc-e3253ded-9"}
1)(_templateObject9());var O=e(5122),w=e(7214),v=e(4928),y=e(3299),k=e(6526);function Login_styles_templateObject(){let n=(0,r._)(["\n position: absolute;\n top: 40px;\n right: 15px;\n text-decoration: none;\n color: #ffffff;\n background-color: var(--primary-color-light);\n border: 5px solid var(--primary-color-light);\n border-radius: 5px;\n font-size: 17px;\n padding-left: 5px;\n padding-right: 5px;\n margin-top: 25px;\n\n &:hover {\n background-color: var(--secondary-color-light);\n border-color: var(--secondary-color-light);\n }\n\n &:active {\n background-color: var(--secondary-color-light);\n border-color: var(--secondary-color-light);\n }\n\n @media screen and (","){\n right: 21vw;\n }\n"]);return Login_styles_templateObject=function(){return n},n}function Login_styles_templateObject1(){let n=(0,r._)(["\n position: absolute;\n top: 20px;\n right: 15px;\n text-align: right;\n\n @media screen and (","){\n right: 21vw;\n }\n"]);return Login_styles_templateObject1=function(){return n},n}let Z=c.ZP.button.withConfig({componentId:"sc-272f069b-0"})(Login_styles_templateObject(),k.u.xl),C=c.ZP.p.withConfig({componentId:"sc-272f069b-1"})(Login_styles_templateObject1(),k.u.xl);function Login(){let{data:n}=(0,y.useSession)();return n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(C,{children:["Signed in as ",(0,i.jsx)("br",{}),n.user.email]}),(0,i.jsx)(Z,{type:"button",onClick:()=>(0,y.signOut)(),children:"Sign out"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C,{children:"Not signed in"}),(0,i.jsx)(Z,{type:"button",onClick:()=>(0,y.signIn)(),children:"Sign in"})]})}var P=e(1205);function ProfilePage(n){let{onHandleBookmark:t,activities:e=[],bookmarkedActivities:r=[],toggleDark:c,toggleDisplay:l}=n,a=e.filter(n=>r.includes(n._id)),{data:d}=(0,y.useSession)();return d&&d.user?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{children:"Profile"}),(0,i.jsxs)(u,{children:[(0,i.jsx)(Login,{}),(0,i.jsx)(P.Z,{toggleDark:c,toggleDisplay:l}),(0,i.jsxs)(g,{children:[(0,i.jsx)(m,{src:d.user.image,width:"100",height:"100",alt:"user-image"}),(0,i.jsxs)(f,{children:["Hello, ",d.user.name,"!"]})]})]}),(0,i.jsx)(h,{children:"Your saved activities"}),a.length>0?(0,i.jsx)(b,{children:a.map(n=>(0,i.jsxs)(j,{children:[(0,i.jsx)(w.pR,{children:(0,i.jsx)(O.Z,{onHandleBookmark:t,bookmarkedActivities:r,activity:n})}),(0,i.jsx)(x,{href:"/".concat(n._id),children:(0,i.jsx)(v.Z,{id:n.id,image:n.image,title:n.title,area:n.area})})]},n.id))}):(0,i.jsx)(_,{children:"You have no Activities bookmarked yet!"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{toggleDark:c,children:"Profile"}),(0,i.jsxs)(p,{$isToggled:c,children:["You are not logged in ",(0,i.jsx)("br",{}),"- please log in!"]}),(0,i.jsx)(Login,{}),(0,i.jsx)(P.Z,{toggleDark:c,toggleDisplay:l})]})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=9344)}),_N_E=n.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.