@getmicdrop/venue-calendar 4.3.69 → 4.3.70
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.
- package/dist/{Calendar-LOoBnQZa.js → Calendar-kcQOpuVt.js} +2 -2
- package/dist/{CalendarFoundryView-B_qTZNDT.js → CalendarFoundryView-BOdNLPAf.js} +2677 -2610
- package/dist/{CartView-DbqVtX8b.js → CartView-CDop_O-T.js} +13 -13
- package/dist/{Checkout-D8_X8ZUp.js → Checkout-BBeCNuWr.js} +4 -4
- package/dist/{Checkout-Cg2RBJx7.js → Checkout-Clk7iYQI.js} +3 -3
- package/dist/{CollectionView-BkuWsA4q.js → CollectionView-BQgRSakb.js} +2 -2
- package/dist/{CropImage-BskI3ryk.js → CropImage-Cr7HbtSK.js} +3 -3
- package/dist/{Event-GtYnc92-.js → Event-DuHI0etT.js} +2 -2
- package/dist/{EventPage-Z-z5BSkj.js → EventPage-BkAhuCD7.js} +4 -4
- package/dist/Input-B5N39Lz3.js +313 -0
- package/dist/{Modal-M8u_1Ydn.js → Modal-BVkbwQhE.js} +2 -2
- package/dist/{ModalFooter-LW4xoTxc.js → ModalFooter-BF0mSbhC.js} +8 -8
- package/dist/{ModalHeader-EO2Q-Ymg.js → ModalHeader-BfMTlKtG.js} +1 -1
- package/dist/{PasswordInput-D4cjP_cO.js → PasswordInput-CLewgvhq.js} +2 -2
- package/dist/{PhoneInput-DHW3r2Gh.js → PhoneInput-CHMAaBfv.js} +2 -2
- package/dist/{SeriesPage-w3cJgpYF.js → SeriesPage-CuUmlXQD.js} +1 -1
- package/dist/{floatingPosition-DXLeLxPY.js → floatingPosition-C0CBqVue.js} +1 -1
- package/dist/{imageOptimizer-Cg1D0ZMw.js → imageOptimizer-BvfelXvr.js} +13 -13
- package/dist/venue-calendar.es.js +13 -13
- package/dist/venue-calendar.iife.js +3 -3
- package/dist/venue-calendar.umd.js +53 -53
- package/dist/{z-index-Bo0dqmiq.js → z-index-CeYVHpUz.js} +16 -13
- package/package.json +2 -2
- package/dist/Input-C8Z8puSE.js +0 -292
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/de.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/es.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/id.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/it.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/de.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/es.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/fr.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/id.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/it.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/ja.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/ko.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/nl.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/pl.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/tr.js +0 -0
- /package/dist/locales/{4.3.69 → 4.3.70}/main/zh.js +0 -0
|
@@ -195,9 +195,12 @@ function x(e, { delay: t = 0, duration: n = c.fast, easing: r = m.reveal, distan
|
|
|
195
195
|
function S() {
|
|
196
196
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
197
197
|
}
|
|
198
|
+
function C(e) {
|
|
199
|
+
return S() ? 0 : e;
|
|
200
|
+
}
|
|
198
201
|
//#endregion
|
|
199
202
|
//#region node_modules/@getmicdrop/svelte-components/dist/tokens/z-index.js
|
|
200
|
-
var
|
|
203
|
+
var w = {
|
|
201
204
|
auto: "auto",
|
|
202
205
|
0: "0",
|
|
203
206
|
10: "10",
|
|
@@ -209,17 +212,17 @@ var C = {
|
|
|
209
212
|
60: "60",
|
|
210
213
|
70: "70",
|
|
211
214
|
100: "100"
|
|
212
|
-
},
|
|
213
|
-
base:
|
|
214
|
-
sticky:
|
|
215
|
-
navigation:
|
|
216
|
-
dropdown:
|
|
217
|
-
overlay:
|
|
218
|
-
modal:
|
|
219
|
-
modalContent:
|
|
220
|
-
toast:
|
|
221
|
-
tooltip:
|
|
222
|
-
critical:
|
|
215
|
+
}, T = {
|
|
216
|
+
base: w[0],
|
|
217
|
+
sticky: w[10],
|
|
218
|
+
navigation: w[20],
|
|
219
|
+
dropdown: w[30],
|
|
220
|
+
overlay: w[40],
|
|
221
|
+
modal: w[50],
|
|
222
|
+
modalContent: w[51],
|
|
223
|
+
toast: w[60],
|
|
224
|
+
tooltip: w[70],
|
|
225
|
+
critical: w[100]
|
|
223
226
|
};
|
|
224
227
|
//#endregion
|
|
225
|
-
export {
|
|
228
|
+
export { C as a, b as c, _ as d, h as f, y as i, g as l, c as n, S as o, m as r, x as s, T as t, v as u };
|
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.
|
|
4
|
+
"version": "4.3.70",
|
|
5
5
|
"description": "A customizable Svelte calendar component for displaying comedy events",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"_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.",
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@eslint/js": "^10.0.1",
|
|
158
|
-
"@getmicdrop/svelte-components": "6.24.
|
|
158
|
+
"@getmicdrop/svelte-components": "6.24.386",
|
|
159
159
|
"@playwright/test": "^1.60.0",
|
|
160
160
|
"@size-limit/file": "^13.0.3",
|
|
161
161
|
"@sveltejs/adapter-auto": "^7.0.1",
|
package/dist/Input-C8Z8puSE.js
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
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-DsosIKhs.js";
|
|
4
|
-
import { d as c, n as l, r as u } from "./z-index-Bo0dqmiq.js";
|
|
5
|
-
import { t as d } from "./RequiredIndicator-CYcnRFsA.js";
|
|
6
|
-
import "svelte/internal/disclose-version";
|
|
7
|
-
import * as f from "svelte/internal/client";
|
|
8
|
-
import { onDestroy as ee } 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 m(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 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=\"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 te(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 = h();
|
|
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 g = 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 ne(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 = g();
|
|
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 re(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 _ = "310", v = 7, ie = 10;
|
|
47
|
-
function ae(e) {
|
|
48
|
-
let t = String(e ?? "").replace(/\D/g, "").slice(0, ie);
|
|
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 ${y(e)}` : "1";
|
|
53
|
-
}
|
|
54
|
-
return t[0] === "0" ? t : y(t);
|
|
55
|
-
}
|
|
56
|
-
function y(e) {
|
|
57
|
-
return e.startsWith(_) && e.length <= v ? e.length === 3 ? _ : `${_}-${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 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.tabindex.controlled.onButtonClick.onbuttonclick.value.autocomplete.autofocus.showPasswordToggle.animateFocus.statusText.statusType.buttonDisabled.inputmode.enterkeyhint.autocapitalize.autocorrect.instantSearch.debounceMs.minSearchChars.showClearButton.onsearch.onfocus.onblur.onkeydown.oninputchange.leftIcon.rightIcon.prefix.labels.data-testid".split(".")), b = f.from_html("<span> </span>"), se = f.from_html("<div class=\"flex justify-start items-center gap-1\"><label> <!></label> <!> <!></div>"), ce = f.from_html("<textarea rows=\"4\"></textarea>"), le = 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>"), ue = f.from_html("<div class=\"absolute left-3 inset-y-0 flex items-center tone-muted z-sticky pointer-events-none\"><!></div>"), de = f.from_html("<div class=\"absolute right-3 inset-y-0 flex items-center tone-muted z-sticky pointer-events-none\"><!></div>"), fe = 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>"), pe = f.from_html("<img class=\"w-5 h-5\"/>"), me = f.from_html("<span class=\"type-label\"> </span>"), he = f.from_html("<button type=\"button\"><!> <!></button>"), ge = 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\"/>"), _e = f.from_html("<div class=\"relative flex items-center w-full\"><!> <!> <input/> <!> <!></div>"), ve = f.from_html("<div class=\"flex items-start gap-1.5 mt-2\" role=\"alert\" aria-live=\"assertive\"><!> <p> </p></div>"), ye = f.from_html("<img class=\"w-4 h-4 mr-2\"/>"), be = f.from_html("<div><!> <span> </span></div>"), xe = f.from_html("<div><!> <div class=\"relative w-full\"><!> <!></div></div>");
|
|
62
|
-
function x(p, h) {
|
|
63
|
-
let g = f.props_id();
|
|
64
|
-
f.push(h, !0);
|
|
65
|
-
let re = {
|
|
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
|
-
}, _ = f.prop(h, "required", 3, !1), v = f.prop(h, "disabled", 3, !1), ie = f.prop(h, "optional", 3, !1), y = f.prop(h, "icon", 3, null), x = f.prop(h, "buttonIcon", 3, null), S = f.prop(h, "buttonText", 3, null), C = f.prop(h, "maxlength", 3, null), w = f.prop(h, "minlength", 3, null), T = f.prop(h, "type", 3, "text"), E = f.prop(h, "placeholder", 3, ""), Se = f.prop(h, "label", 3, ""), Ce = f.prop(h, "id", 3, g), D = f.prop(h, "name", 3, ""), we = f.prop(h, "class", 3, ""), Te = f.prop(h, "size", 3, "md"), Ee = f.prop(h, "textareaSize", 3, ""), O = f.prop(h, "errorText", 3, ""), De = f.prop(h, "color", 3, "base"), k = f.prop(h, "helperText", 3, ""), A = f.prop(h, "helperIcon", 3, ""), j = f.prop(h, "hintText", 3, ""), Oe = f.prop(h, "hintIcon", 3, ""), ke = f.prop(h, "contentFloat", 3, "left"), M = f.prop(h, "readonly", 3, !1), Ae = f.prop(h, "controlled", 3, !1), je = f.prop(h, "onButtonClick", 3, null), Me = f.prop(h, "onbuttonclick", 3, null), N = f.prop(h, "value", 15, ""), Ne = f.prop(h, "autocomplete", 3, null), Pe = f.prop(h, "autofocus", 3, !1), Fe = f.prop(h, "showPasswordToggle", 3, !0), Ie = f.prop(h, "animateFocus", 3, !0), P = f.prop(h, "statusText", 3, ""), F = f.prop(h, "statusType", 3, ""), Le = f.prop(h, "buttonDisabled", 3, !1), Re = f.prop(h, "inputmode", 3, null), I = f.prop(h, "instantSearch", 3, !1), ze = f.prop(h, "debounceMs", 3, 250), Be = f.prop(h, "minSearchChars", 3, 2), L = f.prop(h, "showClearButton", 3, !1), R = f.prop(h, "prefix", 3, ""), Ve = f.prop(h, "labels", 19, () => ({})), He = f.rest_props(h, oe), z = f.derived(() => Ce() || g);
|
|
74
|
-
je() && !Me() && n("Input: prop \"onButtonClick\" is deprecated. Use \"onbuttonclick\" instead.");
|
|
75
|
-
let Ue = f.derived(() => Me() ?? je()), B = f.derived(() => a(re, Ve())), V = f.state(""), H = f.state(null), U, We = f.derived(() => Re() || Ke(T())), Ge = f.derived(() => Ne() ?? null);
|
|
76
|
-
function Ke(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
|
-
N() !== f.get(V) && f.set(V, N(), !0);
|
|
86
|
-
});
|
|
87
|
-
function qe() {
|
|
88
|
-
f.get(H) && f.get(H).value !== f.get(V) && (f.set(V, f.get(H).value, !0), N(f.get(V)));
|
|
89
|
-
}
|
|
90
|
-
let W = f.state(!1), G = f.derived(() => De() === "red" || !!O()), K = f.derived(() => `${f.get(z)}-error`), Je = f.derived(() => `${f.get(z)}-prefix`), Ye = f.derived(() => [R() ? f.get(Je) : "", O() ? f.get(K) : ""].filter(Boolean).join(" ") || void 0), Xe = f.derived(() => Fe() && f.get(W) ? "text" : T()), q = f.derived(() => Ie() && !v() && !M()), Ze = f.derived(() => e[Te()] || e.md), Qe = () => {
|
|
91
|
-
f.set(W, !f.get(W));
|
|
92
|
-
}, J = (e) => {
|
|
93
|
-
let t = e.target, n = t.value;
|
|
94
|
-
if (T() === "creditCardNumber") {
|
|
95
|
-
let e = n.replaceAll(/\D/g, "");
|
|
96
|
-
n = s(e), t.value = n;
|
|
97
|
-
}
|
|
98
|
-
if (T() === "phoneNumber" && (n = ae(n.replaceAll(/\D/g, "").slice(0, 10)), t.value = n), T() === "username") {
|
|
99
|
-
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);
|
|
100
|
-
r && (e = r[1]), e = e.replace(/^@+/, ""), e = e.replaceAll(/[^A-Za-z0-9._]/g, ""), n = e, t.value = n;
|
|
101
|
-
}
|
|
102
|
-
if (f.set(V, n, !0), N(n), h.oninputchange?.(n), I()) {
|
|
103
|
-
if (clearTimeout(U), n.length === 0) {
|
|
104
|
-
h.onsearch?.({ query: "" });
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
n.length >= Be() && (U = setTimeout(() => {
|
|
108
|
-
h.onsearch?.({ query: n });
|
|
109
|
-
}, ze()));
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
function $e() {
|
|
113
|
-
f.set(V, ""), N(""), clearTimeout(U), I() && h.onsearch?.({ query: "" }), f.get(H) && f.get(H).focus();
|
|
114
|
-
}
|
|
115
|
-
function et(e) {
|
|
116
|
-
h.onkeydown?.(e), !e.defaultPrevented && I() && (e.key === "Enter" && (clearTimeout(U), h.onsearch?.({ query: String(f.get(V) ?? "") })), e.key === "Escape" && $e());
|
|
117
|
-
}
|
|
118
|
-
ee(() => {
|
|
119
|
-
clearTimeout(U);
|
|
120
|
-
});
|
|
121
|
-
let Y = () => {
|
|
122
|
-
h.onblur?.();
|
|
123
|
-
}, X = () => {
|
|
124
|
-
h.onfocus?.();
|
|
125
|
-
}, Z = () => {
|
|
126
|
-
switch (ke()) {
|
|
127
|
-
case "center": return "text-center";
|
|
128
|
-
case "right": return "text-right";
|
|
129
|
-
default: return "text-left";
|
|
130
|
-
}
|
|
131
|
-
}, tt = () => {
|
|
132
|
-
switch (Ee()) {
|
|
133
|
-
case "sm": return "h-24";
|
|
134
|
-
case "md": return "h-36";
|
|
135
|
-
case "lg": return "h-44";
|
|
136
|
-
default: return "";
|
|
137
|
-
}
|
|
138
|
-
}, nt = () => {
|
|
139
|
-
typeof f.get(Ue) == "function" && f.get(Ue)(String(f.get(V) ?? ""));
|
|
140
|
-
};
|
|
141
|
-
var Q = xe();
|
|
142
|
-
f.attribute_effect(Q, () => ({
|
|
143
|
-
class: `flex flex-col gap-1 ${we() ?? ""}`,
|
|
144
|
-
...He
|
|
145
|
-
}));
|
|
146
|
-
var rt = f.child(Q), it = (e) => {
|
|
147
|
-
var n = se(), i = f.child(n), a = f.child(i, !0), o = f.sibling(a);
|
|
148
|
-
d(o, { get required() {
|
|
149
|
-
return _();
|
|
150
|
-
} }), f.reset(i);
|
|
151
|
-
var s = f.sibling(i, 2), c = (e) => {
|
|
152
|
-
var t = b(), n = f.child(t);
|
|
153
|
-
f.reset(t), f.template_effect(() => {
|
|
154
|
-
f.set_class(t, 1, `type-label ${F() === "success" ? "text-accent-success" : F() === "error" ? "text-accent-danger" : ""}`), f.set_text(n, `(${P() ?? ""})`);
|
|
155
|
-
}), f.append(e, t);
|
|
156
|
-
};
|
|
157
|
-
f.if(s, (e) => {
|
|
158
|
-
P() && e(c);
|
|
159
|
-
});
|
|
160
|
-
var l = f.sibling(s, 2), u = (e) => {
|
|
161
|
-
var t = b(), n = f.child(t, !0);
|
|
162
|
-
f.reset(t), f.template_effect(() => {
|
|
163
|
-
f.set_class(t, 1, f.clsx(r.smMuted)), f.set_text(n, f.get(B).optional);
|
|
164
|
-
}), f.append(e, t);
|
|
165
|
-
};
|
|
166
|
-
f.if(l, (e) => {
|
|
167
|
-
ie() && e(u);
|
|
168
|
-
}), f.reset(n), f.template_effect(() => {
|
|
169
|
-
f.set_attribute(i, "for", f.get(z)), f.set_class(i, 1, `${r.caption} tone-secondary ${t.tight} sm:${t.none} ${f.get(G) ? "text-status-error-text" : ""}`), f.set_text(a, Se());
|
|
170
|
-
}), f.append(e, n);
|
|
171
|
-
};
|
|
172
|
-
f.if(rt, (e) => {
|
|
173
|
-
Se() && e(it);
|
|
174
|
-
});
|
|
175
|
-
var at = f.sibling(rt, 2), $ = f.child(at), ot = (e) => {
|
|
176
|
-
var t = ce();
|
|
177
|
-
f.remove_textarea_child(t), t.required = !1, f.template_effect((e, n) => {
|
|
178
|
-
f.set_attribute(t, "id", f.get(z)), f.set_attribute(t, "name", D()), f.set_attribute(t, "placeholder", E()), f.set_value(t, f.get(V)), f.set_attribute(t, "maxlength", C()), f.set_attribute(t, "minlength", w()), 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(G) ? "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 = v(), t.readOnly = M(), f.set_attribute(t, "tabindex", h.tabindex), f.set_attribute(t, "aria-required", _()), f.set_attribute(t, "aria-invalid", f.get(G)), f.set_attribute(t, "aria-describedby", O() ? f.get(K) : void 0), f.set_attribute(t, "data-testid", h["data-testid"]);
|
|
179
|
-
}, [() => Z(), () => tt()]), f.delegated("input", t, J), f.event("blur", t, Y), f.event("focus", t, X), f.append(e, t);
|
|
180
|
-
}, st = (e) => {
|
|
181
|
-
var t = le(), n = f.child(t);
|
|
182
|
-
f.remove_input_defaults(n), n.required = !1, f.autofocus(n, Pe()), f.bind_this(n, (e) => f.set(H, e), () => f.get(H));
|
|
183
|
-
var a = f.sibling(n, 2), o = f.child(a), s = (e) => {
|
|
184
|
-
te(e, { class: "w-5 h-5" });
|
|
185
|
-
}, c = (e) => {
|
|
186
|
-
m(e, { class: "w-5 h-5" });
|
|
187
|
-
};
|
|
188
|
-
f.if(o, (e) => {
|
|
189
|
-
f.get(W) ? e(s) : e(c, -1);
|
|
190
|
-
}), f.reset(a), f.reset(t), f.template_effect((e) => {
|
|
191
|
-
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(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus-within:border-interactive-border"} ${f.get(q) ? "focus-within:scale-grow" : ""} ${v() ? "opacity-50 cursor-not-allowed" : ""}`), f.set_attribute(n, "id", f.get(z)), f.set_attribute(n, "type", f.get(Xe)), f.set_attribute(n, "name", D()), f.set_attribute(n, "placeholder", E()), f.set_value(n, f.get(V)), f.set_attribute(n, "maxlength", C()), f.set_attribute(n, "minlength", w()), f.set_class(n, 1, `password-input-inner ${r.sm ?? ""} flex-1 w-full ${f.get(Ze) ?? ""} bg-transparent border-0 ${i.emphasis ?? ""} placeholder-muted-foreground focus:outline-none focus:ring-0 ${e ?? ""}`), n.disabled = v(), n.readOnly = M(), f.set_attribute(n, "tabindex", h.tabindex), f.set_attribute(n, "aria-required", _()), f.set_attribute(n, "aria-invalid", f.get(G)), f.set_attribute(n, "aria-describedby", O() ? f.get(K) : void 0), f.set_attribute(n, "data-testid", h["data-testid"]), f.set_attribute(n, "autocomplete", f.get(Ge)), f.set_attribute(n, "inputmode", f.get(We)), f.set_attribute(n, "enterkeyhint", h.enterkeyhint), f.set_attribute(n, "autocapitalize", h.autocapitalize), f.set_attribute(n, "autocorrect", h.autocorrect), f.set_attribute(a, "aria-label", f.get(W) ? f.get(B).hidePassword : f.get(B).showPassword);
|
|
192
|
-
}, [() => Z()]), f.delegated("input", n, J), f.delegated("change", n, qe), f.event("blur", n, Y), f.event("focus", n, X), f.delegated("click", a, Qe), f.append(e, t);
|
|
193
|
-
}, ct = (e) => {
|
|
194
|
-
var t = _e(), n = f.child(t), a = (e) => {
|
|
195
|
-
var t = b(), n = f.child(t, !0);
|
|
196
|
-
f.reset(t), f.template_effect(() => {
|
|
197
|
-
f.set_attribute(t, "id", f.get(Je)), f.set_attribute(t, "data-testid", h["data-testid"] ? `${h["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(G) ? "border-status-error-border" : "border-stroke-primary"} ${v() ? "opacity-50" : ""}`), f.set_text(n, R());
|
|
198
|
-
}), f.append(e, t);
|
|
199
|
-
};
|
|
200
|
-
f.if(n, (e) => {
|
|
201
|
-
R() && e(a);
|
|
202
|
-
});
|
|
203
|
-
var o = f.sibling(n, 2), s = (e) => {
|
|
204
|
-
var t = ue(), n = f.child(t);
|
|
205
|
-
f.snippet(n, () => h.leftIcon), f.reset(t), f.append(e, t);
|
|
206
|
-
};
|
|
207
|
-
f.if(o, (e) => {
|
|
208
|
-
h.leftIcon && e(s);
|
|
209
|
-
});
|
|
210
|
-
var c = f.sibling(o, 2);
|
|
211
|
-
f.remove_input_defaults(c), c.required = !1, f.autofocus(c, Pe()), f.bind_this(c, (e) => f.set(H, e), () => f.get(H));
|
|
212
|
-
var l = f.sibling(c, 2), u = (e) => {
|
|
213
|
-
var t = de(), n = f.child(t);
|
|
214
|
-
f.snippet(n, () => h.rightIcon), f.reset(t), f.append(e, t);
|
|
215
|
-
}, d = (e) => {
|
|
216
|
-
var t = fe();
|
|
217
|
-
ne(f.child(t), { class: "w-4 h-4" }), f.reset(t), f.template_effect(() => f.set_attribute(t, "aria-label", f.get(B).clearInput)), f.delegated("click", t, $e), f.append(e, t);
|
|
218
|
-
}, ee = (e) => {
|
|
219
|
-
var t = he(), n = f.child(t), r = (e) => {
|
|
220
|
-
var t = pe();
|
|
221
|
-
f.template_effect(() => {
|
|
222
|
-
f.set_attribute(t, "src", x()), f.set_attribute(t, "alt", f.get(B).buttonIconAlt);
|
|
223
|
-
}), f.append(e, t);
|
|
224
|
-
};
|
|
225
|
-
f.if(n, (e) => {
|
|
226
|
-
x() && e(r);
|
|
227
|
-
});
|
|
228
|
-
var i = f.sibling(n, 2), a = (e) => {
|
|
229
|
-
var t = me(), n = f.child(t, !0);
|
|
230
|
-
f.reset(t), f.template_effect(() => f.set_text(n, S())), f.append(e, t);
|
|
231
|
-
};
|
|
232
|
-
f.if(i, (e) => {
|
|
233
|
-
S() && e(a);
|
|
234
|
-
}), f.reset(t), f.template_effect(() => {
|
|
235
|
-
t.disabled = Le(), 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 ${k() || j() || O() ? "mb-7" : ""}`);
|
|
236
|
-
}), f.delegated("click", t, nt), f.append(e, t);
|
|
237
|
-
};
|
|
238
|
-
f.if(l, (e) => {
|
|
239
|
-
h.rightIcon ? e(u) : L() && f.get(V) ? e(d, 1) : Ae() && (x() || S()) && e(ee, 2);
|
|
240
|
-
});
|
|
241
|
-
var p = f.sibling(l, 2), m = (e) => {
|
|
242
|
-
var t = ge();
|
|
243
|
-
f.template_effect(() => {
|
|
244
|
-
f.set_attribute(t, "src", y()), f.set_attribute(t, "alt", f.get(B).inputIconAlt);
|
|
245
|
-
}), f.append(e, t);
|
|
246
|
-
};
|
|
247
|
-
f.if(p, (e) => {
|
|
248
|
-
y() && T() !== "textarea" && !h.rightIcon && !(L() && f.get(V)) && e(m);
|
|
249
|
-
}), f.reset(t), f.template_effect((e) => {
|
|
250
|
-
f.set_attribute(c, "id", f.get(z)), f.set_attribute(c, "type", f.get(Xe)), f.set_attribute(c, "name", D()), f.set_attribute(c, "placeholder", E()), f.set_value(c, f.get(V)), f.set_attribute(c, "maxlength", C()), f.set_attribute(c, "minlength", w()), f.set_class(c, 1, `${r.body ?? ""} w-full ${R() ? "min-w-0 " : ""}${f.get(Ze) ?? ""} bg-bg-secondary border ${R() ? "rounded-r-lg" : "rounded-lg"} ${i.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-none focus:ring-4 focus:ring-focus-ring ${f.get(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${y() || h.rightIcon || L() && f.get(V) ? "pr-10" : ""} ${h.leftIcon ? "pl-10" : ""} ${e ?? ""} ${f.get(q) && !R() ? "focus:scale-grow" : ""} ${v() ? "opacity-50 cursor-not-allowed" : ""}`), c.disabled = v(), c.readOnly = M(), f.set_attribute(c, "tabindex", h.tabindex), f.set_attribute(c, "aria-required", _()), f.set_attribute(c, "aria-invalid", f.get(G)), f.set_attribute(c, "aria-describedby", f.get(Ye)), f.set_attribute(c, "data-testid", h["data-testid"]), f.set_attribute(c, "autocomplete", f.get(Ge)), f.set_attribute(c, "inputmode", f.get(We)), f.set_attribute(c, "enterkeyhint", h.enterkeyhint), f.set_attribute(c, "autocapitalize", h.autocapitalize), f.set_attribute(c, "autocorrect", h.autocorrect);
|
|
251
|
-
}, [() => Z()]), f.delegated("input", c, J), f.delegated("change", c, qe), f.event("blur", c, Y), f.event("focus", c, X), f.delegated("keydown", c, et), f.append(e, t);
|
|
252
|
-
};
|
|
253
|
-
f.if($, (e) => {
|
|
254
|
-
T() === "textarea" ? e(ot) : T() === "password" && Fe() ? e(st, 1) : e(ct, -1);
|
|
255
|
-
});
|
|
256
|
-
var lt = f.sibling($, 2), ut = (e) => {
|
|
257
|
-
var t = ve(), n = f.child(t);
|
|
258
|
-
o(n, { class: "w-4 h-4 shrink-0 text-accent-danger mt-0.5" });
|
|
259
|
-
var i = f.sibling(n, 2), a = f.child(i, !0);
|
|
260
|
-
f.reset(i), f.reset(t), f.template_effect(() => {
|
|
261
|
-
f.set_attribute(t, "id", f.get(K)), f.set_class(i, 1, f.clsx(r.error)), f.set_text(a, O());
|
|
262
|
-
}), f.transition(3, t, () => c, () => ({
|
|
263
|
-
duration: l.normal,
|
|
264
|
-
easing: u.out
|
|
265
|
-
})), f.append(e, t);
|
|
266
|
-
}, dt = (e) => {
|
|
267
|
-
var t = be(), n = f.child(t), i = (e) => {
|
|
268
|
-
var t = ye();
|
|
269
|
-
f.template_effect(() => {
|
|
270
|
-
f.set_attribute(t, "src", A() || Oe()), f.set_attribute(t, "alt", f.get(B).helperIconAlt);
|
|
271
|
-
}), f.append(e, t);
|
|
272
|
-
};
|
|
273
|
-
f.if(n, (e) => {
|
|
274
|
-
(A() || Oe()) && e(i);
|
|
275
|
-
});
|
|
276
|
-
var a = f.sibling(n, 2), o = f.child(a, !0);
|
|
277
|
-
f.reset(a), f.reset(t), f.template_effect(() => {
|
|
278
|
-
f.set_class(t, 1, `mt-2 flex items-center ${r.xsMuted} opacity-65`), f.set_text(o, k() || j());
|
|
279
|
-
}), f.append(e, t);
|
|
280
|
-
};
|
|
281
|
-
f.if(lt, (e) => {
|
|
282
|
-
O() ? e(ut) : (k() || j()) && e(dt, 1);
|
|
283
|
-
}), f.reset(at), f.reset(Q), f.append(p, Q), f.pop();
|
|
284
|
-
}
|
|
285
|
-
f.delegate([
|
|
286
|
-
"input",
|
|
287
|
-
"change",
|
|
288
|
-
"click",
|
|
289
|
-
"keydown"
|
|
290
|
-
]);
|
|
291
|
-
//#endregion
|
|
292
|
-
export { re as n, ne 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
|