@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
Binary file
Binary file
@@ -0,0 +1,35 @@
1
+ <svg width="120" height="45" viewBox="0 0 120 45" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_2164_28172)">
3
+ <path d="M6.69503 25.2902L0.0193135 44.2597C-0.0458154 44.4496 0.0909553 44.6527 0.292855 44.6527H4.14197C4.47413 44.6527 4.77372 44.4431 4.88444 44.1221L6.16748 40.4737H14.0416L15.3246 44.1221C15.4353 44.4365 15.7349 44.6527 16.0671 44.6527H19.9162C20.1181 44.6527 20.2614 44.4496 20.1897 44.2597L13.5075 25.2837C13.2665 24.5959 12.6152 24.1309 11.8858 24.1309H8.31022C7.58078 24.1309 6.92949 24.5894 6.68851 25.2837L6.69503 25.2902ZM7.4375 36.871L10.1013 29.299L12.765 36.871H7.43098H7.4375Z" fill="white"/>
4
+ <path d="M39.0252 29.1738C39.0252 26.3769 36.7653 24.1367 33.9843 24.1367H23.4334C22.7821 24.1367 22.248 24.6673 22.248 25.3223V43.414C22.248 44.0952 22.7951 44.6455 23.4725 44.6455H33.6196C36.5894 44.6455 39.0252 42.2022 39.0252 39.2088C39.0252 36.5232 36.902 34.3485 34.2513 34.2699C36.9151 34.1193 39.0252 31.8791 39.0252 29.1607V29.1738ZM34.2448 30.1695C34.2448 31.5057 33.1702 32.5865 31.8415 32.5865H28.8847V36.2153H31.848C33.1767 36.2153 34.2448 37.2765 34.2448 38.6127C34.2448 39.9489 33.1636 41.0428 31.8285 41.0428H27.0546V27.7655H31.8546C33.1897 27.7655 34.2448 28.8267 34.2448 30.1695Z" fill="white"/>
5
+ <path d="M58.245 29.1738C58.245 26.3769 55.985 24.1367 53.204 24.1367H42.6531C42.0018 24.1367 41.4678 24.6673 41.4678 25.3223V43.414C41.4678 44.0952 42.0149 44.6455 42.6922 44.6455H52.8393C55.8092 44.6455 58.245 42.2022 58.245 39.2088C58.245 36.5232 56.1218 34.3485 53.471 34.2699C56.1348 34.1193 58.245 31.8791 58.245 29.1607V29.1738ZM53.458 30.1695C53.458 31.5057 52.3834 32.5865 51.0547 32.5865H48.0979V36.2153H51.0613C52.3899 36.2153 53.458 37.2765 53.458 38.6127C53.458 39.9489 52.3769 41.0428 51.0417 41.0428H46.2678V27.7655H51.0678C52.4029 27.7655 53.458 28.8267 53.458 30.1695Z" fill="white"/>
6
+ <path d="M111.345 44.0225L105.555 37.433H105.522L111.234 30.778C111.436 30.5421 111.273 30.1753 110.96 30.1753H107.47C107.124 30.1753 106.799 30.326 106.571 30.588L100.722 37.4002V25.3347C100.722 24.6797 100.195 24.1426 99.5369 24.1426H97.1076C96.4563 24.1426 95.9287 24.6731 95.9287 25.3282V43.4854C95.9287 44.1338 96.4497 44.6579 97.0945 44.6579H99.5824C100.208 44.6579 100.716 44.1469 100.716 43.5181V37.4723L106.662 44.2386C106.883 44.4876 107.196 44.6317 107.528 44.6317H111.058C111.371 44.6317 111.54 44.2583 111.332 44.0225H111.345Z" fill="white"/>
7
+ <path d="M82.7729 44.6519C83.4307 44.6519 83.9647 44.1148 83.9647 43.4532V35.2524C83.9647 35.2524 83.854 33.0253 86.8239 33.0253C86.8239 33.0253 88.7517 32.8222 88.7517 34.9903V43.4532C88.7517 44.1213 89.2857 44.6585 89.9501 44.6585H92.3729C93.0241 44.6585 93.5517 44.1279 93.5517 43.4729V34.9772C93.5517 34.9772 93.7015 29.5733 88.7582 29.5733C88.7582 29.5733 84.3815 29.4489 82.7533 31.9117V31.3681C82.7533 30.7065 82.2258 30.1759 81.5745 30.1759H80.3305C79.6792 30.1759 79.1582 30.7065 79.1582 31.355V43.4532C79.1582 44.1148 79.6923 44.6585 80.3566 44.6585H82.7729V44.6519Z" fill="white"/>
8
+ <path d="M67.487 29.6909C59.2938 31.1058 60.0298 38.6385 60.0298 38.6385C60.0298 45.2608 66.3798 44.9988 66.3798 44.9988C70.509 44.9988 71.8051 43.0206 71.9549 42.7717V43.4595C71.9549 44.1211 72.4889 44.6582 73.1467 44.6582H75.5825C76.2273 44.6582 76.7549 44.1276 76.7549 43.4791V31.3678C74.3842 28.8656 67.487 29.6909 67.487 29.6909ZM71.9549 39.4115C70.8607 41.5206 68.3532 41.5337 68.3532 41.5337C64.5627 41.6647 64.9926 37.3874 64.9926 37.3874C65.2401 33.6997 68.0927 33.1298 68.0927 33.1298C70.6458 32.5403 71.9484 33.7783 71.9484 33.7783L71.9614 39.4049L71.9549 39.4115Z" fill="white"/>
9
+ <path d="M116.033 7.59825C114.88 3.22926 110.908 0 106.192 0C104.453 0 102.812 0.438865 101.379 1.21179C101.158 1.32969 101.184 1.67031 101.425 1.74891C103.294 2.41048 108.778 4.72926 110.113 9.54367C112.178 8.14192 113.571 7.5393 116.033 7.59825Z" fill="url(#paint0_linear_2164_28172)"/>
10
+ <path d="M106.648 15.2819C105.404 14.4893 103.998 13.3364 102.643 12.0264C100.533 9.98928 98.5464 7.55915 97.5043 5.47618C97.4327 5.33207 97.2242 5.31897 97.1526 5.46308C95.7328 8.15522 95.6221 11.6334 96.8725 14.3714C100.298 22.2251 111.377 22.664 115.408 15.0591C113.428 17.915 108.908 16.6771 106.648 15.2819Z" fill="white"/>
11
+ <path d="M119.915 8.50161C118.691 7.84659 116.398 7.61078 116.398 7.61078C116.274 7.61078 116.151 7.60423 116.033 7.59768C113.565 7.53873 112.171 8.14135 110.113 9.54309C109.579 9.90335 108.999 10.316 108.348 10.7876C105.411 12.9034 103.105 12.1959 102.649 12.0256C104.004 13.3357 105.417 14.4885 106.655 15.2811C108.915 16.6763 113.435 17.9143 115.415 15.0584C115.643 14.7767 116.177 13.1981 116.177 13.1981C117.102 9.661 119.01 8.94047 119.876 8.80292C120.026 8.77672 120.058 8.58021 119.922 8.50816L119.915 8.50161Z" fill="url(#paint1_linear_2164_28172)"/>
12
+ </g>
13
+ <defs>
14
+ <linearGradient id="paint0_linear_2164_28172" x1="103.939" y1="-0.851528" x2="118.625" y2="12.7285" gradientUnits="userSpaceOnUse">
15
+ <stop stop-color="white"/>
16
+ <stop offset="0.16" stop-color="#F9F9F9"/>
17
+ <stop offset="0.37" stop-color="#E8E9E9"/>
18
+ <stop offset="0.61" stop-color="#CDCED0"/>
19
+ <stop offset="0.87" stop-color="#A8A9AC"/>
20
+ <stop offset="1" stop-color="#939598"/>
21
+ </linearGradient>
22
+ <linearGradient id="paint1_linear_2164_28172" x1="119.935" y1="12.1894" x2="102.356" y2="12.1894" gradientUnits="userSpaceOnUse">
23
+ <stop stop-color="white"/>
24
+ <stop offset="0.19" stop-color="#FAFAFB"/>
25
+ <stop offset="0.38" stop-color="#EEEEEF"/>
26
+ <stop offset="0.58" stop-color="#D9DADB"/>
27
+ <stop offset="0.78" stop-color="#BCBDBF"/>
28
+ <stop offset="0.98" stop-color="#97999C"/>
29
+ <stop offset="1" stop-color="#939598"/>
30
+ </linearGradient>
31
+ <clipPath id="clip0_2164_28172">
32
+ <rect width="120" height="45" fill="white"/>
33
+ </clipPath>
34
+ </defs>
35
+ </svg>
Binary file
Binary file
@@ -0,0 +1,6 @@
1
+ <svg width="172" height="172" viewBox="0 0 172 172" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M26 2H6C3.79086 2 2 3.79086 2 6L2 26" stroke="#FFB84D" stroke-width="3" stroke-linecap="round"/>
3
+ <path d="M146 2H166C168.209 2 170 3.79086 170 6L170 26" stroke="#FFB84D" stroke-width="3" stroke-linecap="round"/>
4
+ <path d="M26 170H6C3.79086 170 2 168.209 2 166L2 146" stroke="#FFB84D" stroke-width="3" stroke-linecap="round"/>
5
+ <path d="M146 170H166C168.209 170 170 168.209 170 166L170 146" stroke="#FFB84D" stroke-width="3" stroke-linecap="round"/>
6
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="81" height="81" viewBox="0 0 81 81" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="40.5" cy="40.5" r="38" stroke="white" stroke-width="5"/>
3
+ <circle cx="40.5" cy="40.5" r="32.5" fill="white"/>
4
+ </svg>
Binary file
@@ -0,0 +1,9 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_2109_22710" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="5" y="5" width="22" height="22">
3
+ <path d="M25.3337 15.9993H6.66699M16.0003 6.66602L6.66699 15.9993L16.0003 25.3327" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </mask>
5
+ <g mask="url(#mask0_2109_22710)">
6
+ <rect x="0.5" y="0.5" width="31" height="31" stroke="white"/>
7
+ <rect width="32" height="32" fill="white"/>
8
+ </g>
9
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_2027_15049" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="5" y="5" width="22" height="22">
3
+ <path d="M25.3334 15.9993H6.66669M16 6.66602L6.66669 15.9993L16 25.3327" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </mask>
5
+ <g mask="url(#mask0_2027_15049)">
6
+ <rect x="0.5" y="0.5" width="31" height="31" stroke="black"/>
7
+ <rect width="32" height="32" fill="black"/>
8
+ </g>
9
+ </svg>
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,6 @@
1
+ <svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="36" cy="36" r="21.5" fill="#E6F1FE" stroke="#0276F1" stroke-width="3"/>
3
+ <ellipse cx="26.909" cy="31.4545" rx="1.81818" ry="3.63636" fill="#0276F1"/>
4
+ <ellipse cx="45.0911" cy="31.4545" rx="1.81818" ry="3.63636" fill="#0276F1"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M30.0908 44.1818C30.0908 43.4287 30.7013 42.8182 31.4545 42.8182H40.5454C41.2985 42.8182 41.909 43.4287 41.909 44.1818C41.909 44.9349 41.2985 45.5455 40.5454 45.5455H31.4545C30.7013 45.5455 30.0908 44.9349 30.0908 44.1818Z" fill="#0276F1"/>
6
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="36" cy="36" r="21.5" fill="#E6F1FE" stroke="#0276F1" stroke-width="3"/>
3
+ <ellipse cx="28.7274" cy="30.5455" rx="1.81818" ry="3.63636" fill="#0276F1"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M15.5454 44.1818C15.5454 43.4287 16.1559 42.8182 16.909 42.8182L26.909 42.8182C27.6622 42.8182 28.2727 43.4287 28.2727 44.1818C28.2727 44.9349 27.6622 45.5454 26.909 45.5454L16.909 45.5454C16.1559 45.5454 15.5454 44.9349 15.5454 44.1818Z" fill="#0276F1"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="20" cy="20" r="21.5" transform="matrix(-1 0 0 1 56 16)" fill="#E6F1FE" stroke="#0276F1" stroke-width="3"/>
3
+ <ellipse cx="2" cy="3.5" rx="2" ry="3.5" transform="matrix(-1 0 0 1 45 27)" fill="#0276F1"/>
4
+ <path d="M55 44L45 44" stroke="#0276F1" stroke-width="3" stroke-linecap="round"/>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="36" cy="36" r="21.5" fill="#E6F1FE" stroke="#0276F1" stroke-width="3"/>
3
+ <ellipse cx="26.909" cy="25.0909" rx="1.81818" ry="3.63636" fill="#0276F1"/>
4
+ <ellipse cx="45.0911" cy="25.0909" rx="1.81818" ry="3.63636" fill="#0276F1"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M30.0908 33.2727C30.0908 32.5196 30.7013 31.9091 31.4545 31.9091H40.5454C41.2985 31.9091 41.909 32.5196 41.909 33.2727C41.909 34.0258 41.2985 34.6364 40.5454 34.6364H31.4545C30.7013 34.6364 30.0908 34.0258 30.0908 33.2727Z" fill="#0276F1"/>
6
+ </svg>
Binary file
Binary file
Binary file
@@ -0,0 +1,49 @@
1
+ <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="100" height="100" rx="40" fill="#CBEEFE" fill-opacity="0.7"/>
3
+ <g opacity="0.25" filter="url(#filter0_f_7695_1647)">
4
+ <path d="M36.5801 36.0337H45.5342V50.645H30.9229V41.6909C30.9229 38.5666 33.4557 36.0337 36.5801 36.0337Z" stroke="#2432A2" stroke-width="5.72275"/>
5
+ <rect x="36.0681" y="41.2835" width="4.21615" height="4.21615" fill="#2432A2" stroke="#2432A2" stroke-width="0.163507"/>
6
+ <path d="M45.5342 59.8088V74.4202H36.5801C33.4557 74.4202 30.9229 71.8873 30.9229 68.7629V59.8088H45.5342Z" stroke="#2432A2" stroke-width="5.72275"/>
7
+ <rect x="36.0681" y="65.0588" width="4.21615" height="4.21615" fill="#2432A2" stroke="#2432A2" stroke-width="0.163507"/>
8
+ <path d="M75.5088 59.8088V68.7629C75.5088 71.8873 72.9759 74.4202 69.8516 74.4202H60.8975V59.8088H75.5088Z" stroke="#2432A2" stroke-width="5.72275"/>
9
+ <rect x="66.0427" y="65.0588" width="4.21615" height="4.21615" fill="#2432A2" stroke="#2432A2" stroke-width="0.163507"/>
10
+ <path d="M69.8516 36.0337C72.9759 36.0337 75.5088 38.5666 75.5088 41.6909V50.645H60.8975V36.0337H69.8516Z" stroke="#2432A2" stroke-width="5.72275"/>
11
+ <rect x="66.0427" y="41.2835" width="4.21615" height="4.21615" fill="#2432A2" stroke="#2432A2" stroke-width="0.163507"/>
12
+ </g>
13
+ <mask id="mask0_7695_1647" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="24" y="24" width="52" height="52">
14
+ <rect x="24.2861" y="24.2858" width="51.4286" height="51.4286" fill="#D9D9D9"/>
15
+ </mask>
16
+ <g mask="url(#mask0_7695_1647)">
17
+ <g filter="url(#filter1_i_7695_1647)">
18
+ <path d="M24.2861 44.074V27.4394C24.2861 26.5545 24.5904 25.8076 25.199 25.1986C25.808 24.59 26.5549 24.2858 27.4398 24.2858H44.0744C44.9592 24.2858 45.7062 24.59 46.3152 25.1986C46.9237 25.8076 47.228 26.5545 47.228 27.4394V44.074C47.228 44.9589 46.9237 45.7058 46.3152 46.3148C45.7062 46.9234 44.9592 47.2276 44.0744 47.2276H27.4398C26.5549 47.2276 25.808 46.9234 25.199 46.3148C24.5904 45.7058 24.2861 44.9589 24.2861 44.074ZM30.5934 40.9203H40.9207V30.593H30.5934V40.9203ZM24.2861 72.5607V55.9261C24.2861 55.0413 24.5904 54.2943 25.199 53.6853C25.808 53.0768 26.5549 52.7725 27.4398 52.7725H44.0744C44.9592 52.7725 45.7062 53.0768 46.3152 53.6853C46.9237 54.2943 47.228 55.0413 47.228 55.9261V72.5607C47.228 73.4456 46.9237 74.1925 46.3152 74.8015C45.7062 75.4101 44.9592 75.7143 44.0744 75.7143H27.4398C26.5549 75.7143 25.808 75.4101 25.199 74.8015C24.5904 74.1925 24.2861 73.4456 24.2861 72.5607ZM30.5934 69.4071H40.9207V59.0798H30.5934V69.4071ZM52.7729 44.074V27.4394C52.7729 26.5545 53.0771 25.8076 53.6857 25.1986C54.2947 24.59 55.0416 24.2858 55.9265 24.2858H72.5611C73.4459 24.2858 74.1929 24.59 74.8019 25.1986C75.4104 25.8076 75.7147 26.5545 75.7147 27.4394V44.074C75.7147 44.9589 75.4104 45.7058 74.8019 46.3148C74.1929 46.9234 73.4459 47.2276 72.5611 47.2276H55.9265C55.0416 47.2276 54.2947 46.9234 53.6857 46.3148C53.0771 45.7058 52.7729 44.9589 52.7729 44.074ZM59.0801 40.9203H69.4074V30.593H59.0801V40.9203ZM69.9876 75.7143V69.9706H75.7147V75.7143H69.9876ZM52.7729 58.4996V52.7725H58.5166V58.4996H52.7729ZM58.5166 64.2434V58.4996H64.2438V64.2434H58.5166ZM52.7729 69.9706V64.2434H58.5166V69.9706H52.7729ZM58.5166 75.7143V69.9706H64.2438V75.7143H58.5166ZM64.2438 69.9706V64.2434H69.9876V69.9706H64.2438ZM64.2438 58.4996V52.7725H69.9876V58.4996H64.2438ZM69.9876 64.2434V58.4996H75.7147V64.2434H69.9876Z" fill="#002F8B"/>
19
+ </g>
20
+ </g>
21
+ <path d="M21.4284 79.2861L78.5713 79.2861L78.5713 37.1433L21.4284 37.1433L21.4284 79.2861Z" fill="url(#paint0_linear_7695_1647)"/>
22
+ <path d="M19.1719 78.4301L80.9077 78.4301C81.3131 78.4301 81.6328 78.7157 81.6328 79.0747C81.6328 79.4262 81.3053 79.7192 80.9077 79.7192L19.1719 79.7192C18.7664 79.7192 18.4468 79.4336 18.4468 79.0747C18.4468 78.7231 18.7742 78.4301 19.1719 78.4301Z" fill="#398BF7"/>
23
+ <defs>
24
+ <filter id="filter0_f_7695_1647" x="20.0615" y="25.1724" width="66.3086" height="60.1093" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
25
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
26
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
27
+ <feGaussianBlur stdDeviation="4" result="effect1_foregroundBlur_7695_1647"/>
28
+ </filter>
29
+ <filter id="filter1_i_7695_1647" x="24.2861" y="24.2858" width="51.4287" height="58.4286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
30
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
31
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
32
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
33
+ <feOffset dy="7"/>
34
+ <feGaussianBlur stdDeviation="5"/>
35
+ <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
36
+ <feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"/>
37
+ <feBlend mode="normal" in2="shape" result="effect1_innerShadow_7695_1647"/>
38
+ </filter>
39
+ <linearGradient id="paint0_linear_7695_1647" x1="49.9999" y1="37.7824" x2="49.9999" y2="79.9253" gradientUnits="userSpaceOnUse">
40
+ <stop stop-color="#398BF7" stop-opacity="0"/>
41
+ <stop offset="0.09" stop-color="#398BF7" stop-opacity="0.1"/>
42
+ <stop offset="0.23" stop-color="#398BF7" stop-opacity="0.2"/>
43
+ <stop offset="0.4" stop-color="#398BF7" stop-opacity="0.3"/>
44
+ <stop offset="0.61" stop-color="#398BF7" stop-opacity="0.5"/>
45
+ <stop offset="0.84" stop-color="#398BF7" stop-opacity="0.6"/>
46
+ <stop offset="1" stop-color="#398BF7" stop-opacity="0.9"/>
47
+ </linearGradient>
48
+ </defs>
49
+ </svg>
Binary file
@@ -0,0 +1,6 @@
1
+ <svg width="140" height="32" viewBox="0 0 140 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g opacity="0.3">
3
+ <path d="M94.3784 21.4523C94.3784 22.1663 94.2756 22.8479 94.0701 23.497C93.8646 24.1461 93.5509 24.7248 93.1291 25.2333C92.7073 25.7417 92.1773 26.1474 91.5392 26.4503C90.901 26.7532 90.1385 26.9047 89.2516 26.9047C88.5161 26.9047 87.8455 26.7857 87.2399 26.5477C86.6342 26.3097 86.1096 25.9743 85.6661 25.5416C85.2227 25.1089 84.882 24.5896 84.644 23.9838C84.4061 23.378 84.2871 22.7072 84.2871 21.9716V20.6085L87.1425 21.2252V21.9716C87.1425 22.5991 87.3372 23.1021 87.7266 23.4807C88.1159 23.8594 88.6243 24.0487 89.2516 24.0487C90.7226 24.0487 91.4581 23.3563 91.4581 21.9716C91.4581 21.4523 91.3932 21.0142 91.2634 20.6572C91.1336 20.3002 90.9497 19.9703 90.7118 19.6673C90.3657 19.2779 89.9979 18.9209 89.6085 18.5964C89.2192 18.2718 88.8244 17.9473 88.4242 17.6227C88.024 17.2982 87.6292 16.9628 87.2399 16.6166C86.8505 16.2705 86.4827 15.8918 86.1366 15.4807C85.6607 14.9182 85.2768 14.2907 84.9847 13.5984C84.6927 12.906 84.5467 12.1055 84.5467 11.1968C84.5467 10.4828 84.6657 9.82827 84.9036 9.23327C85.1416 8.63827 85.4769 8.12982 85.9095 7.70791C86.3421 7.286 86.8559 6.95605 87.4508 6.71805C88.0456 6.48005 88.7 6.36106 89.4139 6.36106C90.9065 6.36106 92.0529 6.80459 92.8533 7.69168C93.6537 8.57878 94.0539 9.7363 94.0539 11.1643V12.5274L91.2634 11.8783V11.1643C91.2634 10.5152 91.0849 10.0014 90.728 9.62272C90.3711 9.24408 89.9006 9.05477 89.3165 9.05477C88.7108 9.05477 88.2403 9.24949 87.905 9.63895C87.5697 10.0284 87.4021 10.5585 87.4021 11.2292C87.4021 11.9865 87.64 12.668 88.1159 13.2738C88.5919 13.8797 89.1651 14.4638 89.8357 15.0264C90.5063 15.5889 91.1931 16.1677 91.8961 16.7627C92.5991 17.3577 93.1778 18.023 93.6321 18.7586C93.87 19.1481 94.0539 19.5754 94.1837 20.0406C94.3135 20.5058 94.3784 20.9763 94.3784 21.4523ZM106.027 21.9716C106.027 22.7289 105.897 23.4158 105.638 24.0325C105.378 24.6491 105.021 25.1684 104.567 25.5903C104.113 26.0122 103.588 26.3367 102.993 26.5639C102.398 26.7911 101.766 26.9047 101.095 26.9047C100.403 26.9047 99.7539 26.7911 99.1482 26.5639C98.5425 26.3367 98.0179 26.0122 97.5745 25.5903C97.131 25.1684 96.7849 24.6491 96.5361 24.0325C96.2874 23.4158 96.163 22.7289 96.163 21.9716V11.1643C96.163 10.4287 96.2874 9.76336 96.5361 9.16836C96.7849 8.57336 97.131 8.06491 97.5745 7.643C98.0179 7.22109 98.5425 6.90196 99.1482 6.6856C99.7539 6.46924 100.403 6.36106 101.095 6.36106C101.766 6.36106 102.398 6.46924 102.993 6.6856C103.588 6.90196 104.113 7.22109 104.567 7.643C105.021 8.06491 105.378 8.57336 105.638 9.16836C105.897 9.76336 106.027 10.4287 106.027 11.1643V21.9716ZM103.172 11.1643C103.172 10.4719 102.966 9.94727 102.555 9.59027C102.144 9.23327 101.657 9.05477 101.095 9.05477C100.511 9.05477 100.019 9.23327 99.6187 9.59027C99.2185 9.94727 99.0184 10.4719 99.0184 11.1643V21.9716C99.0184 22.6423 99.2185 23.1562 99.6187 23.5132C100.019 23.8702 100.511 24.0487 101.095 24.0487C101.657 24.0487 102.144 23.8702 102.555 23.5132C102.966 23.1562 103.172 22.6423 103.172 21.9716V11.1643ZM112.938 9.05477C112.354 9.05477 111.862 9.23327 111.462 9.59027C111.062 9.94727 110.862 10.4719 110.862 11.1643V21.9716C110.862 22.6423 111.062 23.1562 111.462 23.5132C111.862 23.8702 112.354 24.0487 112.938 24.0487C113.501 24.0487 113.988 23.8756 114.399 23.5294C114.81 23.1832 115.015 22.664 115.015 21.9716V21.6471L117.871 20.7059V21.9716C117.871 22.8154 117.741 23.5456 117.481 24.1623C117.222 24.7789 116.865 25.2874 116.41 25.6876C115.956 26.0879 115.432 26.3908 114.837 26.5964C114.242 26.8019 113.609 26.9047 112.938 26.9047C112.246 26.9047 111.597 26.7965 110.992 26.5801C110.386 26.3638 109.861 26.0446 109.418 25.6227C108.974 25.2008 108.628 24.687 108.38 24.0811C108.131 23.4753 108.006 22.7722 108.006 21.9716V11.1643C108.006 10.2772 108.131 9.53077 108.38 8.92495C108.628 8.31913 108.974 7.82691 109.418 7.44828C109.861 7.06964 110.386 6.79378 110.992 6.62069C111.597 6.4476 112.246 6.36106 112.938 6.36106C113.609 6.36106 114.242 6.4476 114.837 6.62069C115.432 6.79378 115.956 7.07505 116.41 7.4645C116.865 7.85396 117.222 8.35159 117.481 8.95741C117.741 9.56322 117.871 10.2988 117.871 11.1643V12.0081H115.015V11.1643C115.015 10.4719 114.81 9.94727 114.399 9.59027C113.988 9.23327 113.501 9.05477 112.938 9.05477ZM122.673 1.75254C122.651 2.25017 122.511 2.67207 122.251 3.01826C121.991 3.36444 121.645 3.53753 121.213 3.53753C120.78 3.53753 120.423 3.36444 120.142 3.01826C119.861 2.67207 119.72 2.25017 119.72 1.75254C119.72 1.29817 119.861 0.892497 120.142 0.535497C120.423 0.178497 120.78 0 121.213 0C121.645 0 121.997 0.173088 122.267 0.51927C122.538 0.865452 122.673 1.27654 122.673 1.75254ZM122.575 26.4503H119.72V6.62069H122.575V26.4503ZM134.322 26.4503H132.44L131.791 25.3144C131.553 25.7471 131.185 26.1204 130.687 26.4341C130.19 26.7478 129.53 26.9047 128.708 26.9047C128.189 26.9047 127.67 26.8073 127.151 26.6126C126.631 26.4179 126.166 26.1095 125.755 25.6876C125.344 25.2657 125.014 24.7302 124.766 24.0811C124.517 23.432 124.393 22.6423 124.393 21.712C124.393 20.7383 124.522 19.8783 124.782 19.1318C125.042 18.3854 125.377 17.7201 125.788 17.1359C126.199 16.5517 126.664 16.0271 127.183 15.5619C127.702 15.0967 128.221 14.6748 128.741 14.2961C129.26 13.9175 129.757 13.5551 130.233 13.2089C130.709 12.8627 131.12 12.5058 131.466 12.1379V11.1643C131.466 10.5368 131.331 10.0284 131.061 9.63895C130.79 9.24949 130.363 9.05477 129.779 9.05477C128.676 9.05477 127.973 9.49831 127.67 10.3854L125.269 8.82759C125.485 8.50304 125.718 8.18932 125.966 7.88641C126.215 7.5835 126.518 7.31846 126.875 7.09128C127.232 6.8641 127.648 6.6856 128.124 6.55578C128.6 6.42596 129.162 6.36106 129.811 6.36106C131.174 6.36106 132.267 6.78296 133.089 7.62678C133.911 8.47059 134.322 9.64976 134.322 11.1643V26.4503ZM131.531 15.8377C131.163 16.0757 130.731 16.3624 130.233 16.6978C129.736 17.0331 129.26 17.4334 128.805 17.8986C128.351 18.3638 127.967 18.8884 127.654 19.4726C127.34 20.0568 127.183 20.7167 127.183 21.4523C127.183 22.2745 127.367 22.9128 127.735 23.3671C128.102 23.8215 128.632 24.0487 129.325 24.0487C130.082 24.0487 130.639 23.7891 130.996 23.2698C131.353 22.7505 131.531 22.1447 131.531 21.4523V15.8377ZM139.286 26.4503H136.431V0.941177L139.286 0V26.4503Z" fill="white"/>
4
+ <path d="M75.7655 6.36105C76.5226 6.36105 77.15 6.40974 77.6475 6.5071C78.145 6.60446 78.5128 6.71805 78.7507 6.84787H82.2875L80.8923 9.02231V16.8114C80.8923 18.1744 80.5354 19.2563 79.8215 20.0568C79.1076 20.8573 77.9287 21.3333 76.2847 21.4848C75.5276 21.5497 75.0409 21.7228 74.8245 22.0041C74.6082 22.2853 74.5001 22.5774 74.5001 22.8803C74.5001 23.0751 74.5704 23.2968 74.711 23.5456C74.8516 23.7945 75.0841 23.9405 75.4086 23.9838H81.6061L80.0162 26.8398H74.208C73.0615 26.8398 72.4883 27.2292 72.4883 28.0081C72.4883 28.4192 72.6343 28.7167 72.9263 28.9006C73.2184 29.0845 73.5807 29.1765 74.0134 29.1765H79.2374L77.6799 32H73.9484C72.5856 32 71.5365 31.643 70.801 30.929C70.0655 30.215 69.6978 29.2522 69.6978 28.0406C69.6978 27.0669 69.9844 26.2448 70.5577 25.574C71.1309 24.9033 71.9367 24.4381 72.975 24.1785C72.6289 24.0703 72.3801 23.8864 72.2287 23.6268C72.0773 23.3671 72.0016 23.0751 72.0016 22.7505C72.0016 22.4476 72.126 22.1393 72.3747 21.8256C72.6235 21.5118 73.0291 21.2901 73.5915 21.1602C71.861 20.2732 70.9957 18.8235 70.9957 16.8114V11.1643C70.9957 9.67139 71.4229 8.49764 72.2774 7.643C73.1319 6.78837 74.2946 6.36105 75.7655 6.36105ZM4.67248 2.04462V6.62069H8.43642V9.15213H4.67248V22.0041C4.67248 23.3671 5.15919 24.0487 6.13263 24.0487C6.73832 24.0487 7.17095 23.8323 7.43054 23.3996L9.40985 25.5416C9.04211 25.9743 8.56621 26.3097 7.98215 26.5477C7.39809 26.7857 6.82485 26.9047 6.26242 26.9047C4.76981 26.9047 3.65578 26.4882 2.9203 25.6552C2.18481 24.8222 1.81707 23.6051 1.81707 22.0041V9.15213H0V6.62069H1.81707V3.01826L4.67248 2.04462ZM21.6427 6.62069V21.9716C21.6427 22.6423 21.8319 23.1562 22.2105 23.5132C22.5891 23.8702 23.0704 24.0487 23.6544 24.0487C24.2169 24.0487 24.6927 23.881 25.0821 23.5456C25.4715 23.2103 25.6662 22.6856 25.6662 21.9716V6.62069H28.5216V26.4503H26.6396L25.9907 25.5091C25.796 25.7904 25.4769 26.0933 25.0335 26.4178C24.59 26.7424 23.9032 26.9047 22.973 26.9047C21.6751 26.9047 20.653 26.4503 19.9067 25.5416C19.1604 24.6329 18.7873 23.3347 18.7873 21.6471V6.62069H21.6427ZM35.6276 6.36105C37.1202 6.36105 38.2667 6.80459 39.0671 7.69168C39.8675 8.57877 40.2677 9.7363 40.2677 11.1643V12.5274L37.4772 11.8783V11.1643C37.4772 10.5152 37.2987 10.0014 36.9418 9.62272C36.5849 9.24408 36.1144 9.05477 35.5303 9.05477C34.9246 9.05477 34.4541 9.24949 34.1188 9.63895C33.7835 10.0284 33.6159 10.5585 33.6159 11.2292C33.6159 11.9865 33.8538 12.668 34.3297 13.2738C34.8056 13.8797 35.3789 14.4638 36.0495 15.0264C36.7201 15.5889 37.4069 16.1677 38.1099 16.7627C38.8129 17.3577 39.3916 18.023 39.8459 18.7586C40.0838 19.1481 40.2677 19.5754 40.3975 20.0406C40.5273 20.5057 40.5922 20.9763 40.5922 21.4523C40.5922 22.1663 40.4894 22.8479 40.2839 23.497C40.0784 24.146 39.7647 24.7248 39.3429 25.2333C38.9211 25.7417 38.3911 26.1474 37.753 26.4503C37.1148 26.7532 36.3523 26.9047 35.4654 26.9047C34.7299 26.9047 34.0593 26.7857 33.4536 26.5477C32.8479 26.3097 32.3234 25.9743 31.8799 25.5416C31.4365 25.1089 31.0958 24.5896 30.8578 23.9838C30.6199 23.378 30.5009 22.7072 30.5009 21.9716V20.6085L33.3563 21.2252V21.9716C33.3563 22.5991 33.551 23.1021 33.9404 23.4807C34.3297 23.8594 34.8381 24.0487 35.4654 24.0487C36.9364 24.0487 37.6719 23.3563 37.6719 21.9716C37.6719 21.4523 37.607 21.0142 37.4772 20.6572C37.3474 20.3002 37.1635 19.9703 36.9256 19.6673C36.5794 19.2779 36.2117 18.9209 35.8223 18.5963C35.433 18.2718 35.0382 17.9473 34.638 17.6227C34.2378 17.2982 33.843 16.9628 33.4536 16.6166C33.0643 16.2705 32.6965 15.8918 32.3504 15.4807C31.8745 14.9182 31.4906 14.2907 31.1985 13.5984C30.9065 12.906 30.7605 12.1055 30.7605 11.1968C30.7605 10.4828 30.8795 9.82827 31.1174 9.23326C31.3554 8.63827 31.6906 8.12982 32.1233 7.70791C32.5559 7.286 33.0697 6.95605 33.6646 6.71805C34.2594 6.48005 34.9138 6.36105 35.6276 6.36105ZM46.7248 2.04462V6.62069H50.4887V9.15213H46.7248V22.0041C46.7248 23.3671 47.2115 24.0487 48.1849 24.0487C48.7906 24.0487 49.2233 23.8323 49.4828 23.3996L51.4622 25.5416C51.0944 25.9743 50.6185 26.3097 50.0345 26.5477C49.4504 26.7857 48.8772 26.9047 48.3147 26.9047C46.8221 26.9047 45.7081 26.4882 44.9726 25.6552C44.2371 24.8222 43.8694 23.6051 43.8694 22.0041V9.15213H42.0523V6.62069H43.8694V3.01826L46.7248 2.04462ZM15.9319 6.36105C16.689 6.36105 17.2514 6.54496 17.6191 6.91278L16.6457 9.47667C16.4943 9.30358 16.2023 9.21704 15.7696 9.21704C15.2721 9.21704 14.8286 9.42799 14.4393 9.8499C14.0499 10.2718 13.8552 10.8073 13.8552 11.4564V26.4503H10.9998V6.62069H12.8818L13.5307 7.88641C13.7038 7.54023 13.9904 7.19946 14.3906 6.8641C14.7908 6.52873 15.3045 6.36105 15.9319 6.36105ZM55.8102 6.62069V26.4503H52.9548V6.62069H55.8102ZM63.5652 6.36105C64.928 6.36105 66.0258 6.78837 66.8586 7.643C67.6914 8.49764 68.1079 9.63894 68.1079 11.0669V26.4503H65.2524V11.1643C65.2524 10.4719 65.0253 9.94726 64.571 9.59026C64.1168 9.23326 63.5976 9.05477 63.0136 9.05477C62.4511 9.05477 61.9374 9.23326 61.4723 9.59026C61.0072 9.94726 60.7747 10.4719 60.7747 11.1643V26.4503H57.9193V6.62069H59.8012L60.4502 7.56187C60.7747 7.19405 61.1748 6.90196 61.6507 6.6856C62.1267 6.46923 62.7648 6.36105 63.5652 6.36105ZM75.9278 8.98986C75.3437 8.98986 74.8408 9.15754 74.4189 9.4929C73.9971 9.82826 73.7862 10.3638 73.7862 11.0994V16.8763C73.7862 17.5686 73.9971 18.0879 74.4189 18.4341C74.8408 18.7803 75.3437 18.9533 75.9278 18.9533C76.4902 18.9533 76.9877 18.7803 77.4204 18.4341C77.853 18.0879 78.0693 17.5686 78.0693 16.8763V11.0994C78.0693 10.3638 77.853 9.82826 77.4204 9.4929C76.9877 9.15754 76.4902 8.98986 75.9278 8.98986ZM54.4473 0C54.88 0 55.2315 0.173088 55.5019 0.51927C55.7723 0.865451 55.9075 1.27654 55.9075 1.75254C55.8859 2.25017 55.7453 2.67207 55.4857 3.01826C55.2261 3.36444 54.88 3.53753 54.4473 3.53753C54.0147 3.53753 53.6578 3.36444 53.3766 3.01826C53.0954 2.67207 52.9548 2.25017 52.9548 1.75254C52.9548 1.29817 53.0954 0.892497 53.3766 0.535497C53.6578 0.178497 54.0147 0 54.4473 0Z" fill="white"/>
5
+ </g>
6
+ </svg>
Binary file
@@ -0,0 +1 @@
1
+ import{j as r}from"./chunk-5d7eeacb.js";import o from"./chunk-b8d5649c.js";import"./chunk-259479f1.js";import"./chunk-080d4642.js";import"./chunk-5c360a9c.js";import"./chunk-2d04cdda.js";import"./chunk-ffa40a6f.js";import"./chunk-1520b763.js";import t from"./chunk-9950b40e.js";import"./chunk-7daa3b76.js";import"./chunk-8a5beb79.js";import"./chunk-23f22cf0.js";import"./chunk-6e5fa179.js";import"./chunk-630b6747.js";import"./chunk-50924bca.js";import"./chunk-3ba3f5be.js";import"./chunk-e3a1c9ae.js";let m=m=>r.jsx(t,{...m,readIDCardUIOnlyComponent:o});export{m as default};
@@ -0,0 +1 @@
1
+ import{j as r,r as o,s as e,a6 as n,ae as t,af as i,ag as a,ah as s,ai as u,aj as d,ak as c,al as l,am as g,an as f,ao as p,ap as h,a3 as b,v as x,aq as y}from"./chunk-5d7eeacb.js";let k=o.createContext(!1),C=({children:o,debug:e=!1})=>r.jsx(k.Provider,{value:e,children:o}),T=()=>o.useContext(k),v={tsBlue:"#0276f1",tsSecondary:"rgba(0, 47, 117, 0.6)"},m={IDCapturing:{backgroundColor:"rgba(0, 0, 0, 0.6)",titleFront:{color:"#fff",fontSize:"20px",fontWeight:"normal",backgroundColor:"unset"},titleBack:{color:"#fff",fontSize:"20px",fontWeight:"normal",backgroundColor:"unset"},instruction:{padding:"unset",color:"#fff",fontSize:"16px",fontWeight:"normal",backgroundColor:"unset",border:"unset",borderRadius:"unset"},captureInstruction:{capturing:{padding:"12px 12px",color:"#ffffff",fontSize:"14px",fontWeight:"normal",background:"rgba(15, 23, 42, 0.25)",border:"none",borderRadius:"100px"},captured:{padding:"12px 12px",color:"#ffffff",fontSize:"14px",fontWeight:"normal",background:"rgba(15, 23, 42, 0.25)",border:"none",borderRadius:"100px"}},error:{padding:"5px 10px",color:"#fff",fontSize:"16px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px"},toggle:{color:"#d1d1d1",fontSize:"16px",fontWeight:"500",gap:"16px",backgroundColor:"#fff",active:{backgroundColor:"#2196f3"},inactive:{backgroundColor:"#ccc"}},countdown:{color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px"},cardIcon:{src:"",width:"auto",height:"38px"},captureIcon:{src:"",width:"60px",height:"60px",disabled:{src:""}},loadingIcon:{src:"",width:"100px",height:"100px"},rectangleMask:{width:600,height:400,strokeWidth:2,strokeStyles:{},radius:10,paddingStyle:{fill:"rgba(0, 0, 0, 0.6)"},default:{fill:"none",stroke:"#fff",strokeWidth:2,strokeDasharray:"7, 4",opacity:.6},error:{fill:"rgba(234,50,35, 0.1)",strokeWidth:2,stroke:"#ea3223"}}},IDConfirmPopup:{image:{borderRadius:"5px"}},IDUploadButton:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.25)",borderRadius:"8px",color:"#ffffff",padding:"12px",leftOffset:"24px",focusOutlineColor:"#ffffff"},IDUploadErrorToast:{background:"rgba(0, 0, 0, 0.75)",color:"#ffffff",borderRadius:"8px",fontSize:"14px",padding:"10px 16px",maxWidthInset:"48px"},QRStep:{title:{color:"#fff",fontSize:"20px",fontWeight:"700",backgroundColor:"unset"},guidelinePopup:{image:{src:"",borderRadius:"5px",backgroundColor:"#e7e6e6"},guideText:{color:v.tsSecondary,fontSize:"16px",fontWeight:"normal",textAlign:"center",lineHeight:"20px"},countdownText:{color:v.tsSecondary,fontSize:"16px",fontWeight:"normal",textAlign:"center",lineHeight:"20px"}},scanTooltip:{backgroundColor:"#00ce78",borderRadius:"8px",color:"#fff",padding:"10px",textAlign:"center"},scanCountdown:{textAlign:"center",color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"none",borderRadius:"3px",padding:"5px 10px"},invalidPopup:{padding:"10px",title:{display:"block",color:v.tsSecondary,fontSize:"16px",fontWeight:"bold",margin:"25px 0 0 0",padding:"0 0 0 0"},description:{color:v.tsSecondary,fontSize:"16px",fontWeight:"normal",textAlign:"center",margin:"30px 0 0 0",padding:"0 0 0 0"},retryButton:{color:"#fff",fontSize:"1rem",fontWeight:"normal",backgroundColor:v.tsBlue,border:"none",borderRadius:"3px",outline:"none",height:"66px",margin:"30px 0 0 0"},skipButton:{color:v.tsBlue,fontSize:"1rem",fontWeight:"normal",backgroundColor:"unset",border:"none",borderRadius:"unset",outline:"none",height:"unset",margin:"20px 0"}},resultText:{success:{textColor:"#000",fontSize:"1rem",fontWeight:"normal",mainColor:"#34ce60"},error:{textColor:"#000",fontSize:"1rem",fontWeight:"normal",mainColor:"#ff9532"}}}},D={IDCapturing:{backgroundColor:"rgba(0, 0, 0, 0.6)",titleFront:{...e.DesignToken.Typography.h4,color:e.DesignToken.Color.base.white,backgroundColor:"unset"},titleBack:{...e.DesignToken.Typography.h4,color:e.DesignToken.Color.base.white,backgroundColor:"unset"},instruction:{...e.DesignToken.Typography.body,padding:"5px 10px",color:"rgba(255, 255, 255, 0.8)",backgroundColor:"unset",border:"unset",borderRadius:"unset"},captureInstruction:{capturing:{...e.DesignToken.Typography.label,color:e.DesignToken.Color.base.white,padding:`6px ${e.DesignToken.Spacing.sm}`,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px"},captured:{...e.DesignToken.Typography.label,color:e.DesignToken.Color.base.white,padding:`6px ${e.DesignToken.Spacing.sm}`,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px"}},error:{...e.DesignToken.Typography.body,padding:"5px 10px",color:e.DesignToken.Color.semantic.error[400],backgroundColor:"transparent",border:"unset",borderRadius:e.DesignToken.CornerRadius["2xs"]},toggle:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.base.white,gap:e.DesignToken.Spacing.base,backgroundColor:e.DesignToken.Color.base.white,active:{backgroundColor:e.DesignToken.Color.base.blue},inactive:{backgroundColor:e.DesignToken.Color.neutral[300]}},countdown:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.semantic.error[400],backgroundColor:"transparent",border:"unset",borderRadius:e.DesignToken.CornerRadius["2xs"]},cardIcon:{src:"",width:"auto",height:"38px"},captureIcon:{src:"",width:e.DesignToken.Height["7xl"],height:e.DesignToken.Height["7xl"],disabled:{src:""}},loadingIcon:{src:"",width:"47px",height:"47px"},rectangleMask:{width:600,height:400,strokeWidth:n.getCSSNumericValue(e.DesignToken.BorderWidth["3xl"]),strokeStyles:{},radius:n.getCSSNumericValue(e.DesignToken.CornerRadius.base),paddingStyle:{fill:"rgba(0, 0, 0, 0.6)"},default:{fill:"none",stroke:e.DesignToken.Color.neutral[400],strokeWidth:n.getCSSNumericValue(e.DesignToken.BorderWidth["3xl"])},error:{fill:"none",strokeWidth:n.getCSSNumericValue(e.DesignToken.BorderWidth["3xl"]),stroke:e.DesignToken.Color.semantic.error[400]}}},IDConfirmPopup:{image:{borderRadius:e.DesignToken.CornerRadius["2xs"]}},IDUploadButton:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.25)",borderRadius:e.DesignToken.CornerRadius.xs,color:e.DesignToken.Color.base.white,padding:e.DesignToken.Spacing.sm,leftOffset:"24px",focusOutlineColor:e.DesignToken.Color.base.white},IDUploadErrorToast:{background:"rgba(0, 0, 0, 0.75)",color:e.DesignToken.Color.base.white,borderRadius:e.DesignToken.CornerRadius.xs,fontSize:"14px",padding:"10px 16px",maxWidthInset:"48px"},QRStep:{title:{...e.DesignToken.Typography.h4,backgroundColor:"unset"},guidelinePopup:{image:{src:"",borderRadius:e.DesignToken.CornerRadius["2xs"],backgroundColor:"transparent"},guideText:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.neutral[600],textAlign:"center"},countdownText:{...e.DesignToken.UIText.medium,color:e.DesignToken.Color.neutral[500],textAlign:"center"}},scanTooltip:{backgroundColor:"transparent",borderRadius:e.DesignToken.CornerRadius.xs,color:e.DesignToken.Color.base.white,padding:"10px",textAlign:"center"},scanCountdown:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.semantic.error[400],textAlign:"center",backgroundColor:"transparent",border:"none",borderRadius:e.DesignToken.CornerRadius["2xs"],padding:"0px"},invalidPopup:{padding:"10px",title:{...e.DesignToken.Typography.h6,color:e.DesignToken.Color.content.primary,display:"none",margin:"25px 0 0 0",padding:"0 0 0 0"},description:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.content.secondary,textAlign:"center",margin:"30px 0 0 0",padding:"0 0 0 0"},retryButton:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.base.white,backgroundColor:e.DesignToken.Color.base.blue,borderRadius:e.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:e.DesignToken.Height["3xl"],margin:"24px 0 0 0"},skipButton:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.content.primary,backgroundColor:e.DesignToken.Color.background.tertiary,borderRadius:e.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:e.DesignToken.Height["3xl"],margin:"12px 0"}},resultText:{success:{...e.DesignToken.Typography.body,textColor:e.DesignToken.Color.content.primary,mainColor:e.DesignToken.Color.semantic.success[400]},error:{...e.DesignToken.Typography.body,textColor:e.DesignToken.Color.content.primary,mainColor:e.DesignToken.Color.semantic.warning[500]}}}},R=m,S=D,{DesignToken:W}=e,w={FlashLiveness:{maskFill:"#fff",mask:{strokeColor:W.Color.separators.secondary,strokeColorError:W.Color.semantic.error[400],strokeWidth:4,path:"M118.5 2.5C54.2233 2.5 2.5 59.5579 2.5 129.447C2.5 146.072 3.68394 172.618 8.16415 200.483C12.6369 228.301 20.4309 257.673 33.7816 279.787C46.9667 301.626 59.6817 317.047 73.3658 327.003C87.1207 337.011 101.735 341.41 118.5 341.41C135.265 341.41 149.879 337.011 163.634 327.003C177.318 317.047 190.033 301.626 203.218 279.787C216.569 257.673 224.363 228.301 228.836 200.483C233.316 172.618 234.5 146.072 234.5 129.447C234.5 59.5579 182.777 2.5 118.5 2.5Z",width:237,height:344},title:{hidden:!1,height:"auto",color:W.Color.content.primary,fontSize:W.Typography.h5.fontSize,fontWeight:W.Typography.h5.fontWeight,lineHeight:W.Typography.h5.lineHeight},guideline:{text:{close:{color:W.Color.content.primary,fontSize:W.Typography.h6.fontSize,fontWeight:W.FontWeight["semi-bold"],background:W.Color.background.secondary,border:`${W.BorderWidth.base} solid ${W.Color.separators.tertiary}`,borderRadius:"100px",padding:"12px 16px"},far:{color:W.Color.content.primary,fontSize:W.Typography.h6.fontSize,fontWeight:W.FontWeight["semi-bold"],background:W.Color.background.secondary,border:`${W.BorderWidth.base} solid ${W.Color.separators.tertiary}`,borderRadius:"100px",padding:"12px 16px"},flashing:{color:W.Color.content["on-bg-color"],fontSize:W.Typography.label.fontSize,fontWeight:W.Typography.label.fontWeight,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px",padding:"12px 16px"}},icon:{color:W.Color.blue[900],src:""}},instruction:{color:W.Color.content["on-bg-color"],fontSize:W.Typography.label.fontSize,fontWeight:W.Typography.label.fontWeight,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px",backdropFilter:"blur(28px)",maxWidth:"200px"},timeoutText:{color:W.Color.semantic.error[400],fontSize:W.Typography.body.fontSize,fontWeight:W.Typography.body.fontWeight,padding:"0"},errorOverlay:{backgroundColor:"transparent",opacity:0},progressBar:{mainColor:W.Color.blue[900],secondaryColor:W.Color.blue[100],textColor:W.Color.blue[900],fontSize:W.Typography.body.fontSize,fontWeight:W.FontWeight["semi-bold"]},flashing:{logo:{src:"",width:"140px",height:"auto"},backgroundPattern:{srcMobile:"",srcDesktop:"",width:"100%",height:"auto"}}}},z=w,j=w,{DesignToken:_}=e,I={Selfie:{backgroundColor:"#FFF",title:{...e.DesignToken.Typography.h5,color:e.DesignToken.Color.content.primary},countdown:{color:_.Color.semantic.error[400],fontSize:_.Typography.body.fontSize,fontWeight:_.Typography.body.fontWeight,backgroundColor:"transparent",border:"unset",borderRadius:"3px",padding:"0px"},loadingIcon:{src:"",width:"47px",height:"47px"},error:{color:_.Color.semantic.error[400],fontSize:_.Typography.body.fontSize,fontWeight:_.Typography.body.fontWeight,backgroundColor:"transparent",border:"unset",borderRadius:"3px",padding:"5px 10px"},progressCircle:{activeColor:"rgba(52, 152, 211, 1)",innerPadding:3,showDashedRing:!0,showOutsideRing:!1,dashedRingLineThick:"2",dashedRingLineSpacing:"3.5",dashedRingColor:"rgba(193, 197, 204, 1)",dashedRingOpacity:1,insideRingColor:"#fff",insideRingWidth:10,insideRingStrokeDash:"0",outsideRingOpacity:1,outsideRingColor:"#fff",errorRingWidth:0,radius:160,strokeWidth:3,progress:0,showErrorRing:!1,errorRingColor:"#df0000",dashedRingWidth:10,dashedInsideRingColor:"#fff",dashedInsideRingWidth:3,showInsideRing:!0},progressCircleV2:{activeColor:_.Color.blue[900],neutralColor:_.Color.neutral[300],errorColor:_.Color.semantic.error[400],radius:160,strokeWidth:2,progress:0,tickWidth:15,numberOfTicks:200},Active:{instruction:{color:_.Color.content.primary,fontSize:_.Typography.body.fontSize,fontWeight:_.Typography.body.fontWeight,textShadow:"none",backgroundColor:"unset",border:"unset",borderRadius:"unset"},directionIcon:{frontal:"",frontalWidth:"168px",left:"",leftWidth:"150px",right:"",rightWidth:"150px",up:"",upWidth:"150px"},imageHolder:{width:"72px",height:"72px",borderRadius:"50%",border:`3px solid ${_.Color.blue[900]}`,fontSize:"16px",color:"#fff",fontWeight:"700",frontal:"",left:"",right:"",up:"",activeStepBorder:`1px solid ${_.Color.separators.tertiary}`,activeStepBorderRadius:"50%"}}}},O={Selfie:{backgroundColor:"rgba(0, 0, 0, 0.6)",captureIcon:{src:"",width:"50px"},countdown:{color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px",padding:"5px 10px"},loadingIcon:{src:"",width:"47px",height:"47px"},error:{color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px",padding:"5px 10px"},progressCircle:{radius:160,strokeWidth:3,progress:0,showErrorRing:!0,activeColor:"#0092ff",innerPadding:5,outsideRingColor:"#f2f6f9",outsideRingOpacity:.1,insideRingColor:"#f2f6f9",insideRingWidth:1,insideRingStrokeDash:"2",errorRingColor:"#df0000",errorRingWidth:1,dashedRingColor:"#ffffff",dashedRingOpacity:.3,dashedRingWidth:10,dashedRingLineThick:1,dashedRingLineSpacing:6,dashedInsideRingColor:"#ffffff",dashedInsideRingWidth:0,showOutsideRing:!1,showDashedRing:!1,showInsideRing:!0},Active:{instruction:{color:"#fff",fontSize:"20px",fontWeight:"normal",textShadow:"2px 2px 4px #000000",backgroundColor:"unset",border:"unset",borderRadius:"unset"},directionIcon:{frontal:"",frontalWidth:"140px",left:"",leftWidth:"80px",right:"",rightWidth:"80px",up:"",upWidth:"80px"},imageHolder:{width:"40px",height:"40px",borderRadius:"50%",border:"2px solid #fff",fontSize:"16px",color:"#fff",fontWeight:"700",frontal:"",left:"",right:"",up:""}}}},A=I,{DesignToken:B}=e,P={PassiveLiveness:{instruction:{color:B.Color.content["on-bg-color"],fontSize:B.Typography.label.fontSize,fontWeight:B.Typography.label.fontWeight,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px",backdropFilter:"blur(28px)",padding:"12px 12px"}}},F=P,q=P,U={closeButton:{top:e.DesignToken.Spacing.base,right:e.DesignToken.Spacing.base,left:"auto",bottom:"auto",display:"block",src:"",width:"24px",height:"auto"},popup:{backgroundColor:e.DesignToken.Color.base.white,padding:"10px",border:"none",borderRadius:e.DesignToken.CornerRadius.sm,overlay:{backgroundColor:e.DesignToken.Color.mask[70]},title:{...e.DesignToken.Typography.h6,fontWeight:e.DesignToken.FontWeight["semi-bold"],color:e.DesignToken.Color.content.primary,textAlign:"center",display:"initial",margin:"25px 0 0 0",padding:"0 0 0 0"},description:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.content.secondary,textAlign:"center",border:"unset",borderRadius:"unset",margin:"30px 0 0 0",padding:"0 0 0 0"},primaryButton:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.base.white,backgroundColor:e.DesignToken.Color.base.blue,borderRadius:e.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:e.DesignToken.Height["3xl"],maxWidth:"unset"},secondaryButton:{...e.DesignToken.Typography.body,color:e.DesignToken.Color.content.primary,backgroundColor:e.DesignToken.Color.background.tertiary,borderRadius:e.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:e.DesignToken.Height["3xl"],maxWidth:"unset"}}},H={v1:{...R,...z,...O,...F,...U},v2:{...S,...j,...A,...q,...U}};function E(){if(rn)return re;rn=1;var r=s();return re=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch(r){}}()}function L(){if(ri)return rt;ri=1;var r=E();return rt=function(o,e,n){"__proto__"==e&&r?r(o,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):o[e]=n}}function M(){if(rs)return ra;rs=1;var r=L(),o=u();return ra=function(e,n,t){(void 0===t||o(e[n],t))&&(void 0!==t||n in e)||r(e,n,t)}}var $,V,K,N,Q,Z,G,J,X,Y,rr,ro,re,rn,rt,ri,ra,rs,ru,rd,rc,rl,rg,rf,rp,rh,rb,rx,ry,rk,rC,rT,rv,rm,rD,rR,rS,rW,rw,rz,rj,r_,rI,rO,rA,rB,rP,rF,rq,rU,rH,rE,rL,rM,r$,rV,rK,rN,rQ,rZ,rG,rJ,rX,rY,r0,r1,r2,r3,r5,r4,r6,r7,r8,r9,or,oo,oe,on,ot,oi,oa,os,ou,od,oc,ol,og,of,op,oh,ob,ox,oy,ok,oC,oT,ov,om,oD,oR,oS,oW,ow,oz,oj,o_,oI,oO,oA,oB={exports:{}};oB.exports;function oP(){return rD?rm:(rD=1,rm=function(r,o){return function(e){return r(o(e))}})}function oF(){return rS?rR:(rS=1,rR=oP()(Object.getPrototypeOf,Object))}function oq(){if(rw)return rW;rw=1;var r=Object.prototype;return rW=function(o){var e=o&&o.constructor;return o===("function"==typeof e&&e.prototype||r)}}function oU(){if(rA)return rO;rA=1;var r=function(){if(rI)return r_;rI=1;var r=l(),o=g();return r_=function(e){return o(e)&&"[object Arguments]"==r(e)}}(),o=g(),e=Object.prototype,n=e.hasOwnProperty,t=e.propertyIsEnumerable;return rO=r(function(){return arguments}())?r:function(r){return o(r)&&n.call(r,"callee")&&!t.call(r,"callee")}}function oH(){return rP?rB:(rP=1,rB=function(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=0x1fffffffffffff})}function oE(){if(rq)return rF;rq=1;var r=f(),o=oH();return rF=function(e){return null!=e&&o(e.length)&&!r(e)}}var oL={exports:{}};function oM(){var r,o,e,n,t,i,a,s;if(rM)return oL.exports;return rM=1,r=oL,o=oL.exports,e=d(),n=rL?rE:(rL=1,rE=function(){return!1}),s=(a=(i=(t=o&&!o.nodeType&&o)&&r&&!r.nodeType&&r)&&i.exports===t?e.Buffer:void 0)?a.isBuffer:void 0,r.exports=s||n,oL.exports}function o$(){if(rV)return r$;rV=1;var r=l(),o=oF(),e=g(),n=Object.prototype,t=Function.prototype.toString,i=n.hasOwnProperty,a=t.call(Object);return r$=function(n){if(!e(n)||"[object Object]"!=r(n))return!1;var s=o(n);if(null===s)return!0;var u=i.call(s,"constructor")&&s.constructor;return"function"==typeof u&&u instanceof u&&t.call(u)==a}}oL.exports;var oV={exports:{}};oV.exports;function oK(){if(rX)return rJ;rX=1;var r=function(){if(rN)return rK;rN=1;var r=l(),o=oH(),e=g(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,rK=function(t){return e(t)&&o(t.length)&&!!n[r(t)]}}(),o=rZ?rQ:(rZ=1,rQ=function(r){return function(o){return r(o)}}),e=function(){var r,o,e,n,t,i;if(rG)return oV.exports;return rG=1,r=oV,o=oV.exports,e=p(),i=(t=(n=o&&!o.nodeType&&o)&&r&&!r.nodeType&&r)&&t.exports===n&&e.process,r.exports=function(){try{var r=t&&t.require&&t.require("util").types;if(r)return r;return i&&i.binding&&i.binding("util")}catch(r){}}(),oV.exports}(),n=e&&e.isTypedArray;return rJ=n?o(n):r}function oN(){return r0?rY:(r0=1,rY=function(r,o){if("constructor"!==o||"function"!=typeof r[o]){if("__proto__"!=o)return r[o]}})}function oQ(){if(r5)return r3;r5=1;var r=function(){if(r2)return r1;r2=1;var r=L(),o=u(),e=Object.prototype.hasOwnProperty;return r1=function(n,t,i){var a=n[t];e.call(n,t)&&o(a,i)&&(void 0!==i||t in n)||r(n,t,i)}}(),o=L();return r3=function(e,n,t,i){var a=!t;t||(t={});for(var s=-1,u=n.length;++s<u;){var d=n[s],c=i?i(t[d],e[d],d,t,e):void 0;void 0===c&&(c=e[d]),a?o(t,d,c):r(t,d,c)}return t}}function oZ(){if(r8)return r7;r8=1;var r=/^(?:0|[1-9]\d*)$/;return r7=function(o,e){var n=typeof o;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==n||"symbol"!=n&&r.test(o))&&o>-1&&o%1==0&&o<e}}function oG(){if(or)return r9;or=1;var r=r6?r4:(r6=1,r4=function(r,o){for(var e=-1,n=Array(r);++e<r;)n[e]=o(e);return n}),o=oU(),e=h(),n=oM(),t=oZ(),i=oK(),a=Object.prototype.hasOwnProperty;return r9=function(s,u){var d=e(s),c=!d&&o(s),l=!d&&!c&&n(s),g=!d&&!c&&!l&&i(s),f=d||c||l||g,p=f?r(s.length,String):[],h=p.length;for(var b in s)(u||a.call(s,b))&&!(f&&("length"==b||l&&("offset"==b||"parent"==b)||g&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||t(b,h)))&&p.push(b);return p}}function oJ(){if(oa)return oi;oa=1;var r=oG(),o=function(){if(ot)return on;ot=1;var r=c(),o=oq(),e=oe?oo:(oe=1,oo=function(r){var o=[];if(null!=r)for(var e in Object(r))o.push(e);return o}),n=Object.prototype.hasOwnProperty;return on=function(t){if(!r(t))return e(t);var i=o(t),a=[];for(var s in t)"constructor"==s&&(i||!n.call(t,s))||a.push(s);return a}}(),e=oE();return oi=function(n){return e(n)?r(n,!0):o(n)}}function oX(){return op?of:(op=1,of=function(r){return r})}function oY(){return ob?oh:(ob=1,oh=function(r,o,e){switch(e.length){case 0:return r.call(o);case 1:return r.call(o,e[0]);case 2:return r.call(o,e[0],e[1]);case 3:return r.call(o,e[0],e[1],e[2])}return r.apply(o,e)})}function o0(){if(ow)return oW;ow=1;var r=oX(),o=function(){if(oy)return ox;oy=1;var r=oY(),o=Math.max;return ox=function(e,n,t){return n=o(void 0===n?e.length-1:n,0),function(){for(var i=arguments,a=-1,s=o(i.length-n,0),u=Array(s);++a<s;)u[a]=i[n+a];a=-1;for(var d=Array(n+1);++a<n;)d[a]=i[a];return d[n]=t(u),r(e,this,d)}}}(),e=function(){if(oS)return oR;oS=1;var r=function(){if(ov)return oT;ov=1;var r=oC?ok:(oC=1,ok=function(r){return function(){return r}}),o=E(),e=oX();return oT=o?function(e,n){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(n),writable:!0})}:e}();return oR=(function(){if(oD)return om;oD=1;var r=Date.now;return om=function(o){var e=0,n=0;return function(){var t=r(),i=16-(t-n);if(n=t,i>0){if(++e>=800)return arguments[0]}else e=0;return o.apply(void 0,arguments)}}})()(r)}();return oW=function(n,t){return e(o(n,t,r),n+"")}}function o1(){if(oj)return oz;oj=1;var r=u(),o=oE(),e=oZ(),n=c();return oz=function(t,i,a){if(!n(a))return!1;var s=typeof i;return("number"==s?!!(o(a)&&e(i,a.length)):"string"==s&&i in a)&&r(a[i],t)}}function o2(){if(oI)return o_;oI=1;var r=o0(),o=o1();return o_=function(e){return r(function(r,n){var t=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),r=Object(r);++t<i;){var u=n[t];u&&e(r,u,t,a)}return r})}}var o3=b(function(){if(oA)return oO;oA=1;var r=function(){if(og)return ol;og=1;var r=function(){if(ro)return rr;ro=1;var r=t(),o=function(){if(V)return $;V=1;var r=t();return $=function(){this.__data__=new r,this.size=0}}(),e=N?K:(N=1,K=function(r){var o=this.__data__,e=o.delete(r);return this.size=o.size,e}),n=Z?Q:(Z=1,Q=function(r){return this.__data__.get(r)}),s=J?G:(J=1,G=function(r){return this.__data__.has(r)}),u=function(){if(Y)return X;Y=1;var r=t(),o=i(),e=a();return X=function(n,t){var i=this.__data__;if(i instanceof r){var a=i.__data__;if(!o||a.length<199)return a.push([n,t]),this.size=++i.size,this;i=this.__data__=new e(a)}return i.set(n,t),this.size=i.size,this}}();function d(o){var e=this.__data__=new r(o);this.size=e.size}return d.prototype.clear=o,d.prototype.delete=e,d.prototype.get=n,d.prototype.has=s,d.prototype.set=u,rr=d}(),o=M(),e=rl?rc:(rl=1,rc=(rd?ru:(rd=1,ru=function(r){return function(o,e,n){for(var t=-1,i=Object(o),a=n(o),s=a.length;s--;){var u=a[r?s:++t];if(!1===e(i[u],u,i))break}return o}}))()),n=function(){if(oc)return od;oc=1;var r=M(),o=function(){var r,o,e,n,t,i,a;if(rg)return oB.exports;return rg=1,r=oB,o=oB.exports,e=d(),a=(i=(t=(n=o&&!o.nodeType&&o)&&r&&!r.nodeType&&r)&&t.exports===n?e.Buffer:void 0)?i.allocUnsafe:void 0,r.exports=function(r,o){if(o)return r.slice();var e=r.length,n=a?a(e):new r.constructor(e);return r.copy(n),n},oB.exports}(),e=function(){if(ry)return rx;ry=1;var r=function(){if(rb)return rh;rb=1;var r=rp?rf:(rp=1,rf=d().Uint8Array);return rh=function(o){var e=new o.constructor(o.byteLength);return new r(e).set(new r(o)),e}}();return rx=function(o,e){var n=e?r(o.buffer):o.buffer;return new o.constructor(n,o.byteOffset,o.length)}}(),n=rC?rk:(rC=1,rk=function(r,o){var e=-1,n=r.length;for(o||(o=Array(n));++e<n;)o[e]=r[e];return o}),t=function(){if(rj)return rz;rj=1;var r=function(){if(rv)return rT;rv=1;var r=c(),o=Object.create;return rT=function(){function e(){}return function(n){if(!r(n))return{};if(o)return o(n);e.prototype=n;var t=new e;return e.prototype=void 0,t}}()}(),o=oF(),e=oq();return rz=function(n){return"function"!=typeof n.constructor||e(n)?{}:r(o(n))}}(),i=oU(),a=h(),s=function(){if(rH)return rU;rH=1;var r=oE(),o=g();return rU=function(e){return o(e)&&r(e)}}(),u=oM(),l=f(),p=c(),b=o$(),x=oK(),y=oN(),k=function(){if(ou)return os;ou=1;var r=oQ(),o=oJ();return os=function(e){return r(e,o(e))}}();return od=function(d,c,g,f,h,C,T){var v=y(d,g),m=y(c,g),D=T.get(m);if(D)return void r(d,g,D);var R=C?C(v,m,g+"",d,c,T):void 0,S=void 0===R;if(S){var W=a(m),w=!W&&u(m),z=!W&&!w&&x(m);R=m,W||w||z?a(v)?R=v:s(v)?R=n(v):w?(S=!1,R=o(m,!0)):z?(S=!1,R=e(m,!0)):R=[]:b(m)||i(m)?(R=v,i(v)?R=k(v):(!p(v)||l(v))&&(R=t(m))):S=!1}S&&(T.set(m,R),h(R,m,f,C,T),T.delete(m)),r(d,g,R)}}(),s=c(),u=oJ(),l=oN();return ol=function t(i,a,d,c,g){i!==a&&e(a,function(e,u){if(g||(g=new r),s(e))n(i,a,u,d,t,c,g);else{var f=c?c(l(i,u),e,u+"",i,a,g):void 0;void 0===f&&(f=e),o(i,u,f)}},u)}}();return oO=o2()(function(o,e,n){r(o,e,n)})}());let o5=r=>{let{customTheme:e,clientSettings:n,themeVersion:t,uiSettings:i,defaultThemes:a=H}=r,s=x.getWebSetting(n,"data.settings.sdk_settings.ui_custom_settings");return o.useMemo(()=>{let r=y.selectUiSettings(i,s);return{...o3({},y.mapUISettingsToCustomTheme(r),e),themeVersion:t,defaultThemes:a}},[e,a,t,i,s])},o4=()=>{},o6=o.createContext({onDoneCallback:o4,onErrorCallback:o4,onCloseCallback:o4}),o7=({children:e,onDone:n=o4,onError:t=o4,onClose:i=o4})=>{let a=o.useCallback(r=>{n&&n(r)},[n]),s=o.useCallback(r=>{t&&t(r)},[t]),u=o.useCallback(()=>{i&&i()},[i]),d=o.useMemo(()=>({onDoneCallback:a,onErrorCallback:s,onCloseCallback:u}),[a,s,u]);return r.jsx(o6.Provider,{value:d,children:e})},o8=()=>{let r=o.useContext(o6);if(void 0===r)throw Error("useSDKCallback must be used within a SDKCallbackProvider");return r},o9=o.createContext(""),er=({children:o,isWrappedBy:e=""})=>r.jsx(o9.Provider,{value:e,children:o}),eo=()=>o.useContext(o9);export{C as D,o7 as S,er as W,o8 as a,eo as b,o5 as c,D as d,H as e,o2 as f,oJ as g,o$ as h,o0 as i,oY as j,oP as k,oq as l,o3 as m,oG as n,oE as o,o1 as p,oQ as r,v as t,T as u};
@@ -0,0 +1 @@
1
+ import{n as e,K as r,u as s,r as t,g as n,aJ as a,b as o,q as i,s as c,j as l,C as u,aB as m,a8 as p,$ as d,P as g,a as f,aK as h}from"./chunk-5d7eeacb.js";import{M as x,O as j,W as y,C as C}from"./chunk-5c360a9c.js";import{u as F}from"./chunk-6e5fa179.js";import{D as D}from"./chunk-1520b763.js";import{p as S,d as b,e as v,f as T,h as I,I as k,i as E,j as _,k as V,l as L,T as R,L as w,m as P,n as H,S as N}from"./chunk-ffa40a6f.js";import{a as A}from"./chunk-080d4642.js";import"./chunk-630b6747.js";import"./chunk-50924bca.js";import"./chunk-2d04cdda.js";let $=f.isMobile?{width:{ideal:640}}:null,M=({stepNumber:e,type:r,theme:s})=>{let t=h(`instruction_${r}.svg`),n=o(s,`Selfie.Active.imageHolder.${r}`);return null===n?l.jsx(l.Fragment,{}):"string"==typeof n&&""!==n?l.jsx("img",{src:n,alt:""}):"v1"===o(s,"themeVersion")?l.jsx("span",{children:e}):l.jsx("img",{src:t,alt:""})};function K(g){var h,D;let{apiCheck:K,onLivenessDetectionDone:O,captureFrameSettings:U,onFramesCaptured:B,frontCamera:z,flipVideoHorizontal:G,customDirectionIcon:W,customStepTimeConstraints:Y,onProcessing:q,customErrors:J,apiCredentials:Q,outputEncryptionSettings:X,cameraScale:Z,defaultCameraId:ee,offsetFaceY:er,isLoading:es,serviceSettings:et,onReset:en}=g,ea=e(),{onErrorCallback:eo,onCloseCallback:ei}=A(),ec=r.useAsset("bg_camera_mask.png"),el=r.useAsset("bg_camera_mask_red.png"),eu=s("IDCapturing.loadingIcon.src","ic_loading.gif"),[em,ep]=t.useState({}),{yFaceVerificationStepsWrapper:ed,yFaceDetectionError:eg,yCountdown:ef}=em,[eh,ex]=t.useState(""),[ej,ey]=t.useState(),eC=t.useMemo(()=>({backgroundColor:n("Selfie.backgroundColor")({theme:ea})}),[ea]);a(o(ea,"themeVersion"),"up_arrow.gif"),a(o(ea,"themeVersion"),"left_arrow.gif"),a(o(ea,"themeVersion"),"right_arrow.gif"),a(o(ea,"themeVersion"),"frontal_arrow.svg"),a(o(ea,"themeVersion"),"instruction_up.svg"),a(o(ea,"themeVersion"),"instruction_left.svg"),a(o(ea,"themeVersion"),"instruction_right.svg"),a(o(ea,"themeVersion"),"instruction_frontal.svg");let eF=t.useCallback(({lostY:e,height:r,clientHeight:s})=>{let t=f.isMobile?e:e+80,n=t+r+20,a=n+110;ep({yFaceDetectionError:a+30,yCountdown:a,yFaceVerificationStepsWrapper:n});let o=Math.floor(e),i=Math.floor(s-e),c=Math.floor(t);return 0!==er&&(c+er<o||c+er+r>i)?eo({code:`offsetFaceY must be in [-${c-o}, ${i-r-c}]`}):c+=er,{y:c}},[er,eo]),{shouldResetFlowOnOrientationChange:eD,cropArea:eS,curStepIndex:eb,directionIcon:ev,directionIconAnimation:eT,faceDetectionError:eI,resetFlow:ek,handleVideoPlayed:eE,instructions:e_,refVideo:eV,refIsReseting:eL,steps:eR,videoPlayed:ew,activeCapturing:eP,warmupDone:eH,showLoading:eN}=F({currentOrientation:ej,apiCheck:K,bgCameraMask:ec,bgCameraMaskRed:el,surroundStyle:eC,onLivenessDetectionDone:O,onError:eo,cropAreaDimension:eF,customDirectionIcon:W,captureFrameSettings:U,onFramesCaptured:B,setRemainingTime:ex,customStepTimeConstraints:Y,onProcessing:q,customErrors:J,apiCredentials:Q,outputEncryptionSettings:X,cameraScale:Z,serviceSettings:et,onReset:en});t.useEffect(()=>{"string"==typeof eR[0]?.directionIcon&&Promise.all(eR.map(e=>S(e.directionIcon)))},[eR]);let eA=b(g,ea),e$=eL.current?0:eb/eR.length*100,{lang:eM}=i.useSDKSettings(),eK=t.useRef(0),eO=t.useRef({}),eU=t.useRef(c.ErrorDuration.SHORT),eB=t.useMemo(()=>{let{msg:e,duration:r=c.ErrorDuration.SHORT}=eI||{},s=e?.[eM];return Date.now()-eK.current>=eU.current&&(eK.current=Date.now(),eU.current=r,eO.current=s),eO.current},[eI,eb]),ez=t.useCallback(e=>{ey(e),eD?ek():e===x.LANDSCAPE?eV.current?.pause():eV.current?.play()},[eV,ek,eD]);return l.jsx(j,{onOrientationChange:ez,children:l.jsxs(u,{frontCamera:z,onVideoPlayed:eE,onClose:ei,flipHorizontal:G??z,ref:eV,videoSettings:$,onError:eo,scale:Z,defaultCameraId:ee,closeButton:l.jsx(m,{}),children:[!eH&&l.jsx(y,{}),ew?l.jsxs(l.Fragment,{children:[eS.current?l.jsxs(C,{x:`${eS.current.x}px`,y:`${eS.current.y}px`,width:`${eS.current.width}px`,height:`${eS.current.height}px`,surroundStyle:eS.current.surroundStyle,children:[l.jsx(v,{padding:T}),l.jsx(I,{...eA,progress:e$,showErrorRing:!!eI}),l.jsx(k,{children:(h=ev,D=eT,h?"string"==typeof h?l.jsx("img",{className:D,src:h,alt:"",style:{maxWidth:"98px",maxHeight:"98px",marginBottom:"25px"}}):h:null)}),eP&&l.jsx(E,{})]}):null,e_?l.jsxs(l.Fragment,{children:[l.jsx(_,{top:ed+5,className:"instructions",children:e_}),l.jsx(V,{top:ed+40,children:eR.map((e,r)=>{let{name:s,image:{objUrl:t}}=e;return l.jsx(L,{active:eb>=r,className:"step-item",children:t?l.jsx("img",{className:"image_preview",src:t,alt:""}):l.jsx(M,{stepNumber:r+1,type:s,theme:ea})},s)})})]}):null]}):null,l.jsx(R,{y:"20px",children:l.jsx(p,{id:"flash_liveness.title"})}),(eN||es)&&l.jsx(w,{children:l.jsx("img",{src:eu,alt:""})}),eh&&l.jsxs(P,{top:ef,children:[l.jsx(d,{color:n("Selfie.countdown.color")({theme:ea})}),l.jsx(H,{children:eh})]}),"string"==typeof eB?l.jsx(N,{top:eg,className:"face-detection-error",children:eB}):null]})})}K.propTypes={apiCheck:g.bool,onLivenessDetectionDone:g.func,onClose:g.func,onError:g.func,onReset:g.func,captureFrameSettings:g.shape({}),onFramesCaptured:g.func,flipVideoHorizontal:g.bool,frontCamera:g.bool,isLoading:g.bool,customDirectionIcon:g.shape({}),customStepTimeConstraints:g.shape({}),onProcessing:g.func,customErrors:g.shape({}),apiCredentials:g.shape({accessKey:g.string,secretKey:g.string,apiUrl:g.string}),outputEncryptionSettings:g.shape({}),cameraScale:g.number,defaultCameraId:g.string,offsetFaceY:g.number,styledComponent:g.shape({CloseCameraButton:g.node}),serviceSettings:g.shape({})},K.defaultProps={apiCheck:!1,onLivenessDetectionDone:null,onClose:null,onError:()=>{},onReset:()=>{},captureFrameSettings:{enable:!1,framesIntervalTime:180,framesBatchLength:0},onFramesCaptured:()=>{},flipVideoHorizontal:null,frontCamera:!0,isLoading:!1,customDirectionIcon:{[c.FaceDirection.LEFT]:l.jsx(D,{type:c.FaceDirection.LEFT}),[c.FaceDirection.RIGHT]:l.jsx(D,{type:c.FaceDirection.RIGHT}),[c.FaceDirection.UP]:l.jsx(D,{type:c.FaceDirection.UP}),[c.FaceDirection.FRONTAL]:l.jsx(D,{type:c.FaceDirection.FRONTAL})},customStepTimeConstraints:{[c.FaceDirection.UP]:{delayTime:0},[c.FaceDirection.LEFT]:{delayTime:0},[c.FaceDirection.RIGHT]:{delayTime:0},[c.FaceDirection.FRONTAL]:{delayTime:2e3}},onProcessing:()=>{},customErrors:null,apiCredentials:{accessKey:"",secretKey:"",apiUrl:""},outputEncryptionSettings:null,cameraScale:1,defaultCameraId:void 0,offsetFaceY:0,styledComponent:{CloseCameraButton:null},serviceSettings:{enableUploadFrames:!0,enableUploadImages:!0,enableVerifySanityPortrait:!0,enableVerifySanityIDCard:!0,enableVerifyFaceLiveness:!0,enableDetectIDCardTampering:!0,enableReadIDCardInfo:!0}};export{K as default};
@@ -0,0 +1,3 @@
1
+ import{d as e,P as i,s as t,n as c,u as n,g as o,b as r,j as a}from"./chunk-5d7eeacb.js";let s=e.img`
2
+ width: ${({width:e})=>e};
3
+ `;function l({type:e}){let i=c(),l=n(`Selfie.Active.directionIcon.${e}`,`${e}_arrow.gif`),F=n(`Selfie.Active.directionIcon.${t.FaceDirection.FRONTAL}`,"frontal_arrow.svg"),d=o(`Selfie.Active.directionIcon.${e}Width`)({theme:i}),f=r(i,`Selfie.Active.directionIcon.${e}`);return null===f?a.jsx(a.Fragment,{}):e===t.FaceDirection.FRONTAL&&F?a.jsx(s,{src:F,width:d,alt:""}):f&&null!==f?a.jsx(s,{src:r(i,`Selfie.Active.directionIcon.${e}`),width:d,alt:""}):a.jsx(s,{src:l,alt:"",width:d})}l.propTypes={type:i.oneOf([t.FaceDirection.LEFT,t.FaceDirection.RIGHT,t.FaceDirection.UP,t.FaceDirection.FRONTAL])},l.defaultProps={type:t.FaceDirection.LEFT};export{l as D};
@@ -0,0 +1 @@
1
+ import{r as e,v as t,a as s,b as a,n as i,g as n,ar as r,as as l,V as o,X as _,Y as g,j as d,at as c,au as m,av as f,aw as u,ax as v,aE as b,aF as h,aB as p,O as k,Z as y,m as S,p as C,s as F,aC as x,aD as w,a1 as E,P as W}from"./chunk-5d7eeacb.js";import{d as R}from"./chunk-630b6747.js";import{t as M}from"./chunk-50924bca.js";import{C as L,O as O}from"./chunk-5c360a9c.js";import{u as D,S as B,a as I,o as P,b as T,c as j,d as A,n as V,l as q,f as U,F as z,e as Q,s as N,g as J,h as G,i as H,j as K,W as $,k as X,m as Y,p as Z,q as ee,r as et,A as es,O as ea}from"./chunk-e3a1c9ae.js";import{m as ei,a as en,u as er}from"./chunk-080d4642.js";import{u as el}from"./chunk-2d04cdda.js";let eo=0,e_=1,eg={data:{settings:{sdk_settings:{passive_liveness_v2_settings:{frontal_face_check:{enable:!0,up_down_bound_min:.35,up_down_bound_max:.7},capture_frame_settings:{enable:!1,frames_batch_length:10,frames_interval_time:0,frame_quality:.8,frame_scale:1,auto_capture_min_frames:8,auto_capture_min_frames_far:8,auto_capture_min_frames_close:0},not_qualified_settings:{enable_far:!1,threshold_far:.11},close_eyes_settings:{enable:!1,timeout:5,force_check:!1},face_settings:{chin_height:20,max_far_face_ratio:.9,min_far_face_ratio:.8,mobile:{chin_height:20,max_far_face_ratio:.9,min_far_face_ratio:.85}},timeout_settings:{enable:!0,total:30,countdown:10,max_retry_count:0,non_stoppable:!1},exif_data_settings:{enable:!0},mask_settings:{mobile:{oval_vertical_padding:20,oval_horizontal_padding:20,oval_vertical_offset:60,small_scale:.65},oval_horizontal_padding:20,oval_vertical_padding:20,oval_vertical_offset:0,small_scale:.6},image_settings:{valid_face_ratio:.6,image_quality:1,crop_center_far:!0,crop_center_close:!1,detection_to_whole_face_ratio:.8},blur_far_settings:{enable:!0,blurry_threshold:.4,wait_for_best_image_time_ms:1e3},brightness_detection_far_settings:{enable_too_bright_check:!1,enable_too_dark_check:!1,too_bright_threshold:.83,too_dark_threshold:.195},output_image_settings:{image_ordering:["far","close"]},auto_gen_frame_ids:{enable:!1,max_items:50}}}}}},ed=()=>{let i=el();return e.useMemo(()=>{let e=ei({},eg,i),n={enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.enable"),framesIntervalTime:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.frames_interval_time"),framesBatchLength:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.frames_batch_length"),frameScale:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.frame_scale"),frameQuality:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.frame_quality"),autoCaptureMinFrames:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.auto_capture_min_frames"),autoCaptureMinFramesFar:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.auto_capture_min_frames_far"),autoCaptureMinFramesClose:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.capture_frame_settings.auto_capture_min_frames_close")},r={smallScale:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.mobile.small_scale":"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.small_scale"),largeScale:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.mobile.small_scale":"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.small_scale"),ovalPadding:{left:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.mobile.oval_horizontal_padding":"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.oval_horizontal_padding"),right:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.mobile.oval_horizontal_padding":"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.oval_horizontal_padding"),top:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.mobile.oval_vertical_padding":"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.oval_vertical_padding"),bottom:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.mobile.oval_vertical_padding":"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.oval_vertical_padding")},ovalVerticalOffset:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.mobile.oval_vertical_offset":"data.settings.sdk_settings.passive_liveness_v2_settings.mask_settings.oval_vertical_offset"),chinToMaskBottomPadding:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.face_settings.mobile.chin_height":"data.settings.sdk_settings.passive_liveness_v2_settings.face_settings.chin_height")},l={minFarFaceRatio:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.face_settings.mobile.min_far_face_ratio":"data.settings.sdk_settings.passive_liveness_v2_settings.face_settings.min_far_face_ratio"),maxFarFaceRatio:t.getWebSetting(e,s.isMobile?"data.settings.sdk_settings.passive_liveness_v2_settings.face_settings.mobile.max_far_face_ratio":"data.settings.sdk_settings.passive_liveness_v2_settings.face_settings.max_far_face_ratio")},o={enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.close_eyes_settings.enable"),timeout:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.close_eyes_settings.timeout"),forceCheck:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.close_eyes_settings.force_check")},_={enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.exif_data_settings.enable")},g={imageQuality:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.image_settings.image_quality"),validFaceRatio:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.image_settings.valid_face_ratio"),enableCropCenterFar:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.image_settings.crop_center_far"),detectionToWholeFaceRatio:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.image_settings.detection_to_whole_face_ratio")},d=t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.timeout_settings.max_retry_count"),c={enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.timeout_settings.enable"),total:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.timeout_settings.total"),countdown:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.timeout_settings.countdown"),enableMaxRetryCount:d>0,maxRetryCount:d,interruptible:!t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.timeout_settings.non_stoppable")},m={enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.blur_far_settings.enable"),threshold:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.blur_far_settings.blurry_threshold"),duration:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.blur_far_settings.wait_for_best_image_time_ms")},f={enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.not_qualified_settings.enable_far"),threshold:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.not_qualified_settings.threshold_far")},u={enableTooBrightCheck:a(e,"data.settings.sdk_settings.passive_liveness_v2_settings.brightness_detection_far_settings.enable_too_bright_check"),enableTooDarkCheck:a(e,"data.settings.sdk_settings.passive_liveness_v2_settings.brightness_detection_far_settings.enable_too_dark_check"),tooBrightThreshold:a(e,"data.settings.sdk_settings.passive_liveness_v2_settings.brightness_detection_far_settings.too_bright_threshold"),tooDarkThreshold:a(e,"data.settings.sdk_settings.passive_liveness_v2_settings.brightness_detection_far_settings.too_dark_threshold")},v={imageOrdering:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.output_image_settings.image_ordering"),farImageOrder:e_,closeImageOrder:eo};Array.isArray(v.imageOrdering)&&2===v.imageOrdering.length&&"far"===v.imageOrdering[0]&&"close"===v.imageOrdering[1]&&(v.farImageOrder=0,v.closeImageOrder=1);let b={enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.auto_gen_frame_ids.enable")&&c.enable,maxItems:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.auto_gen_frame_ids.max_items")};return{captureFrameSettings:n,livenessSettings:{},flashSettings:{},maskSettings:r,faceSettings:l,closeEyesSettings:o,exifSettings:_,imageSettings:g,timeoutSettings:c,blurCheckFarSettings:m,blurCheckCloseSettings:{},notQualifiedFarSettings:f,notQualifiedCloseSettings:{},brightnessDetectionFarSettings:u,brightnessDetectionCloseSettings:{},outputImageSettings:v,autoGenFrameIds:b,frontalFaceCheckSettings:{enable:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.frontal_face_check.enable"),upDownBoundMin:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.frontal_face_check.up_down_bound_min"),upDownBoundMax:t.getWebSetting(e,"data.settings.sdk_settings.passive_liveness_v2_settings.frontal_face_check.up_down_bound_max")}}},[i])},ec=s.isMobile?{width:{ideal:640},whiteBalanceMode:"none"}:{width:{ideal:9999},whiteBalanceMode:"none"},em=(e,t)=>""===t.faceError&&(!!e.isEyeClosed&&!t.isEyeClosed||(!!e.isEyeClosed||!t.isEyeClosed)&&(!!u.hasBetterBrightnessScore(t.brightnessScore,e.brightnessScore)||!!u.hasSameBrightnessScore(t.brightnessScore,e.brightnessScore)&&v.hasBetterBlurScore(t.blurScore,e.blurScore)));function ef(t){let{onReset:s,onDone:a,frontCamera:u,styledComponent:v,onFramesCaptured:S,customComponent:C,extraConfig:F}=t,{onErrorCallback:x,onCloseCallback:w}=en(),E=ed(),W=C?.PassiveLivenessBody??b,O=C?.PassiveLivenessError??h,Z=C?.PassiveLivenessCloseIcon??p,{maskSettings:ee,faceSettings:et,captureFrameSettings:es,exifSettings:ea,imageSettings:ei,timeoutSettings:el,blurCheckFarSettings:eo,outputImageSettings:e_,autoGenFrameIds:eg}=E,ef=e.useRef(),eu=D(),ev=er(),[eb,eh]=e.useState(""),ep=e.useMemo(()=>M(eh,1e3),[]),[ek,ey]=e.useState(!1),[eS,eC]=e.useState(B.LOADING),eF=i(),ex={width:n("FlashLiveness.mask.width")({theme:eF}),height:n("FlashLiveness.mask.height")({theme:eF}),strokeColor:(eS===B.FAR_FACE||eS===B.CLOSE_FACE)&&eb&&!ek?n("FlashLiveness.mask.strokeColorError")({theme:eF}):n("FlashLiveness.mask.strokeColor")({theme:eF}),strokeWidth:2*n("FlashLiveness.mask.strokeWidth")({theme:eF}),path:n("FlashLiveness.mask.path")({theme:eF}),backgroundColor:n("FlashLiveness.maskFill")({theme:eF})},ew=e.useRef(null),[eE,eW,eR]=I(),[eM,eL]=e.useState(0),[eO,eD]=e.useState(!1),eB=e.useRef({frames:[],images:[]}),eI=e.useRef(!1),eP=P(),eT=T({compareFn:em,duration:eo.duration,minFrames:es.autoCaptureMinFrames}),[ej,eA]=e.useState(!1),{sessionId:eV,updateSessionId:eq}=j(),eU=e.useRef(r.createSingleUUID()),{onVideoPlayed:ez,cropArea:eQ,isPlaying:eN}=A({}),{smallScale:eJ,largeScale:eG}=V(ee,{width:ex.width,height:ex.height},{width:eQ.width,height:eQ.height}),eH=1e3*el.total/es.framesIntervalTime,{uuids:eK,getNextUUID:e$,reset:eX}=l({total:Math.min(eg.maxItems,Math.ceil(eH/es.framesBatchLength*1.2))}),eY=e.useCallback(e=>{let t=e[e.length-1];try{let e=JSON.parse(t.metadata);eg.enable&&(e.global_batch_id=e$()),e.global_session_id=eU.current,t.metadata=JSON.stringify(e)}catch(e){console.error("Unable to process last frame metadata",e)}},[eg.enable,e$]),eZ=e.useRef(null),{playVoice:e2}=o.useVoicePlayer(),e0=e.useMemo(()=>R(()=>{if(eI.current=!1,eB.current.frames=[],eB.current.images=[],eZ.current=null,eL(eJ),eC(B.FAR_FACE),e2("move_face_into_frame"),eq(),eT.stopCapturing(),ey(!1),eg.enable){let e=eX();_.addExifData("frame_batch_ids",e)}s()},200,{leading:!0}),[eJ,e2,eq,eT,eg.enable,s,eX]),e1=q({offset:ee.ovalVerticalOffset,ovalPadding:ee.ovalPadding,largeScale:eG,maskHeight:eQ.height,ovalHeight:ex.height}),e8=e.useCallback(async()=>{eC(B.STOP_DECTECTING),eu("selfie_passive_v2","user_activity",()=>({passive_liveness_in_ms:performance.now()-ef.current}));let{frames:e}=eB.current;if(es.enable&&es.framesBatchLength>0){let t=e.length%es.framesBatchLength;if(0!==t){let s=e.slice(-1*t);eY(s),"function"==typeof S&&S(s)}}eB.current.images[e_.farImageOrder].blob=await eB.current.images[e_.farImageOrder].blob,_.addExifData("selfie_type","passive_v2"),_.addExifData("passive_liveness_v2",{number_of_frames:{far_frames:e.length},passive_liveness_in_ms:Math.round(performance.now()-ef.current),face_settings:{max_far_face_ratio:et.maxFarFaceRatio,min_far_face_ratio:et.minFarFaceRatio},mask_settings:{oval_vertical_offset:ee.ovalVerticalOffset,small_scale:ee.smallScale},image_settings:{valid_face_ratio:ei.validFaceRatio}});let t=await _.writeCurrentExif({imageData:eB.current.images[e_.farImageOrder],enableExifData:ea.enable});eB.current.images[e_.farImageOrder].blob=t,eP.enable&&(eB.current.images[e_.farImageOrder].encrypted=await g.encrypt({blob:eB.current.images[e_.farImageOrder].blob,key:eP.key})),eB.current.images=eB.current.images.filter(e=>!!e);try{"function"==typeof a&&await a({images:eB.current.images,frames:eB.current.frames})}catch(e){x({error:e})}},[eu,es.enable,es.framesBatchLength,e_.farImageOrder,et.maxFarFaceRatio,et.minFarFaceRatio,ee.ovalVerticalOffset,ee.smallScale,ei.validFaceRatio,ea.enable,eP.enable,eP.key,eY,S,a,x]),e9=e.useCallback(({prediction:e,canvas:t})=>{if(!es.enable)return;let{frames:s}=eB.current,a=U({prediction:e,canvas:t,index:s.length,quality:es.frameQuality});if(a.metadata=JSON.stringify({type:z.FAR_FACE,time:Math.round(performance.now()),session_id:eV}),s.push(a),es.framesBatchLength<=0||s.length%es.framesBatchLength!=0)return;let i=s.slice(-1*es.framesBatchLength);eY(i),"function"==typeof S&&S(i)},[es.enable,es.frameQuality,es.framesBatchLength,S,eY,eV]),e3=e.useCallback(async()=>{let{frames:e}=eB.current;0===e.length&&(eI.current=!0)},[]),e5=e.useMemo(()=>({x:Math.max(eW?.left,0),y:Math.max(eW?.top,0),width:Math.min(eW?.right-eW?.left,eQ.width),height:Math.min(eW?.bottom-eW?.top,eQ.height)}),[eQ.height,eQ.width,eW?.bottom,eW?.left,eW?.right,eW?.top]),e6=e.useCallback(async({frame:e,prediction:t,canvas:s,originalRatio:a})=>{if("no_face"===e.faceError||eB.current.images[e_.farImageOrder])return;if(es.enable){let e=performance.now();if(null!==eZ.current&&e-eZ.current<es.framesIntervalTime)return;eZ.current=e}let i=e=>{let t=X({maskBoundingBox:e5,faceRatio:e.faceRatio,validFaceRatio:ei.validFaceRatio,video:ew.current,shouldCropCenterSquare:ei.enableCropCenterFar,cropArea:eQ,frame:e.snapshot,facePrediction:e.facePrediction,detectionToWholeFaceRatio:ei.detectionToWholeFaceRatio}),s={blob:k.takePicture({canvas:t,quality:ei.imageQuality}),gesture:"frontal",captureTime:e.captureTime,selfieLabel:z.FAR_FACE,qualifyScore:e.qualifyScore,blurScore:e.blurScore,brightnessScore:e.brightnessScore};_.addExifData("model_score.face_blurry_score",s.blurScore),_.addExifData("model_score.face_brightness_score",s.brightnessScore),_.addExifData("model_score.face_qualify_score",s.qualifyScore),_.addExifData("selfie_label",s.selfieLabel),_.addExifData("capture_time",s.captureTime),_.addExifData("type",s.gesture),eB.current.images[e_.farImageOrder]=s},n={qualifyScore:e.qualifyScore,blurScore:e.blurScore,isEyeClosed:e.isEyeClosed,faceRatio:e.faceRatio,snapshot:Q(ew.current),captureTime:Date.now(),facePrediction:N(t,a),brightnessScore:e.brightnessScore,faceError:e.faceError};if(!eo.enable){e9({prediction:t,canvas:s}),i(n),await e8();return}if(!eT.isAutoCapturing()){await e2("please_hold_still"),ey(!0),e9({prediction:t,canvas:s}),eT.startCapturing({onDone:async e=>{i(e),await e8()},initialFrame:n});return}e9({prediction:t,canvas:s}),eT.captureFrame(n)},[e_.farImageOrder,es.enable,es.framesIntervalTime,eo.enable,eT,e9,e5,ei.validFaceRatio,ei.enableCropCenterFar,ei.detectionToWholeFaceRatio,ei.imageQuality,eQ,e8,e2]),{warmupDone:e4}=J({onError:x,isVideoPlaying:eN,step:eS,cropArea:eQ,videoRef:ew,onFarFaceDetected:e3,onFarFullFaceDetected:e6,onFaceError:e.useCallback(({error:e})=>{ep(e),("no_face"===e||"multiple_faces"===e)&&"no_face"===e&&eI.current&&e0()},[e0,ep]),faceSettings:et,maskBoundingRect:eW,shouldPauseFaceDetection:eR||ej,faceDetectionSettings:E,shouldContinueOnError:ek,debug:ev});G(ew.current);H(()=>{!async function(){let{resourceReport:e,measureReport:t}=await y.reportAll();Object.values(e).forEach(e=>{eu("selfie_passive_v2","sdk.download_model",e)}),Object.values(t).forEach(e=>{eu("selfie_passive_v2","sdk.init_model",e)})}()},e4),H(()=>{eC(B.FAR_FACE),eL(eJ),e2("move_face_into_frame"),eD(!0),eg.enable&&_.addExifData("frame_batch_ids",eK),_.addExifData("global_session_id",eU.current),ef.current||(ef.current=performance.now())},e4&&eN),H(()=>eu("selfie_passive_v2","user_activity.start"),!0),H(()=>eu("selfie_passive_v2","user_activity.start_far"),eS===B.FAR_FACE);let{Loading:e7}=v,te=e.useCallback(()=>{ey(!1),eT.stopCapturing(),eA(!0)},[eT]),tt=e.useCallback(()=>{eA(!1),e0()},[e0]),{remaining:ts}=K({shouldStart:eO&&el.enable,onTimeout:te,onDelayEnd:tt,onError:x,totalTime:el.total,totalDelay:3,maxRetriesSettings:{enable:el.enableMaxRetryCount,total:el.maxRetryCount},interruptible:el.interruptible}),ta=Y(eb),ti=eQ.y+eQ.height/2+e1,tn=eo.duration,tr=Math.max(tn,es.autoCaptureMinFrames*es.framesIntervalTime);return d.jsxs(d.Fragment,{children:[d.jsx(c,{frontCamera:u,onVideoPlayed:ez,onClose:w,flipHorizontal:u,ref:ew,onError:x,videoSettings:ec,closeButton:d.jsx(Z,{}),children:d.jsxs($,{overlay:!e4||!eN,loadingComponent:e7,children:[!ek&&""!==eb&&d.jsx(m,{}),d.jsx(L,{x:`${Math.round(eQ.x)}px`,y:`${Math.round(eQ.y)}px`,width:`${eQ.width}px`,height:`${eQ.height}px`,surroundStyle:{background:n("FlashLiveness.maskFill")({theme:eF})},children:d.jsx(f,{ref:eE,scale:eM,debug:ev,width:eQ.width,height:eQ.height,padding:ee.ovalPadding,verticalOffset:e1,mask:ex})}),!ek&&""!==ta&&d.jsx(O,{errorY:ti,errorMessage:ta})]})}),d.jsx(W,{step:eS,errorCode:eb,timeoutProps:{remaining:ts,warningThreshold:el.countdown,total:el.total,shouldStart:eO&&el.enable},isAutoCapturing:ek,autoCaptureDuration:tr,extraConfig:F})]})}let eu=t=>{let{apiCheck:s,onLivenessDetectionDone:a,frontalMinSize:i,serviceSettings:n,apiCredentials:r,...l}=t,o=l.customComponent?.FlashLivenessLoading??x,[_,g]=e.useState(!1),c=P(),m=el(),f=C.getEnabledServices(n,m),{verifyLiveness:u}=function({outputEncryptionSettings:t,selfieType:s,enabledServices:a,apiCredentials:i}){let{apiClient:n}=S.useApiClient({apiCredentials:i});return{verifyLiveness:e.useCallback(async({videos:e,images:i,metadata:r})=>{try{let l=await Promise.all(i.map(e=>{if(!t.enable)return n.uploadImage({label:"portrait",file:e.blob,metadata:JSON.stringify({label:e.selfieLabel})});let s=new Blob([e.encrypted.hex]);return n.uploadImage({file:s,label:"portrait",metadata:JSON.stringify({label:e.selfieLabel})},{"X-TV-Key":t.key})})),o=null;a.enableVerifyFaceLiveness&&(o=n.verifyFaceLiveness({images:l.map(e=>({id:e?.data?.image_id,label:"portrait"})),videos:e,metadata:r,selfie_type:s}));let _=null;a.enableVerifySanityPortrait&&(_=n.requestVerifyPortrait({image:{id:l[l.length-1]?.data?.image_id},selfie_type:s}));let[g,d]=await Promise.all([o,_]);return{uploadedImages:l,faceLivenessResult:g,portraitResult:d}}catch(e){return console.error(e),{}}},[n,a.enableVerifyFaceLiveness,a.enableVerifySanityPortrait,t.enable,t.key,s])}}({apiCredentials:r,outputEncryptionSettings:c,selfieType:F.Mode.PASSIVE_V2,enabledServices:f}),{captureFrameSettings:v}=ed(),{framesIntervalTime:b}=v,{onFramesCaptured:h,onReset:p}=t,{onErrorCallback:k}=en(),y=Z(),W=async e=>{let t=e;if(c.enable&&(t=await w.encryptFrames(t,c.key)),"function"==typeof h&&h(t),s&&f.enableUploadFrames){let e={};c.enable&&(e["X-TV-Key"]=c.key),ee.uploadFrameBatch(et(t),y,e)}},R=async e=>{let t={frame_interval:b},n=e.images.filter(e=>"frontal"===e.gesture),r=n.map(e=>e.blob),l=n.map(e=>e.encrypted),o=r[r.length-1],_=o&&"number"==typeof i?await E.scaleImage(o,{minsize:i}):null,d=e.frames;if(c.enable&&(d=await w.encryptFrames(d,c.key)),!s||!f.enableUploadImages)return void await a({capturedFrames:d,frontalFaces:r,frontalFacesEncrypted:l,frontalScaledImage:_,steps:[],metadata:t});try{g(!0);let s=null;s=v.enable?await ee.getAllUploadedBatches():[{frames:et(d)}];let{uploadedImages:i,faceLivenessResult:n,portraitResult:o}=await u({videos:s,images:e.images,metadata:t});if(ee.resetUploadBatches(),g(!1),n?.errors)throw n.errors;if(o?.errors)throw o.errors;await a({capturedFrames:d,steps:[],frontalFaces:r.map((e,t)=>({blob:e,id:i?.[t]?.data?.image_id})),frontalFacesEncrypted:l,frontalScaledImage:_,apiCheckPassed:n?.data.is_live??!1,verifyFaceLivenessResult:n?.data??null,verifyPortraitResult:o?.data??null,uploadFramesResult:s})}catch(e){console.error(e),g(!1),k({error:e})}};return d.jsxs(d.Fragment,{children:[d.jsx(ef,{...l,apiCheck:s,onDone:R,onFramesCaptured:W,onReset:()=>{ee.resetUploadBatches(),"function"==typeof p&&p()}}),s&&d.jsx(o,{loading:_})]})},ev=e=>{let{apiCredentials:t,outputEncryptionSettings:s}=e;return d.jsx(O,{version:"v2",unmountOnHidden:!0,children:d.jsx(es,{apiCredentials:t,children:d.jsx(ea,{settings:s,children:d.jsx(eu,{...e})})})})};ev.propTypes={apiCheck:W.bool,apiCredentials:W.shape({accessKey:W.string,secretKey:W.string,apiUrl:W.string}),onReset:W.func,onLivenessDetectionDone:W.func,onClose:W.func,onError:W.func,onFramesCaptured:W.func,frontCamera:W.bool,styledComponent:W.shape({CloseCameraButton:W.node}),outputEncryptionSettings:W.shape({key:W.string}),frontalMinSize:W.number,serviceSettings:W.shape({enableGetClientSettings:W.bool,enableUploadFrames:W.bool,enableUploadImages:W.bool,enableVerifySanityPortrait:W.bool,enableVerifyFaceLiveness:W.bool}),mode:W.string,flowId:W.string,customTexts:W.shape({}),customComponents:W.shape({PassiveLivenessBody:W.elementType}),extraConfig:W.shape({})},ev.defaultProps={apiCheck:!1,apiCredentials:{},onReset:()=>{},onLivenessDetectionDone:()=>{},onClose:()=>{},onError:()=>{},onFramesCaptured:()=>{},frontCamera:!0,styledComponent:{CloseCameraButton:null},outputEncryptionSettings:{key:""},frontalMinSize:null,serviceSettings:{enableGetClientSettings:!0,enableUploadFrames:!0,enableUploadImages:!0,enableVerifySanityPortrait:!0,enableVerifyFaceLiveness:!0},flowId:"",customTexts:{},customComponents:{PassiveLivenessBody:null},extraConfig:null};export{ev as default};