1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8958,3423,8761,1783,261,3133,6067,1655,2502,7302,4708],{51786:function(e,t,n){var r=n(57437);n(2265);var o=n(76975),a=n(17162),i=n(73126),s=n(95576);t.Z=e=>{let{message:t,open:n,setOpen:l,severity:c,renderHTML:u}=e;return(0,r.jsx)(a.Z,{in:n,children:(0,r.jsxs)(i.Z,{severity:c,action:(0,r.jsx)(s.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>l(!1),children:(0,r.jsx)(o.Z,{icon:"solar:close-circle-bold"})}),sx:{mt:3,mb:3,alignItems:"center"},children:[t,u]})})}},25805:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(57437),o=n(2265),a=n(43949),i=n(32175),s=n(55447),l=n(19902),c=n(46387),u=n(73126),d=n(1899),p=n(44811);function h(e){let{siteKey:t="0b66a2cc-2420-41c6-9e3c-18d696fcd79c",onVerify:n,onExpire:h,onError:f,theme:g="light",size:x="normal",buttonText:m="Submit",title:y="register.verifyHuman"}=e,[b,v]=(0,o.useState)(null),[C,j]=(0,o.useState)(!1),{t:w}=(0,a.$G)(),Z=(0,o.useRef)(null),S=async e=>{v(null);try{var t,r,o;let a=await s.ZP.post("https://api.xyes.com/api/v1"+s.Hv.auth.verifyCaptcha,{captcha:e});(null===(t=a.data)||void 0===t?void 0:t.data)&&(null===(o=a.data)||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.success)?(j(!0),n&&n(e)):(v("Failed to verify captcha. Please try again."),j(!1))}catch(e){v("Failed to verify captcha. Please try again."),j(!1)}};return(0,r.jsxs)(l.Z,{elevation:3,sx:{p:3,maxWidth:500,mx:"auto"},children:[(0,r.jsx)(c.Z,{variant:"h6",gutterBottom:!0,children:w(y)}),b&&(0,r.jsx)(u.Z,{severity:"error",sx:{mb:2},children:b}),C&&(0,r.jsx)(u.Z,{severity:"success",sx:{mb:2},children:w("register.verificationSuccess")}),(0,r.jsxs)(d.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[(0,r.jsx)(i.Z,{sitekey:t,onVerify:S,onExpire:()=>{j(!1),h&&h()},onError:e=>{v("Error verifying captcha. Please try again."),j(!1),f&&f(e)},ref:Z,theme:g,size:x}),"invisible"!==x&&(0,r.jsx)(d.Z,{sx:{display:"flex",gap:2,mt:2},children:(0,r.jsx)(p.Z,{variant:"outlined",onClick:()=>{Z.current&&Z.current.resetCaptcha(),j(!1),v(null)},children:w("register.reset")})})]})]})}},68153:function(e,t,n){n.d(t,{P:function(){return j}});var r=n(57437),o=n(33145),a=n(60033),i=n(20360),s=n(2265),l=n(69430),c=n(57099),u=n(16210),d=n(33833),p=n(31691),h=n(1899),f=n(19643),g=n(2323),x=n(12713),m=n(50290),y=n(46387),b=n(76975),v=n(11417);let C=(0,u.ZP)(d.Z)(e=>{let{theme:t}=e;return{"& .MuiSelect-select":{display:"flex",alignItems:"center",padding:t.spacing(1),paddingRight:t.spacing(3)},"& .MuiSelect-icon":{pointerEvents:"auto",right:0}}}),j=e=>{let{handleCountrySelect:t,handlePhoneChange:n,selectedCountry:u,phoneNumberSelected:d,isDisabled:j}=e,{t:w}=(0,a.i)(),{countryCodes:Z}=(0,l.$J)("en"),[S,k]=(0,s.useState)(""),[I,L]=(0,s.useState)(0),N=(0,s.useRef)(null);(0,s.useEffect)(()=>
1{N.current&&L(N.current.offsetWidth-30)},[]);let P=Z.filter(e=>e.dialCode.toLowerCase().includes(S.toLowerCase())||e.code.toLowerCase().includes(S.toLowerCase())||e.countryName.toLowerCase().includes(S.toLowerCase())||String(e.phoneCode).toLowerCase().includes(S.toLowerCase())),E=(0,p.Z)(),F=(0,i.y)(d,u),R=e=>"Ascension Island"===e.countryName||"Tristan da Cunha"===e.countryName?w("countries.".concat(e.countryNameKey)):String(e.countryName);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.Z,{ref:N,display:"flex",sx:{backgroundColor:"#0a0f18",border:"3px solid ".concat(d&&!0==!F?"darkred":"#444a57"),borderRadius:"13px",height:"57px"},children:[(0,r.jsxs)(C,{onChange:t,disabled:j,error:!!(d&&!F),sx:{width:"147px",height:"50px","& .MuiInputBase-root-MuiOutlinedInput-root-MuiSelect-root":{height:"54px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiSelect-icon":{transform:"scale(1.5)",marginRight:"10px"},border:"none","&:focus":{border:"none"}},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{width:"".concat(I,"px")},sx:{maxHeight:{xs:c.el*c.Uk+c.X3,sm:c.Lu*c.Uk+c.X3},width:350,overflowY:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"}}},autoFocus:!1},renderValue:e=>{if(!e)return(0,r.jsx)(f.Z,{direction:"row",style:{alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(b.Z,{icon:"phone-rounded-linear",color:E.palette.primary.light})});let t=P.find(t=>t.code===e);return t&&Object.values(t).every(e=>""!==e)?(0,r.jsxs)(f.Z,{direction:"row",style:{alignItems:"center",justifyContent:"center"},children:[(0,r.jsx)(o.default,{width:25,height:20,src:String(t.image),alt:String(t.code),style:{marginRight:8}}),(0,r.jsx)("span",{children:t.dialCode})]}):(0,r.jsx)(f.Z,{direction:"row",style:{alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(b.Z,{icon:"phone-rounded-linear",color:E.palette.primary.light})})}
1,value:u,name:"countryPhoneCode",id:"countryPhoneCode",children:[(0,r.jsx)(h.Z,{sx:{position:"sticky",top:-5,bgcolor:"background.paper",zIndex:2},children:(0,r.jsx)(g.Z,{sx:{width:"100%"},children:(0,r.jsx)(x.Z,{autoFocus:!0,fullWidth:!0,value:S,sx:{width:"100%"},onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"!==e.key&&e.stopPropagation()}})})}),P.map(e=>(0,r.jsxs)(m.Z,{value:e.code,sx:{},children:[(0,r.jsx)(o.default,{width:25,height:20,src:e.image,alt:e.code,style:{marginLeft:8}}),(0,r.jsxs)(h.Z,{sx:{width:"100%",float:"left",padding:"10px 25px"},children:[(0,r.jsx)(y.Z,{sx:{fontSize:"14px",float:"left"},children:R(e)}),(0,r.jsx)(y.Z,{variant:"body2",sx:{fontWeight:"bold",width:"5%",float:"right"},children:"".concat(e.dialCode)})]})]},e.id))]}),(0,r.jsx)(v.a,{type:"tel",name:"phoneNumber",disabled:j,error:!!(d&&!F),id:"phoneNumber",sx:{flexGrow:1,"& .MuiInputBase-input::placeholder":{color:"#FFFFFF"},"& input:-webkit-autofill":{border:"none",borderRadius:"0px",height:"0px"},"& .MuiOutlinedInput-root":{height:"50px","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},"&.Mui-error fieldset":{border:"none"}},"& .MuiInputLabel-root":{"&.Mui-focused":{color:"inherit"}},width:"100%",maxWidth:{lg:"408px",xs:"none"},borderColor:"none",borderLeft:"3px solid ".concat(d&&!0==!F?"darkred":"#444a57")},InputLabelProps:{style:{color:"#fff"}},InputProps:{startAdornment:(0,r.jsx)(h.Z,{sx:{display:"flex",justifyContent:"left",zIndex:9},children:(0,r.jsx)(b.Z,{icon:"ph:phone-call-light",color:E.palette.primary.light})})},placeholder:w("login.phoneNumber"),onChange:e=>{n(e)},value:(0,l.un)(d,u).nationalNumber})]}),d&&!F&&(0,r.jsx)(y.Z,{color:"#ba3619",sx:{textAlign:"end",marginRight:"30px"},children:w("validators.phoneIsInvalid")})]})}},47302:function(e,t,n){n.r(t),n.d(t,{default:function(){return a}});var r=n(57437),o=n(29501);function a(e){let{children:t,onSubmit:n,methods:a}=e;return(0,r.jsx)(o.RV,{...a,children:(0,r.jsx)("form",{onSubmit:n,children:t})})}},11417:function(e,t,n){n.d(t,{a:function(){return c},Z:function(){return r.default}});var r=n(47302),o=n(57437);n(2265);var a=n(29501),i=n(1899),s=n(89051),l=n(12713);function c(e){let{name:t,helperText:n,type:r,tooltip:c,handleTooltipClose:u,open:d,labelInput:p,boxStyles:h,maxLength:f,...g}=e,{control:x}=(0,a.Gc)(),m=h||{width:"100%"};return(0,o.jsx)(a.Qr,{name:t,control:x,render:e=>{let{field:a,fieldState:{error:h}}=e,x={...g.inputProps,autoComplete:"new-password",...f?{maxLength:f}:{}},y=p?(0,o.jsxs)(i.Z,{sx:m,children:[p,(0,o.jsx)(l.Z,{...a,id:t,fullWidth:!0,type:r,value:"number"===r&&0===a.value?"":a.value,onChange:e=>{"number"===r?a.onChange(Number(e.target.value)):a.onChange(e.target.value)},error:!!h,helperText:h?h.message:n,...g,inputProps:x})]}):(0,o.jsx)(l.Z,{...a,id:t,fullWidth:!0,type:r,value:"number"===r&&0===a.value?"":a.value,onChange:e=>{"number"===r?a.onChange(Number(e.target.value)):a.onChange(e.target.value)},error:!!h,helperText:h?h.message:n,...g,inputProps:{...g.inputProps,autoComplete:"new-password"}});return c?(0,o.jsx)(s.Z,{placement:"top-start",title:c,PopperProps:{disablePortal:!0},onClose:u,open:d,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,children:y}):y}})}},28761:function(e,t,n){var r=n(57437),o=n(2265),a=n(44811),i=n(12713),s=n(31691),l=n(82156),c=n(1899);function u(e){return e>5?5:e<0?0:e}let d={inputValues:Array(6).fill(""),focusedIndex:0,status:"idle"},p=e=>{let{index:t,value:n,onChange:a,onPaste:s,onBackspace:l,isFocused:c,onFocus:u,isDisabled:d}=e,p=(0,o.useRef)(null);return(0,o.useEffect)(()=>{p.current&&c&&p.current.focus()},[c]),(0,r.jsx)(i.Z,{inputRef:p,type:"text",value:n,onChange:e=>{a(t,e.target.value)},onPaste:e=>{s(e.clipboardData.getData("text"))},onKeyDown:e=>{"Backspace"===e.key&&""===n&&l(t)},inputProps:{maxLength:1,style:{textAlign:"center"},autoComplete:"off"},onFocus:()=>{u(t)},disabled:d,variant:"outlined",size:"medium"})};function h(e,t){switch(t.type){case"INPUT":return{...e,inputValues:[...e.inputValues.slice(0,t.payload.index),t.payload.value,...e.inputValues.slice(t.payload.index+1)],focusedIndex:u(t.payload.index+1)};case"BACK":{let n=u(t.payload.index-1);return{...e,inputValues:[...e.inputValues.slice(0,n),"",...e.inputValues.slice(n+1)],focusedIndex:n}}case"PASTE":return{...e,inputValues:e.inputValues.map((e,n)=>t.payload.pastedValue[n]||"")};case"FOCUS":return{...e,focusedIndex:t.payload.focusedIndex};case"VERIFY":return{...e,status:"pending"};case"VERIFY_SUCCESS":return{...e,status:"success"};case"VERIFY_FAILURE":return{...e,status:"failure"};case"CLEAR_INPUTS":return{...d};default:throw Error("unknown action")}}t.Z=e=>{let{defaultButtonText:t="Submit",footer:n,loadingButtonText:i="Loading...",handleSubmit:u,showButton:f=!0,buttonColor:g,fullWidthButton:x=!1,buttonMarginTop:m=0}=e,[{inputValues:y,focusedIndex:b,status:v},C]=(0,o.useReducer)(h,d),j=(0,s.Z)(),w=(0,l.Z)(j.breakpoints.down("sm")),Z=(e,t)=>{C({type:"INPUT",payload:{index:e,value:t}})},S=e=>{C({type:"BACK",payload:{index:e}})},k=e=>{C({type:"PASTE",payload:{pastedValue:e}})},I=e=>{C({type:"FOCUS",payload:{focusedIndex:e}})},L=y.every(e=>""!==e),N=async e=>{if(e.preventDefault(),L){C({type:"VERIFY"});try{await u(y),C({type:"VERIFY_SUCCESS"})}catch(e){C({type:"VERIFY_FAILURE"})}finally{setTimeout(()=>{C({type:"CLEAR_INPUTS"})},2e3)}}};return(0,o.useEffect)(()=>{L&&!f&&N(new Event("submit"))},[L,f]),(0,r.jsx)("form",{onSubmit:N,children:(0,r.jsxs)(c.Z,{display:"flex",flexDirection:"column",gap:2,alignItems:"center",children:[(0,r.jsx)(c.Z,{display:"flex",gap:w?.5:2,children:y.map((e,t)=>
1(0,r.jsx)(p,{index:t,value:e,onChange:Z,onBackspace:S,onPaste:k,isFocused:t===b,onFocus:I,isDisabled:"pending"===v},t))}),n&&(0,r.jsx)(c.Z,{width:"100%",children:n}),f&&(0,r.jsx)(a.Z,{type:"submit",disabled:"pending"===v||!L,variant:"header",fullWidth:x,sx:{mt:m,pt:1.5,pb:1.5,pr:4,pl:4,backgroundColor:g?"".concat(g,".main"):"primary.main","&:hover":{backgroundColor:g?"".concat(g,".dark"):"primary.dark"},...g&&{boxShadow:2,"&:hover":{backgroundColor:"".concat(g,".dark"),boxShadow:2}}},children:"pending"===v?i:t})]})})}},43161:function(e,t,n){n.d(t,{m:function(){return i}});var r=n(2265),o=n(60033),a=n(68575);let i=()=>{let{getLang:e}=(0,o.i)(),t=(0,a.v9)(e=>e.user.data);return{getLink:(0,r.useCallback)(n=>{let r=e()||(null==t?void 0:t.settings.language);if("en"!==String(r).toLowerCase()&&"en-us"!==String(r).toLowerCase()){let e;if(n){let t=n.startsWith("/")?n:"/".concat(n);e="/".concat(r).concat(t)}else e="/".concat(r);return e}return n?n.startsWith("/")?n:"/".concat(n):"/"},[e,null==t?void 0:t.settings.language])}}},36067:function(e,t,n){n.r(t),n.d(t,{SnackbarProvider:function(){return u},useSnackbar:function(){return d}});var r=n(57437),o=n(2265),a=n(60033),i=n(73986),s=n(73126);let l=o.createContext(void 0),c=o.forwardRef((e,t)=>(0,r.jsx)(s.Z,{elevation:6,ref:t,variant:"filled",...e})),u=e=>{let{children:t}=e,[n,s]=o.useState({open:!1,message:"",type:"success",position:{vertical:"top",horizontal:"center"},autoHideDuration:3e3}),{t:u}=(0,a.i)(),d=o.useCallback(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{vertical:"top",horizontal:"center"},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3;s({open:!0,message:e,type:t,position:n,autoHideDuration:r})},[]),p=()=>{s(e=>({...e,open:!1}))},h=o.useMemo(()=>({showMessage:d}),[d]);return(0,r.jsxs)(l.Provider,{value:h,children:[t,(0,r.jsx)(i.Z,{open:n.open,autoHideDuration:n.autoHideDuration,onClose:p,anchorOrigin:n.position,children:(0,r.jsx)(c,{onClose:p,severity:n.type,sx:{backgroundColor:"info"===n.type?"#2196F3":void 0},children:u(n.message)})})]})},d=()=>{let e=o.useContext(l);if(!e)throw Error("useSnackbar must be used within a SnackbarProvider");return e}},13719:function(e,t,n){n.d(t,{P:function(){return r}});let r={phoneNumber:"",verificationCode:""}},78292:function(e,t,n){n.d(t,{Mu:function(){return o},vA:function(){return i},xh:function(){return a}});var r=n(17863);function o(e,t){return e?(0,r.Z)(new Date(e),t||"dd MMM yyyy"):""}function a(e){return e?(0,r.Z)(new Date(e),"HH:mm:ss"):""}let i=e=>{let t=e%60;return"".concat(Math.floor(e/60),":").concat(t<10?"0".concat(t):t)}},69430:function(e,t,n){n.d(t,{$J:function(){return s},RE:function(){return l},un:function(){return c}});var r=n(61791),o=n(93781),a=n(19368),i=n(66574);r.registerLocale(n(56170)),r.registerLocale(n(97988)),r.registerLocale(n(28427)),r.registerLocale(n(23164)),r.registerLocale(n(40868)),r.registerLocale(n(67887)),r.registerLocale(n(4438)),r.registerLocale(n(97846)),r.registerLocale(n(85664)),r.registerLocale(n(48962)),r.registerLocale(n(53540)),r.registerLocale(n(99746));let s=e=>{let t=(0,o.o)(),n=t.map(t=>"AC"===String(t).toUpperCase()?{id:"country-".concat(String(t).toUpperCase()),code:t,dialCode:"+247",countryName:"Ascension Island",countryNameKey:"ascensionIsland",image:"".concat("https://img.xyes.com/","assets/icons/flags/ic_ascension_island.svg"),phoneCode:247}:"TA"===String(t).toUpperCase()?{id:"country-".concat(String(t).toUpperCase()),code:t,dialCode:"+290",countryName:"Tristan da Cunha",countryNameKey:"tristanDaCunha",image:"".concat("https://img.xyes.com/","assets/icons/flags/ic_tristan_da_cunha.svg"),phoneCode:290}:{id:"country-".concat(String(t).toUpperCase()),code:t,dialCode:"+".concat((0,a.G)(t)),countryName:String((0,r.getName)(t,e)),countryNameKey:String((0,r.getName)(t,e)).split(" ").map((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(""),image:"https://flagcdn.com/w40/".concat(String(t).toLocaleLowerCase(),".webp"),phoneCode:(0,a.G)(t)}),i=n.sort((e,t)=>
1Number(e.phoneCode)-Number(t.phoneCode)),s=i.map(e=>e.code);return{countries:t,countryCodes:n,countriesSorted:i,codesSorted:s}},l=e=>{try{let t=(0,i.h)(e);return{country:t.country,nationalNumber:t.nationalNumber,number:t.number}}catch(e){return null}},c=(e,t)=>{try{let n=(0,i.h)(e,t);return{nationalNumber:n.formatNational(),internationalNumber:n.formatInternational()}}catch(t){return{nationalNumber:e,internationalNumber:e}}}},56574:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(57437),o=n(1899),a=n(73053);function i(e){let{countdown:t}=e;return(0,r.jsxs)(o.Z,{sx:{position:"relative",display:"inline-flex"},children:[(0,r.jsx)(a.Z,{variant:"determinate",value:100,size:15,thickness:5,sx:{color:"grey.500"}}),(0,r.jsx)(a.Z,{variant:"determinate",value:t,size:15,thickness:5,sx:{color:"orange",position:"absolute",left:0}})]})}}}]);
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.