1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2056],{32689:function(e,o,n){"use strict";n.d(o,{P:function(){return _}});var t=n(85893),r=n(67294),l=n(83677),a=n(57686),d=n(16732),s=n(1558),i=n(66353),c=n(22633),u=n.n(c);let _=e=>{let{getcountry:o,changeCountry:n,isPaymentDropDown:c=!1,onBlur:_=()=>{},onFocus:v=()=>{}}=e,{state:{Session:p,Location:f}}=(0,d.oR)(),[m,y]=(0,r.useState)(""),[w,h]=(0,r.useState)(""),[C,x]=(0,r.useState)(""),[g,S]=(0,r.useState)(""),[b,j]=(0,r.useState)(""),{mutate:k,data:L}=(0,l.Z)(),N=(0,r.useRef)(null),D=e=>{let o=new Date().getTime();return o-e>108e5};(0,r.useEffect)(()=>{if(p){let e=(0,s.rV)("apiCountryData");e&&!D(e.t)?(S(e.response),j(e.response)):(e&&(S(e.response),j(e.response)),k("".concat("https://api-apac.revlet.net","/service/api/v1/get/country")))}},[p]),(0,r.useEffect)(()=>{if(!(null==o?void 0:o.iconUrl)&&(null==g?void 0:g.length)&&!c){let e=g.find(e=>e.isdCode.toString()===(null==o?void 0:o.isdCode))||(null==g?void 0:g.find(e=>{var o,n;return e.code.toLocaleLowerCase()===(null===(n=f.ipInfo)||void 0===n?void 0:null===(o=n.countryCode)||void 0===o?void 0:o.toLocaleLowerCase())}))||g[0];x(e),n(e)}},[o,g]),(0,r.useEffect)(()=>{c||x(o)},[o]),(0,r.useEffect)(()=>{var e,t,r,l,d,i,u,_;if(null==L?void 0:L.data){if(null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.status){S(null==L?void 0:null===(t=L.data)||void 0===t?void 0:t.response),j(null==L?void 0:null===(r=L.data)||void 0===r?void 0:r.response);let e=null==L?void 0:null===(l=L.data)||void 0===l?void 0:l.response.filter(e=>{var o,n;return e.code.toLocaleLowerCase()===(null===(n=f.ipInfo)||void 0===n?void 0:null===(o=n.countryCode)||void 0===o?void 0:o.toLocaleLowerCase())});if((0,s.LS)("apiCountryData",{response:null==L?void 0:null===(d=L.data)||void 0===d?void 0:d.response,t:new Date().getTime()}),!o&&!c){let o=e[0];x(o),n(o)}}else(null==L?void 0:null===(i=L.data)||void 0===i?void 0:i.error)&&(null==L?void 0:null===(_=L.data)||void 0===_?void 0:null===(u=_.error)||void 0===u?void 0:u.code)===401&&(0,a.qP)()}},[L]),(0,r.useEffect)(()=>(document.addEventListener("click",Z,!1),()=>{document.removeEventListener("click",Z,!1)}),[N]);let E=()=>{"show"==w?h(""):h("show")},I=e=>{if(E(),n(e),c){y(e.name);return}x(e)},F=e=>{var o;y(e.target.value),c&&""==e.target.value&&n("");let t=(0,s.rV)("apiCountryData"),r=(null==t?void 0:t.response)||[...null==L?void 0:null===(o=L.data)||void 0===o?void 0:o.response],l=r.filter(o=>o.name.toLowerCase().includes(e.target.value.toLowerCase())||o.isdCode.toString().toLowerCase().includes(e.target.value.toString().toLowerCase()));l.length>0&&h("show"),S(l)},Z=e=>{N.current&&!N.current.contains(e.target)&&h("")};return c?(0,t.jsxs)("div",{ref:N,children:[(0,t.jsx)("input",{tabIndex:"-1",type:"text",placeholder:"Country",value:m,onChange:F,onBlur:e=>_(e),onFocus:e=>v(e),name:"country"}),(0,t.jsx)("div",{id:"myDropdown",className:" ".concat(u().dropdown_content," ").concat("show"==w&&u().show),children:(null==g?void 0:g.length)>0&&(0,t.jsx)("div",{className:" ".concat(u().countries_list),children:g.map(e=>(0,t.jsxs)("div",{onClick:()=>I(e),onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()},children:[(0,t.jsx)("img",{src:e.iconUrl,alt:"flag"}),(0,t.jsxs)("span",{children:[e.name," +",e.isdCode]})]},null==e?void 0:e.code))})})]}):(0,t.jsxs)("div",{className:" ".concat(u().dropdown),ref:N,children:[(0,t.jsxs)("button",{className:" ".concat(u().dropbtn),tabIndex:"-1",type:"button",onClick:E,children:[(0,t.jsx)("img",{src:null==C?void 0:C.iconUrl,alt:""}),(0,t.jsxs)("span",{children:["+",null==C?void 0:C.isdCode]}),(0,t.jsx)("span",{className:" ".concat(u().down_arrow)})]}),(0,t.jsxs)("div",{id:"myDropdown",className:" ".concat(u().dropdown_content," ").concat("show"==w&&u().show),children:[(0,t.jsx)("input",{tabIndex:"-1",type:"text",placeholder:"Search..",value:m,onChange:F}),""!=m&&(0,t.jsx)("span",{className:" ".concat(u().clear),children:(0,t.jsx)("img",{onClick:e=>{null==e||e.stopPropagation(),y(""),S(b)},src:"".concat(i.Z.countryDropDown.closeIcon),alt:"close"})}),(0,t.jsx)("div",{className:" ".concat(u().countries_list),children:(null==g?void 0:g.length)>0&&g.map(e=>(0,t.jsxs)("div",{onClick:()=>I(e),children:[(0,t.jsx)("img",{src:e.iconUrl,alt:"flag"}),(0,t.jsxs)("span",{children:[e.name," +",e.isdCode]})]},null==e?void 0:e.code))})]})]})}},42635:function(e,o,n){"use strict";var t=n(85893),r=n(98271),l=n(84781),a=n(97953),d=n.n(a);o.Z=e=>{let{name:o,label:n,errorMsg:a,type:s,register:i,errors:c,trigger:u,clearErrors:_,validateFunction:v=()=>{},customStyle:p,allowSpaces:f=!1,...m}=e;return(0,t.jsxs)("div",{className:" ".concat(p||d().textField," ").concat(null==m?void 0:m.customClassName),children:[(0,t.jsx)(r.Z,{fullWidth:!0,variant:(null==m?void 0:m.variant)||"outlined",margin:"normal",name:o,label:n,sx:l.HC,type:s||"text",autoComplete:"off",...i(o,{required:!!m.isMandatory&&(a||"".concat(n.replace(/\*/g,"")," Required")),validate:e=>""==e&&void 0!=m.isMandatory&&!m.isMandatory||v(e)}),onBlur:()=>u(o),onFocus:()=>_(o),onKeyDown:e=>{f||32!==e.keyCode||e.preventDefault()},...m}
1),(0,t.jsx)("div",{className:" ".concat(d().valid_error," "),children:c[o]&&c[o].message})]})}},22633:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",dropdown:"country-dropdown_dropdown__yGfr3",dropbtn:"country-dropdown_dropbtn__m8Obd",down_arrow:"country-dropdown_down_arrow__S_upv",dropdown_content:"country-dropdown_dropdown_content__C34hx",clear:"country-dropdown_clear__xaAm2",countries_list:"country-dropdown_countries_list__6fbh4",show:"country-dropdown_show__xxm0z"}},97953:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",textField:"formStyles_textField___Toyy",datePicker:"formStyles_datePicker__ESonp",inline:"formStyles_inline__7kQhe",mobileNumber:"formStyles_mobileNumber__tg_vc",has_country_code:"formStyles_has_country_code__Sn0FC",valid_error:"formStyles_valid_error__SIS0R",show:"formStyles_show__fMH7C",genderCont:"formStyles_genderCont__qWda7",genderLabel:"formStyles_genderLabel__1RB8n",loopGender:"formStyles_loopGender__nvZKQ",genderradio:"formStyles_genderradio__lZ8fK",whitebtn:"formStyles_whitebtn__1WIGV",indicator:"formStyles_indicator__viHk_",primary:"formStyles_primary__arpxg",dotbutton:"formStyles_dotbutton__I2yp8",label_text:"formStyles_label_text__DvJdg",errorAndForgotContainer:"formStyles_errorAndForgotContainer__GkSal",forgetpassword:"formStyles_forgetpassword__ZMar8"}}}]);
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.