@getmicdrop/venue-calendar 4.3.40 → 4.3.42

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 (46) hide show
  1. package/dist/{CalendarFoundryView-Bv0EsOwe.js → CalendarFoundryView-zdycKvQg.js} +2709 -2655
  2. package/dist/{CartView-CYJMgWS2.js → CartView-BqskyKSN.js} +212 -211
  3. package/dist/{Checkout-D6GEwsKQ.js → Checkout-BHRHU4AS.js} +4 -4
  4. package/dist/{Checkout-C8BrLSYw.js → Checkout-DuvjKPyz.js} +1 -1
  5. package/dist/{CollectionView-BZuyx4kC.js → CollectionView-DwLFFpwW.js} +3 -3
  6. package/dist/{Event-CqQ0yP-h.js → Event-BIqxB0kY.js} +167 -155
  7. package/dist/{EventPage-CMH2gocB.js → EventPage-BAKtJTkf.js} +78 -76
  8. package/dist/Input-DMfgmBL7.js +301 -0
  9. package/dist/{PasswordInput-yTDvehkW.js → PasswordInput-BrgHYGYw.js} +1 -1
  10. package/dist/{RecommendationsRail-CN_dtLWp.js → RecommendationsRail-Dmq3C4UQ.js} +5 -4
  11. package/dist/{SeriesPage-B1bK_MeR.js → SeriesPage-lA7Y1MCK.js} +2 -2
  12. package/dist/{Success-D8dgqzkd.js → Success-DxJkVp0V.js} +2 -2
  13. package/dist/{event-Dew6DCL7.js → event-DY17tQ0r.js} +21 -48
  14. package/dist/{event-transform-BpB65AAX.js → event-transform-BhldGx8B.js} +21 -20
  15. package/dist/imageUrl-Bata3II2.js +29 -0
  16. package/dist/{utils-CG0ZJ6gb.js → utils-D3cl-uGb.js} +1 -1
  17. package/dist/venue-calendar.css +1 -1
  18. package/dist/venue-calendar.es.js +15 -15
  19. package/dist/venue-calendar.iife.js +59 -59
  20. package/dist/venue-calendar.umd.js +51 -51
  21. package/package.json +2 -2
  22. package/dist/Input-Ck0Q7LwW.js +0 -292
  23. /package/dist/locales/{4.3.40 → 4.3.42}/flow/de.js +0 -0
  24. /package/dist/locales/{4.3.40 → 4.3.42}/flow/es.js +0 -0
  25. /package/dist/locales/{4.3.40 → 4.3.42}/flow/fr.js +0 -0
  26. /package/dist/locales/{4.3.40 → 4.3.42}/flow/id.js +0 -0
  27. /package/dist/locales/{4.3.40 → 4.3.42}/flow/it.js +0 -0
  28. /package/dist/locales/{4.3.40 → 4.3.42}/flow/ja.js +0 -0
  29. /package/dist/locales/{4.3.40 → 4.3.42}/flow/ko.js +0 -0
  30. /package/dist/locales/{4.3.40 → 4.3.42}/flow/nl.js +0 -0
  31. /package/dist/locales/{4.3.40 → 4.3.42}/flow/pl.js +0 -0
  32. /package/dist/locales/{4.3.40 → 4.3.42}/flow/pt-br.js +0 -0
  33. /package/dist/locales/{4.3.40 → 4.3.42}/flow/tr.js +0 -0
  34. /package/dist/locales/{4.3.40 → 4.3.42}/flow/zh.js +0 -0
  35. /package/dist/locales/{4.3.40 → 4.3.42}/main/de.js +0 -0
  36. /package/dist/locales/{4.3.40 → 4.3.42}/main/es.js +0 -0
  37. /package/dist/locales/{4.3.40 → 4.3.42}/main/fr.js +0 -0
  38. /package/dist/locales/{4.3.40 → 4.3.42}/main/id.js +0 -0
  39. /package/dist/locales/{4.3.40 → 4.3.42}/main/it.js +0 -0
  40. /package/dist/locales/{4.3.40 → 4.3.42}/main/ja.js +0 -0
  41. /package/dist/locales/{4.3.40 → 4.3.42}/main/ko.js +0 -0
  42. /package/dist/locales/{4.3.40 → 4.3.42}/main/nl.js +0 -0
  43. /package/dist/locales/{4.3.40 → 4.3.42}/main/pl.js +0 -0
  44. /package/dist/locales/{4.3.40 → 4.3.42}/main/pt-br.js +0 -0
  45. /package/dist/locales/{4.3.40 → 4.3.42}/main/tr.js +0 -0
  46. /package/dist/locales/{4.3.40 → 4.3.42}/main/zh.js +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@getmicdrop/venue-calendar",
3
3
  "_version_comment": "4.1.55 was the last PUBLISHED version, and the tree carried 36 commits npm's 4.1.55 does not have — including the gate-password security fix and four money fixes. A filename must never reuse a version npm has taken (jsDelivr/unpkg cache the FIRST bytes they see under `@4.1.55` forever, so republishing that number ships the old widget to every venue that pinned it). Bumped to 4.2.0 here, BEFORE anything is built for publish. `npm run release:preflight` refuses to proceed when this number already exists in the registry.",
4
- "version": "4.3.40",
4
+ "version": "4.3.42",
5
5
  "description": "A customizable Svelte calendar component for displaying comedy events",
6
6
  "type": "module",
7
7
  "types": "./dist/types/index.d.ts",
@@ -154,7 +154,7 @@
154
154
  "_devDependencies_pin_comment": "Three EXACT pins in here are load-bearing and must not be re-caretted by a dependency bot. (1) `@getmicdrop/svelte-components` — the ES/UMD/IIFE builds do NOT externalize SC, so it is COMPILED INTO every shipped artifact. RESTORED TO AN EXACT PIN 2026-08-23, having drifted back to a caret at some point between 6.24.311 and 6.24.316 — exactly the re-caretting this note warns about, which is worth knowing recurs. Under a caretted range like `^6.24.311` the SC version a venue's browser executes is whatever the range floats to on the publish machine at publish time, which is not recorded anywhere and is not reproducible after the fact; the `overrides` block below cannot help (it only ever covered esbuild, and consumers ignore a dependency's overrides entirely). Pinned exact so the artifact and the manifest agree, and vite.config.lib.js stamps the resolved version into the bundle as __VC_SC_VERSION__ so a venue's devtools can answer 'which SC is this?'. (2) `svelte` — the compiler whose private internal/client calls the pre-compiled dist binds to. `^5.56.9` let the compiler move under a peer range that stayed still; see _peerDependencies_comment. (3) `@stripe/stripe-js` in dependencies — see its own note there.",
155
155
  "devDependencies": {
156
156
  "@eslint/js": "^10.0.1",
157
- "@getmicdrop/svelte-components": "6.24.366",
157
+ "@getmicdrop/svelte-components": "6.24.368",
158
158
  "@playwright/test": "^1.60.0",
159
159
  "@size-limit/file": "^13.0.3",
160
160
  "@sveltejs/adapter-auto": "^7.0.1",
@@ -1,292 +0,0 @@
1
- import { C as e, O as t, S as n, T as r, _ as i, b as a } from "./Button-klwKgfhG.js";
2
- import { b as o } from "./scarcity-CJ6IsR7f.js";
3
- import { d as s, n as c, r as l } from "./z-index-Bo0dqmiq.js";
4
- import { t as u } from "./RequiredIndicator-CYcnRFsA.js";
5
- import "svelte/internal/disclose-version";
6
- import * as d from "svelte/internal/client";
7
- import { onDestroy as f } from "svelte";
8
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/EyeOutline.svelte
9
- var p = d.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>");
10
- function ee(e, t) {
11
- let n = d.prop(t, "size", 3, "24"), r = d.prop(t, "color", 3, "currentColor"), i = d.prop(t, "class", 3, "");
12
- var a = p();
13
- d.template_effect(() => {
14
- d.set_class(a, 0, d.clsx(i())), d.set_attribute(a, "width", n()), d.set_attribute(a, "height", n()), d.set_attribute(a, "stroke", r());
15
- }), d.append(e, a);
16
- }
17
- //#endregion
18
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/EyeSlashOutline.svelte
19
- var m = d.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>");
20
- function te(e, t) {
21
- let n = d.prop(t, "size", 3, "24"), r = d.prop(t, "color", 3, "currentColor"), i = d.prop(t, "class", 3, "");
22
- var a = m();
23
- d.template_effect(() => {
24
- d.set_class(a, 0, d.clsx(i())), d.set_attribute(a, "width", n()), d.set_attribute(a, "height", n()), d.set_attribute(a, "stroke", r());
25
- }), d.append(e, a);
26
- }
27
- //#endregion
28
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/CloseCircleOutline.svelte
29
- var h = d.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>");
30
- function ne(e, t) {
31
- let n = d.prop(t, "size", 3, "24"), r = d.prop(t, "color", 3, "currentColor"), i = d.prop(t, "class", 3, "");
32
- var a = h();
33
- d.template_effect(() => {
34
- d.set_class(a, 0, d.clsx(i())), d.set_attribute(a, "width", n()), d.set_attribute(a, "height", n()), d.set_attribute(a, "stroke", r());
35
- }), d.append(e, a);
36
- }
37
- //#endregion
38
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ExclamationCircleOutline.svelte
39
- var re = d.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=\"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z\"></path></svg>");
40
- function g(e, t) {
41
- let n = d.prop(t, "size", 3, "24"), r = d.prop(t, "color", 3, "currentColor"), i = d.prop(t, "class", 3, "");
42
- var a = re();
43
- d.template_effect(() => {
44
- d.set_class(a, 0, d.clsx(i())), d.set_attribute(a, "width", n()), d.set_attribute(a, "height", n()), d.set_attribute(a, "stroke", r());
45
- }), d.append(e, a);
46
- }
47
- //#endregion
48
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/phoneShape.js
49
- function _(e) {
50
- if (!e) return "";
51
- if (e.startsWith("+")) return e;
52
- let t = e.replace(/\D/g, "");
53
- return t.length === 10 ? `+1${t}` : t.length === 11 && t.startsWith("1") ? `+${t}` : e;
54
- }
55
- var v = "310", ie = 7, y = 10;
56
- function ae(e) {
57
- let t = String(e ?? "").replace(/\D/g, "").slice(0, y);
58
- if (!t) return "";
59
- if (t[0] === "1") {
60
- let e = t.slice(1);
61
- return e ? e[0] === "0" || e[0] === "1" ? t : `1 ${b(e)}` : "1";
62
- }
63
- return t[0] === "0" ? t : b(t);
64
- }
65
- function b(e) {
66
- return e.startsWith(v) && e.length <= ie ? e.length === 3 ? v : `${v}-${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)}`;
67
- }
68
- //#endregion
69
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Input/Input.svelte
70
- var oe = /* @__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.controlled.onButtonClick.onbuttonclick.value.autocomplete.autofocus.showPasswordToggle.animateFocus.statusText.statusType.buttonDisabled.inputmode.instantSearch.debounceMs.minSearchChars.showClearButton.onsearch.onfocus.onblur.onkeydown.oninputchange.leftIcon.rightIcon.labels.data-testid".split(".")), se = d.from_html("<span> </span>"), ce = d.from_html("<div class=\"flex justify-start items-center gap-1\"><label> <!></label> <!> <!></div>"), le = d.from_html("<textarea rows=\"4\"></textarea>"), ue = d.from_html("<div><input/> <button type=\"button\" class=\"flex items-center justify-center px-3 tone-muted focus:outline-none\" tabindex=\"-1\"><!></button></div>"), de = d.from_html("<div class=\"absolute left-3 inset-y-0 flex items-center tone-muted z-sticky pointer-events-none\"><!></div>"), fe = d.from_html("<div class=\"absolute right-3 inset-y-0 flex items-center tone-muted z-sticky pointer-events-none\"><!></div>"), pe = d.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>"), me = d.from_html("<img class=\"w-5 h-5\"/>"), he = d.from_html("<span class=\"type-label\"> </span>"), ge = d.from_html("<button type=\"button\"><!> <!></button>"), _e = d.from_html("<img class=\"absolute inset-y-0 right-0 w-5 h-5 mr-3 top-1/2 transform -translate-y-1/2\"/>"), ve = d.from_html("<div class=\"relative flex items-center w-full\"><!> <input/> <!> <!></div>"), ye = d.from_html("<div class=\"flex items-start gap-1.5 mt-2\" role=\"alert\" aria-live=\"assertive\"><!> <p> </p></div>"), be = d.from_html("<img class=\"w-4 h-4 mr-2\"/>"), xe = d.from_html("<div><!> <span> </span></div>"), Se = d.from_html("<div><!> <div class=\"relative w-full\"><!> <!></div></div>");
71
- function x(p, m) {
72
- let h = d.props_id();
73
- d.push(m, !0);
74
- let re = {
75
- hidePassword: "Hide password",
76
- showPassword: "Show password",
77
- clearInput: "Clear input",
78
- buttonIconAlt: "Button Icon",
79
- inputIconAlt: "Input icon",
80
- helperIconAlt: "Helper icon",
81
- optional: "(optional)"
82
- }, _ = d.prop(m, "required", 3, !1), v = d.prop(m, "disabled", 3, !1), ie = d.prop(m, "optional", 3, !1), y = d.prop(m, "icon", 3, null), b = d.prop(m, "buttonIcon", 3, null), x = d.prop(m, "buttonText", 3, null), S = d.prop(m, "maxlength", 3, null), C = d.prop(m, "minlength", 3, null), w = d.prop(m, "type", 3, "text"), T = d.prop(m, "placeholder", 3, ""), E = d.prop(m, "label", 3, ""), Ce = d.prop(m, "id", 3, h), D = d.prop(m, "name", 3, ""), we = d.prop(m, "class", 3, ""), Te = d.prop(m, "size", 3, "md"), Ee = d.prop(m, "textareaSize", 3, ""), O = d.prop(m, "errorText", 3, ""), De = d.prop(m, "color", 3, "base"), k = d.prop(m, "helperText", 3, ""), A = d.prop(m, "helperIcon", 3, ""), j = d.prop(m, "hintText", 3, ""), Oe = d.prop(m, "hintIcon", 3, ""), ke = d.prop(m, "contentFloat", 3, "left"), M = d.prop(m, "readonly", 3, !1), Ae = d.prop(m, "controlled", 3, !1), je = d.prop(m, "onButtonClick", 3, null), Me = d.prop(m, "onbuttonclick", 3, null), N = d.prop(m, "value", 15, ""), Ne = d.prop(m, "autocomplete", 3, null), Pe = d.prop(m, "autofocus", 3, !1), Fe = d.prop(m, "showPasswordToggle", 3, !0), Ie = d.prop(m, "animateFocus", 3, !0), P = d.prop(m, "statusText", 3, ""), F = d.prop(m, "statusType", 3, ""), Le = d.prop(m, "buttonDisabled", 3, !1), Re = d.prop(m, "inputmode", 3, null), I = d.prop(m, "instantSearch", 3, !1), ze = d.prop(m, "debounceMs", 3, 250), Be = d.prop(m, "minSearchChars", 3, 2), L = d.prop(m, "showClearButton", 3, !1), Ve = d.prop(m, "labels", 19, () => ({})), He = d.rest_props(m, oe), R = d.derived(() => Ce() || h);
83
- je() && !Me() && r("Input: prop \"onButtonClick\" is deprecated. Use \"onbuttonclick\" instead.");
84
- let z = d.derived(() => Me() ?? je()), B = d.derived(() => t(re, Ve())), V = d.state(""), H = d.state(null), U, Ue = d.derived(() => Re() || Ge(w())), We = d.derived(() => Ne() ?? null);
85
- function Ge(e) {
86
- switch (e) {
87
- case "phoneNumber":
88
- case "creditCardNumber": return "tel";
89
- case "email": return "email";
90
- default: return null;
91
- }
92
- }
93
- d.user_effect(() => {
94
- N() !== d.get(V) && d.set(V, N(), !0);
95
- });
96
- function Ke() {
97
- d.get(H) && d.get(H).value !== d.get(V) && (d.set(V, d.get(H).value, !0), N(d.get(V)));
98
- }
99
- let W = d.state(!1), G = d.derived(() => De() === "red" || !!O()), K = d.derived(() => `${d.get(R)}-error`), qe = d.derived(() => Fe() && d.get(W) ? "text" : w()), q = d.derived(() => Ie() && !v() && !M()), Je = d.derived(() => i[Te()] || i.md), Ye = () => {
100
- d.set(W, !d.get(W));
101
- }, J = (e) => {
102
- let t = e.target, n = t.value;
103
- if (w() === "creditCardNumber") {
104
- let e = n.replaceAll(/\D/g, "");
105
- n = o(e), t.value = n;
106
- }
107
- if (w() === "phoneNumber" && (n = ae(n.replaceAll(/\D/g, "").slice(0, 10)), t.value = n), w() === "username") {
108
- 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);
109
- r && (e = r[1]), e = e.replace(/^@+/, ""), e = e.replaceAll(/[^A-Za-z0-9._]/g, ""), n = e, t.value = n;
110
- }
111
- if (d.set(V, n, !0), N(n), m.oninputchange?.(n), I()) {
112
- if (clearTimeout(U), n.length === 0) {
113
- m.onsearch?.({ query: "" });
114
- return;
115
- }
116
- n.length >= Be() && (U = setTimeout(() => {
117
- m.onsearch?.({ query: n });
118
- }, ze()));
119
- }
120
- };
121
- function Y() {
122
- d.set(V, ""), N(""), clearTimeout(U), I() && m.onsearch?.({ query: "" }), d.get(H) && d.get(H).focus();
123
- }
124
- function Xe(e) {
125
- m.onkeydown?.(e), !e.defaultPrevented && I() && (e.key === "Enter" && (clearTimeout(U), m.onsearch?.({ query: String(d.get(V) ?? "") })), e.key === "Escape" && Y());
126
- }
127
- f(() => {
128
- clearTimeout(U);
129
- });
130
- let X = () => {
131
- m.onblur?.();
132
- }, Z = () => {
133
- m.onfocus?.();
134
- }, Q = () => {
135
- switch (ke()) {
136
- case "center": return "text-center";
137
- case "right": return "text-right";
138
- default: return "text-left";
139
- }
140
- }, Ze = () => {
141
- switch (Ee()) {
142
- case "sm": return "h-24";
143
- case "md": return "h-36";
144
- case "lg": return "h-44";
145
- default: return "";
146
- }
147
- }, Qe = () => {
148
- typeof d.get(z) == "function" && d.get(z)(String(d.get(V) ?? ""));
149
- };
150
- var $ = Se();
151
- d.attribute_effect($, () => ({
152
- class: `flex flex-col gap-1 ${we() ?? ""}`,
153
- ...He
154
- }));
155
- var $e = d.child($), et = (t) => {
156
- var n = ce(), r = d.child(n), i = d.child(r, !0), o = d.sibling(i);
157
- u(o, { get required() {
158
- return _();
159
- } }), d.reset(r);
160
- var s = d.sibling(r, 2), c = (e) => {
161
- var t = se(), n = d.child(t);
162
- d.reset(t), d.template_effect(() => {
163
- d.set_class(t, 1, `type-label ${F() === "success" ? "text-accent-success" : F() === "error" ? "text-accent-danger" : ""}`), d.set_text(n, `(${P() ?? ""})`);
164
- }), d.append(e, t);
165
- };
166
- d.if(s, (e) => {
167
- P() && e(c);
168
- });
169
- var l = d.sibling(s, 2), f = (t) => {
170
- var n = se(), r = d.child(n, !0);
171
- d.reset(n), d.template_effect(() => {
172
- d.set_class(n, 1, d.clsx(e.smMuted)), d.set_text(r, d.get(B).optional);
173
- }), d.append(t, n);
174
- };
175
- d.if(l, (e) => {
176
- ie() && e(f);
177
- }), d.reset(n), d.template_effect(() => {
178
- d.set_attribute(r, "for", d.get(R)), d.set_class(r, 1, `${e.caption} tone-secondary ${a.tight} sm:${a.none} ${d.get(G) ? "text-status-error-text" : ""}`), d.set_text(i, E());
179
- }), d.append(t, n);
180
- };
181
- d.if($e, (e) => {
182
- E() && e(et);
183
- });
184
- var tt = d.sibling($e, 2), nt = d.child(tt), rt = (t) => {
185
- var r = le();
186
- d.remove_textarea_child(r), r.required = !1, d.template_effect((t, i) => {
187
- d.set_attribute(r, "id", d.get(R)), d.set_attribute(r, "name", D()), d.set_attribute(r, "placeholder", T()), d.set_value(r, d.get(V)), d.set_attribute(r, "maxlength", S()), d.set_attribute(r, "minlength", C()), d.set_class(r, 1, `${e.sm ?? ""} w-full px-3 py-2 bg-bg-secondary border rounded-lg ${n.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-none focus:ring-4 focus:ring-focus-ring resize-y ${d.get(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${t ?? ""} ${i ?? ""} ${d.get(q) ? "focus:scale-grow" : ""}`), r.disabled = v(), r.readOnly = M(), d.set_attribute(r, "aria-required", _()), d.set_attribute(r, "aria-invalid", d.get(G)), d.set_attribute(r, "aria-describedby", O() ? d.get(K) : void 0), d.set_attribute(r, "data-testid", m["data-testid"]);
188
- }, [() => Q(), () => Ze()]), d.delegated("input", r, J), d.event("blur", r, X), d.event("focus", r, Z), d.append(t, r);
189
- }, it = (t) => {
190
- var r = ue(), i = d.child(r);
191
- d.remove_input_defaults(i), i.required = !1, d.autofocus(i, Pe()), d.bind_this(i, (e) => d.set(H, e), () => d.get(H));
192
- var a = d.sibling(i, 2), o = d.child(a), s = (e) => {
193
- te(e, { class: "w-5 h-5" });
194
- }, c = (e) => {
195
- ee(e, { class: "w-5 h-5" });
196
- };
197
- d.if(o, (e) => {
198
- d.get(W) ? e(s) : e(c, -1);
199
- }), d.reset(a), d.reset(r), d.template_effect((t) => {
200
- d.set_class(r, 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 ${d.get(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus-within:border-interactive-border"} ${d.get(q) ? "focus-within:scale-grow" : ""} ${v() ? "opacity-50 cursor-not-allowed" : ""}`), d.set_attribute(i, "id", d.get(R)), d.set_attribute(i, "type", d.get(qe)), d.set_attribute(i, "name", D()), d.set_attribute(i, "placeholder", T()), d.set_value(i, d.get(V)), d.set_attribute(i, "maxlength", S()), d.set_attribute(i, "minlength", C()), d.set_class(i, 1, `password-input-inner ${e.sm ?? ""} flex-1 w-full ${d.get(Je) ?? ""} bg-transparent border-0 ${n.emphasis ?? ""} placeholder-muted-foreground focus:outline-none focus:ring-0 ${t ?? ""}`), i.disabled = v(), i.readOnly = M(), d.set_attribute(i, "aria-required", _()), d.set_attribute(i, "aria-invalid", d.get(G)), d.set_attribute(i, "aria-describedby", O() ? d.get(K) : void 0), d.set_attribute(i, "data-testid", m["data-testid"]), d.set_attribute(i, "autocomplete", d.get(We)), d.set_attribute(i, "inputmode", d.get(Ue)), d.set_attribute(a, "aria-label", d.get(W) ? d.get(B).hidePassword : d.get(B).showPassword);
201
- }, [() => Q()]), d.delegated("input", i, J), d.delegated("change", i, Ke), d.event("blur", i, X), d.event("focus", i, Z), d.delegated("click", a, Ye), d.append(t, r);
202
- }, at = (t) => {
203
- var r = ve(), i = d.child(r), a = (e) => {
204
- var t = de(), n = d.child(t);
205
- d.snippet(n, () => m.leftIcon), d.reset(t), d.append(e, t);
206
- };
207
- d.if(i, (e) => {
208
- m.leftIcon && e(a);
209
- });
210
- var o = d.sibling(i, 2);
211
- d.remove_input_defaults(o), o.required = !1, d.autofocus(o, Pe()), d.bind_this(o, (e) => d.set(H, e), () => d.get(H));
212
- var s = d.sibling(o, 2), c = (e) => {
213
- var t = fe(), n = d.child(t);
214
- d.snippet(n, () => m.rightIcon), d.reset(t), d.append(e, t);
215
- }, l = (e) => {
216
- var t = pe();
217
- ne(d.child(t), { class: "w-4 h-4" }), d.reset(t), d.template_effect(() => d.set_attribute(t, "aria-label", d.get(B).clearInput)), d.delegated("click", t, Y), d.append(e, t);
218
- }, u = (e) => {
219
- var t = ge(), n = d.child(t), r = (e) => {
220
- var t = me();
221
- d.template_effect(() => {
222
- d.set_attribute(t, "src", b()), d.set_attribute(t, "alt", d.get(B).buttonIconAlt);
223
- }), d.append(e, t);
224
- };
225
- d.if(n, (e) => {
226
- b() && e(r);
227
- });
228
- var i = d.sibling(n, 2), a = (e) => {
229
- var t = he(), n = d.child(t, !0);
230
- d.reset(t), d.template_effect(() => d.set_text(n, x())), d.append(e, t);
231
- };
232
- d.if(i, (e) => {
233
- x() && e(a);
234
- }), d.reset(t), d.template_effect(() => {
235
- t.disabled = Le(), d.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 ${k() || j() || O() ? "mb-7" : ""}`);
236
- }), d.delegated("click", t, Qe), d.append(e, t);
237
- };
238
- d.if(s, (e) => {
239
- m.rightIcon ? e(c) : L() && d.get(V) ? e(l, 1) : Ae() && (b() || x()) && e(u, 2);
240
- });
241
- var f = d.sibling(s, 2), p = (e) => {
242
- var t = _e();
243
- d.template_effect(() => {
244
- d.set_attribute(t, "src", y()), d.set_attribute(t, "alt", d.get(B).inputIconAlt);
245
- }), d.append(e, t);
246
- };
247
- d.if(f, (e) => {
248
- y() && w() !== "textarea" && !m.rightIcon && !(L() && d.get(V)) && e(p);
249
- }), d.reset(r), d.template_effect((t) => {
250
- d.set_attribute(o, "id", d.get(R)), d.set_attribute(o, "type", d.get(qe)), d.set_attribute(o, "name", D()), d.set_attribute(o, "placeholder", T()), d.set_value(o, d.get(V)), d.set_attribute(o, "maxlength", S()), d.set_attribute(o, "minlength", C()), d.set_class(o, 1, `${e.body ?? ""} w-full ${d.get(Je) ?? ""} bg-bg-secondary border rounded-lg ${n.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-none focus:ring-4 focus:ring-focus-ring ${d.get(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${y() || m.rightIcon || L() && d.get(V) ? "pr-10" : ""} ${m.leftIcon ? "pl-10" : ""} ${t ?? ""} ${d.get(q) ? "focus:scale-grow" : ""} ${v() ? "opacity-50 cursor-not-allowed" : ""}`), o.disabled = v(), o.readOnly = M(), d.set_attribute(o, "aria-required", _()), d.set_attribute(o, "aria-invalid", d.get(G)), d.set_attribute(o, "aria-describedby", O() ? d.get(K) : void 0), d.set_attribute(o, "data-testid", m["data-testid"]), d.set_attribute(o, "autocomplete", d.get(We)), d.set_attribute(o, "inputmode", d.get(Ue));
251
- }, [() => Q()]), d.delegated("input", o, J), d.delegated("change", o, Ke), d.event("blur", o, X), d.event("focus", o, Z), d.delegated("keydown", o, Xe), d.append(t, r);
252
- };
253
- d.if(nt, (e) => {
254
- w() === "textarea" ? e(rt) : w() === "password" && Fe() ? e(it, 1) : e(at, -1);
255
- });
256
- var ot = d.sibling(nt, 2), st = (t) => {
257
- var n = ye(), r = d.child(n);
258
- g(r, { class: "w-4 h-4 shrink-0 text-accent-danger mt-0.5" });
259
- var i = d.sibling(r, 2), a = d.child(i, !0);
260
- d.reset(i), d.reset(n), d.template_effect(() => {
261
- d.set_attribute(n, "id", d.get(K)), d.set_class(i, 1, d.clsx(e.error)), d.set_text(a, O());
262
- }), d.transition(3, n, () => s, () => ({
263
- duration: c.normal,
264
- easing: l.out
265
- })), d.append(t, n);
266
- }, ct = (t) => {
267
- var n = xe(), r = d.child(n), i = (e) => {
268
- var t = be();
269
- d.template_effect(() => {
270
- d.set_attribute(t, "src", A() || Oe()), d.set_attribute(t, "alt", d.get(B).helperIconAlt);
271
- }), d.append(e, t);
272
- };
273
- d.if(r, (e) => {
274
- (A() || Oe()) && e(i);
275
- });
276
- var a = d.sibling(r, 2), o = d.child(a, !0);
277
- d.reset(a), d.reset(n), d.template_effect(() => {
278
- d.set_class(n, 1, `mt-2 flex items-center ${e.xsMuted} opacity-65`), d.set_text(o, k() || j());
279
- }), d.append(t, n);
280
- };
281
- d.if(ot, (e) => {
282
- O() ? e(st) : (k() || j()) && e(ct, 1);
283
- }), d.reset(tt), d.reset($), d.append(p, $), d.pop();
284
- }
285
- d.delegate([
286
- "input",
287
- "change",
288
- "click",
289
- "keydown"
290
- ]);
291
- //#endregion
292
- export { ne as i, _ as n, g as r, x as t };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes