@alfadocs/ui-kit 1.112.2 → 1.113.0

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 (97) hide show
  1. package/dist/_chunks/{calendar-appointment-editor-dialog-FvdoKZ54.js → calendar-appointment-editor-dialog-CaZm5wGR.js} +2 -2
  2. package/dist/_chunks/email-input-DxwbREpx.js +156 -0
  3. package/dist/_chunks/{forgot-password-form-vfCO2-Tt.js → forgot-password-form-YQVzSskq.js} +8 -7
  4. package/dist/_chunks/isEmail-BfVspSvV.js +248 -0
  5. package/dist/_chunks/{login-dev-card-Cz1Clugq.js → login-dev-card-B6-zCFq3.js} +47 -46
  6. package/dist/_chunks/{patient-details-BwkDIm4D.js → patient-details-RsT3SaYh.js} +2 -2
  7. package/dist/_chunks/{patient-field-row-CBba7w9V.js → patient-field-row-D9rb-QJH.js} +2 -2
  8. package/dist/_chunks/{patient-summary-card-DtYTo9w_.js → patient-summary-card-BjZErlbt.js} +2 -2
  9. package/dist/_chunks/{practice-results-BOpaPaav.js → practice-results-BByRCIuR.js} +620 -566
  10. package/dist/_chunks/{registration-form-DEyUFysm.js → registration-form-Cq5_OSIL.js} +7 -6
  11. package/dist/_chunks/{reserved.agent-W_Zgj564.js → reserved.agent-BMkapgom.js} +2 -2
  12. package/dist/_chunks/{reset-password-form-B0acanDD.js → reset-password-form-BVsL2fOJ.js} +2 -2
  13. package/dist/_chunks/{send-registration-link-form-Nn0jf65G.js → send-registration-link-form-OgPomrZN.js} +8 -7
  14. package/dist/_chunks/{use-appointment-details-read-DYyCYI9f.js → use-appointment-details-read-DvK7Looa.js} +2 -2
  15. package/dist/_chunks/verify-identity-types-C85EXNzy.js +707 -0
  16. package/dist/agent-catalog.json +106 -2
  17. package/dist/agent-i18n/en.json +11 -0
  18. package/dist/components/appointment-details-panel/index.js +1 -1
  19. package/dist/components/booking/index.js +1 -1
  20. package/dist/components/email-input/index.js +1 -1
  21. package/dist/components/index.d.ts +1 -0
  22. package/dist/components/patient-details/index.js +1 -1
  23. package/dist/components/patient-summary-card/index.js +1 -1
  24. package/dist/components/practice-results/index.js +1 -1
  25. package/dist/components/practice-results/practice-results.d.ts +28 -0
  26. package/dist/core.css +1 -1
  27. package/dist/i18n/locales/ar.d.ts +67 -0
  28. package/dist/i18n/locales/ar.js +68 -1
  29. package/dist/i18n/locales/de.d.ts +67 -0
  30. package/dist/i18n/locales/de.js +68 -1
  31. package/dist/i18n/locales/el.d.ts +67 -0
  32. package/dist/i18n/locales/el.js +68 -1
  33. package/dist/i18n/locales/en.d.ts +67 -0
  34. package/dist/i18n/locales/en.js +67 -0
  35. package/dist/i18n/locales/es.d.ts +67 -0
  36. package/dist/i18n/locales/es.js +68 -1
  37. package/dist/i18n/locales/fr.d.ts +67 -0
  38. package/dist/i18n/locales/fr.js +68 -1
  39. package/dist/i18n/locales/hi.d.ts +67 -0
  40. package/dist/i18n/locales/hi.js +68 -1
  41. package/dist/i18n/locales/it.d.ts +67 -0
  42. package/dist/i18n/locales/it.js +68 -1
  43. package/dist/i18n/locales/ja.d.ts +67 -0
  44. package/dist/i18n/locales/ja.js +68 -1
  45. package/dist/i18n/locales/nl.d.ts +67 -0
  46. package/dist/i18n/locales/nl.js +68 -1
  47. package/dist/i18n/locales/pl.d.ts +67 -0
  48. package/dist/i18n/locales/pl.js +68 -1
  49. package/dist/i18n/locales/pt.d.ts +67 -0
  50. package/dist/i18n/locales/pt.js +68 -1
  51. package/dist/i18n/locales/ro.d.ts +67 -0
  52. package/dist/i18n/locales/ro.js +68 -1
  53. package/dist/i18n/locales/ru.d.ts +67 -0
  54. package/dist/i18n/locales/ru.js +68 -1
  55. package/dist/i18n/locales/sq.d.ts +67 -0
  56. package/dist/i18n/locales/sq.js +68 -1
  57. package/dist/i18n/locales/sv.d.ts +67 -0
  58. package/dist/i18n/locales/sv.js +68 -1
  59. package/dist/i18n/locales/tr.d.ts +67 -0
  60. package/dist/i18n/locales/tr.js +68 -1
  61. package/dist/i18n/locales/zh.d.ts +67 -0
  62. package/dist/i18n/locales/zh.js +68 -1
  63. package/dist/index.js +345 -340
  64. package/dist/locales/ar.json +68 -1
  65. package/dist/locales/de.json +68 -1
  66. package/dist/locales/el.json +68 -1
  67. package/dist/locales/en.json +67 -0
  68. package/dist/locales/es.json +68 -1
  69. package/dist/locales/fr.json +68 -1
  70. package/dist/locales/hi.json +68 -1
  71. package/dist/locales/it.json +68 -1
  72. package/dist/locales/ja.json +68 -1
  73. package/dist/locales/nl.json +68 -1
  74. package/dist/locales/pl.json +68 -1
  75. package/dist/locales/pt.json +68 -1
  76. package/dist/locales/ro.json +68 -1
  77. package/dist/locales/ru.json +68 -1
  78. package/dist/locales/sq.json +68 -1
  79. package/dist/locales/sv.json +68 -1
  80. package/dist/locales/tr.json +68 -1
  81. package/dist/locales/zh.json +68 -1
  82. package/dist/patterns/calendar/index.js +1 -1
  83. package/dist/patterns/forgot-password-form/index.js +1 -1
  84. package/dist/patterns/login-form/index.js +1 -1
  85. package/dist/patterns/registration-form/index.js +1 -1
  86. package/dist/patterns/reset-password-form/index.js +1 -1
  87. package/dist/patterns/send-registration-link-form/index.js +1 -1
  88. package/dist/patterns/verify-identity/change-email-dialog.d.ts +26 -0
  89. package/dist/patterns/verify-identity/index.d.ts +7 -0
  90. package/dist/patterns/verify-identity/index.js +8 -0
  91. package/dist/patterns/verify-identity/use-countdown.d.ts +12 -0
  92. package/dist/patterns/verify-identity/verify-identity-steps.d.ts +21 -0
  93. package/dist/patterns/verify-identity/verify-identity-types.d.ts +47 -0
  94. package/dist/patterns/verify-identity/verify-identity.d.ts +54 -0
  95. package/dist/tokens.css +1 -1
  96. package/package.json +5 -1
  97. package/dist/_chunks/email-input-BEO3vonE.js +0 -399
@@ -16,7 +16,7 @@ import { d as vt, c as qs, b as ra } from "./toast-BNoN8Qjh.js";
16
16
  import { T as Ga, a as Si } from "./tooltip-uEBdD1-5.js";
17
17
  import { A as he } from "./alert-C4WKViaS.js";
18
18
  import { B as ge } from "./button-DohK_Ak_.js";
19
- import { f as ft, b as ja, c as _o, d as $o, e as zo, A as wi, u as Fo, R as wr, g as Ho, D as Ti, M as Vo, C as js, h as Uo, i as Ko, j as Go, k as qo, l as wa, I as jo, s as Yo } from "./use-appointment-details-read-DYyCYI9f.js";
19
+ import { f as ft, b as ja, c as _o, d as $o, e as zo, A as wi, u as Fo, R as wr, g as Ho, D as Ti, M as Vo, C as js, h as Uo, i as Ko, j as Go, k as qo, l as wa, I as jo, s as Yo } from "./use-appointment-details-read-DvK7Looa.js";
20
20
  import { V as va } from "./visually-hidden-BHxEUGyT.js";
21
21
  import { C as Xo } from "./calendar-_sgjuH3L.js";
22
22
  import { C as lr } from "./card-C85_Ndhb.js";
@@ -10983,4 +10983,4 @@ export {
10983
10983
  hp as r,
10984
10984
  Vn as u
10985
10985
  };
10986
- //# sourceMappingURL=calendar-appointment-editor-dialog-FvdoKZ54.js.map
10986
+ //# sourceMappingURL=calendar-appointment-editor-dialog-CaZm5wGR.js.map
@@ -0,0 +1,156 @@
1
+ import { jsxs as R, jsx as h } from "react/jsx-runtime";
2
+ import { forwardRef as U, useRef as T, useId as W, useState as V, useMemo as g, useEffect as X, useCallback as k } from "react";
3
+ import { useTranslation as Y } from "react-i18next";
4
+ import { i as N } from "./isEmail-BfVspSvV.js";
5
+ import { T as Z } from "./text-input-B6iAgCr3.js";
6
+ import { u as _ } from "./form-field-context-DtiROUJV.js";
7
+ import { c as $ } from "./compose-refs-C0k0tdqF.js";
8
+ import { u as C } from "./registry-DvAUVLHh.js";
9
+ import { C as ee } from "./circle-alert-rGDZ73Wh.js";
10
+ const te = {
11
+ id: "email-input",
12
+ capabilities: [],
13
+ state: {
14
+ value: {
15
+ type: "string",
16
+ descriptionKey: "ui.agent.emailInput.state.value",
17
+ description: "The current email address typed into the field.",
18
+ read: (t) => t.getValue()
19
+ },
20
+ isValid: {
21
+ type: "boolean",
22
+ descriptionKey: "ui.agent.emailInput.state.isValid",
23
+ description: "True when the value is non-empty AND parses as a valid email per RFC 5322.",
24
+ read: (t) => t.isValid()
25
+ }
26
+ },
27
+ actions: {},
28
+ domHooks: {
29
+ root: {
30
+ attr: "data-component",
31
+ value: "email-input",
32
+ description: 'Marks the EmailInput wrapper. The inline error element carries `role="alert"` when validation fails.'
33
+ },
34
+ instanceId: {
35
+ attr: "data-component-id",
36
+ sourceProp: "id",
37
+ description: "Sourced from the id prop, when provided."
38
+ }
39
+ }
40
+ };
41
+ function ie(t) {
42
+ return t.length === 0 ? !0 : N(t);
43
+ }
44
+ const re = U(
45
+ ({
46
+ errorMessage: t,
47
+ onValidityChange: n,
48
+ disableBuiltInValidation: A = !1,
49
+ autoComplete: j = "email",
50
+ value: a,
51
+ defaultValue: d,
52
+ onChange: o,
53
+ onBlur: l,
54
+ id: c,
55
+ "aria-describedby": I,
56
+ "aria-invalid": x,
57
+ ...F
58
+ }, M) => {
59
+ const { t: S } = Y("ui"), u = _(), p = T(null), H = $(M, p), m = W(), r = a !== void 0, [K, O] = V(() => typeof a == "string" ? a : typeof d == "string" ? d : ""), i = r ? String(a) : K, [f, z] = V(
60
+ () => i.length > 0
61
+ ), v = g(
62
+ () => ie(i),
63
+ [i]
64
+ ), D = !A && f && i.length > 0 && !v, y = T(null);
65
+ X(() => {
66
+ if (!f) return;
67
+ const e = i.length > 0 && v;
68
+ y.current !== e && (y.current = e, n == null || n(e));
69
+ }, [f, i, v, n]);
70
+ const P = k(
71
+ (e) => {
72
+ r || O(e.target.value), o == null || o(e);
73
+ },
74
+ [r, o]
75
+ ), q = k(
76
+ (e) => {
77
+ z(!0), l == null || l(e);
78
+ },
79
+ [l]
80
+ ), B = g(
81
+ () => ({
82
+ getValue: () => {
83
+ var e;
84
+ return ((e = p.current) == null ? void 0 : e.value) ?? "";
85
+ },
86
+ isValid: () => {
87
+ var w;
88
+ const e = ((w = p.current) == null ? void 0 : w.value) ?? "";
89
+ return e.length > 0 && N(e);
90
+ }
91
+ }),
92
+ []
93
+ );
94
+ C(te, B, c);
95
+ const s = D && t !== null && !u.invalid, b = u.describedBy || void 0, G = g(() => {
96
+ const e = [
97
+ I,
98
+ b,
99
+ s ? m : null
100
+ ].filter(Boolean);
101
+ return e.length > 0 ? e.join(" ") : void 0;
102
+ }, [
103
+ I,
104
+ b,
105
+ s,
106
+ m
107
+ ]), E = x === !0 || x === "true", J = s || t === null && E ? "error" : "default", L = s || u.invalid || E || void 0, Q = t !== void 0 ? t : S("inputs.email.invalid", "Enter a valid email address.");
108
+ return /* @__PURE__ */ R(
109
+ "div",
110
+ {
111
+ "data-component": "email-input",
112
+ "data-component-id": c,
113
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
114
+ children: [
115
+ /* @__PURE__ */ h(
116
+ Z,
117
+ {
118
+ ...F,
119
+ ref: H,
120
+ id: c,
121
+ type: "email",
122
+ inputMode: "email",
123
+ autoComplete: j,
124
+ tone: J,
125
+ value: r ? i : void 0,
126
+ defaultValue: r ? void 0 : d,
127
+ onChange: P,
128
+ onBlur: q,
129
+ "aria-invalid": L,
130
+ "aria-describedby": G
131
+ }
132
+ ),
133
+ s ? /* @__PURE__ */ R(
134
+ "p",
135
+ {
136
+ id: m,
137
+ role: "alert",
138
+ "data-slot": "email-input-error",
139
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
140
+ children: [
141
+ /* @__PURE__ */ h(ee, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
142
+ /* @__PURE__ */ h("span", { children: Q })
143
+ ]
144
+ }
145
+ ) : null
146
+ ]
147
+ }
148
+ );
149
+ }
150
+ );
151
+ re.displayName = "EmailInput";
152
+ export {
153
+ re as E,
154
+ te as e
155
+ };
156
+ //# sourceMappingURL=email-input-DxwbREpx.js.map
@@ -2,17 +2,18 @@ import { jsx as s, jsxs as g, Fragment as go } from "react/jsx-runtime";
2
2
  import { forwardRef as po, useId as f, useState as d, useRef as p, useEffect as H } from "react";
3
3
  import { useTranslation as vo } from "react-i18next";
4
4
  import { c as U } from "./index-D2ZczOXr.js";
5
- import { i as J, E as Fo } from "./email-input-BEO3vonE.js";
5
+ import { i as J } from "./isEmail-BfVspSvV.js";
6
6
  import { A as P } from "./alert-C4WKViaS.js";
7
- import { B as ho } from "./button-DohK_Ak_.js";
7
+ import { B as Fo } from "./button-DohK_Ak_.js";
8
8
  import { C as K } from "./card-C85_Ndhb.js";
9
+ import { E as ho } from "./email-input-DxwbREpx.js";
9
10
  import { E as bo } from "./error-summary-DxNhwf_G.js";
10
11
  import { F as wo } from "./form-field-CyHfOVKF.js";
11
12
  import { i as xo } from "./safe-href-5dbsfbQn.js";
12
13
  import { u as Eo } from "./use-state-backed-input-DhRQo6gM.js";
13
14
  import { u as Io, a as Ao, A as Po, b as yo, E as So, c as Ro, d as To } from "./auth-form-parts-DVHfqnp6.js";
14
15
  import { u as Bo, a as Mo, b as No } from "./use-registration-submit-CLGHxwoT.js";
15
- const Vo = ["email"], Do = U(
16
+ const os = ["email"], Do = U(
16
17
  "ds:mx-auto ds:w-full ds:max-w-[400px] ds:text-start ds:text-[var(--foreground)]"
17
18
  ), Oo = U(
18
19
  "ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]"
@@ -185,7 +186,7 @@ const Vo = ["email"], Do = U(
185
186
  announceError: !l.lists("email"),
186
187
  "data-field": "email",
187
188
  children: /* @__PURE__ */ s(
188
- Fo,
189
+ ho,
189
190
  {
190
191
  ref: O.ref,
191
192
  name: u ? b.email : "email",
@@ -204,7 +205,7 @@ const Vo = ["email"], Do = U(
204
205
  ),
205
206
  /* @__PURE__ */ s(So, { fields: uo }),
206
207
  /* @__PURE__ */ s(
207
- ho,
208
+ Fo,
208
209
  {
209
210
  type: "submit",
210
211
  intent: "primary",
@@ -228,7 +229,7 @@ const Vo = ["email"], Do = U(
228
229
  );
229
230
  _o.displayName = "ForgotPasswordForm";
230
231
  export {
231
- Vo as F,
232
+ os as F,
232
233
  _o as a
233
234
  };
234
- //# sourceMappingURL=forgot-password-form-vfCO2-Tt.js.map
235
+ //# sourceMappingURL=forgot-password-form-YQVzSskq.js.map
@@ -0,0 +1,248 @@
1
+ import { g as K } from "./_commonjsHelpers-DaMA6jEr.js";
2
+ var b = { exports: {} }, F = { exports: {} }, k;
3
+ function P() {
4
+ return k || (k = 1, (function(f, t) {
5
+ Object.defineProperty(t, "__esModule", {
6
+ value: !0
7
+ }), t.default = s;
8
+ function s(o) {
9
+ if (o == null) throw new TypeError("Expected a string but received a ".concat(o));
10
+ if (o.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(o.constructor.name));
11
+ }
12
+ f.exports = t.default, f.exports.default = t.default;
13
+ })(F, F.exports)), F.exports;
14
+ }
15
+ var w = { exports: {} }, L;
16
+ function V() {
17
+ return L || (L = 1, (function(f, t) {
18
+ Object.defineProperty(t, "__esModule", {
19
+ value: !0
20
+ }), t.default = o;
21
+ function s(n) {
22
+ return Object.prototype.toString.call(n) === "[object RegExp]";
23
+ }
24
+ function o(n, l) {
25
+ for (var a = 0; a < l.length; a++) {
26
+ var r = l[a];
27
+ if (n === r || s(r) && r.test(n))
28
+ return !0;
29
+ }
30
+ return !1;
31
+ }
32
+ f.exports = t.default, f.exports.default = t.default;
33
+ })(w, w.exports)), w.exports;
34
+ }
35
+ var q = { exports: {} }, U;
36
+ function Y() {
37
+ return U || (U = 1, (function(f, t) {
38
+ Object.defineProperty(t, "__esModule", {
39
+ value: !0
40
+ }), t.default = l;
41
+ var s = o(/* @__PURE__ */ P());
42
+ function o(a) {
43
+ return a && a.__esModule ? a : { default: a };
44
+ }
45
+ function n(a) {
46
+ "@babel/helpers - typeof";
47
+ return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
48
+ return typeof r;
49
+ } : function(r) {
50
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
51
+ }, n(a);
52
+ }
53
+ function l(a, r) {
54
+ (0, s.default)(a);
55
+ var e, _;
56
+ n(r) === "object" ? (e = r.min || 0, _ = r.max) : (e = arguments[1], _ = arguments[2]);
57
+ var g = encodeURI(a).split(/%..|./).length - 1;
58
+ return g >= e && (typeof _ > "u" || g <= _);
59
+ }
60
+ f.exports = t.default, f.exports.default = t.default;
61
+ })(q, q.exports)), q.exports;
62
+ }
63
+ var S = { exports: {} }, E = { exports: {} }, z;
64
+ function B() {
65
+ return z || (z = 1, (function(f, t) {
66
+ Object.defineProperty(t, "__esModule", {
67
+ value: !0
68
+ }), t.default = o;
69
+ function s(n) {
70
+ "@babel/helpers - typeof";
71
+ return s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) {
72
+ return typeof l;
73
+ } : function(l) {
74
+ return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
75
+ }, s(n);
76
+ }
77
+ function o() {
78
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = arguments.length > 1 ? arguments[1] : void 0;
79
+ (s(n) !== "object" || n === null) && (n = {});
80
+ for (var a in l)
81
+ typeof n[a] > "u" && (n[a] = l[a]);
82
+ return n;
83
+ }
84
+ f.exports = t.default, f.exports.default = t.default;
85
+ })(E, E.exports)), E.exports;
86
+ }
87
+ var N;
88
+ function $() {
89
+ return N || (N = 1, (function(f, t) {
90
+ Object.defineProperty(t, "__esModule", {
91
+ value: !0
92
+ }), t.default = a;
93
+ var s = n(/* @__PURE__ */ P()), o = n(/* @__PURE__ */ B());
94
+ function n(r) {
95
+ return r && r.__esModule ? r : { default: r };
96
+ }
97
+ var l = {
98
+ require_tld: !0,
99
+ allow_underscores: !1,
100
+ allow_trailing_dot: !1,
101
+ allow_numeric_tld: !1,
102
+ allow_wildcard: !1,
103
+ ignore_max_length: !1
104
+ };
105
+ function a(r, e) {
106
+ (0, s.default)(r), e = (0, o.default)(e, l), e.allow_trailing_dot && r[r.length - 1] === "." && (r = r.substring(0, r.length - 1)), e.allow_wildcard === !0 && r.indexOf("*.") === 0 && (r = r.substring(2));
107
+ var _ = r.split("."), g = _[_.length - 1];
108
+ return e.require_tld && (_.length < 2 || !e.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(g) || /\s/.test(g)) || !e.allow_numeric_tld && /^\d+$/.test(g) ? !1 : _.every(function(i) {
109
+ return !(i.length > 63 && !e.ignore_max_length || !/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i) || /[\uff01-\uff5e]/.test(i) || /^-|-$/.test(i) || !e.allow_underscores && /_/.test(i));
110
+ });
111
+ }
112
+ f.exports = t.default, f.exports.default = t.default;
113
+ })(S, S.exports)), S.exports;
114
+ }
115
+ var D = { exports: {} }, H;
116
+ function ee() {
117
+ return H || (H = 1, (function(f, t) {
118
+ Object.defineProperty(t, "__esModule", {
119
+ value: !0
120
+ }), t.default = g;
121
+ var s = o(/* @__PURE__ */ P());
122
+ function o(i) {
123
+ return i && i.__esModule ? i : { default: i };
124
+ }
125
+ function n(i) {
126
+ "@babel/helpers - typeof";
127
+ return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
128
+ return typeof v;
129
+ } : function(v) {
130
+ return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
131
+ }, n(i);
132
+ }
133
+ var l = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", a = "(".concat(l, "[.]){3}").concat(l), r = new RegExp("^".concat(a, "$")), e = "(?:[0-9a-fA-F]{1,4})", _ = new RegExp("^(" + "(?:".concat(e, ":){7}(?:").concat(e, "|:)|") + "(?:".concat(e, ":){6}(?:").concat(a, "|:").concat(e, "|:)|") + "(?:".concat(e, ":){5}(?::").concat(a, "|(:").concat(e, "){1,2}|:)|") + "(?:".concat(e, ":){4}(?:(:").concat(e, "){0,1}:").concat(a, "|(:").concat(e, "){1,3}|:)|") + "(?:".concat(e, ":){3}(?:(:").concat(e, "){0,2}:").concat(a, "|(:").concat(e, "){1,4}|:)|") + "(?:".concat(e, ":){2}(?:(:").concat(e, "){0,3}:").concat(a, "|(:").concat(e, "){1,5}|:)|") + "(?:".concat(e, ":){1}(?:(:").concat(e, "){0,4}:").concat(a, "|(:").concat(e, "){1,6}|:)|") + "(?::((?::".concat(e, "){0,5}:").concat(a, "|(?::").concat(e, "){1,7}|:))") + ")(%[0-9a-zA-Z.]{1,})?$");
134
+ function g(i) {
135
+ var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
136
+ (0, s.default)(i);
137
+ var p = (n(v) === "object" ? v.version : arguments[1]) || "";
138
+ return p ? p.toString() === "4" ? r.test(i) : p.toString() === "6" ? _.test(i) : !1 : g(i, {
139
+ version: 4
140
+ }) || g(i, {
141
+ version: 6
142
+ });
143
+ }
144
+ f.exports = t.default, f.exports.default = t.default;
145
+ })(D, D.exports)), D.exports;
146
+ }
147
+ var Q;
148
+ function te() {
149
+ return Q || (Q = 1, (function(f, t) {
150
+ Object.defineProperty(t, "__esModule", {
151
+ value: !0
152
+ }), t.default = G;
153
+ var s = e(/* @__PURE__ */ P()), o = e(/* @__PURE__ */ V()), n = e(/* @__PURE__ */ Y()), l = e(/* @__PURE__ */ $()), a = e(/* @__PURE__ */ ee()), r = e(/* @__PURE__ */ B());
154
+ function e(c) {
155
+ return c && c.__esModule ? c : { default: c };
156
+ }
157
+ var _ = {
158
+ allow_display_name: !1,
159
+ allow_underscores: !1,
160
+ require_display_name: !1,
161
+ allow_utf8_local_part: !0,
162
+ require_tld: !0,
163
+ blacklisted_chars: "",
164
+ ignore_max_length: !1,
165
+ host_blacklist: [],
166
+ host_whitelist: []
167
+ }, g = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i, i = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i, v = /^[a-z\d]+$/, p = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i, W = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i, T = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i, X = 254;
168
+ function Z(c) {
169
+ var u = c.replace(/^"(.+)"$/, "$1");
170
+ if (!u.trim())
171
+ return !1;
172
+ var h = /[\.";<>]/.test(u);
173
+ if (h) {
174
+ if (u === c)
175
+ return !1;
176
+ var x = u.split('"').length === u.split('\\"').length;
177
+ if (!x)
178
+ return !1;
179
+ }
180
+ return !0;
181
+ }
182
+ function G(c, u) {
183
+ if ((0, s.default)(c), u = (0, r.default)(u, _), u.require_display_name || u.allow_display_name) {
184
+ var h = c.match(g);
185
+ if (h) {
186
+ var x = h[1];
187
+ if (c = c.replace(x, "").replace(/(^<|>$)/g, ""), x.endsWith(" ") && (x = x.slice(0, -1)), !Z(x))
188
+ return !1;
189
+ } else if (u.require_display_name)
190
+ return !1;
191
+ }
192
+ if (!u.ignore_max_length && c.length > X)
193
+ return !1;
194
+ var j = c.split("@"), m = j.pop(), y = m.toLowerCase();
195
+ if (u.host_blacklist.length > 0 && (0, o.default)(y, u.host_blacklist) || u.host_whitelist.length > 0 && !(0, o.default)(y, u.host_whitelist))
196
+ return !1;
197
+ var d = j.join("@");
198
+ if (u.domain_specific_validation && (y === "gmail.com" || y === "googlemail.com")) {
199
+ d = d.toLowerCase();
200
+ var M = d.split("+")[0];
201
+ if (!(0, n.default)(M.replace(/\./g, ""), {
202
+ min: 6,
203
+ max: 30
204
+ }))
205
+ return !1;
206
+ for (var A = M.split("."), I = 0; I < A.length; I++)
207
+ if (!v.test(A[I]))
208
+ return !1;
209
+ }
210
+ if (u.ignore_max_length === !1 && (!(0, n.default)(d, {
211
+ max: 64
212
+ }) || !(0, n.default)(m, {
213
+ max: 254
214
+ })))
215
+ return !1;
216
+ if (!(0, l.default)(m, {
217
+ require_tld: u.require_tld,
218
+ ignore_max_length: u.ignore_max_length,
219
+ allow_underscores: u.allow_underscores
220
+ })) {
221
+ if (!u.allow_ip_domain)
222
+ return !1;
223
+ if (!(0, a.default)(m)) {
224
+ if (!m.startsWith("[") || !m.endsWith("]"))
225
+ return !1;
226
+ var C = m.slice(1, -1);
227
+ if (C.length === 0 || !(0, a.default)(C))
228
+ return !1;
229
+ }
230
+ }
231
+ if (u.blacklisted_chars && d.search(new RegExp("[".concat(u.blacklisted_chars, "]+"), "g")) !== -1)
232
+ return !1;
233
+ if (d[0] === '"' && d[d.length - 1] === '"')
234
+ return d = d.slice(1, d.length - 1), u.allow_utf8_local_part ? T.test(d) : p.test(d);
235
+ for (var J = u.allow_utf8_local_part ? W : i, O = d.split("."), R = 0; R < O.length; R++)
236
+ if (!J.test(O[R]))
237
+ return !1;
238
+ return !0;
239
+ }
240
+ f.exports = t.default, f.exports.default = t.default;
241
+ })(b, b.exports)), b.exports;
242
+ }
243
+ var re = /* @__PURE__ */ te();
244
+ const ne = /* @__PURE__ */ K(re);
245
+ export {
246
+ ne as i
247
+ };
248
+ //# sourceMappingURL=isEmail-BfVspSvV.js.map