1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[972],{897:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/online-meeting-form",function(){return s(5934)}])},5934:function(e,i,s){"use strict";s.r(i),s.d(i,{__N_SSP:function(){return u},default:function(){return m}});var t=s(5893),n=s(9326),r=s(1163),o=s(7294),a=s(7536),l=s(5531),c=s(3143);function h(){var e,i;let{register:s,formState:{errors:h},handleSubmit:d,setValue:u,watch:m,setError:g}=(0,a.cI)({mode:"onChange"}),p=(0,r.useRouter)();m("organiser","");let x=async e=>{try{let i=await fetch("/api/submission/onlineMeeting",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e})});200===i.status&&p.push("/submission-success")}catch(e){g("root.serverError",{message:"Form failed to submit, please try again later"})}},{onChange:f,...j}=s("featuredImage",{required:"This is required"}),[w,b]=(0,o.useState)("This 60-minute Zoom meeting provides an overview of living with Parkinsonâs and how you can start to manage the condition. The meeting is suitable for people recently diagnosed with Parkinsonâs. The meeting is run by people living with Parkinsonâs. and the number of people in each meeting will be limited to allow everyone time to ask questions throughout the hour. Family and friends are welcome too."),[v,y]=(0,o.useState)(!1);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(c.l0,{onSubmit:d(x),children:[(0,t.jsxs)(c.rF,{children:[(0,t.jsx)("label",{children:"Title *"}),h.title&&(0,t.jsx)(c.Bc,{children:h.title.message}),(0,t.jsxs)(c.ih,{as:"select",className:"input",...s("title",{required:"This is required",maxLength:80}),onChange:e=>{switch(e.target.value){case"Introduction to living well with Parkinson&apos's":b("This 60-minute Zoom meeting provides an overview of living with Parkinsonâs and how you can start to manage the condition. The meeting is suitable for people recently diagnosed with Parkinsonâs. The meeting is run by people living with Parkinsonâs. and the number of people in each meeting will be limited to allow everyone time to ask questions throughout the hour. Family and friends are welcome too."),y(!1);break;case"Informal Meeting":b("These informal 60-minute Zoom meetings offer the opportunity for people affected by Parkinsonâs to talk to others in the same situation. The meetings are hosted by volunteers affected by Parkinsonâs, and there will be a topic chosen to start each meeting. Some meetings will be for specific groups, such as newly diagnosed or working age. The number of people in each meeting will be limited to allow everyone to contribute to the discussion, if they wish. Family and friends are welcome too."),y(!0);break;default:b("")}},children:[(0,t.jsx)("option",{value:"Introduction to living well with Parkinsonâs",children:"Introduction to living well with Parkinsonâs"}),(0,t.jsx)("option",{value:"Informal Meeting",children:"Informal Meeting"})]})]}),(0,t.jsxs)(c.rF,{children:[(0,t.jsx)("label",{children:"Target Audience *"}),h.targetAudience&&(0,t.jsx)(c.Bc,{children:h.targetAudience.message}),(0,t.jsx)(c.ih,{className:"input",as:"select",...s("targetAudience",{required:"This is required",maxLength:80}),children:(0,t.jsx)(l.T,{})})]}),(0,t.jsxs)(c.rF,{children:[(0,t.jsx)("label",{children:"Date & Time *"}),h.dateTime&&(0,t.jsx)(c.Bc,{children:h.dateTime.message}),(0,t.jsx)(c.yt,{className:"input",type:"datetime-local",...s("dateTime",{required:"This is required",maxLength:80})})]}),v&&(0,t.jsxs)(c.rF,{className:"description",children:[(0,t.jsx)("label",{children:"Topic Of Discussion"}),h.topic&&(0,t.jsx)(c.Bc,{children:h.topic.message}),(0,t.jsx)(c.ld,{className:"input",as:"textarea",rows:5,...s("topic",{maxLength:2e3})})]}),(0,t.jsxs)(c.rF,{className:"description",children:[(0,t.jsx)("label",{children:"Description"}),h.description&&(0,t.jsx)(c.Bc,{children:h.description.message}),(0,t.jsx)(c.ld,{className:"input",as:"textarea",rows:5,value:w,...s("description",{maxLength:2e3}),onChange:e=>{b(e.target.value)}})]}),(0,t.jsxs)(c.rF,{children:[(0,t.jsx)("label",{children:"Speaker/Host *"}),h.speakerHost&&(0,t.jsx)(c.Bc,{children:h.speakerHost.message}),(0,t.jsx)(c.yt,{className:"input",placeholder:"John Doe",...s("speakerHost",{required:"This is required",maxLength:80})})]}),(0,t.jsxs)(c.rF,{children:[(0,t.jsx)("label",{children:"Submitter Name *"}),h.submitterName&&(0,t.jsx)(c.Bc,{children:h.submitterName.message}),(0,t.jsx)(c.yt,{className:"input",placeholder:"John Doe",...s("submitterName",{required:"This is required",maxLength:80})})]}),(0,t.jsx)(c.rF,{className:"submit",children:(0,t.jsxs)(c.og,{children:[(null===(e=h.root)||void 0===e?void 0:e.serverError)&&(0,t.jsx)(c.kE,{children:null===(i=h.root)||void 0===i?void 0:i.serverError.message}),(0,t.jsx)(n.zx,{fillStyle:"secondary",type:"submit",children:"Submit"})]})})]})})}var d=s(5912),u=!0;function m(){return(0,t.jsx)(d.L,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{children:"Online Meeting Form"}),(0,t.jsx)(h,{})]})})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=897)}),_N_E=e.O()}]);
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.