(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[939],{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 d(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(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,d=e.planRequired,p=e.className,h=void 0===p?"":p,y=e.styles,O=void 0===y?{}:y,v=(0,s.F_)("user"),b=(0,s.F_)("subscription"),g=(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&&v)return g.replace(g.query.next||"/")}),[c,v,g]),null===v||c&&v?null:l&&d&&v&&!1===b?(0,f.jsx)(j,{title:"choose your plan",description:"sign up for the mindful manager",authRequired:l,user:v,className:h,styles:O,children:(0,f.jsx)(a.Wv,{})}):(0,f.jsx)(j,{title:n,description:u,authRequired:l,user:v,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,d=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:p({opacity:0,textAlign:"center"},j),className:d,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]})}},7805:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(4682),i=n(7881),u=n(5893);function c(){return(0,u.jsx)(r.T,{title:"choose your plan",authRedirect:!0,children:(0,u.jsx)(i.Wv,{})})}},9650:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing",function(){return n(7805)}])}},function(e){e.O(0,[774,888,179],(function(){return t=9650,e(e.s=t);var t}));var t=e.O();_N_E=t}]);