1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[971],{8908:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new",function(){return t(7703)}])},7703:function(e,n,t){"use strict";t.r(n);var r=t(7568),s=t(1799),a=t(603),o=t(7297),i=t(655),c=t(5893),u=(t(7294),t(1163)),l=t(8100),h=(t(8687),t(2505)),d=(t(6707),t(461)),f=t(2175),x=t(4231),m=(t(6829),t(8665)),g=t(911),p=t(8789),b=t(8872),Z=t(9249),w=t(5675),j=t.n(w),k=t(7298),v=t(9189);function _(){var e=(0,o.Z)(["\n margin: 0 auto;\n width: 100%;\n max-width: 400px;\n padding-top: 60px;\n min-height: calc(100vh - 60px);\n @media (max-width: 768px) {\n max-width: 100%;\n }\n "]);return _=function(){return e},e}function N(){var e=(0,o.Z)(["\n label {\n font-weight: 700;\n }\n "]);return N=function(){return e},e}n.default=function(){var e=(0,u.useRouter)(),n=(0,a.Z)((0,d.Z)(["fauna_token"]),3),t=(n[0],n[1],n[2],(0,k.Z)().createATodo),o=(0,v.Z)().getMe,w=(0,l.ZP)("getMe",(0,r.Z)((function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o()];case 1:return[2,e.sent()];case 2:return[2,e.sent()];case 3:return[2]}}
1))}))),y=w.data,C=w.error,T=x.Ry({task:x.Z_("Enter your task").required("Task is required")}),E=(0,f.TA)({initialValues:{task:""},validationSchema:T,onSubmit:function(){var n=(0,r.Z)((function(n){var r,a,o;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:r=(0,s.Z)({},n).task,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t(r,y.id,y.avatorURL)];case 2:return a=i.sent(),console.log(a),e.push("/"),[3,4];case 3:return o=i.sent(),console.error(o),[3,4];case 4:return[2]}}))}));return function(e){return n.apply(this,arguments)}}()});return C?(0,c.jsx)("p",{children:"something went wrong..."}):y?(0,c.jsx)(h.Z,{children:(0,c.jsx)(m.Z,{component:"section",className:(0,b.cx)((0,b.iv)(_())),children:(0,c.jsxs)(m.Z,{className:(0,b.cx)("bg-gradient-to-r from-gray-100 to-slate-100 shadow-2xl rounded-md"),children:[(0,c.jsx)(m.Z,{className:"flex flex-col justify-center items-center",children:(0,c.jsxs)(m.Z,{className:"bg-gradient-to-r from-blue-800 to-sky-500 w-full flex flex-col gap-1 items-center justify-center",children:[(0,c.jsx)(j(),{alt:"logo",src:"/assets/logo.png",width:120,height:120}),(0,c.jsx)(g.C,{component:"h2",className:"!text-2xl font-bold",children:"Create New Todo"})]})}),(0,c.jsx)(Z.Z,{}),(0,c.jsxs)(m.Z,{component:"form",onSubmit:E.handleSubmit,className:"p-2",children:[(0,c.jsx)(m.Z,{children:(0,c.jsx)(p.Z,{fullWidth:!0,id:"task",name:"task",label:"\u30bf\u30b9\u30af",autoFocus:!0,value:E.values.task,onChange:E.handleChange,error:E.touched.task&&Boolean(E.errors.task),helperText:E.touched.task&&E.errors.task,className:(0,b.iv)(N())})}),(0,c.jsx)(Z.Z,{}),(0,c.jsx)(m.Z,{className:"flex items-center justify-end",children:(0,c.jsx)("button",{type:"submit",className:(0,b.cx)("px-6 py-2 bg-blue-600 text-white rounded-lg","hover:bg-blue-700","outline-none focus-visible:ring-2 focus-visible:ring-black"),children:"Create"})})]})]})})}):(0,c.jsx)("p",{children:"Loading..."})}}},function(e){e.O(0,[790,665,222,505,162,774,888,179],(function(){return n=8908,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.