(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8015],{48978:function(e,o,r){"use strict";r.d(o,{Z:function(){return UI_CountryPopOver}});var n=r(85893),l=r(67294),s=r(53511),a=r(38917),t=r(12529),i=r(14578),d=r(89983),c=r.n(d),p=r(1353),u=r(75147),_=r(10682),h=r(34051),m=r(31555),x=r(83269);r(25675);var y=r(47516);r(66624);var UI_CountryPopOver=function(e){let o=e.appCode,[r,d]=(0,l.useState)(!1),[C,v]=(0,l.useState)(null),g=(0,l.useRef)(null),j=(0,l.useRef)(null),[f,b]=(0,l.useState)(""),[N,P]=(0,l.useState)(p.G),[Z,w]=(0,l.useState)(e.countryCode),[S,O]=(0,l.useState)(e.phone),handleClick=o=>{e.disableCode||(filter({preventDefault:()=>{},target:{value:""}}),d(!r),v(o.target))},filter=e=>{e.preventDefault();let o=e.target.value;if(""!==o){let e=p.G.filter(e=>e.countryName.toLowerCase().startsWith(o.toLowerCase()));P(e)}else P(p.G);b(o)},onClickTblRow=r=>{w(n=>(e.isdCode(1==o?"+"+r.isdCallingCode:r.countryId),e.isdCallingCode&&e.isdCallingCode(r.isdCallingCode),d(!1),P(p.G),b(""),"+"+r.isdCallingCode))},handleKeyDown=(e,o)=>{38===e.keyCode||40===e.keyCode?(e.preventDefault(),null!=j&&(j.current&&40===e.keyCode?(j=j.current).focus():(38===e.keyCode&&j.previousElementSibling?j=j.previousElementSibling:40===e.keyCode&&j.nextElementSibling&&(j=j.nextElementSibling),null!=j&&j.focus()))):13===e.keyCode&&o&&onClickTblRow(o)},onMobileChange=o=>{if(e.disablePhone)return;let r=o.target.value;O(o=>(e.mobile(r),r))};return(0,l.useEffect)(()=>{if(1==x.Z.getVerificationRequired()){let o=x.Z.getMobile(),r=x.Z.getCountryId(),n=x.Z.getISDCallingCode();"0000"!=o&&(O(o),w("+"+n),e.isdCode(r),e.mobile(o))}},[]),(0,l.useEffect)(()=>{1==o&&w(e.countryCode)},[e.countryCode]),(0,l.useEffect)(()=>{1==o&&O(e.phone)},[e.phone]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("style",{type:"text/css",children:""})," ",(0,n.jsxs)("div",{ref:g,children:[1==o&&(0,n.jsxs)("div",{className:c().outerDiv,children:[(0,n.jsxs)("div",{className:"".concat(c().v1," ").concat(c().onboarding),children:[(0,n.jsx)("label",{className:c().textStyle,children:"Mobile Number*"}),(0,n.jsxs)("div",{className:c().iC1,children:[(0,n.jsx)("input",{style:{width:"100%"},className:c().inputStyle,value:Z,readOnly:!0,id:"isd-code",variant:"outline-light",placeholder:"",name:"isdCode",onClick:handleClick}),(0,n.jsx)(y.OrA,{size:25,style:{color:"var(--white)"}})]})]}),(0,n.jsxs)("div",{style:{flexDirection:"row",alignItems:"flex-end"},className:"".concat(c().v2," ").concat(c().onboarding," ").concat(c().t2," "),children:[(0,n.jsx)("input",{style:{width:"100%"},className:c().inputStyle,onChange:onMobileChange,value:S,name:"mobile",placeholder:""}),!e.disablePhone&&(0,n.jsx)(y.n2B,{size:20,style:{color:"var(--white)"}})]})]}),1!=o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.Z.Control,{className:"".concat(c().loginInput," ").concat(c().countryCodeInput," "),value:Z,id:"isd-code",readOnly:!0,onClick:handleClick,variant:"outline-light",placeholder:"Country Code",name:"isdCode"}),(0,n.jsx)(t.Z.Control,{className:"".concat(c().loginInputName," ").concat(c().mobileInput),onChange:onMobileChange,value:S,name:"mobile",placeholder:"Mobile number"})]}),(0,n.jsx)("div",{className:"my-custom-popover",children:(0,n.jsx)(s.Z,{show:r,target:C,placement:"right-start",container:g,containerPadding:-10,children:(0,n.jsx)(a.Z,{id:"popover-contained",children:(0,n.jsxs)(a.Z.Body,{bsPrefix:!0,className:c().popoverbody,children:[(0,n.jsxs)("div",{className:c().SearchWidth,children:[(0,n.jsx)(t.Z,{className:"flex1",autoComplete:"off",children:(0,n.jsx)(t.Z.Group,{children:(0,n.jsx)(t.Z.Control,{type:"text",placeholder:"Search Country",name:"country",value:f,onChange:filter,onKeyDown:e=>handleKeyDown(e)})})}),(0,n.jsx)("div",{className:c().closeIcon,style:{cursor:"pointer"},children:(0,n.jsx)(i.ven,{onClick:()=>{d(!1)}})})]}),(0,n.jsx)("div",{className:c().regcountryScroll,children:(0,n.jsx)(u.Z,{striped:!0,bordered:!0,hover:!0,className:c().tablebg,children:(0,n.jsx)("tbody",{className:c().borderTop,children:N&&N.length>0?N.map((e,o)=>(0,n.jsx)(_.Z,{fluid:!0,children:(0,n.jsxs)(h.Z,{ref:0===o?j:null,onClick:()=>onClickTblRow(e),className:c().countryCss+" "+(4==o?c().highlightBorder:c().normalBorder),onKeyDown:o=>handleKeyDown(o,e),children:[(0,n.jsxs)(m.Z,{sm:"2",xs:"2",className:"p-0 "+c().customBg,children:["+",e.isdCallingCode]}),(0,n.jsx)(m.Z,{sm:"2",xs:"2",className:"p-0 "+c().customBg,children:e.ISOCountryCode}),(0,n.jsx)(m.Z,{sm:"8",xs:"8",className:"p-0 "+c().customBg,children:e.countryName})]})},"country-"+o)):(0,n.jsx)("tr",{style:{borderTop:"1px solid",borderColor:"#999",textAlign:"center"},children:"No search results found"})})})})]})})})})]})]})}},32967:function(e,o,r){"use strict";r.d(o,{Z:function(){return ErrorPopup}});var n=r(85893),l=r(25675),s=r.n(l),a=r(93795),t=r.n(a),i=r(34051),d=r(31555),c=r(10682),p=r(32321),u=r(67294),_=r(8193),h=r(35005),m=r(39327),x=r(66653);function ErrorPopup(e){let[o,r]=(0,u.useState)(!0),setModalShowHandler=o=>{r(o),e.closeWarning(o)};if("error"==e.typeOfMessage)return(0,n.jsx)("div",{className:"error-show-popup",children:(0,n.jsx)("span",{className:"error-show-popup2",children:e.errorMsg})});if("wait"==e.typeOfMessage)return(0,n.jsx)("div",{className:t().loding,children:(0,n.jsx)("div",{className:t().box,children:(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(d.Z,{xs:"3",className:t().imageCss,children:(0,n.jsx)(s(),{priority:!0,src:"/images/loader.gif",height:50,width:50,alt:"BondeValue",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)(d.Z,{xs:"9",className:t().textCss,children:(0,n.jsx)("span",{className:t().loaderText,children:"Please Wait..."})})]})})});if("warning"==e.typeOfMessage){let r={backgroundColor:"var(--orange)"},l={color:"var(--orange)"},s="font_24_normal_normal";return"alert"==e.infoPopup.iconType&&(r={backgroundColor:"var(--red)"},l={color:"var(--red)"}),"tick"==e.infoPopup.iconType&&(s="font_32_normal_normal"),(0,n.jsx)(p.Z,{show:o,onHide:()=>setModalShowHandler(!1),size:"lg","aria-labelledby":"contained-modal-title-vcenter",centered:!0,dialogClassName:"errorPopup",children:(0,n.jsxs)(p.Z.Body,{className:t().noSideBorder,children:[(0,n.jsx)("div",{className:"".concat(t().topHeadingColor),style:r,children:(0,n.jsx)("span",{className:"".concat(t().topHeadingText),children:"."})}),(0,n.jsxs)(c.Z,{children:[(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(d.Z,{xs:1,className:"".concat(t().headerText),children:(0,n.jsx)("div",{className:"".concat(s," "),style:l,children:(0,n.jsxs)("span",{children:["excla"==e.infoPopup.iconType&&(0,n.jsx)(_.sQg,{}),"tick"==e.infoPopup.iconType&&(0,n.jsx)(m.jbV,{}),"alert"==e.infoPopup.iconType&&(0,n.jsx)(x.QdF,{})]})})}),(0,n.jsx)(d.Z,{xs:8,className:"p-0 pt-1 ".concat(t().headerBody," ").concat(t().headerText),style:{color:"white"},children:(0,n.jsx)("span",{className:" font_24_normal_normal",children:e.infoPopup.header})}),(0,n.jsx)(d.Z,{xs:2,className:"p-0",children:(0,n.jsx)("div",{className:"showCursor font_24_normal_normal",style:{textAlign:"end",color:"white"},children:(0,n.jsx)(_.oHP,{onClick:()=>setModalShowHandler(!1)})})})]}),(0,n.jsx)(i.Z,{style:{color:"white"},children:(0,n.jsx)("p",{className:"font_16_normal_normal",children:e.infoPopup.body})})]})]})})}return"confirmation"==e.typeOfMessage?(0,n.jsx)(p.Z,{show:o,onHide:()=>setModalShowHandler(!1),size:"lg","aria-labelledby":"contained-modal-title-vcenter",centered:!0,dialogClassName:"errorPopup",children:(0,n.jsxs)(p.Z.Body,{className:t().noSideBorder,children:[(0,n.jsx)("div",{className:"".concat(t().topHeadingColor),style:{backgroundColor:"var(--orange)"},children:(0,n.jsx)("span",{className:"".concat(t().topHeadingText),children:"."})}),(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(i.Z,{children:(0,n.jsx)(d.Z,{xs:8,className:"p-0 pt-1 ".concat(t().headerBody," ").concat(t().headerText),children:(0,n.jsx)("span",{className:" font_24_normal_normal",children:e.infoPopup.header})})}),(0,n.jsx)(i.Z,{children:(0,n.jsx)("p",{className:"font_16_normal_normal",children:e.infoPopup.body})}),(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(d.Z,{children:(0,n.jsx)(h.Z,{onClick:e.handleConfrim,children:"CONFRIM"})}),(0,n.jsx)(d.Z,{children:(0,n.jsx)(h.Z,{onClick:e.handleCancel,children:" CANCEL"})})]})]})]})}):(0,n.jsx)(n.Fragment,{})}},33096:function(e,o,r){"use strict";r.d(o,{Z:function(){return Loader}});var n=r(85893),l=r(52675),s=r.n(l);function Loader(e){return(0,n.jsx)(n.Fragment,{children:e.newLoading?(0,n.jsxs)("div",{className:s().mainContainer+" "+s().overlay,children:[(0,n.jsx)("br",{}),(0,n.jsx)("div",{className:s().bevBox,children:(0,n.jsx)("div",{className:s().loader+" "+s().bevColor})})]}):(0,n.jsxs)("div",{className:s().mainContainer,children:[!e.hideText&&(0,n.jsx)("div",{className:s().textStyle,children:"Loading..."}),(0,n.jsx)("br",{}),(0,n.jsx)("div",{className:s().loader})]})})}},26643:function(e,o,r){"use strict";var n=r(85893);o.Z=e=>{let o={main:{height:"3rem",backgroundColor:"var(--blue100)",borderRadius:"0.3125rem",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"50%",cursor:e.disabled?"not-allowed":""},inputText:{color:"var(--white)",fontSize:"1rem"}};return(0,n.jsx)("div",{onClick:e.disabled?()=>{}:e.onBtnPress,className:e.style+" pointer",style:o.main,children:(0,n.jsx)("span",{className:e.style,style:o.inputText,children:e.buttonName})})}},2570:function(e,o,r){"use strict";var n=r(85893);o.Z=e=>(0,n.jsx)("span",{className:"defaultText ".concat(e.style),children:e.children})},27039:function(e,o,r){"use strict";var n=r(85893),l=r(32321),s=r(93795),a=r.n(s),t=r(67294),i=r(10682),d=r(35005),c=r(89583),p=r(41485);o.Z=e=>{let o={backgroundColor:"var(--".concat(e.type,")")},r={color:"var(--".concat(e.type,")")},[s,u]=(0,t.useState)(!0),setModalShowHandler=o=>{u(o),e.onClose(o)};return(0,n.jsx)(l.Z,{backdrop:"static",show:s,onHide:()=>setModalShowHandler(!1),centered:!0,dialogClassName:"customPopUp "+(e.customWidth?a()[e.customWidthClass]:a().width30),children:(0,n.jsx)(l.Z.Body,{className:a().noSideBorder,children:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:a().outerBody,children:[(0,n.jsx)("div",{className:"".concat(a().topHeadingColor),style:o,children:(0,n.jsx)("span",{className:"".concat(a().topHeadingText),children:"."})}),(0,n.jsx)(i.Z,{className:"flexColumn flex1",fluid:!0,children:(0,n.jsxs)("div",{className:a().popUpInfo,children:[(0,n.jsxs)("div",{className:a().popupHeading,children:[(0,n.jsxs)("div",{className:a().popupHeadC1,children:["fa-check"==e.icon&&(0,n.jsx)(c.l_A,{style:r}),"fa-warning"==e.icon&&(0,n.jsx)(c.gJy,{className:"font_20_normal_normal",style:r}),"fa-bell"==e.icon&&(0,n.jsx)(c.Z3q,{className:"font_20_normal_normal",style:r}),"fa-user"==e.icon&&(0,n.jsx)(c.Xws,{className:"font_20_normal_normal",style:r}),"fa-book"==e.icon&&(0,n.jsx)(c.Mp$,{className:"font_20_normal_normal",style:r}),"fa-info"==e.icon&&(0,n.jsx)(c.DAO,{className:"font_20_normal_normal",style:r}),(0,n.jsx)("div",{style:r,className:"flex1 font_24_normal_normal",children:e.title})]}),(0,n.jsx)("div",{className:a().popupHeadC2,children:e.closeIcon&&(0,n.jsx)(p.Z,{variant:"white",onClick:()=>setModalShowHandler(!1)})})]}),e.isFullCustom?(0,n.jsx)(n.Fragment,{children:e.children}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:a().popupBody,children:e.children}),(0,n.jsx)("div",{className:a().reverseFlex,children:e.buttons&&e.buttons.length>0&&e.buttons.map((e,o)=>(0,n.jsx)(d.Z,{className:"primary"==e.variant?a().orangeBtn:a().noBtn,onClick:e.onClick,children:e.label},"popupbtn-"+o))})]})]})})]})})})})}},93795:function(e){e.exports={loding:"ErrorPopup_loding__HUZ1A",box:"ErrorPopup_box__V7_tF",loaderText:"ErrorPopup_loaderText__bJLds",imageCss:"ErrorPopup_imageCss__6lESv",textCss:"ErrorPopup_textCss__UFxQ_",topHeadingColor:"ErrorPopup_topHeadingColor__20muu",topHeadingText:"ErrorPopup_topHeadingText__9lmSJ",noSideBorder:"ErrorPopup_noSideBorder__M27Q8",headerText:"ErrorPopup_headerText__Jm8qd",headerIcon:"ErrorPopup_headerIcon__5dwIx",headerBody:"ErrorPopup_headerBody__YNvF7",width30:"ErrorPopup_width30__YlY9s",reverseFlex:"ErrorPopup_reverseFlex__nLsvA",width20:"ErrorPopup_width20__TiGue",outerBody:"ErrorPopup_outerBody__p4KEl",popupHeading:"ErrorPopup_popupHeading__UyH06",popupHeadC1:"ErrorPopup_popupHeadC1__LLNAT",popupHeadC2:"ErrorPopup_popupHeadC2__9758P",popupBody:"ErrorPopup_popupBody__yAO2K",popUpInfo:"ErrorPopup_popUpInfo__5_44o",orangeBtn:"ErrorPopup_orangeBtn__JESyo",noBtn:"ErrorPopup_noBtn__gaO_a"}},89983:function(e){e.exports={closeCoutny:"CountryPopOver_closeCoutny__WlK5p",countryCodeInput:"CountryPopOver_countryCodeInput__n8qqm",mobileInput:"CountryPopOver_mobileInput__wIvzG",popovercontent:"CountryPopOver_popovercontent__Sw5q8",popoverbody:"CountryPopOver_popoverbody__nFKUd",regcountryScroll:"CountryPopOver_regcountryScroll__uWf6o",ErroeMsg:"CountryPopOver_ErroeMsg__qbb7v",countryFormError:"CountryPopOver_countryFormError__NNE1K",loginInput:"CountryPopOver_loginInput__IfySv",loginInputName:"CountryPopOver_loginInputName__63MWH",SearchWidth:"CountryPopOver_SearchWidth___D3Yk",closeIcon:"CountryPopOver_closeIcon__HeSha",active:"CountryPopOver_active__jvwsr",table:"CountryPopOver_table__1QubH","table-bordered":"CountryPopOver_table-bordered__C_9Un",popover:"CountryPopOver_popover__kOkuR","popover-arrow":"CountryPopOver_popover-arrow__rPJ53",tablebg:"CountryPopOver_tablebg__z9RKQ",customBg:"CountryPopOver_customBg__WGHdh",borderTop:"CountryPopOver_borderTop__SFCmV",normalBorder:"CountryPopOver_normalBorder__8JnWU",highlightBorder:"CountryPopOver_highlightBorder__LyPod",countryCss:"CountryPopOver_countryCss__M9lYl",outerDiv:"CountryPopOver_outerDiv__k7X_I",v1:"CountryPopOver_v1__j97SZ",v2:"CountryPopOver_v2__Vktvk",inputStyle:"CountryPopOver_inputStyle__ixlvG",onboarding:"CountryPopOver_onboarding__masuJ",textStyle:"CountryPopOver_textStyle__BKgyj",t2:"CountryPopOver_t2__GiXZz",iC1:"CountryPopOver_iC1__DXqZT"}},52675:function(e){e.exports={mainContainer:"Loader_mainContainer__441sf",textStyle:"Loader_textStyle__sF4lt",bevColor:"Loader_bevColor__Ap8Ts",bevBox:"Loader_bevBox__FU7pu",loader:"Loader_loader__Sd06f",load4:"Loader_load4__Szh_X",overlay:"Loader_overlay__pJMQn"}}}]);