@svgrid/grid 2.5.0 → 2.6.1

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.
@@ -7338,7 +7338,7 @@ function jo(e, t) {
7338
7338
  let e = r.editingCell?.editorType;
7339
7339
  (e === "list" || e === "chips" || e === "select" || e === "rich-select") && !E.get(d) && import("./SvGridDropdown-B1ZcLpgs.js").then((e) => e.n).then((e) => E.set(d, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !E.get(f) && import("./SvDateTimePicker-DSUhIta8.js").then((e) => e.n).then((e) => E.set(f, e.default, !0));
7340
7340
  }), E.user_effect(() => {
7341
- (r.tooltip || r.columnMenuFor || r.contextMenuFor || r.filterMenuFor || r.operatorMenuFor || r.inSuggestFor || r.chooseColumnsPos) && !E.get(p) && import("./GridMenus-BpVcKyUr.js").then((e) => E.set(p, e.default, !0));
7341
+ (r.tooltip || r.columnMenuFor || r.contextMenuFor || r.filterMenuFor || r.operatorMenuFor || r.inSuggestFor || r.chooseColumnsPos) && !E.get(p) && import("./GridMenus-DfmxE2Tb.js").then((e) => E.set(p, e.default, !0));
7342
7342
  });
7343
7343
  let h = E.derived(() => !!r.pivotConfig && r.pivotModeOn), g = E.derived(() => r.pivotResult), _ = E.derived(() => r.allRowsBeforePagination.filter((e) => !r.isGroupRow(e)).map((e) => e.original)), v = E.derived(() => r.filterRowValues), y = E.derived(() => r.filterMenuValues), b = E.derived(() => r.showTooltipFor), x = E.derived(() => r.hideTooltip), S = E.derived(() => r.findHits), C = E.derived(() => r.headerHeight), w = E.derived(() => r.resizingColumnId), T = E.derived(() => r.selectionColumnWidth), D = E.derived(() => r.rowNumberColumnWidth), O = E.derived(() => r.showRowNumbersEffective), k = E.derived(() => r.columnMenuFor), A = E.derived(() => r.filterMenuFor), j = E.derived(() => r.operatorMenuFor), M = E.derived(() => r.viewportWidth), N = E.derived(() => r.viewportHeight), P = E.derived(() => r.scrollMetrics), F = E.derived(() => r.hasVerticalOverflow), I = E.derived(() => r.showGlobalFilterEffective), L = E.derived(() => r.showFilterRowEffective), R = E.derived(() => r.showInlineColumnFilterEffective), z = E.derived(() => r.showRowSelectionEffective), B = E.derived(() => r.grid), V = E.derived(() => r.allColumns), H = E.derived(() => r.headerGroups), ee = E.derived(() => r.groupHeaderRowsWindowed), te = E.derived(() => r.cellPinStyle), U = E.derived(() => r.isColumnPinned), ne = E.derived(() => r.colDragId), re = E.derived(() => r.colDropOnId), ie = E.derived(() => r.colDropSide), ae = E.derived(() => r.onColumnHeaderDragStart), oe = E.derived(() => r.onColumnHeaderDragOver), se = E.derived(() => r.onColumnHeaderDragLeave), ce = E.derived(() => r.onColumnHeaderDrop), le = E.derived(() => r.onColumnHeaderDragEnd), W = E.derived(() => i.rowDragManaged === !0), ue = E.derived(() => r.rowDropIndex), de = E.derived(() => r.rowDropSide), fe = E.derived(() => r.onRowDragStart), pe = E.derived(() => r.onRowDragOver), me = E.derived(() => r.onRowDragLeave), he = E.derived(() => r.onRowDrop), ge = E.derived(() => r.onRowsContainerDragOver), _e = E.derived(() => r.onRowsContainerDrop), ve = E.derived(() => r.onRowDragEnd);
7344
7344
  function ye(e) {
@@ -17738,14 +17738,14 @@ E.delegate(["pointerdown"]);
17738
17738
  //#region src/SvTagsInput.svelte
17739
17739
  var fm = E.from_html("<button>&times;</button>"), pm = E.from_html("<span><span class=\"sv-tags__label\"> </span> <!></span>"), mm = E.from_html("<input type=\"hidden\"/>"), hm = E.from_html("<div><!> <input/> <!></div>"), gm = {
17740
17740
  hash: "svelte-bxmlbr",
17741
- code: ".sv-tags.svelte-bxmlbr {--_accent: var(--sg-accent, #2563eb);--_minh: 34px;--_chip-h: 22px;--_fs: 13px;display:flex;flex-wrap:wrap;gap:5px;align-items:center;width:280px;min-height:var(--_minh);padding:4px 6px;background:var(--sg-input-bg, #fff);color:var(--sg-fg, #0f172a);border:1px solid var(--sg-input-border, var(--sg-border, #cbd5e1));border-radius:var(--sg-radius, 8px);}.sv-tags--sm.svelte-bxmlbr {--_minh: 28px;--_chip-h: 19px;--_fs: 12px;}.sv-tags--lg.svelte-bxmlbr {--_minh: 40px;--_chip-h: 26px;--_fs: 15px;}.sv-tags.svelte-bxmlbr:focus-within {border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent);}.sv-tags.is-invalid.svelte-bxmlbr {border-color:var(--sg-danger, #dc2626);}.sv-tags.is-invalid.svelte-bxmlbr:focus-within {box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger, #dc2626) 22%, transparent);}.sv-tags.is-disabled.svelte-bxmlbr {opacity:0.6;}.sv-tags__chip.svelte-bxmlbr {display:inline-flex;align-items:center;gap:4px;height:var(--_chip-h);padding-block:0;padding-inline:8px 4px;background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);border-radius:5px;font-size:calc(var(--_fs) - 1px);font-weight:600;}.sv-tags__x.svelte-bxmlbr {background:none;border:0;color:inherit;cursor:pointer;font-size:15px;line-height:1;padding:0 2px;opacity:0.7;}.sv-tags__x.svelte-bxmlbr:hover {opacity:1;}.sv-tags__input.svelte-bxmlbr {flex:1;min-width:80px;border:0;background:none;outline:none;color:inherit;font:inherit;font-size:var(--_fs);height:24px;}"
17741
+ code: ".sv-tags.svelte-bxmlbr {--_accent: var(--sg-accent, #2563eb);--_minh: 34px;--_chip-h: 22px;--_fs: 13px;display:flex;flex-wrap:wrap;gap:5px;align-items:center;width:280px;min-height:var(--_minh);padding:4px 6px;background:var(--sg-input-bg, #fff);color:var(--sg-fg, #0f172a);border:1px solid var(--sg-input-border, var(--sg-border, #cbd5e1));border-radius:var(--sg-radius, 8px);}.sv-tags--sm.svelte-bxmlbr {--_minh: 28px;--_chip-h: 19px;--_fs: 12px;}.sv-tags--lg.svelte-bxmlbr {--_minh: 40px;--_chip-h: 26px;--_fs: 15px;}.sv-tags.svelte-bxmlbr:focus-within {border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent);}.sv-tags.is-invalid.svelte-bxmlbr {border-color:var(--sg-danger, #dc2626);}.sv-tags.is-invalid.svelte-bxmlbr:focus-within {box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger, #dc2626) 22%, transparent);}.sv-tags.is-disabled.svelte-bxmlbr {opacity:0.6;}.sv-tags__chip.svelte-bxmlbr {display:inline-flex;align-items:center;gap:4px;height:var(--_chip-h);padding-block:0;padding-inline:8px 4px;background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);border-radius:5px;font-size:calc(var(--_fs) - 1px);font-weight:600;}.sv-tags__x.svelte-bxmlbr {background:none;border:0;color:inherit;cursor:pointer;font-size:15px;line-height:1;padding:0 2px;opacity:0.7;}.sv-tags__x.svelte-bxmlbr:hover {opacity:1;}.sv-tags__input.svelte-bxmlbr {flex:1;min-width:80px;border:0;background:none;outline:none;color:inherit;font:inherit;font-size:var(--_fs);height:24px;}\r\n /* Fill the container - see `block` in SvEditorProps. */.sv-tags.is-block.svelte-bxmlbr {width:100%;max-width:100%;}"
17742
17742
  };
17743
17743
  function _m(e, t) {
17744
17744
  E.push(t, !0), E.append_styles(e, gm);
17745
17745
  let n = {
17746
17746
  add: "Add tag",
17747
17747
  remove: "Remove"
17748
- }, r = E.prop(t, "value", 31, () => E.proxy([])), i = E.prop(t, "placeholder", 3, "Add tag…"), a = E.prop(t, "disabled", 3, !1), o = E.prop(t, "unique", 3, !0), c = E.prop(t, "max", 3, Infinity), l = E.prop(t, "size", 3, "md"), d = E.prop(t, "invalid", 3, !1), f = E.prop(t, "required", 3, !1), p = v("sv-tags"), m = E.derived(() => t.id ?? p), h = E.derived(() => s(n, t.messages)), g = Hu({
17748
+ }, r = E.prop(t, "value", 31, () => E.proxy([])), i = E.prop(t, "placeholder", 3, "Add tag…"), a = E.prop(t, "disabled", 3, !1), o = E.prop(t, "unique", 3, !0), c = E.prop(t, "max", 3, Infinity), l = E.prop(t, "size", 3, "md"), d = E.prop(t, "block", 3, !1), f = E.prop(t, "invalid", 3, !1), p = E.prop(t, "required", 3, !1), m = v("sv-tags"), h = E.derived(() => t.id ?? m), g = E.derived(() => s(n, t.messages)), _ = Hu({
17749
17749
  value: () => r(),
17750
17750
  onChange: (e) => {
17751
17751
  r(e), t.onChange?.(e);
@@ -17754,17 +17754,17 @@ function _m(e, t) {
17754
17754
  unique: () => o(),
17755
17755
  max: () => c(),
17756
17756
  ariaLabel: () => t.ariaLabel,
17757
- addLabel: () => E.get(h).add,
17758
- removeLabel: () => E.get(h).remove,
17759
- id: () => E.get(m),
17760
- invalid: () => d(),
17761
- required: () => f(),
17757
+ addLabel: () => E.get(g).add,
17758
+ removeLabel: () => E.get(g).remove,
17759
+ id: () => E.get(h),
17760
+ invalid: () => f(),
17761
+ required: () => p(),
17762
17762
  error: () => t.error,
17763
17763
  hint: () => t.hint
17764
17764
  });
17765
17765
  u(e, {
17766
17766
  get id() {
17767
- return E.get(m);
17767
+ return E.get(h);
17768
17768
  },
17769
17769
  get label() {
17770
17770
  return t.label;
@@ -17776,7 +17776,7 @@ function _m(e, t) {
17776
17776
  return t.error;
17777
17777
  },
17778
17778
  get required() {
17779
- return f();
17779
+ return p();
17780
17780
  },
17781
17781
  get dir() {
17782
17782
  return t.dir;
@@ -17787,17 +17787,18 @@ function _m(e, t) {
17787
17787
  class: `sv-tags sv-tags--${l() ?? ""}`,
17788
17788
  ...e,
17789
17789
  [E.CLASS]: {
17790
+ "is-block": d(),
17790
17791
  "is-disabled": a(),
17791
- "is-invalid": d()
17792
+ "is-invalid": f()
17792
17793
  }
17793
- }), [() => g.rootProps()], void 0, void 0, "svelte-bxmlbr");
17794
+ }), [() => _.rootProps()], void 0, void 0, "svelte-bxmlbr");
17794
17795
  var s = E.child(o);
17795
17796
  E.each(s, 19, r, (e, t) => e + t, (e, t, n) => {
17796
17797
  var r = pm();
17797
17798
  E.attribute_effect(r, (e) => ({
17798
17799
  class: "sv-tags__chip",
17799
17800
  ...e
17800
- }), [() => g.tagProps(E.get(n))], void 0, void 0, "svelte-bxmlbr");
17801
+ }), [() => _.tagProps(E.get(n))], void 0, void 0, "svelte-bxmlbr");
17801
17802
  var i = E.child(r), o = E.child(i, !0);
17802
17803
  E.reset(i);
17803
17804
  var s = E.sibling(i, 2), c = (e) => {
@@ -17805,7 +17806,7 @@ function _m(e, t) {
17805
17806
  E.attribute_effect(t, (e) => ({
17806
17807
  class: "sv-tags__x",
17807
17808
  ...e
17808
- }), [() => g.removeProps(E.get(n))], void 0, void 0, "svelte-bxmlbr"), E.append(e, t);
17809
+ }), [() => _.removeProps(E.get(n))], void 0, void 0, "svelte-bxmlbr"), E.append(e, t);
17809
17810
  };
17810
17811
  E.if(s, (e) => {
17811
17812
  a() || e(c);
@@ -17816,15 +17817,15 @@ function _m(e, t) {
17816
17817
  class: "sv-tags__input",
17817
17818
  placeholder: r().length ? "" : i(),
17818
17819
  ...e
17819
- }), [() => g.inputProps()], void 0, void 0, "svelte-bxmlbr", !0);
17820
- var u = E.sibling(c, 2), f = (e) => {
17820
+ }), [() => _.inputProps()], void 0, void 0, "svelte-bxmlbr", !0);
17821
+ var u = E.sibling(c, 2), p = (e) => {
17821
17822
  var n = mm();
17822
17823
  E.remove_input_defaults(n), E.template_effect((e) => {
17823
17824
  E.set_attribute(n, "name", t.name), E.set_value(n, e);
17824
17825
  }, [() => r().join(",")]), E.append(e, n);
17825
17826
  };
17826
17827
  E.if(u, (e) => {
17827
- t.name && e(f);
17828
+ t.name && e(p);
17828
17829
  }), E.reset(o), E.append(e, o);
17829
17830
  },
17830
17831
  $$slots: { default: !0 }
@@ -18423,62 +18424,62 @@ E.delegate(["keydown", "input"]);
18423
18424
  //#region src/SvCountryInput.svelte
18424
18425
  var ah = E.from_html("<span class=\"sv-country__dial svelte-q3be9k\"> </span>"), oh = E.from_html("<span class=\"sv-country__flag svelte-q3be9k\" aria-hidden=\"true\"> </span> <span class=\"sv-country__name svelte-q3be9k\"> </span> <!>", 1), sh = E.from_html("<span class=\"sv-country__ph svelte-q3be9k\"> </span>"), ch = E.from_html("<button><!> <svg class=\"sv-country__chev svelte-q3be9k\" viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg></button>"), lh = E.from_html("<div><span class=\"sv-country__flag svelte-q3be9k\" aria-hidden=\"true\"> </span> <span class=\"sv-country__name svelte-q3be9k\"> </span> <span class=\"sv-country__dial svelte-q3be9k\"> </span></div>"), uh = E.from_html("<div class=\"sv-ddl__empty\"> </div>"), dh = E.from_html("<div class=\"sv-country__panel\" role=\"dialog\"><input/> <div></div></div>"), fh = E.from_html("<input type=\"hidden\"/>"), ph = E.from_html("<!> <!> <!>", 1), mh = {
18425
18426
  hash: "svelte-q3be9k",
18426
- code: ".sv-country.svelte-q3be9k {--_accent: var(--sg-accent, #2563eb);display:inline-flex;align-items:center;gap:8px;width:220px;background:var(--sg-input-bg, #fff);color:var(--sg-fg, #0f172a);font:inherit;text-align:start;border:1px solid var(--sg-input-border, var(--sg-border, #cbd5e1));border-radius:var(--sg-radius, 8px);padding:0 10px;cursor:pointer;}.sv-country--sm.svelte-q3be9k {height:28px;font-size:12px;}.sv-country--md.svelte-q3be9k {height:34px;font-size:13px;}.sv-country--lg.svelte-q3be9k {height:40px;font-size:15px;}.sv-country.is-open.svelte-q3be9k, .sv-country.svelte-q3be9k:focus-visible {border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent);outline:none;}.sv-country.is-invalid.svelte-q3be9k {border-color:var(--sg-danger, #dc2626);}.sv-country.is-invalid.is-open.svelte-q3be9k, .sv-country.is-invalid.svelte-q3be9k:focus-visible {box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger, #dc2626) 22%, transparent);}.sv-country.is-disabled.svelte-q3be9k {opacity:0.6;cursor:not-allowed;}.sv-country__flag.svelte-q3be9k {font-size:16px;}.sv-country__name.svelte-q3be9k {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sv-country__ph.svelte-q3be9k {flex:1;color:var(--sg-muted, #94a3b8);}.sv-country__dial.svelte-q3be9k {color:var(--sg-muted, #64748b);font-size:12px;}.sv-country__chev.svelte-q3be9k {color:var(--sg-muted, #64748b);flex:none;}.sv-country__panel {z-index:2147483647;display:flex;flex-direction:column;max-height:340px;padding:6px;background:var(--sg-bg, #fff);color:var(--sg-fg, #0f172a);border:1px solid var(--sg-border, #e2e8f0);border-radius:10px;box-shadow:0 16px 48px -12px rgba(15,23,42,0.35);}.sv-country__search {height:32px;margin-bottom:4px;padding:0 10px;font:inherit;font-size:13px;border:1px solid var(--sg-input-border, #cbd5e1);border-radius:7px;background:var(--sg-input-bg, #fff);color:inherit;outline:none;}.sv-country__list {overflow-y:auto;}.sv-country__opt {display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;cursor:pointer;font-size:13px;}.sv-country__opt.is-active {background:var(--sg-row-hover-bg, #f1f5f9);}.sv-country__opt.is-selected {color:var(--sg-accent, #2563eb);font-weight:600;}"
18427
+ code: ".sv-country.svelte-q3be9k {--_accent: var(--sg-accent, #2563eb);display:inline-flex;align-items:center;gap:8px;width:220px;background:var(--sg-input-bg, #fff);color:var(--sg-fg, #0f172a);font:inherit;text-align:start;border:1px solid var(--sg-input-border, var(--sg-border, #cbd5e1));border-radius:var(--sg-radius, 8px);padding:0 10px;cursor:pointer;}.sv-country--sm.svelte-q3be9k {height:28px;font-size:12px;}.sv-country--md.svelte-q3be9k {height:34px;font-size:13px;}.sv-country--lg.svelte-q3be9k {height:40px;font-size:15px;}.sv-country.is-open.svelte-q3be9k, .sv-country.svelte-q3be9k:focus-visible {border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent);outline:none;}.sv-country.is-invalid.svelte-q3be9k {border-color:var(--sg-danger, #dc2626);}.sv-country.is-invalid.is-open.svelte-q3be9k, .sv-country.is-invalid.svelte-q3be9k:focus-visible {box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger, #dc2626) 22%, transparent);}.sv-country.is-disabled.svelte-q3be9k {opacity:0.6;cursor:not-allowed;}.sv-country__flag.svelte-q3be9k {font-size:16px;}.sv-country__name.svelte-q3be9k {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sv-country__ph.svelte-q3be9k {flex:1;color:var(--sg-muted, #94a3b8);}.sv-country__dial.svelte-q3be9k {color:var(--sg-muted, #64748b);font-size:12px;}.sv-country__chev.svelte-q3be9k {color:var(--sg-muted, #64748b);flex:none;}.sv-country__panel {z-index:2147483647;display:flex;flex-direction:column;max-height:340px;padding:6px;background:var(--sg-bg, #fff);color:var(--sg-fg, #0f172a);border:1px solid var(--sg-border, #e2e8f0);border-radius:10px;box-shadow:0 16px 48px -12px rgba(15,23,42,0.35);}.sv-country__search {height:32px;margin-bottom:4px;padding:0 10px;font:inherit;font-size:13px;border:1px solid var(--sg-input-border, #cbd5e1);border-radius:7px;background:var(--sg-input-bg, #fff);color:inherit;outline:none;}.sv-country__list {overflow-y:auto;}.sv-country__opt {display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;cursor:pointer;font-size:13px;}.sv-country__opt.is-active {background:var(--sg-row-hover-bg, #f1f5f9);}.sv-country__opt.is-selected {color:var(--sg-accent, #2563eb);font-weight:600;}\r\n /* Fill the container - see `block` in SvEditorProps. */.sv-country.is-block.svelte-q3be9k {width:100%;max-width:100%;}"
18427
18428
  };
18428
18429
  function hh(e, t) {
18429
18430
  E.push(t, !0), E.append_styles(e, mh);
18430
18431
  let n = {
18431
18432
  search: "Search countries",
18432
18433
  noResults: "No matches"
18433
- }, r = E.prop(t, "value", 15, null), i = E.prop(t, "showDial", 3, !1), a = E.prop(t, "placeholder", 3, "Select country…"), o = E.prop(t, "disabled", 3, !1), c = E.prop(t, "size", 3, "md"), l = E.prop(t, "invalid", 3, !1), d = E.prop(t, "required", 3, !1), f = v("sv-country"), p = E.derived(() => t.id ?? f), m = E.derived(() => s(n, t.messages)), h = E.state(null), g = E.state(null), _ = E.state(null), y = E.state(E.proxy({
18434
+ }, r = E.prop(t, "value", 15, null), i = E.prop(t, "showDial", 3, !1), a = E.prop(t, "placeholder", 3, "Select country…"), o = E.prop(t, "disabled", 3, !1), c = E.prop(t, "size", 3, "md"), l = E.prop(t, "block", 3, !1), d = E.prop(t, "invalid", 3, !1), f = E.prop(t, "required", 3, !1), p = v("sv-country"), m = E.derived(() => t.id ?? p), h = E.derived(() => s(n, t.messages)), g = E.state(null), _ = E.state(null), y = E.state(null), b = E.state(E.proxy({
18434
18435
  top: 0,
18435
18436
  left: 0,
18436
18437
  width: 0,
18437
18438
  openUpward: !1,
18438
18439
  maxHeight: 0,
18439
18440
  availHeight: 0
18440
- })), b = Yu({
18441
+ })), x = Yu({
18441
18442
  value: () => r(),
18442
18443
  onChange: (e) => {
18443
18444
  r(e), t.onChange?.(e);
18444
18445
  },
18445
18446
  disabled: () => o(),
18446
18447
  ariaLabel: () => t.ariaLabel,
18447
- searchLabel: () => E.get(m).search,
18448
- focusTrigger: () => E.get(h)?.focus(),
18449
- id: () => E.get(p),
18450
- invalid: () => l(),
18451
- required: () => d(),
18448
+ searchLabel: () => E.get(h).search,
18449
+ focusTrigger: () => E.get(g)?.focus(),
18450
+ id: () => E.get(m),
18451
+ invalid: () => d(),
18452
+ required: () => f(),
18452
18453
  error: () => t.error,
18453
18454
  hint: () => t.hint
18454
- }), x = E.derived(() => b.selected);
18455
- function T() {
18456
- E.get(h) && E.set(y, C(E.get(h).getBoundingClientRect(), {
18455
+ }), T = E.derived(() => x.selected);
18456
+ function D() {
18457
+ E.get(g) && E.set(b, C(E.get(g).getBoundingClientRect(), {
18457
18458
  estimatedHeight: 320,
18458
18459
  minWidth: 240
18459
18460
  }), !0);
18460
18461
  }
18461
18462
  E.user_effect(() => {
18462
- if (!b.open) return;
18463
- T(), queueMicrotask(() => E.get(g)?.focus());
18464
- let e = () => T();
18463
+ if (!x.open) return;
18464
+ D(), queueMicrotask(() => E.get(_)?.focus());
18465
+ let e = () => D();
18465
18466
  window.addEventListener("scroll", e, !0), window.addEventListener("resize", e);
18466
18467
  let t = (e) => {
18467
18468
  let t = e.target;
18468
- t && (E.get(h)?.contains(t) || E.get(_)?.contains(t)) || b.close();
18469
+ t && (E.get(g)?.contains(t) || E.get(y)?.contains(t)) || x.close();
18469
18470
  };
18470
18471
  return document.addEventListener("pointerdown", t, !0), () => {
18471
18472
  window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e), document.removeEventListener("pointerdown", t, !0);
18472
18473
  };
18473
18474
  }), E.user_effect(() => {
18474
- if (!b.open) return;
18475
- let e = b.activeIndex;
18476
- queueMicrotask(() => E.get(_)?.querySelector(`[data-idx="${e}"]`)?.scrollIntoView({ block: "nearest" }));
18475
+ if (!x.open) return;
18476
+ let e = x.activeIndex;
18477
+ queueMicrotask(() => E.get(y)?.querySelector(`[data-idx="${e}"]`)?.scrollIntoView({ block: "nearest" }));
18477
18478
  });
18478
- var D = ph(), O = E.first_child(D);
18479
- u(O, {
18479
+ var O = ph(), k = E.first_child(O);
18480
+ u(k, {
18480
18481
  get id() {
18481
- return E.get(p);
18482
+ return E.get(m);
18482
18483
  },
18483
18484
  get label() {
18484
18485
  return t.label;
@@ -18490,7 +18491,7 @@ function hh(e, t) {
18490
18491
  return t.error;
18491
18492
  },
18492
18493
  get required() {
18493
- return d();
18494
+ return f();
18494
18495
  },
18495
18496
  get dir() {
18496
18497
  return t.dir;
@@ -18501,11 +18502,12 @@ function hh(e, t) {
18501
18502
  class: `sv-country sv-country--${c() ?? ""}`,
18502
18503
  ...e,
18503
18504
  [E.CLASS]: {
18504
- "is-open": b.open,
18505
+ "is-block": l(),
18506
+ "is-open": x.open,
18505
18507
  "is-disabled": o(),
18506
- "is-invalid": l()
18508
+ "is-invalid": d()
18507
18509
  }
18508
- }), [() => b.triggerProps()], void 0, void 0, "svelte-q3be9k");
18510
+ }), [() => x.triggerProps()], void 0, void 0, "svelte-q3be9k");
18509
18511
  var r = E.child(n), s = (e) => {
18510
18512
  var t = oh(), n = E.first_child(t), r = E.child(n, !0);
18511
18513
  E.reset(n);
@@ -18513,45 +18515,45 @@ function hh(e, t) {
18513
18515
  E.reset(a);
18514
18516
  var s = E.sibling(a, 2), c = (e) => {
18515
18517
  var t = ah(), n = E.child(t, !0);
18516
- E.reset(t), E.template_effect(() => E.set_text(n, E.get(x).dial)), E.append(e, t);
18518
+ E.reset(t), E.template_effect(() => E.set_text(n, E.get(T).dial)), E.append(e, t);
18517
18519
  };
18518
18520
  E.if(s, (e) => {
18519
18521
  i() && e(c);
18520
18522
  }), E.template_effect((e) => {
18521
- E.set_text(r, e), E.set_text(o, E.get(x).name);
18522
- }, [() => Uu(E.get(x).code)]), E.append(e, t);
18523
+ E.set_text(r, e), E.set_text(o, E.get(T).name);
18524
+ }, [() => Uu(E.get(T).code)]), E.append(e, t);
18523
18525
  }, u = (e) => {
18524
18526
  var t = sh(), n = E.child(t, !0);
18525
18527
  E.reset(t), E.template_effect(() => E.set_text(n, a())), E.append(e, t);
18526
18528
  };
18527
18529
  E.if(r, (e) => {
18528
- E.get(x) ? e(s) : e(u, -1);
18529
- }), E.next(2), E.reset(n), E.bind_this(n, (e) => E.set(h, e), () => E.get(h)), E.append(e, n);
18530
+ E.get(T) ? e(s) : e(u, -1);
18531
+ }), E.next(2), E.reset(n), E.bind_this(n, (e) => E.set(g, e), () => E.get(g)), E.append(e, n);
18530
18532
  },
18531
18533
  $$slots: { default: !0 }
18532
18534
  });
18533
- var k = E.sibling(O, 2), A = (e) => {
18535
+ var A = E.sibling(k, 2), j = (e) => {
18534
18536
  var t = dh();
18535
18537
  let n;
18536
18538
  var r = E.child(t);
18537
18539
  E.attribute_effect(r, (e) => ({
18538
18540
  class: "sv-country__search",
18539
- placeholder: `${E.get(m).search}…`,
18541
+ placeholder: `${E.get(h).search}…`,
18540
18542
  ...e
18541
- }), [() => b.searchProps()], void 0, void 0, "svelte-q3be9k", !0), E.bind_this(r, (e) => E.set(g, e), () => E.get(g));
18543
+ }), [() => x.searchProps()], void 0, void 0, "svelte-q3be9k", !0), E.bind_this(r, (e) => E.set(_, e), () => E.get(_));
18542
18544
  var i = E.sibling(r, 2);
18543
18545
  E.attribute_effect(i, (e) => ({
18544
18546
  class: "sv-country__list",
18545
18547
  ...e
18546
- }), [() => b.listboxProps()], void 0, void 0, "svelte-q3be9k"), E.each(i, 23, () => b.filtered, (e) => e.code, (e, t, n) => {
18548
+ }), [() => x.listboxProps()], void 0, void 0, "svelte-q3be9k"), E.each(i, 23, () => x.filtered, (e) => e.code, (e, t, n) => {
18547
18549
  var r = lh();
18548
18550
  E.attribute_effect(r, (e, t) => ({
18549
18551
  class: "sv-country__opt",
18550
18552
  ...e,
18551
18553
  [E.CLASS]: t
18552
- }), [() => b.optionProps(E.get(n)), () => ({
18553
- "is-active": b.isActive(E.get(n)),
18554
- "is-selected": b.isSelected(E.get(t).code)
18554
+ }), [() => x.optionProps(E.get(n)), () => ({
18555
+ "is-active": x.isActive(E.get(n)),
18556
+ "is-selected": x.isSelected(E.get(t).code)
18555
18557
  })], void 0, void 0, "svelte-q3be9k");
18556
18558
  var i = E.child(r), a = E.child(i, !0);
18557
18559
  E.reset(i);
@@ -18563,26 +18565,26 @@ function hh(e, t) {
18563
18565
  }, [() => Uu(E.get(t).code)]), E.append(e, r);
18564
18566
  }, (e) => {
18565
18567
  var t = uh(), n = E.child(t, !0);
18566
- E.reset(t), E.template_effect(() => E.set_text(n, E.get(m).noResults)), E.append(e, t);
18567
- }), E.reset(i), E.reset(t), E.bind_this(t, (e) => E.set(_, e), () => E.get(_)), E.action(t, (e) => S?.(e)), E.action(t, (e, t) => w?.(e, t), () => ({ up: E.get(y).openUpward })), E.template_effect(() => n = E.set_style(t, "", n, {
18568
+ E.reset(t), E.template_effect(() => E.set_text(n, E.get(h).noResults)), E.append(e, t);
18569
+ }), E.reset(i), E.reset(t), E.bind_this(t, (e) => E.set(y, e), () => E.get(y)), E.action(t, (e) => S?.(e)), E.action(t, (e, t) => w?.(e, t), () => ({ up: E.get(b).openUpward })), E.template_effect(() => n = E.set_style(t, "", n, {
18568
18570
  position: "fixed",
18569
- top: `${E.get(y).top}px`,
18570
- left: `${E.get(y).left}px`,
18571
- "min-width": `${E.get(y).width}px`
18571
+ top: `${E.get(b).top}px`,
18572
+ left: `${E.get(b).left}px`,
18573
+ "min-width": `${E.get(b).width}px`
18572
18574
  })), E.append(e, t);
18573
18575
  };
18574
- E.if(k, (e) => {
18575
- b.open && e(A);
18576
+ E.if(A, (e) => {
18577
+ x.open && e(j);
18576
18578
  });
18577
- var j = E.sibling(k, 2), M = (e) => {
18579
+ var M = E.sibling(A, 2), N = (e) => {
18578
18580
  var n = fh();
18579
18581
  E.remove_input_defaults(n), E.template_effect(() => {
18580
18582
  E.set_attribute(n, "name", t.name), E.set_value(n, r() ?? "");
18581
18583
  }), E.append(e, n);
18582
18584
  };
18583
- E.if(j, (e) => {
18584
- t.name && e(M);
18585
- }), E.append(e, D), E.pop();
18585
+ E.if(M, (e) => {
18586
+ t.name && e(N);
18587
+ }), E.append(e, O), E.pop();
18586
18588
  }
18587
18589
  //#endregion
18588
18590
  //#region src/virtual.ts
@@ -18612,11 +18614,11 @@ function _h(e, t, n, r) {
18612
18614
  //#region src/SvSlider.svelte
18613
18615
  var vh = E.from_html("<span class=\"sv-slider__tick svelte-15m0var\"></span>"), yh = E.from_html("<span class=\"sv-slider__bubble svelte-15m0var\"> </span>"), bh = E.from_html("<span class=\"sv-slider__bubble svelte-15m0var\"> </span>"), xh = E.from_html("<div><!></div> <div><!></div>", 1), Sh = E.from_html("<span class=\"sv-slider__bubble svelte-15m0var\"> </span>"), Ch = E.from_html("<div><!></div>"), wh = E.from_html("<div class=\"sv-slider__scale sv-slider__scale--ends svelte-15m0var\" aria-hidden=\"true\"><span> </span><span> </span></div>"), Th = E.from_html("<span class=\"sv-slider__scale-lbl svelte-15m0var\"> </span>"), Eh = E.from_html("<div class=\"sv-slider__scale svelte-15m0var\" aria-hidden=\"true\"></div>"), Dh = E.from_html("<input type=\"hidden\"/>"), Oh = E.from_html("<div><div><div class=\"sv-slider__fill svelte-15m0var\"></div> <!> <!></div> <!> <!></div>"), kh = {
18614
18616
  hash: "svelte-15m0var",
18615
- code: ".sv-slider.svelte-15m0var {--_accent: var(--sg-accent, #2563eb);--_track: var(--sg-border, #e2e8f0);--_th: 16px;--_trk: 6px;padding:10px;}.sv-slider--sm.svelte-15m0var {--_th: 13px;--_trk: 4px;}.sv-slider--lg.svelte-15m0var {--_th: 20px;--_trk: 8px;}.sv-slider--horizontal.svelte-15m0var {width:240px;}.sv-slider--horizontal.sv-slider--sm.svelte-15m0var {width:180px;}.sv-slider--horizontal.sv-slider--lg.svelte-15m0var {width:300px;}.sv-slider--vertical.svelte-15m0var {height:200px;width:40px;}.sv-slider.is-disabled.svelte-15m0var {opacity:0.5;pointer-events:none;}.sv-slider.is-readonly.svelte-15m0var .sv-slider__track:where(.svelte-15m0var), .sv-slider.is-readonly.svelte-15m0var .sv-slider__thumb:where(.svelte-15m0var) {cursor:default;}.sv-slider__track.svelte-15m0var {position:relative;background:var(--_track);border-radius:999px;cursor:pointer;touch-action:none;}.sv-slider--horizontal.svelte-15m0var .sv-slider__track:where(.svelte-15m0var) {height:var(--_trk);}.sv-slider--vertical.svelte-15m0var .sv-slider__track:where(.svelte-15m0var) {width:var(--_trk);height:100%;margin:0 auto;}.sv-slider__scale.svelte-15m0var {position:relative;height:15px;margin-top:8px;font-size:11px;color:var(--sg-muted, #64748b);font-variant-numeric:tabular-nums;}.sv-slider__scale--ends.svelte-15m0var {display:flex;justify-content:space-between;}.sv-slider__scale-lbl.svelte-15m0var {position:absolute;inset-inline-start:var(--p);transform:translateX(-50%);white-space:nowrap;}.sv-slider__fill.svelte-15m0var {position:absolute;background:var(--_accent);border-radius:999px;}.sv-slider--horizontal.svelte-15m0var .sv-slider__fill:where(.svelte-15m0var) {inset-inline-start:var(--a);inset-inline-end:calc(100% - var(--b));top:0;bottom:0;}.sv-slider--vertical.svelte-15m0var .sv-slider__fill:where(.svelte-15m0var) {bottom:var(--a);top:calc(100% - var(--b));left:0;right:0;}.sv-slider__thumb.svelte-15m0var {position:absolute;width:var(--_th);height:var(--_th);border-radius:50%;background:#fff;border:2px solid var(--_accent);box-shadow:0 1px 3px rgba(0,0,0,0.25);cursor:grab;touch-action:none;}.sv-slider--horizontal.svelte-15m0var .sv-slider__thumb:where(.svelte-15m0var) {inset-inline-start:var(--p);top:50%;transform:translate(-50%, -50%);}.sv-slider--vertical.svelte-15m0var .sv-slider__thumb:where(.svelte-15m0var) {bottom:var(--p);left:50%;transform:translate(-50%, 50%);}.sv-slider__thumb.svelte-15m0var:focus-visible {outline:2px solid var(--sg-focus-ring, var(--_accent));outline-offset:2px;}.sv-slider__thumb.svelte-15m0var:active {cursor:grabbing;}.sv-slider__bubble.svelte-15m0var {position:absolute;bottom:130%;left:50%;transform:translateX(-50%);background:var(--_accent);color:var(--sg-on-accent, #fff);font-size:11px;font-weight:600;padding:2px 6px;border-radius:5px;white-space:nowrap;}.sv-slider__tick.svelte-15m0var {position:absolute;width:2px;height:2px;border-radius:50%;background:var(--sg-muted, #94a3b8);}.sv-slider--horizontal.svelte-15m0var .sv-slider__tick:where(.svelte-15m0var) {inset-inline-start:var(--p);top:50%;transform:translate(-50%, -50%);}.sv-slider--vertical.svelte-15m0var .sv-slider__tick:where(.svelte-15m0var) {bottom:var(--p);left:50%;transform:translate(-50%, 50%);}"
18617
+ code: ".sv-slider.svelte-15m0var {--_accent: var(--sg-accent, #2563eb);--_track: var(--sg-border, #e2e8f0);--_th: 16px;--_trk: 6px;padding:10px;}.sv-slider--sm.svelte-15m0var {--_th: 13px;--_trk: 4px;}.sv-slider--lg.svelte-15m0var {--_th: 20px;--_trk: 8px;}.sv-slider--horizontal.svelte-15m0var {width:240px;}.sv-slider--horizontal.sv-slider--sm.svelte-15m0var {width:180px;}.sv-slider--horizontal.sv-slider--lg.svelte-15m0var {width:300px;}.sv-slider--vertical.svelte-15m0var {height:200px;width:40px;}.sv-slider.is-disabled.svelte-15m0var {opacity:0.5;pointer-events:none;}.sv-slider.is-readonly.svelte-15m0var .sv-slider__track:where(.svelte-15m0var), .sv-slider.is-readonly.svelte-15m0var .sv-slider__thumb:where(.svelte-15m0var) {cursor:default;}.sv-slider__track.svelte-15m0var {position:relative;background:var(--_track);border-radius:999px;cursor:pointer;touch-action:none;}.sv-slider--horizontal.svelte-15m0var .sv-slider__track:where(.svelte-15m0var) {height:var(--_trk);}.sv-slider--vertical.svelte-15m0var .sv-slider__track:where(.svelte-15m0var) {width:var(--_trk);height:100%;margin:0 auto;}.sv-slider__scale.svelte-15m0var {position:relative;height:15px;margin-top:8px;font-size:11px;color:var(--sg-muted, #64748b);font-variant-numeric:tabular-nums;}.sv-slider__scale--ends.svelte-15m0var {display:flex;justify-content:space-between;}.sv-slider__scale-lbl.svelte-15m0var {position:absolute;inset-inline-start:var(--p);transform:translateX(-50%);white-space:nowrap;}.sv-slider__fill.svelte-15m0var {position:absolute;background:var(--_accent);border-radius:999px;}.sv-slider--horizontal.svelte-15m0var .sv-slider__fill:where(.svelte-15m0var) {inset-inline-start:var(--a);inset-inline-end:calc(100% - var(--b));top:0;bottom:0;}.sv-slider--vertical.svelte-15m0var .sv-slider__fill:where(.svelte-15m0var) {bottom:var(--a);top:calc(100% - var(--b));left:0;right:0;}.sv-slider__thumb.svelte-15m0var {position:absolute;width:var(--_th);height:var(--_th);border-radius:50%;background:#fff;border:2px solid var(--_accent);box-shadow:0 1px 3px rgba(0,0,0,0.25);cursor:grab;touch-action:none;}.sv-slider--horizontal.svelte-15m0var .sv-slider__thumb:where(.svelte-15m0var) {inset-inline-start:var(--p);top:50%;transform:translate(-50%, -50%);}.sv-slider--vertical.svelte-15m0var .sv-slider__thumb:where(.svelte-15m0var) {bottom:var(--p);left:50%;transform:translate(-50%, 50%);}.sv-slider__thumb.svelte-15m0var:focus-visible {outline:2px solid var(--sg-focus-ring, var(--_accent));outline-offset:2px;}.sv-slider__thumb.svelte-15m0var:active {cursor:grabbing;}.sv-slider__bubble.svelte-15m0var {position:absolute;bottom:130%;left:50%;transform:translateX(-50%);background:var(--_accent);color:var(--sg-on-accent, #fff);font-size:11px;font-weight:600;padding:2px 6px;border-radius:5px;white-space:nowrap;}.sv-slider__tick.svelte-15m0var {position:absolute;width:2px;height:2px;border-radius:50%;background:var(--sg-muted, #94a3b8);}.sv-slider--horizontal.svelte-15m0var .sv-slider__tick:where(.svelte-15m0var) {inset-inline-start:var(--p);top:50%;transform:translate(-50%, -50%);}.sv-slider--vertical.svelte-15m0var .sv-slider__tick:where(.svelte-15m0var) {bottom:var(--p);left:50%;transform:translate(-50%, 50%);}\r\n /* Fill the container - see `block` in SvEditorProps. */.sv-slider--horizontal.is-block.svelte-15m0var {width:100%;max-width:100%;}"
18616
18618
  };
18617
18619
  function Ah(e, t) {
18618
18620
  E.push(t, !0), E.append_styles(e, kh);
18619
- let n = E.prop(t, "value", 3, 0), r = E.prop(t, "min", 3, 0), i = E.prop(t, "max", 3, 100), a = E.prop(t, "step", 3, 1), o = E.prop(t, "range", 3, !1), s = E.prop(t, "labels", 3, "none"), c = E.prop(t, "showValue", 3, !1), l = E.prop(t, "disabled", 3, !1), d = E.prop(t, "readonly", 3, !1), f = E.prop(t, "size", 3, "md"), p = E.prop(t, "orientation", 3, "horizontal"), m = E.prop(t, "invalid", 3, !1), h = E.prop(t, "required", 3, !1), g = v("sv-slider"), _ = E.derived(() => t.id ?? g), y = E.derived(() => t.dir === "ltr" || t.dir === "rtl" ? t.dir : void 0), b = Dd({
18621
+ let n = E.prop(t, "value", 3, 0), r = E.prop(t, "min", 3, 0), i = E.prop(t, "max", 3, 100), a = E.prop(t, "step", 3, 1), o = E.prop(t, "range", 3, !1), s = E.prop(t, "labels", 3, "none"), c = E.prop(t, "showValue", 3, !1), l = E.prop(t, "disabled", 3, !1), d = E.prop(t, "readonly", 3, !1), f = E.prop(t, "size", 3, "md"), p = E.prop(t, "orientation", 3, "horizontal"), m = E.prop(t, "block", 3, !1), h = E.prop(t, "invalid", 3, !1), g = E.prop(t, "required", 3, !1), _ = v("sv-slider"), y = E.derived(() => t.id ?? _), b = E.derived(() => t.dir === "ltr" || t.dir === "rtl" ? t.dir : void 0), x = Dd({
18620
18622
  value: () => n(),
18621
18623
  onChange: (e) => {
18622
18624
  d() || t.onChange?.(e);
@@ -18628,32 +18630,32 @@ function Ah(e, t) {
18628
18630
  orientation: () => p(),
18629
18631
  disabled: () => l(),
18630
18632
  ariaLabel: () => t.ariaLabel ?? t.label,
18631
- rtl: () => E.get(y) === "rtl",
18632
- id: () => E.get(_),
18633
- invalid: () => m(),
18634
- required: () => h(),
18633
+ rtl: () => E.get(b) === "rtl",
18634
+ id: () => E.get(y),
18635
+ invalid: () => h(),
18636
+ required: () => g(),
18635
18637
  error: () => t.error,
18636
18638
  hint: () => t.hint
18637
- }), x = E.derived(() => b.lo), S = E.derived(() => b.hi), C = (e) => b.percentOf(e), w = E.derived(() => t.ticks ? Array.isArray(t.ticks) ? t.ticks : Array.from({ length: t.ticks }, (e, n) => r() + (i() - r()) / (t.ticks - 1) * n) : []), T = E.derived(() => s() === "all" ? E.get(w).length ? E.get(w) : [r(), i()] : []), D = null;
18638
- function O(e) {
18639
- l() || d() || (b.pointerDown({
18639
+ }), S = E.derived(() => x.lo), C = E.derived(() => x.hi), w = (e) => x.percentOf(e), T = E.derived(() => t.ticks ? Array.isArray(t.ticks) ? t.ticks : Array.from({ length: t.ticks }, (e, n) => r() + (i() - r()) / (t.ticks - 1) * n) : []), D = E.derived(() => s() === "all" ? E.get(T).length ? E.get(T) : [r(), i()] : []), O = null;
18640
+ function k(e) {
18641
+ l() || d() || (x.pointerDown({
18640
18642
  x: e.clientX,
18641
18643
  y: e.clientY
18642
- }, D.getBoundingClientRect()), D?.setPointerCapture(e.pointerId));
18644
+ }, O.getBoundingClientRect()), O?.setPointerCapture(e.pointerId));
18643
18645
  }
18644
- function k(e) {
18645
- b.dragging && b.setFromPointer({
18646
+ function A(e) {
18647
+ x.dragging && x.setFromPointer({
18646
18648
  x: e.clientX,
18647
18649
  y: e.clientY
18648
- }, D.getBoundingClientRect());
18650
+ }, O.getBoundingClientRect());
18649
18651
  }
18650
- function A(e) {
18651
- b.dragging && (b.endDrag(), D?.releasePointerCapture(e.pointerId));
18652
+ function j(e) {
18653
+ x.dragging && (x.endDrag(), O?.releasePointerCapture(e.pointerId));
18652
18654
  }
18653
- let j = (e) => t.formatValue ? t.formatValue(e) : String(e);
18655
+ let M = (e) => t.formatValue ? t.formatValue(e) : String(e);
18654
18656
  u(e, {
18655
18657
  get id() {
18656
- return E.get(_);
18658
+ return E.get(y);
18657
18659
  },
18658
18660
  get label() {
18659
18661
  return t.label;
@@ -18665,7 +18667,7 @@ function Ah(e, t) {
18665
18667
  return t.error;
18666
18668
  },
18667
18669
  get required() {
18668
- return h();
18670
+ return g();
18669
18671
  },
18670
18672
  get dir() {
18671
18673
  return t.dir;
@@ -18673,34 +18675,34 @@ function Ah(e, t) {
18673
18675
  children: (e, n) => {
18674
18676
  var a = Oh();
18675
18677
  let u;
18676
- var m = E.child(a);
18677
- E.attribute_effect(m, (e) => ({
18678
+ var h = E.child(a);
18679
+ E.attribute_effect(h, (e) => ({
18678
18680
  class: "sv-slider__track",
18679
18681
  ...e,
18680
- onpointerdown: O,
18681
- onpointermove: k,
18682
- onpointerup: A,
18683
- onpointercancel: A
18684
- }), [() => b.trackProps()], void 0, void 0, "svelte-15m0var");
18685
- var h = E.child(m);
18686
- let g;
18687
- var _ = E.sibling(h, 2);
18688
- E.each(_, 16, () => E.get(w), (e) => e, (e, t) => {
18682
+ onpointerdown: k,
18683
+ onpointermove: A,
18684
+ onpointerup: j,
18685
+ onpointercancel: j
18686
+ }), [() => x.trackProps()], void 0, void 0, "svelte-15m0var");
18687
+ var g = E.child(h);
18688
+ let _;
18689
+ var v = E.sibling(g, 2);
18690
+ E.each(v, 16, () => E.get(T), (e) => e, (e, t) => {
18689
18691
  var n = vh();
18690
18692
  let r;
18691
- E.template_effect((e) => r = E.set_style(n, "", r, e), [() => ({ "--p": `${C(t)}%` })]), E.append(e, n);
18693
+ E.template_effect((e) => r = E.set_style(n, "", r, e), [() => ({ "--p": `${w(t)}%` })]), E.append(e, n);
18692
18694
  });
18693
- var v = E.sibling(_, 2), M = (e) => {
18695
+ var y = E.sibling(v, 2), N = (e) => {
18694
18696
  var t = xh(), n = E.first_child(t);
18695
18697
  E.attribute_effect(n, (e, t) => ({
18696
18698
  class: "sv-slider__thumb",
18697
18699
  ...e,
18698
18700
  "aria-readonly": d() ? "true" : void 0,
18699
18701
  [E.STYLE]: t
18700
- }), [() => b.thumbProps(0), () => ({ "--p": `${C(E.get(x))}%` })], void 0, void 0, "svelte-15m0var");
18702
+ }), [() => x.thumbProps(0), () => ({ "--p": `${w(E.get(S))}%` })], void 0, void 0, "svelte-15m0var");
18701
18703
  var r = E.child(n), i = (e) => {
18702
18704
  var t = yh(), n = E.child(t, !0);
18703
- E.reset(t), E.template_effect((e) => E.set_text(n, e), [() => j(E.get(x))]), E.append(e, t);
18705
+ E.reset(t), E.template_effect((e) => E.set_text(n, e), [() => M(E.get(S))]), E.append(e, t);
18704
18706
  };
18705
18707
  E.if(r, (e) => {
18706
18708
  c() && e(i);
@@ -18711,75 +18713,76 @@ function Ah(e, t) {
18711
18713
  ...e,
18712
18714
  "aria-readonly": d() ? "true" : void 0,
18713
18715
  [E.STYLE]: t
18714
- }), [() => b.thumbProps(1), () => ({ "--p": `${C(E.get(S))}%` })], void 0, void 0, "svelte-15m0var");
18716
+ }), [() => x.thumbProps(1), () => ({ "--p": `${w(E.get(C))}%` })], void 0, void 0, "svelte-15m0var");
18715
18717
  var o = E.child(a), s = (e) => {
18716
18718
  var t = bh(), n = E.child(t, !0);
18717
- E.reset(t), E.template_effect((e) => E.set_text(n, e), [() => j(E.get(S))]), E.append(e, t);
18719
+ E.reset(t), E.template_effect((e) => E.set_text(n, e), [() => M(E.get(C))]), E.append(e, t);
18718
18720
  };
18719
18721
  E.if(o, (e) => {
18720
18722
  c() && e(s);
18721
18723
  }), E.reset(a), E.append(e, t);
18722
- }, N = (e) => {
18724
+ }, P = (e) => {
18723
18725
  var t = Ch();
18724
18726
  E.attribute_effect(t, (e, t) => ({
18725
18727
  class: "sv-slider__thumb",
18726
18728
  ...e,
18727
18729
  "aria-readonly": d() ? "true" : void 0,
18728
18730
  [E.STYLE]: t
18729
- }), [() => b.thumbProps(0), () => ({ "--p": `${C(E.get(S))}%` })], void 0, void 0, "svelte-15m0var");
18731
+ }), [() => x.thumbProps(0), () => ({ "--p": `${w(E.get(C))}%` })], void 0, void 0, "svelte-15m0var");
18730
18732
  var n = E.child(t), r = (e) => {
18731
18733
  var t = Sh(), n = E.child(t, !0);
18732
- E.reset(t), E.template_effect((e) => E.set_text(n, e), [() => j(E.get(S))]), E.append(e, t);
18734
+ E.reset(t), E.template_effect((e) => E.set_text(n, e), [() => M(E.get(C))]), E.append(e, t);
18733
18735
  };
18734
18736
  E.if(n, (e) => {
18735
18737
  c() && e(r);
18736
18738
  }), E.reset(t), E.append(e, t);
18737
18739
  };
18738
- E.if(v, (e) => {
18739
- o() ? e(M) : e(N, -1);
18740
- }), E.reset(m), E.bind_this(m, (e) => D = e, () => D);
18741
- var P = E.sibling(m, 2), F = (e) => {
18740
+ E.if(y, (e) => {
18741
+ o() ? e(N) : e(P, -1);
18742
+ }), E.reset(h), E.bind_this(h, (e) => O = e, () => O);
18743
+ var F = E.sibling(h, 2), I = (e) => {
18742
18744
  var t = E.comment(), n = E.first_child(t), a = (e) => {
18743
18745
  var t = wh(), n = E.child(t), a = E.child(n, !0);
18744
18746
  E.reset(n);
18745
18747
  var o = E.sibling(n), s = E.child(o, !0);
18746
18748
  E.reset(o), E.reset(t), E.template_effect((e, t) => {
18747
18749
  E.set_text(a, e), E.set_text(s, t);
18748
- }, [() => j(r()), () => j(i())]), E.append(e, t);
18750
+ }, [() => M(r()), () => M(i())]), E.append(e, t);
18749
18751
  }, o = (e) => {
18750
18752
  var t = Eh();
18751
- E.each(t, 20, () => E.get(T), (e) => e, (e, t) => {
18753
+ E.each(t, 20, () => E.get(D), (e) => e, (e, t) => {
18752
18754
  var n = Th();
18753
18755
  let r;
18754
18756
  var i = E.child(n, !0);
18755
18757
  E.reset(n), E.template_effect((e, t) => {
18756
18758
  r = E.set_style(n, "", r, e), E.set_text(i, t);
18757
- }, [() => ({ "--p": `${C(t)}%` }), () => j(t)]), E.append(e, n);
18759
+ }, [() => ({ "--p": `${w(t)}%` }), () => M(t)]), E.append(e, n);
18758
18760
  }), E.reset(t), E.append(e, t);
18759
18761
  };
18760
18762
  E.if(n, (e) => {
18761
18763
  s() === "endpoints" ? e(a) : e(o, -1);
18762
18764
  }), E.append(e, t);
18763
18765
  };
18764
- E.if(P, (e) => {
18765
- s() !== "none" && p() === "horizontal" && e(F);
18766
+ E.if(F, (e) => {
18767
+ s() !== "none" && p() === "horizontal" && e(I);
18766
18768
  });
18767
- var I = E.sibling(P, 2), L = (e) => {
18769
+ var L = E.sibling(F, 2), R = (e) => {
18768
18770
  var n = Dh();
18769
18771
  E.remove_input_defaults(n), E.template_effect(() => {
18770
- E.set_attribute(n, "name", t.name), E.set_value(n, o() ? `${E.get(x)},${E.get(S)}` : E.get(S));
18772
+ E.set_attribute(n, "name", t.name), E.set_value(n, o() ? `${E.get(S)},${E.get(C)}` : E.get(C));
18771
18773
  }), E.append(e, n);
18772
18774
  };
18773
- E.if(I, (e) => {
18774
- t.name && e(L);
18775
+ E.if(L, (e) => {
18776
+ t.name && e(R);
18775
18777
  }), E.reset(a), E.template_effect((e) => {
18776
18778
  u = E.set_class(a, 1, `sv-slider sv-slider--${p() ?? ""} sv-slider--${f() ?? ""}`, "svelte-15m0var", u, {
18779
+ "is-block": m(),
18777
18780
  "is-disabled": l(),
18778
18781
  "is-readonly": d()
18779
- }), E.set_attribute(a, "dir", E.get(y)), g = E.set_style(h, "", g, e), a.dir = a.dir;
18782
+ }), E.set_attribute(a, "dir", E.get(b)), _ = E.set_style(g, "", _, e), a.dir = a.dir;
18780
18783
  }, [() => ({
18781
- "--a": `${o() ? C(E.get(x)) : 0}%`,
18782
- "--b": `${o(), C(E.get(S))}%`
18784
+ "--a": `${o() ? w(E.get(S)) : 0}%`,
18785
+ "--b": `${o(), w(E.get(C))}%`
18783
18786
  })]), E.append(e, a);
18784
18787
  },
18785
18788
  $$slots: { default: !0 }