(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[616],{4682:function(e,t,n){"use strict";n.d(t,{T:function(){return h}});var r=n(2809),i=n(7294),u=n(9008),c=n(1824),s=n(683),o=n(1163),l=n(4076),a=n(7881),f=n(5893);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=e.children,n=e.title,r=e.description,u=void 0===r?"Focus.":r,c=e.authRedirect,l=e.authRequired,p=e.planRequired,d=e.className,h=void 0===d?"":d,y=e.styles,O=void 0===y?{}:y,g=(0,s.F_)("user"),b=(0,s.F_)("subscription"),v=(0,o.useRouter)(),m=(0,s.tN)("menuActive"),_=(0,s.sm)(),w=_.setMenuClosing,x=_.setConfetti;return(0,i.useEffect)((function(){x([]),m&&w(!0)}),[]),(0,i.useEffect)((function(){if(c&&g)return v.replace(v.query.next||"/")}),[c,g,v]),null===g||c&&g?null:l&&p&&g&&!1===b?(0,f.jsx)(j,{title:"choose your plan",description:"sign up for the mindful manager",authRequired:l,user:g,className:h,styles:O,children:(0,f.jsx)(a.Wv,{})}):(0,f.jsx)(j,{title:n,description:u,authRequired:l,user:g,className:h,styles:O,children:t})}function j(e){var t=e.title,n=e.description,r=e.children,s=e.authRequired,o=e.user,a=e.className,p=void 0===a?"":a,h=e.styles,j=void 0===h?{}:h,y=(0,i.useRef)(null);return(0,i.useEffect)((function(){return c.p.fromTo(y.current,{autoAlpha:0},{duration:.6,autoAlpha:1}),function(){c.i.getAll().forEach((function(e){e.kill()}))}}),[]),(0,f.jsxs)("section",{ref:y,style:d({opacity:0,textAlign:"center"},j),className:p,children:[(0,f.jsxs)(u.default,{children:[(0,f.jsx)("title",{children:t?"Mindful Manager | ".concat(t," "):"Mindful Manager"},"title"),(0,f.jsx)("meta",{name:"description",content:n},"description")]}),s&&!1===o?(0,f.jsx)(l.Wk,{type:"login"}):r]})}},4557:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(4682),i=n(4076),u=n(5893);function c(){return(0,u.jsx)(r.T,{title:"Sign Up",authRedirect:!0,children:(0,u.jsx)(i.Wk,{type:"signup"})})}},8971:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return n(4557)}])}},function(e){e.O(0,[774,888,179],(function(){return t=8971,e(e.s=t);var t}));var t=e.O();_N_E=t}]);