const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ConnectButton-DhBw5pgh.js","assets/index-CXyQ5sGC.js","assets/lodash-CQGrF3PQ.js","assets/index-D5c7CNr0.css","assets/index-Vmx-EkLq.js","assets/index-FnRUSmLt.js","assets/walletConnect-CiycSUBb.js","assets/index-WG0D2_vB.js","assets/ConnectButton-BV4d8IVp.css","assets/PaymentMethodsInfoContainer-CrfRlXyc.css"])))=>i.map(i=>d[i]); import{au as Te,r as n,u as V,ga as Ue,gb as We,gc as we,b as re,gd as te,j as e,ge as w,c as ue,gf as Be,gg as Oe,B as M,d as K,gh as $e,i as ne,P as L,S as q,g as He,el as pe,C as R,s as D,A as p,L as Fe,gi as Ae,gj as ae,cC as ze,_ as Ye,q as Ke,M as ke,cL as qe,fG as Je,gk as Qe,T as Ee,dP as Xe,gl as Ze,gm as es,dg as ss,ct as _e,I as ts,gn as ns,l as as,go as rs,ao as os,gp as cs,gq as B,gr as Re,gs as is,gt as ve,gu as ye,gv as Se,gw as ls,gx as ds,gy as us,gz as ps,gA as ms}from"./index-CXyQ5sGC.js";import{Y as de,n as Ie}from"./lodash-CQGrF3PQ.js";import{u as hs,L as gs}from"./Login-CCXdA1Ev.js";import{u as fs,a as xs,b as bs,I as Ns,R as Cs}from"./Registration-Dq-sI8cm.js";import{u as js,F as Ps}from"./useFacialVerification-Dh63wxaL.js";import{I as Me}from"./InputTypeBankName--OWIb32w.js";import{u as Es,t as _s,v as Rs}from"./index-FnRUSmLt.js";import{u as vs,I as ys}from"./InputTypeCPF-DTCFlzSM.js";import{I as Ss,D as Is}from"./InputTypeDatePicker-DcChxFXM.js";import"./UkRegulationElements-TbTIeQjP.js";import"./StaticTypeSeparator-CNraK1Pp.js";import"./defineProperty-BDczwoNX.js";import"./warning-6M7A5T30.js";const Ts=({onFailure:s,onSucceed:m,contentManagerTargetType:P,formConfig:E})=>{const g=Te(),[C,f]=n.useState(""),[c,a]=n.useState(!1),x=V(),{value:i}=Ue(),{checkForVerification:b}=js(Ps.FORGOT_PASSWORD),{getSMSConfirmationCode:N}=We(we.PasswordResetWithConfirmationCode),{formElements:l,formConfigForCurrentStep:h,handleChange:d,formIsValid:_,setFieldError:I,getData:O,setData:A}=re(E),$=j=>{b(j).then(()=>{ne.get({email:j},"forgot_password").then(({result:o,result_text:y})=>{if(g.current)if(o===0)L.open({type:"success",title:"Success",content:"Password reset complete. Please check your email."}),m();else{switch(o){case"-1001":case"-1002":I("email","email_address_not_exist");break;case"-2001":I("email","email_address_not_exist");break;default:f(y||q)}s()}})}).catch(()=>{g.current&&f(q)}).finally(()=>{g.current&&a(!1)})},J=j=>ne.get(j,"reset_password_via_sms").then(({result:o,result_text:y})=>{if(g.current){if(o===0)L.open({type:"success",title:"Success",content:"Password reset complete. Please check your phone."}),m();else{switch(o){case"-1001":I("phone_number","Invalid phone number");break;case"-2474":N({error:y??"Invalid code",prefilledCode:j.reset_code,phone:j.key}).then(({confirmation_code:Y})=>J({key:j.key,reset_code:Y}));break;default:f(y??"SOMETHING_WENT_WRONG")}s()}a(!1)}}).catch(()=>{g.current&&(f("SOMETHING_WENT_WRONG"),a(!1))}),F=j=>{N({phone:j}).then(({confirmation_code:o})=>J({key:j,...o&&{reset_code:o}})).catch(()=>a(!1))},Q=()=>{const j=l==null?void 0:l.phone_number,{phone_number:o}=O();return j.type==="phone"?o!=null&&o.phoneCode&&(o!=null&&o.phoneNumber)?`${o.phoneCode}${o.phoneNumber}`:"":He(o)},H=j=>{j.preventDefault(),a(!0);const{email:o}=O();o?$(o):F(Q())},z=n.useCallback(()=>{i&&A("phone_number",{phoneCode:te[i].code,phoneNumber:"",countryCode:i},"",!1)},[i,A]);return n.useEffect(()=>{z()},[z]),e.jsxs("form",{className:`entrance-form-bc login ${P===w.PANEL?"panel":"popup"}`,onSubmit:H,"data-scroll-lock-scrollable":"",children:[e.jsx("div",{className:"sg-n-text-row-2-bc",children:x("Reset Password")}),h.map((j,o)=>e.jsx(n.Fragment,{children:j.map(({name:y})=>{const{type:Y,...G}=l[y];switch(Y){case"email":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Oe,{onChange:d,...G})},y);case"radio":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Be,{onChange:d,...G})},y);case"text":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ue,{onChange:d,...G})},y);case"phone":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Me,{onChange:d,...G,countryCode:i})},y);default:return null}})},o)),C&&e.jsx("div",{className:"e-p-form-error-message-holder-bc",children:e.jsx("span",{className:"entrance-f-error-message-bc",children:x(C)})}),e.jsxs("div",{className:"entrance-form-actions-holder-bc login-ext-1",children:[e.jsx("div",{className:"entrance-form-action-item-bc right",children:e.jsx(M,{className:"btn a-color",title:"Reset",loading:c,type:K.SUBMIT,disabled:!_||c})}),e.jsxs("div",{className:"reset-tooltip-info",children:[e.jsx("i",{className:"bc-i-player-info"}),e.jsx("span",{dangerouslySetInnerHTML:{__html:x($e)},className:"reset-tooltip-content"})]})]})]})},ws={type:"radio",name:"method",defaultValue:"phone",options:[{label:"SMS",value:"phone"},{label:"Email",value:"email"}]},Os=({onFailure:s=()=>{},onSucceed:m=()=>{},contentManagerTargetType:P,resetWithPhoneFormConfig:E,resetWithEmailFormConfig:g})=>{const C=V(),{id:f,sms_restrictions:c}=pe(),{resetViaEmail:a,externalPage:{enabled:x,url:i,target:b}}=R.userAuthentication.forgetPassword,N=n.useMemo(()=>{const l=c==null?void 0:c.includes(we.PasswordReset);if(f){if(l&&a){const[[[h]]]=E,[[[d]]]=g;return[[[ws,{...d,showOn:{method:["email"]}},{...h,showOn:{method:["phone"]}}]]]}if(a)return g;if(l)return E}return[]},[f,a,g,E,c]);return n.useEffect(function(){b==="_blank"&&D.dispatchEvent("removeComponentPopup",{component:"AuthPopup",props:{popupContentType:p.ForgetPassword}})},[b]),x&&i?b==="iframe"?e.jsx("iframe",{src:i,title:C("Forget Password"),width:"100%",height:"100%"}):(window.open(i,b),null):N?N.length?e.jsx(Ts,{formConfig:N,contentManagerTargetType:P,onFailure:s,onSucceed:m}):e.jsx("p",{className:"empty-b-text-v-bc",children:C("There are currently no available password reset methods")}):e.jsx(Fe,{size:"medium"})},Fs=[[[{element:"phone",name:"phone",placeholder:"Enter Phone Number"},{element:"password",name:"password",placeholder:"New Password"}]]],As=({onFailure:s,onSucceed:m,contentManagerTargetType:P})=>{const[E,g]=n.useState(""),[C,f]=n.useState(!1),c=V(),{formElements:a,handleChange:x,formIsValid:i,getData:b}=re(Fs),N=l=>{if(l.preventDefault(),i){f(!0);const{password:h,phone:d}=b();ne.get({phone:d,password:h},"send_username_by_sms").then(({result:_,result_text:I})=>{f(!1),_===0?(L.open({type:"success",title:"Success",content:"sms_sending_process"}),m()):(g(I),s())}).catch(()=>{f(!1),g(q)})}};return e.jsxs("form",{className:`entrance-form-bc login ${P===w.PANEL?"panel":"popup"}`,onSubmit:N,"data-scroll-lock-scrollable":"",children:[e.jsx("div",{className:"sg-n-text-row-2-bc",children:c("Reset Username")}),e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Ae,{onChange:x,...a.phone})}),e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ae,{onChange:x,...a.password})}),E&&e.jsx("div",{className:"e-p-form-error-message-holder-bc",children:e.jsx("span",{className:"entrance-f-error-message-bc",children:c(E)})}),e.jsx("div",{className:"entrance-form-actions-holder-bc login-ext-1",children:e.jsx("div",{className:"entrance-form-action-item-bc right",children:e.jsx(M,{className:"btn a-color",title:"Reset",loading:C,type:K.SUBMIT,disabled:!i||C})})})]})},ks=({onFailure:s,onSucceed:m,contentManagerTargetType:P,additionalData:E,formConfig:g})=>{const C=Te(),[f,c]=n.useState(""),[a,x]=n.useState(!1),i=V(),{formElements:b,handleChange:N,formIsValid:l,showCurrentStepErrors:h,getData:d}=re(g),_=I=>{if(I.preventDefault(),l){x(!0);const{password:O}=d();ne.get({new_password:O,reset_code:E.code},"reset_password").then(({result:A,result_text:$})=>{C.current&&(x(!1),A===0?(L.open({type:"success",title:"Success",content:"Your password has been changed."}),m()):(c($),s()))}).catch(()=>{C.current&&(x(!1),c(q))})}else h()};return e.jsxs("form",{className:`entrance-form-bc login ${P===w.PANEL?"panel":"popup"}`,onSubmit:_,"data-scroll-lock-scrollable":"",children:[e.jsx("div",{className:"sg-n-text-row-2-bc",children:i("Reset Password")}),e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ae,{onChange:N,...b.password})}),e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ae,{onChange:N,...b.repeat_password})}),f&&e.jsx("div",{className:"e-p-form-error-message-holder-bc",children:e.jsx("span",{className:"entrance-f-error-message-bc",children:i(f)})}),e.jsx("div",{className:"entrance-form-actions-holder-bc login-ext-1",children:e.jsx("div",{className:"entrance-form-action-item-bc right",children:e.jsx(M,{className:"btn a-color",title:"Reset",loading:a,type:K.SUBMIT,disabled:!l||a})})})]})},Ms=ze(()=>Ye(()=>import("./ConnectButton-DhBw5pgh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),Ls=({formConfig:s,onSucceed:m,onFailure:P,contentManagerTargetType:E})=>{var je,Pe;const{registrationFormConfig:g,hideWalletFormConfig:C}=R.app.walletConnect,f=Ke(),c=V(),{language:a,languageRtl:x,timeFormat:i}=ke(),{formElements:b,formConfigForCurrentStep:N,formIsValid:l,handleChange:h,setData:d,getData:_,setFieldError:I,setDataProp:O,showCurrentStepErrors:A,setRules:$,resetData:J,step:F,setStep:Q,totalSteps:H}=re(s),[z,j]=n.useState(""),[o,y]=n.useState(!1),{minDate:Y,maxDate:G}=vs(),X=n.useRef(),Z=n.useRef((Pe=(je=b.phone)==null?void 0:je.value)==null?void 0:Pe.phoneCode),{value:oe,touched:ce}=b.currency||{},{value:k=""}=b.country_code||{},{chain:U}=Es(),{currency:ee}=pe(),{address:me,isConnected:ie}=_s(),{signMessageAsync:he}=Rs(),{restoreLogin:ge}=n.useContext(qe),{doLoginRequest:fe,getMessage:xe}=hs(),T=fs();xs({setData:d,formElements:b}),bs({setData:d,setDataProp:O});const{redirectOnSuccessUrl:le}=R.userAuthentication.registration,Le=()=>{if(l){const t=F+1;Ee.dispatchEvent("trackingEvent",{category:"Authorization",action:"Register",label:"Step Passed",value:t}),Q(t)}else A()};n.useEffect(function(){T&&ee&&O("currency_name","options",T.map(v=>({value:v,label:v})))},[O,T,ee]),n.useEffect(()=>{var t;k&&!Z.current?d("phone",{phoneCode:te[k].code,phoneNumber:"",countryCode:k},"",!1):Z.current&&d("phone",{phoneCode:(t=te[Z.current])==null?void 0:t.code,phoneNumber:"",countryCode:Z.current},"",!1)},[k,d]),n.useEffect(()=>{oe!==void 0&&ce!==void 0&&(X.current={touched:ce,value:oe})},[ce,oe]),n.useEffect(function(){var v;if(T&&X.current&&R.userAuthentication.registration.setDefaultCurrencyValue){const u=()=>T.find(de(ee))||T[0];if(T.length===1)d("currency",T[0],void 0,!1);else if(R.userAuthentication.registration.autoSetCurrency.enabled){if(!X.current.touched){let S;const r=R.userAuthentication.registration.autoSetCurrency.availableList[k],W=(v=te[k])==null?void 0:v.currency;r&&(S=T.find(de(r))),W&&(S??(S=T.find(de(W)))),d("currency",S||u(),void 0,!1)}}else X.current.value||d("currency",u(),void 0,!1)}},[k,ee,d,T]);const be=n.useCallback(()=>{Je.getPopups(a,Qe.AFTER_REGISTRATION).then(t=>{t.forEach(({content:v,title:u,target:S,href:r})=>{L.open({type:"info",title:u,content:v,...r&&{buttons:[{label:"OK",callBack:()=>{window.open(r,S)}}]}})})})},[a]),De=()=>{if(!R.userAuthentication.registration.disableRegistrationPopup)return D.dispatchEvent("addComponentPopup",{component:"FirstLoginSuggestion",props:{}})},Ne=n.useCallback(t=>{if(Ee.dispatchEvent("trackingEvent",{category:"Authorization",action:"Register",label:Xe}),ge({auth_token:t}),m==null||m(),le)return f.push(le);be(),De()},[be,f,m,le,ge]),Ce=n.useCallback(()=>{const{phone:t={},country_code:v,...u}=_(),S=t!=null&&t.phoneCode&&(t!=null&&t.phoneNumber)?`${t.phoneCode}${t.phoneNumber}`:"";return{...u,...S&&{phone:S},...v&&{region:v}}},[_]),Ve=n.useCallback(()=>{if(!(!(U!=null&&U.id)||!me))if(!l)A();else{y(!0);const{close:t}=L.open({type:"info",title:"Info",content:"Please confirm from your Wallet mobile app or extension and make sure you have chosen the right network.",buttons:[{label:"Ok"}]}),v=new Date().toISOString(),u=xe(v);return he({message:u.prepareMessage()}).then(S=>(t(),y(!1),fe(S,v,Ce()).then(({details:{Token:r},result:W,result_text:Ge})=>{if(W===0)Ne(r);else throw new Error(Ge||"")}).catch(r=>{j(r.msg||r.message||q)}))).catch(()=>{j(Ze),P==null||P(),t()}).finally(()=>y(!1))}},[me,U==null?void 0:U.id,fe,l,Ce,xe,Ne,P,A,he]);return n.useEffect(()=>{ie||D.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:p.Registration}})},[ie]),e.jsxs("form",{style:{paddingTop:"15px"},className:`entrance-form-bc ${C||g?"reg-via-wallet":"registration"} ${E===w.PANEL?"panel":"popup"}`,children:[e.jsxs("div",{className:"form-sign-bc","data-scroll-lock-scrollable":"",children:[e.jsx("div",{className:"sg-n-text-row-1-bc",children:c("New member?")}),e.jsx("div",{className:"sg-n-text-row-2-bc",dangerouslySetInnerHTML:{__html:c(es)}}),H>1&&F>=0?e.jsxs("div",{className:"reg-step-title-v-bc",children:[c("Registration step")," ",F+1]}):null,e.jsx("div",{className:"reg-form-fields",children:N.map((t,v)=>e.jsx("div",{className:"entrance-form-content-section-bc",children:t.map(({name:u})=>{const{type:S,...r}=b[u];switch(S){case"text":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ue,{onChange:h,...r})},u);case"email":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Oe,{onChange:h,...r})},u);case"select":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(_e,{onChange:h,...r})},u);case"password":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ae,{onChange:h,...r})},u);case"country":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ts,{onChange:h,...r,allCountries:u==="citizenship"})},u);case"currency":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(_e,{onChange:h,...r})},u);case"cpf":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(ys,{onChange:h,setData:d,setDataProp:O,setFieldError:I,setRules:$,cpfField:b[u],resetData:J,...r})},u);case"phone":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Me,{onChange:h,...r,countryCode:k})},u);case"number":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Ae,{onChange:h,...r})},u);case"agree":return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Ns,{onChange:h,...r})},u);case"date":if(r.readOnly){const W=r.value?ss({language:a,value:r.value,languageRtl:x,timeFormat:i}):"";return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsxs("div",{className:"birthdate-datepicker",children:[e.jsx(ue,{onChange:h,...r,value:W}),e.jsx("i",{className:"dropdownIcon-bc bc-i-datepicker disabled"})]})},u)}return e.jsx("div",{className:"entrance-f-item-bc",children:e.jsx(Ss,{maxDate:G,minDate:Y,onChange:h,type:Is.CALENDAR,...r})},u);default:return null}})},v))}),z&&e.jsx("div",{ref:t=>t==null?void 0:t.scrollIntoView({behavior:"smooth"}),className:"e-p-form-error-message-holder-bc",children:e.jsx("span",{className:"entrance-f-error-message-bc",children:c(z)})})]}),e.jsxs("div",{className:`reg-form-footer-bc ${R.app.walletConnect.enabled&&R.app.walletConnect.registration||!C?"via-wallet-enabled":""}`,children:[o?e.jsx(Fe,{size:"small"}):e.jsxs("div",{className:"entrance-form-actions-holder-bc reg-ext-1",children:[F>0?e.jsx(M,{className:"btn a-outline",title:"Back",onClick:()=>Q(F-1)}):null,F{t.preventDefault(),Le()}}):null,ie&&F===H-1?e.jsx(M,{className:"btn a-color ",type:K.SUBMIT,title:"Register",onClick:t=>{t.preventDefault(),Ve()}}):null]}),e.jsx(Ms,{})]})]})},Ds=n.memo(Ls),Vs=({action:s})=>{const m=V(),P=window.location.origin+window.location.pathname+`?${ns}=${s}`;return e.jsxs("div",{className:"loader-popup",children:[e.jsx("p",{className:"loader-popup-countdown"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:m("partner_config_not_loaded_text")},className:"loader-popup-text "}),e.jsx("a",{href:P,target:"_self",className:"btn a-color loader-popup-btn",children:m("reload")})]})},se=(s,m)=>()=>{D.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{onSuccess:m,popupContentType:s}})},Gs=({activeContentType:s,setFormInvalid:m,onFailed:P,onSuccess:E,additionalData:g,openConfirmPopupAfterRegClose:C})=>{var h,d;const{assets:{logo:f}}=ke(),{hideWalletFormConfig:c}=R.app.walletConnect,{hideRegisterButton:a,authPopupAsWidget:x}=(h=R)==null?void 0:h.userAuthentication,i=V(),{partner_id:b}=pe(),N=()=>{P(),m(!0)},l=()=>{m(!1),E(),D.dispatchEvent("hideAll")};return e.jsx("div",{className:`entrance-popup-bc ${s===p.Registration?"register":"sign-in"}`,children:e.jsxs("div",{className:"e-p-content-holder-bc",children:[!R.app.disablePartnerConfigLoader&&!b&&e.jsx(Vs,{action:s===p.Registration?"register":"login"}),e.jsxs("div",{className:"e-p-content-bc",children:[e.jsxs("div",{className:"e-p-header-bc",children:[e.jsx(as,{className:"popup-t-logo-w-bc",to:"/",onClick:()=>D.dispatchEvent("hideAll"),children:e.jsx("img",{className:"hdr-logo-bc",src:f,alt:""})}),e.jsxs("div",{className:"e-p-sections-bc",children:[(s===p.Registration||s===p.ForgetPassword||s===p.ForgetUsername||s===p.RegisterViaWallet)&&!x&&e.jsx("div",{className:"e-p-section-item-bc",children:e.jsx("span",{id:rs,className:"e-p-section-title-bc",onClick:se(p.Login,E),children:i("Sign in")})}),s===p.Login&&os.getInstance().authenticationEnabledForIP&&!a&&!x&&e.jsx("div",{className:"e-p-section-item-bc",children:(d=R.app.ukLicense)!=null&&d.enabled?null:e.jsx(M,{className:"btn s-small register",onClick:se(p.Registration,E),title:"Register",id:cs})})]}),C&&e.jsx("i",{onClick:C,className:"e-p-close-icon-bc bc-i-close-remove"})]}),e.jsxs("div",{className:"e-p-body-bc",children:[s===p.Registration&&e.jsx(B,{source:Re,children:_=>e.jsx(Cs,{formConfig:_,onSucceed:l,onFailure:N,contentManagerTargetType:w.POPUP,additionalData:g})},p.Registration),s===p.Login&&e.jsx(B,{source:is,children:_=>e.jsx(gs,{formConfig:_,onSucceed:l,onFailure:N,contentManagerTargetType:w.POPUP,onResetUsernameClick:se(p.ForgetUsername),onResetPasswordClick:se(p.ForgetPassword)})},p.Login),s===p.ForgetPassword&&e.jsx(B,{source:ve,children:_=>e.jsx(B,{source:ye,children:I=>e.jsx(Os,{onSucceed:l,onFailure:N,resetWithEmailFormConfig:_,resetWithPhoneFormConfig:I,contentManagerTargetType:w.POPUP})},ye)},ve),s===p.ForgetUsername&&e.jsx(As,{onFailure:N,onSucceed:l,contentManagerTargetType:w.POPUP}),s===p.ResetPassword&&e.jsx(B,{source:Se,children:_=>e.jsx(ks,{onFailure:N,onSucceed:l,additionalData:g,contentManagerTargetType:w.POPUP,formConfig:_})},Se),R.app.walletConnect.enabled&&R.app.walletConnect.registration&&s===p.RegisterViaWallet&&e.jsx(B,{source:c?Re:ls,children:_=>e.jsx(Ds,{formConfig:_,onSucceed:l,onFailure:N,contentManagerTargetType:w.POPUP})},p.RegisterViaWallet)]})]})]})})},Us=n.memo(Gs),Ws=({popupContentType:s,onSuccess:m=Ie,onFailed:P=Ie,additionalData:E={}})=>{const[g,C]=n.useState(!1),f=n.useCallback(i=>{C(i)},[]),{openConfirmPopup:{enabled:c,showOn:a}}=R.userAuthentication.registration,x=n.useCallback(()=>{L.open(i=>({type:"info",className:"reg-form-close-popup",title:a==="onClose"?ds:us,content:a==="onClose"?ps:ms,buttons:[{label:a==="onClose"?"Continue":"OK",callBack:()=>{i()}},...a==="onClose"?[{label:"Yes, I want to cancel",callBack:()=>{i(),D.dispatchEvent("hidePopup")}}]:[]]}))},[a]);return n.useEffect(()=>{c&&s===p.Registration&&a==="onOpen"&&x()},[c,x,s,a]),e.jsx(Us,{activeContentType:s,formInvalid:g,setFormInvalid:f,onSuccess:m,onFailed:P,additionalData:E,...c&&a==="onClose"&&s===p.Registration&&{openConfirmPopupAfterRegClose:x}})},tt=n.memo(Ws);export{tt as default};