@tsocial/tvweb-sdk.abb 0.0.0-beta.20260625-024836

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 (66) hide show
  1. package/assets/audio/en/keep_back_id_fit_border.mp3 +0 -0
  2. package/assets/audio/en/keep_front_id_fit_border.mp3 +0 -0
  3. package/assets/audio/en/move_face_closer.mp3 +0 -0
  4. package/assets/audio/en/move_face_into_frame.mp3 +0 -0
  5. package/assets/audio/en/please_hold_still.mp3 +0 -0
  6. package/assets/audio/vi/keep_back_id_fit_border.mp3 +0 -0
  7. package/assets/audio/vi/keep_front_id_fit_border.mp3 +0 -0
  8. package/assets/audio/vi/move_face_closer.mp3 +0 -0
  9. package/assets/audio/vi/move_face_into_frame.mp3 +0 -0
  10. package/assets/audio/vi/please_hold_still.mp3 +0 -0
  11. package/assets/v2/bg_camera_mask.png +0 -0
  12. package/assets/v2/bg_camera_mask_red.png +0 -0
  13. package/assets/v2/brand_logo.svg +35 -0
  14. package/assets/v2/flash_overlay.webp +0 -0
  15. package/assets/v2/flash_pattern_desktop.webp +0 -0
  16. package/assets/v2/flash_pattern_mobile.webp +0 -0
  17. package/assets/v2/frontal_arrow.gif +0 -0
  18. package/assets/v2/frontal_arrow.svg +6 -0
  19. package/assets/v2/ic_camera.svg +4 -0
  20. package/assets/v2/ic_close.png +0 -0
  21. package/assets/v2/ic_close.svg +9 -0
  22. package/assets/v2/ic_close_flash.svg +9 -0
  23. package/assets/v2/ic_close_white.png +0 -0
  24. package/assets/v2/ic_loading.gif +0 -0
  25. package/assets/v2/ic_loading.png +0 -0
  26. package/assets/v2/id_card_frame.png +0 -0
  27. package/assets/v2/id_card_frame_error.png +0 -0
  28. package/assets/v2/instruction_frontal.svg +6 -0
  29. package/assets/v2/instruction_left.svg +5 -0
  30. package/assets/v2/instruction_right.svg +5 -0
  31. package/assets/v2/instruction_up.svg +6 -0
  32. package/assets/v2/left_arrow.gif +0 -0
  33. package/assets/v2/qr_capture_cursor.png +0 -0
  34. package/assets/v2/qr_code_banner.png +0 -0
  35. package/assets/v2/qr_instruction.svg +49 -0
  36. package/assets/v2/right_arrow.gif +0 -0
  37. package/assets/v2/ts_logo.svg +6 -0
  38. package/assets/v2/up_arrow.gif +0 -0
  39. package/build/esm/chunk-0015538d.js +1 -0
  40. package/build/esm/chunk-080d4642.js +1 -0
  41. package/build/esm/chunk-08ab07a4.js +1 -0
  42. package/build/esm/chunk-1520b763.js +3 -0
  43. package/build/esm/chunk-23f22cf0.js +1 -0
  44. package/build/esm/chunk-259479f1.js +502 -0
  45. package/build/esm/chunk-2d04cdda.js +1 -0
  46. package/build/esm/chunk-3ba3f5be.js +1 -0
  47. package/build/esm/chunk-50924bca.js +1 -0
  48. package/build/esm/chunk-5c360a9c.js +85 -0
  49. package/build/esm/chunk-5d7eeacb.js +1261 -0
  50. package/build/esm/chunk-630b6747.js +1 -0
  51. package/build/esm/chunk-6e5fa179.js +1 -0
  52. package/build/esm/chunk-7daa3b76.js +1 -0
  53. package/build/esm/chunk-8a5beb79.js +1 -0
  54. package/build/esm/chunk-9950b40e.js +1 -0
  55. package/build/esm/chunk-b8d5649c.js +183 -0
  56. package/build/esm/chunk-bc46f915.js +1 -0
  57. package/build/esm/chunk-cb845d85.js +1 -0
  58. package/build/esm/chunk-e3a1c9ae.js +10 -0
  59. package/build/esm/chunk-f164fe97.js +3 -0
  60. package/build/esm/chunk-ffa40a6f.js +256 -0
  61. package/build/esm/tvweb-sdk.abb.esm.min.js +1 -0
  62. package/build/tvweb-sdk.abb.cjs.min.js +2296 -0
  63. package/build/tvweb-sdk.abb.standalone.js +96426 -0
  64. package/build/tvweb-sdk.abb.standalone.min.js +2296 -0
  65. package/build/types/index.d.ts +1857 -0
  66. package/package.json +39 -0
@@ -0,0 +1,256 @@
1
+ import{aN as e,I as i,aO as r,aP as t,aQ as o,P as s,r as n,e as a,s as l,a0 as d,j as c,al as g,am as f,aR as u,ai as h,aS as p,a3 as m,g as _,b as b,T as w,d as v,l as k,B as R,a as y,aT as S}from"./chunk-5d7eeacb.js";import{r as C,f as x,g as $,h as j,i as W,j as O,k as I,l as E,n as D,o as A,p as T}from"./chunk-080d4642.js";var P,L,V,z,M,B,F,N,H,U,q,K,J,Y,Z,G,Q,X,ee,ei,er,et,eo,es,en,ea,el,ed,ec,eg,ef,eu,eh,ep,em=Object.freeze({__proto__:null,blink:e,flipY:i,slide:r,spin:t,splash:o});let{ErrorDuration:e_}=l;function eb({children:e,errorMsg:i,className:r}){return d.isValidElement(e)?i?c.jsx("div",{className:r,children:d.cloneElement(e,{errorMsg:i})}):null:i?c.jsx("div",{className:r,children:i}):null}function ew({children:e,className:i,error:r}){let t=n.useRef(0),o=n.useRef(""),s=a(),l=n.useRef(e_.SHORT),{code:d,duration:c=e_.SHORT}=r||{},g=s(d);return Date.now()-t.current>=l.current?(t.current=Date.now(),l.current=c,o.current=g,eb({children:e,errorMsg:g,className:i})):eb({children:e,errorMsg:o.current,className:i})}ew.propTypes={children:s.node,className:s.string},ew.defaultProps={className:""};function ev(){if(z)return V;z=1;var e=g(),i=f(),r=j();return V=function(t){if(!i(t))return!1;var o=e(t);return"[object Error]"==o||"[object DOMException]"==o||"string"==typeof t.message&&"string"==typeof t.name&&!r(t)}}function ek(){return ei?ee:(ei=1,ee=/<%=([\s\S]+?)%>/g)}var eR=m(function(){if(ep)return eh;ep=1;var e=function(){if(L)return P;L=1;var e=C(),i=x(),r=$();return P=i(function(i,t,o,s){e(t,r(t),i,s)})}(),i=function(){if(B)return M;B=1;var e=O(),i=W(),r=ev();return M=i(function(i,t){try{return e(i,void 0,t)}catch(e){return r(e)?e:Error(e)}})}(),r=function(){if(N)return F;N=1;var e=u();return F=function(i,r){return e(r,function(e){return i[e]})}}(),t=function(){if(U)return H;U=1;var e=h(),i=Object.prototype,r=i.hasOwnProperty;return H=function(t,o,s,n){return void 0===t||e(t,i[s])&&!r.call(n,s)?o:t}}(),o=function(){if(K)return q;K=1;var e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};return q=function(i){return"\\"+e[i]}}(),s=ev(),n=T(),a=function(){if(X)return Q;X=1;var e=D(),i=function(){if(G)return Z;G=1;var e=E(),i=Y?J:(Y=1,J=I()(Object.keys,Object)),r=Object.prototype.hasOwnProperty;return Z=function(t){if(!e(t))return i(t);var o=[];for(var s in Object(t))r.call(t,s)&&"constructor"!=s&&o.push(s);return o}}(),r=A();return Q=function(t){return r(t)?e(t):i(t)}}(),l=ek(),d=function(){if(eu)return ef;eu=1;var e=function(){if(ea)return en;ea=1;var e=function(){if(es)return eo;es=1;var e=et?er:(et=1,er=function(e){return function(i){return null==e?void 0:e[i]}});return eo=e({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})}(),i=p(),r=/[&<>"']/g,t=RegExp(r.source);return en=function(o){return(o=i(o))&&t.test(o)?o.replace(r,e):o}}(),i=ed?el:(ed=1,el=/<%-([\s\S]+?)%>/g),r=eg?ec:(eg=1,ec=/<%([\s\S]+?)%>/g),t=ek();return ef={escape:i,evaluate:r,interpolate:t,variable:"",imports:{_:{escape:e}}}}(),c=p(),g=/\b__p \+= '';/g,f=/\b(__p \+=) '' \+/g,m=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_=/[()=,{}\[\]\/\s]/,b=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w=/($^)/,v=/['\n\r\u2028\u2029\\]/g,k=Object.prototype.hasOwnProperty;return eh=function(u,h,p){var R=d.imports._.templateSettings||d;p&&n(u,h,p)&&(h=void 0),u=c(u),h=e({},h,R,t);var y=e({},h.imports,R.imports,t),S=a(y),C=r(y,S),x,$,j=0,W=h.interpolate||w,O="__p += '",I=RegExp((h.escape||w).source+"|"+W.source+"|"+(W===l?b:w).source+"|"+(h.evaluate||w).source+"|$","g"),E=k.call(h,"sourceURL")?"//# sourceURL="+(h.sourceURL+"").replace(/\s/g," ")+"\n":"";u.replace(I,function(e,i,r,t,s,n){return r||(r=t),O+=u.slice(j,n).replace(v,o),i&&(x=!0,O+="' +\n__e("+i+") +\n'"),s&&($=!0,O+="';\n"+s+";\n__p += '"),r&&(O+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),j=n+e.length,e}),O+="';\n";var D=k.call(h,"variable")&&h.variable;if(D){if(_.test(D))throw Error("Invalid `variable` option passed into `_.template`")}else O="with (obj) {\n"+O+"\n}\n";O=($?O.replace(g,""):O).replace(f,"$1").replace(m,"$1;"),O="function("+(D||"obj")+") {\n"+(D?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(x?", __e = _.escape":"")+($?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+O+"return __p\n}";var A=i(function(){return Function(S,E+"return "+O).apply(void 0,C)});if(A.source=O,s(A))throw A;return A}}());let ey=({curStep:e,faceDirection:i})=>{let r=b(e,"stepTimeConstraints.delayTime");return!!r&&(null===e.firstFrameSpottedAt?(e.name===i&&(e.firstFrameSpottedAt=new Date().getTime()),!0):!!(new Date().getTime()-e.firstFrameSpottedAt<r)||!1)},eS=(e,i)=>({radius:e.radius??_("Selfie.progressCircle.radius")({theme:i}),strokeWidth:e.strokeWidth??_("Selfie.progressCircle.strokeWidth")({theme:i}),progress:e.progress??_("Selfie.progressCircle.progress")({theme:i}),showErrorRing:e.showErrorRing??_("Selfie.progressCircle.showErrorRing")({theme:i}),activeColor:e.activeColor??_("Selfie.progressCircle.activeColor")({theme:i}),innerPadding:e.innerPadding??_("Selfie.progressCircle.innerPadding")({theme:i}),outsideRingColor:e.outsideRingColor??_("Selfie.progressCircle.outsideRingColor")({theme:i}),outsideRingOpacity:e.outsideRingOpacity??_("Selfie.progressCircle.outsideRingOpacity")({theme:i}),insideRingColor:e.insideRingColor??_("Selfie.progressCircle.insideRingColor")({theme:i}),insideRingWidth:e.insideRingWidth??_("Selfie.progressCircle.insideRingWidth")({theme:i}),insideRingStrokeDash:e.insideRingStrokeDash??_("Selfie.progressCircle.insideRingStrokeDash")({theme:i}),errorRingWidth:e.errorRingWidth??_("Selfie.progressCircle.errorRingWidth")({theme:i}),errorRingColor:e.errorRingColor??_("Selfie.progressCircle.errorRingColor")({theme:i}),dashedRingColor:e.dashedRingColor??_("Selfie.progressCircle.dashedRingColor")({theme:i}),dashedRingOpacity:e.dashedRingOpacity??_("Selfie.progressCircle.dashedRingOpacity")({theme:i}),dashedRingWidth:e.dashedRingWidth??_("Selfie.progressCircle.dashedRingWidth")({theme:i}),dashedRingLineThick:e.dashedRingLineThick??_("Selfie.progressCircle.dashedRingLineThick")({theme:i}),dashedRingLineSpacing:e.dashedRingLineSpacing??_("Selfie.progressCircle.dashedRingLineSpacing")({theme:i}),dashedInsideRingColor:e.dashedInsideRingColor??_("Selfie.progressCircle.dashedInsideRingColor")({theme:i}),dashedInsideRingWidth:e.dashedInsideRingWidth??_("Selfie.progressCircle.dashedInsideRingWidth")({theme:i}),showOutsideRing:e.showOutsideRing??_("Selfie.progressCircle.showOutsideRing")({theme:i}),showInsideRing:e.showInsideRing??_("Selfie.progressCircle.showInsideRing")({theme:i}),showDashedRing:e.showDashedRing??_("Selfie.progressCircle.showDashedRing")({theme:i})}),eC=(e,i)=>({radius:e.radius??_("Selfie.progressCircleV2.radius")({theme:i}),strokeWidth:e.strokeWidth??_("Selfie.progressCircleV2.strokeWidth")({theme:i}),progress:e.progress??_("Selfie.progressCircleV2.progress")({theme:i}),activeColor:e.activeColor??_("Selfie.progressCircleV2.activeColor")({theme:i}),neutralColor:e.neutralColor??_("Selfie.progressCircleV2.neutralColor")({theme:i}),errorColor:e.errorColor??_("Selfie.progressCircleV2.errorColor")({theme:i}),tickWidth:e.tickWidth??_("Selfie.progressCircleV2.tickWidth")({theme:i}),numberOfTicks:e.numberOfTicks??_("Selfie.progressCircleV2.numberOfTicks")({theme:i})}),ex=({incomingFrame:e,currentBestFrame:i})=>e?.isEyeClosed&&!i?.isEyeClosed?i:!e?.isEyeClosed&&i?.isEyeClosed?e:e?.blurScore>i?.blurScore?e:i;function e$(e){return new Promise(i=>{let r=new Image;r.onload=i,r.onerror=i,r.src=e})}let ej=[],eW=()=>{ej=[]},eO=(e,i,r,t)=>{t&&eW(),ej.push({id:null});let o=ej.length-1;if(e&&e.key){let t=new Blob([JSON.stringify(i)]);r.uploadFile({file:t,metadata:JSON.stringify({type:"selfie"}),label:"video"},{"X-TV-Key":e.key}).then(e=>{e&&e.data&&e.data.file_id?ej[o].id=e.data.file_id:ej[o].id=-1})}else{let e=new Blob([JSON.stringify(i)]);r.uploadFile({file:e,metadata:JSON.stringify({type:"selfie"}),label:"video"}).then(e=>{e&&e.data&&e.data.file_id?ej[o].id=e.data.file_id:ej[o].id=-1})}},eI=()=>new Promise(e=>{let i=setInterval(()=>{ej.every(e=>e.id)&&(e(),clearInterval(i))},200)}),eE=e=>e.enable?ej.some(e=>-1===e.id)?null:ej:[],eD=[],eA=null,eT=!1,eP=()=>eD,eL=()=>{eT=!0,eD=[];try{eA instanceof MediaStream&&(eA.getTracks().forEach(e=>e.stop()),eA=null)}catch(e){}};async function eV({outputImagesSize:e,videoEl:i,resultAnalyzeVideoAndWindowSizes:r}){let t;eL();let o=document.createElement("canvas");o.width=e,o.height=e;let s=o.getContext("2d");try{let n={mimeType:"video/webm"};try{let e=(eA=i?.captureStream()?.clone()).getVideoTracks()[0];await e.applyConstraints({width:{min:360,ideal:400},height:{min:360,ideal:400}})}catch(e){}MediaRecorder.isTypeSupported("video/mp4")&&(eT=!1,!function e(i,r,t,o){if(!i||!o)return;let{cropX:s,cropY:n,cropWidth:a,cropHeight:l}=o;i.drawImage(r,s,n,a,l,0,0,t,t),eT||requestAnimationFrame(()=>e(i,r,t,o))}(s,i,e,r),eA=o.captureStream(25),n={mimeType:"video/mp4",videoBitsPerSecond:25e5}),t=new MediaRecorder(eA,n);let a=async()=>{await new Promise((e,i)=>{t.ondataavailable=r=>(function(e,i,r){if(e.data.size>0){let r=new Blob([e.data],{type:"video/mp4"});eD.push(r),i()}else console.error("No video have recored!"),r()})(r,e,i),"inactive"!==t.state&&t.stop()})};t.stopVideoRecording=a,t.discardRecording=()=>{"inactive"!==t.state&&t.stop()}}catch(e){}return{mediaRecorder:t}}let ez={data:{settings:{sdk_settings:{passive_liveness_settings:{auto_capture:{enable:!0,show_capture_button:!0,show_countdown:!0,wait_for_best_image_time_ms_web:3e3},manual_capture:{show_countdown:!0,wait_for_best_image_time_ms_web:3e3},blur_check:{enable:!0,web_blurry_threshold:.4},close_eye_detector:{enable:!0,web_threshold:.342,web_timeout:5,force_check:!1},web_is_required_frontal_face:!0},active_liveness_settings:{reset_flow_on_orientation_change:!0,wait_before_start_flow_ms:2e3,face_tracking_setting:{enable:!1,web_terminate_threshold:.0030152991993743408,web_warning_threshold:.0017317430600108828,limit_for:"all_flow",max_warning_time:5},flow_interval_time_ms:3e3,take_one_picture_time_ms:3e3,limit_time_liveness_check:{enable:!1,limit_time_second:45,remain_time_show:10,format:"s",max_retry_count:0,non_stoppable:!1},terminate_if_no_face:{enable:!1,max_invalid_frame:5,max_time_ms:1e3},close_eye_detector:{enable:!0,web_threshold:.342,web_timeout:5,force_check:!1},exif_data_settings:{enable:!0},record_video:{enable:!1},save_encoded_frames:{enable:!1,enable_logging:!1,frames_batch_len:0,frames_interval_ms:180,quality_android:90,quality_ios:80},auto_gen_frame_ids:{enable:!1,max_items:50}}}}}},eM=30,eB=e=>{let{shouldStart:i,totalTime:r,totalDelayBetweenReset:t,interruptible:o=!0,onReset:s,onTick:a,onTimesUp:l}=e,d=n.useRef(new w({totalTime:r,totalDelayBetweenReset:t,interruptible:o}));return n.useEffect(()=>d.current.on("tick",({remainTime:e})=>{a({remainTime:e})}),[a]),n.useEffect(()=>d.current.on("delaystart",()=>{l()}),[l]),n.useEffect(()=>d.current.on("reset",({attemptCount:e,fromBackground:i})=>{s({attemptCount:e,fromBackground:i})}),[s]),n.useEffect(()=>i?d.current.start():()=>{},[i]),{stopTimer:n.useCallback(()=>{d.current.stop()},[])}},eF=v.g`
2
+ transition: stroke-dashoffset 0.4s;
3
+ transform: rotate(-90deg);
4
+ transform-origin: 50% 50%;
5
+ `,eN=v.circle`
6
+ transition: stroke-dashoffset 0.4s, stroke 0.4s;
7
+ transform: rotate(-90deg);
8
+ transform-origin: 50% 50%;
9
+ fill: none;
10
+ `,eH=v.circle`
11
+ transition: stroke-dashoffset 0.4s;
12
+ transform: rotate(-90deg);
13
+ transform-origin: 50% 50%;
14
+ `;function eU({className:e,style:i,radius:r,strokeWidth:t,progress:o,showErrorRing:s,activeColor:n,innerPadding:a,outsideRingColor:l,outsideRingOpacity:d,insideRingColor:g,insideRingWidth:f,insideRingStrokeDash:u,errorRingWidth:h,errorRingColor:p,dashedRingColor:m,dashedRingOpacity:_,dashedRingWidth:b,dashedRingLineThick:w,dashedRingLineSpacing:v,dashedInsideRingColor:k,dashedInsideRingWidth:R,showOutsideRing:y,showInsideRing:S,showDashedRing:C}){let x=2*r,$=2*r,j=r-2*t,W=2*Math.PI*j,O=j-b/2-t/2-a,I=2*Math.PI*O,E=O-R/2-b/2,D=2*Math.PI*E,A=E-f/2-R/2,T=E-h/2-R/2;return c.jsxs("svg",{className:e,style:i,width:x,height:$,viewBox:`0 0 ${x} ${$}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y?c.jsxs(c.Fragment,{children:[c.jsx("circle",{"data-testid":"outsideRing",opacity:d,cx:r,cy:r,r:j,stroke:l}),c.jsx(eH,{"data-testid":"outsideAnimateRing",cx:r,cy:r,r:j,stroke:n,strokeWidth:t,strokeLinecap:"round",strokeDasharray:`${W} ${W}`,style:{strokeDashoffset:W-o/100*W}})]}):null,C?c.jsxs(c.Fragment,{children:[c.jsx("circle",{"data-testid":"dashedRing",opacity:_,cx:r,cy:r,r:O,stroke:m,strokeWidth:b,strokeDasharray:`${w} ${v}`}),c.jsx("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",children:c.jsx("circle",{cx:r,cy:r,r:O,stroke:n,strokeWidth:b,strokeDasharray:`${w} ${v}`})}),c.jsx("g",{mask:"url(#mask0)",children:c.jsx(eH,{"data-testid":"dashedAnimateRing",cx:r,cy:r,r:O,stroke:n,strokeWidth:b,strokeDasharray:`${I} ${I}`,style:{strokeDashoffset:I-o/100*I}})}),c.jsx("circle",{"data-testid":"dashedInsideRing",opacity:_,cx:r,cy:r,r:E,stroke:k,strokeWidth:R}),c.jsx(eH,{"data-testid":"dashedInsideAnimateRing",cx:r,cy:r,r:E,stroke:n,strokeWidth:R,strokeLinecap:"round",strokeDasharray:`${D} ${D}`,style:{strokeDashoffset:D-o/100*D}})]}):null,S?c.jsx("circle",{"data-testid":"insideRing",strokeDasharray:u,cx:r,cy:r,r:A,stroke:g,strokeWidth:f}):null,s?c.jsx("circle",{"data-testid":"errorRing",strokeDasharray:u,cx:r,cy:r,r:T,stroke:p,strokeWidth:h}):null]})}eU.propTypes={className:s.string,style:s.shape({}),radius:s.number,strokeWidth:s.number,progress:s.number,showErrorRing:s.bool,activeColor:s.string,innerPadding:s.number,outsideRingColor:s.string,outsideRingOpacity:s.number,insideRingColor:s.string,insideRingWidth:s.number,insideRingStrokeDash:s.string,errorRingColor:s.string,errorRingWidth:s.number,dashedRingColor:s.string,dashedRingOpacity:s.number,dashedRingWidth:s.number,dashedRingLineThick:s.number,dashedRingLineSpacing:s.number,dashedInsideRingColor:s.string,dashedInsideRingWidth:s.number,showOutsideRing:s.bool,showDashedRing:s.bool,showInsideRing:s.bool},eU.defaultProps={className:"",style:null,radius:160,strokeWidth:3,progress:0,showErrorRing:!1,activeColor:"#0092ff",innerPadding:5,outsideRingColor:"#f2f6f9",outsideRingOpacity:.1,insideRingColor:"#f2f6f9",insideRingWidth:3,insideRingStrokeDash:"0",errorRingColor:"#df0000",errorRingWidth:3,dashedRingColor:"#ffffff",dashedRingOpacity:.3,dashedRingWidth:10,dashedRingLineThick:1,dashedRingLineSpacing:6,dashedInsideRingColor:"#ffffff",dashedInsideRingWidth:0,showOutsideRing:!0,showDashedRing:!0,showInsideRing:!0};let{blink:eq,slide:eK,spin:eJ}=em,eY=k`
15
+ z-index: ${R+20};
16
+ color: #ffffff;
17
+ `,eZ=v.div`
18
+ ${eY}
19
+ `,eG=k`
20
+ ${eY}
21
+ ${({top:e})=>e&&k`
22
+ top: ${e}px;
23
+ `}
24
+ ${({bottom:e})=>e&&k`
25
+ bottom: ${e}px;
26
+ `}
27
+ ${({centerY:e})=>e&&k`
28
+ top: 50%;
29
+ transform: translateY(-50%);
30
+ `}
31
+ font-size: ${_("Selfie.error.fontSize")};
32
+ font-weight: ${_("Selfie.error.fontWeight")};
33
+ background: ${_("Selfie.error.backgroundColor")};
34
+ color: ${_("Selfie.error.color")};
35
+ padding: ${_("Selfie.error.padding")};
36
+ border-radius: ${_("Selfie.error.borderRadius")};
37
+ position: absolute;
38
+ white-space: pre-wrap;
39
+ text-align: center;
40
+ max-width: 80%;
41
+ `;v(ew)`
42
+ ${eG}
43
+ `;let eQ=v.div`
44
+ ${eG}
45
+ `,eX=v.div`
46
+ z-index: ${R+20};
47
+ display: flex;
48
+ align-items: center;
49
+ position: absolute;
50
+ left: 50%;
51
+ transform: translate(-50%, 0);
52
+ ${({top:e})=>e&&k`
53
+ top: ${e}px;
54
+ `}
55
+ `,e0=v(eZ)`
56
+ font-size: ${_("Selfie.countdown.fontSize")};
57
+ font-weight: ${_("Selfie.countdown.fontWeight")};
58
+ background: ${_("Selfie.countdown.backgroundColor")};
59
+ color: ${_("Selfie.countdown.color")};
60
+ padding: ${_("Selfie.countdown.padding")};
61
+ border-radius: ${_("Selfie.countdown.borderRadius")};
62
+ white-space: nowrap;
63
+ `,e1=v(e0)`
64
+ position: absolute;
65
+ left: 50%;
66
+ transform: translate(-50%, 0);
67
+ ${({top:e})=>e&&k`
68
+ top: ${e}px;
69
+ `}
70
+ `,e2=v(eZ)`
71
+ position: absolute;
72
+ ${({top:e})=>e&&k`
73
+ top: ${e}px;
74
+ `}
75
+ ${({bottom:e})=>e&&k`
76
+ bottom: ${e}px;
77
+ `}
78
+ color: ${_("Selfie.Active.instruction.color")};
79
+ font-size: ${_("Selfie.Active.instruction.fontSize")};
80
+ font-weight: ${_("Selfie.Active.instruction.fontWeight")};
81
+ text-shadow: ${_("Selfie.Active.instruction.textShadow")};
82
+ background-color: ${_("Selfie.Active.instruction.backgroundColor")};
83
+ border: ${_("Selfie.Active.instruction.border")};
84
+ border-radius: ${_("Selfie.Active.instruction.borderRadius")};
85
+ `,e3=v.div`
86
+ height: ${()=>y.isMobile?"50px":"70px"};
87
+ position: absolute;
88
+ ${({top:e})=>e&&k`
89
+ top: ${e}px;
90
+ `}
91
+ ${({bottom:e})=>e&&k`
92
+ bottom: ${e}px;
93
+ `}
94
+ width: 100%;
95
+ display: flex;
96
+ justify-content: center;
97
+ align-items: center;
98
+ z-index: ${R+20};
99
+ `,e5=v.div`
100
+ width: ${_("Selfie.Active.imageHolder.width")};
101
+ height: ${_("Selfie.Active.imageHolder.height")};
102
+ border-radius: ${_("Selfie.Active.imageHolder.borderRadius")};
103
+ font-size: ${_("Selfie.Active.imageHolder.fontSize")};
104
+ color: ${_("Selfie.Active.imageHolder.color")};
105
+ font-weight: ${_("Selfie.Active.imageHolder.fontWeight")};
106
+
107
+ ${({theme:e})=>"v2"===b(e,"themeVersion")?"border: unset;":`border: ${_("Selfie.Active.imageHolder.border")({theme:e})};`}
108
+
109
+ display: flex;
110
+ justify-content: center;
111
+ align-items: center;
112
+
113
+ & + & {
114
+ margin-left: 10px;
115
+ }
116
+
117
+ ${e=>e.active?k`
118
+ img:not(.image_preview) {
119
+ border: ${_("Selfie.Active.imageHolder.activeStepBorder")};
120
+ border-radius: ${_("Selfie.Active.imageHolder.activeStepBorderRadius")};
121
+ }
122
+ `:k`
123
+ opacity: 0.3;
124
+ `}
125
+
126
+ img {
127
+ width: 100%;
128
+ margin: 0;
129
+ border-radius: ${_("Selfie.Active.imageHolder.borderRadius")};
130
+ }
131
+ img.image_preview {
132
+ border: ${_("Selfie.Active.imageHolder.border")};
133
+ }
134
+ `,e4=v.div`
135
+ color: #ffffff;
136
+ height: 70px;
137
+ position: absolute;
138
+ bottom: 0;
139
+ width: 100%;
140
+ display: flex;
141
+ justify-content: center;
142
+ align-items: center;
143
+ z-index: ${R+20};
144
+ `,e8=v.div`
145
+ ${({disabled:e})=>e?k`
146
+ pointer-events: none;
147
+ `:k`
148
+ cursor: pointer;
149
+ `}
150
+ text-align: center;
151
+
152
+ img {
153
+ width: ${_("Selfie.captureIcon.width")};
154
+ }
155
+ `,e9=v.div`
156
+ position: absolute;
157
+ width: 100%;
158
+ top: 0;
159
+ bottom: 0;
160
+ display: flex;
161
+ justify-content: center;
162
+ align-items: center;
163
+ color: #ffffff;
164
+ font-size: 140px;
165
+ opacity: 0.6;
166
+ `,e6=v.div`
167
+ position: absolute;
168
+ width: 100%;
169
+ top: 0;
170
+ bottom: 0;
171
+ display: flex;
172
+ flex-direction: column;
173
+ justify-content: center;
174
+ align-items: center;
175
+ ${eK.default};
176
+ ${eq.default};
177
+ `,e7=v(eU)`
178
+ position: absolute;
179
+ top: 0;
180
+ left: 0;
181
+ width: 100%;
182
+ height: 100%;
183
+ `,ie=v(({className:e="",radius:i=80,neutralColor:r="#CBD5E1",activeColor:t="#0276F1",errorColor:o="#E84848",strokeWidth:s=2,tickWidth:n=15,numberOfTicks:a=200,progress:l=0,showErrorRing:d=!1})=>{let g=2*i,f=i-5,u=2*Math.PI*f,h=Array.from({length:a}).map((e,r)=>{let t=360*r/a+3;return c.jsx("use",{href:"#tick",transform:`rotate(${t} ${i} ${i})`},r)}),p=i-eM,m=2*Math.PI*p;return c.jsxs("svg",{height:g,width:g,viewBox:`0 0 ${g} ${g}`,className:e,xmlns:"http://www.w3.org/2000/svg",children:[d?c.jsx("circle",{cx:i,cy:i,r:i-eM,stroke:o,strokeWidth:s,fill:"none"}):c.jsxs(c.Fragment,{children:[c.jsx("circle",{cx:i,cy:i,r:p,stroke:r,strokeWidth:s,fill:"none"}),c.jsx(eN,{cx:i,cy:i,r:p,stroke:t,strokeWidth:s,strokeLinecap:"round",strokeDasharray:`${m} ${m}`,style:{strokeDashoffset:m-l/100*m}})]}),c.jsx("defs",{children:c.jsx("line",{id:"tick",x1:i,y1:"0",x2:i,y2:n,stroke:r,strokeWidth:s,strokeLinecap:"round"})}),c.jsx("g",{id:"border-segments",children:h}),c.jsx("mask",{id:"tickMask",maskUnits:"userSpaceOnUse",children:c.jsx("g",{id:"tick-mask-segments",children:h})}),c.jsx("g",{mask:"url(#tickMask)",children:c.jsx(eF,{strokeDasharray:`${u} ${u}`,style:{strokeDashoffset:u-l/100*u},children:c.jsx("circle",{cx:i,cy:i,r:f,stroke:t,strokeWidth:20,fill:"none"})})})]})})`
184
+ position: absolute;
185
+ top: 0;
186
+ left: 0;
187
+ width: 100%;
188
+ height: 100%;
189
+ `,ii=v(function({className:e=""}){return c.jsx("svg",{className:e,width:"320",height:"320",viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M320 0H0V320H320V0ZM160 296C235.111 296 296 235.111 296 160C296 84.8893 235.111 24 160 24C84.8893 24 24 84.8893 24 160C24 235.111 84.8893 296 160 296Z",fill:"currentColor"})})})`
190
+ width: 100%;
191
+ height: 100%;
192
+ vertical-align: middle;
193
+ margin: 0;
194
+ color: ${_("Selfie.backgroundColor")};
195
+ `,ir=v(function({className:e="",radius:i=160,backgroundColor:r="#fff",padding:t=0}){let o=2*i;return c.jsxs("svg",{className:e,width:o,height:o,viewBox:`0 0 ${o} ${o}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("mask",{id:"CIRCLE_MASK",children:[c.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white",mask:"url(#CIRCLE_MASK)"}),c.jsx("circle",{cx:i,cy:i,r:i-t,fill:"black"})]}),c.jsx("circle",{cx:i,cy:i,r:i,fill:"none"}),c.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:r,mask:"url(#CIRCLE_MASK)"})]})})`
196
+ width: 100%;
197
+ height: 100%;
198
+ vertical-align: middle;
199
+ margin: 0;
200
+ color: ${_("Selfie.backgroundColor")};
201
+ `,it=v.div`
202
+ position: absolute;
203
+ z-index: -1;
204
+ background: rgba(223, 0, 0, 0.2);
205
+ border-radius: 50%;
206
+ width: 86%;
207
+ height: 86%;
208
+ top: 7%;
209
+ left: 7%;
210
+ `,io=S`
211
+ from {
212
+ opacity: 1;
213
+ }
214
+
215
+ to {
216
+ opacity: 0;
217
+ }
218
+ `,is=v.div`
219
+ position: absolute;
220
+ width: 100%;
221
+ top: 0;
222
+ bottom: 0;
223
+ z-index: -1;
224
+ background: rgba(255, 255, 255, 0.3);
225
+ animation: ${io} 1s infinite;
226
+ border-radius: 50%;
227
+ `,ia=v.div`
228
+ top: 0;
229
+ left: 0;
230
+ right: 0;
231
+ bottom: 0;
232
+ position: absolute;
233
+ margin: auto;
234
+ width: ${_("Selfie.loadingIcon.width")};
235
+ height: ${_("Selfie.loadingIcon.height")};
236
+
237
+ img {
238
+ width: 100%;
239
+ }
240
+
241
+ z-index: ${R+20};
242
+ ${eJ.default}
243
+ `,il=v.div`
244
+ text-align: center;
245
+ color: ${_("Selfie.title.color")};
246
+ font-size: ${_("Selfie.title.fontSize")};
247
+ font-weight: ${_("Selfie.title.fontWeight")};
248
+ background-color: ${_("Selfie.title.backgroundColor")};
249
+ position: absolute;
250
+ top: ${e=>e.y};
251
+ z-index: ${R+10};
252
+ display: flex;
253
+ align-items: center;
254
+ justify-content: center;
255
+ width: 100%;
256
+ `;export{em as A,e4 as B,e9 as C,ex as D,it as E,ew as F,e6 as I,ia as L,e7 as O,eQ as S,il as T,ii as a,e1 as b,e8 as c,eC as d,ir as e,eM as f,eS as g,ie as h,is as i,e2 as j,e3 as k,e5 as l,eX as m,e0 as n,eE as o,e$ as p,ez as q,eO as r,eP as s,eR as t,eB as u,eL as v,eI as w,eV as x,eW as y,ey as z};
@@ -0,0 +1 @@
1
+ export{s as Constants,b0 as SDK,aX as SDKAdapter,aZ as ScannerType,a$ as defaultClientSettings,a_ as defaultReadIDCardSteps,aY as getSDKVersion}from"./chunk-5d7eeacb.js";