@incodetech/web 2.0.0-alpha.1 → 2.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/base.css +1071 -0
  2. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  3. package/dist/email/email.es.js +145 -0
  4. package/dist/email/styles.css +123 -0
  5. package/dist/flow/flow.es.js +555 -0
  6. package/dist/flow/styles.css +1119 -0
  7. package/dist/incodeModule-Dv8Qllrv.js +254 -0
  8. package/dist/index.es.js +6 -0
  9. package/dist/instance-B-q0ZREN.js +2140 -0
  10. package/dist/otpInput-BtoZe0Wz.js +151 -0
  11. package/dist/page-Dh_Zw2ik.js +234 -0
  12. package/dist/phone/phone.es.js +3441 -0
  13. package/dist/phone/styles.css +305 -0
  14. package/dist/selfie/selfie.es.js +893 -0
  15. package/dist/selfie/styles.css +590 -0
  16. package/dist/selfieTutorial-C-u5GufD.js +29 -0
  17. package/dist/setup-wNL83jmW.js +20 -0
  18. package/dist/themes/dark.css +652 -0
  19. package/dist/themes/light.css +543 -0
  20. package/dist/title-BfO5Dlzk.js +25 -0
  21. package/dist/types/base.d.ts +1 -0
  22. package/dist/types/dark.d.ts +1 -0
  23. package/dist/types/email.d.ts +57 -0
  24. package/dist/types/flow.d.ts +69 -0
  25. package/dist/types/index.d.ts +38 -0
  26. package/dist/types/light.d.ts +1 -0
  27. package/dist/types/phone.d.ts +58 -0
  28. package/dist/types/selfie.d.ts +31 -0
  29. package/dist/types/styles.d.ts +1 -0
  30. package/dist/types/themes/dark.d.ts +1 -0
  31. package/dist/types/themes/light.d.ts +1 -0
  32. package/dist/uiConfig-CQ1W9cUD.js +23 -0
  33. package/dist/vendor-preact-CK0WeTOR.js +584 -0
  34. package/package.json +32 -26
  35. package/dev/README.md +0 -163
  36. package/dev/getToken.ts +0 -36
  37. package/dev/headless.html +0 -875
  38. package/dev/index.html +0 -366
  39. package/dev/main-headless.tsx +0 -1332
  40. package/dev/main-orchestrated-flow.tsx +0 -1158
  41. package/dev/main-preact.tsx +0 -323
  42. package/dev/main-simplified.tsx +0 -123
  43. package/dev/main-web-component.tsx +0 -256
  44. package/dev/main.tsx +0 -332
  45. package/dev/manual.html +0 -27
  46. package/dev/orchestrated-flow.html +0 -64
  47. package/dev/simplified.html +0 -64
  48. package/dev/tiktok-logo.svg +0 -7
  49. package/src/defineCustomElement.tsx +0 -30
  50. package/src/email/email.test.tsx +0 -368
  51. package/src/email/email.tsx +0 -255
  52. package/src/email/emailInput.test.tsx +0 -264
  53. package/src/email/emailInput.tsx +0 -85
  54. package/src/email/styles.css +0 -59
  55. package/src/flow/flow.test.tsx +0 -796
  56. package/src/flow/flow.tsx +0 -292
  57. package/src/flow/flowCompleted.css +0 -30
  58. package/src/flow/flowCompleted.test.tsx +0 -331
  59. package/src/flow/flowCompleted.tsx +0 -121
  60. package/src/flow/flowInit.test.ts +0 -264
  61. package/src/flow/flowInit.ts +0 -94
  62. package/src/flow/flowStart.css +0 -58
  63. package/src/flow/flowStart.test.tsx +0 -49
  64. package/src/flow/flowStart.tsx +0 -41
  65. package/src/flow/incode-logo.svg +0 -8
  66. package/src/flow/index.ts +0 -7
  67. package/src/flow/preloadFlow.test.ts +0 -421
  68. package/src/flow/preloadFlow.ts +0 -171
  69. package/src/flow/styles.css +0 -9
  70. package/src/flow/unsupportedModule.css +0 -21
  71. package/src/flow/unsupportedModule.tsx +0 -39
  72. package/src/flow/useFlowInitialization.test.tsx +0 -292
  73. package/src/flow/useFlowInitialization.ts +0 -128
  74. package/src/flow/useModuleLoader.test.tsx +0 -212
  75. package/src/flow/useModuleLoader.ts +0 -92
  76. package/src/hooks/index.ts +0 -1
  77. package/src/hooks/useManager.test.ts +0 -91
  78. package/src/hooks/useManager.ts +0 -40
  79. package/src/i18n/index.ts +0 -3
  80. package/src/i18n/instance.ts +0 -16
  81. package/src/i18n/setup.ts +0 -184
  82. package/src/i18n/useTranslation.ts +0 -42
  83. package/src/index.ts +0 -27
  84. package/src/permissions/assets/android-dots-icon.svg +0 -7
  85. package/src/permissions/assets/android-settings-icon.svg +0 -16
  86. package/src/permissions/assets/android-toggle-icon.svg +0 -20
  87. package/src/permissions/assets/bank-card-icon.svg +0 -14
  88. package/src/permissions/assets/camera-icon.svg +0 -12
  89. package/src/permissions/assets/camera-ios.svg +0 -53
  90. package/src/permissions/assets/check-icon.svg +0 -8
  91. package/src/permissions/assets/chrome-icon.svg +0 -43
  92. package/src/permissions/assets/password-icon.svg +0 -11
  93. package/src/permissions/assets/permissions-img.svg +0 -51
  94. package/src/permissions/assets/safari-icon.svg +0 -37
  95. package/src/permissions/assets/settings-icon.svg +0 -33
  96. package/src/permissions/assets/toggle-icon.svg +0 -19
  97. package/src/permissions/assets/warning-icon.svg +0 -6
  98. package/src/permissions/boldWithArrow.css +0 -9
  99. package/src/permissions/boldWithArrow.tsx +0 -41
  100. package/src/permissions/denied.css +0 -37
  101. package/src/permissions/denied.tsx +0 -29
  102. package/src/permissions/deniedAndroid.tsx +0 -56
  103. package/src/permissions/deniedDesktop.css +0 -9
  104. package/src/permissions/deniedDesktop.tsx +0 -64
  105. package/src/permissions/deniedIOS.tsx +0 -73
  106. package/src/permissions/deniedInstructions.tsx +0 -19
  107. package/src/permissions/iconWrapper.css +0 -9
  108. package/src/permissions/iconWrapper.tsx +0 -15
  109. package/src/permissions/learnMore.css +0 -37
  110. package/src/permissions/learnMore.tsx +0 -85
  111. package/src/permissions/numberedStep.css +0 -13
  112. package/src/permissions/numberedStep.tsx +0 -14
  113. package/src/permissions/permissions.css +0 -13
  114. package/src/permissions/permissions.tsx +0 -68
  115. package/src/phone/phone.tsx +0 -246
  116. package/src/phone/phoneInput.test.tsx +0 -275
  117. package/src/phone/phoneInput.tsx +0 -249
  118. package/src/phone/styles.css +0 -158
  119. package/src/selfie/cameraButton.css +0 -13
  120. package/src/selfie/cameraButton.tsx +0 -35
  121. package/src/selfie/capture.css +0 -57
  122. package/src/selfie/capture.tsx +0 -232
  123. package/src/selfie/errorModal.tsx +0 -218
  124. package/src/selfie/errorModalContent.css +0 -33
  125. package/src/selfie/errorModalContent.tsx +0 -44
  126. package/src/selfie/faceOutline.css +0 -5
  127. package/src/selfie/faceOutline.tsx +0 -22
  128. package/src/selfie/loadingBorder.css +0 -12
  129. package/src/selfie/loadingBorder.tsx +0 -77
  130. package/src/selfie/manualCaptureButton.css +0 -13
  131. package/src/selfie/manualCaptureButton.tsx +0 -35
  132. package/src/selfie/noMoreAttemptsModal.tsx +0 -44
  133. package/src/selfie/notification.css +0 -9
  134. package/src/selfie/notification.tsx +0 -36
  135. package/src/selfie/retryErrorModal.tsx +0 -56
  136. package/src/selfie/selfie.test.tsx +0 -458
  137. package/src/selfie/selfie.tsx +0 -83
  138. package/src/selfie/selfieTutorial.json +0 -2626
  139. package/src/selfie/styles.css +0 -1
  140. package/src/selfie/tutorial.test.tsx +0 -200
  141. package/src/selfie/tutorial.tsx +0 -43
  142. package/src/setup.ts +0 -33
  143. package/src/shared/baseTutorial/baseTutorial.css +0 -21
  144. package/src/shared/baseTutorial/baseTutorial.test.tsx +0 -184
  145. package/src/shared/baseTutorial/baseTutorial.tsx +0 -55
  146. package/src/shared/baseTutorial/replaceBaseTutorial.test.ts +0 -267
  147. package/src/shared/baseTutorial/replaceBaseTutorial.ts +0 -68
  148. package/src/shared/button/button.css +0 -55
  149. package/src/shared/button/button.test.tsx +0 -101
  150. package/src/shared/button/button.tsx +0 -47
  151. package/src/shared/componentRoot/incodeComponent.tsx +0 -12
  152. package/src/shared/countries/countries.test.ts +0 -75
  153. package/src/shared/countries/countries.ts +0 -139
  154. package/src/shared/countries/index.ts +0 -6
  155. package/src/shared/icons/chevronDown.tsx +0 -22
  156. package/src/shared/icons/index.ts +0 -2
  157. package/src/shared/icons/successIcon.css +0 -5
  158. package/src/shared/icons/successIcon.test.tsx +0 -40
  159. package/src/shared/icons/successIcon.tsx +0 -26
  160. package/src/shared/loader/loadingIcon.css +0 -28
  161. package/src/shared/loader/loadingIcon.tsx +0 -67
  162. package/src/shared/lottie/lottie.tsx +0 -108
  163. package/src/shared/otpInput/otpInput.css +0 -85
  164. package/src/shared/otpInput/otpInput.test.tsx +0 -356
  165. package/src/shared/otpInput/otpInput.tsx +0 -241
  166. package/src/shared/page/incode-logo.svg +0 -3
  167. package/src/shared/page/page.css +0 -47
  168. package/src/shared/page/page.test.tsx +0 -97
  169. package/src/shared/page/page.tsx +0 -91
  170. package/src/shared/page/pageUiConfig.test.ts +0 -112
  171. package/src/shared/page/pageUiConfig.ts +0 -64
  172. package/src/shared/page/verifiedByIncode.css +0 -5
  173. package/src/shared/page/verifiedByIncode.tsx +0 -75
  174. package/src/shared/spacer/spacer.css +0 -149
  175. package/src/shared/spacer/spacer.test.tsx +0 -143
  176. package/src/shared/spacer/spacer.tsx +0 -88
  177. package/src/shared/spinner/index.ts +0 -2
  178. package/src/shared/spinner/spinner.css +0 -28
  179. package/src/shared/spinner/spinner.test.tsx +0 -82
  180. package/src/shared/spinner/spinner.tsx +0 -65
  181. package/src/shared/title/title.css +0 -7
  182. package/src/shared/title/title.tsx +0 -12
  183. package/src/shared/uiConfig/uiConfig.ts +0 -36
  184. package/src/shared/webComponent/incodeModule.ts +0 -29
  185. package/src/shared/webComponent/registerIncodeElement.ts +0 -15
  186. package/src/styles/__mocks__/fetchTheme.ts +0 -19
  187. package/src/styles/applyTheme.ts +0 -37
  188. package/src/styles/cn.test.tsx +0 -57
  189. package/src/styles/cn.tsx +0 -21
  190. package/src/styles/core.css +0 -12
  191. package/src/styles/fetchTheme.test.ts +0 -390
  192. package/src/styles/fetchTheme.ts +0 -88
  193. package/src/styles/generatePalette.ts +0 -111
  194. package/src/styles/reset.css +0 -65
  195. package/src/styles/resolveCssVariableToHex.ts +0 -28
  196. package/src/styles/tailwind.css +0 -291
  197. package/src/styles/themeTypes.ts +0 -18
  198. package/src/styles/tokens/colors.css +0 -190
  199. package/src/styles/tokens/components.css +0 -174
  200. package/src/styles/tokens/index.css +0 -4
  201. package/src/styles/tokens/primitives.css +0 -129
  202. package/src/styles/tokens/semantic.css +0 -51
  203. package/src/svg.d.ts +0 -4
  204. package/src/types/assets.d.ts +0 -1
  205. package/src/types/custom-elements.d.ts +0 -104
  206. package/tsconfig.json +0 -22
  207. package/vite.config.ts +0 -260
  208. package/vitest.config.ts +0 -40
  209. package/vitest.setup.ts +0 -16
@@ -0,0 +1,254 @@
1
+ import { l as m, d as I, y as w, _ as p, J as H, G as f, K as _, k as V } from "./vendor-preact-CK0WeTOR.js";
2
+ var z = 0;
3
+ function s(e, n, t, o, c, r) {
4
+ n || (n = {});
5
+ var a, i, l = n;
6
+ if ("ref" in l) for (i in l = {}, n) i == "ref" ? a = n[i] : l[i] = n[i];
7
+ var d = { type: e, props: l, key: t, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --z, __i: -1, __u: 0, __source: c, __self: r };
8
+ if (typeof e == "function" && (a = e.defaultProps)) for (i in a) l[i] === void 0 && (l[i] = a[i]);
9
+ return m.vnode && m.vnode(d), d;
10
+ }
11
+ function G(e, n = {}) {
12
+ const { autoLoad: t = !0 } = n, [o] = I(e), [c, r] = I(
13
+ () => o.getState()
14
+ );
15
+ return w(() => (t && o.load && o.load(), o.subscribe(r)), [o, t]), [c, o];
16
+ }
17
+ const h = (...e) => {
18
+ const n = [];
19
+ for (const t of e)
20
+ if (t) {
21
+ if (typeof t == "string")
22
+ n.push(t);
23
+ else if (typeof t == "object")
24
+ for (const [o, c] of Object.entries(t))
25
+ c && n.push(o);
26
+ }
27
+ return n.join(" ");
28
+ }, L = ({
29
+ size: e,
30
+ className: n
31
+ }) => /* @__PURE__ */ s(
32
+ "svg",
33
+ {
34
+ width: e,
35
+ height: e,
36
+ viewBox: "0 0 31 31",
37
+ fill: "none",
38
+ xmlns: "http://www.w3.org/2000/svg",
39
+ class: h("IncodeLoadingIconPrimaryIcon", n),
40
+ children: [
41
+ /* @__PURE__ */ s("title", { children: "Spinner Inner part" }),
42
+ /* @__PURE__ */ s("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
43
+ ]
44
+ }
45
+ ), k = ({
46
+ size: e,
47
+ className: n
48
+ }) => /* @__PURE__ */ s(
49
+ "svg",
50
+ {
51
+ width: e,
52
+ height: e,
53
+ viewBox: "0 0 31 31",
54
+ fill: "none",
55
+ xmlns: "http://www.w3.org/2000/svg",
56
+ class: h("IncodeLoadingIconSecondaryIcon", n),
57
+ children: [
58
+ /* @__PURE__ */ s("title", { children: "Spinner Outer part" }),
59
+ /* @__PURE__ */ s("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })
60
+ ]
61
+ }
62
+ ), x = ({
63
+ size: e = 30,
64
+ secondaryClass: n,
65
+ primaryClass: t
66
+ }) => /* @__PURE__ */ s("div", { class: "IncodeLoadingIcon", children: [
67
+ /* @__PURE__ */ s(k, { size: e, className: n }),
68
+ /* @__PURE__ */ s("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ s(L, { size: e, className: t }) })
69
+ ] }), E = {
70
+ primary: "IncodeButtonPrimary",
71
+ link: "IncodeButtonLink"
72
+ }, J = (e) => {
73
+ const {
74
+ isLoading: n = !1,
75
+ variant: t = "primary",
76
+ class: o,
77
+ type: c = "button",
78
+ children: r,
79
+ disabled: a,
80
+ ...i
81
+ } = e;
82
+ return /* @__PURE__ */ s(
83
+ "button",
84
+ {
85
+ ...i,
86
+ class: h(
87
+ "IncodeButton",
88
+ n ? "IncodeButtonLoading" : "",
89
+ E[t],
90
+ o
91
+ ),
92
+ disabled: a || n,
93
+ type: c,
94
+ children: n ? /* @__PURE__ */ s(x, { size: 30 }) : r
95
+ }
96
+ );
97
+ }, O = /* @__PURE__ */ new Set([
98
+ 0,
99
+ 2,
100
+ 4,
101
+ 8,
102
+ 12,
103
+ 16,
104
+ 20,
105
+ 24,
106
+ 32,
107
+ 40,
108
+ 48,
109
+ 64,
110
+ 80,
111
+ 96,
112
+ 104,
113
+ 120,
114
+ 160,
115
+ 200
116
+ ]), j = (e, n) => n === "horizontal" ? {
117
+ 0: "IncodeSpacerHorizontal0",
118
+ 2: "IncodeSpacerHorizontal2",
119
+ 4: "IncodeSpacerHorizontal4",
120
+ 8: "IncodeSpacerHorizontal8",
121
+ 12: "IncodeSpacerHorizontal12",
122
+ 16: "IncodeSpacerHorizontal16",
123
+ 20: "IncodeSpacerHorizontal20",
124
+ 24: "IncodeSpacerHorizontal24",
125
+ 32: "IncodeSpacerHorizontal32",
126
+ 40: "IncodeSpacerHorizontal40",
127
+ 48: "IncodeSpacerHorizontal48",
128
+ 64: "IncodeSpacerHorizontal64",
129
+ 80: "IncodeSpacerHorizontal80",
130
+ 96: "IncodeSpacerHorizontal96",
131
+ 104: "IncodeSpacerHorizontal104",
132
+ 120: "IncodeSpacerHorizontal120",
133
+ 160: "IncodeSpacerHorizontal160",
134
+ 200: "IncodeSpacerHorizontal200"
135
+ }[e] : {
136
+ 0: "IncodeSpacerVertical0",
137
+ 2: "IncodeSpacerVertical2",
138
+ 4: "IncodeSpacerVertical4",
139
+ 8: "IncodeSpacerVertical8",
140
+ 12: "IncodeSpacerVertical12",
141
+ 16: "IncodeSpacerVertical16",
142
+ 20: "IncodeSpacerVertical20",
143
+ 24: "IncodeSpacerVertical24",
144
+ 32: "IncodeSpacerVertical32",
145
+ 40: "IncodeSpacerVertical40",
146
+ 48: "IncodeSpacerVertical48",
147
+ 64: "IncodeSpacerVertical64",
148
+ 80: "IncodeSpacerVertical80",
149
+ 96: "IncodeSpacerVertical96",
150
+ 104: "IncodeSpacerVertical104",
151
+ 120: "IncodeSpacerVertical120",
152
+ 160: "IncodeSpacerVertical160",
153
+ 200: "IncodeSpacerVertical200"
154
+ }[e], R = ({
155
+ size: e,
156
+ className: n,
157
+ direction: t = "vertical"
158
+ }) => e === void 0 ? /* @__PURE__ */ s("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (t === "horizontal" ? "w" : t === "vertical" ? "h" : void 0) ? typeof e == "number" && O.has(e) ? /* @__PURE__ */ s("div", { class: `${j(e, t)} ${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` });
159
+ function u() {
160
+ return u = Object.assign ? Object.assign.bind() : function(e) {
161
+ for (var n = 1; n < arguments.length; n++) {
162
+ var t = arguments[n];
163
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
164
+ }
165
+ return e;
166
+ }, u.apply(this, arguments);
167
+ }
168
+ function g(e, n) {
169
+ if (e == null) return {};
170
+ var t, o, c = {}, r = Object.keys(e);
171
+ for (o = 0; o < r.length; o++) n.indexOf(t = r[o]) >= 0 || (c[t] = e[t]);
172
+ return c;
173
+ }
174
+ var M = ["context", "children"], P = ["useFragment"];
175
+ function $(e, n, t, o) {
176
+ function c() {
177
+ var r, a = Reflect.construct(HTMLElement, [], c);
178
+ return a._vdomComponent = e, o && o.shadow ? (a._root = a.attachShadow({ mode: o.mode || "open", serializable: (r = o.serializable) != null && r }), o.adoptedStyleSheets && (a._root.adoptedStyleSheets = o.adoptedStyleSheets)) : a._root = a, a;
179
+ }
180
+ return (c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = function() {
181
+ T.call(this, o);
182
+ }, c.prototype.attributeChangedCallback = A, c.prototype.disconnectedCallback = F, t = t || e.observedAttributes || Object.keys(e.propTypes || {}), c.observedAttributes = t, e.formAssociated && (c.formAssociated = !0), t.forEach(function(r) {
183
+ Object.defineProperty(c.prototype, r, { get: function() {
184
+ return this._vdom ? this._vdom.props[r] : this._props[r];
185
+ }, set: function(a) {
186
+ this._vdom ? this.attributeChangedCallback(r, null, a) : (this._props || (this._props = {}), this._props[r] = a);
187
+ var i = typeof a;
188
+ a != null && i !== "string" && i !== "boolean" && i !== "number" || this.setAttribute(r, a);
189
+ } });
190
+ }), customElements.define(n || e.tagName || e.displayName || e.name, c), c;
191
+ }
192
+ function B(e) {
193
+ this.getChildContext = function() {
194
+ return e.context;
195
+ };
196
+ var n = e.children, t = g(e, M);
197
+ return _(n, t);
198
+ }
199
+ function T(e) {
200
+ var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
201
+ this.dispatchEvent(n), this._vdom = p(B, u({}, this._props, { context: n.detail.context }), y(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? H : f)(this._vdom, this._root);
202
+ }
203
+ function b(e) {
204
+ return e.replace(/-(\w)/g, function(n, t) {
205
+ return t ? t.toUpperCase() : "";
206
+ });
207
+ }
208
+ function A(e, n, t) {
209
+ if (this._vdom) {
210
+ var o = {};
211
+ o[e] = t = t ?? void 0, o[b(e)] = t, this._vdom = _(this._vdom, o), f(this._vdom, this._root);
212
+ }
213
+ }
214
+ function F() {
215
+ f(this._vdom = null, this._root);
216
+ }
217
+ function S(e, n) {
218
+ var t = this, o = e.useFragment, c = g(e, P);
219
+ return p(o ? V : "slot", u({}, c, { ref: function(r) {
220
+ r ? (t.ref = r, t._listener || (t._listener = function(a) {
221
+ a.stopPropagation(), a.detail.context = n;
222
+ }, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
223
+ } }));
224
+ }
225
+ function y(e, n, t) {
226
+ if (e.nodeType === 3) return e.data;
227
+ if (e.nodeType !== 1) return null;
228
+ var o = [], c = {}, r = 0, a = e.attributes, i = e.childNodes;
229
+ for (r = a.length; r--; ) a[r].name !== "slot" && (c[a[r].name] = a[r].value, c[b(a[r].name)] = a[r].value);
230
+ for (r = i.length; r--; ) {
231
+ var l = y(i[r], null, t), d = i[r].slot;
232
+ d ? c[d] = p(S, { name: d }, l) : o[r] = l;
233
+ }
234
+ var v = !(!t || !t.shadow), C = n ? p(S, { useFragment: !v }, o) : o;
235
+ return !v && n && (e.innerHTML = ""), p(n || e.nodeName.toLowerCase(), c, C);
236
+ }
237
+ function N(e, n, t) {
238
+ $(e, n, [...t], {
239
+ shadow: !1
240
+ });
241
+ }
242
+ const Z = ["config", "onFinish", "onError"];
243
+ function U(e, n) {
244
+ N(e, n, Z);
245
+ }
246
+ export {
247
+ J as B,
248
+ x as L,
249
+ R as S,
250
+ G as a,
251
+ h as c,
252
+ U as r,
253
+ s as u
254
+ };
@@ -0,0 +1,6 @@
1
+ import { s as e } from "./setup-wNL83jmW.js";
2
+ import { s as t } from "./uiConfig-CQ1W9cUD.js";
3
+ export {
4
+ t as setUiConfig,
5
+ e as setup
6
+ };