@ekyc_qoobiss/qbs-ect-cmp 1.2.7 → 1.2.8

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 (29) hide show
  1. package/dist/cjs/_commonjsHelpers-c0bd7d34.js +528 -0
  2. package/dist/cjs/{agreement-check_17.cjs.entry.js → agreement-check_16.cjs.entry.js} +191 -3650
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mobile-redirect.cjs.entry.js +2969 -0
  5. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  6. package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -1
  7. package/dist/collection/components/identification-component/identification-component.css +4 -69
  8. package/dist/collection/components/identification-component/identification-component.js +8 -8
  9. package/dist/collection/helpers/Events.js +13 -5
  10. package/dist/collection/helpers/textValues.js +1 -0
  11. package/dist/esm/_commonjsHelpers-d06997a2.js +511 -0
  12. package/dist/esm/{agreement-check_17.entry.js → agreement-check_16.entry.js} +27 -3485
  13. package/dist/esm/{index-9d69e511.js → index-5d6f9123.js} +1 -1
  14. package/dist/esm/loader-dots.entry.js +1 -1
  15. package/dist/esm/loader.js +3 -3
  16. package/dist/esm/mobile-redirect.entry.js +2965 -0
  17. package/dist/esm/qbs-ect-cmp.js +3 -3
  18. package/dist/qbs-ect-cmp/{p-b490e98d.entry.js → p-139820b9.entry.js} +24 -24
  19. package/dist/qbs-ect-cmp/p-72635f9d.entry.js +1 -0
  20. package/dist/qbs-ect-cmp/{p-4c8e922b.entry.js → p-7c33dd41.entry.js} +1 -1
  21. package/dist/qbs-ect-cmp/p-80888f13.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/flow/landing-validation/landing-validation.d.ts +1 -0
  25. package/dist/types/components/identification-component/identification-component.d.ts +1 -1
  26. package/dist/types/components.d.ts +2 -2
  27. package/dist/types/helpers/Events.d.ts +2 -1
  28. package/dist/types/helpers/textValues.d.ts +1 -0
  29. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ import{r as t,c as n,h as r}from"./p-aacd7024.js";import{c as e,A as i,M as o,s,O as u,F as c}from"./p-80888f13.js";var a=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then};let f;const h=[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 l=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},d=function(t){return h[t]},w=function(t){let n=0;for(;0!==t;)n++,t>>>=1;return n},v=function(){return void 0!==f},p=function(t){return f(t)},m=e((function(t,n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},n.from=function(t,r){if(n.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 n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return r}}}));function g(){this.buffer=[],this.length=0}g.prototype={get:function(t){const n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(let r=0;r<n;r++)this.putBit(1==(t>>>n-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}};var E=g;function y(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)}y.prototype.set=function(t,n,r,e){const i=t*this.size+n;this.data[i]=r,e&&(this.reservedBit[i]=!0)},y.prototype.get=function(t,n){return this.data[t*this.size+n]},y.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},y.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]};var A=y,b=e((function(t,n){const r=l;n.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,e=r(t),i=145===e?26:2*Math.ceil((e-13)/(2*n-2)),o=[e-7];for(let t=1;t<n-1;t++)o[t]=o[t-1]-i;return o.push(6),o.reverse()},n.getPositions=function(t){const r=[],e=n.getRowColCoords(t),i=e.length;for(let t=0;t<i;t++)for(let n=0;n<i;n++)0===t&&0===n||0===t&&n===i-1||t===i-1&&0===n||r.push([e[t],e[n]]);return r}}));const M=l;var x=e((function(t,n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function r(t,r,e){switch(t){case n.Patterns.PATTERN000:return(r+e)%2==0;case n.Patterns.PATTERN001:return r%2==0;case n.Patterns.PATTERN010:return e%3==0;case n.Patterns.PATTERN011:return(r+e)%3==0;case n.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(e/3))%2==0;case n.Patterns.PATTERN101:return r*e%2+r*e%3==0;case n.Patterns.PATTERN110:return(r*e%2+r*e%3)%2==0;case n.Patterns.PATTERN111:return(r*e%3+(r+e)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}n.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},n.from=function(t){return n.isValid(t)?parseInt(t,10):void 0},n.getPenaltyN1=function(t){const n=t.size;let r=0,e=0,i=0,o=null,s=null;for(let u=0;u<n;u++){e=i=0,o=s=null;for(let c=0;c<n;c++){let n=t.get(u,c);n===o?e++:(e>=5&&(r+=e-5+3),o=n,e=1),n=t.get(c,u),n===s?i++:(i>=5&&(r+=i-5+3),s=n,i=1)}e>=5&&(r+=e-5+3),i>=5&&(r+=i-5+3)}return r},n.getPenaltyN2=function(t){const n=t.size;let r=0;for(let e=0;e<n-1;e++)for(let i=0;i<n-1;i++){const n=t.get(e,i)+t.get(e,i+1)+t.get(e+1,i)+t.get(e+1,i+1);4!==n&&0!==n||r++}return 3*r},n.getPenaltyN3=function(t){const n=t.size;let r=0,e=0,i=0;for(let o=0;o<n;o++){e=i=0;for(let s=0;s<n;s++)e=e<<1&2047|t.get(o,s),s>=10&&(1488===e||93===e)&&r++,i=i<<1&2047|t.get(s,o),s>=10&&(1488===i||93===i)&&r++}return 40*r},n.getPenaltyN4=function(t){let n=0;const r=t.data.length;for(let e=0;e<r;e++)n+=t.data[e];return 10*Math.abs(Math.ceil(100*n/r/5)-10)},n.applyMask=function(t,n){const e=n.size;for(let i=0;i<e;i++)for(let o=0;o<e;o++)n.isReserved(o,i)||n.xor(o,i,r(t,o,i))},n.getBestMask=function(t,r){const e=Object.keys(n.Patterns).length;let i=0,o=1/0;for(let s=0;s<e;s++){r(s),n.applyMask(s,t);const e=n.getPenaltyN1(t)+n.getPenaltyN2(t)+n.getPenaltyN3(t)+n.getPenaltyN4(t);n.applyMask(s,t),e<o&&(o=e,i=s)}return i}}));const R=[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],T=[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 I=function(t,n){switch(n){case m.L:return R[4*(t-1)+0];case m.M:return R[4*(t-1)+1];case m.Q:return R[4*(t-1)+2];case m.H:return R[4*(t-1)+3];default:return}},N=function(t,n){switch(n){case m.L:return T[4*(t-1)+0];case m.M:return T[4*(t-1)+1];case m.Q:return T[4*(t-1)+2];case m.H:return T[4*(t-1)+3];default:return}};const U=new Uint8Array(512),C=new Uint8Array(256);!function(){let t=1;for(let n=0;n<255;n++)U[n]=t,C[t]=n,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)U[t]=U[t-255]}();var P=function(t,n){return 0===t||0===n?0:U[C[t]+C[n]]},k=e((function(t,n){n.mul=function(t,n){const r=new Uint8Array(t.length+n.length-1);for(let e=0;e<t.length;e++)for(let i=0;i<n.length;i++)r[e+i]^=P(t[e],n[i]);return r},n.mod=function(t,n){let r=new Uint8Array(t);for(;r.length-n.length>=0;){const t=r[0];for(let e=0;e<n.length;e++)r[e]^=P(n[e],t);let e=0;for(;e<r.length&&0===r[e];)e++;r=r.slice(e)}return r},n.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let i=0;i<t;i++)r=n.mul(r,new Uint8Array([1,(e=i,U[e])]));var e;return r}}));function F(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}F.prototype.initialize=function(t){this.degree=t,this.genPoly=k.generateECPolynomial(this.degree)},F.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=k.mod(n,this.genPoly),e=this.degree-r.length;if(e>0){const t=new Uint8Array(this.degree);return t.set(r,e),t}return r};var B=F,_=function(t){return!isNaN(t)&&t>=1&&t<=40};const L="[0-9]+";let z="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";z=z.replace(/u/g,"\\u");const S="(?:(?![A-Z0-9 $%*+\\-./:]|"+z+")(?:.|[\r\n]))+";var $=new RegExp(z,"g"),q=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),D=new RegExp(S,"g"),j=new RegExp(L,"g"),Q=new RegExp("[A-Z $%*+\\-./:]+","g");const J=new RegExp("^"+z+"$"),K=new RegExp("^"+L+"$"),O=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");var Z={KANJI:$,BYTE_KANJI:q,BYTE:D,NUMERIC:j,ALPHANUMERIC:Q,testKanji:function(t){return J.test(t)},testNumeric:function(t){return K.test(t)},testAlphanumeric:function(t){return O.test(t)}},Y=e((function(t,n){n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!_(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},n.getBestModeForData=function(t){return Z.testNumeric(t)?n.NUMERIC:Z.testAlphanumeric(t)?n.ALPHANUMERIC:Z.testKanji(t)?n.KANJI:n.BYTE},n.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},n.isValid=function(t){return t&&t.bit&&t.ccBits},n.from=function(t,r){if(n.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 n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return r}}})),H=e((function(t,n){const r=w(7973);function e(t,n){return Y.getCharCountIndicator(t,n)+4}function i(t,n){let r=0;return t.forEach((function(t){const i=e(t.mode,n);r+=i+t.getBitsLength()})),r}n.from=function(t,n){return _(t)?parseInt(t,10):n},n.getCapacity=function(t,n,r){if(!_(t))throw new Error("Invalid QR Code version");void 0===r&&(r=Y.BYTE);const i=8*(d(t)-N(t,n));if(r===Y.MIXED)return i;const o=i-e(r,t);switch(r){case Y.NUMERIC:return Math.floor(o/10*3);case Y.ALPHANUMERIC:return Math.floor(o/11*2);case Y.KANJI:return Math.floor(o/13);default:return Math.floor(o/8)}},n.getBestVersionForData=function(t,r){let e;const o=m.from(r,m.M);if(Array.isArray(t)){if(t.length>1)return function(t,r){for(let e=1;e<=40;e++)if(i(t,e)<=n.getCapacity(e,r,Y.MIXED))return e}(t,o);if(0===t.length)return 1;e=t[0]}else e=t;return function(t,r,e){for(let i=1;i<=40;i++)if(r<=n.getCapacity(i,e,t))return i}(e.mode,e.getLength(),o)},n.getEncodedBits=function(t){if(!_(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;w(n)-r>=0;)n^=7973<<w(n)-r;return t<<12|n}}));const W=w(1335);function G(t){this.mode=Y.NUMERIC,this.data=t.toString()}G.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},G.prototype.getLength=function(){return this.data.length},G.prototype.getBitsLength=function(){return G.getBitsLength(this.data.length)},G.prototype.write=function(t){let n,r,e;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),e=parseInt(r,10),t.put(e,10);const i=this.data.length-n;i>0&&(r=this.data.substr(n),e=parseInt(r,10),t.put(e,3*i+1))};var V=G;const X=["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 tt(t){this.mode=Y.ALPHANUMERIC,this.data=t}tt.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},tt.prototype.getLength=function(){return this.data.length},tt.prototype.getBitsLength=function(){return tt.getBitsLength(this.data.length)},tt.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=45*X.indexOf(this.data[n]);r+=X.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(X.indexOf(this.data[n]),6)};var nt=tt;function rt(t){this.mode=Y.BYTE,"string"==typeof t&&(t=function(t){for(var n=[],r=t.length,e=0;e<r;e++){var i=t.charCodeAt(e);if(i>=55296&&i<=56319&&r>e+1){var o=t.charCodeAt(e+1);o>=56320&&o<=57343&&(i=1024*(i-55296)+o-56320+65536,e+=1)}i<128?n.push(i):i<2048?(n.push(i>>6|192),n.push(63&i|128)):i<55296||i>=57344&&i<65536?(n.push(i>>12|224),n.push(i>>6&63|128),n.push(63&i|128)):i>=65536&&i<=1114111?(n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(63&i|128)):n.push(239,191,189)}return new Uint8Array(n).buffer}(t)),this.data=new Uint8Array(t)}rt.getBitsLength=function(t){return 8*t},rt.prototype.getLength=function(){return this.data.length},rt.prototype.getBitsLength=function(){return rt.getBitsLength(this.data.length)},rt.prototype.write=function(t){for(let n=0,r=this.data.length;n<r;n++)t.put(this.data[n],8)};var et=rt;function it(t){this.mode=Y.KANJI,this.data=t}it.getBitsLength=function(t){return 13*t},it.prototype.getLength=function(){return this.data.length},it.prototype.getBitsLength=function(){return it.getBitsLength(this.data.length)},it.prototype.write=function(t){let n;for(n=0;n<this.data.length;n++){let r=p(this.data[n]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}};var ot=it,st=e((function(t){var n={single_source_shortest_paths:function(t,r,e){var i={},o={};o[r]=0;var s,u,c,a,f,h,l=n.PriorityQueue.make();for(l.push(r,0);!l.empty();)for(c in a=(s=l.pop()).cost,f=t[u=s.value]||{})f.hasOwnProperty(c)&&(h=a+f[c],(void 0===o[c]||o[c]>h)&&(o[c]=h,l.push(c,h),i[c]=u));if(void 0!==e&&void 0===o[e]){var d=["Could not find a path from ",r," to ",e,"."].join("");throw new Error(d)}return i},extract_shortest_path_from_predecessor_list:function(t,n){for(var r=[],e=n;e;)r.push(e),e=t[e];return r.reverse(),r},find_path:function(t,r,e){var i=n.single_source_shortest_paths(t,r,e);return n.extract_shortest_path_from_predecessor_list(i,e)},PriorityQueue:{make:function(t){var r,e=n.PriorityQueue,i={};for(r in t=t||{},e)e.hasOwnProperty(r)&&(i[r]=e[r]);return i.queue=[],i.sorter=t.sorter||e.default_sorter,i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){this.queue.push({value:t,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n})),ut=e((function(t,n){function r(t){return unescape(encodeURIComponent(t)).length}function e(t,n,r){const e=[];let i;for(;null!==(i=t.exec(r));)e.push({data:i[0],index:i.index,mode:n,length:i[0].length});return e}function i(t){const n=e(Z.NUMERIC,Y.NUMERIC,t),r=e(Z.ALPHANUMERIC,Y.ALPHANUMERIC,t);let i,o;return v()?(i=e(Z.BYTE,Y.BYTE,t),o=e(Z.KANJI,Y.KANJI,t)):(i=e(Z.BYTE_KANJI,Y.BYTE,t),o=[]),n.concat(r,i,o).sort((function(t,n){return t.index-n.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function o(t,n){switch(n){case Y.NUMERIC:return V.getBitsLength(t);case Y.ALPHANUMERIC:return nt.getBitsLength(t);case Y.KANJI:return ot.getBitsLength(t);case Y.BYTE:return et.getBitsLength(t)}}function s(t,n){let r;const e=Y.getBestModeForData(t);if(r=Y.from(n,e),r!==Y.BYTE&&r.bit<e.bit)throw new Error('"'+t+'" cannot be encoded with mode '+Y.toString(r)+".\n Suggested mode is: "+Y.toString(e));switch(r!==Y.KANJI||v()||(r=Y.BYTE),r){case Y.NUMERIC:return new V(t);case Y.ALPHANUMERIC:return new nt(t);case Y.KANJI:return new ot(t);case Y.BYTE:return new et(t)}}n.fromArray=function(t){return t.reduce((function(t,n){return"string"==typeof n?t.push(s(n,null)):n.data&&t.push(s(n.data,n.mode)),t}),[])},n.fromString=function(t,e){const s=function(t){const n=[];for(let e=0;e<t.length;e++){const i=t[e];switch(i.mode){case Y.NUMERIC:n.push([i,{data:i.data,mode:Y.ALPHANUMERIC,length:i.length},{data:i.data,mode:Y.BYTE,length:i.length}]);break;case Y.ALPHANUMERIC:n.push([i,{data:i.data,mode:Y.BYTE,length:i.length}]);break;case Y.KANJI:n.push([i,{data:i.data,mode:Y.BYTE,length:r(i.data)}]);break;case Y.BYTE:n.push([{data:i.data,mode:Y.BYTE,length:r(i.data)}])}}return n}(i(t,v())),u=function(t,n){const r={},e={start:{}};let i=["start"];for(let s=0;s<t.length;s++){const u=t[s],c=[];for(let t=0;t<u.length;t++){const a=u[t],f=""+s+t;c.push(f),r[f]={node:a,lastCount:0},e[f]={};for(let t=0;t<i.length;t++){const s=i[t];r[s]&&r[s].node.mode===a.mode?(e[s][f]=o(r[s].lastCount+a.length,a.mode)-o(r[s].lastCount,a.mode),r[s].lastCount+=a.length):(r[s]&&(r[s].lastCount=a.length),e[s][f]=o(a.length,a.mode)+4+Y.getCharCountIndicator(a.mode,n))}}i=c}for(let t=0;t<i.length;t++)e[i[t]].end=0;return{map:e,table:r}}(s,e),c=st.find_path(u.map,"start","end"),a=[];for(let t=1;t<c.length-1;t++)a.push(u.table[c[t]].node);return n.fromArray(a.reduce((function(t,n){const r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)}),[]))},n.rawSplit=function(t){return n.fromArray(i(t,v()))}}));function ct(t,n,r){const e=t.size,i=function(t,n){const r=t.bit<<3|n;let e=r<<10;for(;w(e)-W>=0;)e^=1335<<w(e)-W;return 21522^(r<<10|e)}(n,r);let o,s;for(o=0;o<15;o++)s=1==(i>>o&1),t.set(o<6?o:o<8?o+1:e-15+o,8,s,!0),t.set(8,o<8?e-o-1:o<9?15-o-1+1:15-o-1,s,!0);t.set(e-8,8,1,!0)}function at(t,n,r,e){let i;if(Array.isArray(t))i=ut.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=n;if(!e){const n=ut.rawSplit(t);e=H.getBestVersionForData(n,r)}i=ut.fromString(t,e||40)}}const o=H.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<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 n=o;const s=function(t,n,r){const e=new E;r.forEach((function(n){e.put(n.mode.bit,4),e.put(n.getLength(),Y.getCharCountIndicator(n.mode,t)),n.write(e)}));const i=8*(d(t)-N(t,n));for(e.getLengthInBits()+4<=i&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(0);const o=(i-e.getLengthInBits())/8;for(let t=0;t<o;t++)e.put(t%2?17:236,8);return function(t,n,r){const e=d(n),i=e-N(n,r),o=I(n,r),s=o-e%o,u=Math.floor(e/o),c=Math.floor(i/o),a=c+1,f=u-c,h=new B(f);let l=0;const w=new Array(o),v=new Array(o);let p=0;const m=new Uint8Array(t.buffer);for(let t=0;t<o;t++){const n=t<s?c:a;w[t]=m.slice(l,l+n),v[t]=h.encode(w[t]),l+=n,p=Math.max(p,n)}const g=new Uint8Array(e);let E,y,A=0;for(E=0;E<p;E++)for(y=0;y<o;y++)E<w[y].length&&(g[A++]=w[y][E]);for(E=0;E<f;E++)for(y=0;y<o;y++)g[A++]=v[y][E];return g}(e,t,n)}(n,r,i),u=l(n),c=new A(u);return function(t,n){const r=t.size,e=function(t){const n=M(t);return[[0,0],[n-7,0],[0,n-7]]}(n);for(let n=0;n<e.length;n++){const i=e[n][0],o=e[n][1];for(let n=-1;n<=7;n++)if(!(i+n<=-1||r<=i+n))for(let e=-1;e<=7;e++)o+e<=-1||r<=o+e||t.set(i+n,o+e,n>=0&&n<=6&&(0===e||6===e)||e>=0&&e<=6&&(0===n||6===n)||n>=2&&n<=4&&e>=2&&e<=4,!0)}}(c,n),function(t){const n=t.size;for(let r=8;r<n-8;r++){const n=r%2==0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}(c),function(t,n){const r=b.getPositions(n);for(let n=0;n<r.length;n++){const e=r[n][0],i=r[n][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)t.set(e+n,i+r,-2===n||2===n||-2===r||2===r||0===n&&0===r,!0)}}(c,n),ct(c,r,0),n>=7&&function(t,n){const r=t.size,e=H.getEncodedBits(n);let i,o,s;for(let n=0;n<18;n++)i=Math.floor(n/3),o=n%3+r-8-3,s=1==(e>>n&1),t.set(i,o,s,!0),t.set(o,i,s,!0)}(c,n),function(t,n){const r=t.size;let e=-1,i=r-1,o=7,s=0;for(let u=r-1;u>0;u-=2)for(6===u&&u--;;){for(let r=0;r<2;r++)if(!t.isReserved(i,u-r)){let e=!1;s<n.length&&(e=1==(n[s]>>>o&1)),t.set(i,u-r,e),o--,-1===o&&(s++,o=7)}if(i+=e,i<0||r<=i){i-=e,e=-e;break}}}(c,s),isNaN(e)&&(e=x.getBestMask(c,ct.bind(null,c,r))),x.applyMask(e,c),ct(c,r,e),{modules:c,version:n,errorCorrectionLevel:r,maskPattern:e,segments:i}}var ft=function(t,n){if(void 0===t||""===t)throw new Error("No input text");let r,e,i=m.M;return void 0!==n&&(i=m.from(n.errorCorrectionLevel,m.M),r=H.from(n.version),e=x.from(n.maskPattern),n.toSJISFunc&&function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');f=t}(n.toSJISFunc)),at(t,r,i,e)},ht=e((function(t,n){function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw new Error("Invalid hex color: "+t);3!==n.length&&4!==n.length||(n=Array.prototype.concat.apply([],n.map((function(t){return[t,t]})))),6===n.length&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+n.slice(0,6).join("")}}n.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=t.width&&t.width>=21?t.width:void 0;return{width:n,scale:n?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,n){return n.width&&n.width>=t+2*n.margin?n.width/(t+2*n.margin):n.scale},n.getImageWidth=function(t,r){const e=n.getScale(t,r);return Math.floor((t+2*r.margin)*e)},n.qrToImageData=function(t,r,e){const i=r.modules.size,o=r.modules.data,s=n.getScale(i,e),u=Math.floor((i+2*e.margin)*s),c=e.margin*s,a=[e.color.light,e.color.dark];for(let n=0;n<u;n++)for(let r=0;r<u;r++){let f=4*(n*u+r),h=e.color.light;n>=c&&r>=c&&n<u-c&&r<u-c&&(h=a[o[Math.floor((n-c)/s)*i+Math.floor((r-c)/s)]?1:0]),t[f++]=h.r,t[f++]=h.g,t[f++]=h.b,t[f]=h.a}}})),lt=e((function(t,n){n.render=function(t,n,r){let e=r,i=n;void 0!==e||n&&n.getContext||(e=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),e=ht.getOptions(e);const o=ht.getImageWidth(t.modules.size,e),s=i.getContext("2d"),u=s.createImageData(o,o);return ht.qrToImageData(u.data,t,e),function(t,n,r){t.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=r,n.width=r,n.style.height=r+"px",n.style.width=r+"px"}(s,i,o),s.putImageData(u,0,0),i},n.renderToDataURL=function(t,r,e){let i=e;return void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={}),n.render(t,r,i).toDataURL(i.type||"image/png",(i.rendererOpts||{}).quality)}}));function dt(t,n){const r=t.a/255,e=n+'="'+t.hex+'"';return r<1?e+" "+n+'-opacity="'+r.toFixed(2).slice(1)+'"':e}function wt(t,n,r){let e=t+n;return void 0!==r&&(e+=" "+r),e}function vt(t,n,r,e,i){const o=[].slice.call(arguments,1),s=o.length,u="function"==typeof o[s-1];if(!u&&!a())throw new Error("Callback required as last argument");if(!u){if(s<1)throw new Error("Too few arguments provided");return 1===s?(r=n,n=e=void 0):2!==s||n.getContext||(e=r,r=n,n=void 0),new Promise((function(i,o){try{const o=ft(r,e);i(t(o,n,e))}catch(t){o(t)}}))}if(s<2)throw new Error("Too few arguments provided");2===s?(i=r,r=n,n=e=void 0):3===s&&(n.getContext&&void 0===i?(i=e,e=void 0):(i=e,e=r,r=n,n=void 0));try{const o=ft(r,e);i(null,t(o,n,e))}catch(t){i(t)}}var pt={create:ft,toCanvas:vt.bind(null,lt.render),toDataURL:vt.bind(null,lt.renderToDataURL),toString:vt.bind(null,(function(t,n,r){return function(t,n,r){const e=ht.getOptions(n),i=t.modules.size,o=t.modules.data,s=i+2*e.margin,u=e.color.light.a?"<path "+dt(e.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",c="<path "+dt(e.color.dark,"stroke")+' d="'+function(t,n,r){let e="",i=0,o=!1,s=0;for(let u=0;u<t.length;u++){const c=Math.floor(u%n),a=Math.floor(u/n);c||o||(o=!0),t[u]?(s++,u>0&&c>0&&t[u-1]||(e+=o?wt("M",c+r,.5+a+r):wt("m",i,0),i=0,o=!1),c+1<n&&t[u+1]||(e+=wt("h",s),s=0)):i++}return e}(o,i,e.margin)+'"/>',a='<svg xmlns="http://www.w3.org/2000/svg" '+(e.width?'width="'+e.width+'" height="'+e.width+'" ':"")+'viewBox="0 0 '+s+" "+s+'" shape-rendering="crispEdges">'+u+c+"</svg>\n";return"function"==typeof r&&r(null,a),a}(t,r)}))};const mt=class{constructor(r){t(this,r),this.apiErrorEvent=n(this,"apiError",7),this.delay=t=>new Promise((n=>setTimeout(n,t))),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.apiCall=new i,this.invalidValue=!1,this.waitingMobile=!1}async componentWillLoad(){this.infoTextTop=o.InfoTop,this.infoTextBottom=o.InfoBottom,this.redirectLink=(s.hasIdBack?"https://onmd.id-kyc.com/":"https://onro.id-kyc.com/")+("PROD"==s.environment?"ect":"test")+"/identification?redirectId="+s.redirectId,""!=s.phoneNumber&&(this.contact=s.phoneNumber,this.prefilledPhone=!0);var t=this;pt.toDataURL(this.redirectLink,{type:"image/png",errorCorrectionLevel:"M",scale:6},(function(n,r){n&&console.error(n),t.qrCode=r}))}componentWillRender(){}async componentDidLoad(){for(await this.delay(5e3),await this.checkStatus();this.orderStatus==u.Capturing||this.orderStatus==u.Waiting;)await this.checkStatus(),await this.delay(5e3)}async checkStatus(){this.orderStatus=await this.apiCall.GetStatus(s.requestId),this.orderStatus==u.FinishedCapturing&&(this.waitingMobile=!1,s.flowStatus=c.COMPLETE),this.orderStatus==u.NotFound&&this.apiErrorEvent.emit({message:"No order was started for this process."}),this.orderStatus==u.Capturing&&(this.infoTextTop=o.InfoWaiting,this.waitingMobile=!0)}async buttonClick(){if(""!=this.contact&&10==this.contact.length){this.waitingMobile=!0,this.infoTextTop=o.InfoWaiting;try{await this.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 r("div",{class:"container"},r("div",{class:"row"},r("div",{hidden:this.waitingMobile},r("div",{class:"text-center"},r("p",{class:"font-size-2"},this.infoTextTop)),r("div",{class:"qr-canvas align-center"},r("img",{src:this.qrCode})),r("div",{class:"text-center"},r("p",{class:"font-size-2"},this.infoTextBottom)),r("div",{class:"input-container mb-15"},r("label",{class:"font-size-18 mb-1 color-red",hidden:0==this.invalidValue},r("b",null,o.Validation)),r("input",{type:"text",id:"codeInput",class:"main-input",disabled:this.prefilledPhone,value:this.contact,onInput:t=>this.handleChangeContact(t)})),r("div",{class:"pos-relative"},r("div",{class:"btn-buletin"},r("button",{class:"main-button",onClick:()=>this.buttonClick()},"Trimite"),r("p",{class:"main-text font-size-18 text-right mb-0"},o.FooterText)))),r("div",{hidden:0==this.waitingMobile},r("div",{class:"text-center"},r("p",{class:"font-size-2"},this.infoTextTop)))))}};mt.style=".qr-canvas{max-height:60vh;max-width:80vw;text-align:center}.qr-canvas>canvas{width:100%;height:100%}";export{mt as mobile_redirect}
@@ -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{a as e,f as t}from"./p-aacd7024.js";var a;!function(e){e[e.Capturing=0]="Capturing",e[e.FinishedCapturing=1]="FinishedCapturing",e[e.Waiting=2]="Waiting",e[e.NotFound=3]="NotFound"}(a||(a={}));const i=e=>!("isConnected"in e)||e.isConnected,n=(()=>{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(i))})(...t)}),2e3)}})(),s=e=>"function"==typeof e?e():e;var r;!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"}(r||(r={}));class o{}o.FooterText="Qoobiss eKYC",o.VideoLenght=3100;class c extends o{}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 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 d extends o{}d.Title="Validarea identității la distanță este o procedură simplă și rapidă",d.Description="Asigură-te că ai:",d.IdInfo="Actul de identitate, în original",d.DeviceInfo="Un telefon mobil sau un calculator cu camera web",d.SmsInfo="Acces la un telefon mobil ce permite primirea de mesaje SMS",d.Warning="ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",d.WarningMd="ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",d.Terms="Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",d.Button="Am înțeles",d.ButtonLeave="Nu sunt pregătit";class u extends o{}u.Title="Este necesar să validăm numărul tău de telefon",u.Description="Introdu mai jos numarul tau de telefon:",u.Button="Trimite SMS de verificare",u.Label="Numarul tau de telefon";class l extends o{}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 p extends o{}p.Title="Procesul a fost finalizat.",p.Description="Vei fi redirecționat în câteva momente.",p.Message="Îți mulțumim!";class m{}m.FlowStatusKey="qbs-ect-flowstatus",m.RequestIdKey="qbs-ect-requestid",m.TokenKey="qbs-ect-token",m.InitialisedKey="qbs-ect-initialised",m.HasIdBackKey="qbs-ect-has-id-back",m.AgreementValidationKey="qbs-ect-agreement-validation",m.PhoneValidationKey="qbs-ect-phone-validation";class h extends o{}h.Button="Încerc din nou",h.Title="Încadrează actul de identitate în chenarul de pe ecran.",h.TitleBack="Încadrează spatele actului de identitate în chenarul de pe ecran.",h.TtileRotate="Întoarce actul de identitate.",h.Error="Procesul a eșuat. Te rugăm să respecți întocmai instrucțiunile de pe ecran. Ai grijă să încadrezi integral actul în chenraul de pe ecran și să nu apară reflexii de lumină pe suprafața acestuia.",h.IDPoseMapping={0:"",1:"Înclină actul de identitate spre spate.",2:"",3:"",4:""},h.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"},h.Loading="Transferăm datele. Asteptați...";class f extends o{}f.Title="Încadrează fața în chenarul de pe ecran.",f.FinalTitle="Îndreaptă capul și încadrează fața în chenarul de pe ecran.",f.Error="Procesul a eșuat. Te rugăm să respecți întocmai instrucțiunile 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 w extends o{}w.Title="Pentru începerea identificării avem nevoie de acordurile tale:",w.Button="Încep identificarea",w.Terms="Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",w.Agreement="Îmi exprim acordul pentru prelucrarea datelor cu caracter personal";class b extends o{}b.ButtonYes="Sunt de acord",b.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"}}class y extends o{}y.InfoTop="Pentru a continua scanați codul de mai jos cu un smartphone.",y.InfoBottom="Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",y.Validation="Număr de telefon invalid!",y.InfoWaiting="Așteptăm finalizarea procesului pe smartphone.";const{state:S,onChange:v}=(()=>{const a=((e,t=((e,t)=>e!==t))=>{const a=s(e);let i=new Map(Object.entries(null!=a?a:{}));const n={dispose:[],get:[],set:[],reset:[]},r=()=>{var t;i=new Map(Object.entries(null!==(t=s(e))&&void 0!==t?t:{})),n.reset.forEach((e=>e()))},o=e=>(n.get.forEach((t=>t(e))),i.get(e)),c=(e,a)=>{const s=i.get(e);t(a,s,e)&&(i.set(e,a),n.set.forEach((t=>t(e,a,s))))},d="undefined"==typeof Proxy?{}:new Proxy(a,{get:(e,t)=>o(t),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>i.has(t),set:(e,t,a)=>(c(t,a),!0)}),u=(e,t)=>(n[e].push(t),()=>{((e,t)=>{const a=e.indexOf(t);a>=0&&(e[a]=e[e.length-1],e.length--)})(n[e],t)});return{state:d,get:o,set:c,on:u,onChange:(t,a)=>{const i=u("set",((e,i)=>{e===t&&a(i)})),n=u("reset",(()=>a(s(e)[t])));return()=>{i(),n()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(u("set",t.set)),t.get&&e.push(u("get",t.get)),t.reset&&e.push(u("reset",t.reset)),t.dispose&&e.push(u("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),r()},reset:r,forceUpdate:e=>{const t=i.get(e);n.set.forEach((a=>a(e,t,t)))}}})({flowStatus:r.LANDING,environment:"PROD",requestId:"",redirectId:"",initialised:!1,token:"",cameraIds:[],cameraId:"",hasIdBack:!1,agreementsValidation:!0,phoneValidation:!0,phoneNumber:"",apiBaseUrl:"https://apiro.id-kyc.com"},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 i=a.get(e);i&&a.set(e,i.filter(t)),n(a)},reset:()=>{a.forEach((e=>e.forEach(t))),n(a)}}})()),a})();v("flowStatus",(e=>{sessionStorage.setItem(m.FlowStatusKey,r[e])})),v("token",(e=>{sessionStorage.setItem(m.TokenKey,e)})),v("requestId",(e=>{sessionStorage.setItem(m.RequestIdKey,e)})),v("initialised",(e=>{sessionStorage.setItem(m.InitialisedKey,String(e))})),v("hasIdBack",(e=>{sessionStorage.setItem(m.HasIdBackKey,String(e))})),v("agreementsValidation",(e=>{sessionStorage.setItem(m.AgreementValidationKey,String(e))})),v("phoneValidation",(e=>{sessionStorage.setItem(m.PhoneValidationKey,String(e))}));class I{constructor(){this.toBase64=e=>new Promise(((t,a)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=e=>a(e)})),this.urls=new g}async http(e){const t=await fetch(e);if(!t.ok)throw new Error(t.statusText);try{return await t.json()}catch(e){throw new Error("No json found in response "+e)}}async post(e,t){return await this.http(new Request(S.apiBaseUrl+e,{method:"POST",body:t,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+S.token}}))}async get(e){return await this.http(new Request(S.apiBaseUrl+e,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+S.token}}))}async SendOTPCode(e,t){let a={requestId:e,phone:t};return(await this.post(this.urls.OtpSend,JSON.stringify(a))).sent}async CheckOTPCode(e,t){let a={requestId:e,otp:t};return(await this.post(this.urls.OtpCheck,JSON.stringify(a))).valid}async AddIdentificationRequest(e){let t={requestId:S.requestId,clientDeviceInfo:JSON.stringify(e),redirectId:S.redirectId,phoneNumber:S.phoneNumber},a=await this.post(this.urls.IdentityInsert,JSON.stringify(t));return""==S.requestId&&(S.requestId=a.requestId),S.hasIdBack=a.hasIdBack,S.agreementsValidation=a.agreementsValidation,S.phoneValidation=a.phoneValidation,S.phoneNumber=a.phoneNumber,!0}async UploadFileForRequestB64(e,t,a){let i={requestId:e,type:t,data:await this.toBase64(a)},n=await this.post(this.urls.UploadCapture,JSON.stringify(i));return(S.hasIdBack||"IdFront"!=t)&&(!S.hasIdBack||"IdBack"!=t)||n.isValid}async GetAgreement(e){return(await this.get(this.urls.GetAgreement+"?type="+e+"&requestId="+S.requestId)).htmlText}async GenerateAgreement(e){let t={requestId:S.requestId,documentType:e};return(await this.post(this.urls.GenerateAgreement,JSON.stringify(t))).generation}async GetStatus(e){let t=await this.get(this.urls.GetStatus+"?orderId="+e);return a[t.status]}async SendLink(e,t){let a={requestId:S.requestId,link:e,phoneNumber:t};return(await this.post(this.urls.SendLink,JSON.stringify(a))).sent}async AddLog(e){try{let t={requestId:S.requestId,action:r[S.flowStatus],message:JSON.stringify(null!=e?e:"no error data")};return(await this.post(this.urls.AddLog,JSON.stringify(t))).saved}catch(e){}}}function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function k(e,t,a){return e(a={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},a.exports),a.exports}export{I as A,p as C,r as F,o as G,c as H,h as I,d as L,y as M,a as O,u as P,f as S,b as a,w as b,k as c,m as d,l as e,N as g,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 i}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-4c8e922b",[[1,"loader-dots"]]],["p-b490e98d",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],otp_phone_number:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{device:[16],showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{device:[16],showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{device:[16],showError:[32],showHowTo:[32],selfieFlow:[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,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{device:[16],warningText:[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",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],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]}],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
1
+ import{p as e,b as i}from"./p-aacd7024.js";export{s as setNonce}from"./p-aacd7024.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-7c33dd41",[[1,"loader-dots"]]],["p-72635f9d",[[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32],prefilledPhone:[32]}]]],["p-139820b9",[[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,"id-double-side",{device:[16],showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{device:[16],showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{device:[16],showError:[32],showHowTo:[32],selfieFlow:[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,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{device:[16],warningText:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32],prefilledPhone:[32],canSend:[32]}],[0,"id-back-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],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]}],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
@@ -6,5 +6,6 @@ export declare class LandingValidation {
6
6
  componentDidLoad(): void;
7
7
  initRequest(): Promise<void>;
8
8
  startFlow(): Promise<void>;
9
+ leaveFlow(): Promise<void>;
9
10
  render(): any;
10
11
  }
@@ -4,7 +4,7 @@ export declare class IdentificationComponent {
4
4
  api_url: string;
5
5
  env: string;
6
6
  redirect_id: string;
7
- otp_phone_number: string;
7
+ phone_number: string;
8
8
  private idSide;
9
9
  private errorMessage;
10
10
  private errorTitle;
@@ -46,7 +46,7 @@ export namespace Components {
46
46
  "api_url": string;
47
47
  "env": string;
48
48
  "order_id": string;
49
- "otp_phone_number": string;
49
+ "phone_number": string;
50
50
  "redirect_id": string;
51
51
  "token": string;
52
52
  }
@@ -301,7 +301,7 @@ declare namespace LocalJSX {
301
301
  "api_url"?: string;
302
302
  "env"?: string;
303
303
  "order_id"?: string;
304
- "otp_phone_number"?: string;
304
+ "phone_number"?: string;
305
305
  "redirect_id"?: string;
306
306
  "token"?: string;
307
307
  }
@@ -1,7 +1,8 @@
1
1
  export default class Events {
2
- static cameraModule: any;
2
+ static callingModule: any;
3
3
  static init(element: any): void;
4
4
  static flowStarted(): void;
5
+ static flowAborted(): void;
5
6
  static flowCompleted(): void;
6
7
  static flowError(error: string): void;
7
8
  static tokenExpired(): void;
@@ -23,6 +23,7 @@ export declare class LandingValues extends GlobalValues {
23
23
  static readonly WarningMd: string;
24
24
  static readonly Terms: string;
25
25
  static readonly Button: string;
26
+ static readonly ButtonLeave: string;
26
27
  }
27
28
  export declare class PhoneValidationValues extends GlobalValues {
28
29
  static readonly Title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekyc_qoobiss/qbs-ect-cmp",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Person Identification Component",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",