(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10],{7629:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/get-quotes-new",function(){return t(9624)}])},1527:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=t(5893),a=t(3801);function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){s(e,r,t[r])}))}return e}function i(e){var r=e.name,t=e.label,s=e.register,i=e.errors,l=e.className;return(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("input",o({type:"checkbox",id:r},s(r),{className:"border-none cursor-pointer rounded-sm text-orange-550 focus:ring-0 focus:outline-none focus:ring-offset-0 ".concat(l||"bg-gray-100 dark:bg-gray-800")})),(0,n.jsx)("label",{htmlFor:r,className:"font-normal cursor-pointer",children:t}),i&&(0,n.jsxs)("span",{className:"flex gap-1 text-sm font-medium text-red-600",children:[(0,n.jsx)(a.$Ow,{className:"text-red-600"}),i.message]})]})}},8096:function(e,r,t){"use strict";t.d(r,{S:function(){return c}});var n=t(5893),a=t(3042),s=(t(680),t(5227)),o=t.n(s),i=t(2965),l=t.n(i);t(4331);(0,a.fo)(o(),l());var c=function(e){var r=e.files,t=e.setFiles;return(0,n.jsx)(a.Q9,{files:r,allowReorder:!0,allowMultiple:!0,name:"files",onupdatefiles:function(e){t(e)},onerror:function(e,r){console.log(e,r)},maxFiles:5,labelIdle:'Drag & drop your files or <span class="font-medium text-orange-550 cursor-pointer transition-colors hover:text-orange-700 dark:hover:text-orange-400">browse</span>',className:"rounded bg-gray-100 dark:bg-gray-800"})}},9662:function(e,r,t){"use strict";t.d(r,{Z:function(){return s}});var n=t(5893),a=t(428);function s(e){var r=e.label,t=e.isSubmitting,s=e.disable,o=e.event;return(0,n.jsxs)("button",{type:"submit",disabled:t||s,className:"btn-primary place-self-end",onClick:function(){o&&a.H.track(o,{source:"CarFix Website"})},children:[t&&(0,n.jsx)("div",{className:"w-3.5 h-3.5 border-2 rounded-full border-l-orange-100 dark:border-l-orange-900 border-r-orange-100 dark:border-r-orange-900 border-b-orange-100 dark:border-b-orange-900 border-t-white dark:border-t-gray-800 animate-spin"}),r]})}},1843:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=t(5893),a=t(3801);function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){s(e,r,t[r])}))}return e}function i(e){var r=e.name,t=e.label,s=e.placeholder,i=e.register,l=e.errors,c=e.srOnly,u=e.className;return(0,n.jsxs)("div",{className:"flex flex-col flex-1 gap-2 transition-colors",children:[(0,n.jsx)("label",{htmlFor:r,className:c?"sr-only":"",children:t}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",o({placeholder:s},i(r),{className:"w-full px-3 py-2 text-gray-800 placeholder-gray-500 transition-colors rounded dark:text-gray-100 dark:placeholder-gray-400 focus:outline-none focus:ring-1 focus:ring-orange-550 ".concat(u||"bg-gray-100 dark:bg-gray-800"),autoComplete:"off"})),l&&(0,n.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-end pb-2 pr-3 pointer-events-none",children:(0,n.jsx)(a.$Ow,{className:"text-red-600"})})]}),l&&(0,n.jsx)("span",{className:"text-sm text-red-600",children:l.message})]})}},6846:function(e,r,t){"use strict";t.d(r,{Z:function(){return c}});var n=t(5893),a=t(3801),s=t(1958);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){o(e,r,t[r])}))}return e}function l(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,a=!1,s=void 0;try{for(var o,i=e[Symbol.iterator]();!(n=(o=i.next()).done)&&(t.push(o.value),!r||t.length!==r);n=!0);}catch(l){a=!0,s=l}finally{try{n||null==i.return||i.return()}finally{if(a)throw s}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(e){var r=e.name,t=e.label,o=e.placeholder,c=e.register,u=e.errors,d=e.onFocus,m=e.onBlur,f=e.srOnly,p=e.className,g=l((0,s.Z)(),2),h=g[0],x=g[1];return(0,n.jsxs)("div",{className:"flex flex-col flex-1 gap-1 transition-colors",children:[(0,n.jsx)("label",{htmlFor:r,className:f?"sr-only":"",children:t}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",i({placeholder:o},c(r),{onFocus:d,onBlur:m,autoComplete:"off",type:h?"text":"password",className:"w-full px-3 py-2 text-gray-800 placeholder-gray-500 transition-colors border-none rounded dark:text-gray-100 dark:placeholder-gray-400 focus:outline-none focus:ring-1 focus:ring-orange-550 ".concat(p||"bg-gray-100 dark:bg-gray-800")})),(0,n.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-end pb-2 pr-3",children:u?(0,n.jsx)(a.$Ow,{className:"text-red-600"}):h?(0,n.jsx)(a.tEF,{onClick:x,className:"clickable"}):(0,n.jsx)(a.Xl7,{onClick:x,className:"clickable"})})]}),u&&(0,n.jsx)("span",{className:"text-sm text-red-600",children:u.message})]})}},7145:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=t(5893),a=t(3801);function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){s(e,r,t[r])}))}return e}function i(e){var r=e.name,t=e.label,s=e.placeholder,i=e.register,l=e.errors,c=(e.className,e.srOnly);return(0,n.jsxs)("div",{className:"flex flex-col flex-1 gap-1 transition-colors",children:[(0,n.jsx)("label",{htmlFor:r,className:c?"sr-only":"",children:t}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("textarea",o({placeholder:s},i(r),{className:"w-full h-24 px-3 py-2 text-gray-800 placeholder-gray-500 transition-colors bg-gray-100 border-none rounded resize-none dark:text-gray-100 dark:placeholder-gray-400 focus:outline-none focus:ring-1 focus:ring-orange-550 dark:bg-gray-800"})),l&&(0,n.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-end pb-4 pr-3 pointer-events-none",children:(0,n.jsx)(a.$Ow,{className:"text-red-600 "})})]}),l&&(0,n.jsx)("p",{className:"text-sm font-medium text-red-600",children:l.message})]})}},9624:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return T}});var n=t(8520),a=t.n(n),s=t(5893),o=t(3801),i=t(1664),l=t(1527),c=t(8096),u=t(9662),d=t(9196),m=t(8346),f=t(7294),p=t(8100);function g(e){var r=e.toggleSuccess,t=(0,p.D3)().loginWithRedirect;return(0,s.jsx)(d.u,{appear:!0,show:!0,as:f.Fragment,children:(0,s.jsx)(m.V,{open:!0,onClose:r,className:"fixed inset-0 z-10 overflow-y-auto",children:(0,s.jsxs)("div",{className:"flex min-h-screen items-center justify-center",children:[(0,s.jsx)(d.u.Child,{as:f.Fragment,enter:"transition-opacity",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(m.V.Overlay,{className:"fixed inset-0 bg-black opacity-30"})}),(0,s.jsx)(d.u.Child,{as:f.Fragment,enter:"transition-opacity",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsxs)("article",{className:"z-10 flex w-full max-w-lg flex-col items-start gap-4 bg-white p-6 dark:bg-gray-900 sm:rounded",children:[(0,s.jsxs)(m.V.Title,{as:"h5",className:"flex items-center gap-2 text-lg font-medium text-gray-700 dark:text-gray-200",children:[(0,s.jsx)(o.js$,{className:"h-7 w-7 text-orange-550"}),"Your request has been submitted successfully!"]}),(0,s.jsx)(m.V.Description,{as:"p",children:"Good quotes take time. We'll contact you within 24 hours via email and Whatsapp, and you can then log in to view your quotes. Meanwhile, try logging in to your new account!"}),(0,s.jsxs)("button",{onClick:t,className:"btn-primary",children:["Got it, proceed to log in",(0,s.jsx)(o.M8z,{})]})]})})]})})})}var h=t(1843),x=t(6846),b=t(9669),y=t.n(b),j=t(7536),v=t(821),w=t(1958),N=t(5496),k=t(428),O=t(6975),S=t(9008),P=t(2056),q=t(7145);function Z(e,r,t,n,a,s,o){try{var i=e[s](o),l=i.value}catch(c){return void t(c)}i.done?r(l):Promise.resolve(l).then(n,a)}function $(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){$(e,r,t[r])}))}return e}function C(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++)t=s[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)t=s[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function E(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,a=!1,s=void 0;try{for(var o,i=e[Symbol.iterator]();!(n=(o=i.next()).done)&&(t.push(o.value),!r||t.length!==r);n=!0);}catch(l){a=!0,s=l}finally{try{n||null==i.return||i.return()}finally{if(a)throw s}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function A(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var F=t(7258);t(9620)(F);var M=function(e){return y().get(e).then((function(e){return e.data}))},I=function(){var e=Array.prototype.slice.call(document.querySelectorAll('input[type="checkbox"]'));return e.filter((function(e){return"terms"!=e.name})).some((function(e){return e.checked}))&&e.filter((function(e){return"terms"==e.name})).some((function(e){return e.checked}))},R=["Central","East","North","North-East","West"];function T(){(0,f.useEffect)((function(){k.H.track("Get Quotes Page",{source:"Carfix Website"})}),[]);var e,r=(0,v.ZP)("".concat("https://api.carfixsg.co","/api/services"),M).data,t=(0,f.useState)([]),n=t[0],d=t[1],m=(0,j.cI)({mode:"onBlur",resolver:(0,N.X)(F.object().shape({make:F.string().matches(/^[aA-zZ\s]+$/,"Only alphabets are allowed").required("Required"),model:F.string().required("Required"),modelYear:F.number().typeError("Must be a number").required("Required").moreThan(1990,"Must be after ${more}").lessThan(2100,"Must be before ${less}").integer("Must be a whole number"),colour:F.string().matches(/^[aA-zZ\s]+$/,"Only alphabets are allowed").required("Required"),licensePlate:F.string().max(8,"Maximum ${max} characters").required("Required"),firstName:F.string().matches(/^[aA-zZ\s]+$/,"Only alphabets are allowed").required("Required"),phoneNumber:F.string().matches(/^[0-9]*$/,"Only numbers allowed").test("len","Must be exactly 8 digits",(function(e){return 8==(null===e||void 0===e?void 0:e.length)})).required("Required"),email:F.string().email("Invalid email").required("Required"),password:F.string().password().minSymbols(0).required("Required")}))}),p=m.register,b=m.watch,$=m.handleSubmit,T=m.formState,z=T.errors,D=T.isSubmitting,W=E((0,w.Z)(),2),G=W[0],Y=W[1],L=b(),B=(e=a().mark((function e(t){var s,o,i,l,c,u,d,m,f,p,g,h,x,b,j,v,w;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.firstName,o=t.phoneNumber,i=t.email,l=t.password,c=t.make,u=t.model,d=t.modelYear,m=t.colour,f=t.licensePlate,t.terms,p=C(t,["firstName","phoneNumber","email","password","make","model","modelYear","colour","licensePlate","terms"]),e.prev=1,k.H.track("Sign Up and Create Request",{source:"Carfix Website"}),e.next=5,y().post("".concat("https://api.carfixsg.co","/api/users"),{firstName:s,email:i,phoneNumber:o,password:l,locationPreference:U});case 5:return g=e.sent,e.next=8,y().post("".concat("https://api.carfixsg.co","/api/cars"),{userId:g.data._id,make:c,model:u,modelYear:d,colour:m,licensePlate:f});case 8:if(h=e.sent,!(n.length>0)){e.next=24;break}return x=new FormData,n.forEach((function(e){x.append("images",e.file)})),e.next=14,y().post("".concat("https://api.carfixsg.co","/api/files/multiple"),x,{headers:{"Content-Type":"multipart/form-data"}});case 14:return b=e.sent,e.next=17,y().post("".concat("https://api.carfixsg.co","/api/requests"),{carId:h.data._id,services:Array.from(document.querySelectorAll('input[type="checkbox"]')).filter((function(e){return e.checked&&"terms"!==e.name&&!R.includes(e.name)})).map((function(e){return{_id:e.name,name:r.find((function(r){return r._id===e.name})).name,description:Object.entries(p).filter((function(r){return r[0].includes(e.name)&&r[0].includes("description")})).map((function(e){return e[1]}))[0]||""}})),images:b.data.fileNames});case 17:return j=e.sent,e.next=20,y().post("".concat("https://api.carfixsg.co","/api/twilio/request"),{requestId:j.data._id});case 20:e.sent,Y(),e.next=31;break;case 24:return e.next=26,y().post("".concat("https://api.carfixsg.co","/api/requests"),{carId:h.data._id,services:Array.from(document.querySelectorAll('input[type="checkbox"]')).filter((function(e){return e.checked&&"terms"!=e.name&&!R.includes(e.name)})).map((function(e){return{_id:e.name,name:r.find((function(r){return r._id===e.name})).name,description:Object.entries(p).filter((function(r){return r[0].includes(e.name)&&r[0].includes("description")})).map((function(e){return e[1]}))[0]}}))});case 26:return v=e.sent,e.next=29,y().post("".concat("https://api.carfixsg.co","/api/twilio/request"),{requestId:v.data._id});case 29:e.sent,Y();case 31:e.next=38;break;case 33:e.prev=33,e.t0=e.catch(1),w="An error occurred",a=e.t0,(null!=(N=Error)&&"undefined"!==typeof Symbol&&N[Symbol.hasInstance]?N[Symbol.hasInstance](a):a instanceof N)&&(w=e.t0.message),alert(w);case 38:case"end":return e.stop()}var a,N}),e,null,[[1,33]])})),function(){var r=this,t=arguments;return new Promise((function(n,a){var s=e.apply(r,t);function o(e){Z(s,n,a,o,i,"next",e)}function i(e){Z(s,n,a,o,i,"throw",e)}o(void 0)}))}),H=(0,f.useState)([]),U=H[0],V=H[1];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.default,{children:(0,s.jsx)("title",{children:"Get Quotes"})}),(0,s.jsx)(P.Z,{}),(0,s.jsx)("main",{className:"mx-auto max-w-3xl p-6 sm:p-8",children:(0,s.jsxs)("form",{onSubmit:$(B),className:"flex flex-col gap-6",children:[(0,s.jsx)("h4",{children:"Get Quotes"}),(0,s.jsx)("p",{children:"Let us know the details of your servicing needs, and we'll get back to you with quotes within 24 hours!"}),(0,s.jsxs)("h5",{className:"flex items-center gap-2 text-orange-550 dark:text-orange-550",children:[(0,s.jsx)(o.CE5,{}),"Car Details"]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row",children:[(0,s.jsx)(h.Z,{name:"make",label:"Make",placeholder:"e.g. Honda",register:p,errors:z.make}),(0,s.jsx)(h.Z,{name:"model",label:"Model",placeholder:"e.g. Vezel",register:p,errors:z.model})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row",children:[(0,s.jsx)(h.Z,{name:"modelYear",label:"Model Year",register:p,errors:z.modelYear}),(0,s.jsx)(h.Z,{name:"colour",label:"Colour",register:p,errors:z.colour})]}),(0,s.jsx)(h.Z,{name:"licensePlate",label:"License Plate",register:p,errors:z.licensePlate}),(0,s.jsxs)("h5",{className:"flex items-center gap-2 text-orange-550 dark:text-orange-550",children:[(0,s.jsx)(o.IEm,{}),"Select Services"]}),(0,s.jsx)("span",{className:"secondary",children:"Select all that apply. At least one service must be selected."}),null===r||void 0===r?void 0:r.sort((function(e,r){return e.name.localeCompare(r.name)})).map((function(e){return(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(l.Z,{name:e._id,label:e.name,register:p,errors:z[e._id]}),L[e._id]&&(0,s.jsx)(q.Z,{name:"".concat(e._id,"-description"),label:"Service Description",srOnly:!0,placeholder:"Please describe the issue.",register:p,errors:z["".concat(e._id,"-description")]})]},e._id)})),(0,s.jsxs)("h5",{className:"flex items-center gap-2 text-orange-550 dark:text-orange-550",children:[(0,s.jsx)(o.rG2,{}),"Upload Images"]}),(0,s.jsx)("span",{className:"secondary",children:"Optional. Maximum of 5 images. Please provide both close-up and long shots if possible."}),(0,s.jsx)(c.S,{files:n,setFiles:d}),(0,s.jsx)("label",{children:"Workshop Location Preference"}),R.map((function(e){return(0,s.jsxs)("label",{htmlFor:e,className:"flex items-center gap-3 font-normal",children:[(0,s.jsx)("input",{type:"checkbox",name:e,checked:null===U||void 0===U?void 0:U.includes(e),onChange:function(r){return(null===U||void 0===U?void 0:U.includes(e))?V(null===U||void 0===U?void 0:U.filter((function(r){return r!=e}))):V(A(U).concat([e]))},className:"cursor-pointer rounded-sm border-none bg-gray-100 text-orange-550 focus:outline-none focus:ring-0 focus:ring-offset-0 dark:bg-gray-800"}),e]},e)})),(0,s.jsxs)("h5",{className:"flex items-center gap-2 text-orange-550 dark:text-orange-550",children:[(0,s.jsx)(o.tBG,{}),"Create Account"]}),(0,s.jsx)("p",{children:"By making an account, you'll be able to:"}),(0,s.jsxs)("h6",{className:"flex items-center gap-2 font-medium text-gray-700 dark:text-gray-200",children:[(0,s.jsx)(o.js$,{className:"h-5 w-5 text-orange-550"}),"Get notifications once your quotes are ready"]}),(0,s.jsxs)("h6",{className:"flex items-center gap-2 font-medium text-gray-700 dark:text-gray-200",children:[(0,s.jsx)(o.js$,{className:"h-5 w-5 text-orange-550"}),"Book workshop appointment"]}),(0,s.jsxs)("h6",{className:"flex items-center gap-2 font-medium text-gray-700 dark:text-gray-200",children:[(0,s.jsx)(o.js$,{className:"h-5 w-5 text-orange-550"}),"Log your servicing history"]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row",children:[(0,s.jsx)(h.Z,{name:"firstName",label:"First Name",register:p,errors:z.firstName}),(0,s.jsx)(h.Z,{name:"phoneNumber",label:"Phone Number",register:p,errors:z.phoneNumber})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row",children:[(0,s.jsx)(h.Z,{name:"email",label:"Email Address",register:p,errors:z.email}),(0,s.jsx)(x.Z,{name:"password",label:"Password",register:p,errors:z.password})]}),(0,s.jsxs)("div",{className:"flex cursor-pointer items-center gap-3 rounded bg-gray-100 p-6 dark:bg-gray-800",children:[(0,s.jsx)("input",_({type:"checkbox"},p("terms"),{className:"cursor-pointer rounded-sm border-none bg-gray-200 text-orange-550 focus:outline-none focus:ring-0 focus:ring-offset-0 dark:bg-gray-700"})),(0,s.jsxs)("label",{htmlFor:"terms",className:"font-normal",children:["I agree with Carfix's"," ",(0,s.jsx)(i.default,{passHref:!0,href:"/terms-and-conditions",children:(0,s.jsx)("a",{target:"_blank",className:"transition-color text-orange-550 hover:text-orange-600",children:"terms and conditions"})})," ","and"," ",(0,s.jsx)(i.default,{passHref:!0,href:"/privacy-policy",children:(0,s.jsx)("a",{target:"_blank",className:"transition-color text-orange-550 hover:text-orange-600",children:"privacy policy"})}),"."]})]}),(0,s.jsx)(u.Z,{label:"Confirm",isSubmitting:D,disable:!I()})]})}),(0,s.jsx)(O.Z,{}),G&&(0,s.jsx)(g,{toggleSuccess:Y})]})}},1958:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var n=t(7294);function a(e){var r=void 0!==e&&e,t=(0,n.useState)(r),a=t[0],s=t[1];return[a,(0,n.useCallback)((function(){s((function(e){return!e}))}),[])]}},9620:function(e){"use strict";const r=function(e,r){return 1===r?e:`${e}s`},t=function(e){return null===e||void 0===e};function n(e=1,n){const a=n||"${path} must contain at least ${length} lowercase "+r("letter",e);return this.test({name:"minLowercase",exclusive:!0,message:a,params:{length:e},test:r=>t(r)||(r.match(/[a-z]/g)||[]).length>=e})}function a(e=1,n){const a=n||"${path} must contain at least ${length} uppercase "+r("letter",e);return this.test({name:"minUppercase",exclusive:!0,message:a,params:{length:e},test:r=>t(r)||(r.match(/[A-Z]/g)||[]).length>=e})}function s(e=1,n){const a=n||"${path} must contain at least ${length} "+r("number",e);return this.test({name:"minNumber",exclusive:!0,message:a,params:{length:e},test:r=>t(r)||(r.match(/[0-9]/g)||[]).length>=e})}function o(e=1,n){const a=n||"${path} must contain at least ${length} "+r("symbol",e);return this.test({name:"minSymbol",exclusive:!0,message:a,params:{length:e},test:r=>t(r)||(r.match(/[^a-zA-Z0-9\s]/g)||[]).length>=e})}function i(e=2,n){const a=n||"${path} must not contain sequences of more than ${length} repeated "+r("character",e);return this.test({name:"minRepeating",exclusive:!0,message:a,params:{length:e},test:r=>t(r)||!new RegExp(`(.)\\1{${e},}`).test(r)})}function l(e=2,n){const a=n||"${path} must contain at least ${length} "+r("word",e),s=new RegExp("[a-zA-Z0-9]");return this.test({name:"minWords",exclusive:!0,message:a,params:{length:e},test:r=>t(r)||r.split(" ").filter((e=>!!e&&s.test(e))).length>=e})}function c(){return this.min(8).max(250).minLowercase(1).minUppercase(1).minNumbers(1).minSymbols(1)}e.exports=function(e){e.addMethod(e.string,"minLowercase",n),e.addMethod(e.string,"minUppercase",a),e.addMethod(e.string,"minNumber",s),e.addMethod(e.string,"minNumbers",s),e.addMethod(e.string,"minSymbol",o),e.addMethod(e.string,"minSymbols",o),e.addMethod(e.string,"minRepeating",i),e.addMethod(e.string,"minWords",l),e.addMethod(e.string,"password",c)}}},function(e){e.O(0,[806,719,761,669,536,36,955,91,774,888,179],(function(){return r=7629,e(e.s=r);var r}));var r=e.O();_N_E=r}]);