@varlet/ui 2.18.3 → 2.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/varlet.cjs.js CHANGED
@@ -9454,6 +9454,188 @@ const __sfc__$X = vue.defineComponent({
9454
9454
  });
9455
9455
  __sfc__$X.render = __render__$W;
9456
9456
  var stdin_default$2w = __sfc__$X;
9457
+ const props$P = {
9458
+ offsetTop: {
9459
+ type: [String, Number],
9460
+ default: 0
9461
+ },
9462
+ zIndex: {
9463
+ type: [String, Number],
9464
+ default: 10
9465
+ },
9466
+ cssMode: Boolean,
9467
+ disabled: Boolean,
9468
+ onScroll: defineListenerProp()
9469
+ };
9470
+ var __async$c = (__this, __arguments, generator) => {
9471
+ return new Promise((resolve, reject) => {
9472
+ var fulfilled = (value) => {
9473
+ try {
9474
+ step2(generator.next(value));
9475
+ } catch (e) {
9476
+ reject(e);
9477
+ }
9478
+ };
9479
+ var rejected = (value) => {
9480
+ try {
9481
+ step2(generator.throw(value));
9482
+ } catch (e) {
9483
+ reject(e);
9484
+ }
9485
+ };
9486
+ var step2 = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
9487
+ step2((generator = generator.apply(__this, __arguments)).next());
9488
+ });
9489
+ };
9490
+ const { name: name$Q, n: n$V, classes: classes$N } = createNamespace("sticky");
9491
+ function __render__$V(_ctx, _cache) {
9492
+ return vue.openBlock(), vue.createElementBlock(
9493
+ "div",
9494
+ {
9495
+ class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.enableCSSMode, _ctx.n("--css-mode")])),
9496
+ ref: "stickyEl",
9497
+ style: vue.normalizeStyle({
9498
+ zIndex: _ctx.toNumber(_ctx.zIndex),
9499
+ top: _ctx.enableCSSMode ? `${_ctx.offsetTop}px` : void 0,
9500
+ width: _ctx.enableFixedMode ? _ctx.fixedWidth : void 0,
9501
+ height: _ctx.enableFixedMode ? _ctx.fixedHeight : void 0
9502
+ })
9503
+ },
9504
+ [
9505
+ vue.createElementVNode(
9506
+ "div",
9507
+ {
9508
+ class: vue.normalizeClass(_ctx.n("wrapper")),
9509
+ ref: "wrapperEl",
9510
+ style: vue.normalizeStyle({
9511
+ zIndex: _ctx.toNumber(_ctx.zIndex),
9512
+ position: _ctx.enableFixedMode ? "fixed" : void 0,
9513
+ width: _ctx.enableFixedMode ? _ctx.fixedWrapperWidth : void 0,
9514
+ height: _ctx.enableFixedMode ? _ctx.fixedWrapperHeight : void 0,
9515
+ left: _ctx.enableFixedMode ? _ctx.fixedLeft : void 0,
9516
+ top: _ctx.enableFixedMode ? _ctx.fixedTop : void 0
9517
+ })
9518
+ },
9519
+ [
9520
+ vue.renderSlot(_ctx.$slots, "default")
9521
+ ],
9522
+ 6
9523
+ /* CLASS, STYLE */
9524
+ )
9525
+ ],
9526
+ 6
9527
+ /* CLASS, STYLE */
9528
+ );
9529
+ }
9530
+ const __sfc__$W = vue.defineComponent({
9531
+ name: name$Q,
9532
+ props: props$P,
9533
+ setup(props2) {
9534
+ const stickyEl = vue.ref(null);
9535
+ const wrapperEl = vue.ref(null);
9536
+ const isFixed = vue.ref(false);
9537
+ const fixedTop = vue.ref("0px");
9538
+ const fixedLeft = vue.ref("0px");
9539
+ const fixedWidth = vue.ref("auto");
9540
+ const fixedHeight = vue.ref("auto");
9541
+ const fixedWrapperWidth = vue.ref("auto");
9542
+ const fixedWrapperHeight = vue.ref("auto");
9543
+ const enableCSSMode = vue.computed(() => !props2.disabled && props2.cssMode);
9544
+ const enableFixedMode = vue.computed(() => !props2.disabled && !props2.cssMode && isFixed.value);
9545
+ const offsetTop = vue.computed(() => toPxNum(props2.offsetTop));
9546
+ let scroller;
9547
+ vue.watch(() => props2.disabled, resize);
9548
+ onSmartMounted(addScrollListener);
9549
+ onSmartUnmounted(removeScrollListener);
9550
+ onWindowResize(resize);
9551
+ useEventListener(() => window, "scroll", handleScroll);
9552
+ function computeFixedParams() {
9553
+ const { cssMode, disabled } = props2;
9554
+ if (disabled) {
9555
+ return;
9556
+ }
9557
+ let scrollerTop = 0;
9558
+ if (scroller !== window) {
9559
+ const { top: top2 } = getRect(scroller);
9560
+ scrollerTop = top2;
9561
+ }
9562
+ const wrapper3 = wrapperEl.value;
9563
+ const sticky2 = stickyEl.value;
9564
+ const { top: stickyTop, left: stickyLeft } = getRect(sticky2);
9565
+ const currentOffsetTop = stickyTop - scrollerTop;
9566
+ if (currentOffsetTop <= offsetTop.value) {
9567
+ if (!cssMode) {
9568
+ fixedWidth.value = `${sticky2.offsetWidth}px`;
9569
+ fixedHeight.value = `${sticky2.offsetHeight}px`;
9570
+ fixedTop.value = `${scrollerTop + offsetTop.value}px`;
9571
+ fixedLeft.value = `${stickyLeft}px`;
9572
+ fixedWrapperWidth.value = `${wrapper3.offsetWidth}px`;
9573
+ fixedWrapperHeight.value = `${wrapper3.offsetHeight}px`;
9574
+ isFixed.value = true;
9575
+ }
9576
+ return {
9577
+ offsetTop: offsetTop.value,
9578
+ isFixed: true
9579
+ };
9580
+ }
9581
+ isFixed.value = false;
9582
+ return {
9583
+ offsetTop: currentOffsetTop,
9584
+ isFixed: false
9585
+ };
9586
+ }
9587
+ function handleScroll() {
9588
+ if (!scroller) {
9589
+ return;
9590
+ }
9591
+ const fixedParams = computeFixedParams();
9592
+ if (fixedParams) {
9593
+ call(props2.onScroll, fixedParams.offsetTop, fixedParams.isFixed);
9594
+ }
9595
+ }
9596
+ function resize() {
9597
+ return __async$c(this, null, function* () {
9598
+ isFixed.value = false;
9599
+ yield raf();
9600
+ computeFixedParams();
9601
+ });
9602
+ }
9603
+ function addScrollListener() {
9604
+ return __async$c(this, null, function* () {
9605
+ yield doubleRaf();
9606
+ scroller = getParentScroller(stickyEl.value);
9607
+ scroller !== window && scroller.addEventListener("scroll", handleScroll);
9608
+ handleScroll();
9609
+ });
9610
+ }
9611
+ function removeScrollListener() {
9612
+ scroller !== window && scroller.removeEventListener("scroll", handleScroll);
9613
+ }
9614
+ return {
9615
+ stickyEl,
9616
+ wrapperEl,
9617
+ isFixed,
9618
+ offsetTop,
9619
+ fixedTop,
9620
+ fixedLeft,
9621
+ fixedWidth,
9622
+ fixedHeight,
9623
+ fixedWrapperWidth,
9624
+ fixedWrapperHeight,
9625
+ enableCSSMode,
9626
+ enableFixedMode,
9627
+ n: n$V,
9628
+ classes: classes$N,
9629
+ resize,
9630
+ toNumber
9631
+ };
9632
+ }
9633
+ });
9634
+ __sfc__$W.render = __render__$V;
9635
+ var stdin_default$2v = __sfc__$W;
9636
+ withInstall(stdin_default$2v);
9637
+ const _StickyComponent = stdin_default$2v;
9638
+ var stdin_default$2u = stdin_default$2v;
9457
9639
  var __defProp$h = Object.defineProperty;
9458
9640
  var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
9459
9641
  var __hasOwnProp$h = Object.prototype.hasOwnProperty;
@@ -9470,9 +9652,9 @@ var __spreadValues$h = (a, b) => {
9470
9652
  }
9471
9653
  return a;
9472
9654
  };
9473
- const { n: n$V, classes: classes$N } = createNamespace("year-picker");
9655
+ const { n: n$U, classes: classes$M } = createNamespace("year-picker");
9474
9656
  const { n: nDate$1 } = createNamespace("date-picker");
9475
- function __render__$V(_ctx, _cache) {
9657
+ function __render__$U(_ctx, _cache) {
9476
9658
  const _component_panel_header = vue.resolveComponent("panel-header");
9477
9659
  const _component_var_sticky = vue.resolveComponent("var-sticky");
9478
9660
  const _component_var_button = vue.resolveComponent("var-button");
@@ -9542,10 +9724,11 @@ function __render__$V(_ctx, _cache) {
9542
9724
  }, 8, ["name"])
9543
9725
  ]);
9544
9726
  }
9545
- const __sfc__$W = vue.defineComponent({
9727
+ const __sfc__$V = vue.defineComponent({
9546
9728
  name: "YearPickerPanel",
9547
9729
  components: {
9548
9730
  VarButton: stdin_default$36,
9731
+ VarSticky: stdin_default$2u,
9549
9732
  PanelHeader: stdin_default$2x
9550
9733
  },
9551
9734
  props: {
@@ -9669,13 +9852,13 @@ const __sfc__$W = vue.defineComponent({
9669
9852
  color: !computeText() ? color : "",
9670
9853
  textColor: isCover ? "" : textColorOrCover(),
9671
9854
  [`${nDate$1()}-color-cover`]: isCover,
9672
- class: classes$N(n$V("button"), [disabled, n$V("button--disabled")]),
9855
+ class: classes$M(n$U("button"), [disabled, n$U("button--disabled")]),
9673
9856
  disabled
9674
9857
  };
9675
9858
  };
9676
9859
  const chooseYear = (year, event) => {
9677
9860
  const buttonEl = event.currentTarget;
9678
- if (buttonEl.classList.contains(n$V("button--disabled")))
9861
+ if (buttonEl.classList.contains(n$U("button--disabled")))
9679
9862
  return;
9680
9863
  emit("choose-year", year);
9681
9864
  };
@@ -9719,8 +9902,8 @@ const __sfc__$W = vue.defineComponent({
9719
9902
  }
9720
9903
  );
9721
9904
  return {
9722
- n: n$V,
9723
- classes: classes$N,
9905
+ n: n$U,
9906
+ classes: classes$M,
9724
9907
  buttonProps,
9725
9908
  panel,
9726
9909
  headerEl,
@@ -9736,8 +9919,8 @@ const __sfc__$W = vue.defineComponent({
9736
9919
  };
9737
9920
  }
9738
9921
  });
9739
- __sfc__$W.render = __render__$V;
9740
- var stdin_default$2v = __sfc__$W;
9922
+ __sfc__$V.render = __render__$U;
9923
+ var stdin_default$2t = __sfc__$V;
9741
9924
  var __defProp$g = Object.defineProperty;
9742
9925
  var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
9743
9926
  var __hasOwnProp$g = Object.prototype.hasOwnProperty;
@@ -9756,9 +9939,9 @@ var __spreadValues$g = (a, b) => {
9756
9939
  };
9757
9940
  dayjs.extend(isSameOrBefore);
9758
9941
  dayjs.extend(isSameOrAfter);
9759
- const { n: n$U, classes: classes$M } = createNamespace("day-picker");
9942
+ const { n: n$T, classes: classes$L } = createNamespace("day-picker");
9760
9943
  const { n: nDate } = createNamespace("date-picker");
9761
- function __render__$U(_ctx, _cache) {
9944
+ function __render__$T(_ctx, _cache) {
9762
9945
  const _component_panel_header = vue.resolveComponent("panel-header");
9763
9946
  const _component_var_button = vue.resolveComponent("var-button");
9764
9947
  return vue.openBlock(), vue.createElementBlock(
@@ -9866,7 +10049,7 @@ function __render__$U(_ctx, _cache) {
9866
10049
  /* CLASS */
9867
10050
  );
9868
10051
  }
9869
- const __sfc__$V = vue.defineComponent({
10052
+ const __sfc__$U = vue.defineComponent({
9870
10053
  name: "DayPickerPanel",
9871
10054
  components: {
9872
10055
  VarButton: stdin_default$36,
@@ -9982,7 +10165,7 @@ const __sfc__$V = vue.defineComponent({
9982
10165
  text: true,
9983
10166
  outline: false,
9984
10167
  textColor: "",
9985
- class: n$U("button"),
10168
+ class: n$T("button"),
9986
10169
  disabled: true
9987
10170
  };
9988
10171
  }
@@ -10038,7 +10221,7 @@ const __sfc__$V = vue.defineComponent({
10038
10221
  outline: computeOutline(),
10039
10222
  textColor: isCover ? "" : textColorOrCover(),
10040
10223
  [`${nDate()}-color-cover`]: isCover,
10041
- class: classes$M(n$U("button"), n$U("button--usable"), [disabled, n$U("button--disabled")]),
10224
+ class: classes$L(n$T("button"), n$T("button--usable"), [disabled, n$T("button--disabled")]),
10042
10225
  disabled
10043
10226
  };
10044
10227
  };
@@ -10049,7 +10232,7 @@ const __sfc__$V = vue.defineComponent({
10049
10232
  };
10050
10233
  const chooseDay = (day, event) => {
10051
10234
  const buttonEl = event.currentTarget;
10052
- if (buttonEl.classList.contains(n$U("button--disabled")))
10235
+ if (buttonEl.classList.contains(n$T("button--disabled")))
10053
10236
  return;
10054
10237
  emit("choose-day", day);
10055
10238
  };
@@ -10068,7 +10251,7 @@ const __sfc__$V = vue.defineComponent({
10068
10251
  }
10069
10252
  );
10070
10253
  return {
10071
- n: n$U,
10254
+ n: n$T,
10072
10255
  nDate,
10073
10256
  days,
10074
10257
  reverse,
@@ -10085,9 +10268,9 @@ const __sfc__$V = vue.defineComponent({
10085
10268
  };
10086
10269
  }
10087
10270
  });
10088
- __sfc__$V.render = __render__$U;
10089
- var stdin_default$2u = __sfc__$V;
10090
- var __async$c = (__this, __arguments, generator) => {
10271
+ __sfc__$U.render = __render__$T;
10272
+ var stdin_default$2s = __sfc__$U;
10273
+ var __async$b = (__this, __arguments, generator) => {
10091
10274
  return new Promise((resolve, reject) => {
10092
10275
  var fulfilled = (value) => {
10093
10276
  try {
@@ -10107,8 +10290,8 @@ var __async$c = (__this, __arguments, generator) => {
10107
10290
  step2((generator = generator.apply(__this, __arguments)).next());
10108
10291
  });
10109
10292
  };
10110
- const { name: name$Q, n: n$T, classes: classes$L } = createNamespace("date-picker");
10111
- function __render__$T(_ctx, _cache) {
10293
+ const { name: name$P, n: n$S, classes: classes$K } = createNamespace("date-picker");
10294
+ function __render__$S(_ctx, _cache) {
10112
10295
  var _a;
10113
10296
  const _component_year_picker_panel = vue.resolveComponent("year-picker-panel");
10114
10297
  const _component_month_picker_panel = vue.resolveComponent("month-picker-panel");
@@ -10343,12 +10526,12 @@ function __render__$T(_ctx, _cache) {
10343
10526
  /* CLASS */
10344
10527
  );
10345
10528
  }
10346
- const __sfc__$U = vue.defineComponent({
10347
- name: name$Q,
10529
+ const __sfc__$T = vue.defineComponent({
10530
+ name: name$P,
10348
10531
  components: {
10349
10532
  MonthPickerPanel: stdin_default$2w,
10350
- YearPickerPanel: stdin_default$2v,
10351
- DayPickerPanel: stdin_default$2u
10533
+ YearPickerPanel: stdin_default$2t,
10534
+ DayPickerPanel: stdin_default$2s
10352
10535
  },
10353
10536
  props: props$Q,
10354
10537
  setup(props2) {
@@ -10524,7 +10707,7 @@ const __sfc__$U = vue.defineComponent({
10524
10707
  checkType = x > 0 ? "prev" : "next";
10525
10708
  }
10526
10709
  function handleTouchend() {
10527
- return __async$c(this, null, function* () {
10710
+ return __async$b(this, null, function* () {
10528
10711
  if (isUntouchable.value || touchDirection !== "x")
10529
10712
  return;
10530
10713
  const componentRef = getPanelType.value === "year" ? yearPanelEl : getPanelType.value === "month" ? monthPanelEl : dayPanelEl;
@@ -10732,8 +10915,8 @@ const __sfc__$U = vue.defineComponent({
10732
10915
  slotProps,
10733
10916
  formatRange,
10734
10917
  pack,
10735
- n: n$T,
10736
- classes: classes$L,
10918
+ n: n$S,
10919
+ classes: classes$K,
10737
10920
  clickEl,
10738
10921
  handleTouchstart,
10739
10922
  handleTouchmove,
@@ -10746,11 +10929,11 @@ const __sfc__$U = vue.defineComponent({
10746
10929
  };
10747
10930
  }
10748
10931
  });
10749
- __sfc__$U.render = __render__$T;
10750
- var stdin_default$2t = __sfc__$U;
10751
- withInstall(stdin_default$2t);
10752
- const _DatePickerComponent = stdin_default$2t;
10753
- var stdin_default$2s = stdin_default$2t;
10932
+ __sfc__$T.render = __render__$S;
10933
+ var stdin_default$2r = __sfc__$T;
10934
+ withInstall(stdin_default$2r);
10935
+ const _DatePickerComponent = stdin_default$2r;
10936
+ var stdin_default$2q = stdin_default$2r;
10754
10937
  var __defProp$f = Object.defineProperty;
10755
10938
  var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
10756
10939
  var __hasOwnProp$f = Object.prototype.hasOwnProperty;
@@ -10767,7 +10950,7 @@ var __spreadValues$f = (a, b) => {
10767
10950
  }
10768
10951
  return a;
10769
10952
  };
10770
- const props$P = __spreadValues$f({
10953
+ const props$O = __spreadValues$f({
10771
10954
  show: Boolean,
10772
10955
  width: [Number, String],
10773
10956
  title: String,
@@ -10827,8 +11010,8 @@ var __spreadValues$e = (a, b) => {
10827
11010
  }
10828
11011
  return a;
10829
11012
  };
10830
- const { name: name$P, n: n$S, classes: classes$K } = createNamespace("dialog");
10831
- function __render__$S(_ctx, _cache) {
11013
+ const { name: name$O, n: n$R, classes: classes$J } = createNamespace("dialog");
11014
+ function __render__$R(_ctx, _cache) {
10832
11015
  const _component_var_button = vue.resolveComponent("var-button");
10833
11016
  const _component_var_popup = vue.resolveComponent("var-popup");
10834
11017
  return vue.openBlock(), vue.createBlock(_component_var_popup, {
@@ -10957,14 +11140,14 @@ function __render__$S(_ctx, _cache) {
10957
11140
  /* FORWARDED */
10958
11141
  }, 8, ["class", "show", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onClickOverlay"]);
10959
11142
  }
10960
- const __sfc__$T = vue.defineComponent({
10961
- name: name$P,
11143
+ const __sfc__$S = vue.defineComponent({
11144
+ name: name$O,
10962
11145
  components: {
10963
11146
  VarPopup: stdin_default$3t,
10964
11147
  VarButton: stdin_default$36
10965
11148
  },
10966
11149
  inheritAttrs: false,
10967
- props: props$P,
11150
+ props: props$O,
10968
11151
  setup(props2) {
10969
11152
  const popupShow = vue.ref(false);
10970
11153
  const popupCloseOnClickOverlay = vue.ref(false);
@@ -11023,8 +11206,8 @@ const __sfc__$T = vue.defineComponent({
11023
11206
  pack,
11024
11207
  popupShow,
11025
11208
  popupCloseOnClickOverlay,
11026
- n: n$S,
11027
- classes: classes$K,
11209
+ n: n$R,
11210
+ classes: classes$J,
11028
11211
  handleClickOverlay,
11029
11212
  confirm,
11030
11213
  cancel,
@@ -11032,8 +11215,8 @@ const __sfc__$T = vue.defineComponent({
11032
11215
  };
11033
11216
  }
11034
11217
  });
11035
- __sfc__$T.render = __render__$S;
11036
- var stdin_default$2r = __sfc__$T;
11218
+ __sfc__$S.render = __render__$R;
11219
+ var stdin_default$2p = __sfc__$S;
11037
11220
  var __defProp$d = Object.defineProperty;
11038
11221
  var __defProps$5 = Object.defineProperties;
11039
11222
  var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
@@ -11071,7 +11254,7 @@ function Dialog(options) {
11071
11254
  const reactiveDialogOptions = vue.reactive(dialogOptions);
11072
11255
  reactiveDialogOptions.teleport = "body";
11073
11256
  singletonOptions$2 = reactiveDialogOptions;
11074
- const { unmountInstance } = mountInstance(stdin_default$2r, reactiveDialogOptions, {
11257
+ const { unmountInstance } = mountInstance(stdin_default$2p, reactiveDialogOptions, {
11075
11258
  onConfirm: () => {
11076
11259
  call(reactiveDialogOptions.onConfirm);
11077
11260
  resolve("confirm");
@@ -11115,12 +11298,12 @@ Dialog.close = function() {
11115
11298
  });
11116
11299
  }
11117
11300
  };
11118
- Dialog.Component = stdin_default$2r;
11119
- withInstall(stdin_default$2r);
11120
- withInstall(stdin_default$2r, Dialog);
11121
- const _DialogComponent = stdin_default$2r;
11122
- var stdin_default$2q = Dialog;
11123
- const props$O = {
11301
+ Dialog.Component = stdin_default$2p;
11302
+ withInstall(stdin_default$2p);
11303
+ withInstall(stdin_default$2p, Dialog);
11304
+ const _DialogComponent = stdin_default$2p;
11305
+ var stdin_default$2o = Dialog;
11306
+ const props$N = {
11124
11307
  inset: {
11125
11308
  type: [Boolean, Number, String],
11126
11309
  default: false
@@ -11131,8 +11314,8 @@ const props$O = {
11131
11314
  dashed: Boolean,
11132
11315
  hairline: Boolean
11133
11316
  };
11134
- const { name: name$O, n: n$R, classes: classes$J } = createNamespace("divider");
11135
- function __render__$R(_ctx, _cache) {
11317
+ const { name: name$N, n: n$Q, classes: classes$I } = createNamespace("divider");
11318
+ function __render__$Q(_ctx, _cache) {
11136
11319
  return vue.openBlock(), vue.createElementBlock(
11137
11320
  "div",
11138
11321
  {
@@ -11167,9 +11350,9 @@ function __render__$R(_ctx, _cache) {
11167
11350
  /* CLASS, STYLE */
11168
11351
  );
11169
11352
  }
11170
- const __sfc__$S = vue.defineComponent({
11171
- name: name$O,
11172
- props: props$O,
11353
+ const __sfc__$R = vue.defineComponent({
11354
+ name: name$N,
11355
+ props: props$N,
11173
11356
  setup(props2, { slots }) {
11174
11357
  const withText = vue.ref(false);
11175
11358
  const withPresetInset = vue.computed(() => {
@@ -11196,20 +11379,20 @@ const __sfc__$S = vue.defineComponent({
11196
11379
  withText.value = (slots.default || description != null) && !vertical;
11197
11380
  }
11198
11381
  return {
11199
- n: n$R,
11200
- classes: classes$J,
11382
+ n: n$Q,
11383
+ classes: classes$I,
11201
11384
  withText,
11202
11385
  style,
11203
11386
  withPresetInset
11204
11387
  };
11205
11388
  }
11206
11389
  });
11207
- __sfc__$S.render = __render__$R;
11208
- var stdin_default$2p = __sfc__$S;
11209
- withInstall(stdin_default$2p);
11210
- const _DividerComponent = stdin_default$2p;
11211
- var stdin_default$2o = stdin_default$2p;
11212
- const props$N = {
11390
+ __sfc__$R.render = __render__$Q;
11391
+ var stdin_default$2n = __sfc__$R;
11392
+ withInstall(stdin_default$2n);
11393
+ const _DividerComponent = stdin_default$2n;
11394
+ var stdin_default$2m = stdin_default$2n;
11395
+ const props$M = {
11213
11396
  direction: {
11214
11397
  type: String,
11215
11398
  default: "xy"
@@ -11254,7 +11437,7 @@ var __spreadValues$c = (a, b) => {
11254
11437
  return a;
11255
11438
  };
11256
11439
  var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
11257
- var __async$b = (__this, __arguments, generator) => {
11440
+ var __async$a = (__this, __arguments, generator) => {
11258
11441
  return new Promise((resolve, reject) => {
11259
11442
  var fulfilled = (value) => {
11260
11443
  try {
@@ -11274,8 +11457,8 @@ var __async$b = (__this, __arguments, generator) => {
11274
11457
  step2((generator = generator.apply(__this, __arguments)).next());
11275
11458
  });
11276
11459
  };
11277
- const { name: name$N, n: n$Q, classes: classes$I } = createNamespace("drag");
11278
- function __render__$Q(_ctx, _cache) {
11460
+ const { name: name$M, n: n$P, classes: classes$H } = createNamespace("drag");
11461
+ function __render__$P(_ctx, _cache) {
11279
11462
  return vue.openBlock(), vue.createBlock(vue.Teleport, {
11280
11463
  to: _ctx.teleport === false ? void 0 : _ctx.teleport,
11281
11464
  disabled: _ctx.teleportDisabled || _ctx.teleport === false
@@ -11302,10 +11485,10 @@ function __render__$Q(_ctx, _cache) {
11302
11485
  )
11303
11486
  ], 8, ["to", "disabled"]);
11304
11487
  }
11305
- const __sfc__$R = vue.defineComponent({
11306
- name: name$N,
11488
+ const __sfc__$Q = vue.defineComponent({
11489
+ name: name$M,
11307
11490
  inheritAttrs: false,
11308
- props: props$N,
11491
+ props: props$M,
11309
11492
  setup(props2, { attrs }) {
11310
11493
  const drag2 = vue.ref(null);
11311
11494
  const x = vue.ref(0);
@@ -11334,7 +11517,7 @@ const __sfc__$R = vue.defineComponent({
11334
11517
  saveXY();
11335
11518
  }
11336
11519
  function handleTouchmove(event) {
11337
- return __async$b(this, null, function* () {
11520
+ return __async$a(this, null, function* () {
11338
11521
  if (!touching.value || props2.disabled) {
11339
11522
  return;
11340
11523
  }
@@ -11472,8 +11655,8 @@ const __sfc__$R = vue.defineComponent({
11472
11655
  enableTransition,
11473
11656
  dragging,
11474
11657
  teleportDisabled,
11475
- n: n$Q,
11476
- classes: classes$I,
11658
+ n: n$P,
11659
+ classes: classes$H,
11477
11660
  getAttrs,
11478
11661
  handleTouchstart,
11479
11662
  handleTouchmove,
@@ -11484,11 +11667,11 @@ const __sfc__$R = vue.defineComponent({
11484
11667
  };
11485
11668
  }
11486
11669
  });
11487
- __sfc__$R.render = __render__$Q;
11488
- var stdin_default$2n = __sfc__$R;
11489
- withInstall(stdin_default$2n);
11490
- const _DragComponent = stdin_default$2n;
11491
- var stdin_default$2m = stdin_default$2n;
11670
+ __sfc__$Q.render = __render__$P;
11671
+ var stdin_default$2l = __sfc__$Q;
11672
+ withInstall(stdin_default$2l);
11673
+ const _DragComponent = stdin_default$2l;
11674
+ var stdin_default$2k = stdin_default$2l;
11492
11675
  var hash$1 = {
11493
11676
  left: "right",
11494
11677
  right: "left",
@@ -12774,7 +12957,7 @@ var __spreadValues$b = (a, b) => {
12774
12957
  return a;
12775
12958
  };
12776
12959
  var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
12777
- var __async$a = (__this, __arguments, generator) => {
12960
+ var __async$9 = (__this, __arguments, generator) => {
12778
12961
  return new Promise((resolve, reject) => {
12779
12962
  var fulfilled = (value) => {
12780
12963
  try {
@@ -12860,7 +13043,7 @@ function usePopover(options) {
12860
13043
  enterHost = true;
12861
13044
  open();
12862
13045
  };
12863
- const handleHostMouseleave = () => __async$a(this, null, function* () {
13046
+ const handleHostMouseleave = () => __async$9(this, null, function* () {
12864
13047
  if (options.trigger !== "hover") {
12865
13048
  return;
12866
13049
  }
@@ -12877,7 +13060,7 @@ function usePopover(options) {
12877
13060
  }
12878
13061
  enterPopover = true;
12879
13062
  };
12880
- const handlePopoverMouseleave = () => __async$a(this, null, function* () {
13063
+ const handlePopoverMouseleave = () => __async$9(this, null, function* () {
12881
13064
  if (options.trigger !== "hover") {
12882
13065
  return;
12883
13066
  }
@@ -13076,7 +13259,7 @@ function usePopover(options) {
13076
13259
  close
13077
13260
  };
13078
13261
  }
13079
- const props$M = {
13262
+ const props$L = {
13080
13263
  type: {
13081
13264
  type: String,
13082
13265
  default: "default"
@@ -13119,8 +13302,8 @@ const props$M = {
13119
13302
  onClickOutside: defineListenerProp(),
13120
13303
  "onUpdate:show": defineListenerProp()
13121
13304
  };
13122
- const { name: name$M, n: n$P, classes: classes$H } = createNamespace("tooltip");
13123
- function __render__$P(_ctx, _cache) {
13305
+ const { name: name$L, n: n$O, classes: classes$G } = createNamespace("tooltip");
13306
+ function __render__$O(_ctx, _cache) {
13124
13307
  return vue.openBlock(), vue.createElementBlock(
13125
13308
  "div",
13126
13309
  {
@@ -13189,9 +13372,9 @@ function __render__$P(_ctx, _cache) {
13189
13372
  /* CLASS, HYDRATE_EVENTS */
13190
13373
  );
13191
13374
  }
13192
- const __sfc__$Q = vue.defineComponent({
13193
- name: name$M,
13194
- props: props$M,
13375
+ const __sfc__$P = vue.defineComponent({
13376
+ name: name$L,
13377
+ props: props$L,
13195
13378
  setup(props2) {
13196
13379
  const { disabled: teleportDisabled } = useTeleport();
13197
13380
  const {
@@ -13222,8 +13405,8 @@ const __sfc__$Q = vue.defineComponent({
13222
13405
  zIndex,
13223
13406
  teleportDisabled,
13224
13407
  toSizeUnit,
13225
- n: n$P,
13226
- classes: classes$H,
13408
+ n: n$O,
13409
+ classes: classes$G,
13227
13410
  handleHostClick,
13228
13411
  handlePopoverClose,
13229
13412
  handleHostMouseenter,
@@ -13237,12 +13420,12 @@ const __sfc__$Q = vue.defineComponent({
13237
13420
  };
13238
13421
  }
13239
13422
  });
13240
- __sfc__$Q.render = __render__$P;
13241
- var stdin_default$2l = __sfc__$Q;
13242
- withInstall(stdin_default$2l);
13243
- const _TooltipComponent = stdin_default$2l;
13244
- var stdin_default$2k = stdin_default$2l;
13245
- const props$L = {
13423
+ __sfc__$P.render = __render__$O;
13424
+ var stdin_default$2j = __sfc__$P;
13425
+ withInstall(stdin_default$2j);
13426
+ const _TooltipComponent = stdin_default$2j;
13427
+ var stdin_default$2i = stdin_default$2j;
13428
+ const props$K = {
13246
13429
  expand: Boolean,
13247
13430
  expandTrigger: String,
13248
13431
  lineClamp: [Number, String],
@@ -13268,9 +13451,9 @@ var __spreadValues$a = (a, b) => {
13268
13451
  }
13269
13452
  return a;
13270
13453
  };
13271
- const { name: name$L, n: n$O, classes: classes$G } = createNamespace("ellipsis");
13454
+ const { name: name$K, n: n$N, classes: classes$F } = createNamespace("ellipsis");
13272
13455
  const _hoisted_1$m = { key: 0 };
13273
- function __render__$O(_ctx, _cache) {
13456
+ function __render__$N(_ctx, _cache) {
13274
13457
  const _component_var_tooltip = vue.resolveComponent("var-tooltip");
13275
13458
  return vue.openBlock(), vue.createBlock(
13276
13459
  _component_var_tooltip,
@@ -13314,10 +13497,10 @@ function __render__$O(_ctx, _cache) {
13314
13497
  /* FULL_PROPS */
13315
13498
  );
13316
13499
  }
13317
- const __sfc__$P = vue.defineComponent({
13318
- name: name$L,
13319
- components: { VarTooltip: stdin_default$2k },
13320
- props: props$L,
13500
+ const __sfc__$O = vue.defineComponent({
13501
+ name: name$K,
13502
+ components: { VarTooltip: stdin_default$2i },
13503
+ props: props$K,
13321
13504
  setup(props2) {
13322
13505
  const expanding = useVModel(props2, "expand");
13323
13506
  const rootStyles = vue.computed(() => props2.lineClamp ? { "-webkit-line-clamp": props2.lineClamp } : {});
@@ -13344,18 +13527,18 @@ const __sfc__$P = vue.defineComponent({
13344
13527
  tooltipProps,
13345
13528
  expanding,
13346
13529
  rootStyles,
13347
- n: n$O,
13348
- classes: classes$G,
13530
+ n: n$N,
13531
+ classes: classes$F,
13349
13532
  handleClick
13350
13533
  };
13351
13534
  }
13352
13535
  });
13353
- __sfc__$P.render = __render__$O;
13354
- var stdin_default$2j = __sfc__$P;
13355
- withInstall(stdin_default$2j);
13356
- const _EllipsisComponent = stdin_default$2j;
13357
- var stdin_default$2i = stdin_default$2j;
13358
- const props$K = {
13536
+ __sfc__$O.render = __render__$N;
13537
+ var stdin_default$2h = __sfc__$O;
13538
+ withInstall(stdin_default$2h);
13539
+ const _EllipsisComponent = stdin_default$2h;
13540
+ var stdin_default$2g = stdin_default$2h;
13541
+ const props$J = {
13359
13542
  active: Boolean,
13360
13543
  show: {
13361
13544
  type: Boolean,
@@ -13424,14 +13607,14 @@ const props$K = {
13424
13607
  "onUpdate:active": defineListenerProp()
13425
13608
  };
13426
13609
  const {
13427
- name: name$K,
13428
- classes: classes$F,
13429
- n: n$N
13610
+ name: name$J,
13611
+ classes: classes$E,
13612
+ n: n$M
13430
13613
  } = createNamespace("fab");
13431
- var stdin_default$2h = vue.defineComponent({
13432
- name: name$K,
13614
+ var stdin_default$2f = vue.defineComponent({
13615
+ name: name$J,
13433
13616
  inheritAttrs: false,
13434
- props: props$K,
13617
+ props: props$J,
13435
13618
  setup(props2, {
13436
13619
  slots,
13437
13620
  attrs
@@ -13487,7 +13670,7 @@ var stdin_default$2h = vue.defineComponent({
13487
13670
  }
13488
13671
  return vue.withDirectives(vue.createVNode(stdin_default$36, {
13489
13672
  "var-fab-cover": true,
13490
- "class": n$N("trigger"),
13673
+ "class": n$M("trigger"),
13491
13674
  "type": props2.type,
13492
13675
  "color": props2.color,
13493
13676
  "disabled": props2.disabled,
@@ -13496,12 +13679,12 @@ var stdin_default$2h = vue.defineComponent({
13496
13679
  }, {
13497
13680
  default: () => [vue.createVNode(stdin_default$3r, {
13498
13681
  "var-fab-cover": true,
13499
- "class": classes$F([isActive.value, n$N("trigger-active-icon"), n$N("trigger-inactive-icon")]),
13682
+ "class": classes$E([isActive.value, n$M("trigger-active-icon"), n$M("trigger-inactive-icon")]),
13500
13683
  "name": isActive.value ? props2.activeIcon : props2.inactiveIcon,
13501
13684
  "size": isActive.value ? props2.activeIconSize : props2.inactiveIconSize,
13502
13685
  "namespace": isActive.value ? props2.activeIconNamespace : props2.inactiveIconNamespace,
13503
13686
  "transition": 200,
13504
- "animationClass": n$N("--trigger-icon-animation")
13687
+ "animationClass": n$M("--trigger-icon-animation")
13505
13688
  }, null)]
13506
13689
  }), [[vue.vShow, props2.show]]);
13507
13690
  }
@@ -13509,9 +13692,9 @@ var stdin_default$2h = vue.defineComponent({
13509
13692
  var _a;
13510
13693
  const children = flatFragment((_a = call(slots.default)) != null ? _a : []);
13511
13694
  const dragProps = isBoolean(props2.drag) ? {} : props2.drag;
13512
- return vue.createVNode(stdin_default$2m, vue.mergeProps({
13695
+ return vue.createVNode(stdin_default$2k, vue.mergeProps({
13513
13696
  "ref": dragRef,
13514
- "class": classes$F(n$N(`--position-${props2.position}`), [!props2.fixed, n$N("--absolute")]),
13697
+ "class": classes$E(n$M(`--position-${props2.position}`), [!props2.fixed, n$M("--absolute")]),
13515
13698
  "style": {
13516
13699
  top: toSizeUnit(props2.top),
13517
13700
  bottom: toSizeUnit(props2.bottom),
@@ -13527,34 +13710,34 @@ var stdin_default$2h = vue.defineComponent({
13527
13710
  "onClick": (e) => handleClick(e, !isActive.value, children.length)
13528
13711
  }, attrs), {
13529
13712
  default: () => [vue.createVNode("div", {
13530
- "class": classes$F(n$N(), n$N(`--direction-${props2.direction}`), [props2.safeArea, n$N("--safe-area")]),
13713
+ "class": classes$E(n$M(), n$M(`--direction-${props2.direction}`), [props2.safeArea, n$M("--safe-area")]),
13531
13714
  "ref": host,
13532
13715
  "onMouseleave": () => handleMouse(false, children.length),
13533
13716
  "onMouseenter": () => handleMouse(true, children.length)
13534
13717
  }, [vue.createVNode(vue.Transition, {
13535
- "name": n$N(`--active-transition`)
13718
+ "name": n$M(`--active-transition`)
13536
13719
  }, {
13537
13720
  default: () => [renderTrigger()]
13538
13721
  }), vue.createVNode(vue.Transition, {
13539
- "name": n$N(`--actions-transition-${props2.direction}`),
13722
+ "name": n$M(`--actions-transition-${props2.direction}`),
13540
13723
  "onAfterEnter": props2.onOpened,
13541
13724
  "onAfterLeave": props2.onClosed
13542
13725
  }, {
13543
13726
  default: () => [vue.withDirectives(vue.createVNode("div", {
13544
- "class": n$N("actions"),
13727
+ "class": n$M("actions"),
13545
13728
  "onClick": (e) => e.stopPropagation()
13546
13729
  }, [children.map((child) => vue.createVNode("div", {
13547
- "class": n$N("action")
13730
+ "class": n$M("action")
13548
13731
  }, [child]))]), [[vue.vShow, props2.show && isActive.value && children.length]])]
13549
13732
  })])]
13550
13733
  });
13551
13734
  };
13552
13735
  }
13553
13736
  });
13554
- withInstall(stdin_default$2h);
13555
- const _FabComponent = stdin_default$2h;
13556
- var stdin_default$2g = stdin_default$2h;
13557
- const props$J = {
13737
+ withInstall(stdin_default$2f);
13738
+ const _FabComponent = stdin_default$2f;
13739
+ var stdin_default$2e = stdin_default$2f;
13740
+ const props$I = {
13558
13741
  value: {
13559
13742
  type: null,
13560
13743
  required: true
@@ -13593,9 +13776,9 @@ const props$J = {
13593
13776
  onClick: defineListenerProp(),
13594
13777
  onClear: defineListenerProp()
13595
13778
  };
13596
- const { name: name$J, n: n$M, classes: classes$E } = createNamespace("field-decorator");
13779
+ const { name: name$I, n: n$L, classes: classes$D } = createNamespace("field-decorator");
13597
13780
  const _hoisted_1$l = ["for"];
13598
- function __render__$N(_ctx, _cache) {
13781
+ function __render__$M(_ctx, _cache) {
13599
13782
  const _component_var_icon = vue.resolveComponent("var-icon");
13600
13783
  return vue.openBlock(), vue.createElementBlock(
13601
13784
  "div",
@@ -13779,10 +13962,10 @@ function __render__$N(_ctx, _cache) {
13779
13962
  /* CLASS */
13780
13963
  );
13781
13964
  }
13782
- const __sfc__$O = vue.defineComponent({
13783
- name: name$J,
13965
+ const __sfc__$N = vue.defineComponent({
13966
+ name: name$I,
13784
13967
  components: { VarIcon: stdin_default$3r },
13785
- props: props$J,
13968
+ props: props$I,
13786
13969
  setup(props2, { slots }) {
13787
13970
  const placeholderTextEl = vue.ref(null);
13788
13971
  const legendWidth = vue.ref("");
@@ -13796,10 +13979,10 @@ const __sfc__$O = vue.defineComponent({
13796
13979
  function computePlaceholderState() {
13797
13980
  const { hint, value, composing } = props2;
13798
13981
  if (!hint && (!isEmpty(value) || composing)) {
13799
- return n$M("--placeholder-hidden");
13982
+ return n$L("--placeholder-hidden");
13800
13983
  }
13801
13984
  if (isFloating.value) {
13802
- return n$M("--placeholder-hint");
13985
+ return n$L("--placeholder-hint");
13803
13986
  }
13804
13987
  }
13805
13988
  function resize() {
@@ -13824,20 +14007,20 @@ const __sfc__$O = vue.defineComponent({
13824
14007
  legendWidth,
13825
14008
  isFloating,
13826
14009
  computePlaceholderState,
13827
- n: n$M,
13828
- classes: classes$E,
14010
+ n: n$L,
14011
+ classes: classes$D,
13829
14012
  isEmpty,
13830
14013
  handleClear,
13831
14014
  handleClick
13832
14015
  };
13833
14016
  }
13834
14017
  });
13835
- __sfc__$O.render = __render__$N;
13836
- var stdin_default$2f = __sfc__$O;
13837
- withInstall(stdin_default$2f);
13838
- const _FieldDecoratorComponent = stdin_default$2f;
13839
- var stdin_default$2e = stdin_default$2f;
13840
- const props$I = {
14018
+ __sfc__$N.render = __render__$M;
14019
+ var stdin_default$2d = __sfc__$N;
14020
+ withInstall(stdin_default$2d);
14021
+ const _FieldDecoratorComponent = stdin_default$2d;
14022
+ var stdin_default$2c = stdin_default$2d;
14023
+ const props$H = {
13841
14024
  anchor: Number,
13842
14025
  anchors: Array,
13843
14026
  contentDraggable: {
@@ -13860,10 +14043,10 @@ const props$I = {
13860
14043
  "onUpdate:anchor": defineListenerProp(),
13861
14044
  onAnchorChange: defineListenerProp()
13862
14045
  };
13863
- const { name: name$I, n: n$L, classes: classes$D } = createNamespace("floating-panel");
14046
+ const { name: name$H, n: n$K, classes: classes$C } = createNamespace("floating-panel");
13864
14047
  const DEFAULT_START_ANCHOR = 100;
13865
14048
  const OVERFLOW_REDUCE_RATIO = 0.2;
13866
- function __render__$M(_ctx, _cache) {
14049
+ function __render__$L(_ctx, _cache) {
13867
14050
  return vue.openBlock(), vue.createBlock(vue.Teleport, {
13868
14051
  to: _ctx.teleport === false ? void 0 : _ctx.teleport,
13869
14052
  disabled: _ctx.teleportDisabled || _ctx.teleport === false
@@ -13922,9 +14105,9 @@ function __render__$M(_ctx, _cache) {
13922
14105
  )
13923
14106
  ], 8, ["to", "disabled"]);
13924
14107
  }
13925
- const __sfc__$N = vue.defineComponent({
13926
- name: name$I,
13927
- props: props$I,
14108
+ const __sfc__$M = vue.defineComponent({
14109
+ name: name$H,
14110
+ props: props$H,
13928
14111
  setup(props2) {
13929
14112
  const visibleHeight = vue.ref(0);
13930
14113
  const contentRef = vue.ref(null);
@@ -14020,8 +14203,8 @@ const __sfc__$N = vue.defineComponent({
14020
14203
  minAnchor,
14021
14204
  maxAnchor,
14022
14205
  visibleHeight,
14023
- n: n$L,
14024
- classes: classes$D,
14206
+ n: n$K,
14207
+ classes: classes$C,
14025
14208
  toSizeUnit,
14026
14209
  toNumber,
14027
14210
  formatElevation,
@@ -14031,12 +14214,12 @@ const __sfc__$N = vue.defineComponent({
14031
14214
  };
14032
14215
  }
14033
14216
  });
14034
- __sfc__$N.render = __render__$M;
14035
- var stdin_default$2d = __sfc__$N;
14036
- withInstall(stdin_default$2d);
14037
- const _FloatingPanelComponent = stdin_default$2d;
14038
- var stdin_default$2c = stdin_default$2d;
14039
- const props$H = {
14217
+ __sfc__$M.render = __render__$L;
14218
+ var stdin_default$2b = __sfc__$M;
14219
+ withInstall(stdin_default$2b);
14220
+ const _FloatingPanelComponent = stdin_default$2b;
14221
+ var stdin_default$2a = stdin_default$2b;
14222
+ const props$G = {
14040
14223
  disabled: Boolean,
14041
14224
  readonly: Boolean,
14042
14225
  scrollToError: String,
@@ -14047,7 +14230,7 @@ const props$H = {
14047
14230
  onSubmit: defineListenerProp(),
14048
14231
  onReset: defineListenerProp()
14049
14232
  };
14050
- var __async$9 = (__this, __arguments, generator) => {
14233
+ var __async$8 = (__this, __arguments, generator) => {
14051
14234
  return new Promise((resolve, reject) => {
14052
14235
  var fulfilled = (value) => {
14053
14236
  try {
@@ -14067,8 +14250,8 @@ var __async$9 = (__this, __arguments, generator) => {
14067
14250
  step2((generator = generator.apply(__this, __arguments)).next());
14068
14251
  });
14069
14252
  };
14070
- const { name: name$H, n: n$K } = createNamespace("form");
14071
- function __render__$L(_ctx, _cache) {
14253
+ const { name: name$G, n: n$J } = createNamespace("form");
14254
+ function __render__$K(_ctx, _cache) {
14072
14255
  return vue.openBlock(), vue.createElementBlock(
14073
14256
  "form",
14074
14257
  {
@@ -14083,9 +14266,9 @@ function __render__$L(_ctx, _cache) {
14083
14266
  /* CLASS, HYDRATE_EVENTS */
14084
14267
  );
14085
14268
  }
14086
- const __sfc__$M = vue.defineComponent({
14087
- name: name$H,
14088
- props: props$H,
14269
+ const __sfc__$L = vue.defineComponent({
14270
+ name: name$G,
14271
+ props: props$G,
14089
14272
  setup(props2) {
14090
14273
  const disabled = vue.computed(() => props2.disabled);
14091
14274
  const readonly = vue.computed(() => props2.readonly);
@@ -14107,7 +14290,7 @@ const __sfc__$M = vue.defineComponent({
14107
14290
  }, 300);
14108
14291
  }
14109
14292
  function handleSubmit(event) {
14110
- return __async$9(this, null, function* () {
14293
+ return __async$8(this, null, function* () {
14111
14294
  preventDefault(event);
14112
14295
  const valid = yield validate();
14113
14296
  call(props2.onSubmit, valid);
@@ -14119,7 +14302,7 @@ const __sfc__$M = vue.defineComponent({
14119
14302
  call(props2.onReset);
14120
14303
  }
14121
14304
  function validate() {
14122
- return __async$9(this, null, function* () {
14305
+ return __async$8(this, null, function* () {
14123
14306
  var _a;
14124
14307
  const res = yield Promise.all(formItems.map(({ validate: validate2 }) => validate2()));
14125
14308
  if (props2.scrollToError) {
@@ -14141,7 +14324,7 @@ const __sfc__$M = vue.defineComponent({
14141
14324
  return formItems.forEach(({ resetValidation: resetValidation2 }) => resetValidation2());
14142
14325
  }
14143
14326
  return {
14144
- n: n$K,
14327
+ n: n$J,
14145
14328
  handleSubmit,
14146
14329
  handleReset,
14147
14330
  validate,
@@ -14150,14 +14333,14 @@ const __sfc__$M = vue.defineComponent({
14150
14333
  };
14151
14334
  }
14152
14335
  });
14153
- __sfc__$M.render = __render__$L;
14154
- var stdin_default$2b = __sfc__$M;
14155
- stdin_default$2b.useValidation = useValidation;
14156
- stdin_default$2b.useForm = useForm;
14157
- withInstall(stdin_default$2b);
14158
- const _FormComponent = stdin_default$2b;
14159
- var stdin_default$2a = stdin_default$2b;
14160
- const props$G = {
14336
+ __sfc__$L.render = __render__$K;
14337
+ var stdin_default$29 = __sfc__$L;
14338
+ stdin_default$29.useValidation = useValidation;
14339
+ stdin_default$29.useForm = useForm;
14340
+ withInstall(stdin_default$29);
14341
+ const _FormComponent = stdin_default$29;
14342
+ var stdin_default$28 = stdin_default$29;
14343
+ const props$F = {
14161
14344
  src: String,
14162
14345
  fit: {
14163
14346
  type: String,
@@ -14183,10 +14366,10 @@ const props$G = {
14183
14366
  onLoad: defineListenerProp(),
14184
14367
  onError: defineListenerProp()
14185
14368
  };
14186
- const { name: name$G, n: n$J, classes: classes$C } = createNamespace("image");
14369
+ const { name: name$F, n: n$I, classes: classes$B } = createNamespace("image");
14187
14370
  const _hoisted_1$k = ["alt", "title", "lazy-loading", "lazy-error"];
14188
14371
  const _hoisted_2$d = ["alt", "title", "src"];
14189
- function __render__$K(_ctx, _cache) {
14372
+ function __render__$J(_ctx, _cache) {
14190
14373
  var _a;
14191
14374
  const _directive_lazy = vue.resolveDirective("lazy");
14192
14375
  const _directive_ripple = vue.resolveDirective("ripple");
@@ -14233,13 +14416,13 @@ function __render__$K(_ctx, _cache) {
14233
14416
  [_directive_ripple, { disabled: !_ctx.ripple }]
14234
14417
  ]);
14235
14418
  }
14236
- const __sfc__$L = vue.defineComponent({
14237
- name: name$G,
14419
+ const __sfc__$K = vue.defineComponent({
14420
+ name: name$F,
14238
14421
  directives: {
14239
14422
  Lazy: stdin_default$3h,
14240
14423
  Ripple: stdin_default$3v
14241
14424
  },
14242
- props: props$G,
14425
+ props: props$F,
14243
14426
  setup(props2, { slots }) {
14244
14427
  const showErrorSlot = vue.ref(false);
14245
14428
  vue.watch(
@@ -14271,8 +14454,8 @@ const __sfc__$L = vue.defineComponent({
14271
14454
  }
14272
14455
  return {
14273
14456
  showErrorSlot,
14274
- n: n$J,
14275
- classes: classes$C,
14457
+ n: n$I,
14458
+ classes: classes$B,
14276
14459
  toSizeUnit,
14277
14460
  handleLoad,
14278
14461
  handleError,
@@ -14280,11 +14463,11 @@ const __sfc__$L = vue.defineComponent({
14280
14463
  };
14281
14464
  }
14282
14465
  });
14283
- __sfc__$L.render = __render__$K;
14284
- var stdin_default$29 = __sfc__$L;
14285
- withInstall(stdin_default$29);
14286
- const _ImageComponent = stdin_default$29;
14287
- var stdin_default$28 = stdin_default$29;
14466
+ __sfc__$K.render = __render__$J;
14467
+ var stdin_default$27 = __sfc__$K;
14468
+ withInstall(stdin_default$27);
14469
+ const _ImageComponent = stdin_default$27;
14470
+ var stdin_default$26 = stdin_default$27;
14288
14471
  const SWIPE_BIND_SWIPE_ITEM_KEY = Symbol("SWIPE_BIND_SWIPE_ITEM_KEY");
14289
14472
  function useSwipeItems() {
14290
14473
  const { childProviders, length, bindChildren } = useChildren(
@@ -14296,7 +14479,7 @@ function useSwipeItems() {
14296
14479
  bindSwipeItems: bindChildren
14297
14480
  };
14298
14481
  }
14299
- const props$F = {
14482
+ const props$E = {
14300
14483
  loop: {
14301
14484
  type: Boolean,
14302
14485
  default: true
@@ -14326,7 +14509,7 @@ const props$F = {
14326
14509
  },
14327
14510
  onChange: defineListenerProp()
14328
14511
  };
14329
- var __async$8 = (__this, __arguments, generator) => {
14512
+ var __async$7 = (__this, __arguments, generator) => {
14330
14513
  return new Promise((resolve, reject) => {
14331
14514
  var fulfilled = (value) => {
14332
14515
  try {
@@ -14348,9 +14531,9 @@ var __async$8 = (__this, __arguments, generator) => {
14348
14531
  };
14349
14532
  const SWIPE_DELAY = 250;
14350
14533
  const SWIPE_OFFSET = 20;
14351
- const { name: name$F, n: n$I, classes: classes$B } = createNamespace("swipe");
14534
+ const { name: name$E, n: n$H, classes: classes$A } = createNamespace("swipe");
14352
14535
  const _hoisted_1$j = ["onClick"];
14353
- function __render__$J(_ctx, _cache) {
14536
+ function __render__$I(_ctx, _cache) {
14354
14537
  const _component_var_icon = vue.resolveComponent("var-icon");
14355
14538
  const _component_var_button = vue.resolveComponent("var-button");
14356
14539
  const _directive_hover = vue.resolveDirective("hover");
@@ -14512,11 +14695,11 @@ function __render__$J(_ctx, _cache) {
14512
14695
  [_directive_hover, _ctx.handleHovering]
14513
14696
  ]);
14514
14697
  }
14515
- const __sfc__$K = vue.defineComponent({
14516
- name: name$F,
14698
+ const __sfc__$J = vue.defineComponent({
14699
+ name: name$E,
14517
14700
  directives: { Hover: stdin_default$38 },
14518
14701
  components: { VarButton: stdin_default$36, VarIcon: stdin_default$3r },
14519
- props: props$F,
14702
+ props: props$E,
14520
14703
  setup(props2) {
14521
14704
  const swipeEl = vue.ref(null);
14522
14705
  const size = vue.ref(0);
@@ -14553,7 +14736,7 @@ const __sfc__$K = vue.defineComponent({
14553
14736
  call(bindPopup, null);
14554
14737
  vue.watch(
14555
14738
  () => length.value,
14556
- () => __async$8(this, null, function* () {
14739
+ () => __async$7(this, null, function* () {
14557
14740
  yield doubleRaf();
14558
14741
  initialIndex();
14559
14742
  resize();
@@ -14562,7 +14745,7 @@ const __sfc__$K = vue.defineComponent({
14562
14745
  if (popup2) {
14563
14746
  vue.watch(
14564
14747
  () => popup2.show.value,
14565
- (show) => __async$8(this, null, function* () {
14748
+ (show) => __async$7(this, null, function* () {
14566
14749
  if (show) {
14567
14750
  yield doubleRaf();
14568
14751
  resize();
@@ -14627,7 +14810,7 @@ const __sfc__$K = vue.defineComponent({
14627
14810
  return clamp$1(index2, 0, length.value - 1);
14628
14811
  }
14629
14812
  function fixPosition() {
14630
- return __async$8(this, null, function* () {
14813
+ return __async$7(this, null, function* () {
14631
14814
  const overLeft = trackTranslate.value >= size.value;
14632
14815
  const overRight = trackTranslate.value <= -trackSize.value;
14633
14816
  const leftTranslate = 0;
@@ -14669,7 +14852,7 @@ const __sfc__$K = vue.defineComponent({
14669
14852
  dispatchSwipeItems();
14670
14853
  }
14671
14854
  function handleTouchstart(event) {
14672
- return __async$8(this, null, function* () {
14855
+ return __async$7(this, null, function* () {
14673
14856
  if (length.value <= 1 || !props2.touchable) {
14674
14857
  return;
14675
14858
  }
@@ -14722,7 +14905,7 @@ const __sfc__$K = vue.defineComponent({
14722
14905
  if (props2.navigation !== "hover") {
14723
14906
  return "";
14724
14907
  }
14725
- return n$I(`--navigation${props2.vertical ? "-vertical" : ""}-${type}-animation`);
14908
+ return n$H(`--navigation${props2.vertical ? "-vertical" : ""}-${type}-animation`);
14726
14909
  }
14727
14910
  function resize() {
14728
14911
  if (!swipeEl.value) {
@@ -14741,7 +14924,7 @@ const __sfc__$K = vue.defineComponent({
14741
14924
  });
14742
14925
  }
14743
14926
  function next(options) {
14744
- return __async$8(this, null, function* () {
14927
+ return __async$7(this, null, function* () {
14745
14928
  if (length.value <= 1) {
14746
14929
  return;
14747
14930
  }
@@ -14764,7 +14947,7 @@ const __sfc__$K = vue.defineComponent({
14764
14947
  });
14765
14948
  }
14766
14949
  function prev(options) {
14767
- return __async$8(this, null, function* () {
14950
+ return __async$7(this, null, function* () {
14768
14951
  if (length.value <= 1) {
14769
14952
  return;
14770
14953
  }
@@ -14806,8 +14989,8 @@ const __sfc__$K = vue.defineComponent({
14806
14989
  trackTranslate,
14807
14990
  lockDuration,
14808
14991
  hovering,
14809
- n: n$I,
14810
- classes: classes$B,
14992
+ n: n$H,
14993
+ classes: classes$A,
14811
14994
  handleTouchstart,
14812
14995
  handleTouchmove,
14813
14996
  handleTouchend,
@@ -14821,11 +15004,11 @@ const __sfc__$K = vue.defineComponent({
14821
15004
  };
14822
15005
  }
14823
15006
  });
14824
- __sfc__$K.render = __render__$J;
14825
- var stdin_default$27 = __sfc__$K;
14826
- withInstall(stdin_default$27);
14827
- const _SwipeComponent = stdin_default$27;
14828
- var stdin_default$26 = stdin_default$27;
15007
+ __sfc__$J.render = __render__$I;
15008
+ var stdin_default$25 = __sfc__$J;
15009
+ withInstall(stdin_default$25);
15010
+ const _SwipeComponent = stdin_default$25;
15011
+ var stdin_default$24 = stdin_default$25;
14829
15012
  function useSwipe() {
14830
15013
  const { bindParent, index, parentProvider } = useParent(SWIPE_BIND_SWIPE_ITEM_KEY);
14831
15014
  if (!bindParent) {
@@ -14837,8 +15020,8 @@ function useSwipe() {
14837
15020
  bindSwipe: bindParent
14838
15021
  };
14839
15022
  }
14840
- const { name: name$E, n: n$H } = createNamespace("swipe-item");
14841
- function __render__$I(_ctx, _cache) {
15023
+ const { name: name$D, n: n$G } = createNamespace("swipe-item");
15024
+ function __render__$H(_ctx, _cache) {
14842
15025
  return vue.openBlock(), vue.createElementBlock(
14843
15026
  "div",
14844
15027
  {
@@ -14856,8 +15039,8 @@ function __render__$I(_ctx, _cache) {
14856
15039
  /* CLASS, STYLE */
14857
15040
  );
14858
15041
  }
14859
- const __sfc__$J = vue.defineComponent({
14860
- name: name$E,
15042
+ const __sfc__$I = vue.defineComponent({
15043
+ name: name$D,
14861
15044
  setup() {
14862
15045
  const translate = vue.ref(0);
14863
15046
  const { swipe: swipe2, bindSwipe, index } = useSwipe();
@@ -14871,18 +15054,18 @@ const __sfc__$J = vue.defineComponent({
14871
15054
  translate.value = x;
14872
15055
  }
14873
15056
  return {
14874
- n: n$H,
15057
+ n: n$G,
14875
15058
  size,
14876
15059
  vertical,
14877
15060
  translate
14878
15061
  };
14879
15062
  }
14880
15063
  });
14881
- __sfc__$J.render = __render__$I;
14882
- var stdin_default$25 = __sfc__$J;
14883
- withInstall(stdin_default$25);
14884
- const _SwipeItemComponent = stdin_default$25;
14885
- var stdin_default$24 = stdin_default$25;
15064
+ __sfc__$I.render = __render__$H;
15065
+ var stdin_default$23 = __sfc__$I;
15066
+ withInstall(stdin_default$23);
15067
+ const _SwipeItemComponent = stdin_default$23;
15068
+ var stdin_default$22 = stdin_default$23;
14886
15069
  var __defProp$9 = Object.defineProperty;
14887
15070
  var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
14888
15071
  var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
@@ -14899,7 +15082,7 @@ var __spreadValues$9 = (a, b) => {
14899
15082
  }
14900
15083
  return a;
14901
15084
  };
14902
- const props$E = __spreadValues$9(__spreadValues$9({
15085
+ const props$D = __spreadValues$9(__spreadValues$9({
14903
15086
  show: Boolean,
14904
15087
  imagePreventDefault: Boolean,
14905
15088
  images: {
@@ -14919,7 +15102,7 @@ const props$E = __spreadValues$9(__spreadValues$9({
14919
15102
  closeable: Boolean,
14920
15103
  "onUpdate:show": defineListenerProp(),
14921
15104
  onLongPress: defineListenerProp()
14922
- }, pickProps(props$F, ["loop", "indicator", "onChange"])), pickProps(props$1f, [
15105
+ }, pickProps(props$E, ["loop", "indicator", "onChange"])), pickProps(props$1f, [
14923
15106
  "lockScroll",
14924
15107
  "teleport",
14925
15108
  "onOpen",
@@ -14929,7 +15112,7 @@ const props$E = __spreadValues$9(__spreadValues$9({
14929
15112
  // internal for function call closes the dialog
14930
15113
  "onRouteChange"
14931
15114
  ]));
14932
- const { name: name$D, n: n$G, classes: classes$A } = createNamespace("image-preview");
15115
+ const { name: name$C, n: n$F, classes: classes$z } = createNamespace("image-preview");
14933
15116
  const DISTANCE_OFFSET = 12;
14934
15117
  const EVENT_DELAY = 200;
14935
15118
  const TAP_DELAY = 350;
@@ -14938,7 +15121,7 @@ const LONG_PRESS_DELAY = 500;
14938
15121
  const BASE_RATIO = 1;
14939
15122
  const _hoisted_1$i = ["onTouchstart"];
14940
15123
  const _hoisted_2$c = ["src", "alt"];
14941
- function __render__$H(_ctx, _cache) {
15124
+ function __render__$G(_ctx, _cache) {
14942
15125
  const _component_var_swipe_item = vue.resolveComponent("var-swipe-item");
14943
15126
  const _component_var_swipe = vue.resolveComponent("var-swipe");
14944
15127
  const _component_var_icon = vue.resolveComponent("var-icon");
@@ -15052,16 +15235,16 @@ function __render__$H(_ctx, _cache) {
15052
15235
  /* FORWARDED */
15053
15236
  }, 8, ["class", "transition", "show", "lock-scroll", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
15054
15237
  }
15055
- const __sfc__$I = vue.defineComponent({
15056
- name: name$D,
15238
+ const __sfc__$H = vue.defineComponent({
15239
+ name: name$C,
15057
15240
  components: {
15058
- VarSwipe: stdin_default$26,
15059
- VarSwipeItem: stdin_default$24,
15241
+ VarSwipe: stdin_default$24,
15242
+ VarSwipeItem: stdin_default$22,
15060
15243
  VarPopup: stdin_default$3t,
15061
15244
  VarIcon: stdin_default$3r
15062
15245
  },
15063
15246
  inheritAttrs: false,
15064
- props: props$E,
15247
+ props: props$D,
15065
15248
  setup(props2) {
15066
15249
  const popupShow = vue.ref(false);
15067
15250
  const scale = vue.ref(1);
@@ -15166,7 +15349,7 @@ const __sfc__$I = vue.defineComponent({
15166
15349
  }
15167
15350
  function getZoom(target) {
15168
15351
  const { offsetWidth, offsetHeight } = target;
15169
- const { naturalWidth, naturalHeight } = target.querySelector(`.${n$G("image")}`);
15352
+ const { naturalWidth, naturalHeight } = target.querySelector(`.${n$F("image")}`);
15170
15353
  return {
15171
15354
  width: offsetWidth,
15172
15355
  height: offsetHeight,
@@ -15247,8 +15430,8 @@ const __sfc__$I = vue.defineComponent({
15247
15430
  canSwipe,
15248
15431
  transitionTimingFunction,
15249
15432
  transitionDuration,
15250
- n: n$G,
15251
- classes: classes$A,
15433
+ n: n$F,
15434
+ classes: classes$z,
15252
15435
  handleTouchstart,
15253
15436
  handleTouchmove,
15254
15437
  handleTouchend,
@@ -15261,8 +15444,8 @@ const __sfc__$I = vue.defineComponent({
15261
15444
  };
15262
15445
  }
15263
15446
  });
15264
- __sfc__$I.render = __render__$H;
15265
- var stdin_default$23 = __sfc__$I;
15447
+ __sfc__$H.render = __render__$G;
15448
+ var stdin_default$21 = __sfc__$H;
15266
15449
  var __defProp$8 = Object.defineProperty;
15267
15450
  var __defProps$2 = Object.defineProperties;
15268
15451
  var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
@@ -15302,7 +15485,7 @@ function ImagePreview(options) {
15302
15485
  const reactiveImagePreviewOptions = vue.reactive(imagePreviewOptions);
15303
15486
  reactiveImagePreviewOptions.teleport = "body";
15304
15487
  singletonOptions$1 = reactiveImagePreviewOptions;
15305
- const { unmountInstance } = mountInstance(stdin_default$23, reactiveImagePreviewOptions, {
15488
+ const { unmountInstance } = mountInstance(stdin_default$21, reactiveImagePreviewOptions, {
15306
15489
  onClose: () => call(reactiveImagePreviewOptions.onClose),
15307
15490
  onClosed: () => {
15308
15491
  call(reactiveImagePreviewOptions.onClosed);
@@ -15334,193 +15517,11 @@ ImagePreview.setDefaultOptions = (options) => {
15334
15517
  ImagePreview.resetDefaultOptions = () => {
15335
15518
  defaultOptions$1 = {};
15336
15519
  };
15337
- ImagePreview.Component = stdin_default$23;
15338
- withInstall(stdin_default$23);
15339
- withInstall(stdin_default$23, ImagePreview);
15340
- const _ImagePreviewComponent = stdin_default$23;
15341
- var stdin_default$22 = ImagePreview;
15342
- const props$D = {
15343
- offsetTop: {
15344
- type: [String, Number],
15345
- default: 0
15346
- },
15347
- zIndex: {
15348
- type: [String, Number],
15349
- default: 10
15350
- },
15351
- cssMode: Boolean,
15352
- disabled: Boolean,
15353
- onScroll: defineListenerProp()
15354
- };
15355
- var __async$7 = (__this, __arguments, generator) => {
15356
- return new Promise((resolve, reject) => {
15357
- var fulfilled = (value) => {
15358
- try {
15359
- step2(generator.next(value));
15360
- } catch (e) {
15361
- reject(e);
15362
- }
15363
- };
15364
- var rejected = (value) => {
15365
- try {
15366
- step2(generator.throw(value));
15367
- } catch (e) {
15368
- reject(e);
15369
- }
15370
- };
15371
- var step2 = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
15372
- step2((generator = generator.apply(__this, __arguments)).next());
15373
- });
15374
- };
15375
- const { name: name$C, n: n$F, classes: classes$z } = createNamespace("sticky");
15376
- function __render__$G(_ctx, _cache) {
15377
- return vue.openBlock(), vue.createElementBlock(
15378
- "div",
15379
- {
15380
- class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.enableCSSMode, _ctx.n("--css-mode")])),
15381
- ref: "stickyEl",
15382
- style: vue.normalizeStyle({
15383
- zIndex: _ctx.toNumber(_ctx.zIndex),
15384
- top: _ctx.enableCSSMode ? `${_ctx.offsetTop}px` : void 0,
15385
- width: _ctx.enableFixedMode ? _ctx.fixedWidth : void 0,
15386
- height: _ctx.enableFixedMode ? _ctx.fixedHeight : void 0
15387
- })
15388
- },
15389
- [
15390
- vue.createElementVNode(
15391
- "div",
15392
- {
15393
- class: vue.normalizeClass(_ctx.n("wrapper")),
15394
- ref: "wrapperEl",
15395
- style: vue.normalizeStyle({
15396
- zIndex: _ctx.toNumber(_ctx.zIndex),
15397
- position: _ctx.enableFixedMode ? "fixed" : void 0,
15398
- width: _ctx.enableFixedMode ? _ctx.fixedWrapperWidth : void 0,
15399
- height: _ctx.enableFixedMode ? _ctx.fixedWrapperHeight : void 0,
15400
- left: _ctx.enableFixedMode ? _ctx.fixedLeft : void 0,
15401
- top: _ctx.enableFixedMode ? _ctx.fixedTop : void 0
15402
- })
15403
- },
15404
- [
15405
- vue.renderSlot(_ctx.$slots, "default")
15406
- ],
15407
- 6
15408
- /* CLASS, STYLE */
15409
- )
15410
- ],
15411
- 6
15412
- /* CLASS, STYLE */
15413
- );
15414
- }
15415
- const __sfc__$H = vue.defineComponent({
15416
- name: name$C,
15417
- props: props$D,
15418
- setup(props2) {
15419
- const stickyEl = vue.ref(null);
15420
- const wrapperEl = vue.ref(null);
15421
- const isFixed = vue.ref(false);
15422
- const fixedTop = vue.ref("0px");
15423
- const fixedLeft = vue.ref("0px");
15424
- const fixedWidth = vue.ref("auto");
15425
- const fixedHeight = vue.ref("auto");
15426
- const fixedWrapperWidth = vue.ref("auto");
15427
- const fixedWrapperHeight = vue.ref("auto");
15428
- const enableCSSMode = vue.computed(() => !props2.disabled && props2.cssMode);
15429
- const enableFixedMode = vue.computed(() => !props2.disabled && !props2.cssMode && isFixed.value);
15430
- const offsetTop = vue.computed(() => toPxNum(props2.offsetTop));
15431
- let scroller;
15432
- vue.watch(() => props2.disabled, resize);
15433
- onSmartMounted(addScrollListener);
15434
- onSmartUnmounted(removeScrollListener);
15435
- onWindowResize(resize);
15436
- useEventListener(() => window, "scroll", handleScroll);
15437
- function computeFixedParams() {
15438
- const { cssMode, disabled } = props2;
15439
- if (disabled) {
15440
- return;
15441
- }
15442
- let scrollerTop = 0;
15443
- if (scroller !== window) {
15444
- const { top: top2 } = getRect(scroller);
15445
- scrollerTop = top2;
15446
- }
15447
- const wrapper3 = wrapperEl.value;
15448
- const sticky2 = stickyEl.value;
15449
- const { top: stickyTop, left: stickyLeft } = getRect(sticky2);
15450
- const currentOffsetTop = stickyTop - scrollerTop;
15451
- if (currentOffsetTop <= offsetTop.value) {
15452
- if (!cssMode) {
15453
- fixedWidth.value = `${sticky2.offsetWidth}px`;
15454
- fixedHeight.value = `${sticky2.offsetHeight}px`;
15455
- fixedTop.value = `${scrollerTop + offsetTop.value}px`;
15456
- fixedLeft.value = `${stickyLeft}px`;
15457
- fixedWrapperWidth.value = `${wrapper3.offsetWidth}px`;
15458
- fixedWrapperHeight.value = `${wrapper3.offsetHeight}px`;
15459
- isFixed.value = true;
15460
- }
15461
- return {
15462
- offsetTop: offsetTop.value,
15463
- isFixed: true
15464
- };
15465
- }
15466
- isFixed.value = false;
15467
- return {
15468
- offsetTop: currentOffsetTop,
15469
- isFixed: false
15470
- };
15471
- }
15472
- function handleScroll() {
15473
- if (!scroller) {
15474
- return;
15475
- }
15476
- const fixedParams = computeFixedParams();
15477
- if (fixedParams) {
15478
- call(props2.onScroll, fixedParams.offsetTop, fixedParams.isFixed);
15479
- }
15480
- }
15481
- function resize() {
15482
- return __async$7(this, null, function* () {
15483
- isFixed.value = false;
15484
- yield raf();
15485
- computeFixedParams();
15486
- });
15487
- }
15488
- function addScrollListener() {
15489
- return __async$7(this, null, function* () {
15490
- yield doubleRaf();
15491
- scroller = getParentScroller(stickyEl.value);
15492
- scroller !== window && scroller.addEventListener("scroll", handleScroll);
15493
- handleScroll();
15494
- });
15495
- }
15496
- function removeScrollListener() {
15497
- scroller !== window && scroller.removeEventListener("scroll", handleScroll);
15498
- }
15499
- return {
15500
- stickyEl,
15501
- wrapperEl,
15502
- isFixed,
15503
- offsetTop,
15504
- fixedTop,
15505
- fixedLeft,
15506
- fixedWidth,
15507
- fixedHeight,
15508
- fixedWrapperWidth,
15509
- fixedWrapperHeight,
15510
- enableCSSMode,
15511
- enableFixedMode,
15512
- n: n$F,
15513
- classes: classes$z,
15514
- resize,
15515
- toNumber
15516
- };
15517
- }
15518
- });
15519
- __sfc__$H.render = __render__$G;
15520
- var stdin_default$21 = __sfc__$H;
15520
+ ImagePreview.Component = stdin_default$21;
15521
15521
  withInstall(stdin_default$21);
15522
- const _StickyComponent = stdin_default$21;
15523
- var stdin_default$20 = stdin_default$21;
15522
+ withInstall(stdin_default$21, ImagePreview);
15523
+ const _ImagePreviewComponent = stdin_default$21;
15524
+ var stdin_default$20 = ImagePreview;
15524
15525
  const INDEX_BAR_BIND_INDEX_ANCHOR_KEY = Symbol("INDEX_BAR_BIND_INDEX_ANCHOR_KEY");
15525
15526
  function useIndexAnchors() {
15526
15527
  const { bindChildren, length, childProviders } = useChildren(
@@ -15582,7 +15583,7 @@ function __render__$F(_ctx, _cache) {
15582
15583
  }
15583
15584
  const __sfc__$G = vue.defineComponent({
15584
15585
  name: name$B,
15585
- components: { VarSticky: stdin_default$20 },
15586
+ components: { VarSticky: stdin_default$2u },
15586
15587
  inheritAttrs: false,
15587
15588
  props: props$C,
15588
15589
  setup(props2) {
@@ -15906,7 +15907,7 @@ const props$A = __spreadValues$7({
15906
15907
  onChange: defineListenerProp(),
15907
15908
  onClear: defineListenerProp(),
15908
15909
  "onUpdate:modelValue": defineListenerProp()
15909
- }, pickProps(props$J, [
15910
+ }, pickProps(props$I, [
15910
15911
  "size",
15911
15912
  "variant",
15912
15913
  "placeholder",
@@ -16080,7 +16081,7 @@ const __sfc__$E = vue.defineComponent({
16080
16081
  name: name$z,
16081
16082
  components: {
16082
16083
  VarFormDetails: stdin_default$2O,
16083
- VarFieldDecorator: stdin_default$2e
16084
+ VarFieldDecorator: stdin_default$2c
16084
16085
  },
16085
16086
  props: props$A,
16086
16087
  setup(props2) {
@@ -20146,7 +20147,7 @@ const props$g = __spreadValues$4({
20146
20147
  onChange: defineListenerProp(),
20147
20148
  onClear: defineListenerProp(),
20148
20149
  "onUpdate:modelValue": defineListenerProp()
20149
- }, pickProps(props$J, [
20150
+ }, pickProps(props$I, [
20150
20151
  "size",
20151
20152
  "variant",
20152
20153
  "placeholder",
@@ -20374,7 +20375,7 @@ const __sfc__$h = vue.defineComponent({
20374
20375
  VarIcon: stdin_default$3r,
20375
20376
  VarMenu: stdin_default$1O,
20376
20377
  VarChip: stdin_default$2I,
20377
- VarFieldDecorator: stdin_default$2e,
20378
+ VarFieldDecorator: stdin_default$2c,
20378
20379
  VarFormDetails: stdin_default$2O
20379
20380
  },
20380
20381
  props: props$g,
@@ -22485,7 +22486,7 @@ function __render__$7(_ctx, _cache) {
22485
22486
  }
22486
22487
  const __sfc__$7 = vue.defineComponent({
22487
22488
  name: name$6,
22488
- components: { VarSwipeItem: stdin_default$24 },
22489
+ components: { VarSwipeItem: stdin_default$22 },
22489
22490
  props: props$6,
22490
22491
  setup(props2) {
22491
22492
  const current = vue.ref(false);
@@ -22621,9 +22622,9 @@ const props$4 = {
22621
22622
  },
22622
22623
  safeArea: Boolean,
22623
22624
  sticky: Boolean,
22624
- stickyCssMode: pickProps(props$D, "cssMode"),
22625
- stickyZIndex: pickProps(props$D, "zIndex"),
22626
- offsetTop: pickProps(props$D, "offsetTop"),
22625
+ stickyCssMode: pickProps(props$P, "cssMode"),
22626
+ stickyZIndex: pickProps(props$P, "zIndex"),
22627
+ offsetTop: pickProps(props$P, "offsetTop"),
22627
22628
  onClick: defineListenerProp(),
22628
22629
  onChange: defineListenerProp(),
22629
22630
  "onUpdate:active": defineListenerProp()
@@ -22726,7 +22727,7 @@ function __render__$5(_ctx, _cache) {
22726
22727
  }
22727
22728
  const __sfc__$5 = vue.defineComponent({
22728
22729
  name: name$4,
22729
- components: { VarSticky: stdin_default$20 },
22730
+ components: { VarSticky: stdin_default$2u },
22730
22731
  inheritAttrs: false,
22731
22732
  props: props$4,
22732
22733
  setup(props2) {
@@ -22916,7 +22917,7 @@ function __render__$4(_ctx, _cache) {
22916
22917
  }
22917
22918
  const __sfc__$4 = vue.defineComponent({
22918
22919
  name: name$3,
22919
- components: { VarSwipe: stdin_default$26 },
22920
+ components: { VarSwipe: stdin_default$24 },
22920
22921
  props: props$3,
22921
22922
  setup(props2) {
22922
22923
  const swipe2 = vue.ref(null);
@@ -24362,7 +24363,7 @@ const __sfc__$1 = vue.defineComponent({
24362
24363
  }
24363
24364
  const { url } = varFile;
24364
24365
  if (isHTMLSupportImage(url)) {
24365
- stdin_default$22(url);
24366
+ stdin_default$20(url);
24366
24367
  return;
24367
24368
  }
24368
24369
  if (isHTMLSupportVideo(url)) {
@@ -24503,7 +24504,7 @@ const __sfc__$1 = vue.defineComponent({
24503
24504
  function closePreview() {
24504
24505
  currentPreview.value = null;
24505
24506
  showPreview.value = false;
24506
- stdin_default$22.close();
24507
+ stdin_default$20.close();
24507
24508
  }
24508
24509
  function validateWithTrigger(trigger) {
24509
24510
  vue.nextTick(() => {
@@ -24973,9 +24974,9 @@ const skeleton = "";
24973
24974
  const SkeletonSfc = "";
24974
24975
  const slider = "";
24975
24976
  const SliderSfc = "";
24976
- const SnackbarSfc = "";
24977
24977
  const snackbar = "";
24978
24978
  const coreSfc = "";
24979
+ const SnackbarSfc = "";
24979
24980
  const space = "";
24980
24981
  const step = "";
24981
24982
  const StepSfc = "";
@@ -25002,7 +25003,7 @@ const uploader = "";
25002
25003
  const UploaderSfc = "";
25003
25004
  const watermark = "";
25004
25005
  const WatermarkSfc = "";
25005
- const version = "2.18.3";
25006
+ const version = "2.18.4";
25006
25007
  function install(app) {
25007
25008
  stdin_default$3k.install && app.use(stdin_default$3k);
25008
25009
  stdin_default$3i.install && app.use(stdin_default$3i);
@@ -25027,21 +25028,21 @@ function install(app) {
25027
25028
  stdin_default$3w.install && app.use(stdin_default$3w);
25028
25029
  stdin_default$2A.install && app.use(stdin_default$2A);
25029
25030
  stdin_default$2y.install && app.use(stdin_default$2y);
25030
- stdin_default$2s.install && app.use(stdin_default$2s);
25031
25031
  stdin_default$2q.install && app.use(stdin_default$2q);
25032
25032
  stdin_default$2o.install && app.use(stdin_default$2o);
25033
25033
  stdin_default$2m.install && app.use(stdin_default$2m);
25034
- stdin_default$2i.install && app.use(stdin_default$2i);
25034
+ stdin_default$2k.install && app.use(stdin_default$2k);
25035
25035
  stdin_default$2g.install && app.use(stdin_default$2g);
25036
25036
  stdin_default$2e.install && app.use(stdin_default$2e);
25037
25037
  stdin_default$2c.install && app.use(stdin_default$2c);
25038
25038
  stdin_default$2a.install && app.use(stdin_default$2a);
25039
+ stdin_default$28.install && app.use(stdin_default$28);
25039
25040
  stdin_default$2O.install && app.use(stdin_default$2O);
25040
25041
  stdin_default$38.install && app.use(stdin_default$38);
25041
25042
  stdin_default$39.install && app.use(stdin_default$39);
25042
25043
  stdin_default$3r.install && app.use(stdin_default$3r);
25043
- stdin_default$28.install && app.use(stdin_default$28);
25044
- stdin_default$22.install && app.use(stdin_default$22);
25044
+ stdin_default$26.install && app.use(stdin_default$26);
25045
+ stdin_default$20.install && app.use(stdin_default$20);
25045
25046
  stdin_default$1_.install && app.use(stdin_default$1_);
25046
25047
  stdin_default$1Y.install && app.use(stdin_default$1Y);
25047
25048
  stdin_default$1W.install && app.use(stdin_default$1W);
@@ -25075,10 +25076,10 @@ function install(app) {
25075
25076
  stdin_default$15.install && app.use(stdin_default$15);
25076
25077
  stdin_default$13.install && app.use(stdin_default$13);
25077
25078
  stdin_default$11.install && app.use(stdin_default$11);
25078
- stdin_default$20.install && app.use(stdin_default$20);
25079
+ stdin_default$2u.install && app.use(stdin_default$2u);
25079
25080
  stdin_default$$.install && app.use(stdin_default$$);
25080
- stdin_default$26.install && app.use(stdin_default$26);
25081
25081
  stdin_default$24.install && app.use(stdin_default$24);
25082
+ stdin_default$22.install && app.use(stdin_default$22);
25082
25083
  stdin_default$Z.install && app.use(stdin_default$Z);
25083
25084
  stdin_default$X.install && app.use(stdin_default$X);
25084
25085
  stdin_default$V.install && app.use(stdin_default$V);
@@ -25087,7 +25088,7 @@ function install(app) {
25087
25088
  stdin_default$P.install && app.use(stdin_default$P);
25088
25089
  stdin_default$7.install && app.use(stdin_default$7);
25089
25090
  stdin_default$4.install && app.use(stdin_default$4);
25090
- stdin_default$2k.install && app.use(stdin_default$2k);
25091
+ stdin_default$2i.install && app.use(stdin_default$2i);
25091
25092
  stdin_default$2.install && app.use(stdin_default$2);
25092
25093
  stdin_default.install && app.use(stdin_default);
25093
25094
  }
@@ -25117,21 +25118,21 @@ const index_bundle = {
25117
25118
  Context: stdin_default$3w,
25118
25119
  Countdown: stdin_default$2A,
25119
25120
  Counter: stdin_default$2y,
25120
- DatePicker: stdin_default$2s,
25121
- Dialog: stdin_default$2q,
25122
- Divider: stdin_default$2o,
25123
- Drag: stdin_default$2m,
25124
- Ellipsis: stdin_default$2i,
25125
- Fab: stdin_default$2g,
25126
- FieldDecorator: stdin_default$2e,
25127
- FloatingPanel: stdin_default$2c,
25128
- Form: stdin_default$2a,
25121
+ DatePicker: stdin_default$2q,
25122
+ Dialog: stdin_default$2o,
25123
+ Divider: stdin_default$2m,
25124
+ Drag: stdin_default$2k,
25125
+ Ellipsis: stdin_default$2g,
25126
+ Fab: stdin_default$2e,
25127
+ FieldDecorator: stdin_default$2c,
25128
+ FloatingPanel: stdin_default$2a,
25129
+ Form: stdin_default$28,
25129
25130
  FormDetails: stdin_default$2O,
25130
25131
  Hover: stdin_default$38,
25131
25132
  HoverOverlay: stdin_default$39,
25132
25133
  Icon: stdin_default$3r,
25133
- Image: stdin_default$28,
25134
- ImagePreview: stdin_default$22,
25134
+ Image: stdin_default$26,
25135
+ ImagePreview: stdin_default$20,
25135
25136
  IndexAnchor: stdin_default$1_,
25136
25137
  IndexBar: stdin_default$1Y,
25137
25138
  Input: stdin_default$1W,
@@ -25165,10 +25166,10 @@ const index_bundle = {
25165
25166
  Space: stdin_default$15,
25166
25167
  Step: stdin_default$13,
25167
25168
  Steps: stdin_default$11,
25168
- Sticky: stdin_default$20,
25169
+ Sticky: stdin_default$2u,
25169
25170
  StyleProvider: stdin_default$$,
25170
- Swipe: stdin_default$26,
25171
- SwipeItem: stdin_default$24,
25171
+ Swipe: stdin_default$24,
25172
+ SwipeItem: stdin_default$22,
25172
25173
  Switch: stdin_default$Z,
25173
25174
  Tab: stdin_default$X,
25174
25175
  TabItem: stdin_default$V,
@@ -25177,7 +25178,7 @@ const index_bundle = {
25177
25178
  TabsItems: stdin_default$P,
25178
25179
  Themes: stdin_default$7,
25179
25180
  TimePicker: stdin_default$4,
25180
- Tooltip: stdin_default$2k,
25181
+ Tooltip: stdin_default$2i,
25181
25182
  Uploader: stdin_default$2,
25182
25183
  Watermark: stdin_default
25183
25184
  };
@@ -25204,21 +25205,21 @@ exports.CollapseItem = stdin_default$2C;
25204
25205
  exports.Context = stdin_default$3w;
25205
25206
  exports.Countdown = stdin_default$2A;
25206
25207
  exports.Counter = stdin_default$2y;
25207
- exports.DatePicker = stdin_default$2s;
25208
- exports.Dialog = stdin_default$2q;
25209
- exports.Divider = stdin_default$2o;
25210
- exports.Drag = stdin_default$2m;
25211
- exports.Ellipsis = stdin_default$2i;
25212
- exports.Fab = stdin_default$2g;
25213
- exports.FieldDecorator = stdin_default$2e;
25214
- exports.FloatingPanel = stdin_default$2c;
25215
- exports.Form = stdin_default$2a;
25208
+ exports.DatePicker = stdin_default$2q;
25209
+ exports.Dialog = stdin_default$2o;
25210
+ exports.Divider = stdin_default$2m;
25211
+ exports.Drag = stdin_default$2k;
25212
+ exports.Ellipsis = stdin_default$2g;
25213
+ exports.Fab = stdin_default$2e;
25214
+ exports.FieldDecorator = stdin_default$2c;
25215
+ exports.FloatingPanel = stdin_default$2a;
25216
+ exports.Form = stdin_default$28;
25216
25217
  exports.FormDetails = stdin_default$2O;
25217
25218
  exports.Hover = stdin_default$38;
25218
25219
  exports.HoverOverlay = stdin_default$39;
25219
25220
  exports.Icon = stdin_default$3r;
25220
- exports.Image = stdin_default$28;
25221
- exports.ImagePreview = stdin_default$22;
25221
+ exports.Image = stdin_default$26;
25222
+ exports.ImagePreview = stdin_default$20;
25222
25223
  exports.IndexAnchor = stdin_default$1_;
25223
25224
  exports.IndexBar = stdin_default$1Y;
25224
25225
  exports.Input = stdin_default$1W;
@@ -25254,10 +25255,10 @@ exports.Snackbar = stdin_default$17;
25254
25255
  exports.Space = stdin_default$15;
25255
25256
  exports.Step = stdin_default$13;
25256
25257
  exports.Steps = stdin_default$11;
25257
- exports.Sticky = stdin_default$20;
25258
+ exports.Sticky = stdin_default$2u;
25258
25259
  exports.StyleProvider = stdin_default$$;
25259
- exports.Swipe = stdin_default$26;
25260
- exports.SwipeItem = stdin_default$24;
25260
+ exports.Swipe = stdin_default$24;
25261
+ exports.SwipeItem = stdin_default$22;
25261
25262
  exports.Switch = stdin_default$Z;
25262
25263
  exports.Tab = stdin_default$X;
25263
25264
  exports.TabItem = stdin_default$V;
@@ -25266,7 +25267,7 @@ exports.Tabs = stdin_default$R;
25266
25267
  exports.TabsItems = stdin_default$P;
25267
25268
  exports.Themes = stdin_default$7;
25268
25269
  exports.TimePicker = stdin_default$4;
25269
- exports.Tooltip = stdin_default$2k;
25270
+ exports.Tooltip = stdin_default$2i;
25270
25271
  exports.Uploader = stdin_default$2;
25271
25272
  exports.Watermark = stdin_default;
25272
25273
  exports._ActionSheetComponent = _ActionSheetComponent;
@@ -25380,17 +25381,17 @@ exports.counterProps = props$R;
25380
25381
  exports.datePickerProps = props$Q;
25381
25382
  exports.default = index_bundle;
25382
25383
  exports.defaultLazyOptions = defaultLazyOptions;
25383
- exports.dialogProps = props$P;
25384
- exports.dividerProps = props$O;
25385
- exports.dragProps = props$N;
25384
+ exports.dialogProps = props$O;
25385
+ exports.dividerProps = props$N;
25386
+ exports.dragProps = props$M;
25386
25387
  exports.enUS = stdin_default$3p;
25387
- exports.fieldDecoratorProps = props$J;
25388
+ exports.fieldDecoratorProps = props$I;
25388
25389
  exports.formDetailsProps = props$Z;
25389
- exports.formProps = props$H;
25390
+ exports.formProps = props$G;
25390
25391
  exports.iconProps = props$1e;
25391
25392
  exports.imageCache = imageCache;
25392
- exports.imagePreviewProps = props$E;
25393
- exports.imageProps = props$G;
25393
+ exports.imagePreviewProps = props$D;
25394
+ exports.imageProps = props$F;
25394
25395
  exports.indexAnchorProps = props$C;
25395
25396
  exports.indexBarProps = props$B;
25396
25397
  exports.inputProps = props$A;
@@ -25424,9 +25425,9 @@ exports.snackbarProps = props$d;
25424
25425
  exports.spaceProps = props$c;
25425
25426
  exports.stepProps = props$b;
25426
25427
  exports.stepsProps = props$a;
25427
- exports.stickyProps = props$D;
25428
+ exports.stickyProps = props$P;
25428
25429
  exports.styleProviderProps = props$9;
25429
- exports.swipeProps = props$F;
25430
+ exports.swipeProps = props$E;
25430
25431
  exports.switchProps = props$8;
25431
25432
  exports.tabItemProps = props$6;
25432
25433
  exports.tabProps = props$7;
@@ -25434,7 +25435,7 @@ exports.tableProps = props$5;
25434
25435
  exports.tabsItemsProps = props$3;
25435
25436
  exports.tabsProps = props$4;
25436
25437
  exports.timePickerProps = props$2;
25437
- exports.tooltipProps = props$M;
25438
+ exports.tooltipProps = props$L;
25438
25439
  exports.uploaderProps = props$1;
25439
25440
  exports.use = use;
25440
25441
  exports.useHoverOverlay = useHoverOverlay;