1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[437],{2837:function(e,t,i){"use strict";i.d(t,{Z:function(){return o}});var n=i(6700),a=i(9785),r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function o(e,t,i){(0,a.Z)(2,arguments);var o,l=function(e,t){return(0,a.Z)(2,arguments),(0,n.Z)(e).getTime()-(0,n.Z)(t).getTime()}(e,t)/36e5;return((o=null==i?void 0:i.roundingMethod)?r[o]:r.trunc)(l)}},1954:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/workshop/[slug]",function(){return i(7136)}])},7136:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return S},default:function(){return I}});var n=i(3235),a=i(2903),r=i(8586),o=i(8165),l=i(9097),c=i.n(l),s=i(8070),d=i(4217),m=i(3602),h=i(2463),p=i(7388),u=i(2837),f=i(8978),g=i(2784),v=i(3176),Z=i(9805),b=i(4287),y=i(5804);function N(){let e=(0,n._)(["\n margin-right: 0.5rem;\n "]);return N=function(){return e},e}function _(){let e=(0,n._)(["\n width: 100%;\n position: relative;\n margin: 2rem 0 1rem 0;\n "]);return _=function(){return e},e}function w(){let e=(0,n._)(["\n position: absolute;\n cursor: pointer;\n right: 0;\n "]);return w=function(){return e},e}function B(){let e=(0,n._)(["\n font-size: 1.2rem;\n line-height: 1.5;\n margin: 0.5rem 0;\n "]);return B=function(){return e},e}function k(){let e=(0,n._)(["\n margin: 1rem 0 0 0;\n "]);return k=function(){return e},e}let x={contact_is_first_participant:!0,participants:[{name:"",email:"",designation:"",tel:""}],contact:{name:"",email:"",designation:"",company_name:"",company_address:"",company_reg_no:"",tel:""},event_date:""},X={name:"",email:"",designation:"",company_name:"",company_address:"",tel:""};var S=!0;function I(e){var t,i,n;let{workshop:l}=e,S=(0,r.u)(),[I,E]=(0,g.useState)(!1),C=(0,g.useRef)(),P=null===(t=l.schedule)||void 0===t?void 0:t.map(e=>{let{start_time:t,end_time:i,venue:n}=e;return{start_time:new Date(t),end_time:new Date(i),venue:n}}).sort((e,t)=>(0,h.Z)(e.start_time,t.start_time));return(0,a.BX)(s.Ft,{children:[(0,a.tZ)(b.V,{title:l.name,description:l.summary}),(0,a.tZ)(s.cI,{links:[{url:"/",title:"Home"},{url:"/workshops-and-seminars",title:"Workshops and Seminars"},{title:l.name}]}),(0,a.BX)(s.uf,{children:[(0,a.BX)("div",{css:(0,o.iv)("display:grid;grid-template-columns:calc(75% - 2rem) calc(25% - 2rem);gap:4rem;",S.breakpoint.tablet,"{grid-template-columns:1fr;}"),children:[(0,a.tZ)("div",{className:"course-info",children:(0,a.BX)("div",{className:"course-title",css:(0,o.iv)("h1{color:",S.color.black,";text-transform:none;}"),children:[(0,a.tZ)("div",{children:(0,a.tZ)("h1",{children:l.name})}),(0,a.BX)("div",{className:"tags",css:(0,o.iv)("display:flex;column-gap:1rem;color:white;padding-top:1rem;> div{padding:0.5rem;font-weight:500;font-size:",S.fontSize.xxxs,";text-transform:uppercase;}.limited-seats{background:",S.color.red,";}.sdf-funding{background:",S.color.orange,";}.skillsfuture{background:",S.color.purple,";}"),children:[!0===l.limited_seats&&(0,a.tZ)("div",{className:"limited-seats",children:"Limited Seats"}),!0===l.sdf_funding&&(0,a.tZ)("div",{className:"sdf-funding",children:"SDF Funding Available"}),!0===l.skillsfuture_credit&&(0,a.tZ)("div",{className:"skillsfuture",children:"SkillsFuture Credit Available"})]}),(0,a.tZ)("hr",{}),(0,a.tZ)("div",{className:"portable-text",css:(0,o.iv)("font-size:",S.fontSize.lg,";"),children:(0,a.tZ)(d.YI,{value:l.detail})})]})}),(0,a.BX)("div",{className:"course-details-column",css:(0,o.iv)("display:flex;flex-direction:column;row-gap:2rem;h4{font-size:",S.fontSize.lg,";padding-bottom:0.2rem;line-height:1.5;}p{font-size:",S.fontSize.md,";line-height:1.3;}",S.breakpoint.tablet,"{flex-direction:row;column-gap:2rem;align-items:flex-start;}",S.breakpoint.mobile,"{flex-direction:column;}"),children:[(0,a.BX)("div",{className:"course-details",css:(0,o.iv)("display:grid;border:1px solid ",S.color.borderGrey,";padding:1rem;gap:2rem;.event-detail-label{display:flex;column-gap:1rem;align-items:flex-start;img{width:60px;height:auto;}}",S.breakpoint.mobile,"{grid-template-columns:1fr;}"),children:[(null==P?void 0:P.length)!==void 0&&P.length>0&&(0,a.BX)(a.HY,{children:[(0,a.BX)("div",{className:"event-detail-label",children:[(0,a.tZ)("img",{src:"/images/course/icon_event_calendar.jpg",alt:"Icon for Date"}),(0,a.BX)("div",{children:[(0,a.tZ)("h4",{children:"Date"}),(0,a.BX)("p",{children:[(null==P?void 0:P[0])&&(0,p.Z)(P[0].start_time,"EEEE, d MMM yyyy"),((null==P?void 0:P.length)||0)>1&&(0,a.BX)(a.HY,{children:[(0,a.tZ)("br",{}),(0,a.tZ)("a",{css:(0,o.iv)("color:",S.color.blue,";text-decoration:underline;"),onClick:e=>{e.preventDefault(),E(!0)},href:"#",children:"More"})]})]})]})]}),(0,a.BX)("div",{className:"event-detail-label",children:[(0,a.tZ)("img",{src:"/images/course/icon_event_clock.jpg",alt:"Icon for Time"}),(0,a.BX)("div",{children:[(0,a.tZ)("h4",{children:"Time"}),(0,a.tZ)("p",{children:(null==P?void 0:P[0].start_time)&&(null==P?void 0:P[0].end_time)&&"".concat((0,p.Z)(P[0].start_time,"hh:mm a")," - ").concat((0,p.Z)(P[0].end_time,"hh:mm a"))})]})]})]}),(0,a.BX)("div",{className:"event-detail-label",children:[(0,a.tZ)("img",{src:"/images/course/icon_cpe_hours.svg",alt:"Icon for CPE Hours"}),(0,a.BX)("div",{children:[(0,a.tZ)("h4",{children:"CPE Hours"}),(0,a.tZ)("p",{children:l.cpe_hours})]})]}),null!==l.venue&&(0,a.BX)("div",{className:"event-detail-label",children:[(0,a.tZ)("img",{src:"/images/course/icon_event_location.jpg",alt:"Icon for Location"}),(0,a.BX)("div",{children:[(0,a.tZ)("h4",{children:"Location"}),(0,a.tZ)("p",{children:(null==P?void 0:null===(i=P[0])||void 0===i?void 0:i.venue)||l.venue})]})]}),null!==l.cost&&(0,a.BX)("div",{className:"event-detail-label",children:[(0,a.tZ)("img",{src:"/images/course/icon_event_money.jpg",alt:"Icon for Cost"}),(0,a.BX)("div",{children:[(0,a.tZ)("h4",{children:"Cost"}),(0,a.tZ)("p",{children:l.cost})]})]}),null!==l.payment_method&&(0,a.BX)("div",{className:"event-detail-label",children:[(0,a.tZ)("img",{src:"/images/course/icon_payment.svg",alt:"Icon for Payment Method"}),(0,a.BX)("div",{children:[(0,a.tZ)("h4",{children:"Payment Methods"}),(0,a.tZ)("p",{children:l.payment_method})]})]})]}),null!==l.trainer?(0,a.BX)("div",{css:(0,o.iv)("display:block;h4{text-transform:uppercase;padding:0.5rem 0;}",S.breakpoint.tablet,"{h4{padding:0 0 1rem 0;line-height:1;}}",S.breakpoint.mobile,"{width:100%;padding-top:1rem;}"),children:[(0,a.tZ)("h4",{children:"Trainer"}),(0,a.tZ)("div",{css:(0,o.iv)("border:1px solid ",S.color.borderGrey,";"),children:(0,a.tZ)(c(),{href:"/trainer/".concat((null===(n=l.trainer.slug)||void 0===n?void 0:n.current)||"#"),className:"trainer",css:(0,o.iv)("height:100%;img{width:100%;object-fit:cover;}p{position:absolute;width:100%;bottom:0;color:white;padding:1rem;background:linear-gradient(\n rgba(0,0,0,0),rgba(0,0,0,1)\n );}"),children:(0,a.BX)("div",{css:(0,o.iv)("position:relative;"),children:[(0,a.tZ)("img",{src:l.trainer.photoUrl||"/images/trainee-male.jpg",alt:"Photo of ".concat(l.trainer.name)}
1),(0,a.tZ)("p",{children:l.trainer.name})]})})})]}):(0,a.tZ)(a.HY,{})]})]}),(0,a.BX)("div",{className:"registration-container",css:(0,o.iv)("width:80%;padding-top:5rem;p{font-size:",S.fontSize.lg,";}.action-links{color:",S.color.linkBlue,";}",S.breakpoint.tablet,"{width:100%;}"),children:[(null==P?void 0:P.length)!==void 0&&P.length>0&&(0,a.BX)("p",{children:["Register Online",null!==l.registration_form_url&&(0,a.BX)(a.HY,{children:[" ","or"," ",(0,a.tZ)(c(),{className:"action-links",href:l.registration_form_url,children:"Download the Registration Form"})," ","and email to"," ",(0,a.tZ)(c(),{className:"action-links",href:"mailto:[email protected]",children:"[email protected]"})]})]}),(null==P?void 0:P.length)!==void 0&&P.length>0&&(0,a.BX)("div",{className:"form-header",css:(0,o.iv)("width:100%;background:",S.color.lightBlue,";display:grid;grid-template-columns:repeat(4,calc(100% / 4 - 2rem));padding:3rem 1rem;column-gap:2rem;justify-content:center;margin-top:2rem;text-align:center;color:white;p{font-size:",S.fontSize.sm,";line-height:1.5;}img{width:50%;}",S.breakpoint.mobile,"{grid-template-columns:repeat(2,calc(100% / 2 - 2rem));row-gap:2rem;}"),children:[(0,a.BX)("div",{className:"step",children:[(0,a.tZ)("img",{src:"/images/course/step1.png",alt:"Icon for Step 1"}),(0,a.tZ)("p",{children:"Complete registration form below and submit."})]}),(0,a.BX)("div",{className:"step",children:[(0,a.tZ)("img",{src:"/images/course/step2.png",alt:"Icon for Step 2"}),(0,a.tZ)("p",{children:"Look out for confirmation email with soft copy invoice."})]}),(0,a.BX)("div",{className:"step",children:[(0,a.tZ)("img",{src:"/images/course/step3.png",alt:"Icon for Step 3"}),(0,a.tZ)("p",{children:"Remit payment by Paynow Corporate (UEN no. 200719590R), bank transfer, cheque or cash to TAKX Solutions Pte Ltd."})]}),(0,a.BX)("div",{className:"step",children:[(0,a.tZ)("img",{src:"/images/course/step4.png",alt:"Icon for Step 4"}),(0,a.tZ)("p",{children:"Look out for reminder email closer to workshop date."})]})]}),(0,a.tZ)("div",{className:"registration-form",css:(0,o.iv)("padding-top:0.2rem;"),children:(null==P?void 0:P.length)!==void 0&&P.length>0?(0,a.tZ)(m.J9,{initialValues:x,validationSchema:Z.$A,isInitialValid:!1,onSubmit:async(e,t)=>{try{var i,n;t.setStatus("");let a=null===(i=C.current)||void 0===i?void 0:i.getValue();if(!a){t.setStatus("no-captcha");return}let r=await fetch("/api/recaptcha",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:a})}),o=await r.json();!0===o.ok&&(!0===o.human?t.setStatus(""):(t.setStatus("redo-captcha"),null===(n=C.current)||void 0===n||n.reset()));let c=await fetch("/api/submit/event-registration",{method:"POST",body:JSON.stringify({event_date:e.event_date,participants:e.participants,contact:e.contact,workshop:l.name}),headers:{"Content-Type":"application/json"}}),s=await c.json();if(!0!==s.ok)throw Error("Form submission failed while sending API request");t.resetForm(),t.setStatus("success")}catch(e){alert("There was an issue with form registration. Please try again."),console.log(e)}},children:e=>{let{values:t,setValues:i,submitForm:n,status:r}=e;return(0,a.BX)(m.l0,{css:(0,o.iv)(".error{color:#ffd076;font-weight:700;}"),children:[(0,a.tZ)(y.RR,{}),(0,a.BX)("div",{className:"participant-details",css:(0,o.iv)("h5{font-size:",S.fontSize.lg,";text-transform:uppercase;background:",S.color.lightBlue,";padding:1.5rem 2rem;font-weight:400;color:white;}"),children:[(0,a.tZ)("h5",{children:"Workshop Date"}),(0,a.BX)("div",{css:(0,o.iv)("display:flex;flex-direction:column;row-gap:1.5rem;width:100%;color:white;background:",S.color.formBlue,";padding:2rem;label{font-weight:700;font-size:",S.fontSize.sm,";}.form-row{display:flex;flex-direction:row;column-gap:1rem;width:100%;padding:1rem 0;",S.breakpoint.mobile,"{flex-direction:column;row-gap:1rem;padding:1rem 0 0 0;}}.formInput{display:flex;flex-direction:column;row-gap:0.5rem;width:32rem;width:100%;}",S.breakpoint.mobile,"{flex-direction:column;align-items:flex-start;.formInput{width:100%;}}"),children:[P.map(e=>{let t="".concat((0,p.Z)(e.start_time,"EEEE, dd MMM yyyy, h:mm a")," - ").concat((0,p.Z)(e.end_time,"".concat((0,u.Z)(e.end_time,e.start_time)>=24?"EEEE, dd MMM yyyy ":"","h:mm a")));return(0,a.BX)("label",{children:[(0,a.tZ)(m.gN,{css:(0,o.iv)(N()),type:"radio",name:"event_date",value:t}),"\xa0",t]},e.start_time.getTime())}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"event_date"})})]})]}),(0,a.BX)("div",{className:"participant-details",css:(0,o.iv)("h5{font-size:",S.fontSize.lg,";text-transform:uppercase;background:",S.color.lightBlue,";padding:1.5rem 2rem;font-weight:400;color:white;}"),children:[(0,a.tZ)("h5",{children:"Participant Details"}),(0,a.BX)("div",{css:(0,o.iv)("display:flex;flex-direction:column;width:100%;column-gap:1.5rem;color:white;background:",S.color.formBlue,";padding:0 2rem 2rem 2rem;label{font-weight:700;font-size:",S.fontSize.sm,";}.form-row{display:flex;flex-direction:row;column-gap:1rem;width:100%;padding:1rem 0;",S.breakpoint.mobile,"{flex-direction:column;row-gap:1rem;padding:1rem 0 0 0;}}.formInput{display:flex;flex-direction:column;row-gap:0.5rem;width:32rem;width:100%;}.field{background:white;color:",S.color.black,";font-size:",S.fontSize.xs,";border:1px solid ",S.color.borderGrey,";padding:1rem;}",S.breakpoint.mobile,"{flex-direction:column;align-items:flex-start;.formInput{width:100%;}}"),children:[t.participants.map((e,n)=>(0,a.BX)("div",{className:"participant",css:(0,o.iv)(_()),children:[0!==n&&t.participants.length>1&&(0,a.tZ)(f.aHS,{size:20,onClick:()=>{i({...t,participants:t.participants.filter((e,t)=>
1n!==t)})},css:(0,o.iv)(w())}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"name",children:"Name (to be printed on Certificate)"}),(0,a.tZ)(m.gN,{className:"field",name:"participants.".concat(n,".name"),placeholder:"Name (to be printed on Certificate)"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"participants[".concat(n,"]['name']")})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"email",children:"Email"}),(0,a.tZ)(m.gN,{className:"field",name:"participants[".concat(n,"]['email']"),placeholder:"Email"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"participants[".concat(n,"]['email']")})})]})]}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"participants[".concat(n,"]['designation']"),children:"Designation"}),(0,a.tZ)(m.gN,{className:"field",name:"participants[".concat(n,"]['designation']"),placeholder:"Designation"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"participants[".concat(n,"]['designation']")})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{children:"Contact No."}),(0,a.tZ)(m.gN,{className:"field",name:"participants[".concat(n,"]['tel']"),placeholder:"Contact number"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"participants[".concat(n,"]['tel']")})})]})]})]},"form_participant_".concat(n))),(0,a.tZ)("div",{children:(0,a.tZ)(s.zx,{type:"button",css:(0,o.iv)("color:white;"),onClick:()=>{i({...t,participants:[...t.participants,{name:"",email:"",designation:"",tel:""}]},!1)},children:"+ Add Participant"})})]})]}),(0,a.BX)("div",{className:"contact-person",css:(0,o.iv)("h5{font-size:",S.fontSize.lg,";text-transform:uppercase;background:",S.color.lightBlue,";padding:1.5rem 2rem;font-weight:400;color:white;}"),children:[(0,a.tZ)("h5",{children:"Contact Person"}),(0,a.BX)("div",{css:(0,o.iv)("display:flex;flex-direction:column;row-gap:1.5rem;width:100%;column-gap:1.5rem;color:white;background:",S.color.formBlue,";padding:2rem;label{font-weight:700;font-size:",S.fontSize.sm,";}.form-row{display:flex;flex-direction:row;column-gap:1rem;width:100%;",S.breakpoint.mobile,"{flex-direction:column;row-gap:1rem;}}.formInput{display:flex;flex-direction:column;row-gap:0.5rem;width:32rem;width:100%;}.field{background:white;color:",S.color.black,";font-size:",S.fontSize.xs,";border:1px solid ",S.color.borderGrey,";padding:1rem;}",S.breakpoint.mobile,"{flex-direction:column;align-items:flex-start;.formInput{width:100%;}}p{font-size:",S.fontSize.xs,";line-height:1.5;padding:1rem 0;}"),children:[(0,a.tZ)("div",{className:"form-row",children:(0,a.BX)("label",{children:[(0,a.tZ)(m.gN,{type:"checkbox",name:"contact_is_first_participant",css:(0,o.iv)("margin-right:0.5rem;")}),"\xa0Same as",t.participants.length>1&&" first"," ","participant"]})}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"name",children:"Name"}),(0,a.tZ)(z,{className:"field",targetName:"name",name:"contact['name']",placeholder:"Name"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"contact['name']"})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"email",children:"Email"}),(0,a.tZ)(z,{className:"field",targetName:"email",name:"contact['email']",placeholder:"Email"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"contact['email']"})})]})]}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"name",children:"Company Name"}),(0,a.tZ)(m.gN,{className:"field",id:"company-name",name:"contact['company_name']",placeholder:"Company Name"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"contact['company_name']"})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"name",children:"Designation"}),(0,a.tZ)(z,{className:"field",targetName:"designation",id:"designation",name:"contact['designation']",placeholder:"Designation"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"contact['designation']"})})]})]}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"name",children:"Company Address"}),(0,a.tZ)(m.gN,{className:"field",id:"company-address",name:"contact['company_address']",placeholder:"Company Address"})]}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"contact['company_address']"})})]}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"name",children:"Company Registration No."}),(0,a.tZ)(m.gN,{className:"field",id:"company-reg",name:"contact['company_reg_no']",placeholder:"Company Registration No."}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"contact['company_reg_no']"})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"telephone",children:"Contact number"}),(0,a.tZ)(z,{className:"field",targetName:"tel",name:"contact['tel']",placeholder:"Contact Number"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"contact['tel']"})})]})]}),(0,a.tZ)("p",{children:"* Upon receipt of registration, any cancellation must be confirmed in writing, and will be subject to a 10% administrative charge. If notice of cancellation is received less than 5 working days before the course date, or if participant fails to show, participants will be invoiced for the full fee. However, substitutes will be allowed. TAKX Solutions Pte Ltd reserves the right to cancel/postpone the event or change the venue/date/time of the workshop in view of unforeseen circumstances. By clicking SUBMIT, you agree to our collection, use and/or disclosure of your personal data to the extent necessary to process your request and provide you with this service."}),(0,a.BX)("div",{children:[(0,a.tZ)(v.Z,{sitekey:"6LeigacmAAAAAL05bLFrxah2NDZHjpbgxA1xfvr3",ref:C}),(0,a.tZ)("div",{className:"error recaptcha-error",children:"no-captcha"===r?"Please check the box above":"redo-captcha"===r?"Please re-check the box above":""}),(0,a.tZ)(y.X7,{children:"Submit"}),(0,a.tZ)("div",{css:(0,o.iv)("margin-top:1rem;"),children:"success"===r&&"Form submitted successfully. Thank y
1ou."})]})]})]})]})}}):(0,a.tZ)(m.J9,{initialValues:X,isInitialValid:!1,validationSchema:Z.Wl,onSubmit:async(e,t)=>{try{var i,n;t.setStatus("");let a=null===(i=C.current)||void 0===i?void 0:i.getValue();if(!a){t.setStatus("no-captcha");return}let r=await fetch("/api/recaptcha",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:a})}),o=await r.json();!0===o.ok&&(!0===o.human?t.setStatus(""):(t.setStatus("redo-captcha"),null===(n=C.current)||void 0===n||n.reset()));let c=await fetch("/api/submit/event-interest",{method:"POST",body:JSON.stringify({...e,workshop:l.name}),headers:{"Content-Type":"application/json"}}),s=await c.json();if(!0!==s.ok)throw Error("Form submission failed while sending API request");t.resetForm(),t.setStatus("success")}catch(e){alert("There was an issue with form registration. Please try again."),console.log(e)}},children:e=>{let{status:t}=e;return(0,a.BX)(m.l0,{css:(0,o.iv)(".error{color:#ffd076;font-weight:700;}"),children:[(0,a.tZ)(y.RR,{}),(0,a.BX)("div",{className:"contact-person",css:(0,o.iv)("h5{font-size:",S.fontSize.lg,";text-transform:uppercase;background:",S.color.lightBlue,";padding:1.5rem 2rem;font-weight:400;color:white;}"),children:[(0,a.tZ)("h5",{children:"Register your interest today."}),(0,a.BX)("div",{css:(0,o.iv)("display:flex;flex-direction:column;row-gap:1.5rem;width:100%;column-gap:1.5rem;color:white;background:",S.color.formBlue,";padding:2rem;label{font-weight:700;font-size:",S.fontSize.sm,";}.form-row{display:flex;flex-direction:row;column-gap:1rem;width:100%;",S.breakpoint.mobile,"{flex-direction:column;row-gap:1rem;}}.formInput{display:flex;flex-direction:column;row-gap:0.5rem;width:32rem;width:100%;}.field{background:white;color:",S.color.black,";font-size:",S.fontSize.xs,";border:1px solid ",S.color.borderGrey,";padding:1rem;}",S.breakpoint.mobile,"{flex-direction:column;align-items:flex-start;.formInput{width:100%;}}p{font-size:",S.fontSize.xs,";line-height:1.5;padding:1rem 0;}"),children:[(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"name",children:"Name"}),(0,a.tZ)(m.gN,{className:"field",name:"name",id:"name",placeholder:"Name"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"name"})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"email",children:"Email"}),(0,a.tZ)(m.gN,{className:"field",name:"email",placeholder:"Email",id:"email"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"email"})})]})]}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"company_name",children:"Company Name"}),(0,a.tZ)(m.gN,{className:"field",id:"company_name",name:"company_name",placeholder:"Company Name"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"company_name"})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"designation",children:"Designation"}),(0,a.tZ)(m.gN,{className:"field",id:"designation",name:"designation",placeholder:"Designation"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"designation"})})]})]}),(0,a.BX)("div",{className:"form-row",children:[(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"company_address",children:"Company Address"}),(0,a.tZ)(m.gN,{className:"field",id:"company_address",name:"company_address",placeholder:"Company Address"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"company_address"})})]}),(0,a.BX)("div",{className:"formInput",children:[(0,a.tZ)("label",{htmlFor:"tel",children:"Contact number"}),(0,a.tZ)(m.gN,{className:"field",id:"tel",name:"tel",placeholder:"Contact number"}),(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(m.Bc,{name:"tel"})})]})]}),(0,a.BX)("div",{children:[(0,a.tZ)(v.Z,{sitekey:"6LeigacmAAAAAL05bLFrxah2NDZHjpbgxA1xfvr3",ref:C}),(0,a.tZ)("div",{className:"error recaptcha-error",children:"no-captcha"===t?"Please check the box above":"redo-captcha"===t?"Please re-check the box above":""}),(0,a.tZ)(y.X7,{children:"Submit"}),(0,a.tZ)("div",{css:(0,o.iv)("margin-top:1rem;"),children:"success"===t&&"Form submitted successfully. Thank y
1ou."})]})]})]})]})}})})]})]}),(0,a.tZ)("div",{className:"schedule-modal-overlay",css:(0,o.iv)("position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(10,10,10,0.45);overscroll-behavior:none;overflow:auto;display:",!0===I?"block":"none",";"),children:(0,a.BX)("div",{className:"schedule-modal",css:(0,o.iv)("position:absolute;transform:translate(-50%,-50%);max-width:90ch;top:50%;left:50%;width:100%;background:white;border:1px solid #cacaca;padding:3rem;align-items:flex-start;max-height:70vh;overflow-y:scroll;"),children:[(0,a.tZ)("div",{css:(0,o.iv)("display:flex;flex-direction:column;justify-content:center;"),children:(null==P?void 0:P.length)!==void 0&&P.map(e=>(0,a.BX)("div",{css:(0,o.iv)(B()),children:[(0,a.tZ)("strong",{children:"Date:"})," ",(0,p.Z)(e.start_time,"EEEE, d MMM yyyy h:mm a")," -"," ",(0,p.Z)(e.end_time,"".concat((0,u.Z)(e.end_time,e.start_time)>=24?"EEEE, dd MMM yyyy ":"","h:mm a")),(0,a.tZ)("br",{}),(0,a.tZ)("strong",{children:"Venue:"})," ",e.venue||l.venue,(0,a.tZ)("hr",{css:(0,o.iv)(k())})]},"".concat(e.start_time.getTime(),"-").concat(e.start_time.getTime())))}),(0,a.tZ)(s.zx,{onClick:()=>E(!1),css:(0,o.iv)("background:none;color:",S.color.lightGrey,";padding:0;margin:0;border:none;appearance:none;cursor:pointer;position:absolute;top:1rem;right:1rem;&:hover{color:",S.color.black,";border:none;appearance:none;}"),children:(0,a.tZ)(f.aHS,{size:20})})]})})]})}let z=e=>{let{values:t,setFieldValue:i}=(0,m.u6)(),n=e.targetName,r=t.participants[0][n];return(0,g.useEffect)(()=>{!0===t.contact_is_first_participant?i("contact['".concat(n,"']"),r,!0):i("contact['".concat(n,"']"),"",!0)},[t.contact_is_first_participant,i,n,r]),(0,a.tZ)(m.gN,{disabled:!0===t.contact_is_first_participant,...e})}},9805:function(e,t,i){"use strict";i.d(t,{$A:function(){return l},W0:function(){return r},Wl:function(){return c},Zo:function(){return o}});var n=i(8601);let a=/^[+-]?[\d\s]+$/,r=n.Ry().shape({name:n.Z_().required().min(2).label("Name"),email:n.Z_().email().required().label("Email")}),o=n.Ry().shape({name:n.Z_().required().min(2).label("Name"),email:n.Z_().email().required().label("Email"),designation:n.Z_().label("Designation"),company:n.Z_().label("Company"),tel:n.Z_().matches(a,"Phone number is not valid").label("Phone Number"),enquiry:n.Z_().required().label("Enquiry")}),l=n.Ry().shape({participants:n.IX().required().min(1).of(n.Ry().shape({name:n.Z_().required("Required field"),email:n.Z_().email("Invalid email"),designation:n.Z_(),tel:n.Z_()})),event_date:n.Z_().required("Please select one event date"),contact_is_first_participant:n.O7(),contact:n.Ry().shape({name:n.Z_().required("Required field"),email:n.Z_().email("Invalid email").required("Required field"),designation:n.Z_(),company_name:n.Z_(),company_address:n.Z_(),company_reg_no:n.Z_(),tel:n.Z_().matches(a,"Phone number is not valid").required("Required field")})}),c=n.Ry().shape({name:n.Z_().required("Required field"),email:n.Z_().email("Invalid email").required("Required field"),designation:n.Z_(),company_name:n.Z_(),company_address:n.Z_(),tel:n.Z_().matches(a,"Phone number is not valid").required("Required field")})},5804:function(e,t,i){"use strict";i.d(t,{RR:function(){return d},X7:function(){return m}});var n=i(2903),a=i(8165),r=i(3602),o=i(2784),l=i(8978),c=i(8070);let s=e=>{let t=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Object.keys(e).forEach(a=>{let r=e[a];if(!r)return;let o=i?"".concat(i,".").concat(a):a;"object"==typeof r?t(r,o,n):n.push(o)}),n};return t(e)},d=()=>{let{submitCount:e,isValid:t,errors:i}=(0,r.u6)();return(0,o.useEffect)(()=>{if(t)return;let e=s(i);if(e.length<=0)return;let n=document.querySelector("[name='".concat(e[0],"']"));console.log(e,n),n&&n.scrollIntoView({behavior:"smooth",block:"center"})},[e]),null},m=e=>{let{children:t}=e,{submitForm:i,isSubmitting:o,isValidating:l}=(0,r.u6)();return(0,n.BX)(c.zx,{onClick:()=>{i()},disabled:l||o,css:(0,a.iv)("margin-top:1.5rem;display:inline-flex;gap:0.5rem;align-items:center;"),children:[t,(l||o)&&(0,n.BX)(n.HY,{children:[" ",(0,n.tZ)(h,{})]})]})},h=()=>(0,n.tZ)("div",{css:(0,a.iv)("display:inline-block;svg{display:block;animation:spin 1s infinite linear;}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}"),children:(0,n.tZ)(l.fCD,{})})}},function(e){e.O(0,[525,400,97,809,567,217,790,774,888,179],function(){return e(e.s=1954)}),_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.