1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[356],{13081:function(e,n,t){"use strict";var a=t(67294),i=t(11163),s=t(41664),c=t.n(s),r=t(85893);n.Z=function(e){var n=e.pages,t=e.user,s=(0,i.useRouter)(),u=(0,a.useState)(!1),l=u[0],d=u[1],m=(0,a.useRef)(l),f=function(e){m.current=e,d(e)},h=(0,a.useRef)(null);(0,a.useEffect)((function(){var e=h.current.offsetTop;window.addEventListener("scroll",(function(){var n=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;m.current&&n<=e?f(!1):m.current||n>=(e=h.current.offsetTop)&&f(!0)}))}),[]);var p=function(e){var n=s.asPath;return e===n||"/my-account/home"===e&&"/my-account"===n?"menu__item--active":""};return(0,r.jsx)("div",{className:"my-account-menu",children:(0,r.jsx)("section",{className:"section section--anchors u--sticky ".concat(l?"section--anchors--sticky":""),id:"section--anchors",ref:h,children:(0,r.jsx)("div",{className:"u--in u--lane",children:n&&n.length>0&&(0,r.jsx)("nav",{id:"navbar--anchors",className:"navbar navbar--secondary",role:"navigation",itemScope:!0,itemType:"https://schema.org/SiteNavigationElement",children:(0,r.jsx)("ul",{className:"menu",children:(0,r.jsxs)(r.Fragment,{children:[n.map((function(e){return(0,r.jsx)("li",{className:"menu__item ".concat(p(e.attributes.path.alias)),children:(0,r.jsx)(c(),{href:e.attributes.path.alias,children:e.attributes.title})},e.id)})),t&&(0,r.jsx)(o,{user:t})]})})})})})})};var o=function(e){var n=e.user,t=(0,a.useState)(null),i=t[0],s=t[1];return(0,r.jsxs)("li",{className:"my-account-menu__profile",children:[(0,r.jsxs)("button",{type:"button",onClick:function(){return s((function(e){return!e}))},"aria-controls":"user dropdown menu","aria-expanded":i,"aria-label":"Toggle user dropdown menu","data-behaviour":"toggle-visibility",children:[(0,r.jsx)("div",{className:"my-account-menu__profile-image",children:(0,r.jsx)("img",{src:"/static/images/profile.png",alt:"".concat(n.ponml_usernameid," profile")})}),(0,r.jsx)("div",{className:"my-account-menu__profile-text",children:(0,r.jsx)("p",{className:"my-account-menu__profile-username",children:"".concat(n.firstname," ").concat(n.lastname)})}),(0,r.jsx)("img",{className:"my-account-menu__profile-dropdown-icon",src:"/static/images/glyphs/chevron-down--white.svg",alt:""})]}),i&&(0,r.jsxs)("ul",{className:"my-account-menu__profile-menu",children:[(0,r.jsx)("li",{children:(0,r.jsx)(c(),{href:"/my-account/edit-profile",children:"Edit profile"})}),(0,r.jsx)("li",{children:(0,r.jsx)(c(),{href:"/logout",children:"Log out"})})]})]})}},88953:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return u}});var a=t(16835),i=t(67294),s=t(75665),c=t(13081),r=t(23495),o=t(85893),u=!0;n.default=function(e){var n=e.statusCode,t=e.pages,u=e.user,l=e.url;if(n)return(0,o.jsx)(s.default,{statusCode:n});var d=(0,i.useState)(null),m=d[0],f=d[1],h=(0,i.useState)([]),p=h[0],_=h[1],v=(0,i.useState)(!0),x=v[0],j=v[1],y=(0,i.useState)(0),g=y[0],N=y[1];(0,i.useEffect)((function(){if(t){var e=t.filter((function(e){return e.attributes.path.alias===l})),n=(0,a.Z)(e,1)[0];f(n||t[0])}}),[]),(0,i.useEffect)((function(){var e,n;m&&(null!==(e=m.relationships)&&void 0!==e&&null!==(n=e.field_add_paragraph)&&void 0!==n&&n.data&&_(m.relationships.field_add_paragraph.data),j(!1))}),[m]);return(0,o.jsxs)("div",{className:"my-account",children:[(0,o.jsx)(c.Z,{pages:t,user:u}),m===t[0]&&(0,o.jsx)("div",{className:"section",children:(0,o.jsxs)("div",{className:"u--in u--lane",children:[799980001!==u.ponml_websitestatus&&(0,o.jsx)("div",{className:"my-account__email-confirmation-message",children:function(){switch(g){case 1:return(0,o.jsx)("p",{children:"Confirmation email sent. Please check your inbox and click the link in the email."});case 2:return(0,o.jsx)("p",{children:"Something went wrong while sending confirmation email. Please try again later."});default:return(0,o.jsxs)("p",{children:["Account not yet verified, please confirm your email address. \xa0",(0,o.jsx)("button",{type:"button",onClick:function(){fetch("/api/my-account/resend-confirmation-email",{method:"POST",headers:{Accept:"application/json, text/plain","Content-type":"application/json"},body:JSON.stringify({firstName:u.firstname,email:u.emailaddress1})}).then((function(e){return e.json()})).then((function(e){e.success?N(1):N(2)})).catch((function(e){console.error("err: ",e),N(2)}))},children:"Resend confirmation email"})]})}}()}),(0,o.jsxs)("div",{className:"my-account__home-intro",children:[(0,o.jsx)("p",{children:"Hello ".concat(u.firstname,", welcome to")}
1),(0,o.jsx)("h1",{className:"h h--1",children:"My Account"})]})]})}),!x&&p.length&&p.map((function(e){return(0,o.jsx)(r.Z,{type:e.type,id:e.id},e.id)}))]})}},3610:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-account",function(){return t(88953)}])}},function(e){e.O(0,[885,634,982,596,743,853,278,253,436,2,994,563,774,888,179],(function(){return n=3610,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.