1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[130],{1769:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/account",function(){return t(4401)}])},6746:function(e,s,t){"use strict";t.d(s,{Z:function(){return n}});var a=t(5893);function n(e){e.display;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("svg",{class:"animate-spin -ml-1 mr-3 h-4 w-4 text-white",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})}},4401:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return w},default:function(){return N}});var a=t(4051),n=t.n(a),r=t(5893),i=(t(4713),t(479)),o=t(6746),l=t(3153),d=t(4993),c=t(821),m=t(9669),u=t.n(m),h=t(7294),x=t(5131),p=t(5220),f=t(3801),g=t(6724),y=t(9008),b=t(1163);function j(e,s,t,a,n,r,i){try{var o=e[r](i),l=o.value}catch(d){return void t(d)}o.done?s(l):Promise.resolve(l).then(a,n)}function v(e){return function(){var s=this,t=arguments;return new Promise((function(a,n){var r=e.apply(s,t);function i(e){j(r,a,n,i,o,"next",e)}function o(e){j(r,a,n,i,o,"throw",e)}i(void 0)}))}}var w=!0;function N(e){var s=e.user,t="auth0"!==s.sub.split("|")[0],a=(0,h.useState)(!1),m=a[0],j=a[1],w=(0,h.useState)(!1),N=w[0],k=w[1],C=(0,h.useState)(!1),S=C[0],_=C[1],E=(0,h.useState)(!1),P=E[0],F=E[1],T=(0,h.useState)("Loading..."),M=T[0],Z=T[1],A=(0,h.useState)(s.name),U=A[0],V=A[1],Y=(0,h.useState)(""),z=Y[0],B=Y[1],I=(0,h.useState)(!1),L=I[0],O=I[1],R=(0,c.ZP)("checkSubscription",(function(){return(0,d.Z)()})),X=(0,h.useContext)(g.W),D=(X.dashboardLoading,X.setDashboardLoading),G=(0,b.useRouter)();return(0,h.useEffect)((function(){D(!1)}),[]),(0,h.useEffect)(v(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:void 0!==R.data&&Z((function(){return"Basic Monthly"===R.data.data.plan?"Single User Monthly":"Basic Yearly"===R.data.data.plan?"Single User Yearly":"Pro Monthly"===R.data.data.plan?"Multi-User Monthly":"Pro Yearly"===R.data.data.plan?"Multi-User Yearly":R.data.data.plan}));case 1:case"end":return e.stop()}}),e)}))),[R]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.default,{children:(0,r.jsx)("title",{children:"Account"})}),(0,r.jsx)(x.u.Root,{show:L,as:h.Fragment,children:(0,r.jsx)(p.V,{as:"div",className:"fixed z-10
1inset-0 overflow-y-auto",onClose:O,children:(0,r.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,r.jsx)(x.u.Child,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)(p.V.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,r.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,r.jsx)(x.u.Child,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,r.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100",children:(0,r.jsx)(f.nQG,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})}),(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,r.jsx)(p.V.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:"Email Sent"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"An email has been sent with instructions on how to change your password."})})]})]}),(0,r.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,r.jsx)("button",{type:"button",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm",onClick:function(){return O(!1)},children:"Close"})})]})})]})})}),(0,r.jsxs)(i.Z,{user:s,active:"Account",icon:"profile",children:[(0,r.jsx)("div",{className:"flex justify-end -mt-12",children:(0,r.jsxs)("button",{disabled:t,type:"button",className:(t?"cursor-not-allowed bg-indigo-100":"bg-primary cursor-pointer hover:bg-indigo-800 ")+" inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary focus:outline-none transition ease=in-out duration-400",onClick:v(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,u().post("/api/auth/changePassword",{email:s.email});case 3:e.sent,_(!1),F(!0),O(!0),setTimeout((function(){F(!1)}),3e3);case 8:case"end":return e.stop()}}),e)}))),children:[(0,r.jsx)("span",{className:"h-4"}),(0,r.jsx)("div",{className:S?"":"hidden",children:(0,r.jsx)(o.Z,{})}),(0,r.jsx)("div",{class:P?"mr-2":"hidden",children:(0,r.jsx)(l.rE2,{className:"w-4 h-4"})}),(0,r.jsx)("span",{className:"h-4"}),"Change Password"]})}),(0,r.jsxs)("div",{className:"bg-white overflow-hidden shadow rounded-lg mt-4",children:[(0,r.jsx)("div",{className:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6 flex justify-between",children:(0,r.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Subscription"})}),(0,r.jsx)("div",{className:"px-4 py-5 sm:p-6",children:(0,r.jsxs)("p",{className:"text-base font-medium text-gray-900",children:["Current Plan: ",M]})})]}),(0,r.jsxs)("div",{className:"bg-white overflow-hidden shadow rounded-lg mt-4",children:[(0,r.jsx)("div",{className:"bg-white px-4 py-5 sm:px-6 flex justify-between",children:(0,r.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Profile Information"})}),(0,r.jsx)("div",{children:(0,r.jsx)("p",{className:"text-base font-medium text-gray-900",children:(0,r.jsx)("form",{className:"space-y-8 divide-y divide-gray-200",children:(0,r.jsx)("div",{children:(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"space-y-6 sm:space-y-5",children:[(0,r.jsxs)("div",{className:"sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5",children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-900 sm:mt-px sm:pt-2 ml-8",children:"Email address"}),(0,r.jsx)("div",{className:"mt-1",children:(0,r.jsx)("input",{disabled:t,type:"email",name:"email",id:"email",className:(t?"curs
1or-not-allowed ":"")+"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:function(e){B(e.target.value)},placeholder:s.email})})]}),(0,r.jsxs)("div",{className:"sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5",children:[(0,r.jsx)("label",{htmlFor:"first-name",className:"block text-sm font-medium text-gray-900 sm:mt-px sm:pt-2 ml-8",children:"Name"}),(0,r.jsx)("div",{className:"mt-1",children:(0,r.jsx)("input",{disabled:t,type:"text",name:"first-name",id:"first-name",autoComplete:"given-name",placeholder:U,onChange:function(e){V(e.target.value)},className:(t?"cursor-not-allowed ":"")+"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"})})]}),(0,r.jsx)("div",{className:"sm:border-t sm:border-gray-300 sm:pt-5",children:(0,r.jsxs)("button",{disabled:t,type:"button",className:(t?"cursor-not-allowed bg-indigo-100":"bg-primary cursor-pointer hover:bg-indigo-800 ")+" mx-6 mb-4 inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white focus:outline-none transition ease=in-out duration-400",onClick:v(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),e.next=3,u().post("/api/auth/updateUser",{name:U,newEmail:""===z?s.email:z,email:s.email,userId:s.sub});case 3:e.sent,s.name=U,j(!1),k(!0),setTimeout((function(){""!==z&&G.push("/dashboard/verifyEmail"),k(!1)}),2e3);case 8:case"end":return e.stop()}}),e)}))),children:[(0,r.jsx)("div",{className:m?"":"hidden",children:(0,r.jsx)(o.Z,{})}),(0,r.jsx)("div",{class:N?"":"hidden",children:(0,r.jsx)(l.rE2,{className:"w-4 h-4 mr-2"})}),(0,r.jsx)("span",{className:"h-4"}),"Save"]})})]})})})})})})]}),(0,r.jsx)("p",{className:"text-gray-700 text-sm px-6 pb-4 mt-4",children:(0,r.jsx)("i",{children:"Please note that if you are logged in with an external account, you will have to change your profile information on your account provider's website. After you make the changes, they will show up the next time you log in."})}),(0,r.jsx)("p",{className:"text-gray-700 text-sm px-6 pb-4",children:(0,r.jsx)("i",{children:"If you are wanting to copmletely delete your account, please contact customer support via [email protected]."})})]})]})}}},function(e){e.O(0,[675,153,821,479,774,888,179],(function(){return s=1769,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.