1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[537],{8053:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>s,UB:()=>o,dU:()=>a,uB:()=>r});var n=i(37876);i(14232);let s=e=>{let{children:t,className:i,outChildren:s}=e;return s?(0,n.jsxs)("div",{className:"overflow-auto flex items-center w-full flex-col h-full",children:[(0,n.jsx)("div",{className:"w-full sm:w-[592px]",children:s}),(0,n.jsx)("div",{id:"ShadowContainer",className:"\n overflow-auto grow bg-bg1\n relative flex flex-col h-full sm:h-[calc(100%-40px)]\n px-5 max-h-[860px] border-line\n sm:rounded-[20px] my-0 sm:mt-4 sm:mb-10\n sm:border sm:px-0\n w-full sm:w-[592px] mx-auto text-primary-text !text-sm\n ".concat(i,"\n "),children:t})]}):(0,n.jsx)("div",{id:"ShadowContainer",className:"\n overflow-auto grow\n relative flex flex-col h-full sm:h-[calc(100%-40px)]\n px-5 max-h-[860px] border-line\n sm:rounded-[20px] my-0 sm:mt-4 sm:mb-10\n sm:border sm:px-0\n w-full sm:w-[592px] mx-auto text-primary-text !text-sm\n ".concat(i,"\n "),children:t})},o=e=>{let{children:t,className:i}=e;return(0,n.jsx)("div",{id:"ContainerWithoutShadow",className:"\n relative w-full mx-auto text-primary-text !text-sm my-0 h-full\n sm:my-5 sm:w-[486px]\n ".concat(i,"\n "),children:t})},a=e=>{let{children:t,className:i,outChildren:s}=e;return s?(0,n.jsxs)("div",{className:"relative m-auto sm:w-[592px] sm:h-[680px] ",children:[(0,n.jsx)("div",{className:" sm:w-[592px]",children:s}),(0,n.jsx)("div",{id:"FixedHeightContainer",className:"\n border rounded-[20px] border-transparent text-primary-text h-screen mt-8\n sm:w-[592px] sm:h-[680px] sm:border-line\n ".concat(i,"\n "),children:t})]}):(0,n.jsx)("div",{className:"relative m-auto sm:w-[592px] sm:h-[680px] ",children:(0,n.jsx)("div",{id:"FixedHeightContainer",className:"\n border rounded-[20px] border-transparent text-primary-text h-screen mt-8\n sm:w-[592px] sm:h-[680px] sm:border-line\n ".concat(i,"\n "),children:t})})},r=e=>{let{children:t,className:i}=e;return(0,n.jsx)("div",{className:"\n w-full sm:w-[486px] mx-auto relative\n flex flex-col flex-1 px-4 sm:px-0\n ".concat(i||"","\n "),children:t})}},44164:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/Remediation.1bb83a21.svg",height:88,width:88,blurWidth:0,blurHeight:0}},46887:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var n=i(37876),s=i(79829),o=i(68989),a=i(38243),r=i(44405),l=i(8053),c=i(51259),d=i(17745),u=i(9322),m=i(66852),h=i(95873),p=i(14232),v=i(34846),f=i(44164),w=i(49940),g=i(84952),x=i(33841),b=i(80647),y=i(7419),k=i(81996);let _=()=>{let{ga4log:e}=(0,d.A)(),{track:t}=(0,u.A)(),[i,_]=(0,p.useState)(!0),N=(0,m.UG)("uid"),[I,C]=(0,p.useState)(""),S=N?I:(0,m.UG)("levelName")||"kyc-basic",{goAcctStatusPage:E,afterLoginKyb:j}=(0,c.A)(),{isDarkMode:T}=(0,x.A)(),R=(0,p.useCallback)(async(e,t)=>{var i,n;let{data:o}=await (0,s.od)(t?{extraHeaders:{refresh_sumsub_access_token:!0}}:void 0);return JSON.parse((null===(n=o.kycInfo)||void 0===n?void 0:null===(i=n.sumsubLevelVo)||void 0===i?void 0:i.sumsubToken)||"")},[]),A=(0,p.useCallback)(async e=>{let t=await (0,o.ic)({uid:e});if(t&&200==t.status&&t.data)return C(t.data.levelName),JSON.parse(t.data.token)},[]);(0,p.useEffect)(()=>{S&&e({element_id:"paymonade3_sumsub_pageview_".concat(S)})},[e,S]),(0,p.useEffect)(()=>{S&&t({elementId:"sumsub_pageview_".concat(S)})},[t,S]);let{trackAndGa:H}=(0,y.A)(),O=(0,p.useCallback)(i=>{h.A.init(i,async()=>{if(N){let{token:e}=await A(N);return e}{let e=await R(S,!0);return console.log("token2",null==e?void 0:e.token),null==e?void 0:e.token}}).withConf({lang:"en",email:"",phone:"",i18n:void 0,theme:T?"dark":"light"}).withOptions({addViewportTag:!0,adaptIframeHeight:!1}).on("idCheck.onStepCompleted",e=>{}).on("idCheck.onError",e=>{}).on("idCheck.moduleResultPresented",e=>{}).on("idCheck.actionCompleted",e=>{}).on("idCheck.onActionSubmitted",e=>{}).on("idCheck.onApplicantStatusChanged",async i=>{"basic-kyc-level"===i.levelName&&"pending"==i.reviewStatus?(e({element_id:"paymonade3_sumsub_leave_basic"}),t({elementId:"sumsub_baisc_finish",subElementId:"pending"}),E()):"basic-kyc-level-with-questionnaire-new"===i.levelName&&"pending"==i.reviewStatus?(e({element_id:"paymonade3_sumsub_leave_questionnaire"}),t({elementId:"sumsub_questionnaire_finish",subElementId:"pending"}),E()):"kyc-basic"===i.levelName&&"pending"==i.reviewStatus?(e({element_id:"paymonade3_sumsub_leave_kyc-basic"}),t({elementId:"sumsub_kyc-basic_finish",subElementId:"pending"}),E()):"poa-only"===i.levelName&&"pending"==i.reviewStatus&&(e({element_id:"paymonade3_sumsub_leave_poa-only"}),t({elementId:"sumsub_id_poa-only_finish",subElementId:"pending"}),E()),"basic-kyc-level"===i.levelName&&"completed"==i.reviewStatus&&(e({element_id:"paymonade3_sumsub_completed_pageView",extraInfo:{type:"basic-kyc-level",reviewStatus:i.reviewStatus,reviewAnswer:i.reviewResult.reviewAnswer,reviewRejectType:i.reviewResult.reviewRejectType}}),t({elementId:"sumsub_baisc_finish",subElementId:"completed",extraData:{reviewStatus:i.reviewStatus,reviewAnswer:i.reviewResult.reviewAnswer,reviewRejectType:i.reviewResult.reviewRejectType}}),(i.reviewResult&&"GREEN"===i.reviewResult.reviewAnswer||i.reviewResult&&"RED"===i.reviewResult.reviewAnswer&&"FINAL"===i.reviewResult.reviewRejectType)&&E()),"poa-only"===i.levelName&&"completed"==i.reviewStatus&&(e({element_id:"sumsub_completed_pageView",extraInfo:{type:"poa-only",reviewStatus:i.reviewStatus,reviewAnswer:i.reviewResult.reviewAnswer,reviewRejectType:i.reviewResult.reviewRejectType}}),t({elementId:"sumsub_poa_finish",subElementId:"completed",extraData:{reviewStatus:i.reviewStatus,reviewAnswer:i.reviewResult.reviewAnswer,reviewRejectType:i.reviewResult.reviewRejectType}}),i.reviewResult&&"GREEN"===i.reviewResult.reviewAnswer&&E()),"basic-kyc-level-with-questionnaire-new"===i.levelName&&"completed"==i.reviewStatus&&(e({element_id:"sumsub_completed_pageView",extraInfo:{type:"questionnaire"}}),t({elementId:"sumsub_questionnaire_finish",subElementId:"completed"}),i.reviewResult&&"GREEN"===i.reviewResult.reviewAnswer&&E()),"kyc-basic"===i.levelName&&"completed"==i.reviewStatus&&(e({element_id:"sumsub_completed_pageView",extraInfo:{type:"kyc-basic"}}),t({elementId:"sumsub_kyc-basic_finish",subElementId:"completed"}),i.reviewResult&&"GREEN"===i.reviewResult.reviewAnswer&&E()),("corp-management"===i.levelName&&"completed"==i.reviewStatus||"corp-management"===i.levelName&&"pending"==i.reviewStatus)&&(e({element_id:"sumsub_corp-management",extraInfo:{reviewStatus:i.reviewStatus}}),t({elementId:"sumsub_corp-management",subElementId:i.reviewStatus}),i.reviewResult&&"GREEN"===i.reviewResult.reviewAnswer&&j({isIndependent:!0})),("corp-trader"===i.levelName&&"completed"==i.reviewStatus||"corp-trader"===i.levelName&&"pending"==i.reviewStatus)&&(e({element_id:"sumsub_corp-trader",extraInfo:{reviewStatus:i.reviewStatus}}),t({elementId:"sumsub_corp_trader_finish",subElementId:i.reviewStatus}),i.reviewResult&&"GREEN"===i.reviewResult.reviewAnswer&&j({isIndependent:!0})),("corp-UBO"===i.levelName&&"completed"==i.reviewStatus||"corp-UBO"===i.levelName&&"pending"==i.reviewStatus)&&(e({element_id:"sumsub_corp-UBO",extraInfo:{reviewStatus:i.reviewStatus}}),t({elementId:"sumsub_corp_UBO_finish",subElementId:i.reviewStatus}),i.reviewResult&&"GREEN"===i.reviewResult.reviewAnswer&&j({isIndependent:!0}));let{levelName:n,reviewStatus:s,reviewResult:o}=i,r=o?{reviewStatus:s,reviewAnswer:o.reviewAnswer,reviewRejectType:o.reviewRejectType}:void 0,l=async e=>{let{elementId:t,kycUpdate:i,noJump:n}=e;H({elementId:"".concat((0,k.QH)(),"_plsumsub_").concat(t),extraData:r}),n||E()},c=["LI-EU-kyc","LI-EURes-kyc","LI-nonEU-kyc","PLLI-KYC"],d=["LI-nonEU-kyc-poa","LI-EURes-kyc-poa","LI-EU-kyc-poa","PLLI-KYC-POA"];"pending"===s&&(c.indexOf(n)>-1?await l({elementId:"".concat((0,k.QH)(),"_sumsub_").concat(n),kycUpdate:{kycStatus:a.Kp.Pending}}):d.indexOf(n)>-1&&await l({elementId:"".concat((0,k.QH)(),"_sumsub_").concat(n),kycUpdate:{poaStatus:a.Kp.Pending}})),"completed"===s&&(c.indexOf(n)>-1?await l({elementId:"".concat((0,k.QH)(),"_sumsub_").concat(n,"_
1completed"),kycUpdate:{kycStatus:a.Kp.Pending},noJump:i.reviewResult&&"GREEN"!==i.reviewResult.reviewAnswer}):d.indexOf(n)>-1&&await l({elementId:"".concat((0,k.QH)(),"_sumsub_").concat(n,"_completed"),kycUpdate:{kycStatus:a.Kp.Pending},noJump:i.reviewResult&&"GREEN"!==i.reviewResult.reviewAnswer}))}).build().launch("#sumsub-websdk-container")},[e,T,R,E,t,j]);(0,p.useEffect)(()=>{(async()=>{let e={token:""};N?e=await A(N):console.log("token1",null==(e=await R(S))?void 0:e.token),_(!1),O(null==e?void 0:e.token)})()},[R,O,S,N]),(0,p.useEffect)(()=>{setInterval(()=>{try{(0,s.od)()}catch(e){}},3e4)},[]);let{t:U}=(0,v.Bd)(),[P,V]=(0,p.useState)(0),B="poa-only"===S&&0===P,M=[{image:w.A,imagealt:"ProofOfAddress",title:U("ProofOfAddress"),duration:U("1min")}];return(0,n.jsxs)(l.Ay,{children:[B?(0,n.jsx)("div",{className:"z-10 bg-bg1 absolute top-0 left-0 right-0 bottom-0 px-5 sm:px-0 w-full h-full",children:(0,n.jsx)(b.A,{image:f.A,title:U("PoaTitle"),desc:U("PoaDesc"),loading:!1,steps:M,footer:(0,n.jsx)(g.A,{showContinue:!0,loading:!1,onClick:()=>{V(1)},className:"max-w-[400px] mb-0!"})})}):(0,n.jsx)(n.Fragment,{}),(0,n.jsxs)(n.Fragment,{children:[i?(0,n.jsx)(r.A,{}):(0,n.jsx)(n.Fragment,{}),(0,n.jsx)("div",{className:i?"hidden":"h-full mx-[-20px] sm:mx-0",id:"sumsub-websdk-container"})]})]})}},49940:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/ProofOfAddress.2329db76.svg",height:20,width:20,blurWidth:0,blurHeight:0}},63930:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lng]/sumsub",function(){return i(46887)}])},80647:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(37876);i(14232);let s=()=>(0,n.jsxs)("div",{className:"w-full mt-2 p-3 bg-bg2 h-[128px] rounded-xl flex flex-col items-center ",children:[(0,n.jsxs)("div",{className:"flex w-full justify-between my-[6px]",children:[(0,n.jsx)("div",{className:"bg-line h-2 w-[200px] animate-pulse"}),(0,n.jsx)("div",{className:"bg-line h-2 w-[48px] animate-pulse"})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between my-[6px] mt-[14px]",children:[(0,n.jsx)("div",{className:"bg-line h-2 w-[160px] animate-pulse"}),(0,n.jsx)("div",{className:"bg-line h-2 w-[32px] animate-pulse"})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between my-[6px] mt-[14px]",children:[(0,n.jsx)("div",{className:"bg-line h-2 w-[200px] animate-pulse"}),(0,n.jsx)("div",{className:"bg-line h-2 w-[48px] animate-pulse"})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between my-[6px] mt-[14px]",children:[(0,n.jsx)("div",{className:"bg-line h-2 w-[160px] animate-pulse"}),(0,n.jsx)("div",{className:"bg-line h-2 w-[32px] animate-pulse"})]})]});var o=i(34846),a=i(54587),r=i.n(a);let l=e=>{let{className:t="",...i}=e;return(0,n.jsx)("svg",{viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"fill-current ".concat(t),...i,children:(0,n.jsx)("path",{d:"M8.28585 2C12.0729 2 15.143 4.6863 15.143 8C15.143 11.3137 12.0729 14 8.28585 14C6.88863 14 5.58904 13.6343 4.5052 13.0064L2.30687 13.7164C2.21055 13.7475 2.10633 13.7435 2.01267 13.7051C1.79366 13.6154 1.68885 13.3651 1.77858 13.1461L2.54315 11.2801C1.83843 10.3374 1.42871 9.21056 1.42871 8C1.42871 4.6863 4.49875 2 8.28585 2ZM8.28585 7.14285C7.81247 7.14285 7.4287 7.52662 7.4287 8C7.4287 8.47338 7.81247 8.85715 8.28585 8.85715C8.75923 8.85715 9.143 8.47338 9.143 8C9.143 7.52662 8.75923 7.14285 8.28585 7.14285ZM4.85728 7.14285C4.38388 7.14285 4.00013 7.52662 4.00013 8C4.00013 8.47338 4.38388 8.85715 4.85728 8.85715C5.33066 8.85715 5.71441 8.47338 5.71441 8C5.71441 7.52662 5.33066 7.14285 4.85728 7.14285ZM11.7144 7.14285C11.241 7.14285 10.8573 7.52662 10.8573 8C10.8573 8.47338 11.241 8.85715 11.7144 8.85715C12.1878 8.85715 12.5716 8.47338 12.5716 8C12.5716 7.52662 12.1878 7.14285 11.7144 7.14285Z",fill:"#A7EA33"})})},c=e=>{let{classname:t,image:i,title:a,desc:c,loading:d,steps:u,child:m,footer:h,extraTitle:p}=e,{t:v}=(0,o.Bd)();return(0,n.jsxs)("div",{className:"px-5 flex flex-col items-center h-full sm:mx-0 mx-[-20px] overflow-auto ".concat(t),children:[(0,n.jsxs)("div",{className:"text-center grow w-full pb-6",children:[(0,n.jsx)(r(),{src:i,className:"mx-auto mt-12 w-[88px] h-[88px]",alt:i}),(0,n.jsx)("div",{className:"text-h6 mt-6 ",children:a}),(0,n.jsx)("div",{className:"text-regular-body text-secondary mt-2 [&_a]:text-link [&_a]:hover:text-primary [&_a]:active:text-primary",dangerouslySetInnerHTML:{__html:c}}),m,d||void 0===d||u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mt-6 flex justify-between text-left text-small-body-sub text-primary-text",children:[(0,n.jsx)("div",{children:v("VerificationProcess")}),p&&(0,n.jsx)("div",{className:"text-small-body-sub text-third",children:p})]}),d&&(0,n.jsx)(s,{}),!d&&void 0!==d&&(0,n.jsxs)("div",{className:"mt-2 bg-alertbg rounded-xl flex flex-col items-center w-full relative",children:[null==u?void 0:u.map((e,t)=>(0,n.jsxs)("div",{className:"".concat(t===u.length-1?"pb-3":""," px-3 pt-3 rounded-xl bg-bg2 flex justify-between items-start w-full text-secondary"),children:[(0,n.jsxs)("div",{className:"flex items-start text-secondary ".concat(e.flex||""),children:[(0,n.jsx)(r(),{src:e.image,alt:e.imagealt,className:"mr-2"}),(0,n.jsxs)("div",{className:"text-left",children:[(0,n.jsx)("div",{className:"text-primary-text",children:e.title}),(0,n.jsx)("div",{className:"text-caption mt-1",children:e.desc2})]})]}),(0,n.jsx)("div",{className:"text-secondary shrink-0 font-medium",children:e.duration})]},t)),(0,n.jsxs)("div",{className:"rounded-b-xl flex items-center justify-center gap-2 text-small-body bg-alertbg pt-1 pb-2 w-full -mx-[12px]",children:[(0,n.jsx)(l,{className:"w-4 h-4"}),(0,n.jsx)("span",{children:v("NeedAssistance")}),(0,n.jsx)("span",{className:"text-link cursor-pointer",onClick:()=>{window.__setSuperBigLemonBalltab("home"),window.__setSuperBigLemonBallSecondarypageType(void 0),window.__setSuperBigLemonBallOpen(!0)},children:v("GetHelp")})]})]})]}):(0,n.jsx)(n.Fragment,{})]}),(0,n.jsx)("div",{className:"flex justify-center w-full flex-col items-center pt-2 pb-4 sticky bottom-0 bg-bg1",children:h})]})}},95873:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function s(e){return e.endsWith("-v2")?2:1}"function"==typeof SuppressedError&&SuppressedError;var o=function(){function e(e,t,i,n){var s=this;this.iframe=null,this.iframeId=null,this.sessionId="",this.$container=null,this.initialized=!1,this.scrollPosition=-1,this.scrollElement=null,this.onMessage=function(e){s.onSdkMessage(e)},this.baseUrl=e||this.getCurrentBaseUrl("https://api.sumsub.com",t.accessToken),this.config=t,this.config.packageVersion=this.getVersion(),this.callbacks=i,this.options=n}return e.prototype.getVersion=function(){return"2.3.13"},e.prototype.getCurrentBaseUrl=function(e,t){var i=["_act-sbx-jwt-","_act-jwt-"].find(function(e){return t.startsWith(e)});if(i)for(var n=0,s=t.replace(i,"").replace("-v2","").split(".").map(function(e){try{return atob(e)}catch(t){return e}}).map(function(e){try{return JSON.parse(e)}catch(t){return e}});n<s.length;n++){var o=s[n];if(null==o?void 0:o.url)return o.url}return e},e.prototype.getIframeId=function(){if(2===this.config.version)try{return btoa(this.config.accessToken)}catch(e){return this.config.accessToken}return String(Math.floor(1e8*Math.random()))},e.prototype.launch=function(e){this.options.addViewportTag&&this.addViewportTag(),this.iframe=this.createIframe(e),this.sessionId="",this.iframeId="id_"+this.getIframeId(),this.iframe&&this.config?(this.registerEventListener(),this.iframe.src=this.getIframeSrc()):console.error("Idensic was not initialized since either provided element was not found in the DOM or invalid config")},e.prototype.addViewportTag=function(){var e=document.getElementsByName("viewport");if(!e||0===e.length){var t=document.createElement("meta");t.setAttribute("name","viewport"),t.setAttribute("content","width=device-width,user-scalable=yes"),document.head.appendChild(t)}},e.prototype.createIframe=function(e){var t="string"==typeof e?document.querySelector(e):e;if(!t)return console.error("Provide a valid selector for the iframe container"),null;this.$container=t;var i=document.createElement("iframe");for(i.width="100%",i.scrolling="no",i.allow="camera; microphone; geolocation; clipboard-write",i.setAttribute("frameborder","0");t.firstChild;)t.removeChild(t.firstChild);return t.appendChild(i),i},e.prototype.getIframeSrc=function(){var e="?_="+this.iframeId,t=2===this.config.version?"/websdk":"/idensic",i=this.baseUrl+t+"/websdk.html";return 2===this.config.version&&this.config.theme&&(e+="&theme="+this.config.theme),2===this.config.version&&this.config.customizationName&&(e+="&customizationName="+encodeURIComponent(this.config.customizationName)),2===this.config.version&&this.config.translationName&&(e+="&translationName="+encodeURIComponent(this.config.translationName)),i+e},e.prototype.registerEventListener=function(){window.addEventListener("message",this.onMessage)},e.prototype.onSdkMessage=function(e){var t;if(this.baseUrl===e.origin){var i=e.data;if(i.method&&~i.method.indexOf("idCheck")&&(!this.sessionId||this.sessionId===i.sessionId)&&(null===(t=this.iframe)||void 0===t?void 0:t.contentWindow)){if
1("idCheck.onReady"==i.method&&i.frameId===this.iframeId){this.sessionId=i.sessionId;var s={options:{adaptIframeHeight:this.options.adaptIframeHeight,enableScrollIntoView:this.options.enableScrollIntoView}};this.iframe.contentWindow.postMessage(n(n({method:"idCheck.init"},this.config),s),"*")}if("idCheck.onInitialized"==i.method&&(this.initialized=!0),"idCheck.onResize"==i.method&&this.options.adaptIframeHeight&&(this.iframe.style.height=i.height+"px"),"idCheck.scrollTo"==i.method&&this.options.adaptIframeHeight)this.scrollTo(i.top);else if("idCheck.getScrollPosition"!=i.method)if("idCheck.restoreScrollPosition"!=i.method){var o=i.method;delete i.method,delete i.frameId,delete i.sessionId,"idCheck.onError"===o&&"invalid-token"===i.code?this.callExpirationHandler():"idCheck.onError"===o&&"function"==typeof this.callbacks.onError?this.callbacks.onError(i):"function"==typeof this.callbacks.onMessage&&this.callbacks.onMessage(o,i)}else this.restoreScrollPosition();else this.getScrollPosition()}}},e.prototype.callExpirationHandler=function(){var e=this,t=this.callbacks.expirationHandler;t.legacy?t.handler(function(t){return e.updateAccessTokenOrReinitialize(t)}):t.handler().then(function(t){return e.updateAccessTokenOrReinitialize(t)},function(t){null!=t||(t="Failed to update access token"),t.message&&(t=t.message),"string"!=typeof t&&(t=String(t)),e.updateAccessToken(null,t)})},e.prototype.updateAccessTokenOrReinitialize=function(e){var t=e?s(e):this.config.version;if(e&&this.iframe&&!this.initialized&&this.config.version!=t)return this.sessionId="",this.config.accessToken=e,this.config.version=t,this.baseUrl=this.getCurrentBaseUrl(this.baseUrl,e),this.iframeId="id_"+this.getIframeId(),void(this.iframe.src=this.getIframeSrc());this.updateAccessToken(e)},e.prototype.getScrolledElement=function(){for(var e,t=null===(e=this.iframe)||void 0===e?void 0:e.parentElement;0===(null==t?void 0:t.scrollTop)&&"BODY"!==(null==t?void 0:t.tagName);)t=null==t?void 0:t.parentElement;return t},e.prototype.getScrollPosition=function(){var e=this.getScrolledElement();this.scrollPosition=(null==e?void 0:e.scrollTop)||-1,this.scrollElement=this.scrollPosition>0&&e?e:null},e.prototype.restoreScrollPosition=function(){this.scrollElement&&this.scrollPosition>=0&&(this.scrollElement.scrollTop=this.scrollPosition),this.scrollPosition=-1,this.scrollElement=null},e.prototype.scrollTo=function(e){var t;if(this.options.enableScrollIntoView){var i=this.getScrolledElement();if(0===(null==i?void 0:i.scrollTop)&&"BODY"===(null==i?void 0:i.tagName)){var n=(null===(t=this.iframe)||void 0===t?void 0:t.getBoundingClientRect().top)||0;window.scrollTo({top:n+e,behavior:"smooth"})}else null==i||i.scrollTo({top:e,behavior:"smooth"})}},e.prototype.updateAccessToken=function(e,t){var i,n;null===(n=null===(i=this.iframe)||void 0===i?void 0:i.contentWindow)||void 0===n||n.postMessage({method:"idCheck.updateAccessToken",accessToken:e,error:t},"*")},e.prototype.destroy=function(){for(window.removeEventListener("message",this.onMessage);this.$container&&this.$container.firstChild;)this.$container.removeChild(this.$container.firstChild);this.$container=null},e.prototype.navigateBack=function(){var e,t;null===(t=null===(e=this.iframe)||void 0===e?void 0:e.contentWindow)||void 0===t||t.postMessage({method:"idCheck.callNavigationBack"},"*")},e.prototype.singleStepNext=function(e){var t,i;null===(i=null===(t=this.iframe)||void 0===t?void 0:t.contentWindow)||void 0===i||i.postMessage({method:"idCheck.callSingleStepNext",step:e},"*")},e.prototype.setLanguage=function(e){var t,i;null===(i=null===(t=this.iframe)||void 0===t?void 0:t.contentWindow)||void 0===i||i.postMessage({method:"idCheck.callSet
1Language",language:e},"*")},e.prototype.setTheme=function(e){var t,i;null===(i=null===(t=this.iframe)||void 0===t?void 0:t.contentWindow)||void 0===i||i.postMessage({method:"idCheck.callSetTheme",theme:e},"*")},e}(),a=function(){function e(e,t){if(this.config=null,this.reusableConfig=null,this.eventHandlers={},this.anyEventHandler=null,this.options={adaptIframeHeight:!0,addViewportTag:!0,enableScrollIntoView:!0},"string"!=typeof e)throw Error("Access token must be a string");if("function"!=typeof t)throw Error("updateAccessToken callback is required");this.accessToken=e,this.updateAccessToken=t}return e.prototype.onTestEnv=function(){return this},e.prototype.withBaseUrl=function(e){return this.baseUrl=e,this},e.prototype.withConf=function(e){return this.config=e,this},e.prototype.withReusableKycConf=function(e){return this.reusableConfig=e,this},e.prototype.withOptions=function(e){var t;return e.hasOwnProperty("adaptIframeHeight")&&(this.options.adaptIframeHeight=e.adaptIframeHeight),e.hasOwnProperty("addViewportTag")&&(this.options.addViewportTag=e.addViewportTag),this.options.enableScrollIntoView=null===(t=e.enableScrollIntoView)||void 0===t||t,this},e.prototype.on=function(e,t){return this.eventHandlers[e]=t,this},e.prototype.onMessage=function(e){return this.anyEventHandler=e,this},e.prototype.onNavigationUiControlsStateChanged=function(e){return this.eventHandlers["idCheck.onNavigationUiControlsStateChanged"]=e,this},e.prototype.build=function(){var e,t,i,n,a,r,l,c,d,u,m,h,p,v,f=this,w=s(this.accessToken);return new o(this.baseUrl,{version:w,theme:null===(e=this.config)||void 0===e?void 0:e.theme,customizationName:null===(t=this.config)||void 0===t?void 0:t.customizationName,translationName:null===(i=this.config)||void 0===i?void 0:i.translationName,accessToken:this.accessToken,lang:null===(n=this.config)||void 0===n?void 0:n.lang,email:null===(a=this.config)||void 0===a?void 0:a.email,phone:null===(r=this.config)||void 0===r?void 0:r.phone,country:null===(l=this.config)||void 0===l?void 0:l.country,uiConf:null===(c=this.config)||void 0===c?void 0:c.uiConf,i18n:null===(d=this.config)||void 0===d?void 0:d.i18n,documentsByCountries:null===(u=this.config)||void 0===u?void 0:u.documentsByCountries,documentDefinitions:null===(m=this.config)||void 0===m?void 0:m.documentDefinitions,autoSelectDocumentDefinitions:null===(h=this.config)||void 0===h?void 0:h.autoSelectDocumentDefinitions,controlledNavigationBack:null===(p=this.config)||void 0===p?void 0:p.controlledNavigationBack,singleStep:null===(v=this.config)||void 0===v?void 0:v.singleStep,reusableConfig:this.reusableConfig},{expirationHandler:{legacy:!1,handler:this.updateAccessToken},onMessage:function(e,t){var i,n=f.eventHandlers[e];n?n(t):null===(i=f.anyEventHandler)||void 0===i||i.call(f,e,t)}},this.options)},e}(),r=function(){function e(e,t){this.debugEnabled=!1,this.options={adaptIframeHeight:!0,addViewportTag:!0,enableScrollIntoView:!0},this.config=null,this.reusableConfig=null,this.accessToken=null,this.expirationHandler=null,this.baseUrl=e,this.flowName=t}return e.prototype.withAccessToken=function(e,t){if(this.accessToken=e,!t||"function"!=typeof t)throw Error('Invalid parameter, "expirationHandler" must be a function');return this.expirationHandler=t,this},e.prototype.debug=function(e){return this.debugEnabled=e,this},e.prototype.withOptions=function(e){var t;return e.hasOwnProperty("adaptIframeHeight")&&(this.options.adaptIframeHeight=e.adaptIframeHeight),e.hasOwnProperty("addViewportTag")&&(this.options.addViewportTag=e.addViewportTag),this.options.enableScrollIntoView=null===(t=e.enableScrollIntoView)||void 0===t||t,this},e.prototype.withConf=function(e){return this.config=e,this},e.prototype.withReusableKycConf=function(e){return this.reusableConfig=e,this},e.prototype.build=function(){if(!this.accessToken||!this.expirationHandler)throw Error("Configure access token end the expiration handler before");var e,t,i,n,a,r,l,c,d,u,m,h,p,v,f,w=s(this.accessToken);return new o(this.baseUrl,{version:w,theme:null===(e=this.config)||void 0===e?void 0:e.theme,customizationName:null===(t=this.config)||void 0===t?void 0:t.customizationName,translationName:null===(i=this.config)||void 0===i?void 0:i.translationName,accessToken:this.accessToken,flowName:this.flowName,lang:null===(n=this.config)||void 0===n?void 0:n.lang,email:null===(a=this.config)||void 0===a?void 0:a.email,phone:null===(r=this.config)||void 0===r?void 0:r.phone,country:null===(l=this.config)||void 0===l?void 0:l.country,uiConf:null===(c=this.config)||void 0===c?void 0:c.uiConf,i18n:null===(d=this.config)||void 0===d?void 0:d.i18n,documentsByCountries:null===(u=this.config)||void 0===u?void 0:u.documentsByCountries,documentDefinitions:null===(m=this.config)||void 0===m?void 0:m.documentDefinitions,autoSelectDocumentDefinitions:null===(h=this.config)||void 0===h?void 0:h.autoSelectDocumentDefinitions,singleStep:null===(p=this.config)||void 0===p?void 0:p.singleStep,reusableConfig:this.reusableConfig},{expirationHandler:{legacy:!0,handler:this.expirationHandler},onMessage:null===(v=this.config)||void 0===v?void 0:v.onMessage,onError:null===(f=this.config)||void 0===f?void 0:f.onError},{adaptIframeHeight:this.options.adaptIframeHeight,addViewportTag:this.options.addViewportTag,enableScrollIntoView:this.options.enableScrollIntoView,debug:this.debugEnabled})},e}(),l={Builder:function(e,t){return new r(e,t)},init:function(e,t){return new a(e,t)}}}},e=>{var t=t=>e(e.s=t);e.O(0,[4405,636,6593,8792],()=>t(63930)),_N_E=e.O()}]);
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.