@ekyc_qoobiss/qbs-ect-cmp 3.6.13 → 3.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,g as n}from"./p-aacd7024.js";import{A as s,a as o,b as a,B as r,F as l,s as c,c as M,S as h,V as u,C as f,M as d,d as g,I as N,e as D,f as I,E as y,g as m,H as z,h as w,i as j,j as A,k as p,l as x,m as T,L as v,n as U,o as L,O as b,p as E,P as O,q as k}from"./p-ed7ad79f.js";const C=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementAcceptance=i(this,"agreementAcceptance",7),this.agreementType=void 0,this.htmlContent=void 0,this.buttonEnabled=void 0,this.apiCalls=new s,this.buttonEnabled=!0}async componentDidLoad(){try{this.htmlContent=await this.apiCalls.GetAgreement(this.agreementType)}catch(t){this.apiErrorEvent.emit(t)}}async buttonClick(t){this.buttonEnabled=!1,this.agreementAcceptance.emit({agreementType:this.agreementType,result:t})}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"scroll",innerHTML:this.htmlContent}),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("div",{class:"d-flex two-buttons"},e("button",{class:"normal-button red-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!1)},o.ButtonNo),e("button",{class:"normal-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!0)},o.ButtonYes)),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.htmlContent?t:e("div",null)}};C.style="";const S=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementsChecked=void 0,this.termsChecked=void 0,this.openAgreements=void 0,this.openTerms=void 0,this.baseComponent=new r(l.Agreements),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.agreementsChecked=!1,this.termsChecked=!1}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.openAgreements=!1,this.openTerms=!1}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.agreementsChecked&&this.termsChecked&&(c.flowStatus=M.PHONE)}agreementAcceptanceEmitted(t){"agreement"==t.detail.agreementType&&(this.agreementsChecked=t.detail.result,this.openAgreements=!1),"terms"==t.detail.agreementType&&(this.termsChecked=t.detail.result,this.openTerms=!1)}agreementsClicked(){this.openAgreements=!0}termsClicked(){this.openTerms=!0}render(){let t=e("agreement-check",{agreementType:"agreement"}),i=e("agreement-check",{agreementType:"terms"}),n=e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},a.Title),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.agreementsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.agreementsChecked}),a.Agreement)),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.termsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.termsChecked}),a.Terms))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},a.Button),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.openAgreements?t:this.openTerms?i:n}};S.style="";const Q=class{constructor(e){t(this,e),this.eventVideoStarted=i(this,"videoStarted",7),this.eventCloseCamera=i(this,"closeCamera",7),this.errorCameraEvent=i(this,"errorCamera",7),this.eventTakePhoto=i(this,"takePhoto",7),this.eventRecordingSelfieReady=i(this,"recordingSelfieCapture",7),this.eventRecordingIdReady=i(this,"recordingIdCapture",7),this.eventTimeElapsed=i(this,"timeElapsed",7),this.eventChangeTitle=i(this,"changeTitle",7),this.verificationFinished=i(this,"verificationFinished",7),this.callbackErrors=(t,i)=>{i?(this.errorCameraEvent.emit(t),this.eventCloseCamera.emit()):this.errorCameraEvent.emit(t)},this.callbackAutoCapturing=()=>{this.eventTakePhoto.emit()},this.callbackSelfieRecordingReady=t=>{this.eventRecordingSelfieReady.emit(t)},this.callbackIdRecordingReady=t=>{this.eventRecordingIdReady.emit(t)},this.callbackTimeElapsed=()=>{this.eventTimeElapsed.emit()},this.callbackChangeTitle=t=>{this.eventChangeTitle.emit(t)},this.callbackVideoStarted=()=>{this.eventVideoStarted.emit(this.component.getBoundingClientRect())},this.callbackVerificationFinished=()=>{this.verificationFinished.emit()},this.modelPath=void 0,this.probabilityThreshold=void 0,this.captureMode=void 0}componentDidLoad(){this.startStream()}render(){let t="cameraVideo",i="cameraCanvas";return c.device.isDesktop&&(t="cameraVideoSelfieDesk",i="cameraCanvasSelfieDesk"),"selfie"==this.captureMode&&(t="cameraVideoSelfie",i="cameraCanvasSelfie"),e("div",{class:"camera"},e("video",{id:"video",loop:!0,autoplay:!0,playsinline:!0,muted:!0,class:t,ref:t=>this.cameraVideo=t}),e("canvas",{id:"output",class:i,ref:t=>this.cameraCanvas=t}))}startStream(){const t=h.getInstance("tilt"==this.captureMode?u.Tilt:u.Full);t.updateHtmlElements(this.cameraVideo,this.cameraCanvas,this.component),"selfie"==this.captureMode?(t.setFaceDetection(!0),t.setCallbackRecordingReady(this.callbackSelfieRecordingReady)):(t.setIdDetection(!0),t.setCallbackRecordingReady(this.callbackIdRecordingReady)),t.setCallbackErrors(this.callbackErrors),t.setCallbackAutoCapturing(this.callbackAutoCapturing),t.setCallbackChangeTitle(this.callbackChangeTitle),t.setCallbackVideoStarted(this.callbackVideoStarted),t.setCallbackTimeElapsed(this.callbackTimeElapsed),t.setVerificationFinished(this.callbackVerificationFinished)}get component(){return n(this)}};Q.style=".camera{width:100%;height:100%;color:white;display:flex;align-items:center;justify-content:center;position:relative}.cameraCanvas,.cameraCanvasSelfie,.cameraCanvasSelfieDesk{z-index:3;max-width:100%;max-height:100%;border-radius:10px}.cameraCanvasSelfie,.cameraCanvasSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraVideo,.cameraVideoSelfie,.cameraVideoSelfieDesk{z-index:2;position:absolute;max-width:100%;max-height:100%;border-radius:10px}.cameraVideoSelfie,.cameraVideoSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraMobile{position:fixed;top:0;left:0;background:black}";const Y=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.description=void 0,this.buttonDisabled=void 0,this.demoVideo=void 0,this.baseComponent=new r(l.CameraError),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){this.buttonDisabled=!1,this.title=f.Title,this.description=f.Description,this.buttonText=f.Button}async componentDidLoad(){await this.baseComponent.initialize(),c.device.mobileOS!=d.iOS?(this.demoVideo.src=f.HowToLink,this.demoVideo.loop=!0,this.demoVideo.play()):"true"===sessionStorage.getItem(g.RefreshDoneKey)&&(sessionStorage.setItem(g.RefreshDoneKey,"false"),c.flowStatus=M.LANDING)}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.buttonDisabled=!0,c.device.mobileOS==d.iOS?(sessionStorage.setItem(g.RefreshDoneKey,"true"),window.location.reload()):c.flowStatus=M.LANDING}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.title),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.description)),e("div",{hidden:c.device.mobileOS==d.iOS},e("video",{id:"howtoPermissions",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:this.buttonDisabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},f.FooterText)))))}};Y.style="";const F=class{constructor(e){t(this,e),this.eventCaptureErrorDone=i(this,"captureErrorDone",7),this.type=void 0,this.buttonEnabled=void 0,this.buttonText=void 0}async componentWillLoad(){this.buttonEnabled=!1,"ID"==this.type&&(this.titleR1=N.ErrorTitleR1,this.titleR2=N.ErrorTitleR2,this.descriptionR1=N.ErrorR1,this.descriptionR2=N.ErrorR2),"LIVENESS"==this.type&&(this.titleR1=D.ErrorTitleR1,this.titleR2=D.ErrorTitleR2,this.descriptionR1=D.ErrorR1,this.descriptionR2=D.ErrorR2)}async componentDidLoad(){for(let t=5;t>=1;t--)this.buttonText=t.toString(),await I(1e3);this.buttonText=N.Button,this.buttonEnabled=!0}buttonClick(){this.buttonEnabled=!1,this.eventCaptureErrorDone.emit()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.titleR1),e("h1",{class:"color-red"},this.titleR2),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR1),e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR2)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText)))))}};F.style="";const Z=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7)}async componentDidLoad(){y.flowCompleted()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},m.Title),e("p",{class:"main-text font-size-18 mt-8 text-center"},m.Description)),e("div",{class:"buletin-container"},e("div",{class:"container-coin"},e("div",{class:"coin-scale"},e("div",{class:"coin-flip"},e("img",{class:"w-40 coin",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iODQiIHZpZXdCb3g9IjAgMCA4MyA4NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik00MS41IDgzLjcwNjJDMzAuNDE0NyA4My43MDYyIDE5Ljk5MjkgNzkuMzgwNCAxMi4xNTQ2IDcxLjUyNUM0LjMxNjQxIDYzLjY2OTcgMCA1My4yMjUxIDAgNDIuMTE1NkMwIDMxLjAwNjEg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NzAxMyAzMC4yOTcxIDY3LjcwMTMgMzYuMjUwMSA2NC4wNTE0IDM5LjkwOTRMNDQuMDg4MiA1OS45MTYzQzQyLjMxOTUgNjEuNjg4OCAzOS45Njg1IDYyLjY2NTEgMzcuNDY3NiA2Mi42NjUxVjYyLjY2MlpNMjUuNTc1MyAzNi4xODlDMjQuMjA0NiAzNi4xODkgMjIuOTE1MiAzNi43MjQxIDIxLjk0NTcgMzcuNjk1N0MxOS45NDEzIDM5LjcwNDUgMTkuOTQxMyA0Mi45NjQ5IDIxLjkzNzkgNDQuOTcwNkwzMy44MzUgNTYuOTEyNEMzNC44MDQ0IDU3Ljg4NTUgMzYuMDkzOSA1OC40MjIyIDM3LjQ2NDUgNTguNDIyMkgzNy40NjYxQzM4LjgzNjcgNTguNDIyMiA0MC4xMjYyIDU3Ljg4NzEgNDEuMDk1NiA1Ni45MTU1TDYxLjA1ODggMzYuOTA4N0M2My4wNjAxIDM0LjkwMyA2My4wNjAxIDMxLjYzOTUgNjEuMDU4OCAyOS42MzM4QzU5LjA1NzUgMjcuNjI4MSA1NS44MDExIDI3LjYyODEgNTMuNzk5NyAyOS42MzM4TDUyLjMwNDIgMjguMTM1TDUzLjc5OTcgMjkuNjMzOEwzOC45NzU3IDQ0LjQ5MDNDMzguMTQ5OCA0NS4zMTc5IDM2LjgxMDQgNDUuMzE3OSAzNS45ODQ2IDQ0LjQ5MDNMMjkuMjAzMiAzNy42OTQxQzI4LjIzMzggMzYuNzIyNSAyNi45NDQzIDM2LjE4NzUgMjUuNTczNyAzNi4xODc1TDI1LjU3NTMgMzYuMTg5WiIgZmlsbD0iIzVEQzFBQyIvPg0KPC9zdmc+DQo="}))))),e("div",{class:"text-center"},e("p",{class:"font-weight-900 font-size-3 color-black-2 text-center mt-20"},m.Message),e("p",null,c.requestId)),e("div",{class:"btn-buletin"},e("p",{class:"main-text font-size-18 text-center mb-0"},m.FooterText))))}};Z.style="h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";const B=class{constructor(i){t(this,i),this.message=void 0,this.errorTitle=void 0}componentDidLoad(){}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"text-center"},e("h1",null,this.errorTitle)),e("div",{class:"text-center"},e("p",null,c.requestId)),e("div",null,e("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.message))))}};B.style="";const R=class{constructor(e){t(this,e),this.eventHowToInfoDone=i(this,"howToInfoDone",7),this.apiErrorEvent=i(this,"apiError",7),this.idSide=void 0,this.topTitle=void 0,this.subTitle=void 0,this.imagePath=void 0,this.buttonText=void 0,this.buttonEnabled=void 0}async componentDidLoad(){await this.baseComponent.initialize()}async disconnectedCallback(){await this.baseComponent.finalize()}buttonClick(){this.buttonEnabled=!1,this.eventHowToInfoDone.emit()}componentWillLoad(){this.subTitle="",this.buttonEnabled=!0,c.flowStatus==M.ID&&(this.topTitle=z.IdTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_id.png",this.buttonText=z.IdButton,"front"==this.idSide&&(this.baseComponent=new r(l.CiFrontHowTo),this.subTitle=z.IdSubTitileFace),"back"==this.idSide&&(this.baseComponent=new r(l.CiBackHowTo),this.subTitle=z.IdSubTitileBack)),c.flowStatus==M.LIVENESS&&(this.baseComponent=new r(l.SelfieHowTo),this.topTitle=z.SelfieTitile,this.subTitle=z.SelfieSubTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_selfie.png",this.buttonText=z.SelfieButton),this.baseComponent.setEventEmitter(this.apiErrorEvent)}render(){let t=""!=this.subTitle?e("p",{class:"font-size-2"},this.subTitle):null;return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:this.imagePath})),e("div",{class:"text-center"},e("h1",null,this.topTitle),t),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},z.FooterText)))))}};R.style="";class W{async GetCameras(t){var i=[];const e=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind));for(const n of e){const e=this.GetConstraints(n.deviceId,t),s=await navigator.mediaDevices.getUserMedia(e);s.getVideoTracks().forEach((e=>{var s,o;if(t.browser===w.Firefox){const t=e.getSettings();let o=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";o="e"===o?"environment":o,o="u"===o?"user":o,i.push({deviceId:n.deviceId,name:n.label,height:t.height,width:t.width,frameRate:Number(t.frameRate.max),focusModes:null!==(s=t.focusMode)&&void 0!==s?s:[],torch:!1,recommended:!1,facingMode:o})}else{const t=e.getCapabilities();let s=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";s="e"===s?"environment":s,s="u"===s?"user":s,i.push({deviceId:n.deviceId,name:n.label,height:t.height.max,width:t.width.max,frameRate:Number(t.frameRate.max),focusModes:null!==(o=t.focusMode)&&void 0!==o?o:[],torch:t.torch,recommended:!1,facingMode:s})}})),s.getTracks().forEach((t=>{t.stop()}))}if(i.length>0){var n=(i=i.sort(((t,i)=>i.frameRate-t.frameRate))).find((t=>t.focusModes.length>1&&"environment"===t.facingMode));if(n)i[i.indexOf(n)].recommended=!0;else{var s=i.find((t=>"environment"===t.facingMode));s&&(i[i.indexOf(s)].recommended=!0)}}return i}GetConstraints(t,i,e=!1){let n={audio:!1},s={frameRate:30};return t&&(s.deviceId={exact:t}),i.isDesktop?s.width={ideal:1280}:(s.facingMode="user",e?i.isAndroidDevice?(s.width={ideal:1280},s.height={ideal:720}):(s.width={ideal:1920},s.height={ideal:1080}):(s.facingMode="environment",s.width={ideal:1280},s.aspectRatio=1)),n.video=s,n}GetRecommendedCamera(t){if(t&&t.length>0){var i=t.find((t=>t.recommended));if(i)return i}return null}static async InitCameras(t){try{let e=new W,n=(await e.GetCameras(t)).filter((t=>"environment"==t.facingMode));var i=e.GetRecommendedCamera(n);return c.cameraIds=n.map((t=>t.deviceId)),c.cameraId=null==i?void 0:i.deviceId,!0}catch(t){if(console.log(t),t.message.includes("Permission denied")||t.name.includes("NotAllowedError"))return!1;throw t}}}var P;!function(t){t[t.Straight=0]="Straight",t[t.Tilted=1]="Tilted",t[t.Rotate=2]="Rotate",t[t.BackStraight=3]="BackStraight",t[t.BackTilted=4]="BackTilted"}(P||(P={}));const G=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdBackCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiBackHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiBackHoldAnimation,j.Initialized),this.titleMesage=N.TtileRotate,this.demoVideo.src=N.IDPoseDemoMapping[P.Rotate],this.demoVideo.play(),await I(N.VideoLenght),this.titleMesage=N.TitleBack,this.demoVideo.src=N.IDPoseDemoMapping[P.BackStraight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiBackHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiBackCapture,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiBackCapture,j.Finalized)}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoBack",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};G.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const V=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiFrontHoldAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Straight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiFrontHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiFrontCapture,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiFrontCapture,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};V.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const J=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(l.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.IDPoseMapping[1],navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.CiFrontTiltAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Tilted],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(l.CiFrontTiltAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.CiTilt,j.Initialized);const t=this.cameras.GetConstraints(c.cameraId,c.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.CiTilt,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"tilt"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};let H;J.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const X=new Uint8Array(16);function _(){if(!H&&(H="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!H))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return H(X)}const K=[];for(let t=0;t<256;++t)K.push((t+256).toString(16).slice(1));const q={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $(t,i,e){if(q.randomUUID&&!i&&!t)return q.randomUUID();const n=(t=t||{}).random||(t.rng||_)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,i){e=e||0;for(let t=0;t<16;++t)i[e+t]=n[t];return i}return function(t,i=0){return(K[t[i+0]]+K[t[i+1]]+K[t[i+2]]+K[t[i+3]]+"-"+K[t[i+4]]+K[t[i+5]]+"-"+K[t[i+6]]+K[t[i+7]]+"-"+K[t[i+8]]+K[t[i+9]]+"-"+K[t[i+10]]+K[t[i+11]]+K[t[i+12]]+K[t[i+13]]+K[t[i+14]]+K[t[i+15]]).toLowerCase()}(n)}const tt=class{async onTokenChange(t,i){c.debug&&console.log("Token change called with value: "+t),""!=t?c.token!==t&&(c.token=t,await this.initializeRequest()):t=c.token}async onOrderIdChange(t,i){c.debug&&console.log("OrderId change called with value: "+t),c.requestId!==t&&""!=t&&(c.requestId=t,c.initialised=!1,await this.initializeRequest(),c.flowStatus!=M.LANDING&&c.flowStatus!=M.NONE&&(c.flowStatus=M.LANDING))}onApiUrlChange(t,i){""==c.apiBaseUrl?c.apiBaseUrl!==t&&(c.apiBaseUrl=t):t=c.apiBaseUrl}onEnvChange(t,i){""==c.environment?c.environment!==t&&(c.environment=t):t=c.environment}async onRedirectIdChange(t,i){c.debug&&console.log("RedirectId change called with value: "+t),""==c.redirectId?(c.redirectId!==t&&(c.redirectId=t),await this.initializeRequest()):t=c.redirectId}async onPhoneChange(t,i){""==c.phoneNumber?c.phoneNumber!==t&&(c.phoneNumber=t):t=c.phoneNumber}agreementAcceptanceEmitted(t){try{this.baseComponent.apiCall.GenerateAgreement(t.detail.agreementType)}catch(t){this.apiErrorEmitter(t,"Agreement Acceptance")}}async apiErrorEmitter(t,i){var e,n,s,o,a,r;t.detail?(this.errorTitle=null!==(n=null!==(e=t.detail.message)&&void 0!==e?e:t.detail.status)&&void 0!==n?n:"",this.errorMessage=null!==(o=null!==(s=t.detail.stack)&&void 0!==s?s:t.detail.statusText)&&void 0!==o?o:""):t.message?this.errorTitle=t.message:t.status?(this.errorTitle=null!==(a=t.status)&&void 0!==a?a:"",this.errorMessage=null!==(r=t.statusText)&&void 0!==r?r:""):this.errorTitle=t;let l={message:this.errorTitle,stack:this.errorMessage,zone:i};try{await this.baseComponent.apiCall.AddLog(l,x(this.order_id,this.redirect_id,this.token))}catch(t){}y.flowError(this.errorTitle),c.flowStatus=M.ERROREND}constructor(i){t(this,i),this.logInit={},this.flowStatusToSet=M.NONE,this.token=void 0,this.order_id=void 0,this.api_url=void 0,this.env=void 0,this.redirect_id=void 0,this.phone_number=void 0,this.idSide="",this.errorMessage=void 0,this.errorTitle=void 0}async componentWillLoad(){y.init(window),y.flowEvent(l.ComponentLoaded,j.Initialized),c.apiBaseUrl=this.api_url,this.env&&""!=this.env&&(c.environment=this.env),this.baseComponent=new r(l.ComponentLoaded),this.baseComponent.setErrorCallback(this.apiErrorEmitter),c.debug&&(this.logInit=x(this.order_id,this.redirect_id,this.token)),this.token?(c.debug&&console.log("Store Token set with property value: "+this.token),c.token=this.token):""==c.token&&(c.token=sessionStorage.getItem(g.TokenKey),this.token=c.token,c.debug&&console.log("Store Token set with session value: "+c.token)),this.redirect_id&&(c.redirectId=this.redirect_id),this.phone_number&&""!=this.phone_number&&(c.phoneNumber=this.phone_number);var t=sessionStorage.getItem(g.InitialisedKey);t&&"true"==t.toLowerCase()&&(c.initialised=!0);var i=sessionStorage.getItem(g.HasIdBackKey);i&&"true"==i.toLowerCase()&&(c.hasIdBack=!0);var e=sessionStorage.getItem(g.AgreementValidationKey);e&&"true"==e.toLowerCase()&&(c.agreementsValidation=!0);var n=sessionStorage.getItem(g.PhoneValidationKey);n&&"true"==n.toLowerCase()&&(c.phoneValidation=!0);const s=sessionStorage.getItem(g.RequestIdKey);if(this.order_id&&""!=this.order_id?(c.requestId=this.order_id,c.debug&&console.log("Current RequestId has value: "+this.order_id),s&&""!=s&&s!=this.order_id&&(c.debug&&console.log("Session RequestId: "+s+" has different value than property one: "+this.order_id),this.flowStatusToSet=M.LANDING,c.initialised=!1)):s&&(c.debug&&console.log("Current RequestId has no value, setting with session value: "+s),c.requestId=s,this.order_id=s),this.flowStatusToSet==M.NONE){var o=sessionStorage.getItem(g.FlowStatusKey);this.flowStatusToSet=o?M[o]:M.LANDING}}async componentDidLoad(){await this.initializeRequest(),c.flowStatus=this.flowStatusToSet}componentWillRender(){""==this.idSide&&(this.idSide=c.hasIdBack?"front":"")}async initializeRequest(){if(!c.initialised)if("DEMO"!=c.environment)if(c.device.browser!=w.Mi){try{c.debug&&this.baseComponent.apiCall.AddLog({phase:"debug mode"},this.logInit)}catch(t){}try{c.device.isMobile||""!=c.redirectId||(c.redirectId=$(),this.redirect_id=c.redirectId),""==c.token||""==c.requestId&&""==c.redirectId||(c.initialised=await this.baseComponent.apiCall.AddIdentificationRequest(c.device,"3.6.13"),this.order_id&&""!=this.order_id||(this.order_id=c.requestId))}catch(t){this.apiErrorEmitter(t,"Request Initialisation RequestId:"+c.requestId+" RedirectId:"+c.redirectId)}T.getInstance()}else this.apiErrorEmitter("Mi Browser nu este acceptat. Va rugam utilizati Chrome.","Request Initialisation RequestId:"+c.requestId+" RedirectId:"+c.redirectId);else c.initialised=!0}disconnectedCallback(){y.flowEvent(l.ComponentLoaded,j.Finalized)}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:"data:image/svg+xml;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W5pdGUiLz4NCiAgPC91c2U+DQogIDx1c2UgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhsaW5rOmhyZWY9IiNzcGlubmVyIiB0cmFuc2Zvcm09InJvdGF0ZSgyNzAgNTAgNTApIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjA7MTswIiBkdXI9IjFzIiBiZWdpbj0iMC43NXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMzE1IDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuODc1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQo8L3N2Zz4="}))));return c.device.isMobile||"DEMO"==c.environment?c.flowStatus==M.LANDING&&(t=e("landing-validation",null)):c.flowStatus!=M.NONE&&(t=e("mobile-redirect",null)),c.flowStatus==M.AGREEMENT&&(t=e("agreement-info",null)),c.flowStatus==M.PHONE&&(t=e("sms-code-validation",null)),c.flowStatus==M.CODE&&(t=e("sms-code-validation",null)),c.flowStatus==M.CODEERROR&&(t=e("sms-code-validation",null)),c.flowStatus==M.ID&&(t=e("process-id",null)),c.flowStatus==M.LIVENESS&&(t=e("user-liveness",{id:"camera"})),c.flowStatus==M.COMPLETE&&(t=e("end-redirect",null)),c.flowStatus==M.ERROREND&&(t=e("error-end",{errorTitle:this.errorTitle,message:this.errorMessage})),c.flowStatus==M.CAMERAERROR&&(t=e("camera-error",null)),e("div",null,t)}static get watchers(){return{token:["onTokenChange"],order_id:["onOrderIdChange"],api_url:["onApiUrlChange"],env:["onEnvChange"],redirect_id:["onRedirectIdChange"],phone_number:["onPhoneChange"]}}};tt.style="@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.container-video{height:99vh;text-align:center;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.link-text{margin-top:1vh;text-decoration:underline}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.show-bottom{bottom:-2vh}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.mt-5{margin-top:5vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{text-align:center}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-size-25{font-size:2.5vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:4;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}}";const it=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.warningText=void 0,this.buttonDisabled=void 0,this.baseComponent=new r(l.Landing),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){y.flowStarted(),this.baseComponent.apiCall=new s,this.buttonDisabled=!1,await this.initRequest()}async componentDidLoad(){"DEMO"!==c.environment&&await this.baseComponent.initialize()}async initRequest(){this.warningText=c.hasIdBack?v.WarningMd:v.Warning}async startFlow(){if(c.initialised){if(this.buttonDisabled=!0,"DEMO"===c.environment)return void(c.flowStatus=M.COMPLETE);await W.InitCameras(c.device)?c.flowStatus=c.agreementsValidation?M.AGREEMENT:c.phoneValidation?M.PHONE:M.ID:(c.device.mobileOS==d.iOS&&sessionStorage.setItem(g.RefreshDoneKey,"false"),c.flowStatus=M.CAMERAERROR)}}async disconnectedCallback(){await this.baseComponent.finalize()}async leaveFlow(){if(!this.buttonDisabled){c.initialised=!1;try{await this.baseComponent.apiCall.AbortRequest(),y.flowAborted()}catch(t){y.flowAborted(),this.apiErrorEvent.emit(t)}}}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},v.Title),e("div",{class:"d-flex space-between align-center"},e("p",{class:"main-text font-size-2"},v.Description),e("div",{class:"img-info"},e("div",{class:"i-effect"}),e("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDYgMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMC4zNDQ4NiAyNy44ODQ4VjguNzkzODZINS42Mzk2VjI3Ljg4NDhIMC4zNDQ4NlpNMy4wMDQ2NiA2LjMzMjkyQzIuMjE3NDkgNi4zMzI5MiAxLjU0MjE4IDYuMDcxOTEgMC45Nzg3MzggNS41NDk4OUMwLjQyMzU3NyA1LjAxOTU5IDAuMTQ1OTk2IDQuMzg1NzEgMC4xNDU5OTYgMy42NDgyNkMwLjE0NTk5NiAyLjkxOTA5IDAuNDIzNTc3IDIuMjkzNSAwLjk3ODczOCAxLjc3MTQ4QzEuNTQyMTggMS4yNDExOCAyLj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ODYgMTIuMDI3NiAxOC41Mjg2IDEyLjdaTTE5LjM0NjggMTIuN0MxOS4zNDY4IDEyLjQ4MTggMTkuNTI0NCAxMi4zMDQxIDE5Ljc0MjggMTIuMzA0MUMxOS45NjEyIDEyLjMwNDEgMjAuMTM4NyAxMi40ODE4IDIwLjEzODcgMTIuN0MyMC4xMzg3IDEyLjkxODEgMTkuOTYxMiAxMy4wOTU4IDE5Ljc0MjggMTMuMDk1OEMxOS41MjQ0IDEzLjA5NTggMTkuMzQ2OCAxMi45MTgxIDE5LjM0NjggMTIuN1oiIGZpbGw9IiM2RTc0ODgiIHN0cm9rZT0iIzZFNzQ4OCIgc3Ryb2tlLXdpZHRoPSIwLjc0NDg5MSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE0XzE2MDEiPg0KPHJlY3Qgd2lkdGg9IjM5LjQ3OTIiIGhlaWdodD0iNDMuMjAzNyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMjYwMzc2IDAuNTEzNDI4KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K"})),e("h3",null,v.SmsInfo))),e("div",{class:"terms-container"},e("h3",{class:"font-size-2 mb-1 text-center"},this.warningText)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!c.initialised||this.buttonDisabled,onClick:()=>this.startFlow()},v.Button),e("p",{class:"main-text font-size-2 link-text mb-0",onClick:()=>this.leaveFlow()},v.ButtonLeave),e("p",{class:"main-text font-size-18 text-right mb-0"},v.FooterText)))))}};it.style="";var et=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then};let nt;const st=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];var ot=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},at=function(t){return st[t]},rt=function(t){let i=0;for(;0!==t;)i++,t>>>=1;return i},lt=function(){return void 0!==nt},ct=function(t){return nt(t)},Mt=U((function(t,i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2},i.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}}));function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(t){const i=Math.floor(t/8);return 1==(this.buffer[i]>>>7-t%8&1)},put:function(t,i){for(let e=0;e<i;e++)this.putBit(1==(t>>>i-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var ut=ht;function ft(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}ft.prototype.set=function(t,i,e,n){const s=t*this.size+i;this.data[s]=e,n&&(this.reservedBit[s]=!0)},ft.prototype.get=function(t,i){return this.data[t*this.size+i]},ft.prototype.xor=function(t,i,e){this.data[t*this.size+i]^=e},ft.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]};var dt=ft,gt=U((function(t,i){const e=ot;i.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,n=e(t),s=145===n?26:2*Math.ceil((n-13)/(2*i-2)),o=[n-7];for(let t=1;t<i-1;t++)o[t]=o[t-1]-s;return o.push(6),o.reverse()},i.getPositions=function(t){const e=[],n=i.getRowColCoords(t),s=n.length;for(let t=0;t<s;t++)for(let i=0;i<s;i++)0===t&&0===i||0===t&&i===s-1||t===s-1&&0===i||e.push([n[t],n[i]]);return e}}));const Nt=ot;var Dt=U((function(t,i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,e,n){switch(t){case i.Patterns.PATTERN000:return(e+n)%2==0;case i.Patterns.PATTERN001:return e%2==0;case i.Patterns.PATTERN010:return n%3==0;case i.Patterns.PATTERN011:return(e+n)%3==0;case i.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case i.Patterns.PATTERN101:return e*n%2+e*n%3==0;case i.Patterns.PATTERN110:return(e*n%2+e*n%3)%2==0;case i.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}i.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},i.from=function(t){return i.isValid(t)?parseInt(t,10):void 0},i.getPenaltyN1=function(t){const i=t.size;let e=0,n=0,s=0,o=null,a=null;for(let r=0;r<i;r++){n=s=0,o=a=null;for(let l=0;l<i;l++){let i=t.get(r,l);i===o?n++:(n>=5&&(e+=n-5+3),o=i,n=1),i=t.get(l,r),i===a?s++:(s>=5&&(e+=s-5+3),a=i,s=1)}n>=5&&(e+=n-5+3),s>=5&&(e+=s-5+3)}return e},i.getPenaltyN2=function(t){const i=t.size;let e=0;for(let n=0;n<i-1;n++)for(let s=0;s<i-1;s++){const i=t.get(n,s)+t.get(n,s+1)+t.get(n+1,s)+t.get(n+1,s+1);4!==i&&0!==i||e++}return 3*e},i.getPenaltyN3=function(t){const i=t.size;let e=0,n=0,s=0;for(let o=0;o<i;o++){n=s=0;for(let a=0;a<i;a++)n=n<<1&2047|t.get(o,a),a>=10&&(1488===n||93===n)&&e++,s=s<<1&2047|t.get(a,o),a>=10&&(1488===s||93===s)&&e++}return 40*e},i.getPenaltyN4=function(t){let i=0;const e=t.data.length;for(let n=0;n<e;n++)i+=t.data[n];return 10*Math.abs(Math.ceil(100*i/e/5)-10)},i.applyMask=function(t,i){const n=i.size;for(let s=0;s<n;s++)for(let o=0;o<n;o++)i.isReserved(o,s)||i.xor(o,s,e(t,o,s))},i.getBestMask=function(t,e){const n=Object.keys(i.Patterns).length;let s=0,o=1/0;for(let a=0;a<n;a++){e(a),i.applyMask(a,t);const n=i.getPenaltyN1(t)+i.getPenaltyN2(t)+i.getPenaltyN3(t)+i.getPenaltyN4(t);i.applyMask(a,t),n<o&&(o=n,s=a)}return s}}));const It=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],yt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];var mt=function(t,i){switch(i){case Mt.L:return It[4*(t-1)+0];case Mt.M:return It[4*(t-1)+1];case Mt.Q:return It[4*(t-1)+2];case Mt.H:return It[4*(t-1)+3];default:return}},zt=function(t,i){switch(i){case Mt.L:return yt[4*(t-1)+0];case Mt.M:return yt[4*(t-1)+1];case Mt.Q:return yt[4*(t-1)+2];case Mt.H:return yt[4*(t-1)+3];default:return}};const wt=new Uint8Array(512),jt=new Uint8Array(256);!function(){let t=1;for(let i=0;i<255;i++)wt[i]=t,jt[t]=i,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)wt[t]=wt[t-255]}();var At=function(t,i){return 0===t||0===i?0:wt[jt[t]+jt[i]]},pt=U((function(t,i){i.mul=function(t,i){const e=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let s=0;s<i.length;s++)e[n+s]^=At(t[n],i[s]);return e},i.mod=function(t,i){let e=new Uint8Array(t);for(;e.length-i.length>=0;){const t=e[0];for(let n=0;n<i.length;n++)e[n]^=At(i[n],t);let n=0;for(;n<e.length&&0===e[n];)n++;e=e.slice(n)}return e},i.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let s=0;s<t;s++)e=i.mul(e,new Uint8Array([1,(n=s,wt[n])]));var n;return e}}));function xt(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}xt.prototype.initialize=function(t){this.degree=t,this.genPoly=pt.generateECPolynomial(this.degree)},xt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const e=pt.mod(i,this.genPoly),n=this.degree-e.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(e,n),t}return e};var Tt=xt,vt=function(t){return!isNaN(t)&&t>=1&&t<=40};const Ut="[0-9]+";let Lt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Lt=Lt.replace(/u/g,"\\u");const bt="(?:(?![A-Z0-9 $%*+\\-./:]|"+Lt+")(?:.|[\r\n]))+";var Et=new RegExp(Lt,"g"),Ot=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),kt=new RegExp(bt,"g"),Ct=new RegExp(Ut,"g"),St=new RegExp("[A-Z $%*+\\-./:]+","g");const Qt=new RegExp("^"+Lt+"$"),Yt=new RegExp("^"+Ut+"$"),Ft=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");var Zt={KANJI:Et,BYTE_KANJI:Ot,BYTE:kt,NUMERIC:Ct,ALPHANUMERIC:St,testKanji:function(t){return Qt.test(t)},testNumeric:function(t){return Yt.test(t)},testAlphanumeric:function(t){return Ft.test(t)}},Bt=U((function(t,i){i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(t,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!vt(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},i.getBestModeForData=function(t){return Zt.testNumeric(t)?i.NUMERIC:Zt.testAlphanumeric(t)?i.ALPHANUMERIC:Zt.testKanji(t)?i.KANJI:i.BYTE},i.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},i.isValid=function(t){return t&&t.bit&&t.ccBits},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}})),Rt=U((function(t,i){const e=rt(7973);function n(t,i){return Bt.getCharCountIndicator(t,i)+4}function s(t,i){let e=0;return t.forEach((function(t){const s=n(t.mode,i);e+=s+t.getBitsLength()})),e}i.from=function(t,i){return vt(t)?parseInt(t,10):i},i.getCapacity=function(t,i,e){if(!vt(t))throw new Error("Invalid QR Code version");void 0===e&&(e=Bt.BYTE);const s=8*(at(t)-zt(t,i));if(e===Bt.MIXED)return s;const o=s-n(e,t);switch(e){case Bt.NUMERIC:return Math.floor(o/10*3);case Bt.ALPHANUMERIC:return Math.floor(o/11*2);case Bt.KANJI:return Math.floor(o/13);default:return Math.floor(o/8)}},i.getBestVersionForData=function(t,e){let n;const o=Mt.from(e,Mt.M);if(Array.isArray(t)){if(t.length>1)return function(t,e){for(let n=1;n<=40;n++)if(s(t,n)<=i.getCapacity(n,e,Bt.MIXED))return n}(t,o);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,e,n){for(let s=1;s<=40;s++)if(e<=i.getCapacity(s,n,t))return s}(n.mode,n.getLength(),o)},i.getEncodedBits=function(t){if(!vt(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;rt(i)-e>=0;)i^=7973<<rt(i)-e;return t<<12|i}}));const Wt=rt(1335);function Pt(t){this.mode=Bt.NUMERIC,this.data=t.toString()}Pt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},Pt.prototype.getLength=function(){return this.data.length},Pt.prototype.getBitsLength=function(){return Pt.getBitsLength(this.data.length)},Pt.prototype.write=function(t){let i,e,n;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),n=parseInt(e,10),t.put(n,10);const s=this.data.length-i;s>0&&(e=this.data.substr(i),n=parseInt(e,10),t.put(n,3*s+1))};var Gt=Pt;const Vt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Jt(t){this.mode=Bt.ALPHANUMERIC,this.data=t}Jt.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},Jt.prototype.getLength=function(){return this.data.length},Jt.prototype.getBitsLength=function(){return Jt.getBitsLength(this.data.length)},Jt.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let e=45*Vt.indexOf(this.data[i]);e+=Vt.indexOf(this.data[i+1]),t.put(e,11)}this.data.length%2&&t.put(Vt.indexOf(this.data[i]),6)};var Ht=Jt;function Xt(t){this.mode=Bt.BYTE,"string"==typeof t&&(t=function(t){for(var i=[],e=t.length,n=0;n<e;n++){var s=t.charCodeAt(n);if(s>=55296&&s<=56319&&e>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(s=1024*(s-55296)+o-56320+65536,n+=1)}s<128?i.push(s):s<2048?(i.push(s>>6|192),i.push(63&s|128)):s<55296||s>=57344&&s<65536?(i.push(s>>12|224),i.push(s>>6&63|128),i.push(63&s|128)):s>=65536&&s<=1114111?(i.push(s>>18|240),i.push(s>>12&63|128),i.push(s>>6&63|128),i.push(63&s|128)):i.push(239,191,189)}return new Uint8Array(i).buffer}(t)),this.data=new Uint8Array(t)}Xt.getBitsLength=function(t){return 8*t},Xt.prototype.getLength=function(){return this.data.length},Xt.prototype.getBitsLength=function(){return Xt.getBitsLength(this.data.length)},Xt.prototype.write=function(t){for(let i=0,e=this.data.length;i<e;i++)t.put(this.data[i],8)};var _t=Xt;function Kt(t){this.mode=Bt.KANJI,this.data=t}Kt.getBitsLength=function(t){return 13*t},Kt.prototype.getLength=function(){return this.data.length},Kt.prototype.getBitsLength=function(){return Kt.getBitsLength(this.data.length)},Kt.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let e=ct(this.data[i]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13)}};var qt=Kt,$t=U((function(t){var i={single_source_shortest_paths:function(t,e,n){var s={},o={};o[e]=0;var a,r,l,c,M,h,u=i.PriorityQueue.make();for(u.push(e,0);!u.empty();)for(l in c=(a=u.pop()).cost,M=t[r=a.value]||{})M.hasOwnProperty(l)&&(h=c+M[l],(void 0===o[l]||o[l]>h)&&(o[l]=h,u.push(l,h),s[l]=r));if(void 0!==n&&void 0===o[n]){var f=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(f)}return s},extract_shortest_path_from_predecessor_list:function(t,i){for(var e=[],n=i;n;)e.push(n),n=t[n];return e.reverse(),e},find_path:function(t,e,n){var s=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,s={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(s[e]=n[e]);return s.queue=[],s.sorter=t.sorter||n.default_sorter,s},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){this.queue.push({value:t,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i})),ti=U((function(t,i){function e(t){return unescape(encodeURIComponent(t)).length}function n(t,i,e){const n=[];let s;for(;null!==(s=t.exec(e));)n.push({data:s[0],index:s.index,mode:i,length:s[0].length});return n}function s(t){const i=n(Zt.NUMERIC,Bt.NUMERIC,t),e=n(Zt.ALPHANUMERIC,Bt.ALPHANUMERIC,t);let s,o;return lt()?(s=n(Zt.BYTE,Bt.BYTE,t),o=n(Zt.KANJI,Bt.KANJI,t)):(s=n(Zt.BYTE_KANJI,Bt.BYTE,t),o=[]),i.concat(e,s,o).sort((function(t,i){return t.index-i.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function o(t,i){switch(i){case Bt.NUMERIC:return Gt.getBitsLength(t);case Bt.ALPHANUMERIC:return Ht.getBitsLength(t);case Bt.KANJI:return qt.getBitsLength(t);case Bt.BYTE:return _t.getBitsLength(t)}}function a(t,i){let e;const n=Bt.getBestModeForData(t);if(e=Bt.from(i,n),e!==Bt.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+Bt.toString(e)+".\n Suggested mode is: "+Bt.toString(n));switch(e!==Bt.KANJI||lt()||(e=Bt.BYTE),e){case Bt.NUMERIC:return new Gt(t);case Bt.ALPHANUMERIC:return new Ht(t);case Bt.KANJI:return new qt(t);case Bt.BYTE:return new _t(t)}}i.fromArray=function(t){return t.reduce((function(t,i){return"string"==typeof i?t.push(a(i,null)):i.data&&t.push(a(i.data,i.mode)),t}),[])},i.fromString=function(t,n){const a=function(t){const i=[];for(let n=0;n<t.length;n++){const s=t[n];switch(s.mode){case Bt.NUMERIC:i.push([s,{data:s.data,mode:Bt.ALPHANUMERIC,length:s.length},{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.ALPHANUMERIC:i.push([s,{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.KANJI:i.push([s,{data:s.data,mode:Bt.BYTE,length:e(s.data)}]);break;case Bt.BYTE:i.push([{data:s.data,mode:Bt.BYTE,length:e(s.data)}])}}return i}(s(t,lt())),r=function(t,i){const e={},n={start:{}};let s=["start"];for(let a=0;a<t.length;a++){const r=t[a],l=[];for(let t=0;t<r.length;t++){const c=r[t],M=""+a+t;l.push(M),e[M]={node:c,lastCount:0},n[M]={};for(let t=0;t<s.length;t++){const a=s[t];e[a]&&e[a].node.mode===c.mode?(n[a][M]=o(e[a].lastCount+c.length,c.mode)-o(e[a].lastCount,c.mode),e[a].lastCount+=c.length):(e[a]&&(e[a].lastCount=c.length),n[a][M]=o(c.length,c.mode)+4+Bt.getCharCountIndicator(c.mode,i))}}s=l}for(let t=0;t<s.length;t++)n[s[t]].end=0;return{map:n,table:e}}(a,n),l=$t.find_path(r.map,"start","end"),c=[];for(let t=1;t<l.length-1;t++)c.push(r.table[l[t]].node);return i.fromArray(c.reduce((function(t,i){const e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===i.mode?(t[t.length-1].data+=i.data,t):(t.push(i),t)}),[]))},i.rawSplit=function(t){return i.fromArray(s(t,lt()))}}));function ii(t,i,e){const n=t.size,s=function(t,i){const e=t.bit<<3|i;let n=e<<10;for(;rt(n)-Wt>=0;)n^=1335<<rt(n)-Wt;return 21522^(e<<10|n)}(i,e);let o,a;for(o=0;o<15;o++)a=1==(s>>o&1),t.set(o<6?o:o<8?o+1:n-15+o,8,a,!0),t.set(8,o<8?n-o-1:o<9?15-o-1+1:15-o-1,a,!0);t.set(n-8,8,1,!0)}function ei(t,i,e,n){let s;if(Array.isArray(t))s=ti.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=i;if(!n){const i=ti.rawSplit(t);n=Rt.getBestVersionForData(i,e)}s=ti.fromString(t,n||40)}}const o=Rt.getBestVersionForData(s,e);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<o)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+o+".\n")}else i=o;const a=function(t,i,e){const n=new ut;e.forEach((function(i){n.put(i.mode.bit,4),n.put(i.getLength(),Bt.getCharCountIndicator(i.mode,t)),i.write(n)}));const s=8*(at(t)-zt(t,i));for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);const o=(s-n.getLengthInBits())/8;for(let t=0;t<o;t++)n.put(t%2?17:236,8);return function(t,i,e){const n=at(i),s=n-zt(i,e),o=mt(i,e),a=o-n%o,r=Math.floor(n/o),l=Math.floor(s/o),c=l+1,M=r-l,h=new Tt(M);let u=0;const f=new Array(o),d=new Array(o);let g=0;const N=new Uint8Array(t.buffer);for(let t=0;t<o;t++){const i=t<a?l:c;f[t]=N.slice(u,u+i),d[t]=h.encode(f[t]),u+=i,g=Math.max(g,i)}const D=new Uint8Array(n);let I,y,m=0;for(I=0;I<g;I++)for(y=0;y<o;y++)I<f[y].length&&(D[m++]=f[y][I]);for(I=0;I<M;I++)for(y=0;y<o;y++)D[m++]=d[y][I];return D}(n,t,i)}(i,e,s),r=ot(i),l=new dt(r);return function(t,i){const e=t.size,n=function(t){const i=Nt(t);return[[0,0],[i-7,0],[0,i-7]]}(i);for(let i=0;i<n.length;i++){const s=n[i][0],o=n[i][1];for(let i=-1;i<=7;i++)if(!(s+i<=-1||e<=s+i))for(let n=-1;n<=7;n++)o+n<=-1||e<=o+n||t.set(s+i,o+n,i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4,!0)}}(l,i),function(t){const i=t.size;for(let e=8;e<i-8;e++){const i=e%2==0;t.set(e,6,i,!0),t.set(6,e,i,!0)}}(l),function(t,i){const e=gt.getPositions(i);for(let i=0;i<e.length;i++){const n=e[i][0],s=e[i][1];for(let i=-2;i<=2;i++)for(let e=-2;e<=2;e++)t.set(n+i,s+e,-2===i||2===i||-2===e||2===e||0===i&&0===e,!0)}}(l,i),ii(l,e,0),i>=7&&function(t,i){const e=t.size,n=Rt.getEncodedBits(i);let s,o,a;for(let i=0;i<18;i++)s=Math.floor(i/3),o=i%3+e-8-3,a=1==(n>>i&1),t.set(s,o,a,!0),t.set(o,s,a,!0)}(l,i),function(t,i){const e=t.size;let n=-1,s=e-1,o=7,a=0;for(let r=e-1;r>0;r-=2)for(6===r&&r--;;){for(let e=0;e<2;e++)if(!t.isReserved(s,r-e)){let n=!1;a<i.length&&(n=1==(i[a]>>>o&1)),t.set(s,r-e,n),o--,-1===o&&(a++,o=7)}if(s+=n,s<0||e<=s){s-=n,n=-n;break}}}(l,a),isNaN(n)&&(n=Dt.getBestMask(l,ii.bind(null,l,e))),Dt.applyMask(n,l),ii(l,e,n),{modules:l,version:i,errorCorrectionLevel:e,maskPattern:n,segments:s}}var ni=function(t,i){if(void 0===t||""===t)throw new Error("No input text");let e,n,s=Mt.M;return void 0!==i&&(s=Mt.from(i.errorCorrectionLevel,Mt.M),e=Rt.from(i.version),n=Dt.from(i.maskPattern),i.toSJISFunc&&function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');nt=t}(i.toSJISFunc)),ei(t,e,s,n)},si=U((function(t,i){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+t);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map((function(t){return[t,t]})))),6===i.length&&i.push("F","F");const e=parseInt(i.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+i.slice(0,6).join("")}}i.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=t.width&&t.width>=21?t.width:void 0;return{width:i,scale:i?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},i.getScale=function(t,i){return i.width&&i.width>=t+2*i.margin?i.width/(t+2*i.margin):i.scale},i.getImageWidth=function(t,e){const n=i.getScale(t,e);return Math.floor((t+2*e.margin)*n)},i.qrToImageData=function(t,e,n){const s=e.modules.size,o=e.modules.data,a=i.getScale(s,n),r=Math.floor((s+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let i=0;i<r;i++)for(let e=0;e<r;e++){let M=4*(i*r+e),h=n.color.light;i>=l&&e>=l&&i<r-l&&e<r-l&&(h=c[o[Math.floor((i-l)/a)*s+Math.floor((e-l)/a)]?1:0]),t[M++]=h.r,t[M++]=h.g,t[M++]=h.b,t[M]=h.a}}})),oi=U((function(t,i){i.render=function(t,i,e){let n=e,s=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=si.getOptions(n);const o=si.getImageWidth(t.modules.size,n),a=s.getContext("2d"),r=a.createImageData(o,o);return si.qrToImageData(r.data,t,n),function(t,i,e){t.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=e,i.width=e,i.style.height=e+"px",i.style.width=e+"px"}(a,s,o),a.putImageData(r,0,0),s},i.renderToDataURL=function(t,e,n){let s=n;return void 0!==s||e&&e.getContext||(s=e,e=void 0),s||(s={}),i.render(t,e,s).toDataURL(s.type||"image/png",(s.rendererOpts||{}).quality)}}));function ai(t,i){const e=t.a/255,n=i+'="'+t.hex+'"';return e<1?n+" "+i+'-opacity="'+e.toFixed(2).slice(1)+'"':n}function ri(t,i,e){let n=t+i;return void 0!==e&&(n+=" "+e),n}function li(t,i,e,n,s){const o=[].slice.call(arguments,1),a=o.length,r="function"==typeof o[a-1];if(!r&&!et())throw new Error("Callback required as last argument");if(!r){if(a<1)throw new Error("Too few arguments provided");return 1===a?(e=i,i=n=void 0):2!==a||i.getContext||(n=e,e=i,i=void 0),new Promise((function(s,o){try{const o=ni(e,n);s(t(o,i,n))}catch(t){o(t)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(s=e,e=i,i=n=void 0):3===a&&(i.getContext&&void 0===s?(s=n,n=void 0):(s=n,n=e,e=i,i=void 0));try{const o=ni(e,n);s(null,t(o,i,n))}catch(t){s(t)}}var ci={create:ni,toCanvas:li.bind(null,oi.render),toDataURL:li.bind(null,oi.renderToDataURL),toString:li.bind(null,(function(t,i,e){return function(t,i,e){const n=si.getOptions(i),s=t.modules.size,o=t.modules.data,a=s+2*n.margin,r=n.color.light.a?"<path "+ai(n.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+ai(n.color.dark,"stroke")+' d="'+function(t,i,e){let n="",s=0,o=!1,a=0;for(let r=0;r<t.length;r++){const l=Math.floor(r%i),c=Math.floor(r/i);l||o||(o=!0),t[r]?(a++,r>0&&l>0&&t[r-1]||(n+=o?ri("M",l+e,.5+c+e):ri("m",s,0),s=0,o=!1),l+1<i&&t[r+1]||(n+=ri("h",a),a=0)):s++}return n}(o,s,n.margin)+'"/>',c='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+'viewBox="0 0 '+a+" "+a+'" shape-rendering="crispEdges">'+r+l+"</svg>\n";return"function"==typeof e&&e(null,c),c}(t,e)}))};const Mi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.infoTextTop=void 0,this.infoTextBottom=void 0,this.contact=void 0,this.invalidValue=void 0,this.waitingMobile=void 0,this.orderStatus=void 0,this.redirectLink=void 0,this.qrCode=void 0,this.prefilledPhone=!1,this.baseComponent=new r(l.MobileRedirect),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.invalidValue=!1,this.waitingMobile=!1}async componentWillLoad(){y.flowStarted(),this.infoTextTop=L.InfoTop,this.infoTextBottom=L.InfoBottom,this.redirectLink=(c.hasIdBack?"https://onmd.id-kyc.com/":"https://onro.id-kyc.com/")+("QA"==c.environment?"test":"ect")+"/mobileredirect?redirectId="+c.redirectId,c.phoneNumber&&""!=c.phoneNumber&&(this.contact=c.phoneNumber,this.prefilledPhone=!0);var t=this;ci.toDataURL(this.redirectLink,{type:"image/png",errorCorrectionLevel:"M",scale:6},(function(i,e){i&&console.error(i),t.qrCode=e}))}async componentDidLoad(){for(await this.baseComponent.initialize(),await I(5e3),await this.checkStatus();this.orderStatus==b.Capturing||this.orderStatus==b.Waiting;)await this.checkStatus(),await I(5e3)}async checkStatus(){this.orderStatus=await this.baseComponent.apiCall.GetStatus(c.requestId),this.orderStatus==b.FinishedCapturing&&(this.waitingMobile=!1,c.flowStatus=M.COMPLETE),this.orderStatus==b.NotFound&&this.apiErrorEvent.emit({message:"No order was started for this process."}),this.orderStatus==b.Capturing&&(this.infoTextTop=L.InfoWaiting,this.waitingMobile=!0),this.orderStatus==b.Aborted&&(this.waitingMobile=!1,this.infoTextTop=L.InfoAborted,y.flowAborted())}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){if(""!=this.contact&&10==this.contact.length){this.waitingMobile=!0,this.infoTextTop=L.InfoWaiting;try{await this.baseComponent.apiCall.SendLink(this.redirectLink,this.contact)}catch(t){this.apiErrorEvent.emit(t)}}}handleChangeContact(t){this.contact=(t.target?t.target.value:"").replace(/\D/g,""),this.contact.length>10&&(this.contact=this.contact.substring(0,10)),this.invalidValue=10!=this.contact.length,t.target.value=this.contact}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{hidden:this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)),e("div",{class:"qr-canvas align-center"},e("img",{src:this.qrCode})),e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextBottom)),e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1 color-red",hidden:0==this.invalidValue},e("b",null,L.Validation)),e("input",{type:"text",id:"codeInput",class:"main-input",disabled:this.prefilledPhone,value:this.contact,onInput:t=>this.handleChangeContact(t)})),e("div",{class:"pos-relative"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},"Trimite"),e("p",{class:"main-text font-size-18 text-right mb-0"},L.FooterText)))),e("div",{hidden:0==this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)))))}};var hi,ui;Mi.style=".qr-canvas{max-height:60vh;max-width:80vw;text-align:center}.qr-canvas>canvas{width:100%;height:100%}",function(t){t.IdFront="IdFront",t.IdBack="IdBack",t.IdFrontVideo="IdFrontVideo",t.None="None"}(hi||(hi={})),function(t){t[t.HowToFront=0]="HowToFront",t[t.IdFront=1]="IdFront",t[t.HowToBack=2]="HowToBack",t[t.IdBack=3]="IdBack",t[t.Tilt=4]="Tilt",t[t.End=5]="End"}(ui||(ui={}));const fi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.captureStep=void 0,this.showTimeout=void 0,this.showInvalid=void 0,this.flow=void 0,this.baseComponent=new r(l.CiBack),this.baseComponent.setEventEmitter(this.apiErrorEvent)}componentWillLoad(){this.captureRetryCount=0,this.flow={front:{photoDone:!1,recordingDone:!1,fileName:"idImage.png",file:null,recoding:null,uploadType:hi.IdFront},back:null,tilt:null,recordingData:[],mimeType:""},c.hasIdBack&&(this.flow.back={photoDone:!1,recordingDone:!1,fileName:"idBackImage.png",file:null,recoding:null,uploadType:hi.IdBack}),c.hasIdTilt&&(this.flow.tilt={photoDone:!0,recordingDone:!1,fileName:"idTiltImage.png",file:null,recoding:null,uploadType:hi.None}),this.captureStep=ui.HowToFront}howToDone(){this.captureStep==ui.HowToFront&&(this.captureStep=ui.IdFront),this.captureStep==ui.HowToBack&&(this.captureStep=ui.IdBack)}timeElapsed(){this.showTimeout=!0}captureErrorDone(){1==this.showTimeout&&(this.showTimeout=!1),1==this.showInvalid&&(this.showInvalid=!1)}async captureIdImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{this.flow.front.file=new File([i],this.flow.front.fileName,{type:"image/png"}),this.flow.front.photoDone=await this.uploadPhotos(this.flow.front.uploadType,this.flow.front.file),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async captureIdBackImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{this.flow.back.file=new File([i],this.flow.back.fileName,{type:"image/png"}),this.flow.back.photoDone=await this.uploadPhotos(this.flow.back.uploadType,this.flow.back.file),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedIdRecording(t){var i=t.detail;if(0!=i.RecordingChunks.length||0!=this.recordingResultCount){if(0==i.RecordingChunks.length)return await this.baseComponent.apiCall.AddLog({message:"Empty recording for "+this.captureStep,blobData:i.RecordingChunks},x()),void this.triggerErrorFlow();this.flow.mimeType=t.detail.MimeType,this.captureStep==ui.IdFront&&(this.flow.front.recoding=i.RecordingChunks,this.flow.front.recordingDone=!0),this.captureStep==ui.IdBack&&(this.flow.back.recoding=i.RecordingChunks,this.flow.back.recordingDone=!0),this.captureStep==ui.Tilt&&(this.flow.tilt.recoding=i.RecordingChunks,this.flow.tilt.recordingDone=!0),await this.endFlow(),this.recordingResultCount=0}else this.recordingResultCount++}async getRecordingFile(){let t=new Blob(this.flow.recordingData,{type:this.flow.mimeType});if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:t},x()),void this.triggerErrorFlow(!0);let i=t.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;try{var e=new File([t],"idVideo."+i.extension,{type:i.type});if(this.uploadRecording("IdFrontVideo",e))return!0;this.triggerErrorFlow(!0)}catch(t){this.triggerErrorFlow(!0)}}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhotos(t,i){return!(null==i||""==t||!await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,t,i)&&(this.switchCamera(),this.triggerErrorFlow(),1))}async uploadRecording(t,i){if(null!=i)return!!await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,t,i)||(this.triggerErrorFlow(),!1)}triggerErrorFlow(t=!1){t&&(this.captureStep=ui.IdFront,this.flow.recordingData=[]),(this.captureStep==ui.IdFront||t)&&(this.flow.front.file=null,this.flow.front.photoDone=!1,this.flow.front.recordingDone=!1,this.flow.front.recoding=null),(this.captureStep==ui.IdBack||t)&&(this.flow.back.file=null,this.flow.back.photoDone=!1,this.flow.back.recordingDone=!1,this.flow.back.recoding=null),(this.captureStep==ui.Tilt||t)&&(this.flow.tilt.photoDone=!0,this.flow.tilt.recordingDone=!1,this.flow.tilt.recoding=null),this.showInvalid=!0}async endFlow(){if(this.captureStep==ui.IdFront){if(!this.flow.front.photoDone||!this.flow.front.recordingDone)return;this.flow.recordingData.push(...this.flow.front.recoding),this.captureStep=c.hasIdBack?ui.IdBack:c.hasIdTilt?ui.Tilt:ui.End}if(this.captureStep==ui.IdBack&&c.hasIdBack){if(!this.flow.back.photoDone||!this.flow.back.recordingDone)return;this.flow.recordingData.push(...this.flow.back.recoding),this.captureStep=c.hasIdTilt?ui.Tilt:ui.End}if(this.captureStep==ui.Tilt&&c.hasIdTilt){if(!this.flow.tilt.photoDone||!this.flow.tilt.recordingDone)return;this.flow.recordingData.push(...this.flow.tilt.recoding)}await this.getRecordingFile()&&(this.captureStep=ui.End),this.captureStep==ui.End&&(c.flowStatus=M.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let t=c.cameraIds.indexOf(c.cameraId);c.cameraId=t===c.cameraIds.length-1?c.cameraIds[0]:c.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=e("capture-error",{type:"ID"}),i=e("id-capture",null),n=e("id-back-capture",null),s=e("id-tilt",null),o=e("how-to-info",{idSide:"front"}),a=e("how-to-info",{idSide:"back"});return this.showInvalid||this.showTimeout?t:this.captureStep==ui.HowToFront?o:this.captureStep==ui.HowToBack?a:this.captureStep==ui.IdFront?i:this.captureStep==ui.IdBack?n:this.captureStep==ui.Tilt?s:void 0}};fi.style="";const di=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoSelfieCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.demoEnded=void 0,this.demoVideo=void 0,this.uploadingLink=void 0,this.captureHeight=void 0,this.captureWidth=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.demoEnded=!1,this.uploadingLink="https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4",this.baseComponent=new r(l.SelfieHoldAnimation)}async eventChangeTitle(t){null==t.detail?this.titleMesage=D.FinalTitle:(await this.baseComponent.logStep(l.SelfieTiltAnimation,j.Initialized),this.titleMesage=D.FacePoseMapping[t.detail],this.demoEnded=!1,this.demoVideo.src=D.FacePoseDemoMapping[t.detail],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(l.SelfieTiltAnimation,j.Finalized))}eventVideoStarted(t){this.videoStarted=!0;var i=Math.round(16*t.detail.width/9);this.captureHeight=i-Math.round((window.screen.height-i)/2),this.captureWidth=Math.round(9*this.captureHeight/16)}componentWillLoad(){this.titleMesage=D.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Initialized),this.demoVideo.src=D.FacePoseDemoMapping[E.Main],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(l.SelfieCapture,j.Initialized);const t=this.cameras.GetConstraints("",c.device,!0);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(l.SelfieHoldAnimation,j.Finalized)}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=D.Loading,this.closeCamera(),this.demoEnded=!1,this.demoVideo.src=this.uploadingLink,this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t;c.device.isMobile&&this.videoStarted&&(t={width:this.captureWidth+"px",height:this.captureHeight+"px",overflow:"hidden",borderRadius:"10px","text-align":"center",margin:"auto"});let i=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:this.demoEnded},e("video",{id:"howtoSelfie",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:0==this.demoEnded},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("camera-comp",{"capture-mode":"selfie"}))))),e("div",{class:"capture-title"},e("h1",{class:i},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},D.FooterText))))}get component(){return n(this)}};di.style="";const gi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.details=void 0,this.buttonText=void 0,this.phoneNumber=void 0,this.code=void 0,this.prefilledPhone=!1,this.canSend=!1,c.flowStatus==M.PHONE&&(this.baseComponent=new r(l.OtpSend)),c.flowStatus==M.CODE&&(this.baseComponent=new r(l.OtpCheck)),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async doAction(){try{if(this.canSend=!1,c.flowStatus==M.CODE||c.flowStatus==M.CODEERROR){var t=await this.baseComponent.apiCall.CheckOTPCode(c.requestId,this.code);c.flowStatus=!0===t?M.ID:M.CODEERROR}c.flowStatus==M.PHONE&&!0===await this.baseComponent.apiCall.SendOTPCode(c.requestId,this.phoneNumber)&&(c.flowStatus=M.CODE)}catch(t){this.apiErrorEvent.emit(t)}}async disconnectedCallback(){await this.baseComponent.finalize()}componentWillRender(){c.flowStatus==M.PHONE&&(this.title=O.Title,this.details=O.Description,this.buttonText=O.Button,c.phoneNumber&&""!=c.phoneNumber&&(this.phoneNumber=c.phoneNumber,this.prefilledPhone=!0,this.canSend=!0)),c.flowStatus!=M.CODE&&c.flowStatus!=M.CODEERROR||(this.title=k.Title,this.details=k.Description,this.buttonText=k.Button)}async componentDidLoad(){await this.baseComponent.initialize()}handleChangePhone(t){this.phoneNumber=(t.target?t.target.value:"").replace(/\D/g,""),this.phoneNumber.length>10&&(this.phoneNumber=this.phoneNumber.substring(0,10)),this.canSend=10==this.phoneNumber.length,t.target.value=this.phoneNumber}handleChangeCode(t){this.code=t.target?t.target.value:"",this.code.length>4&&(this.code=this.code.substring(0,4)),this.canSend=4==this.code.length,t.target.value=this.code}render(){let t,i;return c.flowStatus==M.CODEERROR&&(i=e("p",{class:"main-text font-size-18 mt-15 color-red text-center"},k.Error)),t=c.flowStatus==M.PHONE?e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1"},e("b",null,O.Label)),e("input",{type:"tel",id:"phoneInput",class:"main-input",disabled:this.prefilledPhone,onInput:t=>this.handleChangePhone(t),value:this.phoneNumber})):e("div",{class:"input-container mb-15"},e("input",{type:"text",id:"codeInput",class:"main-input",onInput:t=>this.handleChangeCode(t),value:this.code})),e("div",{class:"container"},e("div",{class:"row row-validare"},e("div",null,e("h1",{class:"text-center"},this.title),null==i?e("p",{class:"main-text font-size-2 mt-15 mb-20 text-center"},this.details):i),t,e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{id:"action",disabled:!this.canSend,class:"main-button",onClick:()=>this.doAction()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},O.FooterText)))))}};gi.style="";const Ni=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.showError=void 0,this.showHowTo=void 0,this.selfieFlow={photoDone:!1,recordingDone:!1,verificationFinished:!1,photoFile:null,recordingFile:null},this.baseComponent=new r(l.Selfie),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.showHowTo=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showError=!0}captureErrorDone(){this.showError=!1,this.selfieFlow.photoDone=!1,this.selfieFlow.recordingDone=!1,this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null}async captureSelfieImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty selfie",blobData:i},x()),void this.triggerErrorFlow();try{this.selfieFlow.photoFile=new File([i],"selfie.png",{type:"image/png"}),await this.uploadPhoto()}catch(t){this.apiErrorEvent.emit(t)}}async capturedSelfieRecording(t){let i=t.detail;if(0==i.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:i},x()),void this.triggerErrorFlow();let e=i.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;try{this.selfieFlow.recordingFile=new File([i],"selfieVideo."+e.extension,{type:e.type}),await this.uploadRecording()}catch(t){c.recordingRetryCount<3?(c.recordingRetryCount++,this.triggerErrorFlow()):this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.selfieFlow.verificationFinished=!0,await this.endFlow()}async disconnectedCallback(){await this.baseComponent.finalize()}async uploadPhoto(){null==this.selfieFlow.photoFile||this.selfieFlow.photoDone||(this.selfieFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,"Selfie",this.selfieFlow.photoFile),this.selfieFlow.photoDone?await this.endFlow():this.triggerErrorFlow())}async uploadRecording(){null==this.selfieFlow.recordingFile||this.selfieFlow.recordingDone||(this.selfieFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(c.requestId,"SelfieVideo",this.selfieFlow.recordingFile),this.selfieFlow.recordingDone?await this.endFlow():this.triggerErrorFlow())}triggerErrorFlow(){this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,this.showError=!0}async endFlow(){this.selfieFlow.photoDone&&this.selfieFlow.recordingDone&&this.selfieFlow.verificationFinished&&(c.recordingRetryCount=0,c.flowStatus=M.COMPLETE)}render(){let t=e("how-to-info",{idSide:""}),i=e("selfie-capture",{id:"camera"}),n=e("capture-error",{type:"LIVENESS"});return this.showHowTo?t:this.showError?n:i}};Ni.style="";export{C as agreement_check,S as agreement_info,Q as camera_comp,Y as camera_error,F as capture_error,Z as end_redirect,B as error_end,R as how_to_info,G as id_back_capture,V as id_capture,J as id_tilt,tt as identification_component,it as landing_validation,Mi as mobile_redirect,fi as process_id,di as selfie_capture,gi as sms_code_validation,Ni as user_liveness}
1
+ import{r as t,c as i,h as e,g as n}from"./p-aacd7024.js";import{A as s,a as o,b as a,B as r,F as c,s as l,c as M,S as h,V as u,C as f,M as d,d as g,I as N,e as D,f as I,E as y,g as m,H as z,h as w,i as j,j as A,k as p,l as x,m as T,L as v,n as U,o as L,O as b,p as E,P as O,q as k}from"./p-73a2e58b.js";const C=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementAcceptance=i(this,"agreementAcceptance",7),this.agreementType=void 0,this.htmlContent=void 0,this.buttonEnabled=void 0,this.apiCalls=new s,this.buttonEnabled=!0}async componentDidLoad(){try{this.htmlContent=await this.apiCalls.GetAgreement(this.agreementType)}catch(t){this.apiErrorEvent.emit(t)}}async buttonClick(t){this.buttonEnabled=!1,this.agreementAcceptance.emit({agreementType:this.agreementType,result:t})}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"scroll",innerHTML:this.htmlContent}),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("div",{class:"d-flex two-buttons"},e("button",{class:"normal-button red-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!1)},o.ButtonNo),e("button",{class:"normal-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick(!0)},o.ButtonYes)),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.htmlContent?t:e("div",null)}};C.style="";const S=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.agreementsChecked=void 0,this.termsChecked=void 0,this.openAgreements=void 0,this.openTerms=void 0,this.baseComponent=new r(c.Agreements),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.agreementsChecked=!1,this.termsChecked=!1}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.openAgreements=!1,this.openTerms=!1}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.agreementsChecked&&this.termsChecked&&(l.flowStatus=M.PHONE)}agreementAcceptanceEmitted(t){"agreement"==t.detail.agreementType&&(this.agreementsChecked=t.detail.result,this.openAgreements=!1),"terms"==t.detail.agreementType&&(this.termsChecked=t.detail.result,this.openTerms=!1)}agreementsClicked(){this.openAgreements=!0}termsClicked(){this.openTerms=!0}render(){let t=e("agreement-check",{agreementType:"agreement"}),i=e("agreement-check",{agreementType:"terms"}),n=e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},a.Title),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.agreementsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.agreementsChecked}),a.Agreement)),e("div",{class:"d-flex space-between align-center"},e("h3",{class:"main-text font-size-2",onClick:()=>this.termsClicked()},e("input",{type:"checkbox",readOnly:!0,checked:this.termsChecked}),a.Terms))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},a.Button),e("p",{class:"main-text font-size-18 text-right mb-0"},a.FooterText)))));return this.openAgreements?t:this.openTerms?i:n}};S.style="";const Q=class{constructor(e){t(this,e),this.eventVideoStarted=i(this,"videoStarted",7),this.eventCloseCamera=i(this,"closeCamera",7),this.errorCameraEvent=i(this,"errorCamera",7),this.eventTakePhoto=i(this,"takePhoto",7),this.eventRecordingSelfieReady=i(this,"recordingSelfieCapture",7),this.eventRecordingIdReady=i(this,"recordingIdCapture",7),this.eventTimeElapsed=i(this,"timeElapsed",7),this.eventChangeTitle=i(this,"changeTitle",7),this.verificationFinished=i(this,"verificationFinished",7),this.callbackErrors=(t,i)=>{i?(this.errorCameraEvent.emit(t),this.eventCloseCamera.emit()):this.errorCameraEvent.emit(t)},this.callbackAutoCapturing=()=>{this.eventTakePhoto.emit()},this.callbackSelfieRecordingReady=t=>{this.eventRecordingSelfieReady.emit(t)},this.callbackIdRecordingReady=t=>{this.eventRecordingIdReady.emit(t)},this.callbackTimeElapsed=()=>{this.eventTimeElapsed.emit()},this.callbackChangeTitle=t=>{this.eventChangeTitle.emit(t)},this.callbackVideoStarted=()=>{this.eventVideoStarted.emit(this.component.getBoundingClientRect())},this.callbackVerificationFinished=()=>{this.verificationFinished.emit()},this.modelPath=void 0,this.probabilityThreshold=void 0,this.captureMode=void 0}componentDidLoad(){this.startStream()}render(){let t="cameraVideo",i="cameraCanvas";return l.device.isDesktop&&(t="cameraVideoSelfieDesk",i="cameraCanvasSelfieDesk"),"selfie"==this.captureMode&&(t="cameraVideoSelfie",i="cameraCanvasSelfie"),e("div",{class:"camera"},e("video",{id:"video",loop:!0,autoplay:!0,playsinline:!0,muted:!0,class:t,ref:t=>this.cameraVideo=t}),e("canvas",{id:"output",class:i,ref:t=>this.cameraCanvas=t}))}startStream(){const t=h.getInstance("tilt"==this.captureMode?u.Tilt:u.Full);t.updateHtmlElements(this.cameraVideo,this.cameraCanvas,this.component),"selfie"==this.captureMode?(t.setFaceDetection(!0),t.setCallbackRecordingReady(this.callbackSelfieRecordingReady)):(t.setIdDetection(!0),t.setCallbackRecordingReady(this.callbackIdRecordingReady)),t.setCallbackErrors(this.callbackErrors),t.setCallbackAutoCapturing(this.callbackAutoCapturing),t.setCallbackChangeTitle(this.callbackChangeTitle),t.setCallbackVideoStarted(this.callbackVideoStarted),t.setCallbackTimeElapsed(this.callbackTimeElapsed),t.setVerificationFinished(this.callbackVerificationFinished)}get component(){return n(this)}};Q.style=".camera{width:100%;height:100%;color:white;display:flex;align-items:center;justify-content:center;position:relative}.cameraCanvas,.cameraCanvasSelfie,.cameraCanvasSelfieDesk{z-index:3;max-width:100%;max-height:100%;border-radius:10px}.cameraCanvasSelfie,.cameraCanvasSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraVideo,.cameraVideoSelfie,.cameraVideoSelfieDesk{z-index:2;position:absolute;max-width:100%;max-height:100%;border-radius:10px}.cameraVideoSelfie,.cameraVideoSelfieDesk{transform:scale(-1, 1);-webkit-transform:scale(-1, 1)}.cameraMobile{position:fixed;top:0;left:0;background:black}";const Y=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.description=void 0,this.buttonDisabled=void 0,this.demoVideo=void 0,this.baseComponent=new r(c.CameraError),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){this.buttonDisabled=!1,this.title=f.Title,this.description=f.Description,this.buttonText=f.Button}async componentDidLoad(){await this.baseComponent.initialize(),l.device.mobileOS!=d.iOS?(this.demoVideo.src=f.HowToLink,this.demoVideo.loop=!0,this.demoVideo.play()):"true"===sessionStorage.getItem(g.RefreshDoneKey)&&(sessionStorage.setItem(g.RefreshDoneKey,"false"),l.flowStatus=M.LANDING)}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){this.buttonDisabled=!0,l.device.mobileOS==d.iOS?(sessionStorage.setItem(g.RefreshDoneKey,"true"),window.location.reload()):l.flowStatus=M.LANDING}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.title),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.description)),e("div",{hidden:l.device.mobileOS==d.iOS},e("video",{id:"howtoPermissions",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:this.buttonDisabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},f.FooterText)))))}};Y.style="";const F=class{constructor(e){t(this,e),this.eventCaptureErrorDone=i(this,"captureErrorDone",7),this.type=void 0,this.buttonEnabled=void 0,this.buttonText=void 0}async componentWillLoad(){this.buttonEnabled=!1,"ID"==this.type&&(this.titleR1=N.ErrorTitleR1,this.titleR2=N.ErrorTitleR2,this.descriptionR1=N.ErrorR1,this.descriptionR2=N.ErrorR2),"LIVENESS"==this.type&&(this.titleR1=D.ErrorTitleR1,this.titleR2=D.ErrorTitleR2,this.descriptionR1=D.ErrorR1,this.descriptionR2=D.ErrorR2)}async componentDidLoad(){for(let t=5;t>=1;t--)this.buttonText=t.toString(),await I(1e3);this.buttonText=N.Button,this.buttonEnabled=!0}buttonClick(){this.buttonEnabled=!1,this.eventCaptureErrorDone.emit()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("h1",{class:"color-red"},this.titleR1),e("h1",{class:"color-red"},this.titleR2),e("div",null,e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR1),e("p",{class:"color-red font-weight-bold font-size-25 mt-5"},this.descriptionR2)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText)))))}};F.style="";const Z=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7)}async componentDidLoad(){y.flowCompleted()}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},m.Title),e("p",{class:"main-text font-size-18 mt-8 text-center"},m.Description)),e("div",{class:"buletin-container"},e("div",{class:"container-coin"},e("div",{class:"coin-scale"},e("div",{class:"coin-flip"},e("img",{class:"w-40 coin",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iODQiIHZpZXdCb3g9IjAgMCA4MyA4NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik00MS41IDgzLjcwNjJDMzAuNDE0NyA4My43MDYyIDE5Ljk5MjkgNzkuMzgwNCAxMi4xNTQ2IDcxLjUyNUM0LjMxNjQxIDYzLjY2OTcgMCA1My4yMjUxIDAgNDIuMTE1NkMwIDMxLjAwNjEgNC4zMTY0MSAyMC41NjE1IDEyLjE1NDYgMTIuNzA2MUMxOS45OTI5IDQuODUwNzUgMzAuNDE0NyAwLjUyNDkwMiA0MS41IDAuNTI0OTAyQzUyLjU4NTMgMC41MjQ5MDIgNjMuMDA3MSA0Ljg1MDc1IDcwLjg0NTMgMTIuNzA2MUM3OC42ODM2IDIwLjU2MTUgODMgMzEuMDA2MSA4MyA0Mi4xMTU2QzgzIDUzLjIyNTEgNzguNjgzNiA2My42Njk3IDcwLjg0NTMgN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MyA0Mi45NjQ5IDIxLjkzNzkgNDQuOTcwNkwzMy44MzUgNTYuOTEyNEMzNC44MDQ0IDU3Ljg4NTUgMzYuMDkzOSA1OC40MjIyIDM3LjQ2NDUgNTguNDIyMkgzNy40NjYxQzM4LjgzNjcgNTguNDIyMiA0MC4xMjYyIDU3Ljg4NzEgNDEuMDk1NiA1Ni45MTU1TDYxLjA1ODggMzYuOTA4N0M2My4wNjAxIDM0LjkwMyA2My4wNjAxIDMxLjYzOTUgNjEuMDU4OCAyOS42MzM4QzU5LjA1NzUgMjcuNjI4MSA1NS44MDExIDI3LjYyODEgNTMuNzk5NyAyOS42MzM4TDUyLjMwNDIgMjguMTM1TDUzLjc5OTcgMjkuNjMzOEwzOC45NzU3IDQ0LjQ5MDNDMzguMTQ5OCA0NS4zMTc5IDM2LjgxMDQgNDUuMzE3OSAzNS45ODQ2IDQ0LjQ5MDNMMjkuMjAzMiAzNy42OTQxQzI4LjIzMzggMzYuNzIyNSAyNi45NDQzIDM2LjE4NzUgMjUuNTczNyAzNi4xODc1TDI1LjU3NTMgMzYuMTg5WiIgZmlsbD0iIzVEQzFBQyIvPg0KPC9zdmc+DQo="}))))),e("div",{class:"text-center"},e("p",{class:"font-weight-900 font-size-3 color-black-2 text-center mt-20"},m.Message),e("p",null,l.requestId)),e("div",{class:"btn-buletin"},e("p",{class:"main-text font-size-18 text-center mb-0"},m.FooterText))))}};Z.style="h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";const B=class{constructor(i){t(this,i),this.message=void 0,this.errorTitle=void 0}componentDidLoad(){}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"text-center"},e("h1",null,this.errorTitle)),e("div",{class:"text-center"},e("p",null,l.requestId)),e("div",null,e("p",{class:"color-red font-weight-bold font-size-2 text-center mt-10"},this.message))))}};B.style="";const R=class{constructor(e){t(this,e),this.eventHowToInfoDone=i(this,"howToInfoDone",7),this.apiErrorEvent=i(this,"apiError",7),this.idSide=void 0,this.topTitle=void 0,this.subTitle=void 0,this.imagePath=void 0,this.buttonText=void 0,this.buttonEnabled=void 0}async componentDidLoad(){await this.baseComponent.initialize()}async disconnectedCallback(){await this.baseComponent.finalize()}buttonClick(){this.buttonEnabled=!1,this.eventHowToInfoDone.emit()}componentWillLoad(){this.subTitle="",this.buttonEnabled=!0,l.flowStatus==M.ID&&(this.topTitle=z.IdTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_id.png",this.buttonText=z.IdButton,"front"==this.idSide&&(this.baseComponent=new r(c.CiFrontHowTo),this.subTitle=z.IdSubTitileFace),"back"==this.idSide&&(this.baseComponent=new r(c.CiBackHowTo),this.subTitle=z.IdSubTitileBack)),l.flowStatus==M.LIVENESS&&(this.baseComponent=new r(c.SelfieHowTo),this.topTitle=z.SelfieTitile,this.subTitle=z.SelfieSubTitile,this.imagePath="https://ekyc.blob.core.windows.net/$web/howto_selfie.png",this.buttonText=z.SelfieButton),this.baseComponent.setEventEmitter(this.apiErrorEvent)}render(){let t=""!=this.subTitle?e("p",{class:"font-size-2"},this.subTitle):null;return e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:this.imagePath})),e("div",{class:"text-center"},e("h1",null,this.topTitle),t),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",disabled:!this.buttonEnabled,onClick:()=>this.buttonClick()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},z.FooterText)))))}};R.style="";class W{async GetCameras(t){var i=[];const e=(await navigator.mediaDevices.enumerateDevices()).filter((t=>"videoinput"===t.kind));for(const n of e){const e=this.GetConstraints(n.deviceId,t),s=await navigator.mediaDevices.getUserMedia(e);s.getVideoTracks().forEach((e=>{var s,o;if(t.browser===w.Firefox){const t=e.getSettings();let o=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";o="e"===o?"environment":o,o="u"===o?"user":o,i.push({deviceId:n.deviceId,name:n.label,height:t.height,width:t.width,frameRate:Number(t.frameRate.max),focusModes:null!==(s=t.focusMode)&&void 0!==s?s:[],torch:!1,recommended:!1,facingMode:o})}else{const t=e.getCapabilities();let s=t.facingMode&&t.facingMode.length>0?t.facingMode[0]:"";s="e"===s?"environment":s,s="u"===s?"user":s,i.push({deviceId:n.deviceId,name:n.label,height:t.height.max,width:t.width.max,frameRate:Number(t.frameRate.max),focusModes:null!==(o=t.focusMode)&&void 0!==o?o:[],torch:t.torch,recommended:!1,facingMode:s})}})),s.getTracks().forEach((t=>{t.stop()}))}if(i.length>0){var n=(i=i.sort(((t,i)=>i.frameRate-t.frameRate))).find((t=>t.focusModes.length>1&&"environment"===t.facingMode));if(n)i[i.indexOf(n)].recommended=!0;else{var s=i.find((t=>"environment"===t.facingMode));s&&(i[i.indexOf(s)].recommended=!0)}}return i}GetConstraints(t,i,e=!1){let n={audio:!1},s={frameRate:30};return t&&(s.deviceId={exact:t}),i.isDesktop?s.width={ideal:1280}:(s.facingMode="user",e?i.isAndroidDevice?(s.width={ideal:1280},s.height={ideal:720}):(s.width={ideal:1920},s.height={ideal:1080}):(s.facingMode="environment",s.width={ideal:1280},s.aspectRatio=1)),n.video=s,n}GetRecommendedCamera(t){if(t&&t.length>0){var i=t.find((t=>t.recommended));if(i)return i}return null}static async InitCameras(t){try{let e=new W,n=(await e.GetCameras(t)).filter((t=>"environment"==t.facingMode));var i=e.GetRecommendedCamera(n);return l.cameraIds=n.map((t=>t.deviceId)),l.cameraId=null==i?void 0:i.deviceId,!0}catch(t){if(console.log(t),t.message.includes("Permission denied")||t.name.includes("NotAllowedError"))return!1;throw t}}}var P;!function(t){t[t.Straight=0]="Straight",t[t.Tilted=1]="Tilted",t[t.Rotate=2]="Rotate",t[t.BackStraight=3]="BackStraight",t[t.BackTilted=4]="BackTilted"}(P||(P={}));const G=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdBackCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(c.CiBackHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(c.CiBackHoldAnimation,j.Initialized),this.titleMesage=N.TtileRotate,this.demoVideo.src=N.IDPoseDemoMapping[P.Rotate],this.demoVideo.play(),await I(N.VideoLenght),this.titleMesage=N.TitleBack,this.demoVideo.src=N.IDPoseDemoMapping[P.BackStraight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(c.CiBackHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(c.CiBackCapture,j.Initialized);const t=this.cameras.GetConstraints(l.cameraId,l.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(c.CiBackCapture,j.Finalized)}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoBack",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};G.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const V=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(c.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(c.CiFrontHoldAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Straight],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(c.CiFrontHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(c.CiFrontCapture,j.Initialized);const t=this.cameras.GetConstraints(l.cameraId,l.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(c.CiFrontCapture,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"id"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};V.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const J=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoIdCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.cameraSize=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.showDemo=void 0,this.demoVideo=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.showDemo=!0,this.baseComponent=new r(c.CiFrontHoldAnimation)}eventVideoStarted(t){this.videoStarted=!0,this.cameraSize=t.detail}async componentWillLoad(){this.titleMesage=N.IDPoseMapping[1],navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(c.CiFrontTiltAnimation,j.Initialized),this.demoVideo.src=N.IDPoseDemoMapping[P.Tilted],this.demoVideo.play(),await I(N.VideoLenght),this.showDemo=!1,await this.baseComponent.logStep(c.CiFrontTiltAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(c.CiTilt,j.Initialized);const t=this.cameras.GetConstraints(l.cameraId,l.device);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,A.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(c.CiTilt,j.Finalized)}async verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=N.Loading,this.closeCamera(),this.showDemo=!0,this.demoVideo.src="https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4",this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t,i;this.videoStarted&&(t={width:Math.round(this.cameraSize.width)+"px",height:Math.round(9*this.cameraSize.width/16)+"px",overflow:"hidden",borderRadius:"10px"},i={marginTop:-1*Math.round((this.cameraSize.height-9*this.cameraSize.width/16)/2)+"px"});let n=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:0==this.showDemo},e("video",{id:"howtoFront",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:this.showDemo},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("div",{style:i},e("camera-comp",{"capture-mode":"tilt"})))))),e("div",{class:"capture-title"},e("h1",{class:n},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},N.FooterText))))}get component(){return n(this)}};let H;J.style=".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";const X=new Uint8Array(16);function _(){if(!H&&(H="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!H))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return H(X)}const K=[];for(let t=0;t<256;++t)K.push((t+256).toString(16).slice(1));const q={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $(t,i,e){if(q.randomUUID&&!i&&!t)return q.randomUUID();const n=(t=t||{}).random||(t.rng||_)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,i){e=e||0;for(let t=0;t<16;++t)i[e+t]=n[t];return i}return function(t,i=0){return(K[t[i+0]]+K[t[i+1]]+K[t[i+2]]+K[t[i+3]]+"-"+K[t[i+4]]+K[t[i+5]]+"-"+K[t[i+6]]+K[t[i+7]]+"-"+K[t[i+8]]+K[t[i+9]]+"-"+K[t[i+10]]+K[t[i+11]]+K[t[i+12]]+K[t[i+13]]+K[t[i+14]]+K[t[i+15]]).toLowerCase()}(n)}const tt=class{async onTokenChange(t,i){l.debug&&console.log("Token change called with value: "+t),""!=t?l.token!==t&&(l.token=t,await this.initializeRequest()):t=l.token}async onOrderIdChange(t,i){l.debug&&console.log("OrderId change called with value: "+t),l.requestId!==t&&""!=t&&(l.requestId=t,l.initialised=!1,await this.initializeRequest(),l.flowStatus!=M.LANDING&&l.flowStatus!=M.NONE&&(l.flowStatus=M.LANDING))}onApiUrlChange(t,i){""==l.apiBaseUrl?l.apiBaseUrl!==t&&(l.apiBaseUrl=t):t=l.apiBaseUrl}onEnvChange(t,i){""==l.environment?l.environment!==t&&(l.environment=t):t=l.environment}async onRedirectIdChange(t,i){l.debug&&console.log("RedirectId change called with value: "+t),""==l.redirectId?(l.redirectId!==t&&(l.redirectId=t),await this.initializeRequest()):t=l.redirectId}async onPhoneChange(t,i){""==l.phoneNumber?l.phoneNumber!==t&&(l.phoneNumber=t):t=l.phoneNumber}agreementAcceptanceEmitted(t){try{this.baseComponent.apiCall.GenerateAgreement(t.detail.agreementType)}catch(t){this.apiErrorEmitter(t,"Agreement Acceptance")}}async apiErrorEmitter(t,i){var e,n,s,o,a,r;t.detail?(this.errorTitle=null!==(n=null!==(e=t.detail.message)&&void 0!==e?e:t.detail.status)&&void 0!==n?n:"",this.errorMessage=null!==(o=null!==(s=t.detail.stack)&&void 0!==s?s:t.detail.statusText)&&void 0!==o?o:""):t.message?this.errorTitle=t.message:t.status?(this.errorTitle=null!==(a=t.status)&&void 0!==a?a:"",this.errorMessage=null!==(r=t.statusText)&&void 0!==r?r:""):this.errorTitle=t;let c={message:this.errorTitle,stack:this.errorMessage,zone:i};try{await this.baseComponent.apiCall.AddLog(c,x(this.order_id,this.redirect_id,this.token))}catch(t){}y.flowError(this.errorTitle),l.flowStatus=M.ERROREND}constructor(i){t(this,i),this.logInit={},this.flowStatusToSet=M.NONE,this.token=void 0,this.order_id=void 0,this.api_url=void 0,this.env=void 0,this.redirect_id=void 0,this.phone_number=void 0,this.idSide="",this.errorMessage=void 0,this.errorTitle=void 0}async componentWillLoad(){y.init(window),y.flowEvent(c.ComponentLoaded,j.Initialized),l.apiBaseUrl=this.api_url,this.env&&""!=this.env&&(l.environment=this.env),this.baseComponent=new r(c.ComponentLoaded),this.baseComponent.setErrorCallback(this.apiErrorEmitter),l.debug&&(this.logInit=x(this.order_id,this.redirect_id,this.token)),this.token?(l.debug&&console.log("Store Token set with property value: "+this.token),l.token=this.token):""==l.token&&(l.token=sessionStorage.getItem(g.TokenKey),this.token=l.token,l.debug&&console.log("Store Token set with session value: "+l.token)),this.redirect_id&&(l.redirectId=this.redirect_id),this.phone_number&&""!=this.phone_number&&(l.phoneNumber=this.phone_number);var t=sessionStorage.getItem(g.InitialisedKey);t&&"true"==t.toLowerCase()&&(l.initialised=!0);var i=sessionStorage.getItem(g.HasIdBackKey);i&&"true"==i.toLowerCase()&&(l.hasIdBack=!0);var e=sessionStorage.getItem(g.AgreementValidationKey);e&&"true"==e.toLowerCase()&&(l.agreementsValidation=!0);var n=sessionStorage.getItem(g.PhoneValidationKey);n&&"true"==n.toLowerCase()&&(l.phoneValidation=!0);const s=sessionStorage.getItem(g.RequestIdKey);if(this.order_id&&""!=this.order_id?(l.requestId=this.order_id,l.debug&&console.log("Current RequestId has value: "+this.order_id),s&&""!=s&&s!=this.order_id&&(l.debug&&console.log("Session RequestId: "+s+" has different value than property one: "+this.order_id),this.flowStatusToSet=M.LANDING,l.initialised=!1)):s&&(l.debug&&console.log("Current RequestId has no value, setting with session value: "+s),l.requestId=s,this.order_id=s),this.flowStatusToSet==M.NONE){var o=sessionStorage.getItem(g.FlowStatusKey);this.flowStatusToSet=o?M[o]:M.LANDING}}async componentDidLoad(){await this.initializeRequest(),l.flowStatus=this.flowStatusToSet}componentWillRender(){""==this.idSide&&(this.idSide=l.hasIdBack?"front":"")}async initializeRequest(){if(!l.initialised)if("DEMO"!=l.environment)if(l.device.browser!=w.Mi){try{l.debug&&this.baseComponent.apiCall.AddLog({phase:"debug mode"},this.logInit)}catch(t){}try{l.device.isMobile||""!=l.redirectId||(l.redirectId=$(),this.redirect_id=l.redirectId),""==l.token||""==l.requestId&&""==l.redirectId||(l.initialised=await this.baseComponent.apiCall.AddIdentificationRequest(l.device,"3.6.14"),this.order_id&&""!=this.order_id||(this.order_id=l.requestId))}catch(t){this.apiErrorEmitter(t,"Request Initialisation RequestId:"+l.requestId+" RedirectId:"+l.redirectId)}T.getInstance()}else this.apiErrorEmitter("Mi Browser nu este acceptat. Va rugam utilizati Chrome.","Request Initialisation RequestId:"+l.requestId+" RedirectId:"+l.redirectId);else l.initialised=!0}disconnectedCallback(){y.flowEvent(c.ComponentLoaded,j.Finalized)}render(){let t=e("div",{class:"container"},e("div",{class:"row"},e("div",{class:"div-ci align-center"},e("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0ic3Bpbm5lckxvYWRlclJlZiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBvdmVyZmxvdz0idmlzaWJsZSIgZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSIjMDMwMzAzIiB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hdENvdW50PSJpbmRlZmluaXRlIi8+DQogIDwvdXNlPg0KICA8dXNlIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bGluazpocmVmPSIjc3Bpbm5lciIgdHJhbnNmb3JtPSJyb3RhdGUoMzE1IDUwIDUwKSI+DQogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIwOzE7MCIgZHVyPSIxcyIgYmVnaW49IjAuODc1cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz4NCiAgPC91c2U+DQo8L3N2Zz4="}))));return l.device.isMobile||"DEMO"==l.environment?l.flowStatus==M.LANDING&&(t=e("landing-validation",null)):l.flowStatus!=M.NONE&&(t=e("mobile-redirect",null)),l.flowStatus==M.AGREEMENT&&(t=e("agreement-info",null)),l.flowStatus==M.PHONE&&(t=e("sms-code-validation",null)),l.flowStatus==M.CODE&&(t=e("sms-code-validation",null)),l.flowStatus==M.CODEERROR&&(t=e("sms-code-validation",null)),l.flowStatus==M.ID&&(t=e("process-id",null)),l.flowStatus==M.LIVENESS&&(t=e("user-liveness",{id:"camera"})),l.flowStatus==M.COMPLETE&&(t=e("end-redirect",null)),l.flowStatus==M.ERROREND&&(t=e("error-end",{errorTitle:this.errorTitle,message:this.errorMessage})),l.flowStatus==M.CAMERAERROR&&(t=e("camera-error",null)),e("div",null,t)}static get watchers(){return{token:["onTokenChange"],order_id:["onOrderIdChange"],api_url:["onApiUrlChange"],env:["onEnvChange"],redirect_id:["onRedirectIdChange"],phone_number:["onPhoneChange"]}}};tt.style="@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-cyrillic-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-greek-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-vietnamese-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-ext-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:900;src:url('./files/inter-latin-900-normal.woff2') format('woff2'), url('./files/inter-all-900-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-cyrillic-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-greek-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-vietnamese-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-ext-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url('./files/inter-latin-700-normal.woff2') format('woff2'), url('./files/inter-all-700-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-cyrillic-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-greek-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-vietnamese-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-ext-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url('./files/inter-latin-600-normal.woff2') format('woff2'), url('./files/inter-all-600-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-cyrillic-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-greek-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0370-03FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-vietnamese-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-ext-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url('./files/inter-latin-400-normal.woff2') format('woff2'), url('./files/inter-all-400-normal.woff') format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{font-family:'Inter', sans-serif}h1{font-weight:900;letter-spacing:0.01em;color:#1f2024;font-size:3.2vh;margin:0;line-height:3.5vh}.row-validare h1{font-size:27px;line-height:29px}body{margin:0;padding:0;height:100vh;position:relative;}.container{width:100%;height:100%;background-color:#fff;max-width:991px;margin:auto;position:relative;overflow:hidden}.container-video{height:99vh;text-align:center;position:relative;overflow:hidden}.row{padding:3.5vh 2.5vh;height:100%;overflow:hidden;position:relative;}.ctheight-100{height:99vh}.d-flex{display:flex}.space-between{justify-content:space-between}.img-info img{width:0.8vh;z-index:5;position:relative}.img-info{width:7vh;height:7vh;border-radius:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.i-effect{animation:2.5s infinite transition-i;position:absolute;z-index:2;border-radius:100%;background:radial-gradient(100% 100% at 50% 0%, #d3b6e9 0%, #fbc2bd 100%)}.two-buttons{margin-top:3vh;justify-content:center}.align-center{align-items:center}.main-text{font-weight:400;color:#71727a}.link-text{margin-top:1vh;text-decoration:underline}.font-size-2{font-size:2vh}.row-validare .font-size-2{font-size:17px;line-height:19px}.img-text{display:flex;align-items:center;margin-bottom:3vh}.img-text .bg-img img{width:100%;padding:2vh}.img-text h3{color:#333333;font-weight:700;font-size:2.3vh;margin:0}.img-text .bg-img{background:#e1e3e9;border-radius:30%;width:11vh;height:11vh;display:flex;align-items:center;justify-content:center;flex:none;margin-right:3vh}.font-weight-bold{font-weight:bold}.font-size-18{font-size:1.8vh}.row-validare .font-size-18{font-size:15px;line-height:16px}a{font-size:inherit;color:inherit;text-decoration:none}.color-black{color:#000}.main-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;width:100%;padding:2vh;color:#fff;border:0;font-size:2vh}.main-button:disabled{color:#71727a}.normal-button{background:#1feaa6;box-shadow:0 6px 8px rgba(71, 182, 162, 0.2);border-radius:25px;text-align:center;padding:2vh;margin-right:1vw;margin-left:1vw;color:#fff;border:0;font-size:2vh}.red-button{background:#ff535d}.row-validare .main-button{font-size:17px}.text-right{text-align:right}.mb-1{margin-bottom:1vh}.mb-0{margin-bottom:0}.row-validare.row{padding:29px 21px}.row-validare .main-button{padding:16px}.row-validare .btn-buletin{position:relative;width:100%;bottom:0}.show-bottom{bottom:-2vh}.row-validare .main-input{padding:14px 12px;border-radius:12px;font-weight:700;border:2px solid #464e58;font-size:19px}.main-input{width:100%;padding:22px 26px;border:3px solid #464e58;border-radius:20px;font-weight:600;font-size:2.3vh;font-family:'Inter', sans-serif}.second-input{width:46px;height:46px;font-weight:700;font-size:16px;font-family:'Inter', sans-serif;text-align:center;border:2px solid #c5c6cc;border-radius:12px;outline:none;padding:2px}.second-input:not(:placeholder-shown){border:2px solid #1feaa6;color:#1feaa6}.mt-9{margin-top:9%}.second-input::placeholder{color:#fff;opacity:0}.second-input:focus{border:2px solid #464e58;color:#464e58}.second-input.error{border:2px solid #b67171}.second-input.error:focus{border:3px solid #b67171;color:#b67171;padding:1px}.second-input.error:not(:placeholder-shown){border:3px solid #b67171;color:#b67171;padding:2px}.second-input-container{margin-top:30%;display:flex;flex-wrap:wrap;justify-content:space-between}.input-container{display:flex;flex-wrap:wrap}.mt-15{margin-top:15%}.row-validare .mt-15{margin-top:40px}.mb-15{margin-bottom:15%}.row-validare .mb-15{margin-bottom:40px}.mb-20{margin-bottom:20%}.row-validare .mb-1{margin-bottom:20px}.row-validare .mb-20{margin-bottom:60px}.mt-90{margin-top:90px}.op-05{opacity:0.5}.color-red{color:#b67171}.error-text{position:relative;top:50px;margin-bottom:0;margin-top:0}.top-50{top:50px}.mt-25{margin-top:25%}.text-center{text-align:center}.scale-2{transform:scale(2)}.mt-20{margin-top:20%}.div-ci img{max-height:60vh;max-width:80vw}.div-ci{text-align:center}.mt-10{margin-top:10vh}.mt-5{margin-top:5vh}.pos-relative{position:relative}.pos-absolute{position:absolute}.btn-buletin{text-align:center}.buletin-container img{width:60%}.buletin-container>img{margin-top:10vh}.buletin-container{text-align:center}.bg-black{background-color:#242426}.color-white{color:#fff}.chenar-buletin{margin-top:3em;text-align:center}.chenar-buletin .ci-img{width:96%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{left:4%;width:92%;top:-20px;min-height:55vw;display:flex;position:absolute;align-items:center;background-color:rgba(255, 255, 255, 0.2);justify-content:center}.chenar-buletin img{width:auto;height:100%;top:0;left:0;position:absolute;border-radius:10px;z-index:4}.chenar-buletin .face-img{background-color:rgba(255, 255, 255, 0.3)}.buletin-container .w-40{width:40%}.animation{width:100%;height:100%;}.color-black-2{color:#71727a}.font-size-3{font-size:3vh}.font-size-25{font-size:2.5vh}.font-weight-900{font-weight:900}.mt-8{margin-top:8vh}.mt-12{margin-top:12vh}.mt-30-i{margin-top:30% !important}.chenar-buletin .face-img{left:-2%;width:104%;top:-40px}.pl-2-5{padding-left:2.5vh}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.scroll{margin:4px, 4px;padding:4px;height:70vh;overflow-x:hidden;overflow-y:auto}.video-demo{z-index:0;width:100%;height:100%;border-radius:20px}.video-capture{padding:2.5vh 2.5vh;margin-top:3em;text-align:center;position:relative}.capture-title{z-index:4;margin-top:3vh;position:absolute;bottom:5vh;padding:2.5vh 2.5vh}@keyframes transition-i{from{width:0;height:0;opacity:1}80%{width:10vh;height:10vh;opacity:0.5}100%{opacity:0}}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.buletin-container.rotate-x img{animation:transform-rotate-x 2s infinite ease-in}.rotateimg90{animation:transform-rotate-x2 2s forwards;animation-delay:1s;position:absolute}.rotateimg180{animation:transform-rotate-x3 2s forwards;animation-delay:3s;position:absolute;opacity:0}.buletin-back{display:flex;justify-content:center}@keyframes transform-rotate-x3{from{transform:rotateY(-90deg);opacity:1}to{transform:rotateY(0deg);opacity:1}}@keyframes transform-rotate-x2{to{transform:rotateY(90deg)}}@keyframes transform-rotate-x{to{transform:perspective(600px) rotateX(40deg)}}@media only screen and (max-width: 350px){.second-input{width:36px;height:36px}}@media only screen and (max-width: 390px){.second-input{width:40px;height:40px}}@media only screen and (min-width: 530px) and (max-width: 767px){.chenar-buletin .face-img{width:70%;min-height:auto;margin:auto;left:15%;right:auto;top:-15vh}}@media only screen and (min-width: 600px) and (max-width: 767px){.max-h img{margin-left:15%;margin-right:15%}.max-h{display:flex;align-items:center}}@media only screen and (max-width: 991px){.buletin-container img{max-width:220px}}@media only screen and (min-width: 767px){.container{max-width:530px;margin:40px auto;border-radius:20px;box-shadow:1px 1px 10px rgba(0, 0, 0, 0.1)}body{height:90vh}.btn-buletin{max-width:490px;bottom:7vh}.buletin-container img{width:45%}.chenar-buletin .face-img,.chenar-buletin .chenar-img{min-height:300px}.chenar-buletin .face-img{width:80%;min-height:auto;margin:auto;left:10%;right:auto;top:-10vh}}";const it=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.warningText=void 0,this.buttonDisabled=void 0,this.baseComponent=new r(c.Landing),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentWillLoad(){y.flowStarted(),this.baseComponent.apiCall=new s,this.buttonDisabled=!1,await this.initRequest()}async componentDidLoad(){"DEMO"!==l.environment&&await this.baseComponent.initialize()}async initRequest(){this.warningText=l.hasIdBack?v.WarningMd:v.Warning}async startFlow(){if(l.initialised){if(this.buttonDisabled=!0,"DEMO"===l.environment)return void(l.flowStatus=M.COMPLETE);await W.InitCameras(l.device)?l.flowStatus=l.agreementsValidation?M.AGREEMENT:l.phoneValidation?M.PHONE:M.ID:(l.device.mobileOS==d.iOS&&sessionStorage.setItem(g.RefreshDoneKey,"false"),l.flowStatus=M.CAMERAERROR)}}async disconnectedCallback(){await this.baseComponent.finalize()}async leaveFlow(){if(!this.buttonDisabled){l.initialised=!1;try{await this.baseComponent.apiCall.AbortRequest(),y.flowAborted()}catch(t){y.flowAborted(),this.apiErrorEvent.emit(t)}}}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",null,e("h1",{class:"text-center"},v.Title),e("div",{class:"d-flex space-between align-center"},e("p",{class:"main-text font-size-2"},v.Description),e("div",{class:"img-info"},e("div",{class:"i-effect"}),e("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDYgMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMC4zNDQ4NiAyNy44ODQ4VjguNzkzODZINS42Mzk2VjI3Ljg4NDhIMC4zNDQ4NlpNMy4wMDQ2NiA2LjMzMjkyQzIuMjE3NDkgNi4zMzI5MiAxLjU0MjE4IDYuMDcxOTEgMC45Nzg3MzggNS41NDk4OUMwLjQyMzU3NyA1LjAxOTU5IDAuMTQ1OTk2IDQuMzg1NzEgMC4xNDU5OTYgMy42NDgyNkMwLjE0NTk5NiAyLjkxOTA5IDAuNDIzNTc3IDIuMjkzNSAwLjk3ODczOCAxLjc3MTQ4QzEuNTQyMTggMS4yNDExOCAyLjIxNzQ5IDAuOTc2MDI5IDMuMDA0NjYgMC45NzYwMjlDMy43OTE4MyAwLjk3NjAyOSA0LjQ2Mjk5IDEuMjQxMTggNS4wMTgxNiAxLjc3MTQ4QzUuNTgxNiAyLjI5MzUgNS44NjMzMyAyLjkxOTA5IDUuODYzMzMgMy42NDgyNkM1Ljg2MzMzIDQuMzg1NzEgNS41ODE2IDUuMDE5NTkgNS4wMTgxNiA1LjU0OTg5QzQuNDYyOTkgNi4wNzE5MSAzLjc5MTgzID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OCAxMi45MTgxIDE5LjM0NjggMTIuN1oiIGZpbGw9IiM2RTc0ODgiIHN0cm9rZT0iIzZFNzQ4OCIgc3Ryb2tlLXdpZHRoPSIwLjc0NDg5MSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE0XzE2MDEiPg0KPHJlY3Qgd2lkdGg9IjM5LjQ3OTIiIGhlaWdodD0iNDMuMjAzNyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMjYwMzc2IDAuNTEzNDI4KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K"})),e("h3",null,v.SmsInfo))),e("div",{class:"terms-container"},e("h3",{class:"font-size-2 mb-1 text-center"},this.warningText)),e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",type:"button",disabled:!l.initialised||this.buttonDisabled,onClick:()=>this.startFlow()},v.Button),e("p",{class:"main-text font-size-2 link-text mb-0",onClick:()=>this.leaveFlow()},v.ButtonLeave),e("p",{class:"main-text font-size-18 text-right mb-0"},v.FooterText)))))}};it.style="";var et=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then};let nt;const st=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];var ot=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},at=function(t){return st[t]},rt=function(t){let i=0;for(;0!==t;)i++,t>>>=1;return i},ct=function(){return void 0!==nt},lt=function(t){return nt(t)},Mt=U((function(t,i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2},i.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}}));function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(t){const i=Math.floor(t/8);return 1==(this.buffer[i]>>>7-t%8&1)},put:function(t,i){for(let e=0;e<i;e++)this.putBit(1==(t>>>i-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var ut=ht;function ft(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}ft.prototype.set=function(t,i,e,n){const s=t*this.size+i;this.data[s]=e,n&&(this.reservedBit[s]=!0)},ft.prototype.get=function(t,i){return this.data[t*this.size+i]},ft.prototype.xor=function(t,i,e){this.data[t*this.size+i]^=e},ft.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]};var dt=ft,gt=U((function(t,i){const e=ot;i.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,n=e(t),s=145===n?26:2*Math.ceil((n-13)/(2*i-2)),o=[n-7];for(let t=1;t<i-1;t++)o[t]=o[t-1]-s;return o.push(6),o.reverse()},i.getPositions=function(t){const e=[],n=i.getRowColCoords(t),s=n.length;for(let t=0;t<s;t++)for(let i=0;i<s;i++)0===t&&0===i||0===t&&i===s-1||t===s-1&&0===i||e.push([n[t],n[i]]);return e}}));const Nt=ot;var Dt=U((function(t,i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,e,n){switch(t){case i.Patterns.PATTERN000:return(e+n)%2==0;case i.Patterns.PATTERN001:return e%2==0;case i.Patterns.PATTERN010:return n%3==0;case i.Patterns.PATTERN011:return(e+n)%3==0;case i.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case i.Patterns.PATTERN101:return e*n%2+e*n%3==0;case i.Patterns.PATTERN110:return(e*n%2+e*n%3)%2==0;case i.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}i.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},i.from=function(t){return i.isValid(t)?parseInt(t,10):void 0},i.getPenaltyN1=function(t){const i=t.size;let e=0,n=0,s=0,o=null,a=null;for(let r=0;r<i;r++){n=s=0,o=a=null;for(let c=0;c<i;c++){let i=t.get(r,c);i===o?n++:(n>=5&&(e+=n-5+3),o=i,n=1),i=t.get(c,r),i===a?s++:(s>=5&&(e+=s-5+3),a=i,s=1)}n>=5&&(e+=n-5+3),s>=5&&(e+=s-5+3)}return e},i.getPenaltyN2=function(t){const i=t.size;let e=0;for(let n=0;n<i-1;n++)for(let s=0;s<i-1;s++){const i=t.get(n,s)+t.get(n,s+1)+t.get(n+1,s)+t.get(n+1,s+1);4!==i&&0!==i||e++}return 3*e},i.getPenaltyN3=function(t){const i=t.size;let e=0,n=0,s=0;for(let o=0;o<i;o++){n=s=0;for(let a=0;a<i;a++)n=n<<1&2047|t.get(o,a),a>=10&&(1488===n||93===n)&&e++,s=s<<1&2047|t.get(a,o),a>=10&&(1488===s||93===s)&&e++}return 40*e},i.getPenaltyN4=function(t){let i=0;const e=t.data.length;for(let n=0;n<e;n++)i+=t.data[n];return 10*Math.abs(Math.ceil(100*i/e/5)-10)},i.applyMask=function(t,i){const n=i.size;for(let s=0;s<n;s++)for(let o=0;o<n;o++)i.isReserved(o,s)||i.xor(o,s,e(t,o,s))},i.getBestMask=function(t,e){const n=Object.keys(i.Patterns).length;let s=0,o=1/0;for(let a=0;a<n;a++){e(a),i.applyMask(a,t);const n=i.getPenaltyN1(t)+i.getPenaltyN2(t)+i.getPenaltyN3(t)+i.getPenaltyN4(t);i.applyMask(a,t),n<o&&(o=n,s=a)}return s}}));const It=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],yt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];var mt=function(t,i){switch(i){case Mt.L:return It[4*(t-1)+0];case Mt.M:return It[4*(t-1)+1];case Mt.Q:return It[4*(t-1)+2];case Mt.H:return It[4*(t-1)+3];default:return}},zt=function(t,i){switch(i){case Mt.L:return yt[4*(t-1)+0];case Mt.M:return yt[4*(t-1)+1];case Mt.Q:return yt[4*(t-1)+2];case Mt.H:return yt[4*(t-1)+3];default:return}};const wt=new Uint8Array(512),jt=new Uint8Array(256);!function(){let t=1;for(let i=0;i<255;i++)wt[i]=t,jt[t]=i,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)wt[t]=wt[t-255]}();var At=function(t,i){return 0===t||0===i?0:wt[jt[t]+jt[i]]},pt=U((function(t,i){i.mul=function(t,i){const e=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let s=0;s<i.length;s++)e[n+s]^=At(t[n],i[s]);return e},i.mod=function(t,i){let e=new Uint8Array(t);for(;e.length-i.length>=0;){const t=e[0];for(let n=0;n<i.length;n++)e[n]^=At(i[n],t);let n=0;for(;n<e.length&&0===e[n];)n++;e=e.slice(n)}return e},i.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let s=0;s<t;s++)e=i.mul(e,new Uint8Array([1,(n=s,wt[n])]));var n;return e}}));function xt(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}xt.prototype.initialize=function(t){this.degree=t,this.genPoly=pt.generateECPolynomial(this.degree)},xt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const e=pt.mod(i,this.genPoly),n=this.degree-e.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(e,n),t}return e};var Tt=xt,vt=function(t){return!isNaN(t)&&t>=1&&t<=40};const Ut="[0-9]+";let Lt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Lt=Lt.replace(/u/g,"\\u");const bt="(?:(?![A-Z0-9 $%*+\\-./:]|"+Lt+")(?:.|[\r\n]))+";var Et=new RegExp(Lt,"g"),Ot=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),kt=new RegExp(bt,"g"),Ct=new RegExp(Ut,"g"),St=new RegExp("[A-Z $%*+\\-./:]+","g");const Qt=new RegExp("^"+Lt+"$"),Yt=new RegExp("^"+Ut+"$"),Ft=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");var Zt={KANJI:Et,BYTE_KANJI:Ot,BYTE:kt,NUMERIC:Ct,ALPHANUMERIC:St,testKanji:function(t){return Qt.test(t)},testNumeric:function(t){return Yt.test(t)},testAlphanumeric:function(t){return Ft.test(t)}},Bt=U((function(t,i){i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(t,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!vt(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},i.getBestModeForData=function(t){return Zt.testNumeric(t)?i.NUMERIC:Zt.testAlphanumeric(t)?i.ALPHANUMERIC:Zt.testKanji(t)?i.KANJI:i.BYTE},i.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},i.isValid=function(t){return t&&t.bit&&t.ccBits},i.from=function(t,e){if(i.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}})),Rt=U((function(t,i){const e=rt(7973);function n(t,i){return Bt.getCharCountIndicator(t,i)+4}function s(t,i){let e=0;return t.forEach((function(t){const s=n(t.mode,i);e+=s+t.getBitsLength()})),e}i.from=function(t,i){return vt(t)?parseInt(t,10):i},i.getCapacity=function(t,i,e){if(!vt(t))throw new Error("Invalid QR Code version");void 0===e&&(e=Bt.BYTE);const s=8*(at(t)-zt(t,i));if(e===Bt.MIXED)return s;const o=s-n(e,t);switch(e){case Bt.NUMERIC:return Math.floor(o/10*3);case Bt.ALPHANUMERIC:return Math.floor(o/11*2);case Bt.KANJI:return Math.floor(o/13);default:return Math.floor(o/8)}},i.getBestVersionForData=function(t,e){let n;const o=Mt.from(e,Mt.M);if(Array.isArray(t)){if(t.length>1)return function(t,e){for(let n=1;n<=40;n++)if(s(t,n)<=i.getCapacity(n,e,Bt.MIXED))return n}(t,o);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,e,n){for(let s=1;s<=40;s++)if(e<=i.getCapacity(s,n,t))return s}(n.mode,n.getLength(),o)},i.getEncodedBits=function(t){if(!vt(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;rt(i)-e>=0;)i^=7973<<rt(i)-e;return t<<12|i}}));const Wt=rt(1335);function Pt(t){this.mode=Bt.NUMERIC,this.data=t.toString()}Pt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},Pt.prototype.getLength=function(){return this.data.length},Pt.prototype.getBitsLength=function(){return Pt.getBitsLength(this.data.length)},Pt.prototype.write=function(t){let i,e,n;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),n=parseInt(e,10),t.put(n,10);const s=this.data.length-i;s>0&&(e=this.data.substr(i),n=parseInt(e,10),t.put(n,3*s+1))};var Gt=Pt;const Vt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Jt(t){this.mode=Bt.ALPHANUMERIC,this.data=t}Jt.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},Jt.prototype.getLength=function(){return this.data.length},Jt.prototype.getBitsLength=function(){return Jt.getBitsLength(this.data.length)},Jt.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let e=45*Vt.indexOf(this.data[i]);e+=Vt.indexOf(this.data[i+1]),t.put(e,11)}this.data.length%2&&t.put(Vt.indexOf(this.data[i]),6)};var Ht=Jt;function Xt(t){this.mode=Bt.BYTE,"string"==typeof t&&(t=function(t){for(var i=[],e=t.length,n=0;n<e;n++){var s=t.charCodeAt(n);if(s>=55296&&s<=56319&&e>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(s=1024*(s-55296)+o-56320+65536,n+=1)}s<128?i.push(s):s<2048?(i.push(s>>6|192),i.push(63&s|128)):s<55296||s>=57344&&s<65536?(i.push(s>>12|224),i.push(s>>6&63|128),i.push(63&s|128)):s>=65536&&s<=1114111?(i.push(s>>18|240),i.push(s>>12&63|128),i.push(s>>6&63|128),i.push(63&s|128)):i.push(239,191,189)}return new Uint8Array(i).buffer}(t)),this.data=new Uint8Array(t)}Xt.getBitsLength=function(t){return 8*t},Xt.prototype.getLength=function(){return this.data.length},Xt.prototype.getBitsLength=function(){return Xt.getBitsLength(this.data.length)},Xt.prototype.write=function(t){for(let i=0,e=this.data.length;i<e;i++)t.put(this.data[i],8)};var _t=Xt;function Kt(t){this.mode=Bt.KANJI,this.data=t}Kt.getBitsLength=function(t){return 13*t},Kt.prototype.getLength=function(){return this.data.length},Kt.prototype.getBitsLength=function(){return Kt.getBitsLength(this.data.length)},Kt.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let e=lt(this.data[i]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13)}};var qt=Kt,$t=U((function(t){var i={single_source_shortest_paths:function(t,e,n){var s={},o={};o[e]=0;var a,r,c,l,M,h,u=i.PriorityQueue.make();for(u.push(e,0);!u.empty();)for(c in l=(a=u.pop()).cost,M=t[r=a.value]||{})M.hasOwnProperty(c)&&(h=l+M[c],(void 0===o[c]||o[c]>h)&&(o[c]=h,u.push(c,h),s[c]=r));if(void 0!==n&&void 0===o[n]){var f=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(f)}return s},extract_shortest_path_from_predecessor_list:function(t,i){for(var e=[],n=i;n;)e.push(n),n=t[n];return e.reverse(),e},find_path:function(t,e,n){var s=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,s={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(s[e]=n[e]);return s.queue=[],s.sorter=t.sorter||n.default_sorter,s},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){this.queue.push({value:t,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i})),ti=U((function(t,i){function e(t){return unescape(encodeURIComponent(t)).length}function n(t,i,e){const n=[];let s;for(;null!==(s=t.exec(e));)n.push({data:s[0],index:s.index,mode:i,length:s[0].length});return n}function s(t){const i=n(Zt.NUMERIC,Bt.NUMERIC,t),e=n(Zt.ALPHANUMERIC,Bt.ALPHANUMERIC,t);let s,o;return ct()?(s=n(Zt.BYTE,Bt.BYTE,t),o=n(Zt.KANJI,Bt.KANJI,t)):(s=n(Zt.BYTE_KANJI,Bt.BYTE,t),o=[]),i.concat(e,s,o).sort((function(t,i){return t.index-i.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function o(t,i){switch(i){case Bt.NUMERIC:return Gt.getBitsLength(t);case Bt.ALPHANUMERIC:return Ht.getBitsLength(t);case Bt.KANJI:return qt.getBitsLength(t);case Bt.BYTE:return _t.getBitsLength(t)}}function a(t,i){let e;const n=Bt.getBestModeForData(t);if(e=Bt.from(i,n),e!==Bt.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+Bt.toString(e)+".\n Suggested mode is: "+Bt.toString(n));switch(e!==Bt.KANJI||ct()||(e=Bt.BYTE),e){case Bt.NUMERIC:return new Gt(t);case Bt.ALPHANUMERIC:return new Ht(t);case Bt.KANJI:return new qt(t);case Bt.BYTE:return new _t(t)}}i.fromArray=function(t){return t.reduce((function(t,i){return"string"==typeof i?t.push(a(i,null)):i.data&&t.push(a(i.data,i.mode)),t}),[])},i.fromString=function(t,n){const a=function(t){const i=[];for(let n=0;n<t.length;n++){const s=t[n];switch(s.mode){case Bt.NUMERIC:i.push([s,{data:s.data,mode:Bt.ALPHANUMERIC,length:s.length},{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.ALPHANUMERIC:i.push([s,{data:s.data,mode:Bt.BYTE,length:s.length}]);break;case Bt.KANJI:i.push([s,{data:s.data,mode:Bt.BYTE,length:e(s.data)}]);break;case Bt.BYTE:i.push([{data:s.data,mode:Bt.BYTE,length:e(s.data)}])}}return i}(s(t,ct())),r=function(t,i){const e={},n={start:{}};let s=["start"];for(let a=0;a<t.length;a++){const r=t[a],c=[];for(let t=0;t<r.length;t++){const l=r[t],M=""+a+t;c.push(M),e[M]={node:l,lastCount:0},n[M]={};for(let t=0;t<s.length;t++){const a=s[t];e[a]&&e[a].node.mode===l.mode?(n[a][M]=o(e[a].lastCount+l.length,l.mode)-o(e[a].lastCount,l.mode),e[a].lastCount+=l.length):(e[a]&&(e[a].lastCount=l.length),n[a][M]=o(l.length,l.mode)+4+Bt.getCharCountIndicator(l.mode,i))}}s=c}for(let t=0;t<s.length;t++)n[s[t]].end=0;return{map:n,table:e}}(a,n),c=$t.find_path(r.map,"start","end"),l=[];for(let t=1;t<c.length-1;t++)l.push(r.table[c[t]].node);return i.fromArray(l.reduce((function(t,i){const e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===i.mode?(t[t.length-1].data+=i.data,t):(t.push(i),t)}),[]))},i.rawSplit=function(t){return i.fromArray(s(t,ct()))}}));function ii(t,i,e){const n=t.size,s=function(t,i){const e=t.bit<<3|i;let n=e<<10;for(;rt(n)-Wt>=0;)n^=1335<<rt(n)-Wt;return 21522^(e<<10|n)}(i,e);let o,a;for(o=0;o<15;o++)a=1==(s>>o&1),t.set(o<6?o:o<8?o+1:n-15+o,8,a,!0),t.set(8,o<8?n-o-1:o<9?15-o-1+1:15-o-1,a,!0);t.set(n-8,8,1,!0)}function ei(t,i,e,n){let s;if(Array.isArray(t))s=ti.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=i;if(!n){const i=ti.rawSplit(t);n=Rt.getBestVersionForData(i,e)}s=ti.fromString(t,n||40)}}const o=Rt.getBestVersionForData(s,e);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<o)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+o+".\n")}else i=o;const a=function(t,i,e){const n=new ut;e.forEach((function(i){n.put(i.mode.bit,4),n.put(i.getLength(),Bt.getCharCountIndicator(i.mode,t)),i.write(n)}));const s=8*(at(t)-zt(t,i));for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);const o=(s-n.getLengthInBits())/8;for(let t=0;t<o;t++)n.put(t%2?17:236,8);return function(t,i,e){const n=at(i),s=n-zt(i,e),o=mt(i,e),a=o-n%o,r=Math.floor(n/o),c=Math.floor(s/o),l=c+1,M=r-c,h=new Tt(M);let u=0;const f=new Array(o),d=new Array(o);let g=0;const N=new Uint8Array(t.buffer);for(let t=0;t<o;t++){const i=t<a?c:l;f[t]=N.slice(u,u+i),d[t]=h.encode(f[t]),u+=i,g=Math.max(g,i)}const D=new Uint8Array(n);let I,y,m=0;for(I=0;I<g;I++)for(y=0;y<o;y++)I<f[y].length&&(D[m++]=f[y][I]);for(I=0;I<M;I++)for(y=0;y<o;y++)D[m++]=d[y][I];return D}(n,t,i)}(i,e,s),r=ot(i),c=new dt(r);return function(t,i){const e=t.size,n=function(t){const i=Nt(t);return[[0,0],[i-7,0],[0,i-7]]}(i);for(let i=0;i<n.length;i++){const s=n[i][0],o=n[i][1];for(let i=-1;i<=7;i++)if(!(s+i<=-1||e<=s+i))for(let n=-1;n<=7;n++)o+n<=-1||e<=o+n||t.set(s+i,o+n,i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4,!0)}}(c,i),function(t){const i=t.size;for(let e=8;e<i-8;e++){const i=e%2==0;t.set(e,6,i,!0),t.set(6,e,i,!0)}}(c),function(t,i){const e=gt.getPositions(i);for(let i=0;i<e.length;i++){const n=e[i][0],s=e[i][1];for(let i=-2;i<=2;i++)for(let e=-2;e<=2;e++)t.set(n+i,s+e,-2===i||2===i||-2===e||2===e||0===i&&0===e,!0)}}(c,i),ii(c,e,0),i>=7&&function(t,i){const e=t.size,n=Rt.getEncodedBits(i);let s,o,a;for(let i=0;i<18;i++)s=Math.floor(i/3),o=i%3+e-8-3,a=1==(n>>i&1),t.set(s,o,a,!0),t.set(o,s,a,!0)}(c,i),function(t,i){const e=t.size;let n=-1,s=e-1,o=7,a=0;for(let r=e-1;r>0;r-=2)for(6===r&&r--;;){for(let e=0;e<2;e++)if(!t.isReserved(s,r-e)){let n=!1;a<i.length&&(n=1==(i[a]>>>o&1)),t.set(s,r-e,n),o--,-1===o&&(a++,o=7)}if(s+=n,s<0||e<=s){s-=n,n=-n;break}}}(c,a),isNaN(n)&&(n=Dt.getBestMask(c,ii.bind(null,c,e))),Dt.applyMask(n,c),ii(c,e,n),{modules:c,version:i,errorCorrectionLevel:e,maskPattern:n,segments:s}}var ni=function(t,i){if(void 0===t||""===t)throw new Error("No input text");let e,n,s=Mt.M;return void 0!==i&&(s=Mt.from(i.errorCorrectionLevel,Mt.M),e=Rt.from(i.version),n=Dt.from(i.maskPattern),i.toSJISFunc&&function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');nt=t}(i.toSJISFunc)),ei(t,e,s,n)},si=U((function(t,i){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+t);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map((function(t){return[t,t]})))),6===i.length&&i.push("F","F");const e=parseInt(i.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+i.slice(0,6).join("")}}i.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=t.width&&t.width>=21?t.width:void 0;return{width:i,scale:i?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},i.getScale=function(t,i){return i.width&&i.width>=t+2*i.margin?i.width/(t+2*i.margin):i.scale},i.getImageWidth=function(t,e){const n=i.getScale(t,e);return Math.floor((t+2*e.margin)*n)},i.qrToImageData=function(t,e,n){const s=e.modules.size,o=e.modules.data,a=i.getScale(s,n),r=Math.floor((s+2*n.margin)*a),c=n.margin*a,l=[n.color.light,n.color.dark];for(let i=0;i<r;i++)for(let e=0;e<r;e++){let M=4*(i*r+e),h=n.color.light;i>=c&&e>=c&&i<r-c&&e<r-c&&(h=l[o[Math.floor((i-c)/a)*s+Math.floor((e-c)/a)]?1:0]),t[M++]=h.r,t[M++]=h.g,t[M++]=h.b,t[M]=h.a}}})),oi=U((function(t,i){i.render=function(t,i,e){let n=e,s=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=si.getOptions(n);const o=si.getImageWidth(t.modules.size,n),a=s.getContext("2d"),r=a.createImageData(o,o);return si.qrToImageData(r.data,t,n),function(t,i,e){t.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=e,i.width=e,i.style.height=e+"px",i.style.width=e+"px"}(a,s,o),a.putImageData(r,0,0),s},i.renderToDataURL=function(t,e,n){let s=n;return void 0!==s||e&&e.getContext||(s=e,e=void 0),s||(s={}),i.render(t,e,s).toDataURL(s.type||"image/png",(s.rendererOpts||{}).quality)}}));function ai(t,i){const e=t.a/255,n=i+'="'+t.hex+'"';return e<1?n+" "+i+'-opacity="'+e.toFixed(2).slice(1)+'"':n}function ri(t,i,e){let n=t+i;return void 0!==e&&(n+=" "+e),n}function ci(t,i,e,n,s){const o=[].slice.call(arguments,1),a=o.length,r="function"==typeof o[a-1];if(!r&&!et())throw new Error("Callback required as last argument");if(!r){if(a<1)throw new Error("Too few arguments provided");return 1===a?(e=i,i=n=void 0):2!==a||i.getContext||(n=e,e=i,i=void 0),new Promise((function(s,o){try{const o=ni(e,n);s(t(o,i,n))}catch(t){o(t)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(s=e,e=i,i=n=void 0):3===a&&(i.getContext&&void 0===s?(s=n,n=void 0):(s=n,n=e,e=i,i=void 0));try{const o=ni(e,n);s(null,t(o,i,n))}catch(t){s(t)}}var li={create:ni,toCanvas:ci.bind(null,oi.render),toDataURL:ci.bind(null,oi.renderToDataURL),toString:ci.bind(null,(function(t,i,e){return function(t,i,e){const n=si.getOptions(i),s=t.modules.size,o=t.modules.data,a=s+2*n.margin,r=n.color.light.a?"<path "+ai(n.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+ai(n.color.dark,"stroke")+' d="'+function(t,i,e){let n="",s=0,o=!1,a=0;for(let r=0;r<t.length;r++){const c=Math.floor(r%i),l=Math.floor(r/i);c||o||(o=!0),t[r]?(a++,r>0&&c>0&&t[r-1]||(n+=o?ri("M",c+e,.5+l+e):ri("m",s,0),s=0,o=!1),c+1<i&&t[r+1]||(n+=ri("h",a),a=0)):s++}return n}(o,s,n.margin)+'"/>',l='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+'viewBox="0 0 '+a+" "+a+'" shape-rendering="crispEdges">'+r+c+"</svg>\n";return"function"==typeof e&&e(null,l),l}(t,e)}))};const Mi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.infoTextTop=void 0,this.infoTextBottom=void 0,this.contact=void 0,this.invalidValue=void 0,this.waitingMobile=void 0,this.orderStatus=void 0,this.redirectLink=void 0,this.qrCode=void 0,this.prefilledPhone=!1,this.baseComponent=new r(c.MobileRedirect),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.invalidValue=!1,this.waitingMobile=!1}async componentWillLoad(){y.flowStarted(),this.infoTextTop=L.InfoTop,this.infoTextBottom=L.InfoBottom,this.redirectLink=(l.hasIdBack?"https://onmd.id-kyc.com/":"https://onro.id-kyc.com/")+("QA"==l.environment?"test":"ect")+"/mobileredirect?redirectId="+l.redirectId,l.phoneNumber&&""!=l.phoneNumber&&(this.contact=l.phoneNumber,this.prefilledPhone=!0);var t=this;li.toDataURL(this.redirectLink,{type:"image/png",errorCorrectionLevel:"M",scale:6},(function(i,e){i&&console.error(i),t.qrCode=e}))}async componentDidLoad(){for(await this.baseComponent.initialize(),await I(5e3),await this.checkStatus();this.orderStatus==b.Capturing||this.orderStatus==b.Waiting;)await this.checkStatus(),await I(5e3)}async checkStatus(){this.orderStatus=await this.baseComponent.apiCall.GetStatus(l.requestId),this.orderStatus==b.FinishedCapturing&&(this.waitingMobile=!1,l.flowStatus=M.COMPLETE),this.orderStatus==b.NotFound&&this.apiErrorEvent.emit({message:"No order was started for this process."}),this.orderStatus==b.Capturing&&(this.infoTextTop=L.InfoWaiting,this.waitingMobile=!0),this.orderStatus==b.Aborted&&(this.waitingMobile=!1,this.infoTextTop=L.InfoAborted,y.flowAborted())}async disconnectedCallback(){await this.baseComponent.finalize()}async buttonClick(){if(""!=this.contact&&10==this.contact.length){this.waitingMobile=!0,this.infoTextTop=L.InfoWaiting;try{await this.baseComponent.apiCall.SendLink(this.redirectLink,this.contact)}catch(t){this.apiErrorEvent.emit(t)}}}handleChangeContact(t){this.contact=(t.target?t.target.value:"").replace(/\D/g,""),this.contact.length>10&&(this.contact=this.contact.substring(0,10)),this.invalidValue=10!=this.contact.length,t.target.value=this.contact}render(){return e("div",{class:"container"},e("div",{class:"row"},e("div",{hidden:this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)),e("div",{class:"qr-canvas align-center"},e("img",{src:this.qrCode})),e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextBottom)),e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1 color-red",hidden:0==this.invalidValue},e("b",null,L.Validation)),e("input",{type:"text",id:"codeInput",class:"main-input",disabled:this.prefilledPhone,value:this.contact,onInput:t=>this.handleChangeContact(t)})),e("div",{class:"pos-relative"},e("div",{class:"btn-buletin"},e("button",{class:"main-button",onClick:()=>this.buttonClick()},"Trimite"),e("p",{class:"main-text font-size-18 text-right mb-0"},L.FooterText)))),e("div",{hidden:0==this.waitingMobile},e("div",{class:"text-center"},e("p",{class:"font-size-2"},this.infoTextTop)))))}};var hi,ui;Mi.style=".qr-canvas{max-height:60vh;max-width:80vw;text-align:center}.qr-canvas>canvas{width:100%;height:100%}",function(t){t.IdFront="IdFront",t.IdBack="IdBack",t.IdFrontVideo="IdFrontVideo",t.IdBackVideo="IdBackVideo",t.SelfieVideo="SelfieVideo",t.SelfieGestureVideo="SelfieGestureVideo",t.TiltVideo="TiltVideo",t.None="None"}(hi||(hi={})),function(t){t[t.HowToFront=0]="HowToFront",t[t.IdFront=1]="IdFront",t[t.HowToBack=2]="HowToBack",t[t.IdBack=3]="IdBack",t[t.Tilt=4]="Tilt",t[t.End=5]="End"}(ui||(ui={}));const fi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.captureStep=void 0,this.showTimeout=void 0,this.showInvalid=void 0,this.flow=void 0,this.baseComponent=new r(c.CiBack),this.baseComponent.setEventEmitter(this.apiErrorEvent)}componentWillLoad(){this.captureRetryCount=0,this.flow={front:{photoDone:!1,recordingDone:!1,fileName:"idImage.png",recName:"idVideo.",photoType:hi.IdFront,recType:hi.IdFrontVideo},back:null,tilt:null},l.hasIdBack&&(this.flow.back={photoDone:!1,recordingDone:!1,fileName:"idBackImage.png",recName:"idBackVideo.",photoType:hi.IdBack,recType:hi.IdBackVideo}),l.hasIdTilt&&(this.flow.tilt={photoDone:!0,recordingDone:!1,fileName:"idTiltImage.png",recName:"idTiltVideo.",photoType:hi.None,recType:hi.TiltVideo}),this.captureStep=ui.HowToFront}howToDone(){this.captureStep==ui.HowToFront&&(this.captureStep=ui.IdFront),this.captureStep==ui.HowToBack&&(this.captureStep=ui.IdBack)}timeElapsed(){this.showTimeout=!0}captureErrorDone(){1==this.showTimeout&&(this.showTimeout=!1),1==this.showInvalid&&(this.showInvalid=!1)}async captureIdImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{let t=new File([i],this.flow.front.fileName,{type:"image/png"});this.flow.front.photoDone=await this.uploadPhotos(this.flow.front.photoType,t),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async captureIdBackImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:i},x()),void this.triggerErrorFlow();try{let t=new File([i],this.flow.back.fileName,{type:"image/png"});this.flow.back.photoDone=await this.uploadPhotos(this.flow.back.photoType,t),await this.endFlow()}catch(t){this.apiErrorEvent.emit(t)}}async capturedIdRecording(t){let i=t.detail;if(0==i.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty ID recording",blobData:i},x()),void(this.showTimeout=!0);let e=i.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;if(this.captureStep==ui.IdFront){let t=new File([i],this.flow.front.recName+e.extension,{type:e.type});this.flow.front.recordingDone=await this.uploadRecording(this.flow.front.recType,t)}if(this.captureStep==ui.IdBack){let t=new File([i],this.flow.back.recName+e.extension,{type:e.type});this.flow.back.recordingDone=await this.uploadRecording(this.flow.back.recType,t)}if(this.captureStep==ui.Tilt){let t=new File([i],this.flow.tilt.recName+e.extension,{type:e.type});this.flow.tilt.recordingDone=await this.uploadRecording(this.flow.tilt.recType,t)}await this.endFlow(),this.recordingResultCount=0}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhotos(t,i){return!(null==i||""==t||!await this.baseComponent.apiCall.UploadFileForRequestB64(l.requestId,t,i)&&(this.switchCamera(),this.triggerErrorFlow(),1))}async uploadRecording(t,i){if(null!=i)return!!await this.baseComponent.apiCall.UploadFileForRequestB64(l.requestId,t,i)||(this.triggerErrorFlow(),!1)}triggerErrorFlow(t=!1){t&&(this.captureStep=ui.IdFront),(this.captureStep==ui.IdFront||t)&&(this.flow.front.photoDone=!1,this.flow.front.recordingDone=!1),(this.captureStep==ui.IdBack||t)&&(this.flow.back.photoDone=!1,this.flow.back.recordingDone=!1),(this.captureStep==ui.Tilt||t)&&(this.flow.tilt.photoDone=!0,this.flow.tilt.recordingDone=!1),this.showInvalid=!0}async endFlow(){if(this.captureStep==ui.IdFront){if(!this.flow.front.photoDone||!this.flow.front.recordingDone)return;this.captureStep=l.hasIdBack?ui.IdBack:l.hasIdTilt?ui.Tilt:ui.End}if(this.captureStep==ui.IdBack&&l.hasIdBack){if(!this.flow.back.photoDone||!this.flow.back.recordingDone)return;this.captureStep=l.hasIdTilt?ui.Tilt:ui.End}if(this.captureStep==ui.Tilt&&l.hasIdTilt){if(!this.flow.tilt.photoDone||!this.flow.tilt.recordingDone)return;this.captureStep=ui.End}this.captureStep==ui.End&&(l.flowStatus=M.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let t=l.cameraIds.indexOf(l.cameraId);l.cameraId=t===l.cameraIds.length-1?l.cameraIds[0]:l.cameraIds[t+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let t=e("capture-error",{type:"ID"}),i=e("id-capture",null),n=e("id-back-capture",null),s=e("id-tilt",null),o=e("how-to-info",{idSide:"front"}),a=e("how-to-info",{idSide:"back"});return this.showInvalid||this.showTimeout?t:this.captureStep==ui.HowToFront?o:this.captureStep==ui.HowToBack?a:this.captureStep==ui.IdFront?i:this.captureStep==ui.IdBack?n:this.captureStep==ui.Tilt?s:void 0}};fi.style="";const di=class{constructor(e){t(this,e),this.eventPhotoCapture=i(this,"photoSelfieCapture",7),this.apiErrorEvent=i(this,"apiError",7),this.photoIsReady=t=>{this.eventPhotoCapture.emit(t)},this.videoStarted=void 0,this.captureTaken=void 0,this.verified=void 0,this.titleMesage=void 0,this.demoEnded=void 0,this.demoVideo=void 0,this.uploadingLink=void 0,this.captureHeight=void 0,this.captureWidth=void 0,this.captureTaken=!1,this.verified=!1,this.cameras=new W,this.demoEnded=!1,this.uploadingLink="https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4",this.baseComponent=new r(c.SelfieHoldAnimation)}async eventChangeTitle(t){null==t.detail?this.titleMesage=D.FinalTitle:(await this.baseComponent.logStep(c.SelfieTiltAnimation,j.Initialized),this.titleMesage=D.FacePoseMapping[t.detail],this.demoEnded=!1,this.demoVideo.src=D.FacePoseDemoMapping[t.detail],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(c.SelfieTiltAnimation,j.Finalized))}eventVideoStarted(t){this.videoStarted=!0;var i=Math.round(16*t.detail.width/9);this.captureHeight=i-Math.round((window.screen.height-i)/2),this.captureWidth=Math.round(9*this.captureHeight/16)}componentWillLoad(){this.titleMesage=D.Title,navigator.mediaDevices||this.apiErrorEvent.emit({message:"This browser does not support webRTC"})}async componentDidLoad(){await this.baseComponent.logStep(c.SelfieHoldAnimation,j.Initialized),this.demoVideo.src=D.FacePoseDemoMapping[E.Main],this.demoVideo.play(),await I(D.VideoLenght),this.demoEnded=!0,await this.baseComponent.logStep(c.SelfieHoldAnimation,j.Finalized),this.openCamera()}async openCamera(){await this.baseComponent.logStep(c.SelfieCapture,j.Initialized);const t=this.cameras.GetConstraints("",l.device,!0);setTimeout((()=>{navigator.mediaDevices.getUserMedia(t).then((t=>{h.getInstance(u.Full).initStream(t)})).catch((t=>{this.closeCamera(),this.apiErrorEvent.emit(t)}))}),100)}closeCamera(){h.instance&&h.getInstance(u.Full).dropStream()}disconnectedCallback(){this.closeCamera(),h.instance=null,p.instance=null}async takePhoto(){if(this.captureTaken)return;this.captureTaken=!0;let t=await h.getInstance(u.Full).takePhoto();this.photoIsReady(t),await this.baseComponent.logStep(c.SelfieHoldAnimation,j.Finalized)}verificationFinished(){this.verified||(this.verified=!0,this.titleMesage=D.Loading,this.closeCamera(),this.demoEnded=!1,this.demoVideo.src=this.uploadingLink,this.demoVideo.loop=!0,this.demoVideo.play())}render(){let t;l.device.isMobile&&this.videoStarted&&(t={width:this.captureWidth+"px",height:this.captureHeight+"px",overflow:"hidden",borderRadius:"10px","text-align":"center",margin:"auto"});let i=this.verified?"color-black-2 text-center":"color-white text-center";return e("div",{class:this.verified?"container":"container bg-black"},e("div",{class:"container-video"},e("div",{hidden:this.demoEnded},e("video",{id:"howtoSelfie",class:"video-demo",playsinline:!0,ref:t=>this.demoVideo=t},e("source",{type:"video/mp4"}))),e("div",{hidden:0==this.demoEnded},e("div",{hidden:this.verified},e("div",{class:"video-capture"},e("div",{style:t},e("camera-comp",{"capture-mode":"selfie"}))))),e("div",{class:"capture-title"},e("h1",{class:i},this.titleMesage),e("p",{class:"main-text font-size-18 text-right mb-0"},D.FooterText))))}get component(){return n(this)}};di.style="";const gi=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.title=void 0,this.details=void 0,this.buttonText=void 0,this.phoneNumber=void 0,this.code=void 0,this.prefilledPhone=!1,this.canSend=!1,l.flowStatus==M.PHONE&&(this.baseComponent=new r(c.OtpSend)),l.flowStatus==M.CODE&&(this.baseComponent=new r(c.OtpCheck)),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async doAction(){try{if(this.canSend=!1,l.flowStatus==M.CODE||l.flowStatus==M.CODEERROR){var t=await this.baseComponent.apiCall.CheckOTPCode(l.requestId,this.code);l.flowStatus=!0===t?M.ID:M.CODEERROR}l.flowStatus==M.PHONE&&!0===await this.baseComponent.apiCall.SendOTPCode(l.requestId,this.phoneNumber)&&(l.flowStatus=M.CODE)}catch(t){this.apiErrorEvent.emit(t)}}async disconnectedCallback(){await this.baseComponent.finalize()}componentWillRender(){l.flowStatus==M.PHONE&&(this.title=O.Title,this.details=O.Description,this.buttonText=O.Button,l.phoneNumber&&""!=l.phoneNumber&&(this.phoneNumber=l.phoneNumber,this.prefilledPhone=!0,this.canSend=!0)),l.flowStatus!=M.CODE&&l.flowStatus!=M.CODEERROR||(this.title=k.Title,this.details=k.Description,this.buttonText=k.Button)}async componentDidLoad(){await this.baseComponent.initialize()}handleChangePhone(t){this.phoneNumber=(t.target?t.target.value:"").replace(/\D/g,""),this.phoneNumber.length>10&&(this.phoneNumber=this.phoneNumber.substring(0,10)),this.canSend=10==this.phoneNumber.length,t.target.value=this.phoneNumber}handleChangeCode(t){this.code=t.target?t.target.value:"",this.code.length>4&&(this.code=this.code.substring(0,4)),this.canSend=4==this.code.length,t.target.value=this.code}render(){let t,i;return l.flowStatus==M.CODEERROR&&(i=e("p",{class:"main-text font-size-18 mt-15 color-red text-center"},k.Error)),t=l.flowStatus==M.PHONE?e("div",{class:"input-container mb-15"},e("label",{class:"font-size-18 mb-1"},e("b",null,O.Label)),e("input",{type:"tel",id:"phoneInput",class:"main-input",disabled:this.prefilledPhone,onInput:t=>this.handleChangePhone(t),value:this.phoneNumber})):e("div",{class:"input-container mb-15"},e("input",{type:"text",id:"codeInput",class:"main-input",onInput:t=>this.handleChangeCode(t),value:this.code})),e("div",{class:"container"},e("div",{class:"row row-validare"},e("div",null,e("h1",{class:"text-center"},this.title),null==i?e("p",{class:"main-text font-size-2 mt-15 mb-20 text-center"},this.details):i),t,e("div",{class:"pos-relative show-bottom"},e("div",{class:"btn-buletin"},e("button",{id:"action",disabled:!this.canSend,class:"main-button",onClick:()=>this.doAction()},this.buttonText),e("p",{class:"main-text font-size-18 text-right mb-0"},O.FooterText)))))}};gi.style="";const Ni=class{constructor(e){t(this,e),this.apiErrorEvent=i(this,"apiError",7),this.recordingResultCount=0,this.showError=void 0,this.showHowTo=void 0,this.selfieFlow={photoDone:!1,recordingDone:!1,verificationFinished:!1,photoFile:null,recordingFile:null},this.baseComponent=new r(c.Selfie),this.baseComponent.setEventEmitter(this.apiErrorEvent)}async componentDidLoad(){await this.baseComponent.initialize()}componentWillLoad(){this.showHowTo=!0}howToDone(){this.showHowTo=!1}timeElapsed(){this.showError=!0}captureErrorDone(){this.showError=!1,this.selfieFlow.photoDone=!1,this.selfieFlow.recordingDone=!1,this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null}async captureSelfieImage(t){let i=t.detail;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty selfie",blobData:i},x()),void this.triggerErrorFlow();try{this.selfieFlow.photoFile=new File([i],"selfie.png",{type:"image/png"}),await this.uploadPhoto()}catch(t){this.apiErrorEvent.emit(t)}}async capturedSelfieRecording(t){let i=t.detail;if(0==i.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==i.size)return await this.baseComponent.apiCall.AddLog({message:"Empty recording",blobData:i},x()),void this.triggerErrorFlow();let e=i.type==h.mp4MimeType.type?h.mp4MimeType:h.webmMimeType;try{this.selfieFlow.recordingFile=new File([i],"selfieVideo."+e.extension,{type:e.type}),await this.uploadRecording()}catch(t){l.recordingRetryCount<3?(l.recordingRetryCount++,this.triggerErrorFlow()):this.apiErrorEvent.emit(t)}}async verificationFinished(t){this.selfieFlow.verificationFinished=!0,await this.endFlow()}async disconnectedCallback(){await this.baseComponent.finalize()}async uploadPhoto(){null==this.selfieFlow.photoFile||this.selfieFlow.photoDone||(this.selfieFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(l.requestId,"Selfie",this.selfieFlow.photoFile),this.selfieFlow.photoDone?await this.endFlow():this.triggerErrorFlow())}async uploadRecording(){null==this.selfieFlow.recordingFile||this.selfieFlow.recordingDone||(this.selfieFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(l.requestId,"SelfieVideo",this.selfieFlow.recordingFile),this.selfieFlow.recordingDone?await this.endFlow():this.triggerErrorFlow())}triggerErrorFlow(){this.selfieFlow.photoFile=null,this.selfieFlow.recordingFile=null,this.showError=!0}async endFlow(){this.selfieFlow.photoDone&&this.selfieFlow.recordingDone&&this.selfieFlow.verificationFinished&&(l.recordingRetryCount=0,l.flowStatus=M.COMPLETE)}render(){let t=e("how-to-info",{idSide:""}),i=e("selfie-capture",{id:"camera"}),n=e("capture-error",{type:"LIVENESS"});return this.showHowTo?t:this.showError?n:i}};Ni.style="";export{C as agreement_check,S as agreement_info,Q as camera_comp,Y as camera_error,F as capture_error,Z as end_redirect,B as error_end,R as how_to_info,G as id_back_capture,V as id_capture,J as id_tilt,tt as identification_component,it as landing_validation,Mi as mobile_redirect,fi as process_id,di as selfie_capture,gi as sms_code_validation,Ni as user_liveness}
@@ -1 +1 @@
1
- import{r as i,c as t,h as s}from"./p-aacd7024.js";import{B as h,F as a,l as e,s as o,c as n,S as r}from"./p-ed7ad79f.js";const d=class{constructor(s){i(this,s),this.apiErrorEvent=t(this,"apiError",7),this.recordingResultCount=0,this.showTimeout=void 0,this.showHowTo=void 0,this.idFlow={verificationFinished:!1,photoDone:!1,recordingDone:!1,photoFile:null,recordingFile:null},this.baseComponent=new h(a.CiFront),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.captureRetryCount=0,this.showHowTo=!0}captureErrorDone(){this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!1}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}async captureIdImage(i){let t=i.detail;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:t},e()),void(this.showTimeout=!0);try{this.idFlow.photoFile=new File([t],"idImage.png",{type:"image/png"}),await this.uploadPhoto()}catch(i){this.apiErrorEvent.emit(i)}}async verificationFinished(i){this.idFlow.verificationFinished=!0,await this.endFlow()}async capturedIdRecording(i){let t=i.detail;if(0==t.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty ID recording",blobData:t},e()),void(this.showTimeout=!0);let s=t.type==r.mp4MimeType.type?r.mp4MimeType:r.webmMimeType;if(o.flowStatus==n.ID)try{this.idFlow.recordingFile=new File([t],"idVideo."+s.extension,{type:s.type}),await this.uploadRecording()}catch(i){this.apiErrorEvent.emit(i)}}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhoto(){null==this.idFlow.photoFile||this.idFlow.photoDone||(this.idFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFront",this.idFlow.photoFile),this.idFlow.photoDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.switchCamera(),this.showTimeout=!0))}async uploadRecording(){null==this.idFlow.recordingFile||this.idFlow.recordingDone||(this.idFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFrontVideo",this.idFlow.recordingFile),this.idFlow.recordingDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!0))}async endFlow(){this.idFlow.photoDone&&this.idFlow.recordingDone&&this.idFlow.verificationFinished&&(o.flowStatus=n.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let i=o.cameraIds.indexOf(o.cameraId);o.cameraId=i===o.cameraIds.length-1?o.cameraIds[0]:o.cameraIds[i+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let i=s("capture-error",{type:"ID"}),t=s("id-capture",{id:"idFront"}),h=s("how-to-info",{idSide:"front"});return this.showHowTo?h:this.showTimeout?i:t}};d.style="";export{d as id_single_side}
1
+ import{r as i,c as t,h as s}from"./p-aacd7024.js";import{B as h,F as a,l as e,s as o,c as n,S as r}from"./p-73a2e58b.js";const l=class{constructor(s){i(this,s),this.apiErrorEvent=t(this,"apiError",7),this.recordingResultCount=0,this.showTimeout=void 0,this.showHowTo=void 0,this.idFlow={verificationFinished:!1,photoDone:!1,recordingDone:!1,photoFile:null,recordingFile:null},this.baseComponent=new h(a.CiFront),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.captureRetryCount=0,this.showHowTo=!0}captureErrorDone(){this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!1}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}async captureIdImage(i){let t=i.detail;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:t},e()),void(this.showTimeout=!0);try{this.idFlow.photoFile=new File([t],"idImage.png",{type:"image/png"}),await this.uploadPhoto()}catch(i){this.apiErrorEvent.emit(i)}}async verificationFinished(i){this.idFlow.verificationFinished=!0,await this.endFlow()}async capturedIdRecording(i){let t=i.detail;if(0==t.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty ID recording",blobData:t},e()),void(this.showTimeout=!0);let s=t.type==r.mp4MimeType.type?r.mp4MimeType:r.webmMimeType;if(o.flowStatus==n.ID)try{this.idFlow.recordingFile=new File([t],"idVideo."+s.extension,{type:s.type}),await this.uploadRecording()}catch(i){this.apiErrorEvent.emit(i)}}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhoto(){null==this.idFlow.photoFile||this.idFlow.photoDone||(this.idFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFront",this.idFlow.photoFile),this.idFlow.photoDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.switchCamera(),this.showTimeout=!0))}async uploadRecording(){null==this.idFlow.recordingFile||this.idFlow.recordingDone||(this.idFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFrontVideo",this.idFlow.recordingFile),this.idFlow.recordingDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!0))}async endFlow(){this.idFlow.photoDone&&this.idFlow.recordingDone&&this.idFlow.verificationFinished&&(o.flowStatus=n.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let i=o.cameraIds.indexOf(o.cameraId);o.cameraId=i===o.cameraIds.length-1?o.cameraIds[0]:o.cameraIds[i+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let i=s("capture-error",{type:"ID"}),t=s("id-capture",{id:"idFront"}),h=s("how-to-info",{idSide:"front"});return this.showHowTo?h:this.showTimeout?i:t}};l.style="";export{l as id_single_side}