@getmicdrop/venue-calendar 4.3.101 → 4.3.103

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 (44) hide show
  1. package/dist/{CalendarFoundryView-Cg1ujlFh.js → CalendarFoundryView-DW_Huhjc.js} +2987 -2891
  2. package/dist/{CartView-CKipFgsW.js → CartView-CuVvBQnp.js} +1 -1
  3. package/dist/{Checkout-Dk2RtnG_.js → Checkout-2U6Xpy0Q.js} +2 -2
  4. package/dist/{Checkout-DEdXCYJd.js → Checkout-DEf1wHzJ.js} +1 -1
  5. package/dist/{CollectionView-B8UPI4kV.js → CollectionView-DnJ1z8ca.js} +2 -2
  6. package/dist/{Event-DfLoC6EH.js → Event-CxiPBZ9-.js} +1 -1
  7. package/dist/{EventPage-CoZo5tQV.js → EventPage-CWkYtMle.js} +2 -2
  8. package/dist/Input-xj8FOiHB.js +373 -0
  9. package/dist/{PasswordInput-DKC0I0aj.js → PasswordInput-B_473cLh.js} +4 -1
  10. package/dist/{PhoneInput-Bocgfs4B.js → PhoneInput-mQkaGqwZ.js} +219 -203
  11. package/dist/{SeriesPage-Dimz6hR9.js → SeriesPage-Bgvypgpt.js} +1 -1
  12. package/dist/Textarea-Cymhixzd.js +72 -0
  13. package/dist/{ViewTicketsEmbed-CrPWLrcK.js → ViewTicketsEmbed-xI99PvQN.js} +1 -1
  14. package/dist/{RequiredIndicator-CYcnRFsA.js → controlAria-CGb-KeRn.js} +14 -1
  15. package/dist/venue-calendar.es.js +12 -12
  16. package/dist/venue-calendar.iife.js +34 -34
  17. package/dist/venue-calendar.umd.js +54 -54
  18. package/package.json +2 -2
  19. package/dist/Input-DpmD_9St.js +0 -313
  20. package/dist/Textarea-DFTB_Y5u.js +0 -63
  21. /package/dist/locales/{4.3.101 → 4.3.103}/flow/de.js +0 -0
  22. /package/dist/locales/{4.3.101 → 4.3.103}/flow/es.js +0 -0
  23. /package/dist/locales/{4.3.101 → 4.3.103}/flow/fr.js +0 -0
  24. /package/dist/locales/{4.3.101 → 4.3.103}/flow/id.js +0 -0
  25. /package/dist/locales/{4.3.101 → 4.3.103}/flow/it.js +0 -0
  26. /package/dist/locales/{4.3.101 → 4.3.103}/flow/ja.js +0 -0
  27. /package/dist/locales/{4.3.101 → 4.3.103}/flow/ko.js +0 -0
  28. /package/dist/locales/{4.3.101 → 4.3.103}/flow/nl.js +0 -0
  29. /package/dist/locales/{4.3.101 → 4.3.103}/flow/pl.js +0 -0
  30. /package/dist/locales/{4.3.101 → 4.3.103}/flow/pt-br.js +0 -0
  31. /package/dist/locales/{4.3.101 → 4.3.103}/flow/tr.js +0 -0
  32. /package/dist/locales/{4.3.101 → 4.3.103}/flow/zh.js +0 -0
  33. /package/dist/locales/{4.3.101 → 4.3.103}/main/de.js +0 -0
  34. /package/dist/locales/{4.3.101 → 4.3.103}/main/es.js +0 -0
  35. /package/dist/locales/{4.3.101 → 4.3.103}/main/fr.js +0 -0
  36. /package/dist/locales/{4.3.101 → 4.3.103}/main/id.js +0 -0
  37. /package/dist/locales/{4.3.101 → 4.3.103}/main/it.js +0 -0
  38. /package/dist/locales/{4.3.101 → 4.3.103}/main/ja.js +0 -0
  39. /package/dist/locales/{4.3.101 → 4.3.103}/main/ko.js +0 -0
  40. /package/dist/locales/{4.3.101 → 4.3.103}/main/nl.js +0 -0
  41. /package/dist/locales/{4.3.101 → 4.3.103}/main/pl.js +0 -0
  42. /package/dist/locales/{4.3.101 → 4.3.103}/main/pt-br.js +0 -0
  43. /package/dist/locales/{4.3.101 → 4.3.103}/main/tr.js +0 -0
  44. /package/dist/locales/{4.3.101 → 4.3.103}/main/zh.js +0 -0
@@ -1,7 +1,7 @@
1
1
  import { g as e, m as t, p as n, v as r } from "./sizing-B7ixYndz.js";
2
2
  import { t as i } from "./ChevronDownOutline-D7YDiKBF.js";
3
3
  import { t as a } from "./CloseOutline-qpVa62mu.js";
4
- import { t as o } from "./Input-DpmD_9St.js";
4
+ import { t as o } from "./Input-xj8FOiHB.js";
5
5
  import { E as s, S as c, T as l, _ as u, c as d, f, g as p, m, o as h, p as g, r as _, s as v, u as y, v as b, w as x, x as S } from "./datetime-DWmAPk9U.js";
6
6
  import { r as C } from "./WarningCircleIcon-BlA4oF-K.js";
7
7
  import { t as w } from "./ArrowLeftIcon-C_zVqV6t.js";
@@ -1,6 +1,6 @@
1
1
  import { g as e, m as t, p as n } from "./sizing-B7ixYndz.js";
2
2
  import { n as r, r as i, t as a } from "./CloseIcon-BhTQvxHn.js";
3
- import { r as o } from "./Input-DpmD_9St.js";
3
+ import { r as o } from "./Input-xj8FOiHB.js";
4
4
  import { E as s, u as c, x as l } from "./datetime-DWmAPk9U.js";
5
5
  import { o as u, r as d } from "./ScarcityBadge-Bo7ILdv5.js";
6
6
  import { t as f } from "./TagIcon-78loB6Ff.js";
@@ -16,7 +16,7 @@ import { t as le } from "./event-transform-2AkuKTGX.js";
16
16
  import { t as ue } from "./venue-BBoZBuhu.js";
17
17
  import { b as de, g as fe, h as pe, l as me, r as he, v as ge } from "./utils-d34-d_aC.js";
18
18
  import { a as _e } from "./AddOnCard-DCKFn21s.js";
19
- import ve, { n as ye, t as be } from "./Checkout-DEdXCYJd.js";
19
+ import ve, { n as ye, t as be } from "./Checkout-DEf1wHzJ.js";
20
20
  import { n as xe } from "./buyerEmail-BfCq-gDt.js";
21
21
  import "svelte/internal/disclose-version";
22
22
  import * as N from "svelte/internal/client";
@@ -1,5 +1,5 @@
1
1
  import { g as e, m as t } from "./sizing-B7ixYndz.js";
2
- import { t as n } from "./Input-DpmD_9St.js";
2
+ import { t as n } from "./Input-xj8FOiHB.js";
3
3
  import { E as r, K as i, o as a, t as o, x as s } from "./datetime-DWmAPk9U.js";
4
4
  import { n as c } from "./WarningCircleIcon-BlA4oF-K.js";
5
5
  import { t as l } from "./CalendarIcon-BVyCicqG.js";
@@ -1,10 +1,10 @@
1
- import { t as e } from "./Event-DfLoC6EH.js";
1
+ import { t as e } from "./Event-CxiPBZ9-.js";
2
2
  import { g as t } from "./sizing-B7ixYndz.js";
3
3
  import { i as n } from "./RecommendationsRail-DeiRJBX-.js";
4
4
  import { t as r } from "./defaultLabels-CsRGNP7f.js";
5
5
  import { t as i } from "./Button-VUB2WJ88.js";
6
6
  import { E as a } from "./api-DAK-QNVZ.js";
7
- import { t as o } from "./PasswordInput-DKC0I0aj.js";
7
+ import { t as o } from "./PasswordInput-B_473cLh.js";
8
8
  import { t as s } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
9
9
  import { t as c } from "./__SKIP_PATHS__-C0ixDSSm.js";
10
10
  import { i as l, n as u, t as d } from "./gate-password-cache-oOcDm9Ki.js";
@@ -3,7 +3,7 @@ import { i as t } from "./Button-B58iYo_t.js";
3
3
  import { r as n, s as r } from "./keyboard-DhCcdIyh.js";
4
4
  import { g as i, h as a, m as o, p as s, v as c } from "./sizing-B7ixYndz.js";
5
5
  import { t as l } from "./ChevronDownOutline-D7YDiKBF.js";
6
- import { t as u } from "./Input-DpmD_9St.js";
6
+ import { t as u } from "./Input-xj8FOiHB.js";
7
7
  import { K as d, c as f, f as p, i as m, m as h, n as g, o as _, r as v, t as y, w as b, x, y as S } from "./datetime-DWmAPk9U.js";
8
8
  import { n as C, r as w } from "./WarningCircleIcon-BlA4oF-K.js";
9
9
  import { t as T } from "./CalendarIcon-BVyCicqG.js";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./Button-B58iYo_t.js";
2
2
  import { i as t } from "./keyboard-DhCcdIyh.js";
3
- import { t as n } from "./Event-DfLoC6EH.js";
3
+ import { t as n } from "./Event-CxiPBZ9-.js";
4
4
  import { d as r, g as i, m as a, v as o } from "./sizing-B7ixYndz.js";
5
- import { n as s, t as c } from "./Input-DpmD_9St.js";
5
+ import { n as s, t as c } from "./Input-xj8FOiHB.js";
6
6
  import { a as l, i as u, o as d, t as f } from "./createErrorGate.svelte-D6SJK51n.js";
7
7
  import { n as p } from "./WarningCircleIcon-BlA4oF-K.js";
8
8
  import { o as m } from "./href-C_j51KNN.js";
@@ -0,0 +1,373 @@
1
+ import { c as e, d as t, h as n, m as r, p as i, v as a } from "./sizing-B7ixYndz.js";
2
+ import { t as o } from "./ExclamationCircleOutline-D3XbhOwM.js";
3
+ import { b as s } from "./datetime-DWmAPk9U.js";
4
+ import { f as c, n as l, r as u } from "./z-index-CeYVHpUz.js";
5
+ import { n as ee, t as d } from "./controlAria-CGb-KeRn.js";
6
+ import "svelte/internal/disclose-version";
7
+ import * as f from "svelte/internal/client";
8
+ import { onDestroy as te } from "svelte";
9
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/EyeOutline.svelte
10
+ var p = f.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z\"></path><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 12a3 3 0 11-6 0 3 3 0 016 0z\"></path></svg>");
11
+ function ne(e, t) {
12
+ let n = f.prop(t, "size", 3, "24"), r = f.prop(t, "color", 3, "currentColor"), i = f.prop(t, "class", 3, "");
13
+ var a = p();
14
+ f.template_effect(() => {
15
+ f.set_class(a, 0, f.clsx(i())), f.set_attribute(a, "width", n()), f.set_attribute(a, "height", n()), f.set_attribute(a, "stroke", r());
16
+ }), f.append(e, a);
17
+ }
18
+ //#endregion
19
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/EyeSlashOutline.svelte
20
+ var m = f.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88\"></path></svg>");
21
+ function re(e, t) {
22
+ let n = f.prop(t, "size", 3, "24"), r = f.prop(t, "color", 3, "currentColor"), i = f.prop(t, "class", 3, "");
23
+ var a = m();
24
+ f.template_effect(() => {
25
+ f.set_class(a, 0, f.clsx(i())), f.set_attribute(a, "width", n()), f.set_attribute(a, "height", n()), f.set_attribute(a, "stroke", r());
26
+ }), f.append(e, a);
27
+ }
28
+ //#endregion
29
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/CloseCircleOutline.svelte
30
+ var h = f.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z\"></path></svg>");
31
+ function ie(e, t) {
32
+ let n = f.prop(t, "size", 3, "24"), r = f.prop(t, "color", 3, "currentColor"), i = f.prop(t, "class", 3, "");
33
+ var a = h();
34
+ f.template_effect(() => {
35
+ f.set_class(a, 0, f.clsx(i())), f.set_attribute(a, "width", n()), f.set_attribute(a, "height", n()), f.set_attribute(a, "stroke", r());
36
+ }), f.append(e, a);
37
+ }
38
+ //#endregion
39
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/phoneShape.js
40
+ function ae(e) {
41
+ if (!e) return "";
42
+ if (e.startsWith("+")) return e;
43
+ let t = e.replace(/\D/g, "");
44
+ return t.length === 10 ? `+1${t}` : t.length === 11 && t.startsWith("1") ? `+${t}` : e;
45
+ }
46
+ var g = "310", _ = 7, oe = 10;
47
+ function se(e) {
48
+ let t = String(e ?? "").replace(/\D/g, "").slice(0, oe);
49
+ if (!t) return "";
50
+ if (t[0] === "1") {
51
+ let e = t.slice(1);
52
+ return e ? e[0] === "0" || e[0] === "1" ? t : `1 ${v(e)}` : "1";
53
+ }
54
+ return t[0] === "0" ? t : v(t);
55
+ }
56
+ function v(e) {
57
+ return e.startsWith(g) && e.length <= _ ? e.length === 3 ? g : `${g}-${e.slice(3)}` : e.length <= 2 ? e : e.length === 3 ? `(${e})` : e.length <= 6 ? `(${e.slice(0, 3)}) ${e.slice(3)}` : `(${e.slice(0, 3)}) ${e.slice(3, 6)}-${e.slice(6)}`;
58
+ }
59
+ //#endregion
60
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Input/Input.svelte
61
+ var ce = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.required.disabled.optional.icon.buttonIcon.buttonText.maxlength.minlength.type.placeholder.label.id.name.class.size.textareaSize.errorText.color.helperText.helperIcon.hintText.hintIcon.contentFloat.readonly.tabindex.controlled.onButtonClick.onbuttonclick.value.autocomplete.skipPasswordManagers.autofocus.showPasswordToggle.animateFocus.statusText.statusType.buttonDisabled.inputmode.enterkeyhint.autocapitalize.autocorrect.instantSearch.debounceMs.minSearchChars.showClearButton.onsearch.onfocus.onblur.onkeydown.oninputchange.wiring.leftIcon.rightIcon.prefix.prefixInline.transform.labels.data-testid".split(".")), y = f.from_html("<span> </span>"), le = f.from_html("<div class=\"flex justify-start items-center gap-1\"><label> <!></label> <!> <!></div>"), ue = f.from_html("<textarea rows=\"4\"></textarea>"), de = f.from_html("<div><input/> <button type=\"button\" class=\"flex items-center justify-center px-3 tone-muted focus:outline-none\" tabindex=\"-1\"><!></button></div>"), fe = f.from_html("<div class=\"absolute left-3 inset-y-0 flex items-center gap-1.5 tone-muted z-sticky pointer-events-none\"><!> <!></div>"), pe = f.from_html("<div class=\"absolute right-3 inset-y-0 flex items-center tone-muted z-sticky pointer-events-none\"><!></div>"), me = f.from_html("<button type=\"button\" class=\"absolute right-2 top-1/2 -translate-y-1/2 flex items-center justify-center p-1 tone-muted\" tabindex=\"-1\"><!></button>"), he = f.from_html("<img class=\"w-5 h-5\"/>"), ge = f.from_html("<span class=\"type-label\"> </span>"), _e = f.from_html("<button type=\"button\"><!> <!></button>"), ve = f.from_html("<img class=\"absolute inset-y-0 right-0 w-5 h-5 mr-3 top-1/2 transform -translate-y-1/2\"/>"), ye = f.from_html("<div class=\"relative flex items-center w-full\"><!> <!> <input/> <!> <!></div>"), be = f.from_html("<div class=\"flex items-start gap-1.5 mt-2\" role=\"alert\" aria-live=\"assertive\"><!> <p> </p></div>"), xe = f.from_html("<img class=\"w-4 h-4 mr-2\"/>"), Se = f.from_html("<div><!> <span> </span></div>"), Ce = f.from_html("<div><!> <div class=\"relative w-full\"><!> <!></div></div>");
62
+ function b(p, m) {
63
+ let h = f.props_id();
64
+ f.push(m, !0);
65
+ let ae = {
66
+ hidePassword: "Hide password",
67
+ showPassword: "Show password",
68
+ clearInput: "Clear input",
69
+ buttonIconAlt: "Button Icon",
70
+ inputIconAlt: "Input icon",
71
+ helperIconAlt: "Helper icon",
72
+ optional: "(optional)"
73
+ }, g = f.prop(m, "required", 3, !1), _ = f.prop(m, "disabled", 3, !1), oe = f.prop(m, "optional", 3, !1), v = f.prop(m, "icon", 3, null), b = f.prop(m, "buttonIcon", 3, null), x = f.prop(m, "buttonText", 3, null), S = f.prop(m, "maxlength", 3, null), C = f.prop(m, "minlength", 3, null), w = f.prop(m, "type", 3, "text"), T = f.prop(m, "placeholder", 3, ""), we = f.prop(m, "label", 3, ""), Te = f.prop(m, "id", 3, h), E = f.prop(m, "name", 3, ""), Ee = f.prop(m, "class", 3, ""), De = f.prop(m, "size", 3, "md"), Oe = f.prop(m, "textareaSize", 3, ""), D = f.prop(m, "errorText", 3, ""), ke = f.prop(m, "color", 3, "base"), O = f.prop(m, "helperText", 3, ""), Ae = f.prop(m, "helperIcon", 3, ""), k = f.prop(m, "hintText", 3, ""), je = f.prop(m, "hintIcon", 3, ""), Me = f.prop(m, "contentFloat", 3, "left"), A = f.prop(m, "readonly", 3, !1), Ne = f.prop(m, "controlled", 3, !1), Pe = f.prop(m, "onButtonClick", 3, null), Fe = f.prop(m, "onbuttonclick", 3, null), j = f.prop(m, "value", 15, ""), Ie = f.prop(m, "autocomplete", 3, null), M = f.prop(m, "skipPasswordManagers", 3, !1), Le = f.prop(m, "autofocus", 3, !1), Re = f.prop(m, "showPasswordToggle", 3, !0), ze = f.prop(m, "animateFocus", 3, !0), Be = f.prop(m, "statusText", 3, ""), Ve = f.prop(m, "statusType", 3, ""), He = f.prop(m, "buttonDisabled", 3, !1), Ue = f.prop(m, "inputmode", 3, null), N = f.prop(m, "instantSearch", 3, !1), We = f.prop(m, "debounceMs", 3, 250), Ge = f.prop(m, "minSearchChars", 3, 2), P = f.prop(m, "showClearButton", 3, !1), F = f.prop(m, "prefix", 3, ""), I = f.prop(m, "prefixInline", 3, !1), Ke = f.prop(m, "labels", 19, () => ({})), qe = f.rest_props(m, ce), L = f.derived(() => Te() || h);
74
+ Pe() && !Fe() && n("Input: prop \"onButtonClick\" is deprecated. Use \"onbuttonclick\" instead.");
75
+ let Je = f.derived(() => Fe() ?? Pe()), R = f.derived(() => a(ae, Ke())), z = f.state(""), B = f.state(null), V, Ye = f.derived(() => Ue() || Ze(w())), Xe = f.derived(() => M() ? "off" : Ie() ?? null);
76
+ function Ze(e) {
77
+ switch (e) {
78
+ case "phoneNumber":
79
+ case "creditCardNumber": return "tel";
80
+ case "email": return "email";
81
+ default: return null;
82
+ }
83
+ }
84
+ f.user_effect(() => {
85
+ j() !== f.get(z) && f.set(z, j(), !0);
86
+ });
87
+ function Qe() {
88
+ f.get(B) && f.get(B).value !== f.get(z) && (f.set(z, f.get(B).value, !0), j(f.get(z)));
89
+ }
90
+ let H = f.state(!1), U = f.derived(() => ke() === "red" || !!D()), W = f.derived(() => `${f.get(L)}-error`), G = f.derived(() => `${f.get(L)}-prefix`), $e = f.derived(() => [F() ? f.get(G) : "", D() ? f.get(W) : ""].filter(Boolean).join(" ") || void 0), et = f.derived(() => d({
91
+ invalid: f.get(U),
92
+ required: g(),
93
+ describedby: D() ? f.get(W) : void 0
94
+ }, m.wiring)), tt = f.derived(() => d({
95
+ invalid: f.get(U),
96
+ required: g(),
97
+ describedby: f.get($e)
98
+ }, m.wiring)), K = f.derived(() => !!F() && I()), nt = f.derived(() => !!F() && !I()), rt = f.derived(() => m.leftIcon && f.get(K) ? "pl-14" : m.leftIcon ? "pl-10" : f.get(K) ? "pl-8" : ""), it = f.derived(() => Re() && f.get(H) ? "text" : w()), q = f.derived(() => ze() && !_() && !A()), at = f.derived(() => e[De()] || e.md), ot = () => {
99
+ f.set(H, !f.get(H));
100
+ }, J = (e) => {
101
+ let t = e.target, n = t.value;
102
+ if (w() === "creditCardNumber") {
103
+ let e = n.replaceAll(/\D/g, "");
104
+ n = s(e), t.value = n;
105
+ }
106
+ if (w() === "phoneNumber" && (n = se(n.replaceAll(/\D/g, "").slice(0, 10)), t.value = n), w() === "username") {
107
+ let e = n.trim(), r = e.match(/(?:https?:\/\/)?(?:www\.)?(?:instagram\.com|twitter\.com|x\.com|facebook\.com|fb\.com|tiktok\.com|linkedin\.com)\/(?:@)?([A-Za-z0-9._]+)\/?/i);
108
+ r && (e = r[1]), e = e.replace(/^@+/, ""), e = e.replaceAll(/[^A-Za-z0-9._]/g, ""), n = e, t.value = n;
109
+ }
110
+ if (m.transform) {
111
+ let e = n;
112
+ if (n = m.transform(e), e !== n) {
113
+ let r = t.selectionStart;
114
+ if (t.value = n, r !== null && r < e.length) {
115
+ let i = Math.min(m.transform(e.slice(0, r)).length, n.length);
116
+ try {
117
+ t.setSelectionRange(i, i);
118
+ } catch {}
119
+ }
120
+ }
121
+ }
122
+ if (f.set(z, n, !0), j(n), m.oninputchange?.(n), N()) {
123
+ if (clearTimeout(V), n.length === 0) {
124
+ m.onsearch?.({ query: "" });
125
+ return;
126
+ }
127
+ n.length >= Ge() && (V = setTimeout(() => {
128
+ m.onsearch?.({ query: n });
129
+ }, We()));
130
+ }
131
+ };
132
+ function st() {
133
+ f.set(z, ""), j(""), clearTimeout(V), N() && m.onsearch?.({ query: "" }), f.get(B) && f.get(B).focus();
134
+ }
135
+ function ct(e) {
136
+ m.onkeydown?.(e), !e.defaultPrevented && N() && (e.key === "Enter" && (clearTimeout(V), m.onsearch?.({ query: String(f.get(z) ?? "") })), e.key === "Escape" && st());
137
+ }
138
+ te(() => {
139
+ clearTimeout(V);
140
+ });
141
+ let Y = () => {
142
+ m.onblur?.();
143
+ }, X = () => {
144
+ m.onfocus?.();
145
+ }, Z = () => {
146
+ switch (Me()) {
147
+ case "center": return "text-center";
148
+ case "right": return "text-right";
149
+ default: return "text-left";
150
+ }
151
+ }, lt = () => {
152
+ switch (Oe()) {
153
+ case "sm": return "h-24";
154
+ case "md": return "h-36";
155
+ case "lg": return "h-44";
156
+ default: return "";
157
+ }
158
+ }, ut = () => {
159
+ typeof f.get(Je) == "function" && f.get(Je)(String(f.get(z) ?? ""));
160
+ };
161
+ var Q = Ce();
162
+ f.attribute_effect(Q, () => ({
163
+ class: `flex flex-col gap-1 ${Ee() ?? ""}`,
164
+ ...qe
165
+ }));
166
+ var dt = f.child(Q), ft = (e) => {
167
+ var n = le(), i = f.child(n), a = f.child(i, !0), o = f.sibling(a);
168
+ ee(o, { get required() {
169
+ return g();
170
+ } }), f.reset(i);
171
+ var s = f.sibling(i, 2), c = (e) => {
172
+ var t = y(), n = f.child(t);
173
+ f.reset(t), f.template_effect(() => {
174
+ f.set_class(t, 1, `type-label ${Ve() === "success" ? "text-accent-success" : Ve() === "error" ? "text-accent-danger" : ""}`), f.set_text(n, `(${Be() ?? ""})`);
175
+ }), f.append(e, t);
176
+ };
177
+ f.if(s, (e) => {
178
+ Be() && e(c);
179
+ });
180
+ var l = f.sibling(s, 2), u = (e) => {
181
+ var t = y(), n = f.child(t, !0);
182
+ f.reset(t), f.template_effect(() => {
183
+ f.set_class(t, 1, f.clsx(r.smMuted)), f.set_text(n, f.get(R).optional);
184
+ }), f.append(e, t);
185
+ };
186
+ f.if(l, (e) => {
187
+ oe() && e(u);
188
+ }), f.reset(n), f.template_effect(() => {
189
+ f.set_attribute(i, "for", f.get(L)), f.set_class(i, 1, `${r.caption} tone-secondary ${t.tight} sm:${t.none} ${f.get(U) ? "text-status-error-text" : ""}`), f.set_text(a, we());
190
+ }), f.append(e, n);
191
+ };
192
+ f.if(dt, (e) => {
193
+ we() && e(ft);
194
+ });
195
+ var $ = f.sibling(dt, 2), pt = f.child($), mt = (e) => {
196
+ var t = ue();
197
+ f.remove_textarea_child(t), t.required = !1, f.template_effect((e, n) => {
198
+ f.set_attribute(t, "id", f.get(L)), f.set_attribute(t, "name", E()), f.set_attribute(t, "placeholder", T()), f.set_value(t, f.get(z)), f.set_attribute(t, "maxlength", S()), f.set_attribute(t, "minlength", C()), f.set_class(t, 1, `${r.sm ?? ""} w-full px-3 py-2 bg-bg-secondary border rounded-lg ${i.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-none focus:ring-4 focus:ring-focus-ring resize-y ${f.get(U) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${e ?? ""} ${n ?? ""} ${f.get(q) ? "focus:scale-grow" : ""}`), t.disabled = _(), t.readOnly = A(), f.set_attribute(t, "tabindex", m.tabindex), f.set_attribute(t, "aria-required", g()), f.set_attribute(t, "aria-invalid", f.get(U)), f.set_attribute(t, "aria-describedby", D() ? f.get(W) : void 0), f.set_attribute(t, "data-testid", m["data-testid"]);
199
+ }, [() => Z(), () => lt()]), f.delegated("input", t, J), f.event("blur", t, Y), f.event("focus", t, X), f.append(e, t);
200
+ }, ht = (e) => {
201
+ var t = de(), n = f.child(t);
202
+ f.attribute_effect(n, (e) => ({
203
+ id: f.get(L),
204
+ type: f.get(it),
205
+ name: E(),
206
+ placeholder: T(),
207
+ value: f.get(z),
208
+ oninput: J,
209
+ onchange: Qe,
210
+ onblur: Y,
211
+ onfocus: X,
212
+ maxlength: S(),
213
+ minlength: C(),
214
+ class: `password-input-inner ${r.sm ?? ""} flex-1 w-full ${f.get(at) ?? ""} bg-transparent border-0 ${i.emphasis ?? ""} placeholder-muted-foreground focus:outline-none focus:ring-0 ${e ?? ""}`,
215
+ required: !1,
216
+ disabled: _(),
217
+ readonly: A(),
218
+ tabindex: m.tabindex,
219
+ ...f.get(et),
220
+ "data-testid": m["data-testid"],
221
+ autocomplete: f.get(Xe),
222
+ "data-1p-ignore": M() ? "" : void 0,
223
+ "data-lpignore": M() ? "true" : void 0,
224
+ "data-bwignore": M() ? "true" : void 0,
225
+ "data-form-type": M() ? "other" : void 0,
226
+ autofocus: Le(),
227
+ inputmode: f.get(Ye),
228
+ enterkeyhint: m.enterkeyhint,
229
+ autocapitalize: m.autocapitalize,
230
+ autocorrect: m.autocorrect
231
+ }), [() => Z()], void 0, void 0, void 0, !0), f.bind_this(n, (e) => f.set(B, e), () => f.get(B));
232
+ var a = f.sibling(n, 2), o = f.child(a), s = (e) => {
233
+ re(e, { class: "w-5 h-5" });
234
+ }, c = (e) => {
235
+ ne(e, { class: "w-5 h-5" });
236
+ };
237
+ f.if(o, (e) => {
238
+ f.get(H) ? e(s) : e(c, -1);
239
+ }), f.reset(a), f.reset(t), f.template_effect(() => {
240
+ f.set_class(t, 1, `flex items-center w-full bg-bg-secondary border rounded-lg transition-all outline-none focus-within:ring-4 focus-within:ring-focus-ring ${f.get(U) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus-within:border-interactive-border"} ${f.get(q) ? "focus-within:scale-grow" : ""} ${_() ? "opacity-50 cursor-not-allowed" : ""}`), f.set_attribute(a, "aria-label", f.get(H) ? f.get(R).hidePassword : f.get(R).showPassword);
241
+ }), f.delegated("click", a, ot), f.append(e, t);
242
+ }, gt = (e) => {
243
+ var t = ye(), n = f.child(t), a = (e) => {
244
+ var t = y(), n = f.child(t, !0);
245
+ f.reset(t), f.template_effect(() => {
246
+ f.set_attribute(t, "id", f.get(G)), f.set_attribute(t, "data-testid", m["data-testid"] ? `${m["data-testid"]}-prefix` : void 0), f.set_class(t, 1, `${r.body ?? ""} shrink-0 self-stretch flex items-center px-3 bg-bg-tertiary tone-muted border border-r-0 rounded-l-lg select-none ${f.get(U) ? "border-status-error-border" : "border-stroke-primary"} ${_() ? "opacity-50" : ""}`), f.set_text(n, F());
247
+ }), f.append(e, t);
248
+ };
249
+ f.if(n, (e) => {
250
+ F() && !f.get(K) && e(a);
251
+ });
252
+ var o = f.sibling(n, 2), s = (e) => {
253
+ var t = fe(), n = f.child(t);
254
+ f.snippet(n, () => m.leftIcon ?? f.noop);
255
+ var i = f.sibling(n, 2), a = (e) => {
256
+ var t = y(), n = f.child(t, !0);
257
+ f.reset(t), f.template_effect(() => {
258
+ f.set_attribute(t, "id", f.get(G)), f.set_attribute(t, "data-testid", m["data-testid"] ? `${m["data-testid"]}-prefix` : void 0), f.set_class(t, 1, `${r.body ?? ""} select-none`), f.set_text(n, F());
259
+ }), f.append(e, t);
260
+ };
261
+ f.if(i, (e) => {
262
+ f.get(K) && e(a);
263
+ }), f.reset(t), f.append(e, t);
264
+ };
265
+ f.if(o, (e) => {
266
+ (m.leftIcon || f.get(K)) && e(s);
267
+ });
268
+ var c = f.sibling(o, 2);
269
+ f.attribute_effect(c, (e) => ({
270
+ id: f.get(L),
271
+ type: f.get(it),
272
+ name: E(),
273
+ placeholder: T(),
274
+ value: f.get(z),
275
+ oninput: J,
276
+ onchange: Qe,
277
+ onblur: Y,
278
+ onfocus: X,
279
+ onkeydown: ct,
280
+ maxlength: S(),
281
+ minlength: C(),
282
+ class: `${r.body ?? ""} w-full ${f.get(nt) ? "min-w-0 " : ""}${f.get(at) ?? ""} bg-bg-secondary border ${f.get(nt) ? "rounded-r-lg" : "rounded-lg"} ${i.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-none focus:ring-4 focus:ring-focus-ring ${f.get(U) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${v() || m.rightIcon || P() && f.get(z) ? "pr-10" : ""} ${f.get(rt) ?? ""} ${e ?? ""} ${f.get(q) && !F() && !I() ? "focus:scale-grow" : ""} ${_() ? "opacity-50 cursor-not-allowed" : ""}`,
283
+ required: !1,
284
+ disabled: _(),
285
+ readonly: A(),
286
+ tabindex: m.tabindex,
287
+ ...f.get(tt),
288
+ "data-testid": m["data-testid"],
289
+ autocomplete: f.get(Xe),
290
+ "data-1p-ignore": M() ? "" : void 0,
291
+ "data-lpignore": M() ? "true" : void 0,
292
+ "data-bwignore": M() ? "true" : void 0,
293
+ "data-form-type": M() ? "other" : void 0,
294
+ autofocus: Le(),
295
+ inputmode: f.get(Ye),
296
+ enterkeyhint: m.enterkeyhint,
297
+ autocapitalize: m.autocapitalize,
298
+ autocorrect: m.autocorrect
299
+ }), [() => Z()], void 0, void 0, void 0, !0), f.bind_this(c, (e) => f.set(B, e), () => f.get(B));
300
+ var l = f.sibling(c, 2), u = (e) => {
301
+ var t = pe(), n = f.child(t);
302
+ f.snippet(n, () => m.rightIcon), f.reset(t), f.append(e, t);
303
+ }, ee = (e) => {
304
+ var t = me();
305
+ ie(f.child(t), { class: "w-4 h-4" }), f.reset(t), f.template_effect(() => f.set_attribute(t, "aria-label", f.get(R).clearInput)), f.delegated("click", t, st), f.append(e, t);
306
+ }, d = (e) => {
307
+ var t = _e(), n = f.child(t), r = (e) => {
308
+ var t = he();
309
+ f.template_effect(() => {
310
+ f.set_attribute(t, "src", b()), f.set_attribute(t, "alt", f.get(R).buttonIconAlt);
311
+ }), f.append(e, t);
312
+ };
313
+ f.if(n, (e) => {
314
+ b() && e(r);
315
+ });
316
+ var i = f.sibling(n, 2), a = (e) => {
317
+ var t = ge(), n = f.child(t, !0);
318
+ f.reset(t), f.template_effect(() => f.set_text(n, x())), f.append(e, t);
319
+ };
320
+ f.if(i, (e) => {
321
+ x() && e(a);
322
+ }), f.reset(t), f.template_effect(() => {
323
+ t.disabled = He(), f.set_class(t, 1, `absolute inset-y-0 right-0 gap-1 flex items-center justify-center px-4 text-brand-primary hover:text-brand-primary disabled:opacity-50 disabled:cursor-not-allowed ${O() || k() || D() ? "mb-7" : ""}`);
324
+ }), f.delegated("click", t, ut), f.append(e, t);
325
+ };
326
+ f.if(l, (e) => {
327
+ m.rightIcon ? e(u) : P() && f.get(z) ? e(ee, 1) : Ne() && (b() || x()) && e(d, 2);
328
+ });
329
+ var te = f.sibling(l, 2), p = (e) => {
330
+ var t = ve();
331
+ f.template_effect(() => {
332
+ f.set_attribute(t, "src", v()), f.set_attribute(t, "alt", f.get(R).inputIconAlt);
333
+ }), f.append(e, t);
334
+ };
335
+ f.if(te, (e) => {
336
+ v() && w() !== "textarea" && !m.rightIcon && !(P() && f.get(z)) && e(p);
337
+ }), f.reset(t), f.append(e, t);
338
+ };
339
+ f.if(pt, (e) => {
340
+ w() === "textarea" ? e(mt) : w() === "password" && Re() ? e(ht, 1) : e(gt, -1);
341
+ });
342
+ var _t = f.sibling(pt, 2), vt = (e) => {
343
+ var t = be(), n = f.child(t);
344
+ o(n, { class: "w-4 h-4 shrink-0 text-accent-danger mt-0.5" });
345
+ var i = f.sibling(n, 2), a = f.child(i, !0);
346
+ f.reset(i), f.reset(t), f.template_effect(() => {
347
+ f.set_attribute(t, "id", f.get(W)), f.set_class(i, 1, f.clsx(r.error)), f.set_text(a, D());
348
+ }), f.transition(3, t, () => c, () => ({
349
+ duration: l.normal,
350
+ easing: u.out
351
+ })), f.append(e, t);
352
+ }, yt = (e) => {
353
+ var t = Se(), n = f.child(t), i = (e) => {
354
+ var t = xe();
355
+ f.template_effect(() => {
356
+ f.set_attribute(t, "src", Ae() || je()), f.set_attribute(t, "alt", f.get(R).helperIconAlt);
357
+ }), f.append(e, t);
358
+ };
359
+ f.if(n, (e) => {
360
+ (Ae() || je()) && e(i);
361
+ });
362
+ var a = f.sibling(n, 2), o = f.child(a, !0);
363
+ f.reset(a), f.reset(t), f.template_effect(() => {
364
+ f.set_class(t, 1, `mt-2 flex items-center ${r.xsMuted} opacity-65`), f.set_text(o, O() || k());
365
+ }), f.append(e, t);
366
+ };
367
+ f.if(_t, (e) => {
368
+ D() ? e(vt) : (O() || k()) && e(yt, 1);
369
+ }), f.reset($), f.reset(Q), f.append(p, Q), f.pop();
370
+ }
371
+ f.delegate(["input", "click"]);
372
+ //#endregion
373
+ export { ae as n, ie as r, b as t };
@@ -1,5 +1,5 @@
1
1
  import { v as e } from "./sizing-B7ixYndz.js";
2
- import { t } from "./Input-DpmD_9St.js";
2
+ import { t } from "./Input-xj8FOiHB.js";
3
3
  import { f as n, n as r, r as i } from "./z-index-CeYVHpUz.js";
4
4
  import { t as a } from "./lazyOnce-CCfEO1xG.js";
5
5
  import "svelte/internal/disclose-version";
@@ -151,6 +151,9 @@ function p(n, r) {
151
151
  get "data-testid"() {
152
152
  return r["data-testid"];
153
153
  },
154
+ get wiring() {
155
+ return r.wiring;
156
+ },
154
157
  get value() {
155
158
  return a();
156
159
  },