@getmicdrop/venue-calendar 4.3.58 → 4.3.59

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 (34) hide show
  1. package/README.md +818 -818
  2. package/dist/{CalendarFoundryView-apVO50Ap.js → CalendarFoundryView-C2le5l-k.js} +2585 -2517
  3. package/dist/{PhoneInput-oGG1WJii.js → PhoneInput-CsV2iC8B.js} +202 -202
  4. package/dist/types/index.d.ts +597 -597
  5. package/dist/venue-calendar.css +1 -1
  6. package/dist/venue-calendar.es.js +3 -3
  7. package/dist/venue-calendar.iife.js +5 -5
  8. package/dist/venue-calendar.umd.js +50 -50
  9. package/package.json +2 -2
  10. package/src/lib/theme.js +222 -222
  11. /package/dist/locales/{4.3.58 → 4.3.59}/flow/de.js +0 -0
  12. /package/dist/locales/{4.3.58 → 4.3.59}/flow/es.js +0 -0
  13. /package/dist/locales/{4.3.58 → 4.3.59}/flow/fr.js +0 -0
  14. /package/dist/locales/{4.3.58 → 4.3.59}/flow/id.js +0 -0
  15. /package/dist/locales/{4.3.58 → 4.3.59}/flow/it.js +0 -0
  16. /package/dist/locales/{4.3.58 → 4.3.59}/flow/ja.js +0 -0
  17. /package/dist/locales/{4.3.58 → 4.3.59}/flow/ko.js +0 -0
  18. /package/dist/locales/{4.3.58 → 4.3.59}/flow/nl.js +0 -0
  19. /package/dist/locales/{4.3.58 → 4.3.59}/flow/pl.js +0 -0
  20. /package/dist/locales/{4.3.58 → 4.3.59}/flow/pt-br.js +0 -0
  21. /package/dist/locales/{4.3.58 → 4.3.59}/flow/tr.js +0 -0
  22. /package/dist/locales/{4.3.58 → 4.3.59}/flow/zh.js +0 -0
  23. /package/dist/locales/{4.3.58 → 4.3.59}/main/de.js +0 -0
  24. /package/dist/locales/{4.3.58 → 4.3.59}/main/es.js +0 -0
  25. /package/dist/locales/{4.3.58 → 4.3.59}/main/fr.js +0 -0
  26. /package/dist/locales/{4.3.58 → 4.3.59}/main/id.js +0 -0
  27. /package/dist/locales/{4.3.58 → 4.3.59}/main/it.js +0 -0
  28. /package/dist/locales/{4.3.58 → 4.3.59}/main/ja.js +0 -0
  29. /package/dist/locales/{4.3.58 → 4.3.59}/main/ko.js +0 -0
  30. /package/dist/locales/{4.3.58 → 4.3.59}/main/nl.js +0 -0
  31. /package/dist/locales/{4.3.58 → 4.3.59}/main/pl.js +0 -0
  32. /package/dist/locales/{4.3.58 → 4.3.59}/main/pt-br.js +0 -0
  33. /package/dist/locales/{4.3.58 → 4.3.59}/main/tr.js +0 -0
  34. /package/dist/locales/{4.3.58 → 4.3.59}/main/zh.js +0 -0
@@ -2,15 +2,15 @@ import { c as e, d as t, h as n, m as r, p as i, v as a } from "./sizing-CFDo_qh
2
2
  import { t as o } from "./ChevronDownOutline-D7YDiKBF.js";
3
3
  import { t as s } from "./ExclamationCircleOutline-D3XbhOwM.js";
4
4
  import { d as c, i as l, n as u, r as d } from "./z-index-Bo0dqmiq.js";
5
- import { t as ee } from "./portal-BZBgqs8B.js";
6
- import { t as f } from "./floatingPosition-DXLeLxPY.js";
7
- import { t as p } from "./RequiredIndicator-CYcnRFsA.js";
8
- import { a as m, c as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S, u as C } from "./phoneUtils-CS66SHie.js";
5
+ import { t as f } from "./portal-BZBgqs8B.js";
6
+ import { t as p } from "./floatingPosition-DXLeLxPY.js";
7
+ import { t as m } from "./RequiredIndicator-CYcnRFsA.js";
8
+ import { a as h, c as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./phoneUtils-CS66SHie.js";
9
9
  import "svelte/internal/disclose-version";
10
- import * as w from "svelte/internal/client";
11
- import { onMount as te, tick as T, untrack as E } from "svelte";
10
+ import * as T from "svelte/internal/client";
11
+ import { onMount as ee, tick as E, untrack as D } from "svelte";
12
12
  //#region node_modules/@getmicdrop/svelte-components/dist/recipes/inputs/phoneInput/countryData.js
13
- var D = [
13
+ var O = [
14
14
  {
15
15
  code: "US",
16
16
  name: "United States",
@@ -1210,126 +1210,126 @@ var D = [
1210
1210
  flag: "🇿🇼"
1211
1211
  }
1212
1212
  ];
1213
- function O(e) {
1214
- return D.find((t) => t.code === e);
1213
+ function k(e) {
1214
+ return O.find((t) => t.code === e);
1215
1215
  }
1216
1216
  //#endregion
1217
1217
  //#region node_modules/@getmicdrop/svelte-components/dist/recipes/inputs/phoneInput/CountrySelector.svelte
1218
- var k = w.from_html("<li role=\"option\"><span class=\"type-subheading\"> </span> <span class=\"flex-1\"> </span> <span> </span></li>"), A = w.from_html("<div> </div>"), ne = w.from_html("<div class=\"flex flex-col w-72 bg-card border border-stroke-primary rounded-lg shadow-lg overflow-hidden\" role=\"listbox\" tabindex=\"-1\"><div class=\"p-2 border-b border-border\"><input type=\"text\" class=\"w-full px-3 py-2 type-body bg-bg-secondary border border-stroke-primary rounded-lg tone-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring placeholder-muted-foreground\" data-purpose=\"ui-only\"/></div> <div class=\"flex-1 min-h-0 overflow-y-auto py-1\"></div></div>"), j = w.from_html("<div class=\"relative shrink-0\"><button type=\"button\" aria-haspopup=\"listbox\"><span class=\"type-subheading\"> </span> <span> </span> <!></button> <!></div>");
1219
- function M(e, t) {
1220
- w.push(t, !0);
1218
+ var A = T.from_html("<li role=\"option\"><span class=\"type-subheading\"> </span> <span class=\"flex-1\"> </span> <span> </span></li>"), j = T.from_html("<div> </div>"), te = T.from_html("<div class=\"flex flex-col w-72 bg-card border border-stroke-primary rounded-lg shadow-lg overflow-hidden\" role=\"listbox\" tabindex=\"-1\"><div class=\"p-2 border-b border-border\"><input type=\"text\" class=\"w-full px-3 py-2 type-body bg-bg-secondary border border-stroke-primary rounded-lg tone-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring placeholder-muted-foreground\" data-purpose=\"ui-only\"/></div> <div class=\"flex-1 min-h-0 overflow-y-auto py-1\"></div></div>"), M = T.from_html("<div class=\"relative shrink-0\"><button type=\"button\" aria-haspopup=\"listbox\"><span class=\"type-subheading\"> </span> <span> </span> <!></button> <!></div>");
1219
+ function N(e, t) {
1220
+ T.push(t, !0);
1221
1221
  let n = {
1222
1222
  searchPlaceholder: "Search...",
1223
1223
  noResults: "No countries found",
1224
1224
  countrySelector: "Select country"
1225
- }, i = w.prop(t, "country", 31, () => w.proxy(D.find((e) => e.code === "US"))), s = w.prop(t, "disabled", 3, !1), c = w.prop(t, "size", 3, "md"), u = w.prop(t, "labels", 19, () => ({})), d = w.derived(() => a(n, u())), p = w.state(!1), m = w.state(""), h = w.state(null), g = w.state(null), _ = w.state(null), v = w.state(-1), y = Math.random().toString(36).substring(2, 9), b = w.derived(() => {
1226
- if (!w.get(m)) return D;
1227
- let e = w.get(m).toLowerCase();
1228
- return D.filter((t) => t.name.toLowerCase().includes(e) || t.dialCode.includes(e) || t.code.toLowerCase().includes(e));
1229
- }), x = {
1225
+ }, s = T.prop(t, "country", 31, () => T.proxy(O.find((e) => e.code === "US"))), c = T.prop(t, "disabled", 3, !1), u = T.prop(t, "size", 3, "md"), d = T.prop(t, "labels", 19, () => ({})), m = T.derived(() => a(n, d())), h = T.state(!1), g = T.state(""), _ = T.state(null), v = T.state(null), y = T.state(null), b = T.state(-1), x = Math.random().toString(36).substring(2, 9), S = T.derived(() => {
1226
+ if (!T.get(g)) return O;
1227
+ let e = T.get(g).toLowerCase();
1228
+ return O.filter((t) => t.name.toLowerCase().includes(e) || t.dialCode.includes(e) || t.code.toLowerCase().includes(e));
1229
+ }), C = {
1230
1230
  sm: "h-9 px-2 type-body gap-1",
1231
1231
  md: "h-10 px-2.5 type-body gap-1.5",
1232
1232
  lg: "h-12 px-3 type-bodyLarge gap-2"
1233
- }, S = w.derived(() => x[c()] || x.md);
1234
- async function C() {
1235
- s() || (w.set(p, !w.get(p)), w.get(p) && (w.set(m, ""), w.set(v, -1), window.dispatchEvent(new CustomEvent("select-opened", { detail: { instanceId: y } })), await T(), w.get(_)?.focus()));
1233
+ }, w = T.derived(() => C[u()] || C.md);
1234
+ async function D() {
1235
+ c() || (T.set(h, !T.get(h)), T.get(h) && (T.set(g, ""), T.set(b, -1), window.dispatchEvent(new CustomEvent("select-opened", { detail: { instanceId: x } })), await E(), T.get(y)?.focus()));
1236
1236
  }
1237
- function E(e) {
1238
- e.detail.instanceId !== y && w.get(p) && O();
1237
+ function k(e) {
1238
+ e.detail.instanceId !== x && T.get(h) && N();
1239
1239
  }
1240
- function O() {
1241
- w.set(p, !1), w.set(m, ""), w.set(v, -1);
1240
+ function N() {
1241
+ T.set(h, !1), T.set(g, ""), T.set(b, -1);
1242
1242
  }
1243
- function M(e) {
1244
- i(e), O(), w.get(h)?.focus(), t.onselect?.(e);
1243
+ function P(e) {
1244
+ s(e), N(), T.get(_)?.focus(), t.onselect?.(e);
1245
1245
  }
1246
- function N(e) {
1247
- if (!s()) switch (e.key) {
1246
+ function F(e) {
1247
+ if (!c()) switch (e.key) {
1248
1248
  case "Enter":
1249
- e.preventDefault(), w.get(p) && w.get(v) >= 0 && w.get(v) < w.get(b).length ? M(w.get(b)[w.get(v)]) : w.get(p) || C();
1249
+ e.preventDefault(), T.get(h) && T.get(b) >= 0 && T.get(b) < T.get(S).length ? P(T.get(S)[T.get(b)]) : T.get(h) || D();
1250
1250
  break;
1251
1251
  case "ArrowDown":
1252
- e.preventDefault(), w.get(p) ? (w.set(v, Math.min(w.get(v) + 1, w.get(b).length - 1), !0), P()) : C();
1252
+ e.preventDefault(), T.get(h) ? (T.set(b, Math.min(T.get(b) + 1, T.get(S).length - 1), !0), I()) : D();
1253
1253
  break;
1254
1254
  case "ArrowUp":
1255
- e.preventDefault(), w.get(p) && (w.set(v, Math.max(w.get(v) - 1, 0), !0), P());
1255
+ e.preventDefault(), T.get(h) && (T.set(b, Math.max(T.get(b) - 1, 0), !0), I());
1256
1256
  break;
1257
1257
  case "Escape":
1258
- if (!w.get(p)) break;
1259
- e.preventDefault(), O(), w.get(h)?.focus();
1258
+ if (!T.get(h)) break;
1259
+ e.preventDefault(), N(), T.get(_)?.focus();
1260
1260
  break;
1261
- case "Tab": O();
1261
+ case "Tab": N();
1262
1262
  }
1263
1263
  }
1264
- function P() {
1265
- T().then(() => {
1266
- (w.get(g)?.querySelector(`[data-index="${w.get(v)}"]`))?.scrollIntoView({ block: "nearest" });
1264
+ function I() {
1265
+ E().then(() => {
1266
+ (T.get(v)?.querySelector(`[data-index="${T.get(b)}"]`))?.scrollIntoView({ block: "nearest" });
1267
1267
  });
1268
1268
  }
1269
- function F(e) {
1270
- if (!w.get(p)) return;
1271
- let t = e.target, n = w.get(h) && !w.get(h).contains(t), r = !w.get(g) || !w.get(g).contains(t);
1272
- n && r && O();
1269
+ function L(e) {
1270
+ if (!T.get(h)) return;
1271
+ let t = e.target, n = T.get(_) && !T.get(_).contains(t), r = !T.get(v) || !T.get(v).contains(t);
1272
+ n && r && N();
1273
1273
  }
1274
- te(() => (document.addEventListener("click", F, !0), window.addEventListener("select-opened", E), () => {
1275
- document.removeEventListener("click", F, !0), window.removeEventListener("select-opened", E);
1274
+ ee(() => (document.addEventListener("click", L, !0), window.addEventListener("select-opened", k), () => {
1275
+ document.removeEventListener("click", L, !0), window.removeEventListener("select-opened", k);
1276
1276
  }));
1277
- var I = j(), L = w.child(I), R = w.child(L), z = w.child(R, !0);
1278
- w.reset(R);
1279
- var B = w.sibling(R, 2), V = w.child(B, !0);
1280
- w.reset(B);
1281
- var re = w.sibling(B, 2);
1282
- {
1283
- let e = w.derived(() => r.iconMuted), t = w.derived(() => w.get(p) ? "rotate-180" : "");
1284
- o(re, { get class() {
1285
- return `w-3 h-3 shrink-0 ${w.get(e) ?? ""} transition-transform duration-fast ${w.get(t) ?? ""}`;
1277
+ var R = M(), z = T.child(R), B = T.child(z), ne = T.child(B, !0);
1278
+ T.reset(B);
1279
+ var V = T.sibling(B, 2), re = T.child(V, !0);
1280
+ T.reset(V);
1281
+ var ie = T.sibling(V, 2);
1282
+ {
1283
+ let e = T.derived(() => r.iconMuted), t = T.derived(() => T.get(h) ? "rotate-180" : "");
1284
+ o(ie, { get class() {
1285
+ return `w-3 h-3 shrink-0 ${T.get(e) ?? ""} transition-transform duration-fast ${T.get(t) ?? ""}`;
1286
1286
  } });
1287
1287
  }
1288
- w.reset(L), w.bind_this(L, (e) => w.set(h, e), () => w.get(h));
1289
- var ie = w.sibling(L, 2), ae = (e) => {
1290
- var t = ne(), n = w.child(t), a = w.child(n);
1291
- w.remove_input_defaults(a), w.bind_this(a, (e) => w.set(_, e), () => w.get(_)), w.reset(n);
1292
- var o = w.sibling(n, 2);
1293
- w.each(o, 23, () => w.get(b), (e) => e.code, (e, t, n) => {
1294
- var a = k(), o = w.child(a), s = w.child(o, !0);
1295
- w.reset(o);
1296
- var c = w.sibling(o, 2), l = w.child(c, !0);
1297
- w.reset(c);
1298
- var u = w.sibling(c, 2), d = w.child(u, !0);
1299
- w.reset(u), w.reset(a), w.template_effect(() => {
1300
- w.set_class(a, 1, `flex items-center gap-3 px-3 py-2 cursor-pointer ${r.sm} transition-colors ${w.get(t).code === i().code ? "" : r.textMuted} ${w.get(n) === w.get(v) ? "bg-muted" : "hover:bg-muted"}`), w.set_attribute(a, "aria-selected", w.get(t).code === i().code), w.set_attribute(a, "data-index", w.get(n)), w.set_text(s, w.get(t).flag), w.set_text(l, w.get(t).name), w.set_class(u, 1, w.clsx(r.textMuted)), w.set_text(d, w.get(t).dialCode);
1301
- }), w.delegated("click", a, () => M(w.get(t))), w.event("mouseenter", a, () => w.set(v, w.get(n), !0)), w.append(e, a);
1288
+ T.reset(z), T.bind_this(z, (e) => T.set(_, e), () => T.get(_));
1289
+ var ae = T.sibling(z, 2), oe = (e) => {
1290
+ var t = te(), n = T.child(t), a = T.child(n);
1291
+ T.remove_input_defaults(a), T.bind_this(a, (e) => T.set(y, e), () => T.get(y)), T.reset(n);
1292
+ var o = T.sibling(n, 2);
1293
+ T.each(o, 23, () => T.get(S), (e) => e.code, (e, t, n) => {
1294
+ var a = A(), o = T.child(a), c = T.child(o, !0);
1295
+ T.reset(o);
1296
+ var l = T.sibling(o, 2), u = T.child(l, !0);
1297
+ T.reset(l);
1298
+ var d = T.sibling(l, 2), f = T.child(d, !0);
1299
+ T.reset(d), T.reset(a), T.template_effect(() => {
1300
+ T.set_class(a, 1, `flex items-center gap-3 px-3 py-2 cursor-pointer ${r.sm} tone-primary transition-colors ${T.get(t).code === s().code ? `bg-menu-selected ${i.emphasis}` : T.get(n) === T.get(b) ? "bg-muted" : "hover:bg-muted"}`), T.set_attribute(a, "aria-selected", T.get(t).code === s().code), T.set_attribute(a, "data-index", T.get(n)), T.set_text(c, T.get(t).flag), T.set_text(u, T.get(t).name), T.set_class(d, 1, T.clsx(r.textMuted)), T.set_text(f, T.get(t).dialCode);
1301
+ }), T.delegated("click", a, () => P(T.get(t))), T.event("mouseenter", a, () => T.set(b, T.get(n), !0)), T.append(e, a);
1302
1302
  }, (e) => {
1303
- var t = A(), n = w.child(t, !0);
1304
- w.reset(t), w.template_effect(() => {
1305
- w.set_class(t, 1, `px-3 py-4 text-center ${r.textMuted}`), w.set_text(n, w.get(d).noResults);
1306
- }), w.append(e, t);
1307
- }), w.reset(o), w.reset(t), w.bind_this(t, (e) => w.set(g, e), () => w.get(g)), w.action(t, (e, t) => f?.(e, t), () => ({
1308
- reference: w.get(h),
1303
+ var t = j(), n = T.child(t, !0);
1304
+ T.reset(t), T.template_effect(() => {
1305
+ T.set_class(t, 1, `px-3 py-4 text-center ${r.textMuted}`), T.set_text(n, T.get(m).noResults);
1306
+ }), T.append(e, t);
1307
+ }), T.reset(o), T.reset(t), T.bind_this(t, (e) => T.set(v, e), () => T.get(v)), T.action(t, (e, t) => p?.(e, t), () => ({
1308
+ reference: T.get(_),
1309
1309
  maxHeight: 320,
1310
1310
  layer: "modalContent"
1311
- })), w.action(t, (e) => ee?.(e)), w.template_effect(() => {
1312
- w.set_attribute(t, "aria-label", w.get(d).countrySelector), w.set_attribute(a, "placeholder", w.get(d).searchPlaceholder), w.set_attribute(a, "aria-label", w.get(d).searchPlaceholder);
1313
- }), w.delegated("keydown", a, N), w.bind_value(a, () => w.get(m), (e) => w.set(m, e)), w.transition(3, t, () => l, () => ({ origin: "top left" })), w.append(e, t);
1311
+ })), T.action(t, (e) => f?.(e)), T.template_effect(() => {
1312
+ T.set_attribute(t, "aria-label", T.get(m).countrySelector), T.set_attribute(a, "placeholder", T.get(m).searchPlaceholder), T.set_attribute(a, "aria-label", T.get(m).searchPlaceholder);
1313
+ }), T.delegated("keydown", a, F), T.bind_value(a, () => T.get(g), (e) => T.set(g, e)), T.transition(3, t, () => l, () => ({ origin: "top left" })), T.append(e, t);
1314
1314
  };
1315
- w.if(ie, (e) => {
1316
- w.get(p) && e(ae);
1317
- }), w.reset(I), w.template_effect(() => {
1318
- w.set_class(L, 1, `flex items-center ${w.get(S) ?? ""} bg-bg-secondary border border-r-0 rounded-l-lg cursor-pointer transition-colors text-left focus:outline-hidden border-stroke-primary hover:border-interactive-border ${s() ? "opacity-50 cursor-not-allowed" : ""}`), L.disabled = s(), w.set_attribute(L, "aria-expanded", w.get(p)), w.set_attribute(L, "aria-label", w.get(d).countrySelector), w.set_text(z, i().flag), w.set_class(B, 1, `${r.sm} whitespace-nowrap`), w.set_text(V, i().dialCode);
1319
- }), w.delegated("click", L, C), w.delegated("keydown", L, N), w.append(e, I), w.pop();
1315
+ T.if(ae, (e) => {
1316
+ T.get(h) && e(oe);
1317
+ }), T.reset(R), T.template_effect(() => {
1318
+ T.set_class(z, 1, `flex items-center ${T.get(w) ?? ""} bg-bg-secondary border border-r-0 rounded-l-lg cursor-pointer transition-colors text-left focus:outline-hidden border-stroke-primary hover:border-interactive-border ${c() ? "opacity-50 cursor-not-allowed" : ""}`), z.disabled = c(), T.set_attribute(z, "aria-expanded", T.get(h)), T.set_attribute(z, "aria-label", T.get(m).countrySelector), T.set_text(ne, s().flag), T.set_class(V, 1, `${r.sm} whitespace-nowrap`), T.set_text(re, s().dialCode);
1319
+ }), T.delegated("click", z, D), T.delegated("keydown", z, F), T.append(e, R), T.pop();
1320
1320
  }
1321
- w.delegate(["click", "keydown"]);
1321
+ T.delegate(["click", "keydown"]);
1322
1322
  //#endregion
1323
1323
  //#region node_modules/libphonenumber-js/es6/validatePhoneNumberLength.js
1324
- function N(e) {
1324
+ function P(e) {
1325
1325
  "@babel/helpers - typeof";
1326
- return N = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1326
+ return P = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1327
1327
  return typeof e;
1328
1328
  } : function(e) {
1329
1329
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1330
- }, N(e);
1330
+ }, P(e);
1331
1331
  }
1332
- function P(e, t) {
1332
+ function F(e, t) {
1333
1333
  var n = Object.keys(e);
1334
1334
  if (Object.getOwnPropertySymbols) {
1335
1335
  var r = Object.getOwnPropertySymbols(e);
@@ -1339,99 +1339,99 @@ function P(e, t) {
1339
1339
  }
1340
1340
  return n;
1341
1341
  }
1342
- function F(e) {
1342
+ function I(e) {
1343
1343
  for (var t = 1; t < arguments.length; t++) {
1344
1344
  var n = arguments[t] == null ? {} : arguments[t];
1345
- t % 2 ? P(Object(n), !0).forEach(function(t) {
1346
- I(e, t, n[t]);
1347
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P(Object(n)).forEach(function(t) {
1345
+ t % 2 ? F(Object(n), !0).forEach(function(t) {
1346
+ L(e, t, n[t]);
1347
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F(Object(n)).forEach(function(t) {
1348
1348
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1349
1349
  });
1350
1350
  }
1351
1351
  return e;
1352
1352
  }
1353
- function I(e, t, n) {
1354
- return (t = L(t)) in e ? Object.defineProperty(e, t, {
1353
+ function L(e, t, n) {
1354
+ return (t = R(t)) in e ? Object.defineProperty(e, t, {
1355
1355
  value: n,
1356
1356
  enumerable: !0,
1357
1357
  configurable: !0,
1358
1358
  writable: !0
1359
1359
  }) : e[t] = n, e;
1360
1360
  }
1361
- function L(e) {
1362
- var t = R(e, "string");
1363
- return N(t) == "symbol" ? t : t + "";
1361
+ function R(e) {
1362
+ var t = z(e, "string");
1363
+ return P(t) == "symbol" ? t : t + "";
1364
1364
  }
1365
- function R(e, t) {
1366
- if (N(e) != "object" || !e) return e;
1365
+ function z(e, t) {
1366
+ if (P(e) != "object" || !e) return e;
1367
1367
  var n = e[Symbol.toPrimitive];
1368
1368
  if (n !== void 0) {
1369
1369
  var r = n.call(e, t || "default");
1370
- if (N(r) != "object") return r;
1370
+ if (P(r) != "object") return r;
1371
1371
  throw TypeError("@@toPrimitive must return a primitive value.");
1372
1372
  }
1373
1373
  return (t === "string" ? String : Number)(e);
1374
1374
  }
1375
- function z() {
1376
- var e = m(arguments), t = e.text, n = e.options, r = e.metadata;
1377
- n = F(F({}, n), {}, { extract: !1 });
1375
+ function B() {
1376
+ var e = h(arguments), t = e.text, n = e.options, r = e.metadata;
1377
+ n = I(I({}, n), {}, { extract: !1 });
1378
1378
  try {
1379
- var i = y(t, n, r), a = new _(r);
1379
+ var i = b(t, n, r), a = new v(r);
1380
1380
  a.selectNumberingPlan(i.country || i.countryCallingCode);
1381
- var o = h(i.nationalNumber, void 0, a);
1381
+ var o = g(i.nationalNumber, void 0, a);
1382
1382
  if (o !== "IS_POSSIBLE") return o;
1383
1383
  } catch (e) {
1384
1384
  /* istanbul ignore else */
1385
- if (e instanceof x) return e.message;
1385
+ if (e instanceof S) return e.message;
1386
1386
  throw e;
1387
1387
  }
1388
1388
  }
1389
1389
  //#endregion
1390
1390
  //#region node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js
1391
- function B() {
1392
- return C(z, arguments);
1391
+ function ne() {
1392
+ return w(B, arguments);
1393
1393
  }
1394
1394
  //#endregion
1395
1395
  //#region node_modules/@getmicdrop/svelte-components/dist/recipes/inputs/PhoneInput.svelte
1396
- var V = w.from_html("<span> </span>"), re = w.from_html("<div class=\"flex justify-start items-center gap-1\"><label> <!></label> <!> <!></div>"), ie = w.from_html("<button type=\"button\"><span class=\"type-label\"> </span></button>"), ae = w.from_html("<div class=\"flex items-start gap-1.5 mt-2\" role=\"alert\" aria-live=\"assertive\"><!> <p> </p></div>"), oe = w.from_html("<div><span> </span></div>"), se = w.from_html("<div class=\"flex flex-col gap-2\"><!> <div class=\"relative w-full\"><div class=\"flex items-stretch w-full\"><!> <div class=\"relative flex-1 flex items-center\"><input type=\"tel\" inputmode=\"tel\" autocomplete=\"tel\"/> <!></div></div> <!></div></div>");
1396
+ var V = T.from_html("<span> </span>"), re = T.from_html("<div class=\"flex justify-start items-center gap-1\"><label> <!></label> <!> <!></div>"), ie = T.from_html("<button type=\"button\"><span class=\"type-label\"> </span></button>"), ae = T.from_html("<div class=\"flex items-start gap-1.5 mt-2\" role=\"alert\" aria-live=\"assertive\"><!> <p> </p></div>"), oe = T.from_html("<div><span> </span></div>"), se = T.from_html("<div class=\"flex flex-col gap-2\"><!> <div class=\"relative w-full\"><div class=\"flex items-stretch w-full\"><!> <div class=\"relative flex-1 flex items-center\"><input type=\"tel\" inputmode=\"tel\" autocomplete=\"tel\"/> <!></div></div> <!></div></div>");
1397
1397
  function H(o, l) {
1398
- w.push(l, !0);
1399
- let ee = {
1398
+ T.push(l, !0);
1399
+ let f = {
1400
1400
  searchPlaceholder: "Search...",
1401
1401
  noResults: "No countries found",
1402
1402
  countrySelector: "Select country",
1403
1403
  optional: "(optional)"
1404
- }, f = w.prop(l, "value", 15, ""), m = w.prop(l, "label", 3, ""), h = w.prop(l, "id", 3, ""), _ = w.prop(l, "name", 3, ""), y = w.prop(l, "placeholder", 3, ""), x = w.prop(l, "required", 3, !1), C = w.prop(l, "disabled", 3, !1), te = w.prop(l, "optional", 3, !1), T = w.prop(l, "size", 3, "md"), k = w.prop(l, "errorText", 3, ""), A = w.prop(l, "helperText", 3, ""), ne = w.prop(l, "color", 3, "base"), j = w.prop(l, "controlled", 3, !1), N = w.prop(l, "buttonText", 3, null), P = w.prop(l, "buttonDisabled", 3, !1), F = w.prop(l, "onButtonClick", 3, null), I = w.prop(l, "onbuttonclick", 3, null), L = w.prop(l, "defaultCountry", 3, "US"), R = w.prop(l, "labels", 19, () => ({})), z = w.prop(l, "animateFocus", 3, !0), H = w.prop(l, "statusText", 3, ""), ce = w.prop(l, "statusType", 3, "");
1405
- F() && !I() && n("PhoneInput: prop \"onButtonClick\" is deprecated. Use \"onbuttonclick\" instead.");
1406
- let le = w.derived(() => I() ?? F()), U = w.derived(() => a(ee, R())), W = w.state(w.proxy(O(L()) || D.find((e) => e.code === "US"))), G = w.state(""), K = w.state(""), q = w.state(null), J = w.state(!1), ue = w.derived(() => ne() === "red" || !!k()), de = w.derived(() => e[T()] || e.md), fe = w.derived(() => z() && !C());
1407
- w.user_effect(() => {
1408
- let e = f();
1409
- (!w.get(J) || e !== Y) && (pe(e), w.set(J, !0));
1404
+ }, p = T.prop(l, "value", 15, ""), h = T.prop(l, "label", 3, ""), g = T.prop(l, "id", 3, ""), v = T.prop(l, "name", 3, ""), b = T.prop(l, "placeholder", 3, ""), S = T.prop(l, "required", 3, !1), w = T.prop(l, "disabled", 3, !1), ee = T.prop(l, "optional", 3, !1), E = T.prop(l, "size", 3, "md"), A = T.prop(l, "errorText", 3, ""), j = T.prop(l, "helperText", 3, ""), te = T.prop(l, "color", 3, "base"), M = T.prop(l, "controlled", 3, !1), P = T.prop(l, "buttonText", 3, null), F = T.prop(l, "buttonDisabled", 3, !1), I = T.prop(l, "onButtonClick", 3, null), L = T.prop(l, "onbuttonclick", 3, null), R = T.prop(l, "defaultCountry", 3, "US"), z = T.prop(l, "labels", 19, () => ({})), B = T.prop(l, "animateFocus", 3, !0), H = T.prop(l, "statusText", 3, ""), ce = T.prop(l, "statusType", 3, "");
1405
+ I() && !L() && n("PhoneInput: prop \"onButtonClick\" is deprecated. Use \"onbuttonclick\" instead.");
1406
+ let le = T.derived(() => L() ?? I()), U = T.derived(() => a(f, z())), W = T.state(T.proxy(k(R()) || O.find((e) => e.code === "US"))), G = T.state(""), K = T.state(""), q = T.state(null), J = T.state(!1), ue = T.derived(() => te() === "red" || !!A()), de = T.derived(() => e[E()] || e.md), fe = T.derived(() => B() && !w());
1407
+ T.user_effect(() => {
1408
+ let e = p();
1409
+ (!T.get(J) || e !== Y) && (pe(e), T.set(J, !0));
1410
1410
  });
1411
1411
  let Y = "";
1412
1412
  function pe(e) {
1413
1413
  if (!e) {
1414
- w.set(G, ""), w.set(K, "");
1414
+ T.set(G, ""), T.set(K, "");
1415
1415
  return;
1416
1416
  }
1417
- let t = b(e);
1417
+ let t = x(e);
1418
1418
  if (t) {
1419
- let e = O(t.countryCode);
1420
- e && w.set(W, e, !0), w.set(G, t.nationalNumber, !0), w.set(K, S(t.countryCode, t.nationalNumber), !0);
1421
- } else w.set(G, e.replace(/\D/g, ""), !0), w.set(K, w.get(G), !0);
1419
+ let e = k(t.countryCode);
1420
+ e && T.set(W, e, !0), T.set(G, t.nationalNumber, !0), T.set(K, C(t.countryCode, t.nationalNumber), !0);
1421
+ } else T.set(G, e.replace(/\D/g, ""), !0), T.set(K, T.get(G), !0);
1422
1422
  }
1423
1423
  function me(e) {
1424
- let t = e.target, n = e.inputType ?? "", r = w.get(G), i = t.value.replaceAll(/\D/g, ""), a = t.value.slice(0, t.selectionStart ?? t.value.length).replaceAll(/\D/g, "").length;
1425
- i && i === r && (n === "deleteContentBackward" && a > 0 ? (i = i.slice(0, a - 1) + i.slice(a), --a) : n === "deleteContentForward" && a < i.length && (i = i.slice(0, a) + i.slice(a + 1))), n === "insertText" && i.length === r.length + 1 && B(i, w.get(W).code) === "TOO_LONG" && (i = r, a = Math.max(a - 1, 0)), w.set(G, i, !0);
1426
- let o = S(w.get(W).code, i);
1427
- w.set(K, o, !0), t.value = o, t.matches(":focus") && he(t, o, a);
1428
- let s = g(w.get(W).code, i);
1424
+ let t = e.target, n = e.inputType ?? "", r = T.get(G), i = t.value.replaceAll(/\D/g, ""), a = t.value.slice(0, t.selectionStart ?? t.value.length).replaceAll(/\D/g, "").length;
1425
+ i && i === r && (n === "deleteContentBackward" && a > 0 ? (i = i.slice(0, a - 1) + i.slice(a), --a) : n === "deleteContentForward" && a < i.length && (i = i.slice(0, a) + i.slice(a + 1))), n === "insertText" && i.length === r.length + 1 && ne(i, T.get(W).code) === "TOO_LONG" && (i = r, a = Math.max(a - 1, 0)), T.set(G, i, !0);
1426
+ let o = C(T.get(W).code, i);
1427
+ T.set(K, o, !0), t.value = o, t.matches(":focus") && he(t, o, a);
1428
+ let s = _(T.get(W).code, i);
1429
1429
  if (i === r && s === Y) return;
1430
- Y = s, f(s);
1431
- let c = s ? v(s) : !1;
1430
+ Y = s, p(s);
1431
+ let c = s ? y(s) : !1;
1432
1432
  l.onchange?.({
1433
1433
  value: s,
1434
- country: w.get(W).code,
1434
+ country: T.get(W).code,
1435
1435
  isValid: c
1436
1436
  });
1437
1437
  }
@@ -1441,128 +1441,128 @@ function H(o, l) {
1441
1441
  e.setSelectionRange(r, r);
1442
1442
  }
1443
1443
  function ge() {
1444
- w.set(K, S(w.get(W).code, w.get(G)), !0);
1445
- let e = g(w.get(W).code, w.get(G));
1446
- Y = e, f(e);
1447
- let t = e ? v(e) : !1;
1444
+ T.set(K, C(T.get(W).code, T.get(G)), !0);
1445
+ let e = _(T.get(W).code, T.get(G));
1446
+ Y = e, p(e);
1447
+ let t = e ? y(e) : !1;
1448
1448
  l.onchange?.({
1449
1449
  value: e,
1450
- country: w.get(W).code,
1450
+ country: T.get(W).code,
1451
1451
  isValid: t
1452
1452
  });
1453
1453
  }
1454
1454
  let X;
1455
- w.user_effect(() => {
1456
- let e = w.get(W).code, t = w.get(G);
1457
- E(() => {
1458
- if (!w.get(J) || !t) {
1455
+ T.user_effect(() => {
1456
+ let e = T.get(W).code, t = T.get(G);
1457
+ D(() => {
1458
+ if (!T.get(J) || !t) {
1459
1459
  X = e;
1460
1460
  return;
1461
1461
  }
1462
1462
  let n = e !== X;
1463
- X = e, n || g(e, t) !== Y ? ge() : w.set(K, S(e, t), !0);
1463
+ X = e, n || _(e, t) !== Y ? ge() : T.set(K, C(e, t), !0);
1464
1464
  });
1465
1465
  });
1466
1466
  function _e() {
1467
- typeof w.get(le) == "function" && w.get(le)(f());
1467
+ typeof T.get(le) == "function" && T.get(le)(p());
1468
1468
  }
1469
1469
  function ve() {
1470
- w.get(q)?.focus();
1470
+ T.get(q)?.focus();
1471
1471
  }
1472
1472
  function ye() {
1473
- w.set(G, ""), w.set(K, ""), f(""), Y = "";
1473
+ T.set(G, ""), T.set(K, ""), p(""), Y = "";
1474
1474
  }
1475
1475
  var be = {
1476
1476
  focus: ve,
1477
1477
  clear: ye
1478
- }, Z = se(), xe = w.child(Z), Se = (e) => {
1479
- var n = re(), i = w.child(n), a = w.child(i, !0), o = w.sibling(a);
1480
- p(o, { get required() {
1481
- return x();
1482
- } }), w.reset(i);
1483
- var s = w.sibling(i, 2), c = (e) => {
1484
- var t = V(), n = w.child(t);
1485
- w.reset(t), w.template_effect(() => {
1486
- w.set_class(t, 1, `type-label ${ce() === "success" ? "text-accent-success" : ce() === "error" ? "text-accent-danger" : ""}`), w.set_text(n, `(${H() ?? ""})`);
1487
- }), w.append(e, t);
1478
+ }, Z = se(), xe = T.child(Z), Se = (e) => {
1479
+ var n = re(), i = T.child(n), a = T.child(i, !0), o = T.sibling(a);
1480
+ m(o, { get required() {
1481
+ return S();
1482
+ } }), T.reset(i);
1483
+ var s = T.sibling(i, 2), c = (e) => {
1484
+ var t = V(), n = T.child(t);
1485
+ T.reset(t), T.template_effect(() => {
1486
+ T.set_class(t, 1, `type-label ${ce() === "success" ? "text-accent-success" : ce() === "error" ? "text-accent-danger" : ""}`), T.set_text(n, `(${H() ?? ""})`);
1487
+ }), T.append(e, t);
1488
1488
  };
1489
- w.if(s, (e) => {
1489
+ T.if(s, (e) => {
1490
1490
  H() && e(c);
1491
1491
  });
1492
- var l = w.sibling(s, 2), u = (e) => {
1493
- var t = V(), n = w.child(t, !0);
1494
- w.reset(t), w.template_effect(() => {
1495
- w.set_class(t, 1, w.clsx(r.smMuted)), w.set_text(n, w.get(U).optional);
1496
- }), w.append(e, t);
1492
+ var l = T.sibling(s, 2), u = (e) => {
1493
+ var t = V(), n = T.child(t, !0);
1494
+ T.reset(t), T.template_effect(() => {
1495
+ T.set_class(t, 1, T.clsx(r.smMuted)), T.set_text(n, T.get(U).optional);
1496
+ }), T.append(e, t);
1497
1497
  };
1498
- w.if(l, (e) => {
1499
- te() && e(u);
1500
- }), w.reset(n), w.template_effect(() => {
1501
- w.set_attribute(i, "for", h()), w.set_class(i, 1, `${r.label} ${t.tight} sm:${t.none}`), w.set_text(a, m());
1502
- }), w.append(e, n);
1498
+ T.if(l, (e) => {
1499
+ ee() && e(u);
1500
+ }), T.reset(n), T.template_effect(() => {
1501
+ T.set_attribute(i, "for", g()), T.set_class(i, 1, `${r.label} ${t.tight} sm:${t.none}`), T.set_text(a, h());
1502
+ }), T.append(e, n);
1503
1503
  };
1504
- w.if(xe, (e) => {
1505
- m() && e(Se);
1504
+ T.if(xe, (e) => {
1505
+ h() && e(Se);
1506
1506
  });
1507
- var Ce = w.sibling(xe, 2), Q = w.child(Ce), we = w.child(Q);
1507
+ var Ce = T.sibling(xe, 2), Q = T.child(Ce), we = T.child(Q);
1508
1508
  {
1509
- let e = w.derived(() => ({
1510
- searchPlaceholder: w.get(U).searchPlaceholder,
1511
- noResults: w.get(U).noResults,
1512
- countrySelector: w.get(U).countrySelector
1509
+ let e = T.derived(() => ({
1510
+ searchPlaceholder: T.get(U).searchPlaceholder,
1511
+ noResults: T.get(U).noResults,
1512
+ countrySelector: T.get(U).countrySelector
1513
1513
  }));
1514
- M(we, {
1515
- onselect: () => w.get(q)?.focus(),
1514
+ N(we, {
1515
+ onselect: () => T.get(q)?.focus(),
1516
1516
  get disabled() {
1517
- return C();
1517
+ return w();
1518
1518
  },
1519
1519
  get size() {
1520
- return T();
1520
+ return E();
1521
1521
  },
1522
1522
  get labels() {
1523
- return w.get(e);
1523
+ return T.get(e);
1524
1524
  },
1525
1525
  get country() {
1526
- return w.get(W);
1526
+ return T.get(W);
1527
1527
  },
1528
1528
  set country(e) {
1529
- w.set(W, e, !0);
1529
+ T.set(W, e, !0);
1530
1530
  }
1531
1531
  });
1532
1532
  }
1533
- var Te = w.sibling(we, 2), $ = w.child(Te);
1534
- w.remove_input_defaults($), $.required = !1, w.bind_this($, (e) => w.set(q, e), () => w.get(q));
1535
- var Ee = w.sibling($, 2), De = (e) => {
1536
- var t = ie(), n = w.child(t), r = w.child(n, !0);
1537
- w.reset(n), w.reset(t), w.template_effect(() => {
1538
- t.disabled = P(), w.set_attribute(t, "data-testid", l.buttonTestId), w.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 ${A() || k() ? "mb-7" : ""}`), w.set_text(r, N());
1539
- }), w.delegated("click", t, _e), w.append(e, t);
1533
+ var Te = T.sibling(we, 2), $ = T.child(Te);
1534
+ T.remove_input_defaults($), $.required = !1, T.bind_this($, (e) => T.set(q, e), () => T.get(q));
1535
+ var Ee = T.sibling($, 2), De = (e) => {
1536
+ var t = ie(), n = T.child(t), r = T.child(n, !0);
1537
+ T.reset(n), T.reset(t), T.template_effect(() => {
1538
+ t.disabled = F(), T.set_attribute(t, "data-testid", l.buttonTestId), T.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 ${j() || A() ? "mb-7" : ""}`), T.set_text(r, P());
1539
+ }), T.delegated("click", t, _e), T.append(e, t);
1540
1540
  };
1541
- w.if(Ee, (e) => {
1542
- j() && N() && e(De);
1543
- }), w.reset(Te), w.reset(Q);
1544
- var Oe = w.sibling(Q, 2), ke = (e) => {
1545
- var t = ae(), n = w.child(t);
1541
+ T.if(Ee, (e) => {
1542
+ M() && P() && e(De);
1543
+ }), T.reset(Te), T.reset(Q);
1544
+ var Oe = T.sibling(Q, 2), ke = (e) => {
1545
+ var t = ae(), n = T.child(t);
1546
1546
  s(n, { class: "w-4 h-4 shrink-0 text-accent-danger mt-0.5" });
1547
- var i = w.sibling(n, 2), a = w.child(i, !0);
1548
- w.reset(i), w.reset(t), w.template_effect(() => {
1549
- w.set_class(i, 1, w.clsx(r.error)), w.set_text(a, k());
1550
- }), w.transition(3, t, () => c, () => ({
1547
+ var i = T.sibling(n, 2), a = T.child(i, !0);
1548
+ T.reset(i), T.reset(t), T.template_effect(() => {
1549
+ T.set_class(i, 1, T.clsx(r.error)), T.set_text(a, A());
1550
+ }), T.transition(3, t, () => c, () => ({
1551
1551
  duration: u.normal,
1552
1552
  easing: d.out
1553
- })), w.append(e, t);
1553
+ })), T.append(e, t);
1554
1554
  }, Ae = (e) => {
1555
- var t = oe(), n = w.child(t), i = w.child(n, !0);
1556
- w.reset(n), w.reset(t), w.template_effect(() => {
1557
- w.set_class(t, 1, `mt-2 flex items-center ${r.xsMuted} opacity-65`), w.set_text(i, A());
1558
- }), w.append(e, t);
1555
+ var t = oe(), n = T.child(t), i = T.child(n, !0);
1556
+ T.reset(n), T.reset(t), T.template_effect(() => {
1557
+ T.set_class(t, 1, `mt-2 flex items-center ${r.xsMuted} opacity-65`), T.set_text(i, j());
1558
+ }), T.append(e, t);
1559
1559
  };
1560
- return w.if(Oe, (e) => {
1561
- k() ? e(ke) : A() && e(Ae, 1);
1562
- }), w.reset(Ce), w.reset(Z), w.template_effect(() => {
1563
- w.set_attribute($, "id", h()), w.set_attribute($, "name", _()), w.set_attribute($, "placeholder", y()), w.set_value($, w.get(K)), w.set_class($, 1, `${r.body ?? ""} w-full ${w.get(de) ?? ""} bg-bg-secondary border border-l-0 rounded-r-lg ${i.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-hidden focus:ring-4 focus:ring-focus-ring ${w.get(ue) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${j() && N() ? "pr-20" : ""} ${w.get(fe) ? "focus:scale-grow" : ""} ${C() ? "opacity-50 cursor-not-allowed" : ""}`), $.disabled = C(), w.set_attribute($, "aria-required", x()), w.set_attribute($, "data-testid", l["data-testid"]);
1564
- }), w.delegated("input", $, me), w.append(o, Z), w.pop(be);
1560
+ return T.if(Oe, (e) => {
1561
+ A() ? e(ke) : j() && e(Ae, 1);
1562
+ }), T.reset(Ce), T.reset(Z), T.template_effect(() => {
1563
+ T.set_attribute($, "id", g()), T.set_attribute($, "name", v()), T.set_attribute($, "placeholder", b()), T.set_value($, T.get(K)), T.set_class($, 1, `${r.body ?? ""} w-full ${T.get(de) ?? ""} bg-bg-secondary border border-l-0 rounded-r-lg ${i.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-hidden focus:ring-4 focus:ring-focus-ring ${T.get(ue) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${M() && P() ? "pr-20" : ""} ${T.get(fe) ? "focus:scale-grow" : ""} ${w() ? "opacity-50 cursor-not-allowed" : ""}`), $.disabled = w(), T.set_attribute($, "aria-required", S()), T.set_attribute($, "data-testid", l["data-testid"]);
1564
+ }), T.delegated("input", $, me), T.append(o, Z), T.pop(be);
1565
1565
  }
1566
- w.delegate(["input", "click"]);
1566
+ T.delegate(["input", "click"]);
1567
1567
  //#endregion
1568
1568
  export { H as default };