@incodetech/web 2.1.1 → 2.2.0-rc.1

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 (205) hide show
  1. package/dist/ae-signature/ae-signature.es.js +7 -4
  2. package/dist/antifraud/antifraud.es.js +6 -6
  3. package/dist/authentication/authentication.es.js +7 -7
  4. package/dist/{autoFocusTitle-CuRu2lPg.js → autoFocusTitle-D7VzaZ2P.js} +6 -3
  5. package/dist/{back-horizontal-hint-xTnSQbzn.js → back-horizontal-hint-BBGuJ75y.js} +1 -1
  6. package/dist/{back-vertical-hint-BWWlHfX2.js → back-vertical-hint-B9usJ5lY.js} +1 -1
  7. package/dist/base.css +425 -3290
  8. package/dist/{bottomSheet-CnWbbUAM.js → bottomSheet-Cp8DLulN.js} +7 -8
  9. package/dist/certificate-issuance/certificate-issuance.es.js +34 -87
  10. package/dist/certificate-issuance/styles.css +0 -41
  11. package/dist/{checkbox-1wUHSoaK.js → checkbox-Jgwh943i.js} +5 -5
  12. package/dist/connectionError-Bl5E35Qm.js +45 -0
  13. package/dist/consent/consent.es.js +10 -12
  14. package/dist/consent/styles.css +5 -4
  15. package/dist/{countrySelector-SvUOyPo0.js → countrySelector-Sd-u1WGf.js} +3 -3
  16. package/dist/cross-document-data-match/cross-document-data-match.es.js +13 -10
  17. package/dist/curp-validation/curp-validation.es.js +28 -29
  18. package/dist/curp-validation/styles.css +47 -0
  19. package/dist/{customFields-BDsXR7A-.js → customFields-CiEguXX9.js} +13 -14
  20. package/dist/{customWatchlist-CYoRNCim.js → customWatchlist-BSAW87qq.js} +9 -9
  21. package/dist/dashboardTheme-FtPiizV0.js +223 -0
  22. package/dist/{dateInputComposed-DuaofcBl.js → dateInputComposed-D0WEYWkS.js} +5 -5
  23. package/dist/dateInputComposed-DKQJz0kJ.js +1 -0
  24. package/dist/document-capture/document-capture.es.js +1 -1
  25. package/dist/document-capture/styles.css +85 -70
  26. package/dist/{documentCapture-DhbO-A-V.js → documentCapture-GFNkI1ly.js} +218 -136
  27. package/dist/documentCapture-sB2_X-we.js +2 -0
  28. package/dist/{dropdownComposed-CoU0enG6.js → dropdownComposed-BXleSN7n.js} +18 -11
  29. package/dist/dropdownComposed-DE-VJgcR.js +1 -0
  30. package/dist/dynamic-forms/styles.css +58 -6
  31. package/dist/{dynamicForms-BifGbC9F.js → dynamicForms-DU5fT72-.js} +53 -45
  32. package/dist/ekyb/ekyb.es.js +1 -1
  33. package/dist/ekyb/styles.css +1 -28
  34. package/dist/{ekybModule-DGnTw5UV.js → ekybModule-CMcpoTgh.js} +51 -27
  35. package/dist/ekybModule-CR9A6Fqb.js +2 -0
  36. package/dist/ekyc/ekyc.es.js +1 -1
  37. package/dist/ekyc/styles.css +2 -2
  38. package/dist/{ekycModule-Dxpdd0ns.js → ekycModule-BTO8iIwh.js} +45 -19
  39. package/dist/ekycModule-CewwzYvk.js +2 -0
  40. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  41. package/dist/{ae-signature → electronic-signature}/styles.css +2 -2
  42. package/dist/{electronic-signature-Ueoffasr.js → electronic-signature-COBKJBjU.js} +31 -23
  43. package/dist/email/email.es.js +10 -11
  44. package/dist/{emailInput-DsLkDtER.js → emailInput-mPPvterQ.js} +4 -4
  45. package/dist/{expiredId-BZXLrLk-.js → expiredId-CD5ETLV9.js} +6 -6
  46. package/dist/{extensibility-7sRIN0JC.js → extensibility-DBilbbhC.js} +440 -374
  47. package/dist/extensibility.es.js +24 -28
  48. package/dist/face-match/face-match.es.js +1 -1
  49. package/dist/face-match/styles.css +9 -609
  50. package/dist/faceMatch-2pfSeXeA.js +2 -0
  51. package/dist/{faceMatch-DyTBoMDm.js → faceMatch-CwDBO9Is.js} +71 -79
  52. package/dist/field-comparison/field-comparison.es.js +1 -1
  53. package/dist/fieldComparison-DUYp39WI.js +2 -0
  54. package/dist/{fieldComparison-L_knHqgw.js → fieldComparison-dDvSYYQP.js} +11 -12
  55. package/dist/finalSuccessScreen-B9kb72WR.js +500 -0
  56. package/dist/fiscal-qr/fiscal-qr.es.js +12 -12
  57. package/dist/flip-animation-CvN8FLNc.js +6996 -0
  58. package/dist/flow/flow.es.js +84 -48
  59. package/dist/flow/styles.css +908 -5423
  60. package/dist/{front-horizontal-hint-B84GgTO1.js → front-horizontal-hint-D3CrWViZ.js} +1 -1
  61. package/dist/{front-vertical-hint-Bs_avngq.js → front-vertical-hint-BoLZvyx5.js} +1 -1
  62. package/dist/geolocation/geolocation.es.js +36 -13
  63. package/dist/geolocation/styles.css +1 -1
  64. package/dist/government-validation/government-validation.es.js +11 -12
  65. package/dist/{homeScreen-B6T0JVh8.js → homeScreen-Dycy1yhN.js} +7 -9
  66. package/dist/{icons-CJJbIpBq.js → icons-D0cfSCBM.js} +92 -7
  67. package/dist/id/id.es.js +222 -52
  68. package/dist/id/styles.css +290 -10
  69. package/dist/id-back-of-card-DO593HH8.js +83 -0
  70. package/dist/id-back-of-card-vertical-DArEQ0hE.js +88 -0
  71. package/dist/id-front-of-card-Bcit7Pnq.js +308 -0
  72. package/dist/id-front-of-card-vertical-Bcr-KXcl.js +278 -0
  73. package/dist/id-laser-h-BaUHzX-d.js +480 -0
  74. package/dist/{id-laser-v-BiUXkM4x.js → id-laser-v-Dv9yEYJE.js} +7 -17
  75. package/dist/id-selfie-flow/id-selfie-flow.es.js +239 -0
  76. package/dist/id-selfie-flow/styles.css +749 -0
  77. package/dist/id-verification/id-verification.es.js +13 -9
  78. package/dist/{idOcr-WFBvqy3b.js → idOcr-riTHUOlr.js} +14 -15
  79. package/dist/identity-reuse/identity-reuse.es.js +6 -8
  80. package/dist/identity-reuse/styles.css +1 -1
  81. package/dist/{incode-logo-57XFniXU.js → incode-logo-cGsd55rc.js} +64 -1
  82. package/dist/incodeComponent-B-daxouV.js +713 -0
  83. package/dist/incodeModule-uyUrSSUM.js +25 -0
  84. package/dist/index.es.js +16 -5
  85. package/dist/inputComposed-CABc288U.js +1 -0
  86. package/dist/{inputComposed-C1R2LAa3.js → inputComposed-Pp_XN1-h.js} +9 -9
  87. package/dist/{mandatoryConsent-D0GTKu-H.js → mandatoryConsent-DSAjFc0h.js} +9 -11
  88. package/dist/manualCaptureButton-BY8dRhGA.js +300 -0
  89. package/dist/{capture-CkGvdDNH.js → manualCaptureButton-BldgUGso.js} +68 -198
  90. package/dist/{modal-OxkFuuiR.js → modal-BlczH_pL.js} +4 -4
  91. package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BvXzNWvY.js} +1 -1
  92. package/dist/{numberedStep-CEb-lFJm.js → numberedStep-DUs77Gy3.js} +1 -1
  93. package/dist/{optionAccessibleLabel-gfF-58Mv.js → optionAccessibleLabel-Dmz3eRsO.js} +6 -6
  94. package/dist/{otpInput-CnDc6pQm.js → otpInput-B3vUjmBF.js} +72 -36
  95. package/dist/{passport-horizontal-hint-Bj0ZJY0g.js → passport-horizontal-hint-DgnU-8bl.js} +1 -1
  96. package/dist/{passport-vertical-hint-Dfk77xUJ.js → passport-vertical-hint-Dd2Wknw7.js} +1 -1
  97. package/dist/{pdf-BqtJTlor.js → pdf-BUoY_2gv.js} +1 -1
  98. package/dist/pdfViewer-4xNYiBI1.js +2 -0
  99. package/dist/{pdfViewer-B97DmT9m.js → pdfViewer-BGFFFvmi.js} +5 -7
  100. package/dist/phone/phone.es.js +13 -12
  101. package/dist/{phoneInputComposed-DMiXfF-1.js → phoneInputComposed-D1ZBsd4S.js} +7 -6
  102. package/dist/{processing-BeUMfdJJ.js → processing-vGhs5Gvb.js} +2 -2
  103. package/dist/qe-signature/qe-signature.es.js +7 -4
  104. package/dist/{radioGroupComposed-DuQxslB2.js → radioGroupComposed-CYPHpI6a.js} +16 -15
  105. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +132 -45
  106. package/dist/redirect-to-mobile/styles.css +20 -10
  107. package/dist/{registerIncodeElement-DaNjbAwZ.js → registerIncodeElement-BduCekz5.js} +1 -1
  108. package/dist/{richText-CB1fmegc.js → richText-2OnIN9ff.js} +3 -1607
  109. package/dist/selfie/selfie.es.js +10 -10
  110. package/dist/selfie/styles.css +16 -949
  111. package/dist/signature/signature.es.js +27 -19
  112. package/dist/{ae-signature/styles2.css → signature/styles.css} +4 -4
  113. package/dist/{snackbar-DS7Mv62v.js → snackbar-BzyWgQ7J.js} +2 -2
  114. package/dist/spacer-Bnmh-DfR.js +2344 -0
  115. package/dist/{spinner-BMeIEK1d.js → spinner-HP_c74K-.js} +45 -4
  116. package/dist/statusPage-C0vTVW0Q.js +36 -0
  117. package/dist/{successIcon-B5mGvdx1.js → successIcon-Bj8Y9CuI.js} +1 -1
  118. package/dist/{tabs-C__chW-u.js → tabs-B_TxQ9ZQ.js} +4 -3
  119. package/dist/themes/dark.css +35 -0
  120. package/dist/themes/light.css +35 -0
  121. package/dist/{tutorial-CCfPuVKX.js → tutorial-Cuy2ZEG9.js} +222 -180
  122. package/dist/types/ae-signature.d.ts +91 -5
  123. package/dist/types/antifraud.d.ts +86 -3
  124. package/dist/types/authentication.d.ts +86 -3
  125. package/dist/types/certificate-issuance.d.ts +86 -3
  126. package/dist/types/consent.d.ts +86 -3
  127. package/dist/types/cross-document-data-match.d.ts +88 -4
  128. package/dist/types/curp-validation.d.ts +86 -3
  129. package/dist/types/document-capture.d.ts +88 -4
  130. package/dist/types/ekyb.d.ts +88 -4
  131. package/dist/types/ekyc.d.ts +88 -4
  132. package/dist/types/electronic-signature.d.ts +87 -4
  133. package/dist/types/email.d.ts +82 -22
  134. package/dist/types/extensibility.d.ts +160 -5
  135. package/dist/types/face-match.d.ts +84 -22
  136. package/dist/types/field-comparison.d.ts +86 -3
  137. package/dist/types/fiscal-qr.d.ts +89 -5
  138. package/dist/types/flow.d.ts +92 -2
  139. package/dist/types/geolocation.d.ts +86 -3
  140. package/dist/types/government-validation.d.ts +86 -3
  141. package/dist/types/id-selfie-flow.d.ts +161 -0
  142. package/dist/types/id-verification.d.ts +87 -4
  143. package/dist/types/id.d.ts +88 -5
  144. package/dist/types/identity-reuse.d.ts +82 -2
  145. package/dist/types/index.d.ts +109 -1
  146. package/dist/types/phone.d.ts +83 -24
  147. package/dist/types/qe-signature.d.ts +91 -5
  148. package/dist/types/redirect-to-mobile.d.ts +4 -1
  149. package/dist/types/selfie.d.ts +86 -3
  150. package/dist/types/signature.d.ts +91 -5
  151. package/dist/types/video-selfie.d.ts +83 -6
  152. package/dist/types/watchlist.d.ts +91 -5
  153. package/dist/types/workflow.d.ts +85 -2
  154. package/dist/{i18n-CU4xq8qC.js → uiConfig-D7ezQeZ7.js} +63 -3
  155. package/dist/{useModuleLoader-Bi26kJbg.js → useModuleLoader-BImpfi_R.js} +37 -248
  156. package/dist/{vendor-preact-DThS2ZQ_.js → vendor-preact-mvwZ8mJj.js} +1 -1
  157. package/dist/{verificationResult-BWWkmeiA.js → verificationResult-IUf0w1aR.js} +26 -15
  158. package/dist/video-selfie/styles.css +349 -1202
  159. package/dist/video-selfie/video-selfie.es.js +120 -381
  160. package/dist/watchlist/watchlist.es.js +16 -13
  161. package/dist/{watchlistForBusiness-D2Uo_TwF.js → watchlistForBusiness-zT9gCfTc.js} +12 -13
  162. package/dist/workflow/styles.css +501 -3977
  163. package/dist/workflow/workflow.es.js +26 -19
  164. package/package.json +22 -20
  165. package/dist/button-Dz6AsbmF.js +0 -40
  166. package/dist/cameraView-DIEzM5ru.js +0 -47
  167. package/dist/cpf-ocr/cpf-ocr.es.js +0 -2
  168. package/dist/cpf-ocr/styles.css +0 -45
  169. package/dist/cpfOcr-B79245-3.js +0 -2
  170. package/dist/cpfOcr-BhxT-lRN.js +0 -92
  171. package/dist/dateInputComposed-DRzZi6uy.js +0 -1
  172. package/dist/documentCapture-DXYYyxZl.js +0 -2
  173. package/dist/dropdownComposed-BAoxIIsE.js +0 -1
  174. package/dist/ekybModule-C6Nttked.js +0 -2
  175. package/dist/ekycModule-CDIEjI6V.js +0 -2
  176. package/dist/errorIcon-BA4T6iy-.js +0 -26
  177. package/dist/faceMatch-B_HvxLm_.js +0 -2
  178. package/dist/fieldComparison-DfNEuEE5.js +0 -2
  179. package/dist/flip-animation-CZYSUtMm.js +0 -6983
  180. package/dist/hooks-CNu7o-v8.js +0 -186
  181. package/dist/id-laser-h-CzPegPMn.js +0 -467
  182. package/dist/incodeComponent-CfzJGETt.js +0 -64
  183. package/dist/incodeModule-B-4_3JrK.js +0 -13
  184. package/dist/inputComposed-BaY5q9WM.js +0 -1
  185. package/dist/loadingIcon-B0ysgiNq.js +0 -148
  186. package/dist/page-DidH_RkX.js +0 -171
  187. package/dist/spinner-BCDCoi9C.js +0 -1
  188. package/dist/statusPage-Bk8nJwXV.js +0 -28
  189. package/dist/transitionSpinner-CuNCqHNi.js +0 -30
  190. package/dist/types/cpf-ocr.d.ts +0 -12
  191. package/dist/typography-BZIpjo97.js +0 -45
  192. package/dist/uiConfig-D2_wawvr.js +0 -25
  193. /package/dist/{aligndevicelottie-DFscByAI.js → aligndevicelottie-CfoZ5Uus.js} +0 -0
  194. /package/dist/{back-tutorial-cI_4VHmE.js → back-tutorial-BHyRHyET.js} +0 -0
  195. /package/dist/{backdevicelottie-COyhTrxM.js → backdevicelottie-yKkczgFy.js} +0 -0
  196. /package/dist/{blurdevicelottie-BLVeJHEG.js → blurdevicelottie-8BbophdM.js} +0 -0
  197. /package/dist/{browser-ponyfill-Df13Th-G.js → browser-ponyfill-CBjGwwPW.js} +0 -0
  198. /package/dist/{defineProperty-Qjefk7Uf.js → defineProperty-BbpBna-2.js} +0 -0
  199. /package/dist/{frontdevicelottie-B4tE2PYQ.js → frontdevicelottie-CFcahVLk.js} +0 -0
  200. /package/dist/{glaredevicelottie-D1pR73sx.js → glaredevicelottie-Cnvah0kz.js} +0 -0
  201. /package/dist/{id-tutorial-DwO90SAm.js → id-tutorial-BOOsXlAJ.js} +0 -0
  202. /package/dist/{lottie_light-C6B2ec41.js → lottie_light-Bv56F2Ae.js} +0 -0
  203. /package/dist/{passport-tutorial-D9JNsMsM.js → passport-tutorial-CeSup6m9.js} +0 -0
  204. /package/dist/{requiredLabelHint-D0RhuMed.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
  205. /package/dist/{selfieTutorial-pB-N-fj5.js → selfieTutorial-CYa8bq6B.js} +0 -0
@@ -1,186 +0,0 @@
1
- import { _ as y, d as T, h as q, l as A, p as d, s as gn } from "./vendor-preact-DThS2ZQ_.js";
2
- import { ScreenOrientationProvider, createScreenOrientationObserver, getDeviceClass } from "@incodetech/core/device";
3
- import "@incodetech/core/events";
4
- //#region src/hooks/useManager.ts
5
- /**
6
- * Hook for subscribing to manager state updates
7
- * @param factory - Factory function that creates the manager instance
8
- * @param options - Configuration options
9
- * @returns Tuple of [state, manager]
10
- */
11
- function useManager(factory, options = {}) {
12
- const { autoLoad = true, manageLifecycle = true } = options;
13
- const [manager] = d(factory);
14
- const [state, setState] = d(() => manager.getState());
15
- y(() => {
16
- const unsubscribe = manager.subscribe(setState);
17
- if (manageLifecycle && autoLoad && manager.load) manager.load();
18
- return () => {
19
- unsubscribe();
20
- if (manageLifecycle) manager.stop?.();
21
- };
22
- }, [
23
- manager,
24
- autoLoad,
25
- manageLifecycle
26
- ]);
27
- return [state, manager];
28
- }
29
- //#endregion
30
- //#region src/hooks/useScreenOrientation.ts
31
- var observerInstance = null;
32
- function getObserver() {
33
- if (!observerInstance) observerInstance = createScreenOrientationObserver(new ScreenOrientationProvider(), getDeviceClass());
34
- return observerInstance;
35
- }
36
- /**
37
- * Hook that returns whether the device is in landscape mode on mobile (excluding iPad and desktop).
38
- * Use this to show a landscape blocker overlay when true.
39
- */
40
- function useScreenOrientation() {
41
- const [isLandscapeMobile, setIsLandscapeMobile] = d(false);
42
- y(() => {
43
- const observer = getObserver();
44
- setIsLandscapeMobile(observer.isLandscapeMobile);
45
- return observer.subscribe((value) => {
46
- gn(() => setIsLandscapeMobile(value));
47
- });
48
- }, []);
49
- return { isLandscapeMobile };
50
- }
51
- //#endregion
52
- //#region src/hooks/useModuleTerminalCallbacks.ts
53
- function isModuleTerminalStatus(status) {
54
- return status === "finished" || status === "error" || status === "closed" || status === "failed";
55
- }
56
- function isTerminalModuleState(state) {
57
- return isModuleTerminalStatus(state.status);
58
- }
59
- function useModuleTerminalCallbacks({ status, onFinish, onError, error, errorCode, moduleErrorCode, errorStatuses }) {
60
- const terminalFiredRef = A(false);
61
- y(() => {
62
- if (terminalFiredRef.current) return;
63
- if (status === "finished") {
64
- terminalFiredRef.current = true;
65
- onFinish?.();
66
- return;
67
- }
68
- if (status === "closed") {
69
- terminalFiredRef.current = true;
70
- onError?.(void 0);
71
- return;
72
- }
73
- if ((errorStatuses ?? ["error"]).includes(status)) {
74
- terminalFiredRef.current = true;
75
- if (moduleErrorCode !== void 0) onError?.(error, errorCode, moduleErrorCode);
76
- else onError?.(error, errorCode);
77
- }
78
- }, [
79
- status,
80
- onFinish,
81
- onError,
82
- error,
83
- errorCode,
84
- moduleErrorCode,
85
- errorStatuses
86
- ]);
87
- }
88
- //#endregion
89
- //#region src/hooks/useFormScrollable.ts
90
- /**
91
- * Tracks whether an element's content overflows its visible area vertically.
92
- * Re-evaluates on element resize and whenever `depCount` changes
93
- * (e.g. number of form fields).
94
- */
95
- function useFormScrollable(ref, depCount) {
96
- const [isScrollable, setIsScrollable] = d(false);
97
- y(() => {
98
- const el = ref.current;
99
- if (!el) return;
100
- const check = () => setIsScrollable(el.scrollHeight > el.clientHeight);
101
- check();
102
- const ro = new ResizeObserver(check);
103
- ro.observe(el);
104
- return () => ro.disconnect();
105
- }, [depCount, ref]);
106
- return isScrollable;
107
- }
108
- //#endregion
109
- //#region src/hooks/useMediaQuery.ts
110
- var MOBILE_QUERY = "(max-width: 767px)";
111
- function useMediaQuery(query) {
112
- const [matches, setMatches] = d(() => typeof window !== "undefined" && window.matchMedia(query).matches);
113
- y(() => {
114
- if (typeof window === "undefined") return;
115
- const mql = window.matchMedia(query);
116
- const onChange = () => setMatches(mql.matches);
117
- mql.addEventListener("change", onChange);
118
- return () => mql.removeEventListener("change", onChange);
119
- }, [query]);
120
- return matches;
121
- }
122
- function useIsMobileDeviceWidth() {
123
- return useMediaQuery(MOBILE_QUERY);
124
- }
125
- //#endregion
126
- //#region src/hooks/useEventListener.ts
127
- function useEventListener(eventName, handler) {
128
- y(() => {
129
- window.addEventListener(eventName, handler);
130
- return () => window.removeEventListener(eventName, handler);
131
- }, [eventName, handler]);
132
- }
133
- //#endregion
134
- //#region src/hooks/useResizeObserver.ts
135
- function useResizeObserver(ref, onResize) {
136
- y(() => {
137
- const element = ref.current;
138
- if (!element || typeof ResizeObserver === "undefined") {
139
- onResize();
140
- return;
141
- }
142
- onResize();
143
- const resizeObserver = new ResizeObserver(onResize);
144
- resizeObserver.observe(element);
145
- return () => resizeObserver.disconnect();
146
- }, [ref, onResize]);
147
- }
148
- //#endregion
149
- //#region src/hooks/useTimeout.ts
150
- /**
151
- * Runs `callback` once after `delayMs` when `delayMs` is not null. Clears the
152
- * timer on unmount or when `delayMs` / `callback` changes.
153
- */
154
- function useTimeout(callback, delayMs) {
155
- y(() => {
156
- if (delayMs === null) return;
157
- const timeoutId = window.setTimeout(callback, delayMs);
158
- return () => {
159
- window.clearTimeout(timeoutId);
160
- };
161
- }, [callback, delayMs]);
162
- }
163
- /**
164
- * Imperative one-shot timeout handle for user-triggered delays. Clears any
165
- * pending timer on unmount.
166
- */
167
- function useTimeoutHandle() {
168
- const timerRef = A();
169
- const clear = q(() => {
170
- if (timerRef.current !== void 0) {
171
- window.clearTimeout(timerRef.current);
172
- timerRef.current = void 0;
173
- }
174
- }, []);
175
- const schedule = q((callback, delayMs) => {
176
- clear();
177
- timerRef.current = window.setTimeout(callback, delayMs);
178
- }, [clear]);
179
- y(() => clear, [clear]);
180
- return T(() => ({
181
- schedule,
182
- clear
183
- }), [schedule, clear]);
184
- }
185
- //#endregion
186
- export { useIsMobileDeviceWidth as a, useModuleTerminalCallbacks as c, useEventListener as i, useScreenOrientation as l, useTimeoutHandle as n, useFormScrollable as o, useResizeObserver as r, isTerminalModuleState as s, useTimeout as t, useManager as u };
@@ -1,467 +0,0 @@
1
- var id_laser_h_default = {
2
- fr: 60,
3
- v: "5.9.6",
4
- ip: 0,
5
- op: 161,
6
- w: 390,
7
- h: 271,
8
- nm: "id_laser_h",
9
- ddd: 0,
10
- markers: [],
11
- assets: [{
12
- "nm": "id_laser_h",
13
- "fr": 60,
14
- "id": "m8gbpa7d4wklnmgw",
15
- "layers": [
16
- {
17
- "ty": 3,
18
- "ddd": 0,
19
- "ind": 5,
20
- "hd": false,
21
- "nm": "id_laser_h - Null",
22
- "sr": 1,
23
- "ks": {
24
- "a": {
25
- "a": 0,
26
- "k": [0, 0]
27
- },
28
- "o": {
29
- "a": 0,
30
- "k": 100
31
- },
32
- "p": {
33
- "a": 0,
34
- "k": [0, 0]
35
- },
36
- "r": {
37
- "a": 0,
38
- "k": 0
39
- },
40
- "s": {
41
- "a": 0,
42
- "k": [100, 100]
43
- },
44
- "sk": {
45
- "a": 0,
46
- "k": 0
47
- },
48
- "sa": {
49
- "a": 0,
50
- "k": 0
51
- }
52
- },
53
- "ao": 0,
54
- "ip": 0,
55
- "op": 162,
56
- "st": 0,
57
- "bm": 0
58
- },
59
- {
60
- "ty": 3,
61
- "ddd": 0,
62
- "ind": 6,
63
- "hd": false,
64
- "nm": "Rectangle 465 - Null",
65
- "sr": 1,
66
- "parent": 5,
67
- "ks": {
68
- "a": {
69
- "a": 0,
70
- "k": [54, 133]
71
- },
72
- "o": {
73
- "a": 0,
74
- "k": 100
75
- },
76
- "p": {
77
- "a": 1,
78
- "k": [
79
- {
80
- "t": 0,
81
- "s": [75, 136],
82
- "o": {
83
- "x": [.5],
84
- "y": [.35]
85
- },
86
- "i": {
87
- "x": [.15],
88
- "y": [1]
89
- },
90
- "ti": [0, 0],
91
- "to": [0, 0]
92
- },
93
- {
94
- "t": 59.928000000000004,
95
- "s": [315, 136],
96
- "o": {
97
- "x": [.5],
98
- "y": [.35]
99
- },
100
- "i": {
101
- "x": [.15],
102
- "y": [1]
103
- },
104
- "ti": [0, 0],
105
- "to": [0, 0]
106
- },
107
- {
108
- "t": 69.28200000000001,
109
- "s": [315, 136],
110
- "o": {
111
- "x": [.5],
112
- "y": [.35]
113
- },
114
- "i": {
115
- "x": [.15],
116
- "y": [1]
117
- },
118
- "ti": [0, 0],
119
- "to": [0, 0]
120
- },
121
- {
122
- "t": 141.006,
123
- "s": [75, 136]
124
- }
125
- ]
126
- },
127
- "r": {
128
- "a": 0,
129
- "k": 0
130
- },
131
- "s": {
132
- "a": 1,
133
- "k": [
134
- {
135
- "t": 0,
136
- "s": [100, 100],
137
- "o": {
138
- "x": [.5],
139
- "y": [.35]
140
- },
141
- "i": {
142
- "x": [.15],
143
- "y": [1]
144
- }
145
- },
146
- {
147
- "t": 59.928000000000004,
148
- "s": [-100, 100],
149
- "o": {
150
- "x": [.5],
151
- "y": [.35]
152
- },
153
- "i": {
154
- "x": [.15],
155
- "y": [1]
156
- }
157
- },
158
- {
159
- "t": 69.28200000000001,
160
- "s": [-100, 100],
161
- "o": {
162
- "x": [.5],
163
- "y": [.35]
164
- },
165
- "i": {
166
- "x": [.15],
167
- "y": [1]
168
- }
169
- },
170
- {
171
- "t": 141.006,
172
- "s": [100, 100]
173
- }
174
- ]
175
- },
176
- "sk": {
177
- "a": 0,
178
- "k": 0
179
- },
180
- "sa": {
181
- "a": 0,
182
- "k": 0
183
- }
184
- },
185
- "ao": 0,
186
- "ip": 0,
187
- "op": 162,
188
- "st": 0,
189
- "bm": 0
190
- },
191
- {
192
- "ty": 4,
193
- "ddd": 0,
194
- "ind": 7,
195
- "hd": false,
196
- "nm": "Rectangle 465",
197
- "sr": 1,
198
- "parent": 6,
199
- "ks": {
200
- "a": {
201
- "a": 0,
202
- "k": [0, 0]
203
- },
204
- "p": {
205
- "a": 0,
206
- "k": [0, 0]
207
- },
208
- "s": {
209
- "a": 0,
210
- "k": [100, 100]
211
- },
212
- "sk": {
213
- "a": 0,
214
- "k": 0
215
- },
216
- "sa": {
217
- "a": 0,
218
- "k": 0
219
- },
220
- "r": {
221
- "a": 0,
222
- "k": 0
223
- },
224
- "o": {
225
- "a": 0,
226
- "k": 100
227
- }
228
- },
229
- "ao": 0,
230
- "ip": 0,
231
- "op": 162,
232
- "st": 0,
233
- "bm": 0,
234
- "shapes": [{
235
- "ty": "gr",
236
- "nm": "Group",
237
- "hd": false,
238
- "np": 3,
239
- "it": [
240
- {
241
- "ty": "sh",
242
- "nm": "Path",
243
- "hd": false,
244
- "ks": {
245
- "a": 0,
246
- "k": {
247
- "c": true,
248
- "v": [
249
- [3.4546, 240.9087],
250
- [1e-4, 231.7465],
251
- [1e-4, 33.2534],
252
- [3.4546, 24.0912],
253
- [72.7499, .0474],
254
- [74.0001, 2.2451],
255
- [74.0001, 263.7549],
256
- [72.7499, 265.9526],
257
- [3.4546, 240.9087]
258
- ],
259
- "i": [
260
- [0, 0],
261
- [0, 4.4361],
262
- [0, 0],
263
- [-2.0118, .8997],
264
- [0, 0],
265
- [0, -1.4225],
266
- [0, 0],
267
- [.6451, .2885],
268
- [0, 0]
269
- ],
270
- "o": [
271
- [-2.01182, -.8996500000000083],
272
- [0, 0],
273
- [0, -4.436140000000002],
274
- [0, 0],
275
- [.6451200000000057, -.28848],
276
- [0, 0],
277
- [0, 1.4225099999999884],
278
- [0, 0],
279
- [0, 0]
280
- ]
281
- }
282
- }
283
- },
284
- {
285
- "ty": "gf",
286
- "o": {
287
- "a": 0,
288
- "k": 100
289
- },
290
- "g": {
291
- "p": 4,
292
- "k": {
293
- "a": 0,
294
- "k": [
295
- 0,
296
- 1,
297
- 1,
298
- 1,
299
- .2396,
300
- 1,
301
- 1,
302
- 1,
303
- .4948,
304
- 1,
305
- 1,
306
- 1,
307
- .8906,
308
- 1,
309
- 1,
310
- 1,
311
- 0,
312
- 1,
313
- .2396,
314
- .58,
315
- .4948,
316
- .3,
317
- .8906,
318
- 0
319
- ]
320
- }
321
- },
322
- "s": {
323
- "a": 0,
324
- "k": [3098905332132529e-21, 132.9998798591031]
325
- },
326
- "e": {
327
- "a": 0,
328
- "k": [68.9999965407841, 132.9998798591033]
329
- },
330
- "t": 1,
331
- "nm": "Fill",
332
- "hd": false,
333
- "r": 1
334
- },
335
- {
336
- "ty": "tr",
337
- "a": {
338
- "a": 0,
339
- "k": [0, 0]
340
- },
341
- "p": {
342
- "a": 0,
343
- "k": [0, 0]
344
- },
345
- "s": {
346
- "a": 0,
347
- "k": [100, 100]
348
- },
349
- "sk": {
350
- "a": 0,
351
- "k": 0
352
- },
353
- "sa": {
354
- "a": 0,
355
- "k": 0
356
- },
357
- "r": {
358
- "a": 0,
359
- "k": 0
360
- },
361
- "o": {
362
- "a": 0,
363
- "k": 100
364
- }
365
- }
366
- ]
367
- }]
368
- }
369
- ]
370
- }],
371
- layers: [{
372
- "ty": 3,
373
- "ddd": 0,
374
- "ind": 5,
375
- "hd": false,
376
- "nm": "id_laser_h - Null",
377
- "sr": 1,
378
- "ks": {
379
- "a": {
380
- "a": 0,
381
- "k": [0, 0]
382
- },
383
- "o": {
384
- "a": 0,
385
- "k": 100
386
- },
387
- "p": {
388
- "a": 0,
389
- "k": [0, 0]
390
- },
391
- "r": {
392
- "a": 0,
393
- "k": 0
394
- },
395
- "s": {
396
- "a": 0,
397
- "k": [100, 100]
398
- },
399
- "sk": {
400
- "a": 0,
401
- "k": 0
402
- },
403
- "sa": {
404
- "a": 0,
405
- "k": 0
406
- }
407
- },
408
- "ao": 0,
409
- "ip": 0,
410
- "op": 162,
411
- "st": 0,
412
- "bm": 0
413
- }, {
414
- "ddd": 0,
415
- "ind": 2,
416
- "ty": 0,
417
- "nm": "id_laser_h",
418
- "refId": "m8gbpa7d4wklnmgw",
419
- "sr": 1,
420
- "ks": {
421
- "a": {
422
- "a": 0,
423
- "k": [0, 0]
424
- },
425
- "p": {
426
- "a": 0,
427
- "k": [0, 0]
428
- },
429
- "s": {
430
- "a": 0,
431
- "k": [100, 100]
432
- },
433
- "sk": {
434
- "a": 0,
435
- "k": 0
436
- },
437
- "sa": {
438
- "a": 0,
439
- "k": 0
440
- },
441
- "r": {
442
- "a": 0,
443
- "k": 0
444
- },
445
- "o": {
446
- "a": 0,
447
- "k": 100
448
- }
449
- },
450
- "ao": 0,
451
- "w": 390,
452
- "h": 271,
453
- "ip": 0,
454
- "op": 162,
455
- "st": 0,
456
- "hd": false,
457
- "bm": 0
458
- }],
459
- meta: {
460
- "a": "",
461
- "d": "",
462
- "tc": "",
463
- "g": "Aninix"
464
- }
465
- };
466
- //#endregion
467
- export { id_laser_h_default as default };
@@ -1,64 +0,0 @@
1
- import { n as useTranslation } from "./i18n-CU4xq8qC.js";
2
- import { _ as y, l as A, p as d, r as $, v as u } from "./vendor-preact-DThS2ZQ_.js";
3
- import { l as useScreenOrientation } from "./hooks-CNu7o-v8.js";
4
- import { isIPad } from "@incodetech/core/device";
5
- //#region src/shared/icons/rotate-icon.svg
6
- var rotate_icon_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%3e%3cg%20fill='%2320263D'%3e%3cpath%20d='M84.12%2027.54l-2.58-2.58L65.036%208.456l-2.58-2.58c-3.127-3.127-8.58-2.764-12.157.81L6.69%2050.306c-3.574%203.574-3.938%209.027-.81%2012.158l21.66%2021.66c3.128%203.127%208.58%202.764%2012.157-.81l43.617-43.616c3.574-3.578%203.937-9.03.806-12.158zm-5.524%208.617l-42.439%2042.44c-1.3%201.3-3.28%201.432-4.42.296l-20.63-20.63c-1.14-1.14-1.008-3.12.297-4.42l42.438-42.44c1.302-1.3%203.282-1.432%204.422-.296l1.031%201.032c1.14%201.14%201.009%203.12-.296%204.421-1.302%201.301-1.433%203.281-.297%204.421L69.02%2031.297c1.14%201.14%203.12%201.01%204.421-.296%201.301-1.301%203.281-1.432%204.421-.296l1.031%201.031c1.137%201.14%201.005%203.12-.296%204.421zM51.885%2090a3.135%203.135%200%2001-2.22-5.351l8.925-8.925a3.138%203.138%200%20014.646.233l3.308%204.046c10.114-5.374%2017.081-15.994%2017.178-28.14a3.136%203.136%200%20013.136-3.113h.026a3.14%203.14%200%20013.112%203.161C89.835%2072.746%2072.746%2089.835%2051.911%2090h-.026zM38.115%200a3.135%203.135%200%20012.22%205.351l-8.925%208.925a3.125%203.125%200%2001-2.378.915%203.138%203.138%200%2001-2.272-1.147l-3.308-4.046C13.34%2015.37%206.373%2025.99%206.274%2038.138a3.14%203.14%200%2001-3.139%203.112h-.026a3.139%203.139%200%2001-3.11-3.161C.166%2017.254%2017.255.165%2038.09%200h.026z'/%3e%3c/g%3e%3c/svg%3e";
7
- //#endregion
8
- //#region src/shared/landscapeBlocker/landscapeBlocker.tsx
9
- function usePortalContainer() {
10
- const [container, setContainer] = d(null);
11
- const containerRef = A(null);
12
- y(() => {
13
- const el = document.createElement("div");
14
- el.setAttribute("data-incode-landscape-portal", "");
15
- document.body.appendChild(el);
16
- containerRef.current = el;
17
- setContainer(el);
18
- return () => {
19
- el.remove();
20
- containerRef.current = null;
21
- };
22
- }, []);
23
- return container;
24
- }
25
- function LandscapeBlocker() {
26
- const { t } = useTranslation();
27
- const container = usePortalContainer();
28
- if (!container) return null;
29
- return $(/* @__PURE__ */ u("div", {
30
- class: "IncodeLandscapeBlocker",
31
- children: [
32
- /* @__PURE__ */ u("img", {
33
- class: "IncodeLandscapeBlocker-icon",
34
- src: rotate_icon_default,
35
- alt: "",
36
- "aria-hidden": true
37
- }),
38
- /* @__PURE__ */ u("p", {
39
- class: "IncodeLandscapeBlocker-text",
40
- children: t("common.landscape")
41
- }),
42
- /* @__PURE__ */ u("p", {
43
- class: "IncodeLandscapeBlocker-text",
44
- children: isIPad() ? t("common.rotateIpad") : t("common.rotate")
45
- })
46
- ]
47
- }), container);
48
- }
49
- //#endregion
50
- //#region src/shared/componentRoot/incodeComponent.tsx
51
- /**
52
- * Wraps UI modules with the standard container.
53
- * Shows a landscape blocker overlay on mobile (excluding iPad) when device is rotated to landscape.
54
- */
55
- function IncodeComponent({ children }) {
56
- const { isLandscapeMobile } = useScreenOrientation();
57
- return /* @__PURE__ */ u("div", {
58
- class: "IncodeComponent",
59
- tabIndex: 0,
60
- children: [children, isLandscapeMobile ? /* @__PURE__ */ u(LandscapeBlocker, {}) : null]
61
- });
62
- }
63
- //#endregion
64
- export { LandscapeBlocker as n, IncodeComponent as t };