@incodetech/web 0.0.0-dev-20260317-ce5d28b → 0.0.0-dev-20260317-6ffceac

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.
@@ -1,9 +1,10 @@
1
1
  import { u as n } from "./button-Ca1tRSTI.js";
2
2
  import { D as Y, d as S, A as k, T as D, y as q, q as y } from "./vendor-preact-BXf0bkEs.js";
3
3
  import { g as u, c as G } from "./countries-C9bhJe4u.js";
4
- import { D as J, I as K } from "./dropdownComposed-DBm7cotT.js";
5
- import { E as Q } from "./errorIcon-BL647nVh.js";
6
- import { S as X } from "./successIcon-BybULRRU.js";
4
+ import { D as J } from "./dropdownComposed-B5ZuQS8C.js";
5
+ import { E as K } from "./errorIcon-BL647nVh.js";
6
+ import { S as Q } from "./successIcon-BybULRRU.js";
7
+ import { I as X } from "./inputComposed-BHi-MSpP.js";
7
8
  import { A as E, p as W } from "./AsYouType-CpH-Rmtj.js";
8
9
  const Z = Y(
9
10
  ({
@@ -106,7 +107,7 @@ const Z = Y(
106
107
  },
107
108
  class: "IncodePhoneInputComposedDropdown",
108
109
  siblingElement: /* @__PURE__ */ n(
109
- K,
110
+ X,
110
111
  {
111
112
  id: i,
112
113
  ref: F,
@@ -134,7 +135,7 @@ const Z = Y(
134
135
  class: "IncodePhoneInputComposedErrorWrapper",
135
136
  "data-testid": `${a}-error-wrapper`,
136
137
  children: [
137
- j && /* @__PURE__ */ n("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ n(Q, { size: 16 }) }),
138
+ j && /* @__PURE__ */ n("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ n(K, { size: 16 }) }),
138
139
  /* @__PURE__ */ n("p", { id: v, class: "IncodePhoneInputComposedError", children: r })
139
140
  ]
140
141
  }
@@ -145,7 +146,7 @@ const Z = Y(
145
146
  class: "IncodePhoneInputComposedHelperWrapper",
146
147
  "data-testid": `${a}-helper-wrapper`,
147
148
  children: [
148
- B && /* @__PURE__ */ n("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ n(X, { size: 16 }) }),
149
+ B && /* @__PURE__ */ n("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ n(Q, { size: 16 }) }),
149
150
  /* @__PURE__ */ n("p", { id: g, class: "IncodePhoneInputComposedHelper", children: h })
150
151
  ]
151
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260317-ce5d28b",
3
+ "version": "0.0.0-dev-20260317-6ffceac",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -119,7 +119,7 @@
119
119
  "preact-custom-element": "^4.6.0",
120
120
  "qrcode": "^1.5.4",
121
121
  "tailwindcss": "^4.1.17",
122
- "@incodetech/core": "0.0.0-dev-20260317-ce5d28b"
122
+ "@incodetech/core": "0.0.0-dev-20260317-6ffceac"
123
123
  },
124
124
  "devDependencies": {
125
125
  "@microsoft/api-extractor": "^7.53.3",
@@ -1,440 +0,0 @@
1
- import { u as e, d as A } from "./button-Ca1tRSTI.js";
2
- import { D as G, d as E, A as w, y as R } from "./vendor-preact-BXf0bkEs.js";
3
- import { C as ie } from "./closeIcon-BM7WLbKp.js";
4
- import { E as J } from "./errorIcon-BL647nVh.js";
5
- import { S as M } from "./successIcon-BybULRRU.js";
6
- import { C as pe } from "./chevronDown-BUaOuf9J.js";
7
- const ue = ({ size: r = 20 }) => /* @__PURE__ */ e(
8
- "svg",
9
- {
10
- xmlns: "http://www.w3.org/2000/svg",
11
- width: r,
12
- height: r,
13
- viewBox: "0 0 20 20",
14
- fill: "none",
15
- class: "IncodeSearchIcon",
16
- "aria-hidden": "true",
17
- children: [
18
- /* @__PURE__ */ e("title", { children: "Search" }),
19
- /* @__PURE__ */ e(
20
- "path",
21
- {
22
- d: "M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z",
23
- stroke: "var(--icon-neutral-300)",
24
- "stroke-width": "2",
25
- "stroke-linecap": "round",
26
- "stroke-linejoin": "round"
27
- }
28
- ),
29
- /* @__PURE__ */ e(
30
- "path",
31
- {
32
- d: "M19 19L14.65 14.65",
33
- stroke: "var(--icon-neutral-300)",
34
- "stroke-width": "2",
35
- "stroke-linecap": "round",
36
- "stroke-linejoin": "round"
37
- }
38
- )
39
- ]
40
- }
41
- ), he = G((r, d) => {
42
- const { class: h, type: I = "text", ...i } = r;
43
- return /* @__PURE__ */ e(
44
- "input",
45
- {
46
- ...i,
47
- ref: d,
48
- type: I,
49
- class: A("IncodeInput", h)
50
- }
51
- );
52
- }), be = G(
53
- ({
54
- id: r,
55
- label: d,
56
- "aria-label": h,
57
- type: I,
58
- error: i,
59
- showErrorIcon: F,
60
- helper: p,
61
- showHelperIcon: D,
62
- closeButton: k,
63
- required: y,
64
- suppressMessages: m = !1,
65
- class: f,
66
- value: v,
67
- ...C
68
- }, $) => {
69
- const S = `${r}-helper`, b = `${r}-error`, H = m ? "" : [p ? S : null, i ? b : null].filter(Boolean).join(" ");
70
- return /* @__PURE__ */ e("div", { class: A("IncodeInputComposed", f), children: [
71
- d && /* @__PURE__ */ e(
72
- "label",
73
- {
74
- class: "IncodeInputComposedLabel",
75
- htmlFor: r,
76
- "data-testid": `${r}-label`,
77
- children: d
78
- }
79
- ),
80
- /* @__PURE__ */ e("div", { class: "IncodeInputComposedWrapper", children: [
81
- /* @__PURE__ */ e(
82
- he,
83
- {
84
- id: r,
85
- type: I,
86
- ...C,
87
- ref: $,
88
- required: y,
89
- "data-has-value": !!(v && String(v).length > 0),
90
- ...!d && h ? { "aria-label": h } : {},
91
- "aria-describedby": H || void 0,
92
- "aria-required": y ? "true" : void 0,
93
- "aria-invalid": i ? "true" : void 0,
94
- value: v
95
- }
96
- ),
97
- k?.show && /* @__PURE__ */ e(
98
- "button",
99
- {
100
- type: "button",
101
- "aria-label": "Clear",
102
- class: "IncodeInputComposedClearButton",
103
- onClick: k.onClose,
104
- "data-testid": `${r}-clear`,
105
- children: /* @__PURE__ */ e(ie, {})
106
- }
107
- )
108
- ] }),
109
- !m && i && /* @__PURE__ */ e(
110
- "div",
111
- {
112
- class: "IncodeInputComposedErrorWrapper",
113
- "data-testid": `${r}-error-wrapper`,
114
- children: [
115
- F && /* @__PURE__ */ e("div", { class: "IncodeInputComposedIconWrapper", children: /* @__PURE__ */ e(J, { size: 17 }) }),
116
- /* @__PURE__ */ e("p", { id: b, class: "IncodeInputComposedError", children: i })
117
- ]
118
- }
119
- ),
120
- !m && p && !i && /* @__PURE__ */ e(
121
- "div",
122
- {
123
- class: "IncodeInputComposedHelperWrapper",
124
- "data-testid": `${r}-helper-wrapper`,
125
- children: [
126
- D && /* @__PURE__ */ e("div", { class: "IncodeInputComposedIconWrapper", children: /* @__PURE__ */ e(M, { size: 17 }) }),
127
- /* @__PURE__ */ e("p", { id: S, class: "IncodeInputComposedHelper", children: p })
128
- ]
129
- }
130
- )
131
- ] });
132
- }
133
- ), ge = ({
134
- id: r,
135
- label: d,
136
- placeholder: h = "Choose an option",
137
- value: I,
138
- options: i,
139
- onChange: F,
140
- error: p,
141
- helper: D,
142
- showErrorIcon: k,
143
- showHelperIcon: y,
144
- suppressMessages: m = !1,
145
- disabled: f = !1,
146
- required: v,
147
- searchable: C = !1,
148
- searchPlaceholder: $ = "Search...",
149
- noResultsText: S = "No results found",
150
- name: b,
151
- tabIndex: H,
152
- onKeyDown: X,
153
- onBlur: Y,
154
- renderSelectedLabel: N,
155
- siblingElement: B,
156
- enterKeyHint: fe,
157
- class: ee,
158
- "data-testid": oe
159
- }) => {
160
- const [t, l] = E(!1), [re, q] = E(!1), [s, a] = E(-1), [K, Q] = E(""), U = w(null), T = w(null), V = w(null), L = w([]), O = w(null), z = w(""), g = w(), x = i.find((o) => o.value === I), c = C && K ? i.filter(
161
- (o) => o.label.toLowerCase().includes(K.toLowerCase())
162
- ) : i, j = `${r}-label`, Z = `${r}-listbox`, P = `${r}-helper`, _ = `${r}-error`, ne = m ? "" : [D ? P : null, p ? _ : null].filter(Boolean).join(" ");
163
- R(() => {
164
- if (!t) return;
165
- const o = requestAnimationFrame(() => {
166
- C && O.current && O.current.focus(), requestAnimationFrame(() => {
167
- V.current?.scrollIntoView({
168
- behavior: "smooth",
169
- block: "nearest",
170
- inline: "nearest"
171
- });
172
- });
173
- });
174
- return () => cancelAnimationFrame(o);
175
- }, [t, C]), R(() => {
176
- t || (a(-1), Q(""));
177
- }, [t]), R(() => {
178
- s >= 0 && L.current[s] && L.current[s]?.scrollIntoView({
179
- block: "nearest",
180
- inline: "nearest"
181
- });
182
- }, [s]), R(() => () => {
183
- g.current && clearTimeout(g.current);
184
- }, []);
185
- const te = () => {
186
- f || l((o) => !o);
187
- }, W = (o) => {
188
- F(o), l(!1), a(-1), T.current?.focus();
189
- }, ae = () => {
190
- q(!0);
191
- }, se = (o) => {
192
- q(!1), U.current?.contains(o.relatedTarget) || (l(!1), Y?.());
193
- }, ce = (o) => {
194
- if (f) return;
195
- X?.(o);
196
- const { key: u } = o;
197
- if (u.length === 1 && /^[a-zA-Z0-9]$/.test(u)) {
198
- o.preventDefault(), g.current && clearTimeout(g.current), z.current += u.toLowerCase();
199
- const n = c.findIndex(
200
- (le) => le.label.toLowerCase().startsWith(z.current)
201
- );
202
- n !== -1 && (t || l(!0), a(n)), g.current = setTimeout(() => {
203
- z.current = "";
204
- }, 500);
205
- return;
206
- }
207
- switch (u) {
208
- case "ArrowDown":
209
- o.preventDefault(), t ? a(
210
- (n) => n < c.length - 1 ? n + 1 : n
211
- ) : (l(!0), a(0));
212
- break;
213
- case "ArrowUp":
214
- o.preventDefault(), t ? a((n) => n > 0 ? n - 1 : n) : (l(!0), a(c.length - 1));
215
- break;
216
- case "Home":
217
- o.preventDefault(), t && a(0);
218
- break;
219
- case "End":
220
- o.preventDefault(), t && a(c.length - 1);
221
- break;
222
- case "Enter":
223
- o.preventDefault(), t && s >= 0 && c[s] ? W(c[s].value) : t || l(!0);
224
- break;
225
- case " ":
226
- o.preventDefault(), t && s >= 0 && c[s] ? W(c[s].value) : t || (l(!0), a(0));
227
- break;
228
- case "Escape":
229
- o.preventDefault(), t && (l(!1), a(-1), T.current?.focus());
230
- break;
231
- case "Tab":
232
- t && (l(!1), a(-1));
233
- break;
234
- }
235
- }, de = (o) => {
236
- const { key: u } = o;
237
- switch (u) {
238
- case "ArrowDown":
239
- o.preventDefault(), a(
240
- (n) => n < c.length - 1 ? n + 1 : n
241
- );
242
- break;
243
- case "ArrowUp":
244
- o.preventDefault(), a((n) => n > 0 ? n - 1 : n);
245
- break;
246
- case "Home":
247
- o.preventDefault(), a(0);
248
- break;
249
- case "End":
250
- o.preventDefault(), a(c.length - 1);
251
- break;
252
- case "Enter":
253
- o.preventDefault(), s >= 0 && c[s] && W(c[s].value);
254
- break;
255
- case "Escape":
256
- o.preventDefault(), l(!1), a(-1), T.current?.focus();
257
- break;
258
- case "Tab":
259
- l(!1), a(-1);
260
- break;
261
- }
262
- };
263
- return /* @__PURE__ */ e(
264
- "div",
265
- {
266
- class: A("IncodeDropdownComposed", ee),
267
- ref: U,
268
- onBlur: se,
269
- children: [
270
- b && /* @__PURE__ */ e(
271
- "input",
272
- {
273
- type: "hidden",
274
- name: b,
275
- value: I || "",
276
- disabled: f,
277
- required: v
278
- }
279
- ),
280
- d && /* @__PURE__ */ e(
281
- "label",
282
- {
283
- class: "IncodeDropdownComposedLabel",
284
- id: j,
285
- htmlFor: r,
286
- "data-testid": `${r}-label`,
287
- children: [
288
- d,
289
- v && /* @__PURE__ */ e("span", { class: "IncodeDropdownComposedRequired", children: " *" })
290
- ]
291
- }
292
- ),
293
- /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedWrapper", children: [
294
- /* @__PURE__ */ e(
295
- "div",
296
- {
297
- class: A("IncodeDropdownComposedTriggerRow", {
298
- IncodeDropdownComposedTriggerRowWithSibling: !!B
299
- }),
300
- children: [
301
- /* @__PURE__ */ e(
302
- "button",
303
- {
304
- ref: T,
305
- type: "button",
306
- id: r,
307
- class: "IncodeDropdownComposedTrigger",
308
- onClick: te,
309
- onFocus: ae,
310
- onKeyDown: ce,
311
- tabIndex: f ? -1 : H ?? 0,
312
- disabled: f,
313
- "aria-haspopup": "listbox",
314
- "aria-expanded": t ? "true" : "false",
315
- "aria-disabled": f ? "true" : void 0,
316
- "aria-labelledby": d ? j : void 0,
317
- "aria-label": d ? void 0 : h,
318
- "aria-controls": t ? Z : void 0,
319
- "aria-activedescendant": t && s >= 0 ? `${r}-option-${s}` : void 0,
320
- "aria-invalid": p ? "true" : void 0,
321
- "aria-required": v ? "true" : void 0,
322
- "aria-describedby": ne || void 0,
323
- "data-error": p ? "true" : void 0,
324
- "data-focused": re || t ? "true" : void 0,
325
- "data-testid": oe,
326
- children: [
327
- /* @__PURE__ */ e(
328
- "span",
329
- {
330
- class: x ? "IncodeDropdownComposedTriggerText" : "IncodeDropdownComposedTriggerPlaceholder",
331
- children: x ? N ? N(x) : x.label : h
332
- }
333
- ),
334
- /* @__PURE__ */ e(
335
- "span",
336
- {
337
- class: "IncodeDropdownComposedTriggerIcon",
338
- "aria-hidden": "true",
339
- "data-open": t,
340
- children: /* @__PURE__ */ e(pe, {})
341
- }
342
- )
343
- ]
344
- }
345
- ),
346
- B && /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedSibling", children: B })
347
- ]
348
- }
349
- ),
350
- t && /* @__PURE__ */ e(
351
- "div",
352
- {
353
- ref: V,
354
- id: Z,
355
- class: "IncodeDropdownComposedList",
356
- role: "listbox",
357
- "aria-labelledby": d ? j : void 0,
358
- "aria-label": d ? void 0 : h,
359
- "data-error": p ? "true" : void 0,
360
- children: [
361
- C && /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedSearchWrapper", children: /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedSearchInner", children: [
362
- /* @__PURE__ */ e(
363
- "input",
364
- {
365
- ref: O,
366
- type: "text",
367
- class: "IncodeDropdownComposedSearchInput",
368
- value: K,
369
- onInput: (o) => {
370
- Q(o.target.value), a(0);
371
- },
372
- onKeyDown: de,
373
- placeholder: $,
374
- "aria-label": $,
375
- autocomplete: "off"
376
- }
377
- ),
378
- /* @__PURE__ */ e(
379
- "span",
380
- {
381
- class: "IncodeDropdownComposedSearchIcon",
382
- "aria-hidden": "true",
383
- children: /* @__PURE__ */ e(ue, { size: 20 })
384
- }
385
- )
386
- ] }) }),
387
- /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedOptionsScroll", children: c.length === 0 ? /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedNoResults", children: S }) : c.map((o, u) => /* @__PURE__ */ e(
388
- "div",
389
- {
390
- id: `${r}-option-${u}`,
391
- role: "option",
392
- "aria-selected": I === o.value ? "true" : "false",
393
- class: "IncodeDropdownComposedOption",
394
- "data-highlighted": s === u,
395
- ref: (n) => {
396
- L.current[u] = n;
397
- },
398
- onClick: () => W(o.value),
399
- onMouseDown: (n) => n.preventDefault(),
400
- onMouseEnter: () => a(u),
401
- children: o.label
402
- },
403
- o.value
404
- )) })
405
- ]
406
- }
407
- )
408
- ] }),
409
- !m && p && /* @__PURE__ */ e(
410
- "div",
411
- {
412
- class: "IncodeDropdownComposedErrorWrapper",
413
- "data-testid": `${r}-error-wrapper`,
414
- children: [
415
- k && /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedIconWrapper", children: /* @__PURE__ */ e(J, { size: 17 }) }),
416
- /* @__PURE__ */ e("p", { id: _, class: "IncodeDropdownComposedError", children: p })
417
- ]
418
- }
419
- ),
420
- !m && D && !p && /* @__PURE__ */ e(
421
- "div",
422
- {
423
- class: "IncodeDropdownComposedHelperWrapper",
424
- "data-testid": `${r}-helper-wrapper`,
425
- children: [
426
- y && /* @__PURE__ */ e("div", { class: "IncodeDropdownComposedIconWrapper", children: /* @__PURE__ */ e(M, { size: 17 }) }),
427
- /* @__PURE__ */ e("p", { id: P, class: "IncodeDropdownComposedHelper", children: D })
428
- ]
429
- }
430
- )
431
- ]
432
- }
433
- );
434
- };
435
- export {
436
- ge as D,
437
- be as I,
438
- ue as S,
439
- he as a
440
- };
@@ -1,151 +0,0 @@
1
- import { u as n, S as h, B as T } from "./button-Ca1tRSTI.js";
2
- import { d as $, A as K, y as I, k as R } from "./vendor-preact-BXf0bkEs.js";
3
- const c = 6, S = ({
4
- resendTimer: g,
5
- canResend: m,
6
- error: i,
7
- onSubmit: y,
8
- onResend: D,
9
- onBack: k,
10
- backLinkText: w = "change phone number",
11
- disabled: f = !1,
12
- isLoading: l = !1
13
- }) => {
14
- const [p, d] = $(Array(c).fill("")), a = K([]);
15
- I(() => {
16
- a.current[0]?.focus();
17
- }, []), I(() => {
18
- i && (d(Array(c).fill("")), setTimeout(() => {
19
- a.current[0]?.focus();
20
- }, 0));
21
- }, [i]);
22
- const A = (t, e) => {
23
- let o = e.target.value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
24
- o.length > 1 && (o = o.charAt(0));
25
- const r = [...p];
26
- r[t] = o, d(r), o && t < c - 1 && a.current[t + 1]?.focus();
27
- }, O = (t, e) => {
28
- const s = e.target;
29
- if (![
30
- "Backspace",
31
- "Delete",
32
- "Tab",
33
- "Escape",
34
- "Enter",
35
- "ArrowLeft",
36
- "ArrowRight",
37
- "ArrowUp",
38
- "ArrowDown"
39
- ].includes(e.key) && !/^[a-zA-Z0-9]$/.test(e.key) && !e.ctrlKey && !e.metaKey) {
40
- e.preventDefault();
41
- return;
42
- }
43
- if (e.key === "Backspace") {
44
- if (!s.value && t > 0) {
45
- a.current[t - 1]?.focus();
46
- const r = [...p];
47
- r[t - 1] = "", d(r);
48
- }
49
- } else e.key === "ArrowLeft" && t > 0 ? a.current[t - 1]?.focus() : e.key === "ArrowRight" && t < c - 1 && a.current[t + 1]?.focus();
50
- }, b = (t, e) => {
51
- e.preventDefault();
52
- const o = (e.clipboardData?.getData("text") || "").replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, c);
53
- if (o) {
54
- const r = [...p];
55
- for (let u = 0; u < o.length && t + u < c; u++)
56
- r[t + u] = o[u];
57
- d(r);
58
- const B = Math.min(t + o.length, c - 1);
59
- a.current[B]?.focus();
60
- }
61
- }, v = (t) => {
62
- t.target.select();
63
- }, C = (t) => {
64
- const e = Math.floor(t / 60), s = t % 60;
65
- return `${e}:${s.toString().padStart(2, "0")}`;
66
- };
67
- return /* @__PURE__ */ n("div", { class: "IncodeOtpInput", children: [
68
- /* @__PURE__ */ n("div", { class: "IncodeOtpInputContainer", children: [
69
- /* @__PURE__ */ n(
70
- "div",
71
- {
72
- class: `IncodeOtpInputBoxes ${i ? "IncodeOtpInputBoxesError" : ""}`,
73
- children: p.map((t, e) => /* @__PURE__ */ n(
74
- "input",
75
- {
76
- type: "text",
77
- inputMode: "text",
78
- maxLength: 1,
79
- value: t,
80
- onInput: (s) => A(e, s),
81
- onKeyDown: (s) => O(e, s),
82
- onPaste: (s) => b(e, s),
83
- onFocus: v,
84
- ref: (s) => {
85
- a.current[e] = s;
86
- },
87
- class: "IncodeOtpInputBox",
88
- autocomplete: "one-time-code",
89
- "data-testid": `otp-input-${e}`,
90
- "aria-label": `Character ${e + 1} of ${c}`,
91
- disabled: f || l
92
- },
93
- e
94
- ))
95
- }
96
- ),
97
- i && /* @__PURE__ */ n(R, { children: [
98
- /* @__PURE__ */ n(h, { size: 8 }),
99
- /* @__PURE__ */ n("p", { class: "IncodeOtpInputError", "data-testid": "otp-error", children: i })
100
- ] })
101
- ] }),
102
- /* @__PURE__ */ n(h, {}),
103
- /* @__PURE__ */ n(
104
- T,
105
- {
106
- onClick: () => {
107
- const t = p.join("");
108
- t.length === c && y(t);
109
- },
110
- disabled: p.join("").length < c,
111
- isLoading: l,
112
- "data-testid": "otp-submit",
113
- children: "Continue"
114
- }
115
- ),
116
- /* @__PURE__ */ n(h, { size: 16 }),
117
- /* @__PURE__ */ n("div", { class: "IncodeOtpInputActions", children: m && !l ? /* @__PURE__ */ n("p", { class: "IncodeOtpInputResendText", "data-testid": "otp-resend-section", children: [
118
- "Didn't get it?",
119
- " ",
120
- /* @__PURE__ */ n(
121
- "button",
122
- {
123
- type: "button",
124
- class: "IncodeOtpInputLink",
125
- onClick: D,
126
- disabled: f || l,
127
- "data-testid": "otp-resend",
128
- children: "Resend code"
129
- }
130
- ),
131
- " or ",
132
- /* @__PURE__ */ n(
133
- "button",
134
- {
135
- type: "button",
136
- class: "IncodeOtpInputLink",
137
- onClick: k,
138
- disabled: f || l,
139
- "data-testid": "otp-back",
140
- children: w
141
- }
142
- )
143
- ] }) : l ? null : /* @__PURE__ */ n("p", { class: "IncodeOtpInputTimer", "data-testid": "otp-timer", children: [
144
- "Resend code in ",
145
- C(g)
146
- ] }) })
147
- ] });
148
- };
149
- export {
150
- S as O
151
- };