1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8467],{78467:function(e,t,r){r.d(t,{Z:function(){return P}});var s=r(85893),l=r(67294),a=r(88446),n=r(86501),o={src:"/_next/static/media/contact.10a76fbb.png",height:512,width:708,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAq0lEQVR42hXNPavCMBiA0afp29sr+FGVFhFBxNXF1cn/v7joKAiiCFbEJkqb2kTdD5xgOe/5LOmgK89hfyUdxEg/wTYRPG5eVBBSGk2hQVuPfGHvWWJeBWFjUaUTKmLupqT+4smoi8Ix7EZ4+UM6LWF3rliMWqynfa65pXCe49GAChDlHauZIkkz0nHGs8nZbk60/2Nc3SAXAxIGpJGQ3zS/cL3I0K8a+3Z8ACDXSbHk40P4AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},i=e=>{let[t,r]=(0,l.useState)([]),n=void 0===e.value||-1===e.value;return(0,l.useEffect)(()=>{let e=async()=>{try{var e;let t=await a.Z.post("/world_country/getworld_country",{page_enabled:"n",page:1,limit:10,sortDetails:{sortKey:"name",sortType:1},searchDetails:[]}),s=(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)||[],l=s.find(e=>96===e.id);l&&(s=[l,...s.filter(e=>96!==e.name)]),r(s)}catch(e){console.error("Error",e)}};e()},[]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("select",{...e,onChange:t=>{t.target.value;let r=t.target.options[t.target.selectedIndex].getAttribute("data-name"),s=t.target.options[t.target.selectedIndex].getAttribute("data-phonecode"),l=t.target.options[t.target.selectedIndex].getAttribute("data-alphacode"),a=t.target;a.countryName=null!=r?r:void 0,a.phoneCode=null!=s?s:void 0,a.alphaCode=null!=l?l:void 0,e.onChange&&e.onChange({...t,target:a})},className:"appearance-none outline-none text-sm py-5 px-4 rounded poppins-regular bg-[#ffffffD4] transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(""!==e.countryerror?"border-2 border-red-500 focus:border-red-500 focus:shadow-inner":""," ").concat(n?"text-[#7F7A7A]":"text-black"),ref:e.countryRef,children:[(0,s.jsx)("option",{value:"-1",className:"poppins-regular text-sm",children:"Select Country"}),t.map(e=>(0,s.jsx)("option",{value:e.id,"data-name":e.name,"data-phonecode":e.phonecode,"data-alphacode":e.code,className:"text-black poppins-regular text-sm",children:e.name},e.id))]})})};let c=(e,t)=>{let[r,s]=(0,l.useState)([]),[n,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{o(!0);let t=async()=>{try{e&&await a.Z.post("/world_city/getworld_city",{page_enabled:"n",page:1,limit:100,sortDetails:{sortKey:"id",sortType:1},searchDetails:[{basicSearchKey:"state_id",basicSearchValue:e,basicSearchType:"number"}],searchDetailsAnd:[],searchQuery:""}).then(e=>{var t;s(null===(t=e.data)||void 0===t?void 0:t.data)}).catch(()=>{s([])}).finally(()=>{o(!1)})}catch(e){console.error(e)}};t()},[t,e,s,o]),{data:r,loading:n}};var d=e=>{let{country_id:t,state_id:r,value:l,cityError:a,...n}=e,{data:o,loading:i}=c(r,t);return(0,s.jsxs)("select",{value:l,...n,className:"appearance-none outline-none text-sm py-5 px-4 rounded poppins-regular bg-[#ffffffD4] transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(""!==a?"border-2 border-red-500 focus:border-red-500 focus:shadow-inner":""," ").concat(void 0===l||-1===l?"text-[#7F7A7A]":"text-black"),disabled:i,children:[(0,s.jsxs)("option",{value:-1,className:"poppins-regular text-sm",children:[" ",i?"loading...":"Select city"]}),o.map(e=>(0,s.jsx)("option",{value:e.id,"data-name":e.name,className:"text-black poppins-regular text-sm",children:[e.name]},e.id))]})};let u=e=>{let[t,r]=(0,l.useState)([]),[s,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{n(!0),e&&a.Z.post("world_state/getworld_state",{page_enabled:"n",page:1,limit:25,sortDetails:{sortKey:"123",sortType:-1},searchDetails:[{basicSearchKey:"country_id",basicSearchValue:e,basicSearchType:"number"}]}).then(e=>{let{data:t}=e;r(null==t?void 0:t.data)}).catch(()=>{r([])}).finally(()=>{n(!1)})},[e,r,n]),{data:t,loading:s}};var m=e=>{let{country_id:t,value:r,stateError:l,...a}=e,{data:n,loading:o}=u(t);return(0,s.jsxs)("select",{value:r,...a,disabled:o,className:"appearance-none outline-none text-sm py-5 px-4 rounded poppins-regular bg-[#ffffffD4] transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(""!==l?"border-2 border-red-500 focus:border-red-500 focus:shadow-inner":""," ").concat(void 0===r||-1===r?"text-[#7F7A7A]":"text-black"),children:[(0,s.jsx)("option",{value:-1,className:"poppins-regular text-sm",children:o?"loading...":"Select State"}),n.map(e=>(0,s.jsx)("option",{value:e.id,"data-name":e.name,className:"text-black poppins-regular text-sm",children:[e.name]},e.id))]})},p=r(93791),x=r(18975),h=r(77382),f=r.n(h),g=r(67555),y=r.n(g);r(9330);var b=r(99603),v=r(59417),j=r(55678);r(71399);var N=r(58386);x.registerLocale(r(41086));var w=e=>{let{countryName:t,formDataOnceClick:r,setFormDataOnceClick:n,formData:o,setFormData:i,formError:c,setFormError:d,setRequestAdd:u,mobileNumberObj:m,setMobileNumberObj:h,mobileVerified:g,setMobileVerified:w,mobileRef:A,setUserMobileNumberExist:S,countryRef:E}=e,[C,P]=(0,l.useState)(!1),[_,k]=(0,l.useState)(!0),[R,F]=(0,l.useState)(""),[T,I]=(0,l.useState)(!1),[D,M]=(0,l.useState)(""),[L,O]=(0,l.useState)(!1),[U,q]=(0,l.useState)(30),[V,G]=(0,l.useState)(!1),[Z,B]=(0,l.useState)({loading:!1,error:"",success:""}),[W,Y]=(0,l.useState)({loading:!1,success:"",error:""}),[K,z]=(0,l.useState)({loading:!1,success:"",error:""}),H=p.PhoneNumberUtil.getInstance();(0,l.useEffect)(()=>{J()},[m]),(0,l.useEffect)(()=>
1{if(V){let e=setTimeout(()=>{O(!1),G(!1),q(30)},3e4);return()=>clearTimeout(e)}},[V]),(0,l.useEffect)(()=>{if(0!==U&&V){let e=setTimeout(()=>{q(e=>e-1)},1e3);return()=>clearTimeout(e)}},[U,V]);let Q=e=>{try{let t=H.getExampleNumberForType(e,p.PhoneNumberType.MOBILE);return t?t.getNationalNumber().toString().length:null}catch(t){return console.error("Error fetching phone number length for ".concat(e,":"),t),null}},X=()=>{let e={success:"",error:""},r="";if(!t||t.length<=0)r="Please select your country first";else{let e=m.mobileNumberWithCountryCode;if(0===e.length)r="Please enter your mobile number";else{let s=m.countrycode,l=e.substring(s.length),a=Q(t.toUpperCase()),n=x.alpha2ToAlpha3(t.toUpperCase());l.length>a?r="Maximum number of digits should be ".concat(a):l.length<a||l.length>a?r="Please check the number of digits":!1===f()("".concat(l),{country:n}).isValid&&(r="Invalid mobile number")}}return e.error=r,e},J=async()=>{try{let e=X();if(""!==e.error)return;B({loading:!0,success:"",error:""});let t=await a.Z.post("/user/isUserMobileExist",{mobile:m.mobile}),r="",s="";!1===t.data.status?(S(!1),r="Mobile Number already Registered."):(S(!0),s="Valid"),B({loading:!1,success:s,error:r})}catch(e){console.error(e)}},$=X();""===$.error&&!1===Z.loading&&(""!==Z.error?$.error=Z.error:""===Z.error&&""!==Z.success&&($.success=Z.success));let ee=(e,r)=>{let s="+".concat(r).concat(e),l=x.alpha2ToAlpha3(t.toUpperCase()),{isValid:a}=f()(s,{country:l});return a},et=async(e,t)=>{try{if(Y({loading:!0,error:"",success:""}),e.length>0&&t.length>0){var r,s,l;let n=await a.Z.post("/user/sendVerifyMobileNoLogin",{mobile:e,countrycode:t});(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.isVerified)?(j.Am.success(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s.message),k(!1),I(!0),Y({loading:!1,error:"",success:"success"})):j.Am.error(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.message),Y({loading:!1,error:"",success:"successfully requested for OTP"})}}catch(e){console.error(e),j.Am.error("Internal Server Error"),Y({loading:!1,error:"Something went wrong",success:""})}},er=async()=>{try{if(z({loading:!0,error:"",success:""}),D.length<=0){console.log("entered"),z({loading:!1,error:"Please enter the OTP",success:""}),j.Am.error("Please enter the OTP");return}await a.Z.post("/user/verifyMobileNoLogin",{mobile:R,otp:Number(D)}).then(e=>{var t,r,s,l,a;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.isVerified)?(i({...o,mobile:null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(s=r.data)||void 0===s?void 0:s.mobile}),j.Am.success(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.message),w(!0),I(!1),z({loading:!1,error:"",success:"success"})):(w(!1),j.Am.error(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message)),z({loading:!1,error:"",success:"successfully requested for OTP"})})}catch(e){console.error(e),j.Am.error("Internal Server Error"),u({loading:!1,error:"Something went wrong",success:""})}},es=()=>{G(!0),O(!0),et(R,null==o?void 0:o.country_code)};return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)("div",{className:" ".concat(""===$.error&&""!==$.success&&"flex"," "),children:(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(y(),{country:t,countryCodeEditable:!1,dropdownClass:"!w-[395px] !text-sm !font-serif",inputProps:{className:"w-full outline-none border-2 text-sm py-[19px] px-4 rounded poppins-regular text-sm bg-[#ffffffD4] transition duration-200 ease-in-out placeholder:text-[#7F7A7A] text-black ".concat(""!==r.mobile&&0!==$.error.length?"border-red-600 focus:border-red-600 focus:shadow-inner":""," ").concat(t?"pl-16":"pl-3"),placeholder:"Enter the Mobile Number",ref:A},value:m.mobileNumberWithCountryCode,onChange:(e,r)=>{let s=r.dialCode,l=e.substring(s.length),a=Q(t.toUpperCase());l.length>a&&(l=l.slice(0,a),$.error="Maximum number of digits should be ".concat(a));let n=ee(l,s);n||($.error="Invalid Mobile Number"),h({mobileNumberWithCountryCode:e,mobile:l,country_name:r.name,countrycode:r.dialCode}),i(e=>({...e,country_code:r.dialCode,country_name:r.name,mobile:parseInt(l)}
1)),d(e=>({...e,mobile:""}))},onBlur:()=>{n(e=>({...e,mobile:"yes"})),d(e=>({...e,mobile:""}))},enableSearch:!0,disabled:g,disableDropdown:!0,buttonStyle:{display:t?"block":"none"}}),!C&&""===$.error&&""!==$.success&&_&&(0,s.jsxs)("div",{className:"flex justify-between items-center py-2 px-2 rounded-b bg-[#ffffff71]",children:[(0,s.jsx)("h1",{className:"text-center text-blue-200 poppins-regular text-sm",children:'Click "Verify" to get OTP'}),(0,s.jsxs)("button",{disabled:null==W?void 0:W.loading,onClick:()=>{var e,t;F(null==o?void 0:null===(e=o.mobile)||void 0===e?void 0:e.toString()),et(null==o?void 0:null===(t=o.mobile)||void 0===t?void 0:t.toString(),null==o?void 0:o.country_code)},className:"p-2 bg-green-500 poppins-medium text-xs text-white rounded-md border transition-all ease-in-out hover:bg-green-600",children:["Verify",(null==W?void 0:W.loading)&&(0,s.jsx)(b.G,{className:"px-1",icon:v.LM3,spin:!0})]})]})]}),""===$.error&&""!==$.success&&(0,s.jsxs)("div",{className:"text-green-500 flex items-center absolute right-2 top-[1.45rem]",children:[(0,s.jsx)(b.G,{icon:v.LEp,className:"text-sm"}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-xs",children:$.success})]})]})}),!C&&(0,s.jsx)(s.Fragment,{children:""===$.error&&""!==$.success&&!_&&T&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-center text-lg gap-2",children:[(0,s.jsx)(N.Z,{value:D,onChange:M,numInputs:4,inputType:"tel",containerStyle:" border p-2 rounded-md bg-blue-100",inputStyle:"border border-gray-400 rounded-md text-center outline-none text-black",renderSeparator:(0,s.jsx)("span",{children:" - "}),renderInput:e=>(0,s.jsx)("input",{...e})}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsxs)("button",{disabled:null==K?void 0:K.loading,onClick:()=>er(),className:"poppins-regular border outline-none text-md bg-green-500 hover:bg-green-600 transition-all ease-in-out rounded-md px-4 py-2 text-white",children:["Verify Mobile",(null==K?void 0:K.loading)&&(0,s.jsx)(b.G,{className:"px-1",icon:v.LM3,spin:!0})]})})]}),(0,s.jsxs)("div",{className:"flex flex-row items-center mt-2 justify-center text-center text-sm font-medium space-x-1",children:[(0,s.jsx)("p",{className:"text-gray-400 poppins-medium text-sm",children:L?"You can request resend OTP ".concat(U):" Didn't recieve code? "}),(0,s.jsx)("button",{className:"text-blue-500 hover:text-blue-600 transition-all ease-in-out poppins-regular text-sm hove cursor-pointer",onClick:()=>es(),disabled:L,children:"Resend"})]})]})}),""!==r.mobile&&""!==c.mobile?(0,s.jsxs)("div",{className:"text-red-600 flex items-center justify-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:c.mobile})]}):""!==r.mobile&&""!==$.error?(0,s.jsxs)("div",{className:"text-red-600 flex items-center justify-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:$.error})]}):null]})},A=r(83868),S=r.n(A),E=e=>{let{formDataOnceClick:t,setFormDataOnceClick:r,formData:n,setFormData:o,formError:i,setFormError:c,emailVerified:d,setEmailVerified:u,userEmailID:m,setUserEmailID:p,setEmailIdExist:x,emailIdRef:h}=e,[f,g]=(0,l.useState)(!0),[y,w]=(0,l.useState)(!1),[A,E]=(0,l.useState)(""),[C,P]=(0,l.useState)(""),[_,k]=(0,l.useState)(!1),[R,F]=(0,l.useState)(!1),[T,I]=(0,l.useState)(30),[D,M]=(0,l.useState)(!1),[L,O]=(0,l.useState)({loading:!1,error:"",success:""}),[U,q]=(0,l.useState)({loading:!1,success:"",error:""}),[V,G]=(0,l.useState)({loading:!1,success:"",error:""});(0,l.useEffect)(()=>{B()},[m]),(0,l.useEffect)(()=>{if(D){let e=setTimeout(()=>{F(!1),M(!1),I(30)},3e4);return()=>clearTimeout(e)}},[D]),(0,l.useEffect)(()=>{if(0!==T&&D){let e=setTimeout(()=>{I(e=>e-1)},1e3);return()=>clearTimeout(e)}},[T,D]);let Z=()=>{let e={success:"",error:""},t="";return 0===m.length?t="Please enter your email":!1===S()(m)&&(t="Invalid Email address"),e.error=t,e},B=async()=>{try{let e=Z();if(""!==e.error)return;O({loading:!0,success:"",error:""});let t=await a.Z.post("/user/isUserEmailExist",{email:m}),r="",s="";!1===t.data.status?(x(!1),r="eMail Id already Registered"):(x(!0),s="Valid"),O({loading:!1,success:s,error:r})}catch(e){console.error(e)}},W=async e=>{try{if(q({loading:!0,error:"",success:""}),e.length>0){var t,r,s;let l=await a.Z.post("/user/sendVerifyEmailNologin",{email:e});(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.isVerified)?(j.Am.success(null==l?void 0:null===(r=l.data)||void 0===r?void 0:r.message),g(!1),w(!0),q({loading:!1,error:"",success:"success"})):j.Am.error(null==l?void 0:null===(s=l.data)||void 0===s?void 0:s.message),q({loading:!1,error:"",success:"successfully requested for OTP"})}}catch(e){console.error(e),j.Am.error("Internal Server Error"),q({loading:!1,error:"Something went wrong",success:""})}},Y=async()=>{try{if(G({loading:!0,error:"",success:""}),C.length<=0){G({loading:!1,error:"Please enter the OTP",success:""}),j.Am.error("Please enter the OTP");return}await a.Z.post("/user/verifyEmailNoLogin",{email:A,otp:Number(C)}).then(e=>{var t,r,s,l,a,i,c;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.isVerified)?(o({...n,email:null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(s=r.data)||void 0===s?void 0:s.email,email_noLoginId:null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(a=l.data)||void 0===a?void 0:a.id,email_noLoginOtp:Number(C),email_v:1}),j.Am.success(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.message),u(!0),w(!1),G({loading:!1,error:"",success:"success"})):j.Am.error(null==e?void 0:null===(c=e.data)||void 0===c?void 0:c.message),G({loading:!1,error:"",success:"successfully requested for OTP"})})}catch(e){console.error(e),j.Am.error("Internal Server Error"),G({loading:!1,error:"Something went wrong",success:""})}},K=()=>{M(!0),F(!0),W(A)},z=Z();""===z.error&&!1===L.loading&&(""!==L.error?z.error=L.error:""===L.error&&""!==L.success&&(z.success=L.success));let H=e=>{let s=e.target.value,l="";for(let e=0;e<s.length;e++){let t=s[e].charCodeAt(0);32===t||(l+=s[e])}p(l),r({...t,email:"yes"}),o({...n,email:l}),c({...i,email:""})};return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)("div",{className:" ".concat(""===z.error&&""!==z.success&&"flex"," "),children:(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("input",{ref:h,placeholder:"Please enter your eMail I'd",className:"outline-none w-full px-4 py-5 poppins-regular text-sm bg-[#ffffffD4] rounded transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(""!==t.email&&0!==z.error.length||""!==t.email&&""!==i.email?"border-2 border-red-600 focus:border-red-600 focus:shadow-inner":""),value:m,onChange:H,onBlur:H,readOnly:d}),!_&&""===z.error&&""!==z.success&&f&&(0,s.jsxs)("div",{className:"flex justify-between items-center py-2 px-2 rounded-b bg-[#ffffff71]",children:[(0,s.jsx)("h1",{className:"text-center text-blue-200 poppins-regular text-sm",children:'Click "Verify" to get OTP'}),(0,s.jsxs)("button",{disabled:null==U?void 0:U.loading,onClick:()=>{E(null==n?void 0:n.email),W(null==n?void 0:n.email)},className:"p-2 bg-green-500 poppins-medium text-xs text-white rounded-md border transition-all ease-in-out hover:bg-green-600",children:["Verify",(null==U?void 0:U.loading)&&(0,s.jsx)(b.G,{className:"px-1",icon:v.LM3,spin:!0})]})]})]}),""===z.error&&""!==z.success&&(0,s.jsxs)("div",{className:"text-green-500 flex items-center absolute right-2 top-[1.35rem]",children:[(0,s.jsx)(b.G,{icon:v.LEp,className:"text-sm"}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-xs",children:z.success})]})]})}),!_&&(0,s.jsx)(s.Fragment,{children:""===z.error&&""!==z.success&&!f&&y&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-center text-lg gap-2",children:[(0,s.jsx)(N.Z,{value:C,onChange:P,numInputs:4,inputType:"tel",containerStyle:" border p-2 rounded-md bg-blue-100",inputStyle:"border border-gray-400 rounded-md text-center outline-none text-black",render
1Separator:(0,s.jsx)("span",{children:" - "}),renderInput:e=>(0,s.jsx)("input",{...e})}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsxs)("button",{disabled:null==V?void 0:V.loading,onClick:()=>Y(),className:"poppins-regular border outline-none text-md bg-green-500 hover:bg-green-600 transition-all ease-in-out rounded-md px-4 py-2 text-white",children:["Verify Email",(null==V?void 0:V.loading)&&(0,s.jsx)(b.G,{className:"px-1",icon:v.LM3,spin:!0})]})})]}),(0,s.jsxs)("div",{className:"flex flex-row items-center mt-2 justify-center text-center text-sm font-medium space-x-1",children:[(0,s.jsx)("p",{className:"text-gray-400 poppins-medium text-sm",children:R?"You can request resend OTP ".concat(T):" Didn't recieve code? "}),(0,s.jsx)("button",{className:"text-blue-500 hover:text-blue-600 transition-all ease-in-out poppins-regular text-sm hove cursor-pointer",onClick:()=>K(),disabled:R,children:"Resend"})]})]})}),""!==t.email&&""!==i.email?(0,s.jsxs)("div",{className:"text-red-600 flex items-center justify-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:i.email})]}):""!==t.email&&""!==z.error?(0,s.jsxs)("div",{className:"text-red-600 flex items-center justify-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:z.error})]}):null]})},C=e=>{let{formDataOnceClick:t,setFormDataOnceClick:r,formData:n,setFormData:o,formError:i,setFormError:c,companyEmailVerified:d,setCompanyEmailVerified:u,companyEmailID:m,setCompanyEmailID:p,setCompanyEmailExist:x,companyMailRef:h}=e;console.log(i);let[f,g]=(0,l.useState)(!0),[y,w]=(0,l.useState)(!1),[A,E]=(0,l.useState)(""),[C,P]=(0,l.useState)(""),[_,k]=(0,l.useState)(!1),[R,F]=(0,l.useState)(!1),[T,I]=(0,l.useState)(30),[D,M]=(0,l.useState)(!1),[L,O]=(0,l.useState)({loading:!1,error:"",success:""}),[U,q]=(0,l.useState)({loading:!1,success:"",error:""}),[V,G]=(0,l.useState)({loading:!1,success:"",error:""});(0,l.useEffect)(()=>{B()},[m]),(0,l.useEffect)(()=>{if(D){let e=setTimeout(()=>{F(!1),M(!1),I(30)},3e4);return()=>clearTimeout(e)}},[D]),(0,l.useEffect)(()=>{if(0!==T&&D){let e=setTimeout(()=>{I(e=>e-1)},1e3);return()=>clearTimeout(e)}},[T,D]);let Z=()=>{let e={success:"",error:""},t="";return m.length>0&&!1===S()(m)&&(t="Please enter a valid eMail"),e.error=t,e},B=async()=>{try{let e=Z();if(""!==e.error||m.length<=0)return;O({loading:!0,success:"",error:""});let t=await a.Z.post("/user/isCompanyEmailExist",{email:m}),r="",s="";!1===t.data.status?(x(!1),r="eMail Id already Registered"):(x(!0),s="Valid"),O({loading:!1,success:s,error:r})}catch(e){console.error(e)}},W=async e=>{try{if(q({loading:!0,error:"",success:""}),e.length>0){var t,r,s;let l=await a.Z.post("/user/sendVerifyEmailNologin",{email:e});(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.isVerified)?(j.Am.success(null==l?void 0:null===(r=l.data)||void 0===r?void 0:r.message),g(!1),w(!0),q({loading:!1,error:"",success:"success"})):j.Am.error(null==l?void 0:null===(s=l.data)||void 0===s?void 0:s.message),q({loading:!1,error:"",success:"successfully requested for OTP"})}}catch(e){console.error(e),j.Am.error("Internal Server Error"),q({loading:!1,error:"Something went wrong",success:""})}},Y=async()=>{try{if(G({loading:!0,error:"",success:""}),C.length<=0){G({loading:!1,error:"Please enter the OTP",success:""}),j.Am.error("Please enter the OTP");return}await a.Z.post("/user/verifyEmailNoLogin",{email:A,otp:Number(C)}).then(e=>{var t,r,s,l,a;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.isVerified)?(o({...n,companyEmail:null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(s=r.data)||void 0===s?void 0:s.email}),j.Am.success(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.message),u(!0),w(!1),G({loading:!1,error:"",success:"success"})):j.Am.error(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message),G({loading:!1,error:"",success:"successfully requested for OTP"})})}catch(e){console.error(e),j.Am.error("Internal Server Error"),G({loading:!1,error:"Something went wrong",success:""})}},K=()=>{M(!0),F(!0),W(A)},z=Z();""===z.error&&!1===L.loading&&(""!==L.error?z.error=L.error:""===L.error&&""!==L.success&&(z.success=L.success));let H=e=>{let s=e.target.value,l="";for(let e=0;e<s.length;e++){let t=s[e].charCodeAt(0);32===t||(l+=s[e])}p(l),r({...t,companyEmail:"yes"}),o({...n,companyEmail:l}),c({...i,companyEmail:""})};return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)("div",{className:" ".concat(""===z.error&&""!==z.success&&"flex"," "),children:(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("input",{ref:h,placeholder:"Please enter your eMail I'd",className:"outline-none w-full px-4 py-5 poppins-regular text-sm bg-[#ffffffD4] rounded transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(""!==t.companyEmail&&0!==z.error.length?"border-red-600 focus:border-red-600 focus:shadow-inner":""),value:m,onChange:H,onBlur:H,readOnly:d}),!_&&""===z.error&&""!==z.success&&m.length>0&&f&&(0,s.jsxs)("div",{className:"flex justify-between items-center py-2 px-2 rounded-b bg-[#ffffff71]",children:[(0,s.jsx)("h1",{className:"text-center text-blue-200 poppins-regular text-sm",children:'Click "Verify" to get OTP'}),(0,s.jsxs)("button",{disabled:null==U?void 0:U.loading,onClick:()=>{E(null==n?void 0:n.companyEmail),W(null==n?void 0:n.companyEmail)},className:"p-2 bg-green-500 poppins-medium text-xs text-white rounded-md border transition-all ease-in-out hover:bg-green-600",children:["Verify",(null==U?void 0:U.loading)&&(0,s.jsx)(b.G,{className:"px-1",icon:v.LM3,spin:!0})]})]})]}),""===z.error&&""!==z.success&&m.length>0&&(0,s.jsxs)("div",{className:"text-green-500 flex items-center absolute right-2 top-[1.35rem]",children:[(0,s.jsx)(b.G,{icon:v.LEp,className:"text-sm"}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-xs",children:z.success})]})]})}),!_&&(0,s.jsx)(s.Fragment,{children:""===z.error&&""!==z.success&&!f&&y&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-center text-lg gap-2",children:[(0,s.jsx)(N.Z,{value:C,onChange:P,numInputs:4,inputType:"tel",containerStyle:" border p-2 rounded-md bg-blue-100",inputStyle:"border border-gray-400 rounded-md text-center outline-none text-black",render
1Separator:(0,s.jsx)("span",{children:" - "}),renderInput:e=>(0,s.jsx)("input",{...e})}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsxs)("button",{disabled:null==V?void 0:V.loading,onClick:()=>Y(),className:"poppins-regular border outline-none text-md bg-green-500 hover:bg-green-600 transition-all ease-in-out rounded-md px-4 py-2 text-white",children:["Verify Email",(null==V?void 0:V.loading)&&(0,s.jsx)(b.G,{className:"px-1",icon:v.LM3,spin:!0})]})})]}),(0,s.jsxs)("div",{className:"flex flex-row items-center mt-2 justify-center text-center text-sm font-medium space-x-1",children:[(0,s.jsx)("p",{className:"text-gray-400 poppins-medium text-sm",children:R?"You can request resend OTP ".concat(T):" Didn't recieve code? "}),(0,s.jsx)("button",{className:"text-blue-500 hover:text-blue-600 transition-all ease-in-out poppins-regular text-sm hove cursor-pointer",onClick:()=>K(),disabled:R,children:"Resend"})]})]})}),""!==t.companyEmail&&(null==i?void 0:i.companyEmail)!==""?(0,s.jsxs)("div",{className:"text-red-600 flex items-center justify-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:null==i?void 0:i.companyEmail})]}):""!==t.companyEmail&&""!==z.error?(0,s.jsxs)("div",{className:"text-red-600 flex items-center justify-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:z.error})]}):null]})};x.registerLocale(r(41086));var P=()=>{var e,t,r,c,u;let[h,g]=(0,l.useState)(!1),[y,j]=(0,l.useState)(!1),[N,A]=(0,l.useState)(!1),[P,_]=(0,l.useState)(!1),[k,R]=(0,l.useState)([]),[F,T]=(0,l.useState)(""),[I,D]=(0,l.useState)(!1),[M,L]=(0,l.useState)(""),[O,U]=(0,l.useState)(!0),[q,V]=(0,l.useState)(!1),[G,Z]=(0,l.useState)(!1),[B,W]=(0,l.useState)(""),[Y,K]=(0,l.useState)(!0),[z,H]=(0,l.useState)(!0),[Q,X]=(0,l.useState)(!0),[J,$]=(0,l.useState)(""),[ee,et]=(0,l.useState)({title:"",name:"",country_code:"",country_name:"",country:"",state:"",state_name:"",city_name:"",city:"",mobile:"",email:"",companyName:"",companyEmail:"",websiteUrl:"",designation:"",serviceRequired:"",contactPreference:""}),[er,es]=(0,l.useState)({applicationPurchase:"",serviceRequired:"",contactPreference:"",title:"",name:"",mobile:"",country_code:"",country:-1,country_name:"",state:-1,state_name:"",city:-1,city_name:"",phoneCode:-1,companyName:"",companyEmail:"",websiteUrl:"",designation:"",email:"",whatsappNo:"",message:""}),[el,ea]=(0,l.useState)({applicationPurchase:"",serviceRequired:"",contactPreference:"",title:"",name:"",mobile:"",country_code:"",country:"",country_name:"",state:"",state_name:"",city:"",city_name:"",phoneCode:"",companyName:"",companyEmail:"",websiteUrl:"",designation:"",email:"",whatsappNo:"",message:""}),[en,eo]=(0,l.useState)({mobileNumberWithCountryCode:"",mobile:"",country_name:"",countrycode:""}),[ei,ec]=(0,l.useState)({loading:!1,success:"",error:""}),ed=(0,l.useRef)(null),eu=(0,l.useRef)(null),em=(0,l.useRef)(null),ep=(0,l.useRef)(null),ex=(0,l.useRef)(null),eh=(0,l.useRef)(null),ef=(0,l.useRef)(null),eg=(0,l.useRef)(null),ey=(0,l.useRef)(null),eb=(0,l.useRef)(null),ev=(0,l.useRef)(null),ej=p.PhoneNumberUtil.getInstance();(0,l.useEffect)(()=>{""!==er.serviceRequired&&ea(e=>({...e,serviceRequired:""}))},[er.serviceRequired]);let eN=e=>{try{let t=ej.getExampleNumberForType(e,p.PhoneNumberType.MOBILE);return t?t.getNationalNumber().toString().length:null}catch(t){return console.error("Error fetching phone number length for ".concat(e,":"),t),null}},ew=()=>{let e={success:"",error:""},t="";if(!F||F.length<=0)t="Please select your country first";else{let e=en.mobileNumberWithCountryCode;if(0===e.length)t="Please enter your mobile number";else{let r=en.countrycode,s=e.substring(r.length),l=eN(F.toUpperCase()),a=x.alpha2ToAlpha3(F.toUpperCase());s.length>l?t="Maximum number of digits should be ".concat(l):s.length<l||s.length>l?t="Please check the number of digits":!1===f()("".concat(s),{country:a}
1).isValid&&(t="Invalid mobile number")}}return e.error=t,e},eA=()=>{let e={success:"",error:""},t="";return B.length>0&&!1===S()(B)&&(t="Please enter a valid eMail"),e.error=t,e},eS=()=>{let e={success:"",error:""},t="";return 0===M.length?t="Please enter your eMail":!1===S()(M)&&(t="Please enter a valid eMail"),e.error=t,e},eE=async(e,t)=>{es(r=>{let s=r.serviceRequired.split(", ").filter(Boolean);if("all"===e&&g(!h),"eshop application"===e&&j(!y),"eaution application"===e&&A(!N),"real time auction application"===e&&_(!P),t.target.checked)s.includes(e)||s.push(e);else{let t=s.indexOf(e);-1!==t&&s.splice(t,1)}return{...r,serviceRequired:s.join(", ")}})},eC=e=>!!RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e),eP=async e=>{try{let t=e.target.value,r=eC(t);X(r),console.log(Q,"this is web url true or false"),es({...er,websiteUrl:e.target.value}),r&&ea({...el,websiteUrl:""})}catch(e){console.log(e)}},e_=()=>{let e=ew();return(null==er?void 0:er.mobile.length)<=0?"Please enter your mobile number":""!==e.error?e.error:z?I?"":"Please verify your mobile number":"Mobile Number already exist."},ek=()=>{let e="",t=eA();return""!==t.error?(console.log(e=t.error,"this is from company email submit validation"),e):Y?B.length>0&&!G?(console.log(e="Please verify your company eMail","this is from company email submit validation"),e):(console.log(e,"this is from company email submit validation"),""):(console.log(e="eMail Id already exist","this is from company email submit validation"),e)},eR=()=>{let e="",t=eS();return""!==t.error?(console.log(e=t.error,"this is from email submit validation"),e):O?q?(console.log(e,"this is from email submit validation"),""):(console.log(e="Please verify your eMail","this is from email submit validation"),e):(console.log(e="eMail Id already exist","this is from email submit validation"),e)},eF=async()=>{try{let e=!1,t=!1,r={applicationPurchase:"",serviceRequired:"",contactPreference:"",title:"",name:"",mobile:"",country_code:"",country:"",country_name:"",state:"",state_name:"",city:"",city_name:"",phoneCode:"",companyName:"",companyEmail:"",websiteUrl:"",designation:"",email:"",whatsappNo:"",message:""},s={title:"",name:"",country_code:"",country_name:"",country:"",state:"",state_name:"",city_name:"",city:"",mobile:"",email:"",companyName:"",companyEmail:"",websiteUrl:"",designation:"",serviceRequired:"",contactPreference:""};r.title="",0===er.title.length&&(r.title="Please select your title",e=!0,eu.current&&(eu.current.focus(),t=!0)),r.name="",0===er.name.length&&(r.name="Please enter your name",e=!0,em.current&&(em.current.focus(),t=!0)),r.country="",er.country<=0&&(r.country="Please select your country",e=!0,eh.current&&(eh.current.focus(),t=!0),s.country="yes"),r.state="",er.state<=0&&(r.state="Please select your state",e=!0,ef.current&&(ef.current.focus(),t=!0),s.state="yes"),r.city="",er.city<=0&&(r.city="Please select your city",e=!0,eg.current&&(eg.current.focus(),t=!0),s.city="yes");let l=e_();""!==l&&(r.mobile=l,e=!0,!1===t&&ex.current&&(ex.current.focus(),t=!0),s.mobile="yes");let a=ek();""!==a&&(console.log(a,"this is from validation function"),r.companyEmail=a,e=!0,!1===t&&ev.current&&(ev.current.focus(),t=!0),s.companyEmail="yes");let n=eR();if(""!==n&&(r.email=n,e=!0,!1===t&&ep.current&&(ep.current.focus(),t=!0),s.email="yes"),r.serviceRequired="",0===er.serviceRequired.length&&(r.serviceRequired="Please select your applications of interest",e=!0,ed.current&&(ed.current.focus(),t=!0)),r.contactPreference="",0===er.contactPreference.length&&(r.contactPreference="Please select your preferred communication method",e=!0,ed.current&&(ed.current.focus(),t=!0)),r.websiteUrl="",Q||(r.websiteUrl="Please enter a valid URL",e=!0,ey.current&&(ey.current.focus(),t=!0),s.city="yes"),r.designation="",(null==er?void 0:er.companyName)!==""&&(null==er?void 0:er.designation)===""&&(r.designation="Required Field",e=!0,eb.current&&(eb.current.focus(),t=!0),s.city="yes"),ea({...el,...r}),et({...ee,...s}),e)return!0;return!1}catch(e){console.error(e)}},eT=async e=>{try{e.preventDefault();let t=await eF();if(t){ec({loading:!1,success:"",error:"Please enter all the required fields"});return}ec({loading:!0,success:"",error:""});let r=await a.Z.post("/user/contactUsPurchaseInquiry",{service_required:er.serviceRequired,contact_preference:er.contactPreference,title:er.title,name:er.name,mobile:er.mobile,country_name:er.country_name,country_code:er.country_code,country_id:null==er?void 0:er.country,state_id:null==er?void 0:er.state,state_name:null==er?void 0:er.state_name,city_id:null==er?void 0:er.city,city_name:null==er?void 0:er.city_name,company_name:er.companyName,company_email:er.companyEmail,website_url:er.websiteUrl,designation:er.designation,email:er.email,whatsapp_number:er.whatsappNo,message:er.message});200===r.status&&(n.ZP.success("Form submitted successfully"),ec({loading:!1,error:"",success:"success"})),g(!1),j(!1),A(!1),_(!1),eo({mobileNumberWithCountryCode:"",mobile:"",country_name:"",countrycode:""}),D(!1),H(!1),L(""),U(!1),V(!1),W(""),K(!1),Z(!1),es({applicationPurchase:"",serviceRequired:"",contactPreference:"",title:"",name:"",mobile:"",country_code:"",country:-1,country_name:"",state:-1,state_name:"",city:-1,city_name:"",phoneCode:-1,companyName:"",companyEmail:"",websiteUrl:"",designation:"",email:"",whatsappNo:"",message:""})}catch(e){if(console.log(e),(0,a.I)(e)){var t,r,s,l,o,i;let a="Unexpected error occured";"string"==typeof(null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(r=t.data)||void 0===r?void 0:r.message)&&(a=null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(l=s.data)||void 0===l?void 0:l.message,n.ZP.error(null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(i=o.data)||void 0===i?void 0:i.message,{position:"top-center"})),ec({loading:!1,success:"",error:a})}else ec({loading:!1,success:"",error:"Unexpected error occured"})}};return(0,s.jsxs)("div",{className:"mx-0 md:mx-auto container",children:[(0,s.jsxs)("section",{className:"py-10 px-4 flex flex-col items-center justify-center",children:[(0,s.jsx)("h1",{className:"text-5xl font-semibold text-center pb-6",children:"Contact Us"}),(0,s.jsxs)("p",{className:"poppins-regular text-lg text-center",children:[(0,s.jsx)("span",{className:"poppins-semibold text-lg text-center text-[#F53E02]",children:"Reach out to us to discover more"}),". We are delighted to assist you in exploring our services. Kindly let us know your preferences and how we
1can best serve you."]})]}),(0,s.jsx)("section",{style:{backgroundImage:"url(".concat(o.src,")")},className:"h-fit bg-fixed bg-center bg-cover flex items-center justify-center text-white",children:(0,s.jsxs)("div",{className:"relative px-6 md:px-20 lg:px-40 py-10 w-full text-black",children:[(0,s.jsx)("h3",{className:"text-white poppins-semibold text-lg text-center pb-5",children:"Kindly Provide the following details:"}),(0,s.jsxs)("form",{className:"space-y-4",onSubmit:eT,children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-6 ",children:[(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full sm-w-1/2",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Title"}),(0,s.jsxs)("select",{id:"title",value:null==er?void 0:er.title,onBlur:()=>{let e={...el};er.title.length<=0?e.title="Please select a title":e.title="",ea(e)},onChange:e=>{es({...er,title:e.target.value}),ea({...el,title:""})},className:"outline-none text-sm py-5 px-4 poppins-regular appearance-none bg-[#ffffffD4] rounded transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(0!==el.title.length?"border-2 border-red-600 focus:border-red-600 focus:shadow-inner":""," ").concat((null==er?void 0:er.title)?"text-black":"text-[#7F7A7A]"),children:[(0,s.jsx)("option",{value:"",className:"text-gray-400",disabled:!0,selected:!0,hidden:!0,children:"Select a title"}),[{value:"Mr.",label:"Mr"},{value:"Dr.",label:"Dr"},{value:"Prof.",label:"Prof"},{value:"Mrs.",label:"Mrs"},{value:"Ms.",label:"Ms"},{value:"M/S.",label:"M/S"}].map(e=>(0,s.jsx)("option",{className:"text-black poppins-regular text-sm",value:e.value,children:e.label}))]}),(null===(e=el.title)||void 0===e?void 0:e.length)!==0&&(0,s.jsxs)("div",{className:"text-red-600 text-xs text-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:el.title})]})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full sm-w-1/2",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Your Good Name please"}),(0,s.jsx)("input",{ref:em,type:"text",className:"outline-none text-sm py-5 px-4 rounded poppins-regular bg-[#ffffffD4] transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(0!==el.name.length?"border-2 border-red-600 focus:border-red-600 focus:shadow-inner":""),placeholder:"Your Name please",onChange:e=>{let t=e.target.value,r="",s="";for(let e=0;e<t.length;e++){let l=t[e].charCodeAt(0);l>=65&&l<=90?s+=t[e]:l>=97&&l<=122?s+=t[e]:l>=48&&l<=57?s+=t[e]:32===l?s+=t[e]:r="Special characters are not allowed"}0===s.length&&(r="Please enter your name"),s.length>=60&&(r="Only 60 characters are allowed"),ea({...el,name:r}),es({...er,name:t})},onBlur:()=>{er.name.trim()||ea({...el,name:"Please enter your name"})},value:er.name}),(null===(t=el.name)||void 0===t?void 0:t.length)!==0&&(0,s.jsxs)("div",{className:"text-red-600 text-xs text-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:el.name})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-6",children:[(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Country"}),(0,s.jsx)(i,{name:er.country_name,onBlur:()=>{let e={...el};er.country<=0?e.country="Please select your country":e.country="",ea(e)},onChange:e=>{let t=e.target.value,r=e.target.options[e.target.selectedIndex].getAttribute("data-phonecode"),s=e.target.options[e.target.selectedIndex].getAttribute("data-alphacode"),l=e.target.options[e.target.selectedIndex].getAttribute("data-name");s&&s.length>0&&T(s),l&&(es({...er,country:parseInt(t),country_name:l,state:-1,state_name:"",city:-1,city_name:"",phoneCode:Number(r)}),ea({...el,country:""}))},value:null==er?void 0:er.country,countryerror:null==el?void 0:el.country,countryRef:eh}),(null==el?void 0:el.country.length)!==0&&(0,s.jsx)("div",{className:"text-red-600 flex justify-end",children:(0,s.jsxs)("div",{className:"text-red-600",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:null==el?void 0:el.country})]})})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"State / County / provenance"}),(0,s.jsx)(m,{country_id:null==er?void 0:er.country,name:"state_id",onBlur:()=>{let e={...el};er.state<=0?e.state="Please select your state":e.state="",ea(e)},onChange:e=>{let t=e.target.value,r=e.target.options[e.target.selectedIndex].getAttribute("data-name"),s=parseInt(t);r&&(es({...er,state:s,state_name:r,city:-1,city_name:""}),ea({...el,state:""}))},value:null==er?void 0:er.state,stateError:el.state}),(null==el?void 0:el.state.length)!==0&&(0,s.jsx)("div",{className:"text-red-600 flex justify-end",children:(0,s.jsxs)("div",{className:"text-red-600",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:null==el?void 0:el.state})]})})]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-6",children:[(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"City"}),(0,s.jsx)(d,{country_id:null==er?void 0:er.country,state_id:null==er?void 0:er.state,name:"city",onBlur:()=>{let e={...el};er.city<=0?e.city="Please select your city":e.city="",ea(e)},onChange:e=>{let t=e.target.value,r=e.target.options[e.target.selectedIndex].getAttribute("data-name"),s=parseInt(t);r&&(es({...er,city:s,city_name:r}),ea({...el,city:""}))},value:null==er?void 0:er.city,cityError:el.city}),(null==el?void 0:el.city.length)!==0&&(0,s.jsxs)("div",{className:"text-red-600 text-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:null==el?void 0:el.city})]})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Mobile Number"}),(0,s.jsx)(w,{countryName:F,formDataOnceClick:ee,setFormDataOnceClick:et,formData:er,setFormData:es,formError:el,setFormError:ea,setRequestAdd:ec,mobileNumberObj:en,setMobileNumberObj:eo,mobileVerified:I,setMobileVerified:D,mobileRef:ex,setUserMobileNumberExist:H,countryRef:eh})]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-6",children:[(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Your Company Name Please"}),(0,s.jsx)("input",{type:"text",className:"focus:outline-none text-sm py-5 px-4 roun
1ded poppins-regular bg-[#ffffffD4] border border-gray-300 hover:border-gray-400 transition duration-200 ease-in-out placeholder:text-[#7F7A7A] text-black",placeholder:"Your Company Name please",onChange:e=>{es({...er,companyName:e.target.value})},value:er.companyName})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Website URL (if available)"}),(0,s.jsx)("input",{type:"text",className:"outline-none text-sm py-5 px-4 rounded poppins-regular bg-[#ffffffD4] transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(0!==el.websiteUrl.length?"border-2 border-red-600 focus:border-red-600 focus:shadow-inner":""),placeholder:"Your Company Website's URL",onChange:eP,value:er.websiteUrl}),(null==el?void 0:el.websiteUrl.length)!==0&&(0,s.jsxs)("div",{className:"text-red-600 text-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:null==el?void 0:el.websiteUrl})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row w-full gap-6",children:[(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Company eMail I'd (if you have)"}),(0,s.jsx)(C,{companyEmailID:B,setCompanyEmailID:W,companyEmailVerified:G,setCompanyEmailVerified:Z,setCompanyEmailExist:K,formData:er,setFormData:es,formError:el,setFormError:ea,formDataOnceClick:ee,setFormDataOnceClick:et,companyMailRef:ev})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular text-white",children:"Social eMail I'd"}),(0,s.jsx)(E,{formDataOnceClick:ee,setFormDataOnceClick:et,formData:er,setFormData:es,formError:el,setFormError:ea,emailVerified:q,setEmailVerified:V,userEmailID:M,setUserEmailID:L,setEmailIdExist:U,emailIdRef:ep})]})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col w-full",children:[(0,s.jsx)("label",{className:"poppins-regular w-full text-white",children:"Your Designation"}),(0,s.jsxs)("select",{id:"role",value:er.designation,onChange:e=>{es({...er,designation:e.target.value}),"Others"===e.target.value&&es({...er,designation:""}),$(e.target.value)},className:"outline-none text-sm py-5 px-4 poppins-regular flex-1 appearance-none bg-[#ffffffD4] rounded transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(0!==el.designation.length?"border-2 border-red-600 focus:border-red-600 focus:shadow-inner":""," ").concat(er.designation?"text-black":"text-[#7F7A7A]"),children:[(0,s.jsx)("option",{className:"text-[#7F7A7A] poppins-regular text-sm",value:"",children:"Select a role"}),(0,s.jsx)("option",{className:"text-black poppins-regular text-sm",value:"Company Boss / Chairman / Chairperson / Owner",children:"Company Boss / Chairman / Chairperson / Owner"}),(0,s.jsx)("option",{className:"text-black poppins-regular text-sm",value:"Company Tech Leader",children:"Company Tech Leader"}),(0,s.jsx)("option",{className:"text-black poppins-regular text-sm",value:"Team Leader",children:"Team Leader"}),(0,s.jsx)("option",{className:"text-black poppins-regular text-sm",value:"Others",children:"Others (Please specify)"})]}),"Others"===J&&(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsx)("label",{htmlFor:"otherRole",className:"block font-medium mb-2 poppins-regular text-white",children:"Please specify:"}),(0,s.jsx)("input",{id:"otherRole",type:"text",value:null==er?void 0:er.designation,onChange:e=>es({...er,designation:e.target.value}),placeholder:"Enter your role",className:"block w-full px-4 border rounded-md py-5 bg-[#ffffffD4] placeholder:text-[#7F7A7A] text-black poppins-regular text-sm"})]}),(null===(r=el.designation)||void 0===r?void 0:r.length)!==0&&(0,s.jsxs)("div",{className:"text-red-600 text-xs text-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:el.designation})]})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsx)("label",{className:"poppins-regular text-white",htmlFor:"You want to buy the Application?",children:"May we kindly request you to share which applications interest you the most?"}),(0,s.jsxs)("div",{className:"outline-none text-sm poppins-regular grid grid-flow-row md:grid-cols-7 lg:grid-cols-8 bg-[#ffffffD4] rounded transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(0!==el.serviceRequired.length?"border-2 border-red-600 focus:border-red-600 focus:shadow-inner":""),children:[(0,s.jsxs)("div",{className:"w-full col-span-2 md:col-span-1 flex items-center md:justify-center gap-2 px-4 py-5 border-[#7F7A7A] border-b-2 md:border-b-0 md:border-r-2 ",children:[(0,s.jsx)("input",{id:"all",type:"checkbox",onChange:e=>eE("all",e),checked:h,className:"scale-125"}),(0,s.jsx)("label",{htmlFor:"all",className:"poppins-regular text-sm text-[#7F7A7A] opacity-100",children:"All"})]}),(0,s.jsxs)("div",{className:"w-full col-span-2 flex items-center md:justify-center gap-2 px-4 py-5 border-[#7F7A7A] border-b-2 md:border-b-0 md:border-r-2 ",children:[(0,s.jsx)("input",{id:"e-shop",type:"checkbox",onChange:e=>eE("eshop application",e),checked:y,className:"scale-125"}),(0,s.jsx)("label",{htmlFor:"e-shop",className:"poppins-regular text-sm text-[#7F7A7A] opacity-100",children:"e-Shop Application"})]}),(0,s.jsxs)("div",{className:"w-full col-span-2 flex items-center md:justify-center gap-2 px-4 py-5 border-[#7F7A7A] border-b-2 md:border-b-0 md:border-r-2",children:[(0,s.jsx)("input",{id:"e-auction",type:"checkbox",onChange:e=>eE("eaution application",e),checked:N,className:"scale-125"}),(0,s.jsx)("label",{htmlFor:"e-auction",className:"poppins-regular text-sm text-[#7F7A7A]",children:"e-Auction Application"})]}),(0,s.jsxs)("div",{className:"w-full col-span-2 lg:col-span-3 flex items-center md:justify-center gap-2 px-4 py-5",children:[(0,s.jsx)("input",{id:"real-time-auction",type:"checkbox",onChange:e=>eE("real time auction application",e),checked:P,className:"scale-125"}),(0,s.jsx)("label",{htmlFor:"real-time-auction",className:"poppins-regular text-sm text-[#7F7A7A]",children:"Real Time Auction Application"})]})]}),(null===(c=el.serviceRequired)||void 0===c?void 0:c.length)!==0&&(0,s.jsxs)("div",{className:"text-red-600 text-xs text-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:el.serviceRequired})]})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsx)("label",{className:"poppins-regular text-white",children:"Your preferred method of communication"}),(0,s.jsxs)("div",{className:"outline-none text-sm poppins-regular flex flex-col md:flex-row bg-[#ffffffD4] rounded transition duration-200 ease-in-out placeholder:text-[#7F7A7A] ".concat(0!==el.contactPreference.length?"border-2 border-red-600 focus:border-red-600 focus:shadow-inner":""),children:[(0,s.jsxs)("div",{className:"w-full flex items-center md:justify-center gap-2 px-4 py-5 border-[#7F7A7A] border-b-2 md:border-b-0 md:border-r-2",children:[(0,s.jsx)("input",{id:"email",type:"radio",value:"email",name:"contact",checked:"email"===er.contactPreference,className:"scale-125",onChange:()=>{es({...er,contactPreference:"email"}),ea({...el,contactPreference:""})}}),(0,s.jsx)("label",{className:"poppins-regular text-sm text-[#7F7A7A]",htmlFor:"email",children:"By eMail"})]}),(0,s.jsxs)("div",{className:"w-full flex items-center md:justify-center gap-2 px-4 py-5",children:[(0,s.jsx)("input",{id:"whatsapp",type:"radio",value:"whatsapp",name:"contact",checked:"whatsapp"===er.contactPreference,className:"scale-125",onChange:()=>{es({...er,contactPreference:"whatsapp"}),ea({...el,contactPreference:""})}}),(0,s.jsx)("label",{className:"poppins-regular text-sm text-[#7F7A7A]",htmlFor:"whatsapp",children:"By WhatsApp"})]})]}),(null===(u=el.contactPreference)||void 0===u?void 0:u.length)!==0&&(0,s.jsxs)("div",{className:"text-red-600 text-xs text-end",children:[(0,s.jsx)(b.G,{icon:v.RLE}),(0,s.jsx)("span",{className:"px-1 poppins-medium text-sm",children:el.contactPreference})]})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col",children:[(0,s.jsx)("label",{className:"poppins-regular text-white",children:"Additional Information"}),(0,s.jsx)("textarea",{className:"focus:outline-none text-sm py-3 px-4 roun
1ded poppins-regular h-32 bg-[#ffffffD4] border border-gray-300 hover:border-gray-400 transition duration-200 ease-in-out placeholder:text-[#7F7A7A] text-black",placeholder:"Please feel free to share more about your requirements or how we can assist in fulfilling your needs.",onChange:e=>{es({...er,message:e.target.value})},value:er.message})]}),(0,s.jsxs)("button",{type:"submit",className:"relative group w-full py-2 px-6 mt-0 rounded bg-gradient-to-b from-[#58aefb] to-[#0061ff] transition-all duration-700 ease-in-out overflow-hidden",children:[(0,s.jsx)("span",{className:"absolute inset-0 rounded bg-gradient-to-r opacity-0 group-hover:opacity-100 transition-opacity duration-700 ease-in-out"}),(0,s.jsx)("span",{className:"relative z-10 text-white poppins-regular font-medium",children:"Submit"})]})]})]})})]})}}}]);
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.