PageSourceSearch

https://www.manufacturingezyfind.co.za/_next/static/chunks/pages/register-74626cbc6e17af27.js

js manufacturingezyfind.co.za collected 2026-10-02 01:14:11 UTC 16,644 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5447,5787],{28872:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>L});var t=s(37876),a=s(97350),i=s(9135),l=s(57302),o=s(26417),n=s(27064),d=s(91408);let c=d.Ik({firstName:d.Yj().required("First Name is required"),lastName:d.Yj().required("Last Name is required"),email:d.Yj().email("Invalid email format").required("Email is required"),password:d.Yj().required("Password is required").min(6,"Password must be at least 6 characters"),confirmPassword:d.Yj().required("Confirm Password is required").oneOf([d.KR("password")],"Passwords must match"),contactNo:d.Yj().required("Mobile Number is required").matches(/^\d+$/,"Mobile Number must contain only digits").min(7,"Mobile Number must be at least 7 digits").max(15,"Mobile Number must be at most 15 digits"),provinceId:d.ai().required("Province is required"),cityId:d.ai().required("City is required"),suburbId:d.ai().required("Suburb is required"),agreeTerms:d.zM().oneOf([!0],"You must accept the terms and conditions").required("You must accept the terms and conditions")});var m=s(54431),u=s(78248),x=s(39593),b=s(14232),p=s(97460),h=s(11041),g=s(69241),N=s(67886),f=s(48230),v=s.n(f);let y={firstName:"",lastName:"",userName:"",email:"",contactNo:"",password:"",provinceId:void 0,cityId:void 0,suburbId:void 0,agreeTerms:!1};var w=s(65870),j=s(89848),I=s(11080),k=s(52018),A=s(89545),E=s(49948),P=s(45545),F=s.n(P),S=s(55447),_=s(57777),C=s(20550),R=s(77328),M=s.n(R),q=s(65364);let D=new(F())("your-secret-key"),L=()=>{var e,r,s,d,f,P;let[,F]=(0,E.lT)(["EzyFind_UID","EzyFind_Contract"]),{data:R,loading:L}=(0,m.IT)(o.m),[T,{data:z,loading:B}]=(0,u._)(l.a),[U,{data:V,loading:Y}]=(0,u._)(n.f),[O,W]=(0,b.useState)(null),X=(0,b.useRef)(null),[G,H]=(0,b.useState)(void 0),K=null!=(d=null==R||null==(e=R.getProvince)?void 0:e.result)?d:[],J=null!=(f=null==z||null==(r=z.getCityByProvince)?void 0:r.result)?f:[],Z=null!=(P=null==V||null==(s=V.getSuburbByCity)?void 0:s.result)?P:[],$=(0,b.useMemo)(()=>K.map(e=>({value:Number(e.provinceId),label:e.provinceName})),[K]),Q=(0,b.useMemo)(()=>J.map(e=>({value:Number(e.cityId),label:e.cityName})),[J]),ee=(0,b.useMemo)(()=>Z.map(e=>({value:Number(e.suburbId),label:e.suburbName})),[Z]),er=(0,x.Wx)({initialValues:y,validationSchema:c,onSubmit:async(e,r)=>{if(r.setSubmitting(!0),!1!==await k.y.emailCheck(e.email)){r.setSubmitting(!1),er.setFieldError("email","Email Address already exists");return}let s=await k.y.mobileCheck(e.contactNo);if(console.log("isEmailExists",s),!0!==s){r.setSubmitting(!1),er.setFieldError("contactNo","Mobile number already exists");return}try{let s=await k.y.registerUser({email:e.email,contactNo:e.contactNo,userName:"".concat(e.firstName," ").concat(e.lastName),firstName:e.firstName,lastName:e.lastName,password:e.password,track:1,provinceID:Number(e.provinceId),cityID:Number(e.cityId),suburbID:Number(e.suburbId),domainUrl:"2"},+("Unknown"===(0,w.e)()));if(r.setSubmitting(!1),null==s?void 0:s.token){var t,a,i;I.L.setLoggedUserDetail(s.token,s.tokenExpires,null!=(t=s.firstName)?t:"",null!=(a=s.lastName)?a:""),j.oR.success("Successfully registered!");let e=await k.y.getSession(1);if(null==e?void 0:e.sessionKeyLogin){let r={path:"/",expires:new Date(Date.now()+72e5),domain:null==(i=q.env.NEXT_PUBLIC_ROOT_URL)?void 0:i.replace("https://",".")};F("EzyFind_UID",D.encrypt(e.sessionKeyLogin),r),F("EzyFind_Contract",D.encrypt("Contract"),r),window.location.assign(A.K.DASHBOARD_URL)}else window.location.assign("/")}else j.oR.error("Registration failed.")}catch(e){console.log("An error occurred during registration:",e),r.setSubmitting(!1),j.oR.error("An error occurred during registration.")}}});return(0,b.useEffect)(()=>{let e=X.current;if(!e)return;let r=()=>{H(Math.floor(Math.max(220,Math.min(380,e.clientWidth))))};r();let s=new ResizeObserver(r);return s.observe(e),window.addEventListener("resize",r),()=>{s.disconnect(),window.removeEventListener("resize",r)}},[]),(0,b.useEffect)(()=>{0!==er.values.provinceId&&(T({variables:{id:er.values.provinceId}}),er.setFieldValue("cityId",0),er.setFieldValue("suburbId",0))},[er.values.provinceId]),(0,b.useEffect)(()=>{0!==er.values.cityId&&(U({variables:{id:er.values.cityId}}),er.setFieldValue("suburbId",0))},[er.values.cityId]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(M(),{children:[(0,t.jsx)("title",{children:"Register | EzyFind Manufacturing - List Your Industrial Business in South Africa"}),(0,t.jsx)("meta",{name:"title",content:"Register | EzyFind Manufacturing - List Your Industrial Business in South Africa"}),(0,t.jsx)("meta",{name:"description",content:"Create a free account on EzyFind Manufacturing. Register your manufacturing, engineering, mining or construction business on South Africa's leading B2B marketplace to generate leads, win tenders and grow your client base."}),(0,t.jsx)("meta",{name:"keywords",content:"register manufacturing business,industrial business registration,B2B marketplace south africa,list business south africa,manufacturing leads south africa,engineering business directory"})]}),(0,t.jsx)(a.A,{backgroundImage:"/images/register_banner.webp",title:"Register Individual"}),(0,t.jsx)("div",{className:"container",children:(0,t.jsx)(i.Z,{title:"Register Individual",className:"w-[95%] md:w-2xl mx-auto my-25",titleClassName:"uppercase text-xl sm:text-xl lg:text-xl xl:text-2xl font-medium text-white",children:(0,t.jsxs)("form",{onSubmit:er.handleSubmit,children:[(0,t.jsxs)("div",{className:"mb-5",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"First Name"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{...er.getFieldProps("firstName"),type:"text",placeholder:"Enter First Name",className:(0,g.A)("form-control text-sm w-full h-10 px-3 pr-10 xl:text-[14px] 2xl:text-md",er.touched.firstName&&er.errors.firstName?"border border-red-500":"border border-gray-300")}),(0,t.jsx)(p.g,{icon:h.X46,className:(0,g.A)("absolute top-1/2 right-4 transform -translate-y-1/2",er.touched.firstName&&er.errors.firstName?"text-red-500":"text-gray-500")})]}),er.touched.firstName&&er.errors.firstName&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.firstName})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"Last Name"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{...er.getFieldProps("lastName"),type:"text",placeholder:"Enter Last Name",className:(0,g.A)("form-control w-full h-10 px-3 pr-10 text-sm xl:text-[14px] 2xl:text-md",er.touched.lastName&&er.errors.lastName?"border border-red-500":"border border-gray-300")}),(0,t.jsx)(p.g,{icon:h.X46,className:(0,g.A)("absolute top-1/2 right-4 transform -translate-y-1/2",er.touched.lastName&&er.errors.lastName?"text-red-500":"text-gray-500")})]}),er.touched.lastName&&er.errors.lastName&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.lastName})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"Email"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{...er.getFieldProps("email"),type:"email",placeholder:"Enter Email",className:(0,g.A)("form-control w-full h-10 px-3 pr-10 text-sm xl:text-[14px] 2xl:text-md",er.touched.email&&er.errors.email?"border border-red-500":"border border-gray-300")}),(0,t.jsx)(p.g,{icon:h.y_8,className:(0,g.A)("absolute top-1/2 right-4 transform -translate-y-1/2",er.touched.email&&er.errors.email?"text-red-500":"text-gray-500")})]}),er.touched.email&&er.errors.email&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.email})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{...er.getFieldProps("password"),type:"password",placeholder:"Enter Password",className:(0,g.A)("form-control w-full h-10 px-3 pr-10 text-sm xl:text-[14px] 2xl:text-md",er.touched.password&&er.errors.password?"border border-red-500":"border border-gray-300")}),(0,t.jsx)(p.g,{icon:h.DW4,className:(0,g.A)("absolute top-1/2 right-4 transform -translate-y-1/2",er.touched.password&&er.errors.password?"text-red-500":"text-gray-500")})]}),er.touched.password&&er.errors.password&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.password})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"Confirm Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{...er.getFieldProps("confirmPassword"),type:"password",placeholder:"Confirm Password",className:(0,g.A)("form-control w-full h-10 px-3 pr-10 text-sm xl:text-[14px] 2xl:text-md",er.touched.confirmPassword&&er.errors.confirmPassword?"border border-red-500":"border border-gray-300")}),(0,t.jsx)(p.g,{icon:h.DW4,className:(0,g.A)("absolute top-1/2 right-4 transform -translate-y-1/2",er.touched.confirmPassword&&er.errors.confirmPassword?"text-red-500":"text-gray-500")})]}),er.touched.confirmPassword&&er.errors.confirmPassword&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.confirmPassword})]}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-5",children:[(0,t.jsxs)("div",{className:"mb-4 w-full",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"Province"}),(0,t.jsx)(N.Dropdown,{loading:L,name:"provinceId",value:er.values.provinceId,options:$,optionLabel:"label",placeholder:"Select Province",onChange:e=>{er.setFieldValue("provinceId",e.value),er.setFieldValue("cityId",""),er.setFieldValue("suburbId","")},className:(0,g.A)("w-full",er.touched.provinceId&&er.errors.provinceId?"p-invalid border border-red-500":"border border-gray-300"),filter:!0}),er.touched.provinceId&&er.errors.provinceId&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.provinceId})]}),(0,t.jsxs)("div",{className:"mb-4 w-full",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"City"}),(0,t.jsx)(N.Dropdown,{loading:B,name:"cityId",value:er.values.cityId,options:Q,optionLabel:"label",placeholder:"Select City",onChange:e=>{er.setFieldValue("cityId",e.value),er.setFieldValue("suburbId","")},disabled:!er.values.provinceId,className:(0,g.A)("w-full",er.touched.cityId&&er.errors.cityId?"p-invalid border border-red-500":"border border-gray-300"),filter:!0}),er.touched.cityId&&er.errors.cityId&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.cityId})]})]}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-5",children:[(0,t.jsxs)("div",{className:"mb-4 w-full",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"Suburb"}),(0,t.jsx)(N.Dropdown,{loading:Y,name:"suburbId",value:er.values.suburbId,options:ee,optionLabel:"label",placeholder:"Select Suburb",onChange:e=>er.setFieldValue("suburbId",e.value),disabled:!er.values.cityId,className:(0,g.A)("w-full",er.touched.suburbId&&er.errors.suburbId?"p-invalid border border-red-500":"border border-gray-300"),filter:!0}),er.touched.suburbId&&er.errors.suburbId&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.suburbId})]}),(0,t.jsxs)("div",{className:"mb-4 w-full",children:[(0,t.jsx)("label",{className:"mb-2 block",children:"Mobile Number"}),(0,t.jsxs)("div",{className:"relative flex",children:[(0,t.jsx)("input",{type:"text",value:"+27",readOnly:!0,className:"form-control border-r-0 w-[50px] h-10 px-3 text-sm border border-gray-300 bg-gray-100"}
1),(0,t.jsx)("input",{...er.getFieldProps("contactNo"),type:"text",placeholder:"Enter mobile number",className:(0,g.A)("form-control w-full h-10 px-3 pr-10 text-sm",er.touched.contactNo&&er.errors.contactNo?"border border-red-500":"border border-gray-300")}),(0,t.jsx)(p.g,{icon:h.GrJ,className:(0,g.A)("absolute right-4 top-1/2 transform -translate-y-1/2",er.touched.contactNo&&er.errors.contactNo?"text-red-500":"text-gray-500")})]}),er.touched.contactNo&&er.errors.contactNo&&(0,t.jsx)("div",{className:"mt-1 text-sm text-red-600",children:er.errors.contactNo})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2 mb-4",children:[(0,t.jsx)("input",{type:"checkbox",name:"agreeTerms",id:"agreeTerms",checked:er.values.agreeTerms,onChange:er.handleChange,className:"mt-1"}),(0,t.jsx)("label",{htmlFor:"agreeTerms",className:"text-sm",children:"I agree that the information provided above is true to my knowledge and accept the terms & conditions"})]}),er.touched.agreeTerms&&er.errors.agreeTerms&&(0,t.jsx)("div",{className:"text-sm text-red-600 -mt-2 mb-2",children:er.errors.agreeTerms}),(0,t.jsxs)("div",{className:"text-center mt-10",children:[(0,t.jsxs)("button",{type:"submit",className:"py-2 hover:cursor-pointer duration-300 ease-in-out bg-[var(--primary-color)] text-white border border-[var(--primary-color)] uppercase transition-all hover:bg-white hover:text-[var(--primary-color)] px-10",children:[er.isSubmitting?"Please wait...":"Register ",er.isSubmitting?(0,t.jsx)("span",{className:"spinner-border spinner-border-sm align-middle ms-2"}):(0,t.jsx)(p.g,{icon:h.vmR})]}),(0,t.jsxs)("p",{className:"text-gray-500 my-4",children:["Already Have An Account? ",(0,t.jsx)(v(),{href:"/login",className:"text-primary",children:"Login"})]}),(0,t.jsx)("p",{className:"text-md",children:"Sign up with one-click with your social accounts."}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 items-center sm:items-stretch mt-5",children:[(0,t.jsx)("div",{className:"w-full flex justify-center sm:justify-start",ref:X,children:(0,t.jsx)(C.A,{onSuccess:e=>{e.credential?W("google"):j.oR.error("Google did not return a credential")},onError:e=>j.oR.error(e),theme:"outline",size:"large",text:"continue_with",width:G})}),(0,t.jsx)(_.A,{className:(0,g.A)("h-10 py-2 px-4 border border-gray-200 text-sm flex items-center justify-center gap-2 w-full transition-all delay-100 hover:bg-gray-50"),style:{width:"100%",maxWidth:G?"".concat(G,"px"):void 0},text:"facebook"===O?"Connecting...":"Continue with Facebook",onSuccess:e=>{e.accessToken?W("facebook"):j.oR.error("Facebook did not return an access token")},onError:e=>j.oR.error(e),scope:"public_profile,email"})]})]})]})})}),(0,t.jsx)(S.default,{})]})}},55447:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>n});var t=s(37876),a=s(54587),i=s.n(a),l=s(48230),o=s.n(l);function n(){return(0,t.jsx)("div",{className:"py-10 md:py-15 bg-gray-50",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("h1",{className:"text-primary text-2xl sm:text-3xl md:text-4xl/10 font-bold uppercase mb-4 text-center",children:"Download Manufacturing, Engineering & Mining App"}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row w-8/12 m-auto justify-center",children:[(0,t.jsx)(o(),{href:"https://apps.apple.com/za/app/manufacturing-ezyfind/id6443547904",target:"_blank",children:(0,t.jsx)(i(),{src:"/images/app-store-btn.webp",width:486,height:141,className:"scale-80 hover:scale-90 transition duration-300 ease-in-out",alt:"Manufacturing Apple App Download"})}),(0,t.jsx)(o(),{href:"https://play.google.com/store/apps/details?id=com.inno.ezyfind.manufacturing&pli=1",target:"_blank",children:(0,t.jsx)(i(),{src:"/images/google-play-btn.webp",width:486,height:141,className:"scale-80 hover:scale-90 transition duration-300 ease-in-out",alt:"Manufacturing Google Playstore App Download"})}),(0,t.jsx)(o(),{href:"https://appgallery.huawei.com/app/C107697015",target:"_blank",children:(0,t.jsx)(i(),{src:"/images/app-gallery-btn.webp",width:486,height:141,className:"scale-80 hover:scale-90 transition duration-300 ease-in-out",alt:"Manufacturing Huawei App Gallery Download"})})]})]})})}},65870:(e,r,s)=>{"use strict";s.d(r,{C:()=>l,e:()=>i});var t=s(4103),a=s.n(t);function i(){let e=navigator.userAgent||navigator.vendor;return/huawei/i.test(e)?"Huawei":/android/i.test(e)?"Android":"Unknown"}function l(e){return a()(e,{lower:!0,replacement:"-",strict:!0,trim:!0})}},92790:(e,r,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return s(28872)}])},97350:(e,r,s)=>{"use strict";s.d(r,{A:()=>i});var t=s(37876),a=s(69241);function i(e){let{title:r,backgroundImage:s,className:i}=e;return(0,t.jsx)("div",{role:"img","aria-label":r,className:(0,a.A)("page-title flex justify-center items-center h-[200px] md:h-[300px] lg:h-[400px] bg-black/45 bg-blend-color bg-cover bg-center",i),style:{backgroundImage:"url(".concat(s,")")},children:(0,t.jsx)("p",{className:"text-center text-white text-2xl md:text-4xl uppercase font-semibold",children:r})})}}},e=>{e.O(0,[9963,7886,8552,9131,636,2193,8792],()=>e(e.s=92790)),_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.