@maizzle/framework 6.0.14 → 6.1.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.
Files changed (63) hide show
  1. package/dist/build.js +2 -1
  2. package/dist/build.js.map +1 -1
  3. package/dist/config/index.js.map +1 -1
  4. package/dist/plugins/postcss/flattenGradients.d.ts +14 -0
  5. package/dist/plugins/postcss/flattenGradients.d.ts.map +1 -0
  6. package/dist/plugins/postcss/flattenGradients.js +144 -0
  7. package/dist/plugins/postcss/flattenGradients.js.map +1 -0
  8. package/dist/plugins/postcss/mergeMediaQueries.js +2 -1
  9. package/dist/plugins/postcss/mergeMediaQueries.js.map +1 -1
  10. package/dist/plugins/postcss/resolveMaizzleImports.js.map +1 -1
  11. package/dist/render/buildTemplate.js +3 -1
  12. package/dist/render/buildTemplate.js.map +1 -1
  13. package/dist/render/createRenderer.js +8 -1
  14. package/dist/render/createRenderer.js.map +1 -1
  15. package/dist/serve.js +18 -9
  16. package/dist/serve.js.map +1 -1
  17. package/dist/server/compatibility.js +2 -1
  18. package/dist/server/compatibility.js.map +1 -1
  19. package/dist/server/linter.js +2 -1
  20. package/dist/server/linter.js.map +1 -1
  21. package/dist/server/sfc-utils.js.map +1 -1
  22. package/dist/server/ui/.vite/deps/@lucide_vue.js +6845 -6285
  23. package/dist/server/ui/.vite/deps/@lucide_vue.js.map +1 -1
  24. package/dist/server/ui/.vite/deps/@vueuse_core.js +2 -6
  25. package/dist/server/ui/.vite/deps/@vueuse_core.js.map +1 -1
  26. package/dist/server/ui/.vite/deps/@vueuse_shared.js +1 -1
  27. package/dist/server/ui/.vite/deps/@vueuse_shared.js.map +1 -1
  28. package/dist/server/ui/.vite/deps/_metadata.json +15 -15
  29. package/dist/server/ui/.vite/deps/culori.js +8 -6
  30. package/dist/server/ui/.vite/deps/culori.js.map +1 -1
  31. package/dist/server/ui/.vite/deps/reka-ui.js +63 -73
  32. package/dist/server/ui/.vite/deps/reka-ui.js.map +1 -1
  33. package/dist/server/ui/.vite/deps/tailwind-merge.js.map +1 -1
  34. package/dist/server/ui/.vite/deps/vue-router.js +5 -13
  35. package/dist/server/ui/.vite/deps/vue-router.js.map +1 -1
  36. package/dist/server/ui/.vite/deps/vue.js +1 -1
  37. package/dist/server/ui/.vite/deps/{vue.runtime.esm-bundler-BHD3r-bP.js → vue.runtime.esm-bundler-S54atuNJ.js} +323 -259
  38. package/dist/server/ui/.vite/deps/{vue.runtime.esm-bundler-BHD3r-bP.js.map → vue.runtime.esm-bundler-S54atuNJ.js.map} +1 -1
  39. package/dist/server/ui/App.vue +82 -36
  40. package/dist/server/ui/components/ui/command/Command.vue +4 -1
  41. package/dist/server/ui/components/ui/command/CommandInput.vue +3 -2
  42. package/dist/transformers/format.js +2 -1
  43. package/dist/transformers/format.js.map +1 -1
  44. package/dist/transformers/inlineCss.js +3 -2
  45. package/dist/transformers/inlineCss.js.map +1 -1
  46. package/dist/transformers/inlineLink.js +2 -1
  47. package/dist/transformers/inlineLink.js.map +1 -1
  48. package/dist/transformers/minify.js +2 -1
  49. package/dist/transformers/minify.js.map +1 -1
  50. package/dist/transformers/tailwindComponent.js +2 -1
  51. package/dist/transformers/tailwindComponent.js.map +1 -1
  52. package/dist/transformers/tailwindcss.d.ts.map +1 -1
  53. package/dist/transformers/tailwindcss.js +72 -2
  54. package/dist/transformers/tailwindcss.js.map +1 -1
  55. package/dist/transformers/urlQuery.js +2 -1
  56. package/dist/transformers/urlQuery.js.map +1 -1
  57. package/dist/utils/compileTailwindCss.d.ts +3 -2
  58. package/dist/utils/compileTailwindCss.d.ts.map +1 -1
  59. package/dist/utils/compileTailwindCss.js +5 -3
  60. package/dist/utils/compileTailwindCss.js.map +1 -1
  61. package/dist/utils/cssBox.js +2 -6
  62. package/dist/utils/cssBox.js.map +1 -1
  63. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { $n as toRef, Bt as onUnmounted, E as withModifiers, Et as mergeDefaults, G as createBaseVNode, Gn as reactive, H as cloneVNode, Hn as onScopeDispose, Ht as openBlock, It as onMounted, J as createElementBlock, Jt as renderList, K as createBlock, L as Teleport, Mt as onBeforeUnmount, N as Fragment, Ot as mergeProps, Pn as getCurrentScope, Qn as toRaw, Qt as resolveDynamicComponent, Sn as withCtx, St as inject, T as withKeys, Tn as withMemo, Vn as markRaw, Vt as onUpdated, W as computed, Wt as provide, Xn as shallowRef, Yn as shallowReadonly, Yt as renderSlot, _n as watch, bn as watchSyncEffect, cn as useAttrs, cr as normalizeStyle, dt as getCurrentInstance, er as toRefs, et as createTextVNode, fn as useSlots, ir as camelize, jt as onBeforeMount, k as Comment, kt as nextTick, ln as useId$1, lr as toDisplayString, mt as h, n as vue_runtime_esm_bundler_exports, nr as triggerRef, on as toHandlers, pt as guardReactiveProps, q as createCommentVNode, qn as ref, rr as unref, rt as defineComponent, sr as normalizeProps, tr as toValue$1, tt as createVNode, ur as toHandlerKey, vn as watchEffect, w as vShow, wn as withDirectives, yn as watchPostEffect, zn as isRef } from "./vue.runtime.esm-bundler-BHD3r-bP.js";
1
+ import { $n as toRef, Bt as onUnmounted, E as withModifiers, Et as mergeDefaults, G as createBaseVNode, Gn as reactive, H as cloneVNode, Hn as onScopeDispose, Ht as openBlock, It as onMounted, J as createElementBlock, Jt as renderList, K as createBlock, L as Teleport, Mt as onBeforeUnmount, N as Fragment, Ot as mergeProps, Pn as getCurrentScope, Qn as toRaw, Qt as resolveDynamicComponent, Sn as withCtx, St as inject, T as withKeys, Tn as withMemo, Vn as markRaw, Vt as onUpdated, W as computed, Wt as provide, Xn as shallowRef, Yn as shallowReadonly, Yt as renderSlot, _n as watch, bn as watchSyncEffect, cn as useAttrs, cr as normalizeStyle, dt as getCurrentInstance, er as toRefs, et as createTextVNode, fn as useSlots, ir as camelize, jt as onBeforeMount, k as Comment, kt as nextTick, ln as useId$1, lr as toDisplayString, mt as h, n as vue_runtime_esm_bundler_exports, nr as triggerRef, on as toHandlers, pt as guardReactiveProps, q as createCommentVNode, qn as ref, rr as unref, rt as defineComponent, sr as normalizeProps, tr as toValue$1, tt as createVNode, ur as toHandlerKey, vn as watchEffect, w as vShow, wn as withDirectives, yn as watchPostEffect, zn as isRef } from "./vue.runtime.esm-bundler-S54atuNJ.js";
2
2
  import { createEventHook, createGlobalState, createSharedComposable, isClient, isIOS, reactiveComputed, reactiveOmit, refAutoReset, syncRef, tryOnBeforeUnmount, tryOnScopeDispose, useDebounceFn, useTimeout, useTimeoutFn, watchOnce } from "./@vueuse_shared.js";
3
3
  import { defaultWindow, onKeyStroke, unrefElement, useActiveElement, useEventListener, useFocusWithin, useMounted, useParentElement, useRafFn, useResizeObserver, useVModel } from "./@vueuse_core.js";
4
4
  //#region ../../home/cosmin/Work/maizzle/framework/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
@@ -552,7 +552,7 @@ function $93635573935797de$export$f297eb839006d339(era, year, month, day) {
552
552
  let monthOffset = -2;
553
553
  if (month <= 2) monthOffset = 0;
554
554
  else if ($93635573935797de$export$553d7fa8e3805fc0(year)) monthOffset = -1;
555
- return $93635573935797de$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
555
+ return 1721425 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
556
556
  }
557
557
  function $93635573935797de$export$553d7fa8e3805fc0(year) {
558
558
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
@@ -1737,7 +1737,7 @@ var $c009cc5f64923054$export$65e01080afcb0799 = class extends $93635573935797de$
1737
1737
  return super.getDaysInMonth($c009cc5f64923054$var$toGregorian(date));
1738
1738
  }
1739
1739
  getYearsInEra(date) {
1740
- return date.era === "before_minguo" ? 9999 : 9999 - $c009cc5f64923054$var$TAIWAN_ERA_START;
1740
+ return date.era === "before_minguo" ? 9999 : 8088;
1741
1741
  }
1742
1742
  constructor(...args) {
1743
1743
  super(...args), this.identifier = "roc";
@@ -1774,7 +1774,7 @@ var $a0cc0739a536c3b1$export$37fccdbfd14c5939 = class {
1774
1774
  return new $2aaf608024c21ca1$export$99faa760c7908e4f(this, year, month + 1, day);
1775
1775
  }
1776
1776
  toJulianDay(date) {
1777
- let jd = $a0cc0739a536c3b1$var$PERSIAN_EPOCH - 1 + 365 * (date.year - 1) + Math.floor((8 * date.year + 21) / 33);
1777
+ let jd = 1948319 + 365 * (date.year - 1) + Math.floor((8 * date.year + 21) / 33);
1778
1778
  jd += $a0cc0739a536c3b1$var$MONTH_START[date.month - 1];
1779
1779
  jd += date.day;
1780
1780
  return jd;
@@ -1974,7 +1974,7 @@ var $fd4f9bc1ba0e49a8$export$5baab4758c231076 = class extends $fd4f9bc1ba0e49a8$
1974
1974
  let endDays = $fd4f9bc1ba0e49a8$var$umalquraYearStart($fd4f9bc1ba0e49a8$var$UMALQURA_YEAR_END);
1975
1975
  if (days < startDays || days > endDays) return super.fromJulianDay(jd);
1976
1976
  else {
1977
- let y = $fd4f9bc1ba0e49a8$var$UMALQURA_YEAR_START - 1;
1977
+ let y = 1299;
1978
1978
  let m = 1;
1979
1979
  let d = 1;
1980
1980
  while (d > 0) {
@@ -2014,7 +2014,7 @@ var $fd4f9bc1ba0e49a8$export$5baab4758c231076 = class extends $fd4f9bc1ba0e49a8$
2014
2014
  //#endregion
2015
2015
  //#region ../../home/cosmin/Work/maizzle/framework/node_modules/@internationalized/date/dist/private/calendars/HebrewCalendar.mjs
2016
2016
  var $f39495b96f9dbac6$var$HEBREW_EPOCH = 347997;
2017
- var $f39495b96f9dbac6$var$DAY_PARTS = 24 * 1080;
2017
+ var $f39495b96f9dbac6$var$DAY_PARTS = 25920;
2018
2018
  var $f39495b96f9dbac6$var$MONTH_PARTS = 765433;
2019
2019
  function $f39495b96f9dbac6$var$isLeapYear(year) {
2020
2020
  return $09ec6a572d60460f$export$842a2cf37af977e1(year * 7 + 1, 19) < 7;
@@ -3291,15 +3291,13 @@ function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
3291
3291
  y: exitPoint.y + padding
3292
3292
  });
3293
3293
  break;
3294
- case "right":
3295
- paddedExitPoints.push({
3296
- x: exitPoint.x - padding,
3297
- y: exitPoint.y - padding
3298
- }, {
3299
- x: exitPoint.x - padding,
3300
- y: exitPoint.y + padding
3301
- });
3302
- break;
3294
+ case "right": paddedExitPoints.push({
3295
+ x: exitPoint.x - padding,
3296
+ y: exitPoint.y - padding
3297
+ }, {
3298
+ x: exitPoint.x - padding,
3299
+ y: exitPoint.y + padding
3300
+ });
3303
3301
  }
3304
3302
  return paddedExitPoints;
3305
3303
  }
@@ -3607,9 +3605,7 @@ function useSelectionBehavior(modelValue, props) {
3607
3605
  case "first":
3608
3606
  value = findValuesBetween(options, firstValue.value, options?.[0]);
3609
3607
  break;
3610
- case "last":
3611
- value = findValuesBetween(options, firstValue.value, options.at(-1));
3612
- break;
3608
+ case "last": value = findValuesBetween(options, firstValue.value, options.at(-1));
3613
3609
  }
3614
3610
  modelValue.value = value;
3615
3611
  }
@@ -3762,8 +3758,9 @@ function withDefault(WrappedComponent, options) {
3762
3758
  return () => {
3763
3759
  const optionProps = typeof options?.props === "function" ? options?.props(ctx.attrs) : options?.props;
3764
3760
  const { forwardRef } = useForwardExpose();
3761
+ const mergedProps = mergeProps(optionProps, ctx.attrs);
3765
3762
  return h(WrappedComponent, {
3766
- ...mergeProps(optionProps, ctx.attrs),
3763
+ ...mergedProps,
3767
3764
  ref: forwardRef
3768
3765
  }, ctx.slots);
3769
3766
  };
@@ -6396,7 +6393,8 @@ var VisuallyHiddenInputBubble_default = /* @__PURE__ */ defineComponent({
6396
6393
  setup(__props) {
6397
6394
  const props = __props;
6398
6395
  const { primitiveElement, currentElement } = usePrimitiveElement();
6399
- watch(computed(() => props.checked ?? props.value), (cur, prev) => {
6396
+ const valueState = computed(() => props.checked ?? props.value);
6397
+ watch(valueState, (cur, prev) => {
6400
6398
  if (!currentElement.value) return;
6401
6399
  const input = currentElement.value;
6402
6400
  const inputProto = window.HTMLInputElement.prototype;
@@ -7704,12 +7702,14 @@ var Virtualizer = class {
7704
7702
  this.pendingScrollAnchor = null;
7705
7703
  if (anchor && this.scrollElement && this.options.enabled) {
7706
7704
  const [key, _offset, followOnAppend, anchorDelta] = anchor;
7707
- if (key !== null && !followOnAppend) if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) {
7708
- if (anchorDelta !== 0) this._iosDeferredAdjustment += anchorDelta;
7709
- } else this._scrollToOffset(this.getScrollOffset(), {
7710
- adjustments: void 0,
7711
- behavior: void 0
7712
- });
7705
+ if (key !== null && !followOnAppend) {
7706
+ if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) {
7707
+ if (anchorDelta !== 0) this._iosDeferredAdjustment += anchorDelta;
7708
+ } else this._scrollToOffset(this.getScrollOffset(), {
7709
+ adjustments: void 0,
7710
+ behavior: void 0
7711
+ });
7712
+ }
7713
7713
  if (followOnAppend) this.scrollToEnd({ behavior: followOnAppend });
7714
7714
  }
7715
7715
  };
@@ -8059,9 +8059,11 @@ var Virtualizer = class {
8059
8059
  const scrollOffset = this.getScrollOffset();
8060
8060
  const item = this.measurementsCache[index];
8061
8061
  if (!item) return;
8062
- if (align === "auto") if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) align = "end";
8063
- else if (item.start <= scrollOffset + this.options.scrollPaddingStart) align = "start";
8064
- else return [scrollOffset, align];
8062
+ if (align === "auto") {
8063
+ if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) align = "end";
8064
+ else if (item.start <= scrollOffset + this.options.scrollPaddingStart) align = "start";
8065
+ else return [scrollOffset, align];
8066
+ }
8065
8067
  if (align === "end" && index === this.options.count - 1) return [this.getMaxScrollOffset(), align];
8066
8068
  const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
8067
8069
  return [this.getOffsetForAlignment(toOffset, align, item.size), align];
@@ -8386,9 +8388,10 @@ var ListboxVirtualizer_default = /* @__PURE__ */ defineComponent({
8386
8388
  virtualizer: virtualizer.value,
8387
8389
  virtualItem: item
8388
8390
  })[0];
8391
+ const targetNode = defaultNode.type === Fragment && Array.isArray(defaultNode.children) ? defaultNode.children.find((child) => typeof child.type !== "symbol") : defaultNode;
8389
8392
  return {
8390
8393
  item,
8391
- is: cloneVNode(defaultNode.type === Fragment && Array.isArray(defaultNode.children) ? defaultNode.children.find((child) => typeof child.type !== "symbol") : defaultNode, {
8394
+ is: cloneVNode(targetNode, {
8392
8395
  "key": `${item.key}`,
8393
8396
  "data-index": item.index,
8394
8397
  "aria-setsize": props.options.length,
@@ -8458,9 +8461,7 @@ var ListboxVirtualizer_default = /* @__PURE__ */ defineComponent({
8458
8461
  case "first":
8459
8462
  value = findValuesBetween(props.options, rootContext.firstValue.value, props.options?.[0]);
8460
8463
  break;
8461
- case "last":
8462
- value = findValuesBetween(props.options, rootContext.firstValue.value, props.options.at(-1));
8463
- break;
8464
+ case "last": value = findValuesBetween(props.options, rootContext.firstValue.value, props.options.at(-1));
8464
8465
  }
8465
8466
  rootContext.modelValue.value = value;
8466
8467
  }
@@ -8852,9 +8853,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
8852
8853
  case "start":
8853
8854
  coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
8854
8855
  break;
8855
- case "end":
8856
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
8857
- break;
8856
+ case "end": coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
8858
8857
  }
8859
8858
  return coords;
8860
8859
  }
@@ -9089,9 +9088,7 @@ var flip$1 = function(options) {
9089
9088
  if (placement) resetPlacement = placement;
9090
9089
  break;
9091
9090
  }
9092
- case "initialPlacement":
9093
- resetPlacement = initialPlacement;
9094
- break;
9091
+ case "initialPlacement": resetPlacement = initialPlacement;
9095
9092
  }
9096
9093
  if (placement !== resetPlacement) return { reset: { placement: resetPlacement } };
9097
9094
  }
@@ -9543,9 +9540,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
9543
9540
  const clientRect = element.getBoundingClientRect();
9544
9541
  const domElement = unwrapElement$1(element);
9545
9542
  let scale = createCoords(1);
9546
- if (includeScale) if (offsetParent) {
9547
- if (isElement(offsetParent)) scale = getScale(offsetParent);
9548
- } else scale = getScale(element);
9543
+ if (includeScale) {
9544
+ if (offsetParent) {
9545
+ if (isElement(offsetParent)) scale = getScale(offsetParent);
9546
+ } else scale = getScale(element);
9547
+ }
9549
9548
  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
9550
9549
  let x = (clientRect.left + visualOffsets.x) / scale.x;
9551
9550
  let y = (clientRect.top + visualOffsets.y) / scale.y;
@@ -15432,9 +15431,7 @@ function rgbToHsl$1(rgb) {
15432
15431
  case g:
15433
15432
  h = (b - r) / d + 2;
15434
15433
  break;
15435
- case b:
15436
- h = (r - g) / d + 4;
15437
- break;
15434
+ case b: h = (r - g) / d + 4;
15438
15435
  }
15439
15436
  h /= 6;
15440
15437
  }
@@ -15499,9 +15496,7 @@ function rgbToHsb$1(rgb) {
15499
15496
  case g:
15500
15497
  h = (b - r) / d + 2;
15501
15498
  break;
15502
- case b:
15503
- h = (r - g) / d + 4;
15504
- break;
15499
+ case b: h = (r - g) / d + 4;
15505
15500
  }
15506
15501
  h /= 6;
15507
15502
  }
@@ -15558,7 +15553,6 @@ function hsbToRgb$1(hsb) {
15558
15553
  r = v;
15559
15554
  g = p;
15560
15555
  b = q;
15561
- break;
15562
15556
  }
15563
15557
  return {
15564
15558
  space: "rgb",
@@ -15766,9 +15760,7 @@ function rgbToHsl(rgb) {
15766
15760
  case g:
15767
15761
  h = (b - r) / d + 2;
15768
15762
  break;
15769
- case b:
15770
- h = (r - g) / d + 4;
15771
- break;
15763
+ case b: h = (r - g) / d + 4;
15772
15764
  }
15773
15765
  h /= 6;
15774
15766
  }
@@ -15827,9 +15819,7 @@ function rgbToHsb(rgb) {
15827
15819
  case g:
15828
15820
  h = (b - r) / d + 2;
15829
15821
  break;
15830
- case b:
15831
- h = (r - g) / d + 4;
15832
- break;
15822
+ case b: h = (r - g) / d + 4;
15833
15823
  }
15834
15824
  h /= 6;
15835
15825
  }
@@ -15883,7 +15873,6 @@ function hsbToRgb(hsb) {
15883
15873
  r = v;
15884
15874
  g = p;
15885
15875
  b = q;
15886
- break;
15887
15876
  }
15888
15877
  return {
15889
15878
  space: "rgb",
@@ -17122,7 +17111,6 @@ var ColorFieldInput_default = /* @__PURE__ */ defineComponent({
17122
17111
  case "Enter":
17123
17112
  event.preventDefault();
17124
17113
  rootContext.commit();
17125
- break;
17126
17114
  }
17127
17115
  }
17128
17116
  function handleBeforeInput(event) {
@@ -25578,7 +25566,7 @@ function computeSwipeReleaseScalar(params) {
25578
25566
  if (!Number.isFinite(directionalVelocity) || directionalVelocity <= MIN_SWIPE_RELEASE_VELOCITY) return null;
25579
25567
  const durationMs = clamp(remainingDistance / clamp(directionalVelocity, MIN_SWIPE_RELEASE_VELOCITY, MAX_SWIPE_RELEASE_VELOCITY), MIN_SWIPE_RELEASE_DURATION_MS, MAX_SWIPE_RELEASE_DURATION_MS);
25580
25568
  if (!Number.isFinite(durationMs)) return null;
25581
- const scalar = clamp(MIN_SWIPE_RELEASE_SCALAR + (durationMs - MIN_SWIPE_RELEASE_DURATION_MS) / (MAX_SWIPE_RELEASE_DURATION_MS - MIN_SWIPE_RELEASE_DURATION_MS) * (MAX_SWIPE_RELEASE_SCALAR - MIN_SWIPE_RELEASE_SCALAR), MIN_SWIPE_RELEASE_SCALAR, MAX_SWIPE_RELEASE_SCALAR);
25569
+ const scalar = clamp(MIN_SWIPE_RELEASE_SCALAR + (durationMs - MIN_SWIPE_RELEASE_DURATION_MS) / 280 * .9, MIN_SWIPE_RELEASE_SCALAR, MAX_SWIPE_RELEASE_SCALAR);
25582
25570
  if (!Number.isFinite(scalar) || scalar <= 0) return null;
25583
25571
  return scalar;
25584
25572
  }
@@ -32036,6 +32024,10 @@ var NavigationMenuRoot_default = /* @__PURE__ */ defineComponent({
32036
32024
  const dir = useDirection(propDir);
32037
32025
  const isDelaySkipped = refAutoReset(false, skipDelayDuration);
32038
32026
  const skipNextClose = ref(false);
32027
+ const computedDelay = computed(() => {
32028
+ if (modelValue.value !== "" || isDelaySkipped.value) return 150;
32029
+ else return delayDuration.value;
32030
+ });
32039
32031
  const debouncedFn = useDebounceFn((val) => {
32040
32032
  if (typeof val === "string") {
32041
32033
  if (val === "" && skipNextClose.value) {
@@ -32046,10 +32038,7 @@ var NavigationMenuRoot_default = /* @__PURE__ */ defineComponent({
32046
32038
  modelValue.value = val;
32047
32039
  if (val === "") isDelaySkipped.value = true;
32048
32040
  }
32049
- }, computed(() => {
32050
- if (modelValue.value !== "" || isDelaySkipped.value) return 150;
32051
- else return delayDuration.value;
32052
- }));
32041
+ }, computedDelay);
32053
32042
  watchEffect(() => {
32054
32043
  if (!modelValue.value) return;
32055
32044
  const items = getItems().map((i) => i.ref);
@@ -33119,8 +33108,10 @@ function $1dfb119a85e764e5$export$711b50b3c525e0f2(numberFormat, signDisplay, nu
33119
33108
  else {
33120
33109
  let needsPositiveSign = false;
33121
33110
  if (signDisplay === "always") needsPositiveSign = num > 0 || Object.is(num, 0);
33122
- else if (signDisplay === "exceptZero") if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);
33123
- else needsPositiveSign = num > 0;
33111
+ else if (signDisplay === "exceptZero") {
33112
+ if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);
33113
+ else needsPositiveSign = num > 0;
33114
+ }
33124
33115
  if (needsPositiveSign) {
33125
33116
  let negative = numberFormat.format(-num);
33126
33117
  let noSign = numberFormat.format(num);
@@ -33798,9 +33789,7 @@ var NumberFieldInput_default = /* @__PURE__ */ defineComponent({
33798
33789
  event.preventDefault();
33799
33790
  rootContext.handleMinMaxValue("max");
33800
33791
  break;
33801
- case kbd.ENTER:
33802
- rootContext.applyInputValue(event.target?.value);
33803
- break;
33792
+ case kbd.ENTER: rootContext.applyInputValue(event.target?.value);
33804
33793
  }
33805
33794
  }
33806
33795
  function handleWheelEvent(event) {
@@ -36290,7 +36279,8 @@ var ScrollAreaThumb_default = /* @__PURE__ */ defineComponent({
36290
36279
  scrollbarContextVisible.onThumbPositionChange();
36291
36280
  }
36292
36281
  }
36293
- watchOnce(computed(() => scrollbarContextVisible.sizes.value), () => {
36282
+ const sizes = computed(() => scrollbarContextVisible.sizes.value);
36283
+ watchOnce(sizes, () => {
36294
36284
  scrollbarContextVisible.onThumbChange(thumbElement.value);
36295
36285
  if (viewport.value) {
36296
36286
  /**
@@ -38401,9 +38391,7 @@ function calculateDeltaPercentage(event, dragHandleId, direction, initialDragSta
38401
38391
  case "End":
38402
38392
  movement = 100;
38403
38393
  break;
38404
- case "Home":
38405
- movement = -100;
38406
- break;
38394
+ case "Home": movement = -100;
38407
38395
  }
38408
38396
  return movement;
38409
38397
  } else {
@@ -39049,7 +39037,8 @@ function recalculateLayoutForPixelPanels({ layout, panelDataArray, prevGroupSize
39049
39037
  });
39050
39038
  for (let index = 0; index < nextLayout.length; index++) {
39051
39039
  if (pixelIndexSet.has(index)) continue;
39052
- nextLayout[index] = (layout[index] ?? 0) * scaleFactor;
39040
+ const prevSize = layout[index] ?? 0;
39041
+ nextLayout[index] = prevSize * scaleFactor;
39053
39042
  }
39054
39043
  const total = nextLayout.reduce((sum, size) => sum + size, 0);
39055
39044
  if (total > 0 && Math.abs(total - 100) > 1e-9) {
@@ -39069,7 +39058,8 @@ function validatePanelGroupLayout({ layout: prevLayout, panelConstraints }) {
39069
39058
  for (let index = 0; index < panelConstraints.length; index++) {
39070
39059
  const unsafeSize = nextLayout[index];
39071
39060
  assert(unsafeSize != null);
39072
- nextLayout[index] = 100 / nextLayoutTotalSize * unsafeSize;
39061
+ const safeSize = 100 / nextLayoutTotalSize * unsafeSize;
39062
+ nextLayout[index] = safeSize;
39073
39063
  }
39074
39064
  }
39075
39065
  let remainingSize = 0;