@ekyc_qoobiss/qbs-ect-cmp 3.6.15 → 3.6.16

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.
Files changed (27) hide show
  1. package/dist/cjs/agreement-check_19.cjs.entry.js +305 -698
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  4. package/dist/cjs/random-actions.cjs.entry.js +22 -0
  5. package/dist/cjs/store-ab631a7a.js +415 -0
  6. package/dist/collection/collection-manifest.json +1 -0
  7. package/dist/collection/components/common/random-actions/random-actions.css +0 -0
  8. package/dist/collection/components/common/random-actions/random-actions.js +20 -0
  9. package/dist/collection/components/flow/process-id/process-id.js +3 -0
  10. package/dist/collection/components/flow/user-liveness/user-liveness.js +13 -14
  11. package/dist/esm/agreement-check_19.entry.js +19 -412
  12. package/dist/esm/{index-9d69e511.js → index-5d6f9123.js} +1 -1
  13. package/dist/esm/loader-dots.entry.js +1 -1
  14. package/dist/esm/loader.js +3 -3
  15. package/dist/esm/qbs-ect-cmp.js +3 -3
  16. package/dist/esm/random-actions.entry.js +18 -0
  17. package/dist/esm/store-b5192087.js +399 -0
  18. package/dist/qbs-ect-cmp/{p-a85dd6fc.entry.js → p-094ad8f3.entry.js} +22 -22
  19. package/dist/qbs-ect-cmp/{p-4c8e922b.entry.js → p-7c33dd41.entry.js} +1 -1
  20. package/dist/qbs-ect-cmp/p-927cd530.entry.js +1 -0
  21. package/dist/qbs-ect-cmp/p-a6506178.js +1 -0
  22. package/dist/qbs-ect-cmp/{p-06e42b28.js → p-aacd7024.js} +1 -1
  23. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  24. package/dist/types/components/common/random-actions/random-actions.d.ts +7 -0
  25. package/dist/types/components/flow/user-liveness/user-liveness.d.ts +2 -2
  26. package/dist/types/components.d.ts +13 -0
  27. package/package.json +1 -1
@@ -1 +1 @@
1
- import{r as i,h as a}from"./p-06e42b28.js";const e=class{constructor(a){i(this,a)}render(){return a("i",null)}};e.style="i,i::before,i::after{animation-duration:0.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}body{font-family:sans-serif}i{width:300px;height:75px;margin:auto;display:block;background:no-repeat;background-image:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));background-size:75px 75px;background-position:0%, 50%;position:relative;transform:translateZ(0) scale(0.25);animation-name:slide}i::before,i::after{content:'';width:75px;height:75px;background:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));position:absolute;top:50%;margin-top:-37.5px;animation-name:reveal}i::before{left:1%;animation-delay:40ms}i::after{right:1%;animation-direction:reverse}@keyframes slide{from{background-position:0%, 50%}to{background-position:50%, 100%}}@keyframes reveal{from{transform:scale(0.001)}to{transform:scale(1)}}";export{e as loader_dots}
1
+ import{r as i,h as a}from"./p-aacd7024.js";const e=class{constructor(a){i(this,a)}render(){return a("i",null)}};e.style="i,i::before,i::after{animation-duration:0.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}body{font-family:sans-serif}i{width:300px;height:75px;margin:auto;display:block;background:no-repeat;background-image:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));background-size:75px 75px;background-position:0%, 50%;position:relative;transform:translateZ(0) scale(0.25);animation-name:slide}i::before,i::after{content:'';width:75px;height:75px;background:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));position:absolute;top:50%;margin-top:-37.5px;animation-name:reveal}i::before{left:1%;animation-delay:40ms}i::after{right:1%;animation-direction:reverse}@keyframes slide{from{background-position:0%, 50%}to{background-position:50%, 100%}}@keyframes reveal{from{transform:scale(0.001)}to{transform:scale(1)}}";export{e as loader_dots}
@@ -0,0 +1 @@
1
+ import{r as t,h as s}from"./p-aacd7024.js";import{H as o}from"./p-a6506178.js";const i=class{constructor(s){t(this,s)}componentWillLoad(){}buttonClick(){}render(){return s("div",{class:"container"},s("div",{class:"row"},s("div",{class:"text-center"},s("h1",null,this.topTitle)),s("div",{class:"pos-relative show-bottom"},s("div",{class:"btn-buletin"},s("button",{class:"main-button",onClick:()=>this.buttonClick()},this.buttonText),s("p",{class:"main-text font-size-18 text-right mb-0"},o.FooterText)))))}};i.style="";export{i as random_actions}
@@ -0,0 +1 @@
1
+ import{a as e,f as t}from"./p-aacd7024.js";const a=e=>!("isConnected"in e)||e.isConnected,i=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(a))})(...t)}),2e3)}})(),n=e=>"function"==typeof e?e():e;var s;!function(e){e[e.LANDING=0]="LANDING",e[e.AGREEMENT=1]="AGREEMENT",e[e.PHONE=2]="PHONE",e[e.CODE=3]="CODE",e[e.CODEERROR=4]="CODEERROR",e[e.ID=5]="ID",e[e.LIVENESS=6]="LIVENESS",e[e.COMPLETE=7]="COMPLETE",e[e.ERROREND=8]="ERROREND",e[e.CAMERAERROR=9]="CAMERAERROR",e[e.NONE=10]="NONE"}(s||(s={}));class r{}r.FooterText="Qoobiss eKYC",r.VideoLenght=3100;class c extends r{}c.IdTitile="Prezintă actul tău de identitate",c.IdSubTitileFace="Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",c.IdSubTitileBack="Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",c.IdButton="Sunt gata!",c.SelfieTitile="Validare video",c.SelfieSubTitile="Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.",c.SelfieButton="Sunt gata!";class o extends r{}o.Title="Validarea identității la distanță este o procedură simplă și rapidă",o.Description="Asigură-te că ai:",o.IdInfo="Actul de identitate, în original",o.DeviceInfo="Un telefon mobil sau un calculator cu camera web",o.SmsInfo="Acces la un telefon mobil ce permite primirea de mesaje SMS",o.Warning="ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",o.WarningMd="ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",o.Terms="Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",o.Button="Am înțeles",o.ButtonLeave="Nu sunt pregătit";class d extends r{}d.Title="Este necesar să validăm numărul tău de telefon",d.Description="Introdu mai jos numarul tau de telefon:",d.Button="Trimite SMS de verificare",d.Label="Numarul tau de telefon";class l extends r{}l.Title="Introdu codul de validare primit prin sms:",l.Description=" ",l.Button="Validează",l.Error="Codul introdus nu este valid. Asigură-te că îl introduci corect";class u extends r{}u.Title="Procesul a fost finalizat.",u.Description="Vei fi redirecționat în câteva momente.",u.Message="Îți mulțumim!";class p{}p.FlowStatusKey="qbs-ect-flowstatus",p.RequestIdKey="qbs-ect-requestid",p.TokenKey="qbs-ect-token",p.InitialisedKey="qbs-ect-initialised",p.HasIdBackKey="qbs-ect-has-id-back",p.AgreementValidationKey="qbs-ect-agreement-validation",p.PhoneValidationKey="qbs-ect-phone-validation",p.RefreshDoneKey="qbs-ect-refresh-done";class m extends r{}m.Button="Încerc din nou",m.Title="Încadrează actul de identitate în chenarul de pe ecran.",m.TitleBack="Încadrează spatele actului de identitate în chenarul de pe ecran.",m.TtileRotate="Întoarce actul de identitate.",m.ErrorTitleR1="Nu am putut colecta informațiile din actul de identitate!",m.ErrorTitleR2="Te rugăm să mai încerci o dată!",m.ErrorR1="Încadrează actul de identitate în așa fel încât chenarul să se potrivească perfect pe colțurile actului de identitate. Trebuie să fie vizibilă întreaga suprafață a actului de identitate. ",m.ErrorR2="Ai grijă să te afli într-o zonă cu suficientă lumină și să nu acoperi părți ale actului de identitate cu degetele. Ai grijă de asemenea să nu se formeze reflexii de lumină pe suprafața acestuia.",m.IDPoseMapping={0:"",1:"Înclină actul de identitate spre spate.",2:"",3:"",4:""},m.IDPoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4"},m.Loading="Transferăm datele. Asteptați...";class f extends r{}f.Title="Încadrează fața în chenarul de pe ecran.",f.FinalTitle="Îndreaptă capul și încadrează fața în chenarul de pe ecran.",f.ErrorTitleR1="Procesul a eșuat!",f.ErrorTitleR2="Te rugăm să mai încerci o dată!",f.ErrorR1="Încadrează fața în așa fel încât chenarul să se suprapună peste linia bărbiei și a frunții, exact așa cum vezi în animația de pe ecran. ",f.ErrorR2="Rămâi cu fața încadrată în chenar și execută gestul solicitat după ce animația cu explicația a dispărut de pe ecran.",f.Loading="Transferăm datele. Asteptați...",f.FacePoseMapping={0:"Întoarce capul spre stânga.",1:"Întoarce capul spre dreapta.",2:"Înclină capul spre spate.",3:"Înclină capul în față.",4:""},f.FacePoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4"};class b extends r{}b.Title="Pentru începerea identificării avem nevoie de acordurile tale:",b.Button="Încep identificarea",b.Terms="Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",b.Agreement="Îmi exprim acordul pentru prelucrarea datelor cu caracter personal";class h extends r{}h.ButtonYes="Sunt de acord",h.ButtonNo="Nu sunt de acord";class g{constructor(){this.uriEnv="/",this.uriEnv="QA"==S.environment?"/dev_":"/",this.OtpSend=this.uriEnv+"validation/otp/send",this.OtpCheck=this.uriEnv+"validation/otp/check",this.IdentityInsert=this.uriEnv+"validation/identity/insert",this.UploadCapture=this.uriEnv+"validation/upload/capture",this.GetAgreement=this.uriEnv+"validation/agreement/content",this.GenerateAgreement=this.uriEnv+"validation/agreement/generate",this.SendLink=this.uriEnv+"validation/otp/sendlink",this.GetStatus=this.uriEnv+"validation/identity/status",this.AddLog=this.uriEnv+"validation/logs/add",this.AddStep=this.uriEnv+"validation/logs/step",this.AbortRequest=this.uriEnv+"validation/identity/abort"}}class w extends r{}w.InfoTop="Pentru a continua scanați codul de mai jos cu un smartphone.",w.InfoBottom="Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",w.Validation="Număr de telefon invalid!",w.InfoWaiting="Așteptăm finalizarea procesului pe smartphone.",w.InfoAborted="Procesului de pe smartphone a fost amanat.";class v extends r{}v.Title="Procesul de indetificare nu poate continua.",v.Description="Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.",v.Button="Reincep procesul",v.HowToLink="https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4";const{state:S,onChange:k}=(()=>{const a=((e,t=((e,t)=>e!==t))=>{const a=n(e);let i=new Map(Object.entries(null!=a?a:{}));const s={dispose:[],get:[],set:[],reset:[]},r=()=>{var t;i=new Map(Object.entries(null!==(t=n(e))&&void 0!==t?t:{})),s.reset.forEach((e=>e()))},c=e=>(s.get.forEach((t=>t(e))),i.get(e)),o=(e,a)=>{const n=i.get(e);t(a,n,e)&&(i.set(e,a),s.set.forEach((t=>t(e,a,n))))},d="undefined"==typeof Proxy?{}:new Proxy(a,{get:(e,t)=>c(t),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>i.has(t),set:(e,t,a)=>(o(t,a),!0)}),l=(e,t)=>(s[e].push(t),()=>{((e,t)=>{const a=e.indexOf(t);a>=0&&(e[a]=e[e.length-1],e.length--)})(s[e],t)});return{state:d,get:c,set:o,on:l,onChange:(t,a)=>{const i=l("set",((e,i)=>{e===t&&a(i)})),s=l("reset",(()=>a(n(e)[t])));return()=>{i(),s()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(l("set",t.set)),t.get&&e.push(l("get",t.get)),t.reset&&e.push(l("reset",t.reset)),t.dispose&&e.push(l("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{s.dispose.forEach((e=>e())),r()},reset:r,forceUpdate:e=>{const t=i.get(e);s.set.forEach((a=>a(e,t,t)))}}})({flowStatus:s.NONE,environment:"PROD",debug:!1,requestId:"",redirectId:"",initialised:!1,token:"",cameraIds:[],cameraId:"",hasIdBack:!1,hasSelfieGesture:!1,hasIdTilt:!1,agreementsValidation:!0,phoneValidation:!0,phoneNumber:"",apiBaseUrl:"https://apiro.id-kyc.com",device:null,recordingRetryCount:0},void 0);return a.use((()=>{if("function"!=typeof e)return{};const a=new Map;return{dispose:()=>a.clear(),get:t=>{const i=e();i&&((e,t,a)=>{const i=e.get(t);i?i.includes(a)||i.push(a):e.set(t,[a])})(a,t,i)},set:e=>{const n=a.get(e);n&&a.set(e,n.filter(t)),i(a)},reset:()=>{a.forEach((e=>e.forEach(t))),i(a)}}})()),a})();k("environment",(e=>{S.debug="QA"==e})),k("flowStatus",(e=>{sessionStorage.setItem(p.FlowStatusKey,s[e])})),k("token",(e=>{sessionStorage.setItem(p.TokenKey,e)})),k("requestId",(e=>{sessionStorage.setItem(p.RequestIdKey,e)})),k("initialised",(e=>{sessionStorage.setItem(p.InitialisedKey,String(e))})),k("hasIdBack",(e=>{sessionStorage.setItem(p.HasIdBackKey,String(e))})),k("agreementsValidation",(e=>{sessionStorage.setItem(p.AgreementValidationKey,String(e))})),k("phoneValidation",(e=>{sessionStorage.setItem(p.PhoneValidationKey,String(e))}));export{g as A,v as C,s as F,r as G,c as H,m as I,o as L,w as M,d as P,p as S,h as a,b,f as c,u as d,l as e,S as s}
@@ -1,2 +1,2 @@
1
1
  let n,e,t=null,l=!1;const o={},s=n=>"object"==(n=typeof n)||"function"===n;function c(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,e,...t)=>{let l=null,o=!1,c=!1;const i=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&c?i[i.length-1].t+=l:i.push(o?r(null,l):l),c=o)};if(u(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=r(n,null);return a.l=e,i.length>0&&(a.o=i),a},r=(n,e)=>({i:0,u:n,t:e,m:null,o:null,l:null}),u={},a=n=>z(n).p,f=(n,e,t)=>{const l=a(n);return{emit:n=>d(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},d=(n,e,t)=>{const l=nn.ce(e,t);return n.dispatchEvent(l),l},m=new WeakMap,p=n=>"sc-"+n.h,h=(n,e,t,l,o,c)=>{if(t!==l){let i=I(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=$(t),s=$(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===e){for(const e in t)l&&null!=l[e]||(e.includes("-")?n.style.removeProperty(e):n.style[e]="");for(const e in l)t&&l[e]===t[e]||(e.includes("-")?n.style.setProperty(e,l[e]):n.style[e]=l[e])}else if("ref"===e)l&&l(n);else if(i||"o"!==e[0]||"n"!==e[1]){const r=s(l);if((i||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!i||4&c||o)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):I(Y,r)?r.slice(2):r[2]+e.slice(3),t&&nn.rel(n,e,t,!1),l&&nn.ael(n,e,l,!1)}},y=/\s/,$=n=>n?n.split(y):[],b=(n,e,t,l)=>{const s=11===e.m.nodeType&&e.m.host?e.m.host:e.m,c=n&&n.l||o,i=e.l||o;for(l in c)l in i||h(s,l,c[l],void 0,t,e.i);for(l in i)h(s,l,c[l],i[l],t,e.i)},w=(e,t,l)=>{const o=t.o[l];let s,c,i=0;if(null!==o.t)s=o.m=Z.createTextNode(o.t);else if(s=o.m=Z.createElement(o.u),b(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(i=0;i<o.o.length;++i)c=w(e,o,i),c&&s.appendChild(c);return s},v=(n,t,l,o,s,c)=>{let i,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=w(null,l,s),i&&(o[s].m=i,r.insertBefore(i,t)))},S=(n,e,t,l,o)=>{for(;e<=t;++e)(l=n[e])&&(o=l.m,M(l),o.remove())},g=(n,e)=>n.u===e.u,j=(n,e)=>{const t=e.m=n.m,l=n.o,o=e.o,s=e.t;null===s?(b(n,e,!1),null!==l&&null!==o?((n,e,t,l)=>{let o,s=0,c=0,i=e.length-1,r=e[0],u=e[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=e[++s]:null==u?u=e[--i]:null==f?f=l[++c]:null==d?d=l[--a]:g(r,f)?(j(r,f),r=e[++s],f=l[++c]):g(u,d)?(j(u,d),u=e[--i],d=l[--a]):g(r,d)?(j(r,d),n.insertBefore(r.m,u.m.nextSibling),r=e[++s],d=l[--a]):g(u,f)?(j(u,f),n.insertBefore(u.m,r.m),u=e[--i],f=l[++c]):(o=w(e&&e[c],t,c),f=l[++c],o&&r.m.parentNode.insertBefore(o,r.m));s>i?v(n,null==l[a+1]?null:l[a+1].m,t,l,c,a):c>a&&S(e,s,i)})(t,l,e,o):null!==o?(null!==n.t&&(t.textContent=""),v(t,null,e,o,0,o.length-1)):null!==l&&S(l,0,l.length-1)):n.t!==s&&(t.data=s)},M=n=>{n.l&&n.l.ref&&n.l.ref(null),n.o&&n.o.map(M)},k=(n,e)=>{e&&!n.$&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.$=e)))},C=(n,e)=>{if(n.i|=16,!(4&n.i))return k(n,n.v),an((()=>O(n,e)));n.i|=512},O=(n,e)=>{const t=n.S;let l;return e&&(n.i|=256,n.g&&(n.g.map((([n,e])=>R(t,n,e))),n.g=null),l=R(t,"componentWillLoad")),l=T(l,(()=>R(t,"componentWillRender"))),T(l,(()=>L(n,t,e)))},L=async(n,e,t)=>{const l=n.p,o=l["s-rc"];t&&(n=>{const e=n.j,t=n.p,l=e.i,o=((n,e)=>{var t;let l=p(e);const o=X.get(l);if(n=11===n.nodeType?n:Z,o)if("string"==typeof o){let e,s=m.get(n=n.head||n);if(s||m.set(n,s=new Set),!s.has(l)){{e=Z.createElement("style"),e.innerHTML=o;const l=null!==(t=nn.M)&&void 0!==t?t:c(Z);null!=l&&e.setAttribute("nonce",l),n.insertBefore(e,n.querySelector("link"))}s&&s.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(n);P(n,e),o&&(o.map((n=>n())),l["s-rc"]=void 0);{const e=l["s-p"],t=()=>x(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},P=(l,o)=>{try{t=o,o=o.render(),l.i&=-17,l.i|=2,((t,l)=>{const o=t.p,s=t.j,c=t.k||r(null,null),a=(n=>n&&n.u===u)(l)?l:i(null,null,l);e=o.tagName,s.C&&(a.l=a.l||{},s.C.map((([n,e])=>a.l[e]=o[n]))),a.u=null,a.i|=4,t.k=a,a.m=c.m=o.shadowRoot||o,n=o["s-sc"],j(c,a)})(l,o)}catch(n){J(n,l.p)}return t=null,null},W=()=>t,x=n=>{const e=n.p,t=n.S,l=n.v;64&n.i||(n.i|=64,q(e),R(t,"componentDidLoad"),n.O(e),l||N()),n.$&&(n.$(),n.$=void 0),512&n.i&&un((()=>C(n,!1))),n.i&=-517},E=n=>{{const e=z(n),t=e.p.isConnected;return t&&2==(18&e.i)&&C(e,!1),t}},N=()=>{q(Z.documentElement),un((()=>d(Y,"appload",{detail:{namespace:"qbs-ect-cmp"}})))},R=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){J(n)}},T=(n,e)=>n&&n.then?n.then(e):e(),q=n=>n.classList.add("hydrated"),A=(n,e,t)=>{if(e.L){n.watchers&&(e.P=n.watchers);const l=Object.entries(e.L),o=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,n,{get(){return((n,e)=>z(this).W.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=z(n),c=o.p,i=o.W.get(e),r=o.i,u=o.S;if(t=((n,e)=>null==n||s(n)?n:2&e?parseFloat(n):1&e?n+"":n)(t,l.L[e][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.W.set(e,t),u)){if(l.P&&128&r){const n=l.P[e];n&&n.map((n=>{try{u[n](t,i,e)}catch(n){J(n,c)}}))}2==(18&r)&&C(o,!1)}})(this,n,t,e)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(n,e,l){nn.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(o.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,e])=>15&e[0])).map((([n,l])=>{const o=l[1]||n;return t.set(o,n),512&l[0]&&e.C.push([n,o]),o}))}}return n},F=(n,e={})=>{var t;const l=[],o=e.exclude||[],s=Y.customElements,i=Z.head,r=i.querySelector("meta[charset]"),u=Z.createElement("style"),a=[];let f,d=!0;Object.assign(nn,e),nn.N=new URL(e.resourcesUrl||"./",Z.baseURI).href,n.map((n=>{n[1].map((e=>{const t={i:e[0],h:e[1],L:e[2],R:e[3]};t.L=e[2],t.R=e[3],t.C=[],t.P={};const c=t.h,i=class extends HTMLElement{constructor(n){super(n),G(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):nn.jmp((()=>(n=>{if(0==(1&nn.i)){const e=z(n),t=e.j,l=()=>{};if(1&e.i)U(n,e,t.R);else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){k(e,e.v=t);break}}t.L&&Object.entries(t.L).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t,l,o)=>{if(0==(32&e.i)){{if(e.i|=32,(o=Q(t)).then){const n=()=>{};o=await o,n()}o.isProxied||(t.P=o.watchers,A(o,t,2),o.isProxied=!0);const n=()=>{};e.i|=8;try{new o(e)}catch(n){J(n)}e.i&=-9,e.i|=128,n()}if(o.style){let n=o.style;const e=p(t);if(!X.has(e)){const l=()=>{};((n,e,t)=>{let l=X.get(n);tn&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,X.set(n,l)})(e,n,!!(1&t.i)),l()}}}const s=e.v,c=()=>C(e,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,e,t)}l()}})(this)))}disconnectedCallback(){nn.jmp((()=>(()=>{if(0==(1&nn.i)){const n=z(this),e=n.S;n.T&&(n.T.map((n=>n())),n.T=void 0),R(e,"disconnectedCallback")}})()))}componentOnReady(){return z(this).q}};t.A=n[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,A(i,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(t=nn.M)&&void 0!==t?t:c(Z);null!=n&&u.setAttribute("nonce",n),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((n=>n.connectedCallback())):nn.jmp((()=>f=setTimeout(N,30)))},U=(n,e,t)=>{t&&t.map((([t,l,o])=>{const s=n,c=D(e,o),i=H(t);nn.ael(s,l,c,i),(e.T=e.T||[]).push((()=>nn.rel(s,l,c,i)))}))},D=(n,e)=>t=>{try{256&n.i?n.S[e](t):(n.g=n.g||[]).push([e,t])}catch(n){J(n)}},H=n=>0!=(2&n),V=n=>nn.M=n,_=new WeakMap,z=n=>_.get(n),B=(n,e)=>_.set(e.S=n,e),G=(n,e)=>{const t={i:0,p:n,j:e,W:new Map};return t.q=new Promise((n=>t.O=n)),n["s-p"]=[],n["s-rc"]=[],U(n,t,e.R),_.set(n,t)},I=(n,e)=>e in n,J=(n,e)=>(0,console.error)(n,e),K=new Map,Q=n=>{const e=n.h.replace(/-/g,"_"),t=n.A,l=K.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(K.set(t,n),n[e])),J)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},X=new Map,Y="undefined"!=typeof window?window:{},Z=Y.document||{head:{}},nn={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},en=n=>Promise.resolve(n),tn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),ln=[],on=[],sn=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&nn.i?un(rn):nn.raf(rn))},cn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){J(n)}n.length=0},rn=()=>{cn(ln),cn(on),(l=ln.length>0)&&nn.raf(rn)},un=n=>en().then(n),an=sn(on,!0);export{a,F as b,f as c,E as f,W as g,i as h,en as p,B as r,V as s}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},X=new Map,Y="undefined"!=typeof window?window:{},Z=Y.document||{head:{}},nn={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},en=n=>Promise.resolve(n),tn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),ln=[],on=[],sn=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&nn.i?un(rn):nn.raf(rn))},cn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){J(n)}n.length=0},rn=()=>{cn(ln),cn(on),(l=ln.length>0)&&nn.raf(rn)},un=n=>en().then(n),an=sn(on,!0);export{W as a,F as b,f as c,E as f,a as g,i as h,en as p,B as r,V as s}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-4c8e922b",[[1,"loader-dots"]]],["p-a85dd6fc",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"process-id",{captureStep:[32],showTimeout:[32],showInvalid:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{showError:[32],captureStep:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{title:[32],description:[32],buttonDisabled:[32],demoVideo:[32]}],[0,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{warningText:[32],buttonDisabled:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32],prefilledPhone:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32],prefilledPhone:[32],canSend:[32]}],[0,"id-back-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32]}],[0,"capture-error",{type:[1],buttonEnabled:[32],buttonText:[32]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32],buttonEnabled:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
1
+ import{p as e,b as t}from"./p-aacd7024.js";export{s as setNonce}from"./p-aacd7024.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-7c33dd41",[[1,"loader-dots"]]],["p-927cd530",[[0,"random-actions"]]],["p-094ad8f3",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"process-id",{captureStep:[32],showTimeout:[32],showInvalid:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{showError:[32],captureStep:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{title:[32],description:[32],buttonDisabled:[32],demoVideo:[32]}],[0,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{warningText:[32],buttonDisabled:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32],prefilledPhone:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32],prefilledPhone:[32],canSend:[32]}],[0,"id-back-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32]}],[0,"capture-error",{type:[1],buttonEnabled:[32],buttonText:[32]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32],buttonEnabled:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
@@ -0,0 +1,7 @@
1
+ export declare class RandomActions {
2
+ private topTitle;
3
+ private buttonText;
4
+ componentWillLoad(): void;
5
+ buttonClick(): void;
6
+ render(): any;
7
+ }
@@ -16,8 +16,8 @@ export declare class UserLiveness {
16
16
  capturedSelfieRecording(event: any): Promise<void>;
17
17
  verificationFinished(_event: any): Promise<void>;
18
18
  disconnectedCallback(): Promise<void>;
19
- uploadPhoto(photoFile: File): Promise<void>;
20
- uploadRecording(uploadRec: File): Promise<boolean>;
19
+ uploadPhoto(photoFile: File, photoType: string): Promise<void>;
20
+ uploadRecording(uploadRec: File, recType: string): Promise<boolean>;
21
21
  private triggerErrorFlow;
22
22
  endFlow(): Promise<void>;
23
23
  render(): any;
@@ -52,6 +52,8 @@ export namespace Components {
52
52
  }
53
53
  interface ProcessId {
54
54
  }
55
+ interface RandomActions {
56
+ }
55
57
  interface SelfieCapture {
56
58
  }
57
59
  interface SelfieTilt {
@@ -226,6 +228,12 @@ declare global {
226
228
  prototype: HTMLProcessIdElement;
227
229
  new (): HTMLProcessIdElement;
228
230
  };
231
+ interface HTMLRandomActionsElement extends Components.RandomActions, HTMLStencilElement {
232
+ }
233
+ var HTMLRandomActionsElement: {
234
+ prototype: HTMLRandomActionsElement;
235
+ new (): HTMLRandomActionsElement;
236
+ };
229
237
  interface HTMLSelfieCaptureElement extends Components.SelfieCapture, HTMLStencilElement {
230
238
  }
231
239
  var HTMLSelfieCaptureElement: {
@@ -267,6 +275,7 @@ declare global {
267
275
  "loader-dots": HTMLLoaderDotsElement;
268
276
  "mobile-redirect": HTMLMobileRedirectElement;
269
277
  "process-id": HTMLProcessIdElement;
278
+ "random-actions": HTMLRandomActionsElement;
270
279
  "selfie-capture": HTMLSelfieCaptureElement;
271
280
  "selfie-tilt": HTMLSelfieTiltElement;
272
281
  "sms-code-validation": HTMLSmsCodeValidationElement;
@@ -346,6 +355,8 @@ declare namespace LocalJSX {
346
355
  interface ProcessId {
347
356
  "onApiError"?: (event: ProcessIdCustomEvent<any>) => void;
348
357
  }
358
+ interface RandomActions {
359
+ }
349
360
  interface SelfieCapture {
350
361
  "onApiError"?: (event: SelfieCaptureCustomEvent<any>) => void;
351
362
  "onPhotoSelfieCapture"?: (event: SelfieCaptureCustomEvent<any>) => void;
@@ -377,6 +388,7 @@ declare namespace LocalJSX {
377
388
  "loader-dots": LoaderDots;
378
389
  "mobile-redirect": MobileRedirect;
379
390
  "process-id": ProcessId;
391
+ "random-actions": RandomActions;
380
392
  "selfie-capture": SelfieCapture;
381
393
  "selfie-tilt": SelfieTilt;
382
394
  "sms-code-validation": SmsCodeValidation;
@@ -403,6 +415,7 @@ declare module "@stencil/core" {
403
415
  "loader-dots": LocalJSX.LoaderDots & JSXBase.HTMLAttributes<HTMLLoaderDotsElement>;
404
416
  "mobile-redirect": LocalJSX.MobileRedirect & JSXBase.HTMLAttributes<HTMLMobileRedirectElement>;
405
417
  "process-id": LocalJSX.ProcessId & JSXBase.HTMLAttributes<HTMLProcessIdElement>;
418
+ "random-actions": LocalJSX.RandomActions & JSXBase.HTMLAttributes<HTMLRandomActionsElement>;
406
419
  "selfie-capture": LocalJSX.SelfieCapture & JSXBase.HTMLAttributes<HTMLSelfieCaptureElement>;
407
420
  "selfie-tilt": LocalJSX.SelfieTilt & JSXBase.HTMLAttributes<HTMLSelfieTiltElement>;
408
421
  "sms-code-validation": LocalJSX.SmsCodeValidation & JSXBase.HTMLAttributes<HTMLSmsCodeValidationElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekyc_qoobiss/qbs-ect-cmp",
3
- "version": "3.6.15",
3
+ "version": "3.6.16",
4
4
  "description": "Person Identification Component",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",