@ekyc_qoobiss/qbs-ect-cmp 1.5.11
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.
- package/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/assets/animations/face/LookDown.gif +0 -0
- package/dist/assets/animations/face/LookLeft.gif +0 -0
- package/dist/assets/animations/face/LookRight.gif +0 -0
- package/dist/assets/animations/face/LookUp.gif +0 -0
- package/dist/assets/animations/face/TiltLeft.gif +0 -0
- package/dist/assets/animations/face/TiltRight.gif +0 -0
- package/dist/assets/animations/face/general.gif +0 -0
- package/dist/assets/animations/id/present-id.gif +0 -0
- package/dist/assets/animations/id/straighten-id.gif +0 -0
- package/dist/assets/animations/id/tilt-id.gif +0 -0
- package/dist/assets/buletin/metadata.json +1 -0
- package/dist/assets/buletin/model.json +1 -0
- package/dist/assets/buletin/weights.bin +0 -0
- package/dist/assets/buletin-v2/metadata.json +1 -0
- package/dist/assets/buletin-v2/model.json +1 -0
- package/dist/assets/buletin-v2/weights.bin +0 -0
- package/dist/assets/canvas-masks/face_green.svg +8 -0
- package/dist/assets/canvas-masks/face_white.svg +8 -0
- package/dist/assets/canvas-masks/id_green.svg +6 -0
- package/dist/assets/canvas-masks/id_white.svg +6 -0
- package/dist/assets/capture-error/idError.png +0 -0
- package/dist/assets/capture-error/idError.svg +8 -0
- package/dist/assets/capture-error/selfieError.png +0 -0
- package/dist/assets/capture-error/selfieError.svg +11 -0
- package/dist/assets/complete.svg +4 -0
- package/dist/assets/howtos/circle.svg +11 -0
- package/dist/assets/howtos/idscan.svg +293 -0
- package/dist/assets/howtos/liveness.svg +97 -0
- package/dist/assets/landing/device.svg +14 -0
- package/dist/assets/landing/id.svg +3 -0
- package/dist/assets/landing/info.svg +3 -0
- package/dist/assets/landing/validation.svg +16 -0
- package/dist/cjs/agreement-check_12.cjs.entry.js +6143 -0
- package/dist/cjs/index-9ebcada7.js +1487 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader-dots.cjs.entry.js +19 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/qbs-ect-cmp.cjs.js +19 -0
- package/dist/collection/assets/canvas-masks/face_green.svg +8 -0
- package/dist/collection/assets/canvas-masks/face_white.svg +8 -0
- package/dist/collection/assets/canvas-masks/id_green.svg +6 -0
- package/dist/collection/assets/canvas-masks/id_white.svg +6 -0
- package/dist/collection/assets/capture-error/idError.svg +8 -0
- package/dist/collection/assets/capture-error/selfieError.svg +11 -0
- package/dist/collection/assets/complete.svg +4 -0
- package/dist/collection/assets/howtos/circle.svg +11 -0
- package/dist/collection/assets/howtos/idscan.svg +293 -0
- package/dist/collection/assets/howtos/liveness.svg +97 -0
- package/dist/collection/assets/landing/device.svg +14 -0
- package/dist/collection/assets/landing/id.svg +3 -0
- package/dist/collection/assets/landing/info.svg +3 -0
- package/dist/collection/assets/landing/validation.svg +16 -0
- package/dist/collection/collection-manifest.json +24 -0
- package/dist/collection/components/agreement-check/agreement-check.css +0 -0
- package/dist/collection/components/agreement-check/agreement-check.js +75 -0
- package/dist/collection/components/agreement-info/agreement-info.css +0 -0
- package/dist/collection/components/agreement-info/agreement-info.js +72 -0
- package/dist/collection/components/capture-error/capture-error.css +0 -0
- package/dist/collection/components/capture-error/capture-error.js +107 -0
- package/dist/collection/components/controls/camera/camera.css +43 -0
- package/dist/collection/components/controls/camera/camera.js +306 -0
- package/dist/collection/components/controls/loader-dots/loader-dots.css +61 -0
- package/dist/collection/components/controls/loader-dots/loader-dots.js +18 -0
- package/dist/collection/components/end-redirect/end-redirect.css +128 -0
- package/dist/collection/components/end-redirect/end-redirect.js +25 -0
- package/dist/collection/components/how-to-info/how-to-info.css +0 -0
- package/dist/collection/components/how-to-info/how-to-info.js +105 -0
- package/dist/collection/components/id-back-capture/id-back-capture.css +35 -0
- package/dist/collection/components/id-back-capture/id-back-capture.js +201 -0
- package/dist/collection/components/id-capture/id-capture.css +35 -0
- package/dist/collection/components/id-capture/id-capture.js +201 -0
- package/dist/collection/components/identification-component/identification-component.css +999 -0
- package/dist/collection/components/identification-component/identification-component.js +397 -0
- package/dist/collection/components/landing-validation/landing-validation.css +0 -0
- package/dist/collection/components/landing-validation/landing-validation.js +78 -0
- package/dist/collection/components/selfie-capture/selfie-capture.css +22 -0
- package/dist/collection/components/selfie-capture/selfie-capture.js +198 -0
- package/dist/collection/components/sms-code-validation/sms-code-validation.css +0 -0
- package/dist/collection/components/sms-code-validation/sms-code-validation.js +91 -0
- package/dist/collection/global.js +0 -0
- package/dist/collection/helpers/ApiCall.js +153 -0
- package/dist/collection/helpers/Cameras.js +98 -0
- package/dist/collection/helpers/Events.js +79 -0
- package/dist/collection/helpers/ML5.js +20 -0
- package/dist/collection/helpers/Stream.js +223 -0
- package/dist/collection/helpers/canvas.js +10 -0
- package/dist/collection/helpers/index.js +54 -0
- package/dist/collection/helpers/security.js +25 -0
- package/dist/collection/helpers/store.js +15 -0
- package/dist/collection/helpers/textValues.js +82 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +206 -0
- package/dist/collection/libs/FaceML5Detector/FacePose.js +84 -0
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +110 -0
- package/dist/collection/libs/IDML5Detector/IDPose.js +5 -0
- package/dist/collection/models/ICamera.js +1 -0
- package/dist/collection/models/IConstraints.js +1 -0
- package/dist/collection/models/IDevice.js +1 -0
- package/dist/collection/utils/utils.js +10 -0
- package/dist/esm/agreement-check_12.entry.js +6128 -0
- package/dist/esm/index-3fe6775c.js +1457 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader-dots.entry.js +15 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/qbs-ect-cmp.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +12 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/qbs-ect-cmp/index.esm.js +0 -0
- package/dist/qbs-ect-cmp/p-3ef0bad2.entry.js +1373 -0
- package/dist/qbs-ect-cmp/p-3fa495e4.js +2 -0
- package/dist/qbs-ect-cmp/p-a69bb428.entry.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.css +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -0
- package/dist/types/components/agreement-check/agreement-check.d.ts +11 -0
- package/dist/types/components/agreement-info/agreement-info.d.ts +13 -0
- package/dist/types/components/capture-error/capture-error.d.ts +11 -0
- package/dist/types/components/controls/camera/camera.d.ts +33 -0
- package/dist/types/components/controls/loader-dots/loader-dots.d.ts +3 -0
- package/dist/types/components/end-redirect/end-redirect.d.ts +4 -0
- package/dist/types/components/how-to-info/how-to-info.d.ts +13 -0
- package/dist/types/components/id-back-capture/id-back-capture.d.ts +26 -0
- package/dist/types/components/id-capture/id-capture.d.ts +26 -0
- package/dist/types/components/identification-component/identification-component.d.ts +31 -0
- package/dist/types/components/landing-validation/landing-validation.d.ts +11 -0
- package/dist/types/components/selfie-capture/selfie-capture.d.ts +26 -0
- package/dist/types/components/sms-code-validation/sms-code-validation.d.ts +14 -0
- package/dist/types/components.d.ts +262 -0
- package/dist/types/global.d.ts +0 -0
- package/dist/types/helpers/ApiCall.d.ts +12 -0
- package/dist/types/helpers/Cameras.d.ts +8 -0
- package/dist/types/helpers/Events.d.ts +12 -0
- package/dist/types/helpers/ML5.d.ts +8 -0
- package/dist/types/helpers/Stream.d.ts +58 -0
- package/dist/types/helpers/canvas.d.ts +2 -0
- package/dist/types/helpers/index.d.ts +4 -0
- package/dist/types/helpers/security.d.ts +4 -0
- package/dist/types/helpers/store.d.ts +10 -0
- package/dist/types/helpers/textValues.d.ts +78 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/libs/FaceML5Detector/FaceML5Detector.d.ts +43 -0
- package/dist/types/libs/FaceML5Detector/FacePose.d.ts +37 -0
- package/dist/types/libs/IDML5Detector/IDML5Detector.d.ts +22 -0
- package/dist/types/libs/IDML5Detector/IDPose.d.ts +4 -0
- package/dist/types/models/ICamera.d.ts +10 -0
- package/dist/types/models/IConstraints.d.ts +21 -0
- package/dist/types/models/IDevice.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +51 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,t,n=null,l=!1;const s=e=>{const t=new URL(e,Z.t);return t.origin!==X.location.origin?t.href:t.pathname},o={},c=e=>"object"==(e=typeof e)||"function"===e,r=(e,t,...n)=>{let l=null,s=!1,o=!1;const r=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!c(l))&&(l+=""),s&&o?r[r.length-1].l+=l:r.push(s?i(null,l):l),o=s)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=i(e,null);return a.o=t,r.length>0&&(a.i=r),a},i=(e,t)=>({u:0,h:e,l:t,p:null,i:null,o:null}),u={},a=e=>_(e).m,f=(e,t,n)=>{const l=a(e);return{emit:e=>d(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},d=(e,t,n)=>{const l=Z.ce(t,n);return e.dispatchEvent(l),l},h=new WeakMap,p=e=>"sc-"+e.$,y=(e,t,n,l,s,o)=>{if(n!==l){let r=G(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,s=$(n),o=$(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const i=c(l);if((r||i&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&o||s)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):G(X,i)?i.slice(2):i[2]+t.slice(3),n&&Z.rel(e,t,n,!1),l&&Z.ael(e,t,l,!1)}},m=/\s/,$=e=>e?e.split(m):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,c=e&&e.o||o,r=t.o||o;for(l in c)l in r||y(s,l,c[l],void 0,n,t.u);for(l in r)y(s,l,c[l],r[l],n,t.u)},w=(t,n,l)=>{const s=n.i[l];let o,c,r=0;if(null!==s.l)o=s.p=Y.createTextNode(s.l);else if(o=s.p=Y.createElement(s.h),b(null,s,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.i)for(r=0;r<s.i.length;++r)c=w(t,s,r),c&&o.appendChild(c);return o},S=(e,n,l,s,o,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=w(null,l,o),r&&(s[o].p=r,i.insertBefore(r,n)))},g=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.p,M(l),s.remove())},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.p=e.p,l=e.i,s=t.i,o=t.l;null===o?(b(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,c=0,r=t.length-1,i=t[0],u=t[r],a=l.length-1,f=l[0],d=l[a];for(;o<=r&&c<=a;)null==i?i=t[++o]:null==u?u=t[--r]:null==f?f=l[++c]:null==d?d=l[--a]:j(i,f)?(v(i,f),i=t[++o],f=l[++c]):j(u,d)?(v(u,d),u=t[--r],d=l[--a]):j(i,d)?(v(i,d),e.insertBefore(i.p,u.p.nextSibling),i=t[++o],d=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.p,i.p),u=t[--r],f=l[++c]):(s=w(t&&t[c],n,c),f=l[++c],s&&i.p.parentNode.insertBefore(s,i.p));o>r?S(e,null==l[a+1]?null:l[a+1].p,n,l,c,a):c>a&&g(t,o,r)})(n,l,t,s):null!==s?(null!==e.l&&(n.textContent=""),S(n,null,t,s,0,s.length-1)):null!==l&&g(l,0,l.length-1)):e.l!==o&&(n.data=o)},M=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(M)},k=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},C=(e,t)=>{if(e.u|=16,!(4&e.u))return k(e,e.g),ie((()=>O(e,t)));e.u|=512},O=(e,t)=>{const n=e.j;let l;return t&&(e.u|=256,e.v&&(e.v.map((([e,t])=>N(n,e,t))),e.v=null),l=N(n,"componentWillLoad")),l=T(l,(()=>N(n,"componentWillRender"))),T(l,(()=>L(e,n,t)))},L=async(e,t,n)=>{const l=e.m,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.m,l=t.u,s=((e,t)=>{let n=p(t);const l=Q.get(n);if(e=11===e.nodeType?e:Y,l)if("string"==typeof l){let t,s=h.get(e=e.head||e);s||h.set(e,s=new Set),s.has(n)||(t=Y.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);P(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>W(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},P=(l,s)=>{try{n=s,s=s.render(),l.u&=-17,l.u|=2,((n,l)=>{const s=n.m,o=n.M,c=n.k||i(null,null),a=(e=>e&&e.h===u)(l)?l:r(null,null,l);t=s.tagName,o.C&&(a.o=a.o||{},o.C.map((([e,t])=>a.o[t]=s[e]))),a.h=null,a.u|=4,n.k=a,a.p=c.p=s.shadowRoot||s,e=s["s-sc"],v(c,a)})(l,s)}catch(e){I(e,l.m)}return n=null,null},R=()=>n,W=e=>{const t=e.m,n=e.j,l=e.g;64&e.u||(e.u|=64,U(t),N(n,"componentDidLoad"),e.O(t),l||E()),e.S&&(e.S(),e.S=void 0),512&e.u&&re((()=>C(e,!1))),e.u&=-517},x=e=>{{const t=_(e),n=t.m.isConnected;return n&&2==(18&t.u)&&C(t,!1),n}},E=()=>{U(Y.documentElement),re((()=>d(X,"appload",{detail:{namespace:"qbs-ect-cmp"}})))},N=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},T=(e,t)=>e&&e.then?e.then(t):t(),U=e=>e.classList.add("hydrated"),q=(e,t,n)=>{if(t.L){e.watchers&&(t.P=e.watchers);const l=Object.entries(t.L),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).R.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.m,r=s.R.get(t),i=s.u,u=s.j;if(n=((e,t)=>null==e||c(e)?e:2&t?parseFloat(e):1&t?e+"":e)(n,l.L[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(s.R.set(t,n),u)){if(l.P&&128&i){const e=l.P[t];e&&e.map((e=>{try{u[e](n,r,t)}catch(e){I(e,o)}}))}2==(18&i)&&C(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){Z.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.C.push([e,s]),s}))}}return e},A=(e,t={})=>{const n=[],l=t.exclude||[],s=X.customElements,o=Y.head,c=o.querySelector("meta[charset]"),r=Y.createElement("style"),i=[];let u,a=!0;Object.assign(Z,t),Z.t=new URL(t.resourcesUrl||"./",Y.baseURI).href,e.map((e=>{e[1].map((t=>{const o={u:t[0],$:t[1],L:t[2],W:t[3]};o.L=t[2],o.W=t[3],o.C=[],o.P={};const c=o.$,r=class extends HTMLElement{constructor(e){super(e),B(e=this,o),1&o.u&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?i.push(this):Z.jmp((()=>(e=>{if(0==(1&Z.u)){const t=_(e),n=t.M,l=()=>{};if(1&t.u)F(e,t,n.W);else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(t,t.g=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.u)){{if(t.u|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.P=s.watchers,q(s,n,2),s.isProxied=!0);const e=()=>{};t.u|=8;try{new s(t)}catch(e){I(e)}t.u&=-9,t.u|=128,e()}if(s.style){let e=s.style;const t=p(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);te&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.u)),l()}}}const o=t.g,c=()=>C(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){Z.jmp((()=>(()=>{if(0==(1&Z.u)){const e=_(this),t=e.j;e.N&&(e.N.map((e=>e())),e.N=void 0),N(t,"disconnectedCallback")}})()))}componentOnReady(){return _(this).T}};o.U=e[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,q(r,o,1)))}))})),r.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),o.insertBefore(r,c?c.nextSibling:o.firstChild),a=!1,i.length?i.map((e=>e.connectedCallback())):Z.jmp((()=>u=setTimeout(E,30)))},F=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=e,c=D(t,s),r=H(n);Z.ael(o,l,c,r),(t.N=t.N||[]).push((()=>Z.rel(o,l,c,r)))}))},D=(e,t)=>n=>{try{256&e.u?e.j[t](n):(e.v=e.v||[]).push([t,n])}catch(e){I(e)}},H=e=>0!=(2&e),V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.j=e,t),B=(e,t)=>{const n={u:0,m:e,M:t,R:new Map};return n.T=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],F(e,n,t.W),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.$.replace(/-/g,"_"),n=e.U,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Q=new Map,X="undefined"!=typeof window?window:{},Y=X.document||{head:{}},Z={u:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ee=e=>Promise.resolve(e),te=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],le=[],se=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&Z.u?re(ce):Z.raf(ce))},oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},ce=()=>{oe(ne),oe(le),(l=ne.length>0)&&Z.raf(ce)},re=e=>ee().then(e),ie=se(le,!0);export{a,A as b,f as c,s as d,x as f,R as g,r as h,ee as p,z as r}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as i}from"./p-3fa495e4.js";const e=class{constructor(i){a(this,i)}render(){return i("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, #47b6a2 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #47b6a2 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, #47b6a2 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
|
+
@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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,b as t}from"./p-3fa495e4.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-a69bb428",[[1,"loader-dots"]]],["p-3ef0bad2",[[1,"identification-component",{token:[1],order_id:[1537],api_url:[1],idErrorType:[32],idSide:[32],idFlow:[32],idBackFlow:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"timeElapsed","timeElapsed"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"id-back-capture",{device:[16],videoStarted:[32],cameraSize:[32],stopAnimation:[32],captureTaken:[32],titleMesage:[32],animationPath:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],stopAnimation:[32],captureTaken:[32],titleMesage:[32],animationPath:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],videoStarted:[32],cameraSize:[32],stopAnimation:[32],captureTaken:[32],titleMesage:[32],animationPath:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"capture-error",{idSide:[1,"id-side"],type:[1]}],[0,"end-redirect"],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],descriptionR1:[32],descriptionR2:[32],descriptionR3:[32],imagePath:[32],buttonText:[32]}],[0,"landing-validation",{device:[16],saved:[32],warningText:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32]}],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class AgreementCheck {
|
|
3
|
+
agreementType: string;
|
|
4
|
+
htmlContent: string;
|
|
5
|
+
private apiCalls;
|
|
6
|
+
constructor();
|
|
7
|
+
componentDidLoad(): Promise<void>;
|
|
8
|
+
agreementAcceptance: EventEmitter<any>;
|
|
9
|
+
buttonClick(result: boolean): Promise<void>;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class AgreementInfo {
|
|
2
|
+
agreementsChecked: boolean;
|
|
3
|
+
termsChecked: boolean;
|
|
4
|
+
openAgreements: boolean;
|
|
5
|
+
openTerms: boolean;
|
|
6
|
+
constructor();
|
|
7
|
+
componentWillLoad(): void;
|
|
8
|
+
buttonClick(): void;
|
|
9
|
+
agreementAcceptanceEmitted(data: any): void;
|
|
10
|
+
agreementsClicked(): void;
|
|
11
|
+
termsClicked(): void;
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class CaptureError {
|
|
3
|
+
idSide: string;
|
|
4
|
+
type: string;
|
|
5
|
+
private imagePath;
|
|
6
|
+
private description;
|
|
7
|
+
eventHowToInfoDone: EventEmitter;
|
|
8
|
+
componentWillRender(): void;
|
|
9
|
+
buttonClick(): void;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Device } from '../../../models/IDevice';
|
|
2
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
3
|
+
import { IDPose } from '../../../libs/IDML5Detector/IDPose';
|
|
4
|
+
import { FacePose } from '../../../libs/FaceML5Detector/FacePose';
|
|
5
|
+
export declare class Camera {
|
|
6
|
+
component: HTMLElement;
|
|
7
|
+
modelPath: string;
|
|
8
|
+
device: Device;
|
|
9
|
+
probabilityThreshold: number;
|
|
10
|
+
captureMode: string;
|
|
11
|
+
private cameraVideo;
|
|
12
|
+
private cameraCanvas;
|
|
13
|
+
eventVideoStarted: EventEmitter;
|
|
14
|
+
eventCloseCamera: EventEmitter;
|
|
15
|
+
errorCameraEvent: any;
|
|
16
|
+
eventTakePhoto: EventEmitter;
|
|
17
|
+
eventRecordingSelfieReady: EventEmitter;
|
|
18
|
+
eventRecordingIdReady: EventEmitter;
|
|
19
|
+
eventTimeElapsed: EventEmitter;
|
|
20
|
+
eventChangeTitle: EventEmitter;
|
|
21
|
+
eventStopAnimation: EventEmitter;
|
|
22
|
+
componentDidLoad(): void;
|
|
23
|
+
render(): any;
|
|
24
|
+
callbackErrors: (error: Error, isError: boolean) => void;
|
|
25
|
+
callbackAutoCapturing: () => void;
|
|
26
|
+
callbackSelfieRecordingReady: (recording: Blob) => void;
|
|
27
|
+
callbackIdRecordingReady: (recording: Blob) => void;
|
|
28
|
+
callbackTimeElapsed: () => void;
|
|
29
|
+
callbackChangeTitle: (message: FacePose | IDPose) => void;
|
|
30
|
+
callbackStopAnimation: () => void;
|
|
31
|
+
callbackVideoStarted: () => void;
|
|
32
|
+
startStream(): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class HowToInfo {
|
|
2
|
+
idSide: string;
|
|
3
|
+
topTitle: string;
|
|
4
|
+
subTitle: string;
|
|
5
|
+
descriptionR1: string;
|
|
6
|
+
descriptionR2: string;
|
|
7
|
+
descriptionR3: string;
|
|
8
|
+
imagePath: string;
|
|
9
|
+
buttonText: string;
|
|
10
|
+
buttonClick(): void;
|
|
11
|
+
componentWillLoad(): void;
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Device } from '../../models/IDevice';
|
|
3
|
+
export declare class IdBackCapture {
|
|
4
|
+
component: HTMLElement;
|
|
5
|
+
device: Device;
|
|
6
|
+
private videoStarted;
|
|
7
|
+
private cameraSize;
|
|
8
|
+
private stopAnimation;
|
|
9
|
+
private captureTaken;
|
|
10
|
+
private titleMesage;
|
|
11
|
+
eventPhotoCapture: EventEmitter;
|
|
12
|
+
private cameras;
|
|
13
|
+
private animationPath;
|
|
14
|
+
constructor();
|
|
15
|
+
eventChangeTitle(event: any): void;
|
|
16
|
+
eventVideoStarted(event: any): void;
|
|
17
|
+
eventStopAnimation(): void;
|
|
18
|
+
componentWillLoad(): Promise<void>;
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
openCamera(): Promise<void>;
|
|
21
|
+
closeCamera(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
takePhoto(): void;
|
|
24
|
+
photoIsReady: (photos: any) => void;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Device } from '../../models/IDevice';
|
|
3
|
+
export declare class IdCapture {
|
|
4
|
+
component: HTMLElement;
|
|
5
|
+
device: Device;
|
|
6
|
+
private videoStarted;
|
|
7
|
+
private cameraSize;
|
|
8
|
+
private stopAnimation;
|
|
9
|
+
private captureTaken;
|
|
10
|
+
private titleMesage;
|
|
11
|
+
eventPhotoCapture: EventEmitter;
|
|
12
|
+
private cameras;
|
|
13
|
+
private animationPath;
|
|
14
|
+
constructor();
|
|
15
|
+
eventChangeTitle(event: any): void;
|
|
16
|
+
eventVideoStarted(event: any): void;
|
|
17
|
+
eventStopAnimation(): void;
|
|
18
|
+
componentWillLoad(): Promise<void>;
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
openCamera(): Promise<void>;
|
|
21
|
+
closeCamera(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
takePhoto(): void;
|
|
24
|
+
photoIsReady: (photos: any) => void;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare class IdentificationComponent {
|
|
2
|
+
token: string;
|
|
3
|
+
order_id: string;
|
|
4
|
+
api_url: string;
|
|
5
|
+
private idErrorType;
|
|
6
|
+
private idSide;
|
|
7
|
+
private device;
|
|
8
|
+
private idFlow;
|
|
9
|
+
private idBackFlow;
|
|
10
|
+
private selfieFlow;
|
|
11
|
+
private apiCall;
|
|
12
|
+
private captureRetryCount;
|
|
13
|
+
onTokenChange(newValue: string, _oldValue: string): void;
|
|
14
|
+
onOrderIdChange(newValue: string, _oldValue: string): void;
|
|
15
|
+
onApiUrlChange(newValue: string, _oldValue: string): void;
|
|
16
|
+
agreementAcceptanceEmitted(data: any): void;
|
|
17
|
+
captureIdBackImage(event: any): Promise<void>;
|
|
18
|
+
captureIdImage(event: any): Promise<void>;
|
|
19
|
+
capturedIdRecording(event: any): Promise<void>;
|
|
20
|
+
runIdFlow(): Promise<void>;
|
|
21
|
+
runIdBackFlow(): Promise<void>;
|
|
22
|
+
captureSelfieImage(event: any): Promise<void>;
|
|
23
|
+
capturedSelfieRecording(event: any): Promise<void>;
|
|
24
|
+
runSelfieFlow(): Promise<void>;
|
|
25
|
+
timeElapsed(): void;
|
|
26
|
+
switchCamera(): void;
|
|
27
|
+
constructor();
|
|
28
|
+
componentWillLoad(): void;
|
|
29
|
+
componentWillRender(): void;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Device } from '../../models/IDevice';
|
|
2
|
+
export declare class LandingValidation {
|
|
3
|
+
device: Device;
|
|
4
|
+
private apiCall;
|
|
5
|
+
saved: boolean;
|
|
6
|
+
warningText: string;
|
|
7
|
+
constructor();
|
|
8
|
+
componentWillLoad(): Promise<void>;
|
|
9
|
+
startFlow(): Promise<void>;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Device } from '../../models/IDevice';
|
|
3
|
+
export declare class SelfieCapture {
|
|
4
|
+
component: HTMLElement;
|
|
5
|
+
device: Device;
|
|
6
|
+
private videoStarted;
|
|
7
|
+
private cameraSize;
|
|
8
|
+
private stopAnimation;
|
|
9
|
+
private captureTaken;
|
|
10
|
+
private titleMesage;
|
|
11
|
+
eventPhotoCapture: EventEmitter;
|
|
12
|
+
private cameras;
|
|
13
|
+
private animationPath;
|
|
14
|
+
constructor();
|
|
15
|
+
eventChangeTitle(event: any): void;
|
|
16
|
+
eventVideoStarted(event: any): void;
|
|
17
|
+
eventStopAnimation(): void;
|
|
18
|
+
componentWillLoad(): void;
|
|
19
|
+
componentDidLoad(): Promise<void>;
|
|
20
|
+
openCamera(): Promise<void>;
|
|
21
|
+
closeCamera(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
takePhoto(): void;
|
|
24
|
+
photoIsReady: (photos: any) => void;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class SmsCodeValidation {
|
|
2
|
+
private title;
|
|
3
|
+
private details;
|
|
4
|
+
private buttonText;
|
|
5
|
+
private apiCall;
|
|
6
|
+
private phoneNumber;
|
|
7
|
+
private code;
|
|
8
|
+
constructor();
|
|
9
|
+
private doAction;
|
|
10
|
+
componentWillRender(): void;
|
|
11
|
+
handleChangePhone(ev: any): void;
|
|
12
|
+
handleChangeCode(ev: any): void;
|
|
13
|
+
render(): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { Device } from "./models/IDevice";
|
|
9
|
+
export namespace Components {
|
|
10
|
+
interface AgreementCheck {
|
|
11
|
+
"agreementType": string;
|
|
12
|
+
}
|
|
13
|
+
interface AgreementInfo {
|
|
14
|
+
}
|
|
15
|
+
interface CameraComp {
|
|
16
|
+
"captureMode": string;
|
|
17
|
+
"device": Device;
|
|
18
|
+
"modelPath": string;
|
|
19
|
+
"probabilityThreshold": number;
|
|
20
|
+
}
|
|
21
|
+
interface CaptureError {
|
|
22
|
+
"idSide": string;
|
|
23
|
+
"type": string;
|
|
24
|
+
}
|
|
25
|
+
interface EndRedirect {
|
|
26
|
+
}
|
|
27
|
+
interface HowToInfo {
|
|
28
|
+
"idSide": string;
|
|
29
|
+
}
|
|
30
|
+
interface IdBackCapture {
|
|
31
|
+
"device": Device;
|
|
32
|
+
}
|
|
33
|
+
interface IdCapture {
|
|
34
|
+
"device": Device;
|
|
35
|
+
}
|
|
36
|
+
interface IdentificationComponent {
|
|
37
|
+
"api_url": string;
|
|
38
|
+
"order_id": string;
|
|
39
|
+
"token": string;
|
|
40
|
+
}
|
|
41
|
+
interface LandingValidation {
|
|
42
|
+
"device": Device;
|
|
43
|
+
}
|
|
44
|
+
interface LoaderDots {
|
|
45
|
+
}
|
|
46
|
+
interface SelfieCapture {
|
|
47
|
+
"device": Device;
|
|
48
|
+
}
|
|
49
|
+
interface SmsCodeValidation {
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface AgreementCheckCustomEvent<T> extends CustomEvent<T> {
|
|
53
|
+
detail: T;
|
|
54
|
+
target: HTMLAgreementCheckElement;
|
|
55
|
+
}
|
|
56
|
+
export interface CameraCompCustomEvent<T> extends CustomEvent<T> {
|
|
57
|
+
detail: T;
|
|
58
|
+
target: HTMLCameraCompElement;
|
|
59
|
+
}
|
|
60
|
+
export interface CaptureErrorCustomEvent<T> extends CustomEvent<T> {
|
|
61
|
+
detail: T;
|
|
62
|
+
target: HTMLCaptureErrorElement;
|
|
63
|
+
}
|
|
64
|
+
export interface IdBackCaptureCustomEvent<T> extends CustomEvent<T> {
|
|
65
|
+
detail: T;
|
|
66
|
+
target: HTMLIdBackCaptureElement;
|
|
67
|
+
}
|
|
68
|
+
export interface IdCaptureCustomEvent<T> extends CustomEvent<T> {
|
|
69
|
+
detail: T;
|
|
70
|
+
target: HTMLIdCaptureElement;
|
|
71
|
+
}
|
|
72
|
+
export interface SelfieCaptureCustomEvent<T> extends CustomEvent<T> {
|
|
73
|
+
detail: T;
|
|
74
|
+
target: HTMLSelfieCaptureElement;
|
|
75
|
+
}
|
|
76
|
+
declare global {
|
|
77
|
+
interface HTMLAgreementCheckElement extends Components.AgreementCheck, HTMLStencilElement {
|
|
78
|
+
}
|
|
79
|
+
var HTMLAgreementCheckElement: {
|
|
80
|
+
prototype: HTMLAgreementCheckElement;
|
|
81
|
+
new (): HTMLAgreementCheckElement;
|
|
82
|
+
};
|
|
83
|
+
interface HTMLAgreementInfoElement extends Components.AgreementInfo, HTMLStencilElement {
|
|
84
|
+
}
|
|
85
|
+
var HTMLAgreementInfoElement: {
|
|
86
|
+
prototype: HTMLAgreementInfoElement;
|
|
87
|
+
new (): HTMLAgreementInfoElement;
|
|
88
|
+
};
|
|
89
|
+
interface HTMLCameraCompElement extends Components.CameraComp, HTMLStencilElement {
|
|
90
|
+
}
|
|
91
|
+
var HTMLCameraCompElement: {
|
|
92
|
+
prototype: HTMLCameraCompElement;
|
|
93
|
+
new (): HTMLCameraCompElement;
|
|
94
|
+
};
|
|
95
|
+
interface HTMLCaptureErrorElement extends Components.CaptureError, HTMLStencilElement {
|
|
96
|
+
}
|
|
97
|
+
var HTMLCaptureErrorElement: {
|
|
98
|
+
prototype: HTMLCaptureErrorElement;
|
|
99
|
+
new (): HTMLCaptureErrorElement;
|
|
100
|
+
};
|
|
101
|
+
interface HTMLEndRedirectElement extends Components.EndRedirect, HTMLStencilElement {
|
|
102
|
+
}
|
|
103
|
+
var HTMLEndRedirectElement: {
|
|
104
|
+
prototype: HTMLEndRedirectElement;
|
|
105
|
+
new (): HTMLEndRedirectElement;
|
|
106
|
+
};
|
|
107
|
+
interface HTMLHowToInfoElement extends Components.HowToInfo, HTMLStencilElement {
|
|
108
|
+
}
|
|
109
|
+
var HTMLHowToInfoElement: {
|
|
110
|
+
prototype: HTMLHowToInfoElement;
|
|
111
|
+
new (): HTMLHowToInfoElement;
|
|
112
|
+
};
|
|
113
|
+
interface HTMLIdBackCaptureElement extends Components.IdBackCapture, HTMLStencilElement {
|
|
114
|
+
}
|
|
115
|
+
var HTMLIdBackCaptureElement: {
|
|
116
|
+
prototype: HTMLIdBackCaptureElement;
|
|
117
|
+
new (): HTMLIdBackCaptureElement;
|
|
118
|
+
};
|
|
119
|
+
interface HTMLIdCaptureElement extends Components.IdCapture, HTMLStencilElement {
|
|
120
|
+
}
|
|
121
|
+
var HTMLIdCaptureElement: {
|
|
122
|
+
prototype: HTMLIdCaptureElement;
|
|
123
|
+
new (): HTMLIdCaptureElement;
|
|
124
|
+
};
|
|
125
|
+
interface HTMLIdentificationComponentElement extends Components.IdentificationComponent, HTMLStencilElement {
|
|
126
|
+
}
|
|
127
|
+
var HTMLIdentificationComponentElement: {
|
|
128
|
+
prototype: HTMLIdentificationComponentElement;
|
|
129
|
+
new (): HTMLIdentificationComponentElement;
|
|
130
|
+
};
|
|
131
|
+
interface HTMLLandingValidationElement extends Components.LandingValidation, HTMLStencilElement {
|
|
132
|
+
}
|
|
133
|
+
var HTMLLandingValidationElement: {
|
|
134
|
+
prototype: HTMLLandingValidationElement;
|
|
135
|
+
new (): HTMLLandingValidationElement;
|
|
136
|
+
};
|
|
137
|
+
interface HTMLLoaderDotsElement extends Components.LoaderDots, HTMLStencilElement {
|
|
138
|
+
}
|
|
139
|
+
var HTMLLoaderDotsElement: {
|
|
140
|
+
prototype: HTMLLoaderDotsElement;
|
|
141
|
+
new (): HTMLLoaderDotsElement;
|
|
142
|
+
};
|
|
143
|
+
interface HTMLSelfieCaptureElement extends Components.SelfieCapture, HTMLStencilElement {
|
|
144
|
+
}
|
|
145
|
+
var HTMLSelfieCaptureElement: {
|
|
146
|
+
prototype: HTMLSelfieCaptureElement;
|
|
147
|
+
new (): HTMLSelfieCaptureElement;
|
|
148
|
+
};
|
|
149
|
+
interface HTMLSmsCodeValidationElement extends Components.SmsCodeValidation, HTMLStencilElement {
|
|
150
|
+
}
|
|
151
|
+
var HTMLSmsCodeValidationElement: {
|
|
152
|
+
prototype: HTMLSmsCodeValidationElement;
|
|
153
|
+
new (): HTMLSmsCodeValidationElement;
|
|
154
|
+
};
|
|
155
|
+
interface HTMLElementTagNameMap {
|
|
156
|
+
"agreement-check": HTMLAgreementCheckElement;
|
|
157
|
+
"agreement-info": HTMLAgreementInfoElement;
|
|
158
|
+
"camera-comp": HTMLCameraCompElement;
|
|
159
|
+
"capture-error": HTMLCaptureErrorElement;
|
|
160
|
+
"end-redirect": HTMLEndRedirectElement;
|
|
161
|
+
"how-to-info": HTMLHowToInfoElement;
|
|
162
|
+
"id-back-capture": HTMLIdBackCaptureElement;
|
|
163
|
+
"id-capture": HTMLIdCaptureElement;
|
|
164
|
+
"identification-component": HTMLIdentificationComponentElement;
|
|
165
|
+
"landing-validation": HTMLLandingValidationElement;
|
|
166
|
+
"loader-dots": HTMLLoaderDotsElement;
|
|
167
|
+
"selfie-capture": HTMLSelfieCaptureElement;
|
|
168
|
+
"sms-code-validation": HTMLSmsCodeValidationElement;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
declare namespace LocalJSX {
|
|
172
|
+
interface AgreementCheck {
|
|
173
|
+
"agreementType"?: string;
|
|
174
|
+
"onAgreementAcceptance"?: (event: AgreementCheckCustomEvent<any>) => void;
|
|
175
|
+
}
|
|
176
|
+
interface AgreementInfo {
|
|
177
|
+
}
|
|
178
|
+
interface CameraComp {
|
|
179
|
+
"captureMode"?: string;
|
|
180
|
+
"device"?: Device;
|
|
181
|
+
"modelPath"?: string;
|
|
182
|
+
"onChangeTitle"?: (event: CameraCompCustomEvent<any>) => void;
|
|
183
|
+
"onCloseCamera"?: (event: CameraCompCustomEvent<any>) => void;
|
|
184
|
+
"onErrorCamera"?: (event: CameraCompCustomEvent<any>) => void;
|
|
185
|
+
"onRecordingIdCapture"?: (event: CameraCompCustomEvent<any>) => void;
|
|
186
|
+
"onRecordingSelfieCapture"?: (event: CameraCompCustomEvent<any>) => void;
|
|
187
|
+
"onStopAnimation"?: (event: CameraCompCustomEvent<any>) => void;
|
|
188
|
+
"onTakePhoto"?: (event: CameraCompCustomEvent<any>) => void;
|
|
189
|
+
"onTimeElapsed"?: (event: CameraCompCustomEvent<any>) => void;
|
|
190
|
+
"onVideoStarted"?: (event: CameraCompCustomEvent<any>) => void;
|
|
191
|
+
"probabilityThreshold"?: number;
|
|
192
|
+
}
|
|
193
|
+
interface CaptureError {
|
|
194
|
+
"idSide"?: string;
|
|
195
|
+
"onHowToInfoDone"?: (event: CaptureErrorCustomEvent<any>) => void;
|
|
196
|
+
"type"?: string;
|
|
197
|
+
}
|
|
198
|
+
interface EndRedirect {
|
|
199
|
+
}
|
|
200
|
+
interface HowToInfo {
|
|
201
|
+
"idSide"?: string;
|
|
202
|
+
}
|
|
203
|
+
interface IdBackCapture {
|
|
204
|
+
"device"?: Device;
|
|
205
|
+
"onPhotoIdBackCapture"?: (event: IdBackCaptureCustomEvent<any>) => void;
|
|
206
|
+
}
|
|
207
|
+
interface IdCapture {
|
|
208
|
+
"device"?: Device;
|
|
209
|
+
"onPhotoIdCapture"?: (event: IdCaptureCustomEvent<any>) => void;
|
|
210
|
+
}
|
|
211
|
+
interface IdentificationComponent {
|
|
212
|
+
"api_url"?: string;
|
|
213
|
+
"order_id"?: string;
|
|
214
|
+
"token"?: string;
|
|
215
|
+
}
|
|
216
|
+
interface LandingValidation {
|
|
217
|
+
"device"?: Device;
|
|
218
|
+
}
|
|
219
|
+
interface LoaderDots {
|
|
220
|
+
}
|
|
221
|
+
interface SelfieCapture {
|
|
222
|
+
"device"?: Device;
|
|
223
|
+
"onPhotoSelfieCapture"?: (event: SelfieCaptureCustomEvent<any>) => void;
|
|
224
|
+
}
|
|
225
|
+
interface SmsCodeValidation {
|
|
226
|
+
}
|
|
227
|
+
interface IntrinsicElements {
|
|
228
|
+
"agreement-check": AgreementCheck;
|
|
229
|
+
"agreement-info": AgreementInfo;
|
|
230
|
+
"camera-comp": CameraComp;
|
|
231
|
+
"capture-error": CaptureError;
|
|
232
|
+
"end-redirect": EndRedirect;
|
|
233
|
+
"how-to-info": HowToInfo;
|
|
234
|
+
"id-back-capture": IdBackCapture;
|
|
235
|
+
"id-capture": IdCapture;
|
|
236
|
+
"identification-component": IdentificationComponent;
|
|
237
|
+
"landing-validation": LandingValidation;
|
|
238
|
+
"loader-dots": LoaderDots;
|
|
239
|
+
"selfie-capture": SelfieCapture;
|
|
240
|
+
"sms-code-validation": SmsCodeValidation;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export { LocalJSX as JSX };
|
|
244
|
+
declare module "@stencil/core" {
|
|
245
|
+
export namespace JSX {
|
|
246
|
+
interface IntrinsicElements {
|
|
247
|
+
"agreement-check": LocalJSX.AgreementCheck & JSXBase.HTMLAttributes<HTMLAgreementCheckElement>;
|
|
248
|
+
"agreement-info": LocalJSX.AgreementInfo & JSXBase.HTMLAttributes<HTMLAgreementInfoElement>;
|
|
249
|
+
"camera-comp": LocalJSX.CameraComp & JSXBase.HTMLAttributes<HTMLCameraCompElement>;
|
|
250
|
+
"capture-error": LocalJSX.CaptureError & JSXBase.HTMLAttributes<HTMLCaptureErrorElement>;
|
|
251
|
+
"end-redirect": LocalJSX.EndRedirect & JSXBase.HTMLAttributes<HTMLEndRedirectElement>;
|
|
252
|
+
"how-to-info": LocalJSX.HowToInfo & JSXBase.HTMLAttributes<HTMLHowToInfoElement>;
|
|
253
|
+
"id-back-capture": LocalJSX.IdBackCapture & JSXBase.HTMLAttributes<HTMLIdBackCaptureElement>;
|
|
254
|
+
"id-capture": LocalJSX.IdCapture & JSXBase.HTMLAttributes<HTMLIdCaptureElement>;
|
|
255
|
+
"identification-component": LocalJSX.IdentificationComponent & JSXBase.HTMLAttributes<HTMLIdentificationComponentElement>;
|
|
256
|
+
"landing-validation": LocalJSX.LandingValidation & JSXBase.HTMLAttributes<HTMLLandingValidationElement>;
|
|
257
|
+
"loader-dots": LocalJSX.LoaderDots & JSXBase.HTMLAttributes<HTMLLoaderDotsElement>;
|
|
258
|
+
"selfie-capture": LocalJSX.SelfieCapture & JSXBase.HTMLAttributes<HTMLSelfieCaptureElement>;
|
|
259
|
+
"sms-code-validation": LocalJSX.SmsCodeValidation & JSXBase.HTMLAttributes<HTMLSmsCodeValidationElement>;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class ApiCall {
|
|
2
|
+
private Post;
|
|
3
|
+
private Get;
|
|
4
|
+
SendOTPCode(requestId: string, phoneNumber: string): Promise<boolean | Error>;
|
|
5
|
+
CheckOTPCode(requestId: string, otpCode: string): Promise<boolean | Error>;
|
|
6
|
+
AddIdentificationRequest(requestId: string, deviceInfo: string): Promise<any | Error>;
|
|
7
|
+
UploadFileForRequestB64(requestId: string, type: string, file: File): Promise<boolean>;
|
|
8
|
+
UploadFileForRequest(requestId: string, type: string, file: File): Promise<boolean>;
|
|
9
|
+
GetAgreement(agreementType: string): Promise<string>;
|
|
10
|
+
GenerateAgreement(agreementType: string): Promise<boolean>;
|
|
11
|
+
toBase64: (file: File) => Promise<unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Camera } from '../models/ICamera';
|
|
2
|
+
import { Constraints } from '../models/IConstraints';
|
|
3
|
+
import { Device } from '../models/IDevice';
|
|
4
|
+
export declare class Cameras {
|
|
5
|
+
GetCameras(deviceInfo: Device): Promise<Camera[]>;
|
|
6
|
+
GetConstraints(selectedDeviceId: string, device: Device, portrait?: boolean): Constraints | any;
|
|
7
|
+
GetRecommendedCamera(cameras: any): any;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default class Events {
|
|
2
|
+
static cameraModule: any;
|
|
3
|
+
static init(element: any): void;
|
|
4
|
+
static captureEvent(photos: any): void;
|
|
5
|
+
static recordingAvailable(recording: any): void;
|
|
6
|
+
static closeEvent(): void;
|
|
7
|
+
static cameraReadyEvent(): void;
|
|
8
|
+
static errorEvent(error: any): void;
|
|
9
|
+
static detectionError(error: any): void;
|
|
10
|
+
static loadedModels(loadedModels: any): void;
|
|
11
|
+
static detectorInitialized(initializationTime: number): void;
|
|
12
|
+
}
|