1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2770],{96349:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/articles/new",function(){return n(10681)}])},23500:function(e,r,n){"use strict";var t=n(34051),i=n.n(t),s=n(85893),c=n(67294),o=n(74931),a=n(40611),u=n(2282);function l(e,r,n,t,i,s,c){try{var o=e[s](c),a=o.value}catch(u){return void n(u)}o.done?r(a):Promise.resolve(a).then(t,i)}function d(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){d(e,r,n[r])}))}return e}r.Z=function(){var e=(0,c.useState)(!1),r=e[0],n=e[1],t=(0,u.a)(),d=(t.user,t.setUser),p=function(){var e,r=(e=i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.prev=1,e.next=4,a.Z.post("/api/users/resend-verification/email");case 4:r=e.sent.data,n(!1),console.log(r),"OK"===r&&o.ZP.success("Verification email sent. Please check your mailbox"),"VERIFIED"===r&&(o.ZP.success("Your email is verified, please refresh your browser"),d((function(e){return f({},e,{is_email_verified:!0})}))),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(1),console.log(e.t0),o.ZP.error("An error occurred, please try again"),n(!1);case 16:case"end":return e.stop()}}),e,null,[[1,11]])})),function(){var r=this,n=arguments;return new Promise((function(t,i){var s=e.apply(r,n);function c(e){l(s,t,i,c,o,"next",e)}function o(e){l(s,t,i,c,o,"throw",e)}c(void 0)}))});return function(){return r.apply(this,arguments)}}();return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{className:"py-3 px-6 bg-blue-600 text-white rounded-md drop-shadow-lg disabled:bg-opacity-30 text-center block",onClick:p,type:"button",disabled:r,children:"Resend verification email"})})}},10681:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return d}});var t=n(85893),i=n(80575),s=n(19615),c=n(41664),o=n(89583),a=n(2282),u=n(67294),l=n(23500);function d(){var e=(0,a.a)(),r=e.user,n=e.loading;return(0,u.useEffect)((function(){}),[n]),(0,t.jsx)(i.Z,{title:"Write new article",children:(0,t.jsx)("div",{children:!n&&r&&r.is_email_verified?(0,t.jsxs)("div",{className:"md:p-12 p-4 rounded-lg drop-shadow-md border border-slate-300 bg-white",children:[(0,t.jsx)("p",{children:(0,t.jsx)(c.default,{href:"/dashboard/articles",children:(0,t.jsxs)("a",{className:"inline-flex items-center space-x-4",children:[(0,t.jsx)(o.x_l,{})," ",(0,t.jsx)("span",{children:"Back to articles"})]})})}),(0,t.jsx)(s.Z,{})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"You are yet to verify your email address. Please click below to resend your verification link"}),(0,t.jsx)(l.Z,{})]})})})}}},function(e){e.O(0,[5445,2013,9866,955,3874,4617,3276,2175,6653,4231,575,9615,9774,2888,179],(function(){return r=96349,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.