vant 4.4.1 → 4.5.0

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 (59) hide show
  1. package/es/address-list/AddressList.d.ts +13 -0
  2. package/es/address-list/AddressList.mjs +4 -2
  3. package/es/address-list/AddressListItem.d.ts +9 -0
  4. package/es/address-list/AddressListItem.mjs +4 -3
  5. package/es/address-list/index.d.ts +9 -0
  6. package/es/back-top/BackTop.mjs +14 -1
  7. package/es/date-picker/DatePicker.d.ts +3 -3
  8. package/es/date-picker/index.d.ts +2 -2
  9. package/es/date-picker/utils.d.ts +4 -2
  10. package/es/date-picker/utils.mjs +8 -3
  11. package/es/dropdown-menu/DropdownMenu.mjs +10 -3
  12. package/es/dropdown-menu/types.d.ts +5 -1
  13. package/es/floating-panel/FloatingPanel.d.ts +77 -0
  14. package/es/floating-panel/FloatingPanel.mjs +126 -0
  15. package/es/floating-panel/index.css +1 -0
  16. package/es/floating-panel/index.d.ts +60 -0
  17. package/es/floating-panel/index.mjs +8 -0
  18. package/es/floating-panel/style/index.d.ts +1 -0
  19. package/es/floating-panel/style/index.mjs +2 -0
  20. package/es/index.d.ts +2 -1
  21. package/es/index.mjs +4 -1
  22. package/es/slider/Slider.mjs +10 -2
  23. package/es/time-picker/TimePicker.d.ts +31 -4
  24. package/es/time-picker/TimePicker.mjs +73 -21
  25. package/es/time-picker/index.d.ts +20 -2
  26. package/es/utils/basic.d.ts +3 -0
  27. package/lib/address-list/AddressList.d.ts +13 -0
  28. package/lib/address-list/AddressList.js +3 -1
  29. package/lib/address-list/AddressListItem.d.ts +9 -0
  30. package/lib/address-list/AddressListItem.js +3 -2
  31. package/lib/address-list/index.d.ts +9 -0
  32. package/lib/back-top/BackTop.js +13 -0
  33. package/lib/date-picker/DatePicker.d.ts +3 -3
  34. package/lib/date-picker/index.d.ts +2 -2
  35. package/lib/date-picker/utils.d.ts +4 -2
  36. package/lib/date-picker/utils.js +2 -2
  37. package/lib/dropdown-menu/DropdownMenu.js +10 -3
  38. package/lib/dropdown-menu/types.d.ts +5 -1
  39. package/lib/floating-panel/FloatingPanel.d.ts +77 -0
  40. package/lib/floating-panel/FloatingPanel.js +145 -0
  41. package/lib/floating-panel/index.css +1 -0
  42. package/lib/floating-panel/index.d.ts +60 -0
  43. package/lib/floating-panel/index.js +37 -0
  44. package/lib/floating-panel/style/index.d.ts +1 -0
  45. package/lib/floating-panel/style/index.js +2 -0
  46. package/lib/index.css +1 -1
  47. package/lib/index.d.ts +2 -1
  48. package/lib/index.js +4 -1
  49. package/lib/slider/Slider.js +10 -2
  50. package/lib/time-picker/TimePicker.d.ts +31 -4
  51. package/lib/time-picker/TimePicker.js +84 -32
  52. package/lib/time-picker/index.d.ts +20 -2
  53. package/lib/utils/basic.d.ts +3 -0
  54. package/lib/vant.cjs.js +770 -570
  55. package/lib/vant.es.js +770 -570
  56. package/lib/vant.js +766 -566
  57. package/lib/vant.min.js +1 -1
  58. package/lib/web-types.json +1 -1
  59. package/package.json +1 -1
package/lib/vant.es.js CHANGED
@@ -112,7 +112,7 @@ function isHidden(elementRef) {
112
112
  const parentHidden = el.offsetParent === null && style.position !== "fixed";
113
113
  return hidden || parentHidden;
114
114
  }
115
- const { width: windowWidth, height: windowHeight } = useWindowSize();
115
+ const { width: windowWidth, height: windowHeight$1 } = useWindowSize();
116
116
  function addUnit(value) {
117
117
  if (isDef(value)) {
118
118
  return isNumeric(value) ? `${value}px` : String(value);
@@ -160,7 +160,7 @@ function convertVw(value) {
160
160
  }
161
161
  function convertVh(value) {
162
162
  value = value.replace(/vh/g, "");
163
- return +value * windowHeight.value / 100;
163
+ return +value * windowHeight$1.value / 100;
164
164
  }
165
165
  function unitToPx(value) {
166
166
  if (typeof value === "number") {
@@ -236,7 +236,7 @@ function deepAssign(to, from) {
236
236
  });
237
237
  return to;
238
238
  }
239
- var stdin_default$1Q = {
239
+ var stdin_default$1R = {
240
240
  name: "姓名",
241
241
  tel: "电话",
242
242
  save: "保存",
@@ -300,7 +300,7 @@ var stdin_default$1Q = {
300
300
  };
301
301
  const lang = ref("zh-CN");
302
302
  const messages = reactive({
303
- "zh-CN": stdin_default$1Q
303
+ "zh-CN": stdin_default$1R
304
304
  });
305
305
  const Locale = {
306
306
  messages() {
@@ -315,11 +315,11 @@ const Locale = {
315
315
  }
316
316
  };
317
317
  const useCurrentLang = () => lang;
318
- var stdin_default$1P = Locale;
318
+ var stdin_default$1Q = Locale;
319
319
  function createTranslate(name2) {
320
320
  const prefix = camelize(name2) + ".";
321
321
  return (path, ...args) => {
322
- const messages2 = stdin_default$1P.messages();
322
+ const messages2 = stdin_default$1Q.messages();
323
323
  const message = get(messages2, prefix + path) || get(messages2, path);
324
324
  return isFunction(message) ? message(...args) : message;
325
325
  };
@@ -430,7 +430,7 @@ const useHeight = (element, withSafeArea) => {
430
430
  }
431
431
  });
432
432
  onPopupReopen(() => nextTick(setHeight));
433
- watch([windowWidth, windowHeight], setHeight);
433
+ watch([windowWidth, windowHeight$1], setHeight);
434
434
  return height;
435
435
  };
436
436
  function usePlaceholder(contentRef, bem2) {
@@ -442,20 +442,20 @@ function usePlaceholder(contentRef, bem2) {
442
442
  }
443
443
  }, [renderContent()]);
444
444
  }
445
- const [name$1F, bem$1A] = createNamespace("action-bar");
446
- const ACTION_BAR_KEY = Symbol(name$1F);
445
+ const [name$1G, bem$1B] = createNamespace("action-bar");
446
+ const ACTION_BAR_KEY = Symbol(name$1G);
447
447
  const actionBarProps = {
448
448
  placeholder: Boolean,
449
449
  safeAreaInsetBottom: truthProp
450
450
  };
451
- var stdin_default$1O = defineComponent({
452
- name: name$1F,
451
+ var stdin_default$1P = defineComponent({
452
+ name: name$1G,
453
453
  props: actionBarProps,
454
454
  setup(props, {
455
455
  slots
456
456
  }) {
457
457
  const root = ref();
458
- const renderPlaceholder = usePlaceholder(root, bem$1A);
458
+ const renderPlaceholder = usePlaceholder(root, bem$1B);
459
459
  const {
460
460
  linkChildren
461
461
  } = useChildren(ACTION_BAR_KEY);
@@ -464,7 +464,7 @@ var stdin_default$1O = defineComponent({
464
464
  var _a;
465
465
  return createVNode("div", {
466
466
  "ref": root,
467
- "class": [bem$1A(), {
467
+ "class": [bem$1B(), {
468
468
  "van-safe-area-bottom": props.safeAreaInsetBottom
469
469
  }]
470
470
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -477,7 +477,7 @@ var stdin_default$1O = defineComponent({
477
477
  };
478
478
  }
479
479
  });
480
- const ActionBar = withInstall(stdin_default$1O);
480
+ const ActionBar = withInstall(stdin_default$1P);
481
481
  function useExpose(apis) {
482
482
  const instance2 = getCurrentInstance();
483
483
  if (instance2) {
@@ -505,7 +505,7 @@ function useRoute() {
505
505
  const vm = getCurrentInstance().proxy;
506
506
  return () => route(vm);
507
507
  }
508
- const [name$1E, bem$1z] = createNamespace("badge");
508
+ const [name$1F, bem$1A] = createNamespace("badge");
509
509
  const badgeProps = {
510
510
  dot: Boolean,
511
511
  max: numericProp,
@@ -516,8 +516,8 @@ const badgeProps = {
516
516
  showZero: truthProp,
517
517
  position: makeStringProp("top-right")
518
518
  };
519
- var stdin_default$1N = defineComponent({
520
- name: name$1E,
519
+ var stdin_default$1O = defineComponent({
520
+ name: name$1F,
521
521
  props: badgeProps,
522
522
  setup(props, {
523
523
  slots
@@ -580,7 +580,7 @@ var stdin_default$1N = defineComponent({
580
580
  const renderBadge = () => {
581
581
  if (hasContent() || props.dot) {
582
582
  return createVNode("div", {
583
- "class": bem$1z([props.position, {
583
+ "class": bem$1A([props.position, {
584
584
  dot: props.dot,
585
585
  fixed: !!slots.default
586
586
  }]),
@@ -594,7 +594,7 @@ var stdin_default$1N = defineComponent({
594
594
  tag
595
595
  } = props;
596
596
  return createVNode(tag, {
597
- "class": bem$1z("wrapper")
597
+ "class": bem$1A("wrapper")
598
598
  }, {
599
599
  default: () => [slots.default(), renderBadge()]
600
600
  });
@@ -603,14 +603,14 @@ var stdin_default$1N = defineComponent({
603
603
  };
604
604
  }
605
605
  });
606
- const Badge = withInstall(stdin_default$1N);
606
+ const Badge = withInstall(stdin_default$1O);
607
607
  let globalZIndex = 2e3;
608
608
  const useGlobalZIndex = () => ++globalZIndex;
609
609
  const setGlobalZIndex = (val) => {
610
610
  globalZIndex = val;
611
611
  };
612
- const [name$1D, bem$1y] = createNamespace("config-provider");
613
- const CONFIG_PROVIDER_KEY = Symbol(name$1D);
612
+ const [name$1E, bem$1z] = createNamespace("config-provider");
613
+ const CONFIG_PROVIDER_KEY = Symbol(name$1E);
614
614
  const configProviderProps = {
615
615
  tag: makeStringProp("div"),
616
616
  theme: makeStringProp("light"),
@@ -627,8 +627,8 @@ function mapThemeVarsToCSSVars(themeVars) {
627
627
  });
628
628
  return cssVars;
629
629
  }
630
- var stdin_default$1M = defineComponent({
631
- name: name$1D,
630
+ var stdin_default$1N = defineComponent({
631
+ name: name$1E,
632
632
  props: configProviderProps,
633
633
  setup(props, {
634
634
  slots
@@ -660,7 +660,7 @@ var stdin_default$1M = defineComponent({
660
660
  }
661
661
  });
662
662
  return () => createVNode(props.tag, {
663
- "class": bem$1y(),
663
+ "class": bem$1z(),
664
664
  "style": style.value
665
665
  }, {
666
666
  default: () => {
@@ -670,7 +670,7 @@ var stdin_default$1M = defineComponent({
670
670
  });
671
671
  }
672
672
  });
673
- const [name$1C, bem$1x] = createNamespace("icon");
673
+ const [name$1D, bem$1y] = createNamespace("icon");
674
674
  const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
675
675
  const iconProps = {
676
676
  dot: Boolean,
@@ -682,14 +682,14 @@ const iconProps = {
682
682
  badgeProps: Object,
683
683
  classPrefix: String
684
684
  };
685
- var stdin_default$1L = defineComponent({
686
- name: name$1C,
685
+ var stdin_default$1M = defineComponent({
686
+ name: name$1D,
687
687
  props: iconProps,
688
688
  setup(props, {
689
689
  slots
690
690
  }) {
691
691
  const config = inject(CONFIG_PROVIDER_KEY, null);
692
- const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1x());
692
+ const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1y());
693
693
  return () => {
694
694
  const {
695
695
  tag,
@@ -713,7 +713,7 @@ var stdin_default$1L = defineComponent({
713
713
  default: () => {
714
714
  var _a;
715
715
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
716
- "class": bem$1x("image"),
716
+ "class": bem$1y("image"),
717
717
  "src": name2
718
718
  }, null)];
719
719
  }
@@ -721,13 +721,13 @@ var stdin_default$1L = defineComponent({
721
721
  };
722
722
  }
723
723
  });
724
- const Icon = withInstall(stdin_default$1L);
725
- const [name$1B, bem$1w] = createNamespace("loading");
724
+ const Icon = withInstall(stdin_default$1M);
725
+ const [name$1C, bem$1x] = createNamespace("loading");
726
726
  const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
727
- "class": bem$1w("line", String(index + 1))
727
+ "class": bem$1x("line", String(index + 1))
728
728
  }, null));
729
729
  const CircularIcon = createVNode("svg", {
730
- "class": bem$1w("circular"),
730
+ "class": bem$1x("circular"),
731
731
  "viewBox": "25 25 50 50"
732
732
  }, [createVNode("circle", {
733
733
  "cx": "50",
@@ -743,8 +743,8 @@ const loadingProps = {
743
743
  textSize: numericProp,
744
744
  textColor: String
745
745
  };
746
- var stdin_default$1K = defineComponent({
747
- name: name$1B,
746
+ var stdin_default$1L = defineComponent({
747
+ name: name$1C,
748
748
  props: loadingProps,
749
749
  setup(props, {
750
750
  slots
@@ -755,7 +755,7 @@ var stdin_default$1K = defineComponent({
755
755
  const renderIcon = () => {
756
756
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
757
757
  return createVNode("span", {
758
- "class": bem$1w("spinner", props.type),
758
+ "class": bem$1x("spinner", props.type),
759
759
  "style": spinnerStyle.value
760
760
  }, [slots.icon ? slots.icon() : DefaultIcon]);
761
761
  };
@@ -763,7 +763,7 @@ var stdin_default$1K = defineComponent({
763
763
  var _a;
764
764
  if (slots.default) {
765
765
  return createVNode("span", {
766
- "class": bem$1w("text"),
766
+ "class": bem$1x("text"),
767
767
  "style": {
768
768
  fontSize: addUnit(props.textSize),
769
769
  color: (_a = props.textColor) != null ? _a : props.color
@@ -777,7 +777,7 @@ var stdin_default$1K = defineComponent({
777
777
  vertical
778
778
  } = props;
779
779
  return createVNode("div", {
780
- "class": bem$1w([type, {
780
+ "class": bem$1x([type, {
781
781
  vertical
782
782
  }]),
783
783
  "aria-live": "polite",
@@ -786,8 +786,8 @@ var stdin_default$1K = defineComponent({
786
786
  };
787
787
  }
788
788
  });
789
- const Loading = withInstall(stdin_default$1K);
790
- const [name$1A, bem$1v] = createNamespace("button");
789
+ const Loading = withInstall(stdin_default$1L);
790
+ const [name$1B, bem$1w] = createNamespace("button");
791
791
  const buttonProps = extend({}, routeProps, {
792
792
  tag: makeStringProp("button"),
793
793
  text: String,
@@ -809,8 +809,8 @@ const buttonProps = extend({}, routeProps, {
809
809
  loadingType: String,
810
810
  iconPosition: makeStringProp("left")
811
811
  });
812
- var stdin_default$1J = defineComponent({
813
- name: name$1A,
812
+ var stdin_default$1K = defineComponent({
813
+ name: name$1B,
814
814
  props: buttonProps,
815
815
  emits: ["click"],
816
816
  setup(props, {
@@ -825,7 +825,7 @@ var stdin_default$1J = defineComponent({
825
825
  return createVNode(Loading, {
826
826
  "size": props.loadingSize,
827
827
  "type": props.loadingType,
828
- "class": bem$1v("loading")
828
+ "class": bem$1w("loading")
829
829
  }, null);
830
830
  };
831
831
  const renderIcon = () => {
@@ -834,13 +834,13 @@ var stdin_default$1J = defineComponent({
834
834
  }
835
835
  if (slots.icon) {
836
836
  return createVNode("div", {
837
- "class": bem$1v("icon")
837
+ "class": bem$1w("icon")
838
838
  }, [slots.icon()]);
839
839
  }
840
840
  if (props.icon) {
841
841
  return createVNode(Icon, {
842
842
  "name": props.icon,
843
- "class": bem$1v("icon"),
843
+ "class": bem$1w("icon"),
844
844
  "classPrefix": props.iconPrefix
845
845
  }, null);
846
846
  }
@@ -854,7 +854,7 @@ var stdin_default$1J = defineComponent({
854
854
  }
855
855
  if (text) {
856
856
  return createVNode("span", {
857
- "class": bem$1v("text")
857
+ "class": bem$1w("text")
858
858
  }, [text]);
859
859
  }
860
860
  };
@@ -901,7 +901,7 @@ var stdin_default$1J = defineComponent({
901
901
  nativeType,
902
902
  iconPosition
903
903
  } = props;
904
- const classes = [bem$1v([type, size, {
904
+ const classes = [bem$1w([type, size, {
905
905
  plain,
906
906
  block,
907
907
  round,
@@ -920,14 +920,14 @@ var stdin_default$1J = defineComponent({
920
920
  "onClick": onClick
921
921
  }, {
922
922
  default: () => [createVNode("div", {
923
- "class": bem$1v("content")
923
+ "class": bem$1w("content")
924
924
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
925
925
  });
926
926
  };
927
927
  }
928
928
  });
929
- const Button = withInstall(stdin_default$1J);
930
- const [name$1z, bem$1u] = createNamespace("action-bar-button");
929
+ const Button = withInstall(stdin_default$1K);
930
+ const [name$1A, bem$1v] = createNamespace("action-bar-button");
931
931
  const actionBarButtonProps = extend({}, routeProps, {
932
932
  type: String,
933
933
  text: String,
@@ -936,8 +936,8 @@ const actionBarButtonProps = extend({}, routeProps, {
936
936
  loading: Boolean,
937
937
  disabled: Boolean
938
938
  });
939
- var stdin_default$1I = defineComponent({
940
- name: name$1z,
939
+ var stdin_default$1J = defineComponent({
940
+ name: name$1A,
941
941
  props: actionBarButtonProps,
942
942
  setup(props, {
943
943
  slots
@@ -972,7 +972,7 @@ var stdin_default$1I = defineComponent({
972
972
  disabled
973
973
  } = props;
974
974
  return createVNode(Button, {
975
- "class": bem$1u([type, {
975
+ "class": bem$1v([type, {
976
976
  last: isLast.value,
977
977
  first: isFirst.value
978
978
  }]),
@@ -989,8 +989,8 @@ var stdin_default$1I = defineComponent({
989
989
  };
990
990
  }
991
991
  });
992
- const ActionBarButton = withInstall(stdin_default$1I);
993
- const [name$1y, bem$1t] = createNamespace("action-bar-icon");
992
+ const ActionBarButton = withInstall(stdin_default$1J);
993
+ const [name$1z, bem$1u] = createNamespace("action-bar-icon");
994
994
  const actionBarIconProps = extend({}, routeProps, {
995
995
  dot: Boolean,
996
996
  text: String,
@@ -1001,8 +1001,8 @@ const actionBarIconProps = extend({}, routeProps, {
1001
1001
  badgeProps: Object,
1002
1002
  iconPrefix: String
1003
1003
  });
1004
- var stdin_default$1H = defineComponent({
1005
- name: name$1y,
1004
+ var stdin_default$1I = defineComponent({
1005
+ name: name$1z,
1006
1006
  props: actionBarIconProps,
1007
1007
  setup(props, {
1008
1008
  slots
@@ -1022,7 +1022,7 @@ var stdin_default$1H = defineComponent({
1022
1022
  if (slots.icon) {
1023
1023
  return createVNode(Badge, mergeProps({
1024
1024
  "dot": dot,
1025
- "class": bem$1t("icon"),
1025
+ "class": bem$1u("icon"),
1026
1026
  "content": badge
1027
1027
  }, badgeProps2), {
1028
1028
  default: slots.icon
@@ -1034,20 +1034,20 @@ var stdin_default$1H = defineComponent({
1034
1034
  "name": icon,
1035
1035
  "badge": badge,
1036
1036
  "color": color,
1037
- "class": [bem$1t("icon"), iconClass],
1037
+ "class": [bem$1u("icon"), iconClass],
1038
1038
  "badgeProps": badgeProps2,
1039
1039
  "classPrefix": iconPrefix
1040
1040
  }, null);
1041
1041
  };
1042
1042
  return () => createVNode("div", {
1043
1043
  "role": "button",
1044
- "class": bem$1t(),
1044
+ "class": bem$1u(),
1045
1045
  "tabindex": 0,
1046
1046
  "onClick": route2
1047
1047
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1048
1048
  }
1049
1049
  });
1050
- const ActionBarIcon = withInstall(stdin_default$1H);
1050
+ const ActionBarIcon = withInstall(stdin_default$1I);
1051
1051
  const popupSharedProps = {
1052
1052
  // whether to show popup
1053
1053
  show: Boolean,
@@ -1198,7 +1198,7 @@ function useLazyRender(show) {
1198
1198
  );
1199
1199
  return (render) => () => inited.value ? render() : null;
1200
1200
  }
1201
- const [name$1x, bem$1s] = createNamespace("overlay");
1201
+ const [name$1y, bem$1t] = createNamespace("overlay");
1202
1202
  const overlayProps = {
1203
1203
  show: Boolean,
1204
1204
  zIndex: numericProp,
@@ -1208,8 +1208,8 @@ const overlayProps = {
1208
1208
  lazyRender: truthProp,
1209
1209
  customStyle: Object
1210
1210
  };
1211
- var stdin_default$1G = defineComponent({
1212
- name: name$1x,
1211
+ var stdin_default$1H = defineComponent({
1212
+ name: name$1y,
1213
1213
  props: overlayProps,
1214
1214
  setup(props, {
1215
1215
  slots
@@ -1230,7 +1230,7 @@ var stdin_default$1G = defineComponent({
1230
1230
  return withDirectives(createVNode("div", {
1231
1231
  "ref": root,
1232
1232
  "style": style,
1233
- "class": [bem$1s(), props.className]
1233
+ "class": [bem$1t(), props.className]
1234
1234
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props.show]]);
1235
1235
  });
1236
1236
  useEventListener("touchmove", onTouchMove, {
@@ -1244,7 +1244,7 @@ var stdin_default$1G = defineComponent({
1244
1244
  });
1245
1245
  }
1246
1246
  });
1247
- const Overlay = withInstall(stdin_default$1G);
1247
+ const Overlay = withInstall(stdin_default$1H);
1248
1248
  const popupProps$2 = extend({}, popupSharedProps, {
1249
1249
  round: Boolean,
1250
1250
  position: makeStringProp("center"),
@@ -1257,9 +1257,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
1257
1257
  safeAreaInsetTop: Boolean,
1258
1258
  safeAreaInsetBottom: Boolean
1259
1259
  });
1260
- const [name$1w, bem$1r] = createNamespace("popup");
1261
- var stdin_default$1F = defineComponent({
1262
- name: name$1w,
1260
+ const [name$1x, bem$1s] = createNamespace("popup");
1261
+ var stdin_default$1G = defineComponent({
1262
+ name: name$1x,
1263
1263
  inheritAttrs: false,
1264
1264
  props: popupProps$2,
1265
1265
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1333,7 +1333,7 @@ var stdin_default$1F = defineComponent({
1333
1333
  "role": "button",
1334
1334
  "tabindex": 0,
1335
1335
  "name": props.closeIcon,
1336
- "class": [bem$1r("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1336
+ "class": [bem$1s("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1337
1337
  "classPrefix": props.iconPrefix,
1338
1338
  "onClick": onClickCloseIcon
1339
1339
  }, null);
@@ -1362,7 +1362,7 @@ var stdin_default$1F = defineComponent({
1362
1362
  "style": style.value,
1363
1363
  "role": "dialog",
1364
1364
  "tabindex": 0,
1365
- "class": [bem$1r({
1365
+ "class": [bem$1s({
1366
1366
  round,
1367
1367
  [position]: position
1368
1368
  }), {
@@ -1443,8 +1443,8 @@ var stdin_default$1F = defineComponent({
1443
1443
  };
1444
1444
  }
1445
1445
  });
1446
- const Popup = withInstall(stdin_default$1F);
1447
- const [name$1v, bem$1q] = createNamespace("action-sheet");
1446
+ const Popup = withInstall(stdin_default$1G);
1447
+ const [name$1w, bem$1r] = createNamespace("action-sheet");
1448
1448
  const actionSheetProps = extend({}, popupSharedProps, {
1449
1449
  title: String,
1450
1450
  round: truthProp,
@@ -1458,8 +1458,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
1458
1458
  safeAreaInsetBottom: truthProp
1459
1459
  });
1460
1460
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1461
- var stdin_default$1E = defineComponent({
1462
- name: name$1v,
1461
+ var stdin_default$1F = defineComponent({
1462
+ name: name$1w,
1463
1463
  props: actionSheetProps,
1464
1464
  emits: ["select", "cancel", "update:show"],
1465
1465
  setup(props, {
@@ -1474,10 +1474,10 @@ var stdin_default$1E = defineComponent({
1474
1474
  const renderHeader = () => {
1475
1475
  if (props.title) {
1476
1476
  return createVNode("div", {
1477
- "class": bem$1q("header")
1477
+ "class": bem$1r("header")
1478
1478
  }, [props.title, props.closeable && createVNode(Icon, {
1479
1479
  "name": props.closeIcon,
1480
- "class": [bem$1q("close"), HAPTICS_FEEDBACK],
1480
+ "class": [bem$1r("close"), HAPTICS_FEEDBACK],
1481
1481
  "onClick": onCancel
1482
1482
  }, null)]);
1483
1483
  }
@@ -1485,10 +1485,10 @@ var stdin_default$1E = defineComponent({
1485
1485
  const renderCancel = () => {
1486
1486
  if (slots.cancel || props.cancelText) {
1487
1487
  return [createVNode("div", {
1488
- "class": bem$1q("gap")
1488
+ "class": bem$1r("gap")
1489
1489
  }, null), createVNode("button", {
1490
1490
  "type": "button",
1491
- "class": bem$1q("cancel"),
1491
+ "class": bem$1r("cancel"),
1492
1492
  "onClick": onCancel
1493
1493
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1494
1494
  }
@@ -1496,7 +1496,7 @@ var stdin_default$1E = defineComponent({
1496
1496
  const renderActionContent = (action, index) => {
1497
1497
  if (action.loading) {
1498
1498
  return createVNode(Loading, {
1499
- "class": bem$1q("loading-icon")
1499
+ "class": bem$1r("loading-icon")
1500
1500
  }, null);
1501
1501
  }
1502
1502
  if (slots.action) {
@@ -1506,9 +1506,9 @@ var stdin_default$1E = defineComponent({
1506
1506
  });
1507
1507
  }
1508
1508
  return [createVNode("span", {
1509
- "class": bem$1q("name")
1509
+ "class": bem$1r("name")
1510
1510
  }, [action.name]), action.subname && createVNode("div", {
1511
- "class": bem$1q("subname")
1511
+ "class": bem$1r("subname")
1512
1512
  }, [action.subname])];
1513
1513
  };
1514
1514
  const renderAction = (action, index) => {
@@ -1536,7 +1536,7 @@ var stdin_default$1E = defineComponent({
1536
1536
  "style": {
1537
1537
  color
1538
1538
  },
1539
- "class": [bem$1q("item", {
1539
+ "class": [bem$1r("item", {
1540
1540
  loading,
1541
1541
  disabled
1542
1542
  }), className],
@@ -1547,26 +1547,26 @@ var stdin_default$1E = defineComponent({
1547
1547
  if (props.description || slots.description) {
1548
1548
  const content = slots.description ? slots.description() : props.description;
1549
1549
  return createVNode("div", {
1550
- "class": bem$1q("description")
1550
+ "class": bem$1r("description")
1551
1551
  }, [content]);
1552
1552
  }
1553
1553
  };
1554
1554
  return () => createVNode(Popup, mergeProps({
1555
- "class": bem$1q(),
1555
+ "class": bem$1r(),
1556
1556
  "position": "bottom",
1557
1557
  "onUpdate:show": updateShow
1558
1558
  }, pick(props, popupInheritKeys$2)), {
1559
1559
  default: () => {
1560
1560
  var _a;
1561
1561
  return [renderHeader(), renderDescription(), createVNode("div", {
1562
- "class": bem$1q("content")
1562
+ "class": bem$1r("content")
1563
1563
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1564
1564
  }
1565
1565
  });
1566
1566
  }
1567
1567
  });
1568
- const ActionSheet = withInstall(stdin_default$1E);
1569
- const [name$1u, bem$1p, t$k] = createNamespace("picker");
1568
+ const ActionSheet = withInstall(stdin_default$1F);
1569
+ const [name$1v, bem$1q, t$k] = createNamespace("picker");
1570
1570
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1571
1571
  function getColumnsType(columns, fields) {
1572
1572
  const firstColumn = columns[0];
@@ -1635,10 +1635,10 @@ function assignDefaultFields(fields) {
1635
1635
  const DEFAULT_DURATION = 200;
1636
1636
  const MOMENTUM_TIME = 300;
1637
1637
  const MOMENTUM_DISTANCE = 15;
1638
- const [name$1t, bem$1o] = createNamespace("picker-column");
1639
- const PICKER_KEY = Symbol(name$1t);
1640
- var stdin_default$1D = defineComponent({
1641
- name: name$1t,
1638
+ const [name$1u, bem$1p] = createNamespace("picker-column");
1639
+ const PICKER_KEY = Symbol(name$1u);
1640
+ var stdin_default$1E = defineComponent({
1641
+ name: name$1u,
1642
1642
  props: {
1643
1643
  value: numericProp,
1644
1644
  fields: makeRequiredProp(Object),
@@ -1777,7 +1777,7 @@ var stdin_default$1D = defineComponent({
1777
1777
  role: "button",
1778
1778
  style: optionStyle,
1779
1779
  tabindex: disabled ? -1 : 0,
1780
- class: [bem$1o("item", {
1780
+ class: [bem$1p("item", {
1781
1781
  disabled,
1782
1782
  selected: value === props.value
1783
1783
  }), option.className],
@@ -1805,7 +1805,7 @@ var stdin_default$1D = defineComponent({
1805
1805
  });
1806
1806
  return () => createVNode("div", {
1807
1807
  "ref": root,
1808
- "class": bem$1o(),
1808
+ "class": bem$1p(),
1809
1809
  "onTouchstartPassive": onTouchStart,
1810
1810
  "onTouchend": onTouchEnd,
1811
1811
  "onTouchcancel": onTouchEnd
@@ -1816,12 +1816,12 @@ var stdin_default$1D = defineComponent({
1816
1816
  transitionDuration: `${currentDuration.value}ms`,
1817
1817
  transitionProperty: currentDuration.value ? "all" : "none"
1818
1818
  },
1819
- "class": bem$1o("wrapper"),
1819
+ "class": bem$1p("wrapper"),
1820
1820
  "onTransitionend": stopMomentum
1821
1821
  }, [renderOptions()])]);
1822
1822
  }
1823
1823
  });
1824
- const [name$1s] = createNamespace("picker-toolbar");
1824
+ const [name$1t] = createNamespace("picker-toolbar");
1825
1825
  const pickerToolbarProps = {
1826
1826
  title: String,
1827
1827
  cancelButtonText: String,
@@ -1829,8 +1829,8 @@ const pickerToolbarProps = {
1829
1829
  };
1830
1830
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
1831
1831
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
1832
- var stdin_default$1C = defineComponent({
1833
- name: name$1s,
1832
+ var stdin_default$1D = defineComponent({
1833
+ name: name$1t,
1834
1834
  props: pickerToolbarProps,
1835
1835
  emits: ["confirm", "cancel"],
1836
1836
  setup(props, {
@@ -1843,7 +1843,7 @@ var stdin_default$1C = defineComponent({
1843
1843
  }
1844
1844
  if (props.title) {
1845
1845
  return createVNode("div", {
1846
- "class": [bem$1p("title"), "van-ellipsis"]
1846
+ "class": [bem$1q("title"), "van-ellipsis"]
1847
1847
  }, [props.title]);
1848
1848
  }
1849
1849
  };
@@ -1853,7 +1853,7 @@ var stdin_default$1C = defineComponent({
1853
1853
  const text = props.cancelButtonText || t$k("cancel");
1854
1854
  return createVNode("button", {
1855
1855
  "type": "button",
1856
- "class": [bem$1p("cancel"), HAPTICS_FEEDBACK],
1856
+ "class": [bem$1q("cancel"), HAPTICS_FEEDBACK],
1857
1857
  "onClick": onCancel
1858
1858
  }, [slots.cancel ? slots.cancel() : text]);
1859
1859
  };
@@ -1861,12 +1861,12 @@ var stdin_default$1C = defineComponent({
1861
1861
  const text = props.confirmButtonText || t$k("confirm");
1862
1862
  return createVNode("button", {
1863
1863
  "type": "button",
1864
- "class": [bem$1p("confirm"), HAPTICS_FEEDBACK],
1864
+ "class": [bem$1q("confirm"), HAPTICS_FEEDBACK],
1865
1865
  "onClick": onConfirm
1866
1866
  }, [slots.confirm ? slots.confirm() : text]);
1867
1867
  };
1868
1868
  return () => createVNode("div", {
1869
- "class": bem$1p("toolbar")
1869
+ "class": bem$1q("toolbar")
1870
1870
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
1871
1871
  }
1872
1872
  });
@@ -1974,7 +1974,7 @@ function useVisibilityChange(target, onChange) {
1974
1974
  onBeforeUnmount(unobserve);
1975
1975
  onMountedOrActivated(observe);
1976
1976
  }
1977
- const [name$1r, bem$1n] = createNamespace("sticky");
1977
+ const [name$1s, bem$1o] = createNamespace("sticky");
1978
1978
  const stickyProps = {
1979
1979
  zIndex: numericProp,
1980
1980
  position: makeStringProp("top"),
@@ -1982,8 +1982,8 @@ const stickyProps = {
1982
1982
  offsetTop: makeNumericProp(0),
1983
1983
  offsetBottom: makeNumericProp(0)
1984
1984
  };
1985
- var stdin_default$1B = defineComponent({
1986
- name: name$1r,
1985
+ var stdin_default$1C = defineComponent({
1986
+ name: name$1s,
1987
1987
  props: stickyProps,
1988
1988
  emits: ["scroll", "change"],
1989
1989
  setup(props, {
@@ -2078,7 +2078,7 @@ var stdin_default$1B = defineComponent({
2078
2078
  passive: true
2079
2079
  });
2080
2080
  useVisibilityChange(root, onScroll);
2081
- watch([windowWidth, windowHeight], () => {
2081
+ watch([windowWidth, windowHeight$1], () => {
2082
2082
  if (!root.value || isHidden(root) || !state.fixed) {
2083
2083
  return;
2084
2084
  }
@@ -2096,7 +2096,7 @@ var stdin_default$1B = defineComponent({
2096
2096
  "ref": root,
2097
2097
  "style": rootStyle.value
2098
2098
  }, [createVNode("div", {
2099
- "class": bem$1n({
2099
+ "class": bem$1o({
2100
2100
  fixed: state.fixed && !isReset.value
2101
2101
  }),
2102
2102
  "style": stickyStyle.value
@@ -2104,8 +2104,8 @@ var stdin_default$1B = defineComponent({
2104
2104
  };
2105
2105
  }
2106
2106
  });
2107
- const Sticky = withInstall(stdin_default$1B);
2108
- const [name$1q, bem$1m] = createNamespace("swipe");
2107
+ const Sticky = withInstall(stdin_default$1C);
2108
+ const [name$1r, bem$1n] = createNamespace("swipe");
2109
2109
  const swipeProps = {
2110
2110
  loop: truthProp,
2111
2111
  width: numericProp,
@@ -2120,9 +2120,9 @@ const swipeProps = {
2120
2120
  showIndicators: truthProp,
2121
2121
  stopPropagation: truthProp
2122
2122
  };
2123
- const SWIPE_KEY = Symbol(name$1q);
2124
- var stdin_default$1A = defineComponent({
2125
- name: name$1q,
2123
+ const SWIPE_KEY = Symbol(name$1r);
2124
+ var stdin_default$1B = defineComponent({
2125
+ name: name$1r,
2126
2126
  props: swipeProps,
2127
2127
  emits: ["change", "dragStart", "dragEnd"],
2128
2128
  setup(props, {
@@ -2400,7 +2400,7 @@ var stdin_default$1A = defineComponent({
2400
2400
  } : void 0;
2401
2401
  return createVNode("i", {
2402
2402
  "style": style,
2403
- "class": bem$1m("indicator", {
2403
+ "class": bem$1n("indicator", {
2404
2404
  active
2405
2405
  })
2406
2406
  }, null);
@@ -2414,7 +2414,7 @@ var stdin_default$1A = defineComponent({
2414
2414
  }
2415
2415
  if (props.showIndicators && count.value > 1) {
2416
2416
  return createVNode("div", {
2417
- "class": bem$1m("indicators", {
2417
+ "class": bem$1n("indicators", {
2418
2418
  vertical: props.vertical
2419
2419
  })
2420
2420
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2436,7 +2436,7 @@ var stdin_default$1A = defineComponent({
2436
2436
  watch(() => props.initialSwipe, (value) => initialize(+value));
2437
2437
  watch(count, () => initialize(state.active));
2438
2438
  watch(() => props.autoplay, autoplay);
2439
- watch([windowWidth, windowHeight, () => props.width, () => props.height], resize);
2439
+ watch([windowWidth, windowHeight$1, () => props.width, () => props.height], resize);
2440
2440
  watch(usePageVisibility(), (visible) => {
2441
2441
  if (visible === "visible") {
2442
2442
  autoplay();
@@ -2456,11 +2456,11 @@ var stdin_default$1A = defineComponent({
2456
2456
  var _a;
2457
2457
  return createVNode("div", {
2458
2458
  "ref": root,
2459
- "class": bem$1m()
2459
+ "class": bem$1n()
2460
2460
  }, [createVNode("div", {
2461
2461
  "ref": track,
2462
2462
  "style": trackStyle.value,
2463
- "class": bem$1m("track", {
2463
+ "class": bem$1n("track", {
2464
2464
  vertical: props.vertical
2465
2465
  }),
2466
2466
  "onTouchstartPassive": onTouchStart,
@@ -2470,10 +2470,10 @@ var stdin_default$1A = defineComponent({
2470
2470
  };
2471
2471
  }
2472
2472
  });
2473
- const Swipe = withInstall(stdin_default$1A);
2474
- const [name$1p, bem$1l] = createNamespace("tabs");
2475
- var stdin_default$1z = defineComponent({
2476
- name: name$1p,
2473
+ const Swipe = withInstall(stdin_default$1B);
2474
+ const [name$1q, bem$1m] = createNamespace("tabs");
2475
+ var stdin_default$1A = defineComponent({
2476
+ name: name$1q,
2477
2477
  props: {
2478
2478
  count: makeRequiredProp(Number),
2479
2479
  inited: Boolean,
@@ -2497,7 +2497,7 @@ var stdin_default$1z = defineComponent({
2497
2497
  return createVNode(Swipe, {
2498
2498
  "ref": swipeRef,
2499
2499
  "loop": false,
2500
- "class": bem$1l("track"),
2500
+ "class": bem$1m("track"),
2501
2501
  "duration": +props.duration * 1e3,
2502
2502
  "touchable": props.swipeable,
2503
2503
  "lazyRender": props.lazyRender,
@@ -2525,13 +2525,13 @@ var stdin_default$1z = defineComponent({
2525
2525
  swipeRef
2526
2526
  });
2527
2527
  return () => createVNode("div", {
2528
- "class": bem$1l("content", {
2528
+ "class": bem$1m("content", {
2529
2529
  animated: props.animated || props.swipeable
2530
2530
  })
2531
2531
  }, [renderChildren()]);
2532
2532
  }
2533
2533
  });
2534
- const [name$1o, bem$1k] = createNamespace("tabs");
2534
+ const [name$1p, bem$1l] = createNamespace("tabs");
2535
2535
  const tabsProps = {
2536
2536
  type: makeStringProp("line"),
2537
2537
  color: String,
@@ -2554,9 +2554,9 @@ const tabsProps = {
2554
2554
  titleActiveColor: String,
2555
2555
  titleInactiveColor: String
2556
2556
  };
2557
- const TABS_KEY = Symbol(name$1o);
2558
- var stdin_default$1y = defineComponent({
2559
- name: name$1o,
2557
+ const TABS_KEY = Symbol(name$1p);
2558
+ var stdin_default$1z = defineComponent({
2559
+ name: name$1p,
2560
2560
  props: tabsProps,
2561
2561
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2562
2562
  setup(props, {
@@ -2754,7 +2754,7 @@ var stdin_default$1y = defineComponent({
2754
2754
  const renderLine = () => {
2755
2755
  if (props.type === "line" && children.length) {
2756
2756
  return createVNode("div", {
2757
- "class": bem$1k("line"),
2757
+ "class": bem$1l("line"),
2758
2758
  "style": state.lineStyle
2759
2759
  }, null);
2760
2760
  }
@@ -2768,13 +2768,13 @@ var stdin_default$1y = defineComponent({
2768
2768
  } = props;
2769
2769
  const Header = [createVNode("div", {
2770
2770
  "ref": sticky ? void 0 : wrapRef,
2771
- "class": [bem$1k("wrap"), {
2771
+ "class": [bem$1l("wrap"), {
2772
2772
  [BORDER_TOP_BOTTOM]: type === "line" && border
2773
2773
  }]
2774
2774
  }, [createVNode("div", {
2775
2775
  "ref": navRef,
2776
2776
  "role": "tablist",
2777
- "class": bem$1k("nav", [type, {
2777
+ "class": bem$1l("nav", [type, {
2778
2778
  shrink: props.shrink,
2779
2779
  complete: scrollable.value
2780
2780
  }]),
@@ -2847,14 +2847,14 @@ var stdin_default$1y = defineComponent({
2847
2847
  });
2848
2848
  return () => createVNode("div", {
2849
2849
  "ref": root,
2850
- "class": bem$1k([props.type])
2850
+ "class": bem$1l([props.type])
2851
2851
  }, [props.sticky ? createVNode(Sticky, {
2852
2852
  "container": root.value,
2853
2853
  "offsetTop": offsetTopPx.value,
2854
2854
  "onScroll": onStickyScroll
2855
2855
  }, {
2856
2856
  default: () => [renderHeader()]
2857
- }) : renderHeader(), createVNode(stdin_default$1z, {
2857
+ }) : renderHeader(), createVNode(stdin_default$1A, {
2858
2858
  "ref": contentRef,
2859
2859
  "count": children.length,
2860
2860
  "inited": state.inited,
@@ -2874,9 +2874,9 @@ var stdin_default$1y = defineComponent({
2874
2874
  });
2875
2875
  const TAB_STATUS_KEY = Symbol();
2876
2876
  const useTabStatus = () => inject(TAB_STATUS_KEY, null);
2877
- const [name$1n, bem$1j] = createNamespace("tab");
2877
+ const [name$1o, bem$1k] = createNamespace("tab");
2878
2878
  const TabTitle = defineComponent({
2879
- name: name$1n,
2879
+ name: name$1o,
2880
2880
  props: {
2881
2881
  id: String,
2882
2882
  dot: Boolean,
@@ -2925,7 +2925,7 @@ const TabTitle = defineComponent({
2925
2925
  });
2926
2926
  const renderText = () => {
2927
2927
  const Text2 = createVNode("span", {
2928
- "class": bem$1j("text", {
2928
+ "class": bem$1k("text", {
2929
2929
  ellipsis: !props.scrollable
2930
2930
  })
2931
2931
  }, [slots.title ? slots.title() : props.title]);
@@ -2943,7 +2943,7 @@ const TabTitle = defineComponent({
2943
2943
  return () => createVNode("div", {
2944
2944
  "id": props.id,
2945
2945
  "role": "tab",
2946
- "class": [bem$1j([props.type, {
2946
+ "class": [bem$1k([props.type, {
2947
2947
  grow: props.scrollable && !props.shrink,
2948
2948
  shrink: props.shrink,
2949
2949
  active: props.isActive,
@@ -2957,9 +2957,9 @@ const TabTitle = defineComponent({
2957
2957
  }, [renderText()]);
2958
2958
  }
2959
2959
  });
2960
- const [name$1m, bem$1i] = createNamespace("swipe-item");
2961
- var stdin_default$1x = defineComponent({
2962
- name: name$1m,
2960
+ const [name$1n, bem$1j] = createNamespace("swipe-item");
2961
+ var stdin_default$1y = defineComponent({
2962
+ name: name$1n,
2963
2963
  setup(props, {
2964
2964
  slots
2965
2965
  }) {
@@ -3024,14 +3024,14 @@ var stdin_default$1x = defineComponent({
3024
3024
  return () => {
3025
3025
  var _a;
3026
3026
  return createVNode("div", {
3027
- "class": bem$1i(),
3027
+ "class": bem$1j(),
3028
3028
  "style": style.value
3029
3029
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
3030
3030
  };
3031
3031
  }
3032
3032
  });
3033
- const SwipeItem = withInstall(stdin_default$1x);
3034
- const [name$1l, bem$1h] = createNamespace("tab");
3033
+ const SwipeItem = withInstall(stdin_default$1y);
3034
+ const [name$1m, bem$1i] = createNamespace("tab");
3035
3035
  const tabProps = extend({}, routeProps, {
3036
3036
  dot: Boolean,
3037
3037
  name: numericProp,
@@ -3042,8 +3042,8 @@ const tabProps = extend({}, routeProps, {
3042
3042
  titleStyle: [String, Object],
3043
3043
  showZeroBadge: truthProp
3044
3044
  });
3045
- var stdin_default$1w = defineComponent({
3046
- name: name$1l,
3045
+ var stdin_default$1x = defineComponent({
3046
+ name: name$1m,
3047
3047
  props: tabProps,
3048
3048
  setup(props, {
3049
3049
  slots
@@ -3141,7 +3141,7 @@ var stdin_default$1w = defineComponent({
3141
3141
  return createVNode(SwipeItem, {
3142
3142
  "id": id,
3143
3143
  "role": "tabpanel",
3144
- "class": bem$1h("panel-wrapper", {
3144
+ "class": bem$1i("panel-wrapper", {
3145
3145
  inactive: hasInactiveClass.value
3146
3146
  }),
3147
3147
  "tabindex": active.value ? 0 : -1,
@@ -3151,7 +3151,7 @@ var stdin_default$1w = defineComponent({
3151
3151
  default: () => {
3152
3152
  var _a2;
3153
3153
  return [createVNode("div", {
3154
- "class": bem$1h("panel")
3154
+ "class": bem$1i("panel")
3155
3155
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3156
3156
  }
3157
3157
  });
@@ -3161,24 +3161,24 @@ var stdin_default$1w = defineComponent({
3161
3161
  return withDirectives(createVNode("div", {
3162
3162
  "id": id,
3163
3163
  "role": "tabpanel",
3164
- "class": bem$1h("panel"),
3164
+ "class": bem$1i("panel"),
3165
3165
  "tabindex": show ? 0 : -1,
3166
3166
  "aria-labelledby": label
3167
3167
  }, [Content]), [[vShow, show]]);
3168
3168
  };
3169
3169
  }
3170
3170
  });
3171
- const Tab = withInstall(stdin_default$1w);
3172
- const Tabs = withInstall(stdin_default$1y);
3173
- const [name$1k, bem$1g] = createNamespace("picker-group");
3174
- const PICKER_GROUP_KEY = Symbol(name$1k);
3171
+ const Tab = withInstall(stdin_default$1x);
3172
+ const Tabs = withInstall(stdin_default$1z);
3173
+ const [name$1l, bem$1h] = createNamespace("picker-group");
3174
+ const PICKER_GROUP_KEY = Symbol(name$1l);
3175
3175
  const pickerGroupProps = extend({
3176
3176
  tabs: makeArrayProp(),
3177
3177
  activeTab: makeNumericProp(0),
3178
3178
  nextStepText: String
3179
3179
  }, pickerToolbarProps);
3180
- var stdin_default$1v = defineComponent({
3181
- name: name$1k,
3180
+ var stdin_default$1w = defineComponent({
3181
+ name: name$1l,
3182
3182
  props: pickerGroupProps,
3183
3183
  emits: ["confirm", "cancel", "update:activeTab"],
3184
3184
  setup(props, {
@@ -3205,8 +3205,8 @@ var stdin_default$1v = defineComponent({
3205
3205
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3206
3206
  const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
3207
3207
  return createVNode("div", {
3208
- "class": bem$1g()
3209
- }, [createVNode(stdin_default$1C, {
3208
+ "class": bem$1h()
3209
+ }, [createVNode(stdin_default$1D, {
3210
3210
  "title": props.title,
3211
3211
  "cancelButtonText": props.cancelButtonText,
3212
3212
  "confirmButtonText": confirmButtonText,
@@ -3215,14 +3215,14 @@ var stdin_default$1v = defineComponent({
3215
3215
  }, pick(slots, pickerToolbarSlots)), createVNode(Tabs, {
3216
3216
  "active": activeTab.value,
3217
3217
  "onUpdate:active": ($event) => activeTab.value = $event,
3218
- "class": bem$1g("tabs"),
3218
+ "class": bem$1h("tabs"),
3219
3219
  "shrink": true,
3220
3220
  "animated": true,
3221
3221
  "lazyRender": false
3222
3222
  }, {
3223
3223
  default: () => [props.tabs.map((title, index) => createVNode(Tab, {
3224
3224
  "title": title,
3225
- "titleClass": bem$1g("tab-title")
3225
+ "titleClass": bem$1h("tab-title")
3226
3226
  }, {
3227
3227
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3228
3228
  }))]
@@ -3245,8 +3245,8 @@ const pickerProps = extend({}, pickerSharedProps, {
3245
3245
  toolbarPosition: makeStringProp("top"),
3246
3246
  columnsFieldNames: Object
3247
3247
  });
3248
- var stdin_default$1u = defineComponent({
3249
- name: name$1u,
3248
+ var stdin_default$1v = defineComponent({
3249
+ name: name$1v,
3250
3250
  props: pickerProps,
3251
3251
  emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
3252
3252
  setup(props, {
@@ -3327,7 +3327,7 @@ var stdin_default$1u = defineComponent({
3327
3327
  return params;
3328
3328
  };
3329
3329
  const cancel = () => emit("cancel", getEventParams());
3330
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1D, {
3330
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1E, {
3331
3331
  "value": selectedValues.value[columnIndex],
3332
3332
  "fields": fields.value,
3333
3333
  "options": options,
@@ -3356,10 +3356,10 @@ var stdin_default$1u = defineComponent({
3356
3356
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3357
3357
  };
3358
3358
  return [createVNode("div", {
3359
- "class": bem$1p("mask"),
3359
+ "class": bem$1q("mask"),
3360
3360
  "style": maskStyle
3361
3361
  }, null), createVNode("div", {
3362
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1p("frame")],
3362
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1q("frame")],
3363
3363
  "style": frameStyle
3364
3364
  }, null)];
3365
3365
  }
@@ -3371,13 +3371,13 @@ var stdin_default$1u = defineComponent({
3371
3371
  };
3372
3372
  return createVNode("div", {
3373
3373
  "ref": columnsRef,
3374
- "class": bem$1p("columns"),
3374
+ "class": bem$1q("columns"),
3375
3375
  "style": columnsStyle
3376
3376
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3377
3377
  };
3378
3378
  const renderToolbar = () => {
3379
3379
  if (props.showToolbar && !parent) {
3380
- return createVNode(stdin_default$1C, mergeProps(pick(props, pickerToolbarPropKeys), {
3380
+ return createVNode(stdin_default$1D, mergeProps(pick(props, pickerToolbarPropKeys), {
3381
3381
  "onConfirm": confirm,
3382
3382
  "onCancel": cancel
3383
3383
  }), pick(slots, pickerToolbarSlots));
@@ -3420,9 +3420,9 @@ var stdin_default$1u = defineComponent({
3420
3420
  return () => {
3421
3421
  var _a, _b;
3422
3422
  return createVNode("div", {
3423
- "class": bem$1p()
3423
+ "class": bem$1q()
3424
3424
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? createVNode(Loading, {
3425
- "class": bem$1p("loading")
3425
+ "class": bem$1q("loading")
3426
3426
  }, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
3427
3427
  };
3428
3428
  }
@@ -3513,8 +3513,8 @@ function formatDataForCascade({
3513
3513
  }
3514
3514
  return options;
3515
3515
  }
3516
- const Picker = withInstall(stdin_default$1u);
3517
- const [name$1j, bem$1f] = createNamespace("area");
3516
+ const Picker = withInstall(stdin_default$1v);
3517
+ const [name$1k, bem$1g] = createNamespace("area");
3518
3518
  const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3519
3519
  modelValue: String,
3520
3520
  columnsNum: makeNumericProp(3),
@@ -3524,8 +3524,8 @@ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3524
3524
  default: () => ({})
3525
3525
  }
3526
3526
  });
3527
- var stdin_default$1t = defineComponent({
3528
- name: name$1j,
3527
+ var stdin_default$1u = defineComponent({
3528
+ name: name$1k,
3529
3529
  props: areaProps,
3530
3530
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3531
3531
  setup(props, {
@@ -3572,7 +3572,7 @@ var stdin_default$1t = defineComponent({
3572
3572
  "ref": picker,
3573
3573
  "modelValue": codes.value,
3574
3574
  "onUpdate:modelValue": ($event) => codes.value = $event,
3575
- "class": bem$1f(),
3575
+ "class": bem$1g(),
3576
3576
  "columns": columns.value,
3577
3577
  "onChange": onChange,
3578
3578
  "onCancel": onCancel,
@@ -3580,8 +3580,8 @@ var stdin_default$1t = defineComponent({
3580
3580
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3581
3581
  }
3582
3582
  });
3583
- const Area = withInstall(stdin_default$1t);
3584
- const [name$1i, bem$1e] = createNamespace("cell");
3583
+ const Area = withInstall(stdin_default$1u);
3584
+ const [name$1j, bem$1f] = createNamespace("cell");
3585
3585
  const cellSharedProps = {
3586
3586
  tag: makeStringProp("div"),
3587
3587
  icon: String,
@@ -3605,8 +3605,8 @@ const cellSharedProps = {
3605
3605
  }
3606
3606
  };
3607
3607
  const cellProps = extend({}, cellSharedProps, routeProps);
3608
- var stdin_default$1s = defineComponent({
3609
- name: name$1i,
3608
+ var stdin_default$1t = defineComponent({
3609
+ name: name$1j,
3610
3610
  props: cellProps,
3611
3611
  setup(props, {
3612
3612
  slots
@@ -3616,7 +3616,7 @@ var stdin_default$1s = defineComponent({
3616
3616
  const showLabel = slots.label || isDef(props.label);
3617
3617
  if (showLabel) {
3618
3618
  return createVNode("div", {
3619
- "class": [bem$1e("label"), props.labelClass]
3619
+ "class": [bem$1f("label"), props.labelClass]
3620
3620
  }, [slots.label ? slots.label() : props.label]);
3621
3621
  }
3622
3622
  };
@@ -3628,7 +3628,7 @@ var stdin_default$1s = defineComponent({
3628
3628
  return;
3629
3629
  }
3630
3630
  return createVNode("div", {
3631
- "class": [bem$1e("title"), props.titleClass],
3631
+ "class": [bem$1f("title"), props.titleClass],
3632
3632
  "style": props.titleStyle
3633
3633
  }, [titleSlot || createVNode("span", null, [props.title]), renderLabel()]);
3634
3634
  }
@@ -3638,7 +3638,7 @@ var stdin_default$1s = defineComponent({
3638
3638
  const hasValue = slot || isDef(props.value);
3639
3639
  if (hasValue) {
3640
3640
  return createVNode("div", {
3641
- "class": [bem$1e("value"), props.valueClass]
3641
+ "class": [bem$1f("value"), props.valueClass]
3642
3642
  }, [slot ? slot() : createVNode("span", null, [props.value])]);
3643
3643
  }
3644
3644
  };
@@ -3649,7 +3649,7 @@ var stdin_default$1s = defineComponent({
3649
3649
  if (props.icon) {
3650
3650
  return createVNode(Icon, {
3651
3651
  "name": props.icon,
3652
- "class": bem$1e("left-icon"),
3652
+ "class": bem$1f("left-icon"),
3653
3653
  "classPrefix": props.iconPrefix
3654
3654
  }, null);
3655
3655
  }
@@ -3662,7 +3662,7 @@ var stdin_default$1s = defineComponent({
3662
3662
  const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
3663
3663
  return createVNode(Icon, {
3664
3664
  "name": name2,
3665
- "class": bem$1e("right-icon")
3665
+ "class": bem$1f("right-icon")
3666
3666
  }, null);
3667
3667
  }
3668
3668
  };
@@ -3687,7 +3687,7 @@ var stdin_default$1s = defineComponent({
3687
3687
  classes[size] = !!size;
3688
3688
  }
3689
3689
  return createVNode(tag, {
3690
- "class": bem$1e(classes),
3690
+ "class": bem$1f(classes),
3691
3691
  "role": clickable ? "button" : void 0,
3692
3692
  "tabindex": clickable ? 0 : void 0,
3693
3693
  "onClick": route2
@@ -3700,8 +3700,8 @@ var stdin_default$1s = defineComponent({
3700
3700
  };
3701
3701
  }
3702
3702
  });
3703
- const Cell = withInstall(stdin_default$1s);
3704
- const [name$1h, bem$1d] = createNamespace("form");
3703
+ const Cell = withInstall(stdin_default$1t);
3704
+ const [name$1i, bem$1e] = createNamespace("form");
3705
3705
  const formProps = {
3706
3706
  colon: Boolean,
3707
3707
  disabled: Boolean,
@@ -3720,8 +3720,8 @@ const formProps = {
3720
3720
  default: "onBlur"
3721
3721
  }
3722
3722
  };
3723
- var stdin_default$1r = defineComponent({
3724
- name: name$1h,
3723
+ var stdin_default$1s = defineComponent({
3724
+ name: name$1i,
3725
3725
  props: formProps,
3726
3726
  emits: ["submit", "failed"],
3727
3727
  setup(props, {
@@ -3847,13 +3847,13 @@ var stdin_default$1r = defineComponent({
3847
3847
  return () => {
3848
3848
  var _a;
3849
3849
  return createVNode("form", {
3850
- "class": bem$1d(),
3850
+ "class": bem$1e(),
3851
3851
  "onSubmit": onSubmit
3852
3852
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3853
3853
  };
3854
3854
  }
3855
3855
  });
3856
- const Form = withInstall(stdin_default$1r);
3856
+ const Form = withInstall(stdin_default$1s);
3857
3857
  function isEmptyValue(value) {
3858
3858
  if (Array.isArray(value)) {
3859
3859
  return !value.length;
@@ -3942,7 +3942,7 @@ function getStringLength(str) {
3942
3942
  function cutString(str, maxlength) {
3943
3943
  return [...str].slice(0, maxlength).join("");
3944
3944
  }
3945
- const [name$1g, bem$1c] = createNamespace("field");
3945
+ const [name$1h, bem$1d] = createNamespace("field");
3946
3946
  const fieldSharedProps = {
3947
3947
  id: String,
3948
3948
  name: String,
@@ -3989,8 +3989,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3989
3989
  default: null
3990
3990
  }
3991
3991
  });
3992
- var stdin_default$1q = defineComponent({
3993
- name: name$1g,
3992
+ var stdin_default$1r = defineComponent({
3993
+ name: name$1h,
3994
3994
  props: fieldProps,
3995
3995
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
3996
3996
  setup(props, {
@@ -4264,7 +4264,7 @@ var stdin_default$1q = defineComponent({
4264
4264
  const getInputId = () => props.id || `${id}-input`;
4265
4265
  const getValidationStatus = () => state.status;
4266
4266
  const renderInput = () => {
4267
- const controlClass = bem$1c("control", [getProp("inputAlign"), {
4267
+ const controlClass = bem$1d("control", [getProp("inputAlign"), {
4268
4268
  error: showError.value,
4269
4269
  custom: !!slots.input,
4270
4270
  "min-height": props.type === "textarea" && !props.autosize
@@ -4306,7 +4306,7 @@ var stdin_default$1q = defineComponent({
4306
4306
  const leftIconSlot = slots["left-icon"];
4307
4307
  if (props.leftIcon || leftIconSlot) {
4308
4308
  return createVNode("div", {
4309
- "class": bem$1c("left-icon"),
4309
+ "class": bem$1d("left-icon"),
4310
4310
  "onClick": onClickLeftIcon
4311
4311
  }, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
4312
4312
  "name": props.leftIcon,
@@ -4318,7 +4318,7 @@ var stdin_default$1q = defineComponent({
4318
4318
  const rightIconSlot = slots["right-icon"];
4319
4319
  if (props.rightIcon || rightIconSlot) {
4320
4320
  return createVNode("div", {
4321
- "class": bem$1c("right-icon"),
4321
+ "class": bem$1d("right-icon"),
4322
4322
  "onClick": onClickRightIcon
4323
4323
  }, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
4324
4324
  "name": props.rightIcon,
@@ -4330,9 +4330,9 @@ var stdin_default$1q = defineComponent({
4330
4330
  if (props.showWordLimit && props.maxlength) {
4331
4331
  const count = getStringLength(getModelValue());
4332
4332
  return createVNode("div", {
4333
- "class": bem$1c("word-limit")
4333
+ "class": bem$1d("word-limit")
4334
4334
  }, [createVNode("span", {
4335
- "class": bem$1c("word-num")
4335
+ "class": bem$1d("word-num")
4336
4336
  }, [count]), createTextVNode("/"), props.maxlength]);
4337
4337
  }
4338
4338
  };
@@ -4345,7 +4345,7 @@ var stdin_default$1q = defineComponent({
4345
4345
  const slot = slots["error-message"];
4346
4346
  const errorMessageAlign = getProp("errorMessageAlign");
4347
4347
  return createVNode("div", {
4348
- "class": bem$1c("error-message", errorMessageAlign)
4348
+ "class": bem$1d("error-message", errorMessageAlign)
4349
4349
  }, [slot ? slot({
4350
4350
  message
4351
4351
  }) : message]);
@@ -4373,13 +4373,13 @@ var stdin_default$1q = defineComponent({
4373
4373
  }
4374
4374
  };
4375
4375
  const renderFieldBody = () => [createVNode("div", {
4376
- "class": bem$1c("body")
4376
+ "class": bem$1d("body")
4377
4377
  }, [renderInput(), showClear.value && createVNode(Icon, {
4378
4378
  "ref": clearIconRef,
4379
4379
  "name": props.clearIcon,
4380
- "class": bem$1c("clear")
4380
+ "class": bem$1d("clear")
4381
4381
  }, null), renderRightIcon(), slots.button && createVNode("div", {
4382
- "class": bem$1c("button")
4382
+ "class": bem$1d("button")
4383
4383
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4384
4384
  useExpose({
4385
4385
  blur,
@@ -4423,7 +4423,7 @@ var stdin_default$1q = defineComponent({
4423
4423
  };
4424
4424
  return createVNode(Cell, {
4425
4425
  "size": props.size,
4426
- "class": bem$1c({
4426
+ "class": bem$1d({
4427
4427
  error: showError.value,
4428
4428
  disabled,
4429
4429
  [`label-${labelAlign}`]: labelAlign
@@ -4433,8 +4433,8 @@ var stdin_default$1q = defineComponent({
4433
4433
  "isLink": props.isLink,
4434
4434
  "clickable": props.clickable,
4435
4435
  "titleStyle": labelStyle.value,
4436
- "valueClass": bem$1c("value"),
4437
- "titleClass": [bem$1c("label", [labelAlign, {
4436
+ "valueClass": bem$1d("value"),
4437
+ "titleClass": [bem$1d("label", [labelAlign, {
4438
4438
  required: props.required
4439
4439
  }]), props.labelClass],
4440
4440
  "arrowDirection": props.arrowDirection
@@ -4447,7 +4447,7 @@ var stdin_default$1q = defineComponent({
4447
4447
  };
4448
4448
  }
4449
4449
  });
4450
- const Field = withInstall(stdin_default$1q);
4450
+ const Field = withInstall(stdin_default$1r);
4451
4451
  let lockCount = 0;
4452
4452
  function lockClick(lock) {
4453
4453
  if (lock) {
@@ -4462,7 +4462,7 @@ function lockClick(lock) {
4462
4462
  }
4463
4463
  }
4464
4464
  }
4465
- const [name$1f, bem$1b] = createNamespace("toast");
4465
+ const [name$1g, bem$1c] = createNamespace("toast");
4466
4466
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4467
4467
  const toastProps = {
4468
4468
  icon: String,
@@ -4485,8 +4485,8 @@ const toastProps = {
4485
4485
  closeOnClick: Boolean,
4486
4486
  closeOnClickOverlay: Boolean
4487
4487
  };
4488
- var stdin_default$1p = defineComponent({
4489
- name: name$1f,
4488
+ var stdin_default$1q = defineComponent({
4489
+ name: name$1g,
4490
4490
  props: toastProps,
4491
4491
  emits: ["update:show"],
4492
4492
  setup(props, {
@@ -4522,13 +4522,13 @@ var stdin_default$1p = defineComponent({
4522
4522
  return createVNode(Icon, {
4523
4523
  "name": icon || type,
4524
4524
  "size": iconSize,
4525
- "class": bem$1b("icon"),
4525
+ "class": bem$1c("icon"),
4526
4526
  "classPrefix": iconPrefix
4527
4527
  }, null);
4528
4528
  }
4529
4529
  if (type === "loading") {
4530
4530
  return createVNode(Loading, {
4531
- "class": bem$1b("loading"),
4531
+ "class": bem$1c("loading"),
4532
4532
  "size": iconSize,
4533
4533
  "type": loadingType
4534
4534
  }, null);
@@ -4541,16 +4541,16 @@ var stdin_default$1p = defineComponent({
4541
4541
  } = props;
4542
4542
  if (slots.message) {
4543
4543
  return createVNode("div", {
4544
- "class": bem$1b("text")
4544
+ "class": bem$1c("text")
4545
4545
  }, [slots.message()]);
4546
4546
  }
4547
4547
  if (isDef(message) && message !== "") {
4548
4548
  return type === "html" ? createVNode("div", {
4549
4549
  "key": 0,
4550
- "class": bem$1b("text"),
4550
+ "class": bem$1c("text"),
4551
4551
  "innerHTML": String(message)
4552
4552
  }, null) : createVNode("div", {
4553
- "class": bem$1b("text")
4553
+ "class": bem$1c("text")
4554
4554
  }, [message]);
4555
4555
  }
4556
4556
  };
@@ -4566,7 +4566,7 @@ var stdin_default$1p = defineComponent({
4566
4566
  onMounted(toggleClickable);
4567
4567
  onUnmounted(toggleClickable);
4568
4568
  return () => createVNode(Popup, mergeProps({
4569
- "class": [bem$1b([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4569
+ "class": [bem$1c([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4570
4570
  [props.type]: !props.icon
4571
4571
  }]), props.className],
4572
4572
  "lockScroll": false,
@@ -4667,7 +4667,7 @@ function createInstance() {
4667
4667
  onClosed,
4668
4668
  "onUpdate:show": toggle
4669
4669
  };
4670
- return createVNode(stdin_default$1p, mergeProps(state, attrs), null);
4670
+ return createVNode(stdin_default$1q, mergeProps(state, attrs), null);
4671
4671
  };
4672
4672
  watch(message, (val) => {
4673
4673
  state.message = val;
@@ -4737,8 +4737,8 @@ const resetToastDefaultOptions = (type) => {
4737
4737
  const allowMultipleToast = (value = true) => {
4738
4738
  allowMultiple = value;
4739
4739
  };
4740
- const Toast = withInstall(stdin_default$1p);
4741
- const [name$1e, bem$1a] = createNamespace("switch");
4740
+ const Toast = withInstall(stdin_default$1q);
4741
+ const [name$1f, bem$1b] = createNamespace("switch");
4742
4742
  const switchProps = {
4743
4743
  size: numericProp,
4744
4744
  loading: Boolean,
@@ -4755,8 +4755,8 @@ const switchProps = {
4755
4755
  default: false
4756
4756
  }
4757
4757
  };
4758
- var stdin_default$1o = defineComponent({
4759
- name: name$1e,
4758
+ var stdin_default$1p = defineComponent({
4759
+ name: name$1f,
4760
4760
  props: switchProps,
4761
4761
  emits: ["change", "update:modelValue"],
4762
4762
  setup(props, {
@@ -4775,7 +4775,7 @@ var stdin_default$1o = defineComponent({
4775
4775
  if (props.loading) {
4776
4776
  const color = isChecked() ? props.activeColor : props.inactiveColor;
4777
4777
  return createVNode(Loading, {
4778
- "class": bem$1a("loading"),
4778
+ "class": bem$1b("loading"),
4779
4779
  "color": color
4780
4780
  }, null);
4781
4781
  }
@@ -4800,7 +4800,7 @@ var stdin_default$1o = defineComponent({
4800
4800
  };
4801
4801
  return createVNode("div", {
4802
4802
  "role": "switch",
4803
- "class": bem$1a({
4803
+ "class": bem$1b({
4804
4804
  on: checked,
4805
4805
  loading,
4806
4806
  disabled
@@ -4810,16 +4810,16 @@ var stdin_default$1o = defineComponent({
4810
4810
  "aria-checked": checked,
4811
4811
  "onClick": onClick
4812
4812
  }, [createVNode("div", {
4813
- "class": bem$1a("node")
4813
+ "class": bem$1b("node")
4814
4814
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
4815
4815
  };
4816
4816
  }
4817
4817
  });
4818
- const Switch = withInstall(stdin_default$1o);
4819
- const [name$1d, bem$19] = createNamespace("address-edit-detail");
4818
+ const Switch = withInstall(stdin_default$1p);
4819
+ const [name$1e, bem$1a] = createNamespace("address-edit-detail");
4820
4820
  const t$j = createNamespace("address-edit")[2];
4821
- var stdin_default$1n = defineComponent({
4822
- name: name$1d,
4821
+ var stdin_default$1o = defineComponent({
4822
+ name: name$1e,
4823
4823
  props: {
4824
4824
  show: Boolean,
4825
4825
  rows: numericProp,
@@ -4853,7 +4853,7 @@ var stdin_default$1n = defineComponent({
4853
4853
  "icon": "location-o",
4854
4854
  "title": express.name,
4855
4855
  "label": express.address,
4856
- "class": bem$19("search-item"),
4856
+ "class": bem$1a("search-item"),
4857
4857
  "border": false,
4858
4858
  "onClick": () => onSelect(express)
4859
4859
  }, null));
@@ -4867,7 +4867,7 @@ var stdin_default$1n = defineComponent({
4867
4867
  "autosize": true,
4868
4868
  "clearable": true,
4869
4869
  "ref": field,
4870
- "class": bem$19(),
4870
+ "class": bem$1a(),
4871
4871
  "rows": props.rows,
4872
4872
  "type": "textarea",
4873
4873
  "rules": props.rules,
@@ -4884,7 +4884,7 @@ var stdin_default$1n = defineComponent({
4884
4884
  };
4885
4885
  }
4886
4886
  });
4887
- const [name$1c, bem$18, t$i] = createNamespace("address-edit");
4887
+ const [name$1d, bem$19, t$i] = createNamespace("address-edit");
4888
4888
  const DEFAULT_DATA = {
4889
4889
  name: "",
4890
4890
  tel: "",
@@ -4924,8 +4924,8 @@ const addressEditProps = {
4924
4924
  default: isMobile
4925
4925
  }
4926
4926
  };
4927
- var stdin_default$1m = defineComponent({
4928
- name: name$1c,
4927
+ var stdin_default$1n = defineComponent({
4928
+ name: name$1d,
4929
4929
  props: addressEditProps,
4930
4930
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
4931
4931
  setup(props, {
@@ -5037,7 +5037,7 @@ var stdin_default$1m = defineComponent({
5037
5037
  "center": true,
5038
5038
  "border": false,
5039
5039
  "title": t$i("defaultAddress"),
5040
- "class": bem$18("default")
5040
+ "class": bem$19("default")
5041
5041
  }, slots2), [[vShow, !hideBottomFields.value]]);
5042
5042
  }
5043
5043
  };
@@ -5063,13 +5063,13 @@ var stdin_default$1m = defineComponent({
5063
5063
  disableArea
5064
5064
  } = props;
5065
5065
  return createVNode(Form, {
5066
- "class": bem$18(),
5066
+ "class": bem$19(),
5067
5067
  "onSubmit": onSave
5068
5068
  }, {
5069
5069
  default: () => {
5070
5070
  var _a;
5071
5071
  return [createVNode("div", {
5072
- "class": bem$18("fields")
5072
+ "class": bem$19("fields")
5073
5073
  }, [createVNode(Field, {
5074
5074
  "modelValue": data.name,
5075
5075
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -5100,7 +5100,7 @@ var stdin_default$1m = defineComponent({
5100
5100
  emit("clickArea");
5101
5101
  showAreaPopup.value = !disableArea;
5102
5102
  }
5103
- }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1n, {
5103
+ }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1o, {
5104
5104
  "show": props.showDetail,
5105
5105
  "rows": props.detailRows,
5106
5106
  "rules": rules.value.addressDetail,
@@ -5114,19 +5114,19 @@ var stdin_default$1m = defineComponent({
5114
5114
  "onInput": onChangeDetail,
5115
5115
  "onSelectSearch": (event) => emit("selectSearch", event)
5116
5116
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
5117
- "class": bem$18("buttons")
5117
+ "class": bem$19("buttons")
5118
5118
  }, [createVNode(Button, {
5119
5119
  "block": true,
5120
5120
  "round": true,
5121
5121
  "type": "primary",
5122
5122
  "text": props.saveButtonText || t$i("save"),
5123
- "class": bem$18("button"),
5123
+ "class": bem$19("button"),
5124
5124
  "loading": props.isSaving,
5125
5125
  "nativeType": "submit"
5126
5126
  }, null), props.showDelete && createVNode(Button, {
5127
5127
  "block": true,
5128
5128
  "round": true,
5129
- "class": bem$18("button"),
5129
+ "class": bem$19("button"),
5130
5130
  "loading": props.isDeleting,
5131
5131
  "text": props.deleteButtonText || t$i("delete"),
5132
5132
  "onClick": onDelete
@@ -5156,8 +5156,8 @@ var stdin_default$1m = defineComponent({
5156
5156
  };
5157
5157
  }
5158
5158
  });
5159
- const AddressEdit = withInstall(stdin_default$1m);
5160
- const [name$1b, bem$17] = createNamespace("radio-group");
5159
+ const AddressEdit = withInstall(stdin_default$1n);
5160
+ const [name$1c, bem$18] = createNamespace("radio-group");
5161
5161
  const radioGroupProps = {
5162
5162
  disabled: Boolean,
5163
5163
  iconSize: numericProp,
@@ -5165,9 +5165,9 @@ const radioGroupProps = {
5165
5165
  modelValue: unknownProp,
5166
5166
  checkedColor: String
5167
5167
  };
5168
- const RADIO_KEY = Symbol(name$1b);
5169
- var stdin_default$1l = defineComponent({
5170
- name: name$1b,
5168
+ const RADIO_KEY = Symbol(name$1c);
5169
+ var stdin_default$1m = defineComponent({
5170
+ name: name$1c,
5171
5171
  props: radioGroupProps,
5172
5172
  emits: ["change", "update:modelValue"],
5173
5173
  setup(props, {
@@ -5187,14 +5187,14 @@ var stdin_default$1l = defineComponent({
5187
5187
  return () => {
5188
5188
  var _a;
5189
5189
  return createVNode("div", {
5190
- "class": bem$17([props.direction]),
5190
+ "class": bem$18([props.direction]),
5191
5191
  "role": "radiogroup"
5192
5192
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5193
5193
  };
5194
5194
  }
5195
5195
  });
5196
- const RadioGroup = withInstall(stdin_default$1l);
5197
- const [name$1a, bem$16] = createNamespace("tag");
5196
+ const RadioGroup = withInstall(stdin_default$1m);
5197
+ const [name$1b, bem$17] = createNamespace("tag");
5198
5198
  const tagProps = {
5199
5199
  size: String,
5200
5200
  mark: Boolean,
@@ -5206,8 +5206,8 @@ const tagProps = {
5206
5206
  textColor: String,
5207
5207
  closeable: Boolean
5208
5208
  };
5209
- var stdin_default$1k = defineComponent({
5210
- name: name$1a,
5209
+ var stdin_default$1l = defineComponent({
5210
+ name: name$1b,
5211
5211
  props: tagProps,
5212
5212
  emits: ["close"],
5213
5213
  setup(props, {
@@ -5250,12 +5250,12 @@ var stdin_default$1k = defineComponent({
5250
5250
  }
5251
5251
  const CloseIcon = closeable && createVNode(Icon, {
5252
5252
  "name": "cross",
5253
- "class": [bem$16("close"), HAPTICS_FEEDBACK],
5253
+ "class": [bem$17("close"), HAPTICS_FEEDBACK],
5254
5254
  "onClick": onClose
5255
5255
  }, null);
5256
5256
  return createVNode("span", {
5257
5257
  "style": getStyle(),
5258
- "class": bem$16([classes, type])
5258
+ "class": bem$17([classes, type])
5259
5259
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5260
5260
  };
5261
5261
  return () => createVNode(Transition, {
@@ -5265,7 +5265,7 @@ var stdin_default$1k = defineComponent({
5265
5265
  });
5266
5266
  }
5267
5267
  });
5268
- const Tag = withInstall(stdin_default$1k);
5268
+ const Tag = withInstall(stdin_default$1l);
5269
5269
  const checkerProps = {
5270
5270
  name: unknownProp,
5271
5271
  shape: makeStringProp("round"),
@@ -5276,7 +5276,7 @@ const checkerProps = {
5276
5276
  labelPosition: String,
5277
5277
  labelDisabled: Boolean
5278
5278
  };
5279
- var stdin_default$1j = defineComponent({
5279
+ var stdin_default$1k = defineComponent({
5280
5280
  props: extend({}, checkerProps, {
5281
5281
  bem: makeRequiredProp(Function),
5282
5282
  role: String,
@@ -5378,9 +5378,9 @@ var stdin_default$1j = defineComponent({
5378
5378
  }
5379
5379
  });
5380
5380
  const radioProps = checkerProps;
5381
- const [name$19, bem$15] = createNamespace("radio");
5382
- var stdin_default$1i = defineComponent({
5383
- name: name$19,
5381
+ const [name$1a, bem$16] = createNamespace("radio");
5382
+ var stdin_default$1j = defineComponent({
5383
+ name: name$1a,
5384
5384
  props: checkerProps,
5385
5385
  emits: ["update:modelValue"],
5386
5386
  setup(props, {
@@ -5401,8 +5401,8 @@ var stdin_default$1i = defineComponent({
5401
5401
  emit("update:modelValue", props.name);
5402
5402
  }
5403
5403
  };
5404
- return () => createVNode(stdin_default$1j, mergeProps({
5405
- "bem": bem$15,
5404
+ return () => createVNode(stdin_default$1k, mergeProps({
5405
+ "bem": bem$16,
5406
5406
  "role": "radio",
5407
5407
  "parent": parent,
5408
5408
  "checked": checked(),
@@ -5410,15 +5410,16 @@ var stdin_default$1i = defineComponent({
5410
5410
  }, props), pick(slots, ["default", "icon"]));
5411
5411
  }
5412
5412
  });
5413
- const Radio = withInstall(stdin_default$1i);
5414
- const [name$18, bem$14] = createNamespace("address-item");
5415
- var stdin_default$1h = defineComponent({
5416
- name: name$18,
5413
+ const Radio = withInstall(stdin_default$1j);
5414
+ const [name$19, bem$15] = createNamespace("address-item");
5415
+ var stdin_default$1i = defineComponent({
5416
+ name: name$19,
5417
5417
  props: {
5418
5418
  address: makeRequiredProp(Object),
5419
5419
  disabled: Boolean,
5420
5420
  switchable: Boolean,
5421
- defaultTagText: String
5421
+ defaultTagText: String,
5422
+ rightIcon: makeStringProp("edit")
5422
5423
  },
5423
5424
  emits: ["edit", "click", "select"],
5424
5425
  setup(props, {
@@ -5432,8 +5433,8 @@ var stdin_default$1h = defineComponent({
5432
5433
  emit("click");
5433
5434
  };
5434
5435
  const renderRightIcon = () => createVNode(Icon, {
5435
- "name": "edit",
5436
- "class": bem$14("edit"),
5436
+ "name": props.rightIcon,
5437
+ "class": bem$15("edit"),
5437
5438
  "onClick": (event) => {
5438
5439
  event.stopPropagation();
5439
5440
  emit("edit");
@@ -5448,7 +5449,7 @@ var stdin_default$1h = defineComponent({
5448
5449
  return createVNode(Tag, {
5449
5450
  "type": "primary",
5450
5451
  "round": true,
5451
- "class": bem$14("tag")
5452
+ "class": bem$15("tag")
5452
5453
  }, {
5453
5454
  default: () => [props.defaultTagText]
5454
5455
  });
@@ -5461,9 +5462,9 @@ var stdin_default$1h = defineComponent({
5461
5462
  switchable
5462
5463
  } = props;
5463
5464
  const Info = [createVNode("div", {
5464
- "class": bem$14("name")
5465
+ "class": bem$15("name")
5465
5466
  }, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
5466
- "class": bem$14("address")
5467
+ "class": bem$15("address")
5467
5468
  }, [address.address])];
5468
5469
  if (switchable && !disabled) {
5469
5470
  return createVNode(Radio, {
@@ -5481,13 +5482,13 @@ var stdin_default$1h = defineComponent({
5481
5482
  disabled
5482
5483
  } = props;
5483
5484
  return createVNode("div", {
5484
- "class": bem$14({
5485
+ "class": bem$15({
5485
5486
  disabled
5486
5487
  }),
5487
5488
  "onClick": onClick
5488
5489
  }, [createVNode(Cell, {
5489
5490
  "border": false,
5490
- "titleClass": bem$14("title")
5491
+ "titleClass": bem$15("title")
5491
5492
  }, {
5492
5493
  title: renderContent,
5493
5494
  "right-icon": renderRightIcon
@@ -5497,7 +5498,7 @@ var stdin_default$1h = defineComponent({
5497
5498
  };
5498
5499
  }
5499
5500
  });
5500
- const [name$17, bem$13, t$h] = createNamespace("address-list");
5501
+ const [name$18, bem$14, t$h] = createNamespace("address-list");
5501
5502
  const addressListProps = {
5502
5503
  list: makeArrayProp(),
5503
5504
  modelValue: numericProp,
@@ -5505,10 +5506,11 @@ const addressListProps = {
5505
5506
  disabledText: String,
5506
5507
  disabledList: makeArrayProp(),
5507
5508
  addButtonText: String,
5508
- defaultTagText: String
5509
+ defaultTagText: String,
5510
+ rightIcon: makeStringProp("edit")
5509
5511
  };
5510
- var stdin_default$1g = defineComponent({
5511
- name: name$17,
5512
+ var stdin_default$1h = defineComponent({
5513
+ name: name$18,
5512
5514
  props: addressListProps,
5513
5515
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5514
5516
  setup(props, {
@@ -5524,12 +5526,13 @@ var stdin_default$1g = defineComponent({
5524
5526
  emit("update:modelValue", item.id);
5525
5527
  }
5526
5528
  };
5527
- return createVNode(stdin_default$1h, {
5529
+ return createVNode(stdin_default$1i, {
5528
5530
  "key": item.id,
5529
5531
  "address": item,
5530
5532
  "disabled": disabled,
5531
5533
  "switchable": props.switchable,
5532
5534
  "defaultTagText": props.defaultTagText,
5535
+ "rightIcon": props.rightIcon,
5533
5536
  "onEdit": onEdit,
5534
5537
  "onClick": onClick,
5535
5538
  "onSelect": onSelect
@@ -5544,13 +5547,13 @@ var stdin_default$1g = defineComponent({
5544
5547
  }
5545
5548
  };
5546
5549
  const renderBottom = () => createVNode("div", {
5547
- "class": [bem$13("bottom"), "van-safe-area-bottom"]
5550
+ "class": [bem$14("bottom"), "van-safe-area-bottom"]
5548
5551
  }, [createVNode(Button, {
5549
5552
  "round": true,
5550
5553
  "block": true,
5551
5554
  "type": "primary",
5552
5555
  "text": props.addButtonText || t$h("add"),
5553
- "class": bem$13("add"),
5556
+ "class": bem$14("add"),
5554
5557
  "onClick": () => emit("add")
5555
5558
  }, null)]);
5556
5559
  return () => {
@@ -5558,10 +5561,10 @@ var stdin_default$1g = defineComponent({
5558
5561
  const List2 = renderList(props.list);
5559
5562
  const DisabledList = renderList(props.disabledList, true);
5560
5563
  const DisabledText = props.disabledText && createVNode("div", {
5561
- "class": bem$13("disabled-text")
5564
+ "class": bem$14("disabled-text")
5562
5565
  }, [props.disabledText]);
5563
5566
  return createVNode("div", {
5564
- "class": bem$13()
5567
+ "class": bem$14()
5565
5568
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
5566
5569
  "modelValue": props.modelValue
5567
5570
  }, {
@@ -5570,7 +5573,7 @@ var stdin_default$1g = defineComponent({
5570
5573
  };
5571
5574
  }
5572
5575
  });
5573
- const AddressList = withInstall(stdin_default$1g);
5576
+ const AddressList = withInstall(stdin_default$1h);
5574
5577
  const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5575
5578
  const modeType = {
5576
5579
  event: "event",
@@ -5723,7 +5726,7 @@ class ImageCache {
5723
5726
  this.caches.shift();
5724
5727
  }
5725
5728
  }
5726
- const [name$16, bem$12] = createNamespace("back-top");
5729
+ const [name$17, bem$13] = createNamespace("back-top");
5727
5730
  const backTopProps = {
5728
5731
  right: numericProp,
5729
5732
  bottom: numericProp,
@@ -5736,8 +5739,8 @@ const backTopProps = {
5736
5739
  default: "body"
5737
5740
  }
5738
5741
  };
5739
- var stdin_default$1f = defineComponent({
5740
- name: name$16,
5742
+ var stdin_default$1g = defineComponent({
5743
+ name: name$17,
5741
5744
  inheritAttrs: false,
5742
5745
  props: backTopProps,
5743
5746
  emits: ["click"],
@@ -5746,6 +5749,7 @@ var stdin_default$1f = defineComponent({
5746
5749
  slots,
5747
5750
  attrs
5748
5751
  }) {
5752
+ let shouldReshow = false;
5749
5753
  const show = ref(false);
5750
5754
  const root = ref();
5751
5755
  const scrollParent = ref();
@@ -5792,23 +5796,35 @@ var stdin_default$1f = defineComponent({
5792
5796
  target: scrollParent
5793
5797
  });
5794
5798
  onMounted(updateTarget);
5799
+ onActivated(() => {
5800
+ if (shouldReshow) {
5801
+ show.value = true;
5802
+ shouldReshow = false;
5803
+ }
5804
+ });
5805
+ onDeactivated(() => {
5806
+ if (show.value && props.teleport) {
5807
+ show.value = false;
5808
+ shouldReshow = true;
5809
+ }
5810
+ });
5795
5811
  watch(() => props.target, updateTarget);
5796
5812
  return () => {
5797
5813
  const Content = createVNode("div", mergeProps({
5798
5814
  "ref": !props.teleport ? root : void 0,
5799
- "class": bem$12({
5815
+ "class": bem$13({
5800
5816
  active: show.value
5801
5817
  }),
5802
5818
  "style": style.value,
5803
5819
  "onClick": onClick
5804
5820
  }, attrs), [slots.default ? slots.default() : createVNode(Icon, {
5805
5821
  "name": "back-top",
5806
- "class": bem$12("icon")
5822
+ "class": bem$13("icon")
5807
5823
  }, null)]);
5808
5824
  if (props.teleport) {
5809
5825
  return [createVNode("div", {
5810
5826
  "ref": root,
5811
- "class": bem$12("placeholder")
5827
+ "class": bem$13("placeholder")
5812
5828
  }, null), createVNode(Teleport, {
5813
5829
  "to": props.teleport
5814
5830
  }, {
@@ -5819,7 +5835,7 @@ var stdin_default$1f = defineComponent({
5819
5835
  };
5820
5836
  }
5821
5837
  });
5822
- const BackTop = withInstall(stdin_default$1f);
5838
+ const BackTop = withInstall(stdin_default$1g);
5823
5839
  var __async = (__this, __arguments, generator) => {
5824
5840
  return new Promise((resolve, reject) => {
5825
5841
  var fulfilled = (value) => {
@@ -5848,9 +5864,9 @@ const barrageProps = {
5848
5864
  delay: makeNumberProp(300),
5849
5865
  modelValue: makeArrayProp()
5850
5866
  };
5851
- const [name$15, bem$11] = createNamespace("barrage");
5852
- var stdin_default$1e = defineComponent({
5853
- name: name$15,
5867
+ const [name$16, bem$12] = createNamespace("barrage");
5868
+ var stdin_default$1f = defineComponent({
5869
+ name: name$16,
5854
5870
  props: barrageProps,
5855
5871
  emits: ["update:modelValue"],
5856
5872
  setup(props, {
@@ -5858,7 +5874,7 @@ var stdin_default$1e = defineComponent({
5858
5874
  slots
5859
5875
  }) {
5860
5876
  const barrageWrapper = ref();
5861
- const className = bem$11("item");
5877
+ const className = bem$12("item");
5862
5878
  const total = ref(0);
5863
5879
  const barrageItems = [];
5864
5880
  const createBarrageItem = (text, delay = props.delay) => {
@@ -5939,15 +5955,15 @@ var stdin_default$1e = defineComponent({
5939
5955
  return () => {
5940
5956
  var _a;
5941
5957
  return createVNode("div", {
5942
- "class": bem$11(),
5958
+ "class": bem$12(),
5943
5959
  "ref": barrageWrapper,
5944
5960
  "style": rootStyle.value
5945
5961
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5946
5962
  };
5947
5963
  }
5948
5964
  });
5949
- const Barrage = withInstall(stdin_default$1e);
5950
- const [name$14, bem$10, t$g] = createNamespace("calendar");
5965
+ const Barrage = withInstall(stdin_default$1f);
5966
+ const [name$15, bem$11, t$g] = createNamespace("calendar");
5951
5967
  const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
5952
5968
  function compareMonth(date1, date2) {
5953
5969
  const year1 = date1.getFullYear();
@@ -6008,7 +6024,7 @@ function times(n, iteratee) {
6008
6024
  return result;
6009
6025
  }
6010
6026
  const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
6011
- const genOptions = (min, max, type, formatter, filter) => {
6027
+ const genOptions = (min, max, type, formatter, filter, values) => {
6012
6028
  const options = times(max - min + 1, (index) => {
6013
6029
  const value = padZero(min + index);
6014
6030
  return formatter(type, {
@@ -6016,7 +6032,7 @@ const genOptions = (min, max, type, formatter, filter) => {
6016
6032
  value
6017
6033
  });
6018
6034
  });
6019
- return filter ? filter(type, options) : options;
6035
+ return filter ? filter(type, options, values) : options;
6020
6036
  };
6021
6037
  const formatValueRange = (values, columns) => values.map((value, index) => {
6022
6038
  const column = columns[index];
@@ -6027,9 +6043,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
6027
6043
  }
6028
6044
  return value;
6029
6045
  });
6030
- const [name$13] = createNamespace("calendar-day");
6031
- var stdin_default$1d = defineComponent({
6032
- name: name$13,
6046
+ const [name$14] = createNamespace("calendar-day");
6047
+ var stdin_default$1e = defineComponent({
6048
+ name: name$14,
6033
6049
  props: {
6034
6050
  item: makeRequiredProp(Object),
6035
6051
  color: String,
@@ -6091,7 +6107,7 @@ var stdin_default$1d = defineComponent({
6091
6107
  } = props.item;
6092
6108
  if (topInfo || slots["top-info"]) {
6093
6109
  return createVNode("div", {
6094
- "class": bem$10("top-info")
6110
+ "class": bem$11("top-info")
6095
6111
  }, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
6096
6112
  }
6097
6113
  };
@@ -6101,7 +6117,7 @@ var stdin_default$1d = defineComponent({
6101
6117
  } = props.item;
6102
6118
  if (bottomInfo || slots["bottom-info"]) {
6103
6119
  return createVNode("div", {
6104
- "class": bem$10("bottom-info")
6120
+ "class": bem$11("bottom-info")
6105
6121
  }, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
6106
6122
  }
6107
6123
  };
@@ -6118,7 +6134,7 @@ var stdin_default$1d = defineComponent({
6118
6134
  const Nodes = [renderTopInfo(), text, renderBottomInfo()];
6119
6135
  if (type === "selected") {
6120
6136
  return createVNode("div", {
6121
- "class": bem$10("selected-day"),
6137
+ "class": bem$11("selected-day"),
6122
6138
  "style": {
6123
6139
  width: rowHeight,
6124
6140
  height: rowHeight,
@@ -6135,21 +6151,21 @@ var stdin_default$1d = defineComponent({
6135
6151
  } = props.item;
6136
6152
  if (type === "placeholder") {
6137
6153
  return createVNode("div", {
6138
- "class": bem$10("day"),
6154
+ "class": bem$11("day"),
6139
6155
  "style": style.value
6140
6156
  }, null);
6141
6157
  }
6142
6158
  return createVNode("div", {
6143
6159
  "role": "gridcell",
6144
6160
  "style": style.value,
6145
- "class": [bem$10("day", type), className],
6161
+ "class": [bem$11("day", type), className],
6146
6162
  "tabindex": type === "disabled" ? void 0 : -1,
6147
6163
  "onClick": onClick
6148
6164
  }, [renderContent()]);
6149
6165
  };
6150
6166
  }
6151
6167
  });
6152
- const [name$12] = createNamespace("calendar-month");
6168
+ const [name$13] = createNamespace("calendar-month");
6153
6169
  const calendarMonthProps = {
6154
6170
  date: makeRequiredProp(Date),
6155
6171
  type: String,
@@ -6166,8 +6182,8 @@ const calendarMonthProps = {
6166
6182
  showMonthTitle: Boolean,
6167
6183
  firstDayOfWeek: Number
6168
6184
  };
6169
- var stdin_default$1c = defineComponent({
6170
- name: name$12,
6185
+ var stdin_default$1d = defineComponent({
6186
+ name: name$13,
6171
6187
  props: calendarMonthProps,
6172
6188
  emits: ["click"],
6173
6189
  setup(props, {
@@ -6272,7 +6288,7 @@ var stdin_default$1c = defineComponent({
6272
6288
  const renderTitle = () => {
6273
6289
  if (props.showMonthTitle) {
6274
6290
  return createVNode("div", {
6275
- "class": bem$10("month-title")
6291
+ "class": bem$11("month-title")
6276
6292
  }, [slots["month-title"] ? slots["month-title"]({
6277
6293
  date: props.date,
6278
6294
  text: title.value
@@ -6282,7 +6298,7 @@ var stdin_default$1c = defineComponent({
6282
6298
  const renderMark = () => {
6283
6299
  if (props.showMark && shouldRender.value) {
6284
6300
  return createVNode("div", {
6285
- "class": bem$10("month-mark")
6301
+ "class": bem$11("month-mark")
6286
6302
  }, [props.date.getMonth() + 1]);
6287
6303
  }
6288
6304
  };
@@ -6322,7 +6338,7 @@ var stdin_default$1c = defineComponent({
6322
6338
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
6323
6339
  }
6324
6340
  };
6325
- const renderDay = (item, index) => createVNode(stdin_default$1d, {
6341
+ const renderDay = (item, index) => createVNode(stdin_default$1e, {
6326
6342
  "item": item,
6327
6343
  "index": index,
6328
6344
  "color": props.color,
@@ -6333,7 +6349,7 @@ var stdin_default$1c = defineComponent({
6333
6349
  const renderDays = () => createVNode("div", {
6334
6350
  "ref": daysRef,
6335
6351
  "role": "grid",
6336
- "class": bem$10("days")
6352
+ "class": bem$11("days")
6337
6353
  }, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
6338
6354
  useExpose({
6339
6355
  getTitle,
@@ -6343,14 +6359,14 @@ var stdin_default$1c = defineComponent({
6343
6359
  disabledDays
6344
6360
  });
6345
6361
  return () => createVNode("div", {
6346
- "class": bem$10("month"),
6362
+ "class": bem$11("month"),
6347
6363
  "ref": monthRef
6348
6364
  }, [renderTitle(), renderDays()]);
6349
6365
  }
6350
6366
  });
6351
- const [name$11] = createNamespace("calendar-header");
6352
- var stdin_default$1b = defineComponent({
6353
- name: name$11,
6367
+ const [name$12] = createNamespace("calendar-header");
6368
+ var stdin_default$1c = defineComponent({
6369
+ name: name$12,
6354
6370
  props: {
6355
6371
  date: Date,
6356
6372
  title: String,
@@ -6369,7 +6385,7 @@ var stdin_default$1b = defineComponent({
6369
6385
  const text = props.title || t$g("title");
6370
6386
  const title = slots.title ? slots.title() : text;
6371
6387
  return createVNode("div", {
6372
- "class": bem$10("header-title")
6388
+ "class": bem$11("header-title")
6373
6389
  }, [title]);
6374
6390
  }
6375
6391
  };
@@ -6381,7 +6397,7 @@ var stdin_default$1b = defineComponent({
6381
6397
  text: props.subtitle
6382
6398
  }) : props.subtitle;
6383
6399
  return createVNode("div", {
6384
- "class": bem$10("header-subtitle"),
6400
+ "class": bem$11("header-subtitle"),
6385
6401
  "onClick": onClickSubtitle
6386
6402
  }, [title]);
6387
6403
  }
@@ -6393,13 +6409,13 @@ var stdin_default$1b = defineComponent({
6393
6409
  const weekdays = t$g("weekdays");
6394
6410
  const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
6395
6411
  return createVNode("div", {
6396
- "class": bem$10("weekdays")
6412
+ "class": bem$11("weekdays")
6397
6413
  }, [renderWeekDays2.map((text) => createVNode("span", {
6398
- "class": bem$10("weekday")
6414
+ "class": bem$11("weekday")
6399
6415
  }, [text]))]);
6400
6416
  };
6401
6417
  return () => createVNode("div", {
6402
- "class": bem$10("header")
6418
+ "class": bem$11("header")
6403
6419
  }, [renderTitle(), renderSubtitle(), renderWeekDays()]);
6404
6420
  }
6405
6421
  });
@@ -6450,8 +6466,8 @@ const calendarProps = {
6450
6466
  validator: (val) => val >= 0 && val <= 6
6451
6467
  }
6452
6468
  };
6453
- var stdin_default$1a = defineComponent({
6454
- name: name$14,
6469
+ var stdin_default$1b = defineComponent({
6470
+ name: name$15,
6455
6471
  props: calendarProps,
6456
6472
  emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
6457
6473
  setup(props, {
@@ -6714,7 +6730,7 @@ var stdin_default$1a = defineComponent({
6714
6730
  const updateShow = (value) => emit("update:show", value);
6715
6731
  const renderMonth = (date, index) => {
6716
6732
  const showMonthTitle = index !== 0 || !props.showSubtitle;
6717
- return createVNode(stdin_default$1c, mergeProps({
6733
+ return createVNode(stdin_default$1d, mergeProps({
6718
6734
  "ref": setMonthRefs(index),
6719
6735
  "date": date,
6720
6736
  "currentDate": currentDate.value,
@@ -6737,7 +6753,7 @@ var stdin_default$1a = defineComponent({
6737
6753
  "block": true,
6738
6754
  "type": "primary",
6739
6755
  "color": props.color,
6740
- "class": bem$10("confirm"),
6756
+ "class": bem$11("confirm"),
6741
6757
  "disabled": disabled,
6742
6758
  "nativeType": "button",
6743
6759
  "onClick": onConfirm
@@ -6749,13 +6765,13 @@ var stdin_default$1a = defineComponent({
6749
6765
  }
6750
6766
  };
6751
6767
  const renderFooter = () => createVNode("div", {
6752
- "class": [bem$10("footer"), {
6768
+ "class": [bem$11("footer"), {
6753
6769
  "van-safe-area-bottom": props.safeAreaInsetBottom
6754
6770
  }]
6755
6771
  }, [renderFooterButton()]);
6756
6772
  const renderCalendar = () => createVNode("div", {
6757
- "class": bem$10()
6758
- }, [createVNode(stdin_default$1b, {
6773
+ "class": bem$11()
6774
+ }, [createVNode(stdin_default$1c, {
6759
6775
  "date": subtitle.value.date,
6760
6776
  "title": props.title,
6761
6777
  "subtitle": subtitle.value.text,
@@ -6765,7 +6781,7 @@ var stdin_default$1a = defineComponent({
6765
6781
  "onClickSubtitle": (event) => emit("clickSubtitle", event)
6766
6782
  }, pick(slots, ["title", "subtitle"])), createVNode("div", {
6767
6783
  "ref": bodyRef,
6768
- "class": bem$10("body"),
6784
+ "class": bem$11("body"),
6769
6785
  "onScroll": onScroll
6770
6786
  }, [months.value.map(renderMonth)]), renderFooter()]);
6771
6787
  watch(() => props.show, init);
@@ -6784,7 +6800,7 @@ var stdin_default$1a = defineComponent({
6784
6800
  if (props.poppable) {
6785
6801
  return createVNode(Popup, {
6786
6802
  "show": props.show,
6787
- "class": bem$10("popup"),
6803
+ "class": bem$11("popup"),
6788
6804
  "round": props.round,
6789
6805
  "position": props.position,
6790
6806
  "closeable": props.showTitle || props.showSubtitle,
@@ -6801,8 +6817,8 @@ var stdin_default$1a = defineComponent({
6801
6817
  };
6802
6818
  }
6803
6819
  });
6804
- const Calendar = withInstall(stdin_default$1a);
6805
- const [name$10, bem$$] = createNamespace("image");
6820
+ const Calendar = withInstall(stdin_default$1b);
6821
+ const [name$11, bem$10] = createNamespace("image");
6806
6822
  const imageProps = {
6807
6823
  src: String,
6808
6824
  alt: String,
@@ -6821,8 +6837,8 @@ const imageProps = {
6821
6837
  showLoading: truthProp,
6822
6838
  loadingIcon: makeStringProp("photo")
6823
6839
  };
6824
- var stdin_default$19 = defineComponent({
6825
- name: name$10,
6840
+ var stdin_default$1a = defineComponent({
6841
+ name: name$11,
6826
6842
  props: imageProps,
6827
6843
  emits: ["load", "error"],
6828
6844
  setup(props, {
@@ -6883,13 +6899,13 @@ var stdin_default$19 = defineComponent({
6883
6899
  const renderPlaceholder = () => {
6884
6900
  if (loading.value && props.showLoading) {
6885
6901
  return createVNode("div", {
6886
- "class": bem$$("loading")
6887
- }, [renderIcon(props.loadingIcon, bem$$("loading-icon"), slots.loading)]);
6902
+ "class": bem$10("loading")
6903
+ }, [renderIcon(props.loadingIcon, bem$10("loading-icon"), slots.loading)]);
6888
6904
  }
6889
6905
  if (error.value && props.showError) {
6890
6906
  return createVNode("div", {
6891
- "class": bem$$("error")
6892
- }, [renderIcon(props.errorIcon, bem$$("error-icon"), slots.error)]);
6907
+ "class": bem$10("error")
6908
+ }, [renderIcon(props.errorIcon, bem$10("error-icon"), slots.error)]);
6893
6909
  }
6894
6910
  };
6895
6911
  const renderImage = () => {
@@ -6898,7 +6914,7 @@ var stdin_default$19 = defineComponent({
6898
6914
  }
6899
6915
  const attrs = {
6900
6916
  alt: props.alt,
6901
- class: bem$$("img"),
6917
+ class: bem$10("img"),
6902
6918
  style: {
6903
6919
  objectFit: props.fit,
6904
6920
  objectPosition: props.position
@@ -6956,7 +6972,7 @@ var stdin_default$19 = defineComponent({
6956
6972
  return () => {
6957
6973
  var _a;
6958
6974
  return createVNode("div", {
6959
- "class": bem$$({
6975
+ "class": bem$10({
6960
6976
  round: props.round,
6961
6977
  block: props.block
6962
6978
  }),
@@ -6965,8 +6981,8 @@ var stdin_default$19 = defineComponent({
6965
6981
  };
6966
6982
  }
6967
6983
  });
6968
- const Image$1 = withInstall(stdin_default$19);
6969
- const [name$$, bem$_] = createNamespace("card");
6984
+ const Image$1 = withInstall(stdin_default$1a);
6985
+ const [name$10, bem$$] = createNamespace("card");
6970
6986
  const cardProps = {
6971
6987
  tag: String,
6972
6988
  num: numericProp,
@@ -6980,8 +6996,8 @@ const cardProps = {
6980
6996
  thumbLink: String,
6981
6997
  originPrice: numericProp
6982
6998
  };
6983
- var stdin_default$18 = defineComponent({
6984
- name: name$$,
6999
+ var stdin_default$19 = defineComponent({
7000
+ name: name$10,
6985
7001
  props: cardProps,
6986
7002
  emits: ["clickThumb"],
6987
7003
  setup(props, {
@@ -6994,14 +7010,14 @@ var stdin_default$18 = defineComponent({
6994
7010
  }
6995
7011
  if (props.title) {
6996
7012
  return createVNode("div", {
6997
- "class": [bem$_("title"), "van-multi-ellipsis--l2"]
7013
+ "class": [bem$$("title"), "van-multi-ellipsis--l2"]
6998
7014
  }, [props.title]);
6999
7015
  }
7000
7016
  };
7001
7017
  const renderThumbTag = () => {
7002
7018
  if (slots.tag || props.tag) {
7003
7019
  return createVNode("div", {
7004
- "class": bem$_("tag")
7020
+ "class": bem$$("tag")
7005
7021
  }, [slots.tag ? slots.tag() : createVNode(Tag, {
7006
7022
  "mark": true,
7007
7023
  "type": "primary"
@@ -7026,7 +7042,7 @@ var stdin_default$18 = defineComponent({
7026
7042
  if (slots.thumb || props.thumb) {
7027
7043
  return createVNode("a", {
7028
7044
  "href": props.thumbLink,
7029
- "class": bem$_("thumb"),
7045
+ "class": bem$$("thumb"),
7030
7046
  "onClick": (event) => emit("clickThumb", event)
7031
7047
  }, [renderThumbImage(), renderThumbTag()]);
7032
7048
  }
@@ -7037,18 +7053,18 @@ var stdin_default$18 = defineComponent({
7037
7053
  }
7038
7054
  if (props.desc) {
7039
7055
  return createVNode("div", {
7040
- "class": [bem$_("desc"), "van-ellipsis"]
7056
+ "class": [bem$$("desc"), "van-ellipsis"]
7041
7057
  }, [props.desc]);
7042
7058
  }
7043
7059
  };
7044
7060
  const renderPriceText = () => {
7045
7061
  const priceArr = props.price.toString().split(".");
7046
7062
  return createVNode("div", null, [createVNode("span", {
7047
- "class": bem$_("price-currency")
7063
+ "class": bem$$("price-currency")
7048
7064
  }, [props.currency]), createVNode("span", {
7049
- "class": bem$_("price-integer")
7065
+ "class": bem$$("price-integer")
7050
7066
  }, [priceArr[0]]), createTextVNode("."), createVNode("span", {
7051
- "class": bem$_("price-decimal")
7067
+ "class": bem$$("price-decimal")
7052
7068
  }, [priceArr[1]])]);
7053
7069
  };
7054
7070
  return () => {
@@ -7058,34 +7074,34 @@ var stdin_default$18 = defineComponent({
7058
7074
  const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
7059
7075
  const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
7060
7076
  const Price = showPrice && createVNode("div", {
7061
- "class": bem$_("price")
7077
+ "class": bem$$("price")
7062
7078
  }, [slots.price ? slots.price() : renderPriceText()]);
7063
7079
  const OriginPrice = showOriginPrice && createVNode("div", {
7064
- "class": bem$_("origin-price")
7080
+ "class": bem$$("origin-price")
7065
7081
  }, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
7066
7082
  const Num = showNum && createVNode("div", {
7067
- "class": bem$_("num")
7083
+ "class": bem$$("num")
7068
7084
  }, [slots.num ? slots.num() : `x${props.num}`]);
7069
7085
  const Footer = slots.footer && createVNode("div", {
7070
- "class": bem$_("footer")
7086
+ "class": bem$$("footer")
7071
7087
  }, [slots.footer()]);
7072
7088
  const Bottom = showBottom && createVNode("div", {
7073
- "class": bem$_("bottom")
7089
+ "class": bem$$("bottom")
7074
7090
  }, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
7075
7091
  return createVNode("div", {
7076
- "class": bem$_()
7092
+ "class": bem$$()
7077
7093
  }, [createVNode("div", {
7078
- "class": bem$_("header")
7094
+ "class": bem$$("header")
7079
7095
  }, [renderThumb(), createVNode("div", {
7080
- "class": bem$_("content", {
7096
+ "class": bem$$("content", {
7081
7097
  centered: props.centered
7082
7098
  })
7083
7099
  }, [createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
7084
7100
  };
7085
7101
  }
7086
7102
  });
7087
- const Card = withInstall(stdin_default$18);
7088
- const [name$_, bem$Z, t$f] = createNamespace("cascader");
7103
+ const Card = withInstall(stdin_default$19);
7104
+ const [name$$, bem$_, t$f] = createNamespace("cascader");
7089
7105
  const cascaderProps = {
7090
7106
  title: String,
7091
7107
  options: makeArrayProp(),
@@ -7098,8 +7114,8 @@ const cascaderProps = {
7098
7114
  placeholder: String,
7099
7115
  activeColor: String
7100
7116
  };
7101
- var stdin_default$17 = defineComponent({
7102
- name: name$_,
7117
+ var stdin_default$18 = defineComponent({
7118
+ name: name$$,
7103
7119
  props: cascaderProps,
7104
7120
  emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
7105
7121
  setup(props, {
@@ -7208,12 +7224,12 @@ var stdin_default$17 = defineComponent({
7208
7224
  title
7209
7225
  }) => emit("clickTab", name2, title);
7210
7226
  const renderHeader = () => props.showHeader ? createVNode("div", {
7211
- "class": bem$Z("header")
7227
+ "class": bem$_("header")
7212
7228
  }, [createVNode("h2", {
7213
- "class": bem$Z("title")
7229
+ "class": bem$_("title")
7214
7230
  }, [slots.title ? slots.title() : props.title]), props.closeable ? createVNode(Icon, {
7215
7231
  "name": props.closeIcon,
7216
- "class": [bem$Z("close-icon"), HAPTICS_FEEDBACK],
7232
+ "class": [bem$_("close-icon"), HAPTICS_FEEDBACK],
7217
7233
  "onClick": onClose
7218
7234
  }, null) : null]) : null;
7219
7235
  const renderOption = (option, selectedOption, tabIndex) => {
@@ -7229,7 +7245,7 @@ var stdin_default$17 = defineComponent({
7229
7245
  return createVNode("li", {
7230
7246
  "ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
7231
7247
  "role": "menuitemradio",
7232
- "class": [bem$Z("option", {
7248
+ "class": [bem$_("option", {
7233
7249
  selected,
7234
7250
  disabled
7235
7251
  }), option.className],
@@ -7242,12 +7258,12 @@ var stdin_default$17 = defineComponent({
7242
7258
  "onClick": () => onSelect(option, tabIndex)
7243
7259
  }, [Text2, selected ? createVNode(Icon, {
7244
7260
  "name": "success",
7245
- "class": bem$Z("selected-icon")
7261
+ "class": bem$_("selected-icon")
7246
7262
  }, null) : null]);
7247
7263
  };
7248
7264
  const renderOptions = (options, selectedOption, tabIndex) => createVNode("ul", {
7249
7265
  "role": "menu",
7250
- "class": bem$Z("options")
7266
+ "class": bem$_("options")
7251
7267
  }, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
7252
7268
  const renderTab = (tab, tabIndex) => {
7253
7269
  const {
@@ -7258,7 +7274,7 @@ var stdin_default$17 = defineComponent({
7258
7274
  const title = selected ? selected[textKey] : placeholder;
7259
7275
  return createVNode(Tab, {
7260
7276
  "title": title,
7261
- "titleClass": bem$Z("tab", {
7277
+ "titleClass": bem$_("tab", {
7262
7278
  unselected: !selected
7263
7279
  })
7264
7280
  }, {
@@ -7277,7 +7293,7 @@ var stdin_default$17 = defineComponent({
7277
7293
  "onUpdate:active": ($event) => activeTab.value = $event,
7278
7294
  "shrink": true,
7279
7295
  "animated": true,
7280
- "class": bem$Z("tabs"),
7296
+ "class": bem$_("tabs"),
7281
7297
  "color": props.activeColor,
7282
7298
  "swipeable": props.swipeable,
7283
7299
  "onClickTab": onClickTab
@@ -7312,19 +7328,19 @@ var stdin_default$17 = defineComponent({
7312
7328
  updateTabs();
7313
7329
  });
7314
7330
  return () => createVNode("div", {
7315
- "class": bem$Z()
7331
+ "class": bem$_()
7316
7332
  }, [renderHeader(), renderTabs()]);
7317
7333
  }
7318
7334
  });
7319
- const Cascader = withInstall(stdin_default$17);
7320
- const [name$Z, bem$Y] = createNamespace("cell-group");
7335
+ const Cascader = withInstall(stdin_default$18);
7336
+ const [name$_, bem$Z] = createNamespace("cell-group");
7321
7337
  const cellGroupProps = {
7322
7338
  title: String,
7323
7339
  inset: Boolean,
7324
7340
  border: truthProp
7325
7341
  };
7326
- var stdin_default$16 = defineComponent({
7327
- name: name$Z,
7342
+ var stdin_default$17 = defineComponent({
7343
+ name: name$_,
7328
7344
  inheritAttrs: false,
7329
7345
  props: cellGroupProps,
7330
7346
  setup(props, {
@@ -7334,7 +7350,7 @@ var stdin_default$16 = defineComponent({
7334
7350
  const renderGroup = () => {
7335
7351
  var _a;
7336
7352
  return createVNode("div", mergeProps({
7337
- "class": [bem$Y({
7353
+ "class": [bem$Z({
7338
7354
  inset: props.inset
7339
7355
  }), {
7340
7356
  [BORDER_TOP_BOTTOM]: props.border && !props.inset
@@ -7342,7 +7358,7 @@ var stdin_default$16 = defineComponent({
7342
7358
  }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7343
7359
  };
7344
7360
  const renderTitle = () => createVNode("div", {
7345
- "class": bem$Y("title", {
7361
+ "class": bem$Z("title", {
7346
7362
  inset: props.inset
7347
7363
  })
7348
7364
  }, [slots.title ? slots.title() : props.title]);
@@ -7354,8 +7370,8 @@ var stdin_default$16 = defineComponent({
7354
7370
  };
7355
7371
  }
7356
7372
  });
7357
- const CellGroup = withInstall(stdin_default$16);
7358
- const [name$Y, bem$X] = createNamespace("checkbox-group");
7373
+ const CellGroup = withInstall(stdin_default$17);
7374
+ const [name$Z, bem$Y] = createNamespace("checkbox-group");
7359
7375
  const checkboxGroupProps = {
7360
7376
  max: numericProp,
7361
7377
  disabled: Boolean,
@@ -7364,9 +7380,9 @@ const checkboxGroupProps = {
7364
7380
  modelValue: makeArrayProp(),
7365
7381
  checkedColor: String
7366
7382
  };
7367
- const CHECKBOX_GROUP_KEY = Symbol(name$Y);
7368
- var stdin_default$15 = defineComponent({
7369
- name: name$Y,
7383
+ const CHECKBOX_GROUP_KEY = Symbol(name$Z);
7384
+ var stdin_default$16 = defineComponent({
7385
+ name: name$Z,
7370
7386
  props: checkboxGroupProps,
7371
7387
  emits: ["change", "update:modelValue"],
7372
7388
  setup(props, {
@@ -7412,17 +7428,17 @@ var stdin_default$15 = defineComponent({
7412
7428
  return () => {
7413
7429
  var _a;
7414
7430
  return createVNode("div", {
7415
- "class": bem$X([props.direction])
7431
+ "class": bem$Y([props.direction])
7416
7432
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7417
7433
  };
7418
7434
  }
7419
7435
  });
7420
- const [name$X, bem$W] = createNamespace("checkbox");
7436
+ const [name$Y, bem$X] = createNamespace("checkbox");
7421
7437
  const checkboxProps = extend({}, checkerProps, {
7422
7438
  bindGroup: truthProp
7423
7439
  });
7424
- var stdin_default$14 = defineComponent({
7425
- name: name$X,
7440
+ var stdin_default$15 = defineComponent({
7441
+ name: name$Y,
7426
7442
  props: checkboxProps,
7427
7443
  emits: ["change", "update:modelValue"],
7428
7444
  setup(props, {
@@ -7479,8 +7495,8 @@ var stdin_default$14 = defineComponent({
7479
7495
  checked
7480
7496
  });
7481
7497
  useCustomFieldValue(() => props.modelValue);
7482
- return () => createVNode(stdin_default$1j, mergeProps({
7483
- "bem": bem$W,
7498
+ return () => createVNode(stdin_default$1k, mergeProps({
7499
+ "bem": bem$X,
7484
7500
  "role": "checkbox",
7485
7501
  "parent": parent,
7486
7502
  "checked": checked.value,
@@ -7488,9 +7504,9 @@ var stdin_default$14 = defineComponent({
7488
7504
  }, props), pick(slots, ["default", "icon"]));
7489
7505
  }
7490
7506
  });
7491
- const Checkbox = withInstall(stdin_default$14);
7492
- const CheckboxGroup = withInstall(stdin_default$15);
7493
- const [name$W, bem$V] = createNamespace("circle");
7507
+ const Checkbox = withInstall(stdin_default$15);
7508
+ const CheckboxGroup = withInstall(stdin_default$16);
7509
+ const [name$X, bem$W] = createNamespace("circle");
7494
7510
  let uid = 0;
7495
7511
  const format = (rate) => Math.min(Math.max(+rate, 0), 100);
7496
7512
  function getPath(clockwise, viewBoxSize) {
@@ -7511,8 +7527,8 @@ const circleProps = {
7511
7527
  strokeLinecap: String,
7512
7528
  startPosition: makeStringProp("top")
7513
7529
  };
7514
- var stdin_default$13 = defineComponent({
7515
- name: name$W,
7530
+ var stdin_default$14 = defineComponent({
7531
+ name: name$X,
7516
7532
  props: circleProps,
7517
7533
  emits: ["update:currentRate"],
7518
7534
  setup(props, {
@@ -7580,7 +7596,7 @@ var stdin_default$13 = defineComponent({
7580
7596
  return createVNode("path", {
7581
7597
  "d": path.value,
7582
7598
  "style": style,
7583
- "class": bem$V("hover"),
7599
+ "class": bem$W("hover"),
7584
7600
  "stroke": color
7585
7601
  }, null);
7586
7602
  };
@@ -7591,7 +7607,7 @@ var stdin_default$13 = defineComponent({
7591
7607
  strokeWidth: `${props.strokeWidth}px`
7592
7608
  };
7593
7609
  return createVNode("path", {
7594
- "class": bem$V("layer"),
7610
+ "class": bem$W("layer"),
7595
7611
  "style": style,
7596
7612
  "d": path.value
7597
7613
  }, null);
@@ -7622,12 +7638,12 @@ var stdin_default$13 = defineComponent({
7622
7638
  }
7623
7639
  if (props.text) {
7624
7640
  return createVNode("div", {
7625
- "class": bem$V("text")
7641
+ "class": bem$W("text")
7626
7642
  }, [props.text]);
7627
7643
  }
7628
7644
  };
7629
7645
  return () => createVNode("div", {
7630
- "class": bem$V(),
7646
+ "class": bem$W(),
7631
7647
  "style": getSizeStyle(props.size)
7632
7648
  }, [createVNode("svg", {
7633
7649
  "viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
@@ -7635,9 +7651,9 @@ var stdin_default$13 = defineComponent({
7635
7651
  }, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
7636
7652
  }
7637
7653
  });
7638
- const Circle = withInstall(stdin_default$13);
7639
- const [name$V, bem$U] = createNamespace("row");
7640
- const ROW_KEY = Symbol(name$V);
7654
+ const Circle = withInstall(stdin_default$14);
7655
+ const [name$W, bem$V] = createNamespace("row");
7656
+ const ROW_KEY = Symbol(name$W);
7641
7657
  const rowProps = {
7642
7658
  tag: makeStringProp("div"),
7643
7659
  wrap: truthProp,
@@ -7645,8 +7661,8 @@ const rowProps = {
7645
7661
  gutter: makeNumericProp(0),
7646
7662
  justify: String
7647
7663
  };
7648
- var stdin_default$12 = defineComponent({
7649
- name: name$V,
7664
+ var stdin_default$13 = defineComponent({
7665
+ name: name$W,
7650
7666
  props: rowProps,
7651
7667
  setup(props, {
7652
7668
  slots
@@ -7705,7 +7721,7 @@ var stdin_default$12 = defineComponent({
7705
7721
  justify
7706
7722
  } = props;
7707
7723
  return createVNode(tag, {
7708
- "class": bem$U({
7724
+ "class": bem$V({
7709
7725
  [`align-${align}`]: align,
7710
7726
  [`justify-${justify}`]: justify,
7711
7727
  nowrap: !wrap
@@ -7719,14 +7735,14 @@ var stdin_default$12 = defineComponent({
7719
7735
  };
7720
7736
  }
7721
7737
  });
7722
- const [name$U, bem$T] = createNamespace("col");
7738
+ const [name$V, bem$U] = createNamespace("col");
7723
7739
  const colProps = {
7724
7740
  tag: makeStringProp("div"),
7725
7741
  span: makeNumericProp(0),
7726
7742
  offset: numericProp
7727
7743
  };
7728
- var stdin_default$11 = defineComponent({
7729
- name: name$U,
7744
+ var stdin_default$12 = defineComponent({
7745
+ name: name$V,
7730
7746
  props: colProps,
7731
7747
  setup(props, {
7732
7748
  slots
@@ -7761,7 +7777,7 @@ var stdin_default$11 = defineComponent({
7761
7777
  } = props;
7762
7778
  return createVNode(tag, {
7763
7779
  "style": style.value,
7764
- "class": bem$T({
7780
+ "class": bem$U({
7765
7781
  [span]: span,
7766
7782
  [`offset-${offset}`]: offset
7767
7783
  })
@@ -7774,9 +7790,9 @@ var stdin_default$11 = defineComponent({
7774
7790
  };
7775
7791
  }
7776
7792
  });
7777
- const Col = withInstall(stdin_default$11);
7778
- const [name$T, bem$S] = createNamespace("collapse");
7779
- const COLLAPSE_KEY = Symbol(name$T);
7793
+ const Col = withInstall(stdin_default$12);
7794
+ const [name$U, bem$T] = createNamespace("collapse");
7795
+ const COLLAPSE_KEY = Symbol(name$U);
7780
7796
  const collapseProps = {
7781
7797
  border: truthProp,
7782
7798
  accordion: Boolean,
@@ -7796,8 +7812,8 @@ function validateModelValue(modelValue, accordion) {
7796
7812
  }
7797
7813
  return true;
7798
7814
  }
7799
- var stdin_default$10 = defineComponent({
7800
- name: name$T,
7815
+ var stdin_default$11 = defineComponent({
7816
+ name: name$U,
7801
7817
  props: collapseProps,
7802
7818
  emits: ["change", "update:modelValue"],
7803
7819
  setup(props, {
@@ -7867,15 +7883,15 @@ var stdin_default$10 = defineComponent({
7867
7883
  return () => {
7868
7884
  var _a;
7869
7885
  return createVNode("div", {
7870
- "class": [bem$S(), {
7886
+ "class": [bem$T(), {
7871
7887
  [BORDER_TOP_BOTTOM]: props.border
7872
7888
  }]
7873
7889
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7874
7890
  };
7875
7891
  }
7876
7892
  });
7877
- const Collapse = withInstall(stdin_default$10);
7878
- const [name$S, bem$R] = createNamespace("collapse-item");
7893
+ const Collapse = withInstall(stdin_default$11);
7894
+ const [name$T, bem$S] = createNamespace("collapse-item");
7879
7895
  const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
7880
7896
  const collapseItemProps = extend({}, cellSharedProps, {
7881
7897
  name: numericProp,
@@ -7884,8 +7900,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
7884
7900
  readonly: Boolean,
7885
7901
  lazyRender: truthProp
7886
7902
  });
7887
- var stdin_default$$ = defineComponent({
7888
- name: name$S,
7903
+ var stdin_default$10 = defineComponent({
7904
+ name: name$T,
7889
7905
  props: collapseItemProps,
7890
7906
  setup(props, {
7891
7907
  slots
@@ -7967,7 +7983,7 @@ var stdin_default$$ = defineComponent({
7967
7983
  }
7968
7984
  return createVNode(Cell, mergeProps({
7969
7985
  "role": "button",
7970
- "class": bem$R("title", {
7986
+ "class": bem$S("title", {
7971
7987
  disabled,
7972
7988
  expanded: expanded.value,
7973
7989
  borderless: !border
@@ -7980,11 +7996,11 @@ var stdin_default$$ = defineComponent({
7980
7996
  var _a;
7981
7997
  return withDirectives(createVNode("div", {
7982
7998
  "ref": wrapperRef,
7983
- "class": bem$R("wrapper"),
7999
+ "class": bem$S("wrapper"),
7984
8000
  "onTransitionend": onTransitionEnd
7985
8001
  }, [createVNode("div", {
7986
8002
  "ref": contentRef,
7987
- "class": bem$R("content")
8003
+ "class": bem$S("content")
7988
8004
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vShow, show.value]]);
7989
8005
  });
7990
8006
  useExpose({
@@ -7993,15 +8009,15 @@ var stdin_default$$ = defineComponent({
7993
8009
  itemName: name2
7994
8010
  });
7995
8011
  return () => createVNode("div", {
7996
- "class": [bem$R({
8012
+ "class": [bem$S({
7997
8013
  border: index.value && props.border
7998
8014
  })]
7999
8015
  }, [renderTitle(), renderContent()]);
8000
8016
  }
8001
8017
  });
8002
- const CollapseItem = withInstall(stdin_default$$);
8003
- const ConfigProvider = withInstall(stdin_default$1M);
8004
- const [name$R, bem$Q, t$e] = createNamespace("contact-card");
8018
+ const CollapseItem = withInstall(stdin_default$10);
8019
+ const ConfigProvider = withInstall(stdin_default$1N);
8020
+ const [name$S, bem$R, t$e] = createNamespace("contact-card");
8005
8021
  const contactCardProps = {
8006
8022
  tel: String,
8007
8023
  name: String,
@@ -8009,8 +8025,8 @@ const contactCardProps = {
8009
8025
  addText: String,
8010
8026
  editable: truthProp
8011
8027
  };
8012
- var stdin_default$_ = defineComponent({
8013
- name: name$R,
8028
+ var stdin_default$$ = defineComponent({
8029
+ name: name$S,
8014
8030
  props: contactCardProps,
8015
8031
  emits: ["click"],
8016
8032
  setup(props, {
@@ -8030,18 +8046,18 @@ var stdin_default$_ = defineComponent({
8030
8046
  return () => createVNode(Cell, {
8031
8047
  "center": true,
8032
8048
  "icon": props.type === "edit" ? "contact" : "add-square",
8033
- "class": bem$Q([props.type]),
8049
+ "class": bem$R([props.type]),
8034
8050
  "border": false,
8035
8051
  "isLink": props.editable,
8036
- "titleClass": bem$Q("title"),
8052
+ "titleClass": bem$R("title"),
8037
8053
  "onClick": onClick
8038
8054
  }, {
8039
8055
  title: renderContent
8040
8056
  });
8041
8057
  }
8042
8058
  });
8043
- const ContactCard = withInstall(stdin_default$_);
8044
- const [name$Q, bem$P, t$d] = createNamespace("contact-edit");
8059
+ const ContactCard = withInstall(stdin_default$$);
8060
+ const [name$R, bem$Q, t$d] = createNamespace("contact-edit");
8045
8061
  const DEFAULT_CONTACT = {
8046
8062
  tel: "",
8047
8063
  name: ""
@@ -8061,8 +8077,8 @@ const contactEditProps = {
8061
8077
  default: isMobile
8062
8078
  }
8063
8079
  };
8064
- var stdin_default$Z = defineComponent({
8065
- name: name$Q,
8080
+ var stdin_default$_ = defineComponent({
8081
+ name: name$R,
8066
8082
  props: contactEditProps,
8067
8083
  emits: ["save", "delete", "changeDefault"],
8068
8084
  setup(props, {
@@ -8076,20 +8092,20 @@ var stdin_default$Z = defineComponent({
8076
8092
  };
8077
8093
  const onDelete = () => emit("delete", contact);
8078
8094
  const renderButtons = () => createVNode("div", {
8079
- "class": bem$P("buttons")
8095
+ "class": bem$Q("buttons")
8080
8096
  }, [createVNode(Button, {
8081
8097
  "block": true,
8082
8098
  "round": true,
8083
8099
  "type": "primary",
8084
8100
  "text": t$d("save"),
8085
- "class": bem$P("button"),
8101
+ "class": bem$Q("button"),
8086
8102
  "loading": props.isSaving,
8087
8103
  "nativeType": "submit"
8088
8104
  }, null), props.isEdit && createVNode(Button, {
8089
8105
  "block": true,
8090
8106
  "round": true,
8091
8107
  "text": t$d("delete"),
8092
- "class": bem$P("button"),
8108
+ "class": bem$Q("button"),
8093
8109
  "loading": props.isDeleting,
8094
8110
  "onClick": onDelete
8095
8111
  }, null)]);
@@ -8102,7 +8118,7 @@ var stdin_default$Z = defineComponent({
8102
8118
  if (props.showSetDefault) {
8103
8119
  return createVNode(Cell, {
8104
8120
  "title": props.setDefaultLabel,
8105
- "class": bem$P("switch-cell"),
8121
+ "class": bem$Q("switch-cell"),
8106
8122
  "border": false
8107
8123
  }, {
8108
8124
  "right-icon": renderSwitch
@@ -8111,11 +8127,11 @@ var stdin_default$Z = defineComponent({
8111
8127
  };
8112
8128
  watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
8113
8129
  return () => createVNode(Form, {
8114
- "class": bem$P(),
8130
+ "class": bem$Q(),
8115
8131
  "onSubmit": onSave
8116
8132
  }, {
8117
8133
  default: () => [createVNode("div", {
8118
- "class": bem$P("fields")
8134
+ "class": bem$Q("fields")
8119
8135
  }, [createVNode(Field, {
8120
8136
  "modelValue": contact.name,
8121
8137
  "onUpdate:modelValue": ($event) => contact.name = $event,
@@ -8142,16 +8158,16 @@ var stdin_default$Z = defineComponent({
8142
8158
  });
8143
8159
  }
8144
8160
  });
8145
- const ContactEdit = withInstall(stdin_default$Z);
8146
- const [name$P, bem$O, t$c] = createNamespace("contact-list");
8161
+ const ContactEdit = withInstall(stdin_default$_);
8162
+ const [name$Q, bem$P, t$c] = createNamespace("contact-list");
8147
8163
  const contactListProps = {
8148
8164
  list: Array,
8149
8165
  addText: String,
8150
8166
  modelValue: unknownProp,
8151
8167
  defaultTagText: String
8152
8168
  };
8153
- var stdin_default$Y = defineComponent({
8154
- name: name$P,
8169
+ var stdin_default$Z = defineComponent({
8170
+ name: name$Q,
8155
8171
  props: contactListProps,
8156
8172
  emits: ["add", "edit", "select", "update:modelValue"],
8157
8173
  setup(props, {
@@ -8163,13 +8179,13 @@ var stdin_default$Y = defineComponent({
8163
8179
  emit("select", item, index);
8164
8180
  };
8165
8181
  const renderRightIcon = () => createVNode(Radio, {
8166
- "class": bem$O("radio"),
8182
+ "class": bem$P("radio"),
8167
8183
  "name": item.id,
8168
8184
  "iconSize": 18
8169
8185
  }, null);
8170
8186
  const renderEditIcon = () => createVNode(Icon, {
8171
8187
  "name": "edit",
8172
- "class": bem$O("edit"),
8188
+ "class": bem$P("edit"),
8173
8189
  "onClick": (event) => {
8174
8190
  event.stopPropagation();
8175
8191
  emit("edit", item, index);
@@ -8181,7 +8197,7 @@ var stdin_default$Y = defineComponent({
8181
8197
  nodes.push(createVNode(Tag, {
8182
8198
  "type": "primary",
8183
8199
  "round": true,
8184
- "class": bem$O("item-tag")
8200
+ "class": bem$P("item-tag")
8185
8201
  }, {
8186
8202
  default: () => [props.defaultTagText]
8187
8203
  }));
@@ -8192,8 +8208,8 @@ var stdin_default$Y = defineComponent({
8192
8208
  "key": item.id,
8193
8209
  "isLink": true,
8194
8210
  "center": true,
8195
- "class": bem$O("item"),
8196
- "titleClass": bem$O("item-title"),
8211
+ "class": bem$P("item"),
8212
+ "titleClass": bem$P("item-title"),
8197
8213
  "onClick": onClick
8198
8214
  }, {
8199
8215
  icon: renderEditIcon,
@@ -8202,25 +8218,25 @@ var stdin_default$Y = defineComponent({
8202
8218
  });
8203
8219
  };
8204
8220
  return () => createVNode("div", {
8205
- "class": bem$O()
8221
+ "class": bem$P()
8206
8222
  }, [createVNode(RadioGroup, {
8207
8223
  "modelValue": props.modelValue,
8208
- "class": bem$O("group")
8224
+ "class": bem$P("group")
8209
8225
  }, {
8210
8226
  default: () => [props.list && props.list.map(renderItem)]
8211
8227
  }), createVNode("div", {
8212
- "class": [bem$O("bottom"), "van-safe-area-bottom"]
8228
+ "class": [bem$P("bottom"), "van-safe-area-bottom"]
8213
8229
  }, [createVNode(Button, {
8214
8230
  "round": true,
8215
8231
  "block": true,
8216
8232
  "type": "primary",
8217
- "class": bem$O("add"),
8233
+ "class": bem$P("add"),
8218
8234
  "text": props.addText || t$c("addContact"),
8219
8235
  "onClick": () => emit("add")
8220
8236
  }, null)])]);
8221
8237
  }
8222
8238
  });
8223
- const ContactList = withInstall(stdin_default$Y);
8239
+ const ContactList = withInstall(stdin_default$Z);
8224
8240
  function parseFormat(format2, currentTime) {
8225
8241
  const { days } = currentTime;
8226
8242
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -8256,15 +8272,15 @@ function parseFormat(format2, currentTime) {
8256
8272
  }
8257
8273
  return format2;
8258
8274
  }
8259
- const [name$O, bem$N] = createNamespace("count-down");
8275
+ const [name$P, bem$O] = createNamespace("count-down");
8260
8276
  const countDownProps = {
8261
8277
  time: makeNumericProp(0),
8262
8278
  format: makeStringProp("HH:mm:ss"),
8263
8279
  autoStart: truthProp,
8264
8280
  millisecond: Boolean
8265
8281
  };
8266
- var stdin_default$X = defineComponent({
8267
- name: name$O,
8282
+ var stdin_default$Y = defineComponent({
8283
+ name: name$P,
8268
8284
  props: countDownProps,
8269
8285
  emits: ["change", "finish"],
8270
8286
  setup(props, {
@@ -8299,11 +8315,11 @@ var stdin_default$X = defineComponent({
8299
8315
  });
8300
8316
  return () => createVNode("div", {
8301
8317
  "role": "timer",
8302
- "class": bem$N()
8318
+ "class": bem$O()
8303
8319
  }, [slots.default ? slots.default(current2.value) : timeText.value]);
8304
8320
  }
8305
8321
  });
8306
- const CountDown = withInstall(stdin_default$X);
8322
+ const CountDown = withInstall(stdin_default$Y);
8307
8323
  function getDate(timeStamp) {
8308
8324
  const date = new Date(timeStamp * 1e3);
8309
8325
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -8312,9 +8328,9 @@ function getDate(timeStamp) {
8312
8328
  }
8313
8329
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
8314
8330
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
8315
- const [name$N, bem$M, t$b] = createNamespace("coupon");
8316
- var stdin_default$W = defineComponent({
8317
- name: name$N,
8331
+ const [name$O, bem$N, t$b] = createNamespace("coupon");
8332
+ var stdin_default$X = defineComponent({
8333
+ name: name$O,
8318
8334
  props: {
8319
8335
  chosen: Boolean,
8320
8336
  coupon: makeRequiredProp(Object),
@@ -8358,34 +8374,34 @@ var stdin_default$W = defineComponent({
8358
8374
  } = props;
8359
8375
  const description = disabled && coupon.reason || coupon.description;
8360
8376
  return createVNode("div", {
8361
- "class": bem$M({
8377
+ "class": bem$N({
8362
8378
  disabled
8363
8379
  })
8364
8380
  }, [createVNode("div", {
8365
- "class": bem$M("content")
8381
+ "class": bem$N("content")
8366
8382
  }, [createVNode("div", {
8367
- "class": bem$M("head")
8383
+ "class": bem$N("head")
8368
8384
  }, [createVNode("h2", {
8369
- "class": bem$M("amount")
8385
+ "class": bem$N("amount")
8370
8386
  }, [faceAmount.value]), createVNode("p", {
8371
- "class": bem$M("condition")
8387
+ "class": bem$N("condition")
8372
8388
  }, [coupon.condition || conditionMessage.value])]), createVNode("div", {
8373
- "class": bem$M("body")
8389
+ "class": bem$N("body")
8374
8390
  }, [createVNode("p", {
8375
- "class": bem$M("name")
8391
+ "class": bem$N("name")
8376
8392
  }, [coupon.name]), createVNode("p", {
8377
- "class": bem$M("valid")
8393
+ "class": bem$N("valid")
8378
8394
  }, [validPeriod.value]), !disabled && createVNode(Checkbox, {
8379
- "class": bem$M("corner"),
8395
+ "class": bem$N("corner"),
8380
8396
  "modelValue": chosen
8381
8397
  }, null)])]), description && createVNode("p", {
8382
- "class": bem$M("description")
8398
+ "class": bem$N("description")
8383
8399
  }, [description])]);
8384
8400
  };
8385
8401
  }
8386
8402
  });
8387
- const Coupon = withInstall(stdin_default$W);
8388
- const [name$M, bem$L, t$a] = createNamespace("coupon-cell");
8403
+ const Coupon = withInstall(stdin_default$X);
8404
+ const [name$N, bem$M, t$a] = createNamespace("coupon-cell");
8389
8405
  const couponCellProps = {
8390
8406
  title: String,
8391
8407
  border: truthProp,
@@ -8413,34 +8429,34 @@ function formatValue({
8413
8429
  }
8414
8430
  return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8415
8431
  }
8416
- var stdin_default$V = defineComponent({
8417
- name: name$M,
8432
+ var stdin_default$W = defineComponent({
8433
+ name: name$N,
8418
8434
  props: couponCellProps,
8419
8435
  setup(props) {
8420
8436
  return () => {
8421
8437
  const selected = props.coupons[+props.chosenCoupon];
8422
8438
  return createVNode(Cell, {
8423
- "class": bem$L(),
8439
+ "class": bem$M(),
8424
8440
  "value": formatValue(props),
8425
8441
  "title": props.title || t$a("title"),
8426
8442
  "border": props.border,
8427
8443
  "isLink": props.editable,
8428
- "valueClass": bem$L("value", {
8444
+ "valueClass": bem$M("value", {
8429
8445
  selected
8430
8446
  })
8431
8447
  }, null);
8432
8448
  };
8433
8449
  }
8434
8450
  });
8435
- const CouponCell = withInstall(stdin_default$V);
8436
- const [name$L, bem$K] = createNamespace("empty");
8451
+ const CouponCell = withInstall(stdin_default$W);
8452
+ const [name$M, bem$L] = createNamespace("empty");
8437
8453
  const emptyProps = {
8438
8454
  image: makeStringProp("default"),
8439
8455
  imageSize: [Number, String, Array],
8440
8456
  description: String
8441
8457
  };
8442
- var stdin_default$U = defineComponent({
8443
- name: name$L,
8458
+ var stdin_default$V = defineComponent({
8459
+ name: name$M,
8444
8460
  props: emptyProps,
8445
8461
  setup(props, {
8446
8462
  slots
@@ -8449,14 +8465,14 @@ var stdin_default$U = defineComponent({
8449
8465
  const description = slots.description ? slots.description() : props.description;
8450
8466
  if (description) {
8451
8467
  return createVNode("p", {
8452
- "class": bem$K("description")
8468
+ "class": bem$L("description")
8453
8469
  }, [description]);
8454
8470
  }
8455
8471
  };
8456
8472
  const renderBottom = () => {
8457
8473
  if (slots.default) {
8458
8474
  return createVNode("div", {
8459
- "class": bem$K("bottom")
8475
+ "class": bem$L("bottom")
8460
8476
  }, [slots.default()]);
8461
8477
  }
8462
8478
  };
@@ -8741,15 +8757,15 @@ var stdin_default$U = defineComponent({
8741
8757
  }, null);
8742
8758
  };
8743
8759
  return () => createVNode("div", {
8744
- "class": bem$K()
8760
+ "class": bem$L()
8745
8761
  }, [createVNode("div", {
8746
- "class": bem$K("image"),
8762
+ "class": bem$L("image"),
8747
8763
  "style": getSizeStyle(props.imageSize)
8748
8764
  }, [renderImage()]), renderDescription(), renderBottom()]);
8749
8765
  }
8750
8766
  });
8751
- const Empty = withInstall(stdin_default$U);
8752
- const [name$K, bem$J, t$9] = createNamespace("coupon-list");
8767
+ const Empty = withInstall(stdin_default$V);
8768
+ const [name$L, bem$K, t$9] = createNamespace("coupon-list");
8753
8769
  const couponListProps = {
8754
8770
  code: makeStringProp(""),
8755
8771
  coupons: makeArrayProp(),
@@ -8770,8 +8786,8 @@ const couponListProps = {
8770
8786
  exchangeButtonLoading: Boolean,
8771
8787
  exchangeButtonDisabled: Boolean
8772
8788
  };
8773
- var stdin_default$T = defineComponent({
8774
- name: name$K,
8789
+ var stdin_default$U = defineComponent({
8790
+ name: name$L,
8775
8791
  props: couponListProps,
8776
8792
  emits: ["change", "exchange", "update:code"],
8777
8793
  setup(props, {
@@ -8789,7 +8805,7 @@ var stdin_default$T = defineComponent({
8789
8805
  const TABS_HEIGHT = 44;
8790
8806
  const rootHeight = useRect(root).height;
8791
8807
  const headerHeight = useRect(barRef).height + TABS_HEIGHT;
8792
- listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight.value) - headerHeight;
8808
+ listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight$1.value) - headerHeight;
8793
8809
  };
8794
8810
  const onExchange = () => {
8795
8811
  emit("exchange", currentCode.value);
@@ -8807,26 +8823,26 @@ var stdin_default$T = defineComponent({
8807
8823
  "image": props.emptyImage
8808
8824
  }, {
8809
8825
  default: () => [createVNode("p", {
8810
- "class": bem$J("empty-tip")
8826
+ "class": bem$K("empty-tip")
8811
8827
  }, [t$9("noCoupon")])]
8812
8828
  });
8813
8829
  const renderExchangeBar = () => {
8814
8830
  if (props.showExchangeBar) {
8815
8831
  return createVNode("div", {
8816
8832
  "ref": barRef,
8817
- "class": bem$J("exchange-bar")
8833
+ "class": bem$K("exchange-bar")
8818
8834
  }, [createVNode(Field, {
8819
8835
  "modelValue": currentCode.value,
8820
8836
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
8821
8837
  "clearable": true,
8822
8838
  "border": false,
8823
- "class": bem$J("field"),
8839
+ "class": bem$K("field"),
8824
8840
  "placeholder": props.inputPlaceholder || t$9("placeholder"),
8825
8841
  "maxlength": "20"
8826
8842
  }, null), createVNode(Button, {
8827
8843
  "plain": true,
8828
8844
  "type": "primary",
8829
- "class": bem$J("exchange"),
8845
+ "class": bem$K("exchange"),
8830
8846
  "text": props.exchangeButtonText || t$9("exchange"),
8831
8847
  "loading": props.exchangeButtonLoading,
8832
8848
  "disabled": buttonDisabled.value,
@@ -8846,7 +8862,7 @@ var stdin_default$T = defineComponent({
8846
8862
  default: () => {
8847
8863
  var _a;
8848
8864
  return [createVNode("div", {
8849
- "class": bem$J("list", {
8865
+ "class": bem$K("list", {
8850
8866
  "with-bottom": props.showCloseButton
8851
8867
  }),
8852
8868
  "style": {
@@ -8875,7 +8891,7 @@ var stdin_default$T = defineComponent({
8875
8891
  default: () => {
8876
8892
  var _a;
8877
8893
  return [createVNode("div", {
8878
- "class": bem$J("list", {
8894
+ "class": bem$K("list", {
8879
8895
  "with-bottom": props.showCloseButton
8880
8896
  }),
8881
8897
  "style": {
@@ -8893,7 +8909,7 @@ var stdin_default$T = defineComponent({
8893
8909
  watch(() => props.code, (value) => {
8894
8910
  currentCode.value = value;
8895
8911
  });
8896
- watch(windowHeight, updateListHeight);
8912
+ watch(windowHeight$1, updateListHeight);
8897
8913
  watch(currentCode, (value) => emit("update:code", value));
8898
8914
  watch(() => props.displayedCouponIndex, scrollToCoupon);
8899
8915
  onMounted(() => {
@@ -8902,28 +8918,28 @@ var stdin_default$T = defineComponent({
8902
8918
  });
8903
8919
  return () => createVNode("div", {
8904
8920
  "ref": root,
8905
- "class": bem$J()
8921
+ "class": bem$K()
8906
8922
  }, [renderExchangeBar(), createVNode(Tabs, {
8907
8923
  "active": activeTab.value,
8908
8924
  "onUpdate:active": ($event) => activeTab.value = $event,
8909
- "class": bem$J("tab")
8925
+ "class": bem$K("tab")
8910
8926
  }, {
8911
8927
  default: () => [renderCouponTab(), renderDisabledTab()]
8912
8928
  }), createVNode("div", {
8913
- "class": bem$J("bottom")
8929
+ "class": bem$K("bottom")
8914
8930
  }, [withDirectives(createVNode(Button, {
8915
8931
  "round": true,
8916
8932
  "block": true,
8917
8933
  "type": "primary",
8918
- "class": bem$J("close"),
8934
+ "class": bem$K("close"),
8919
8935
  "text": props.closeButtonText || t$9("close"),
8920
8936
  "onClick": () => emit("change", -1)
8921
8937
  }, null), [[vShow, props.showCloseButton]])])]);
8922
8938
  }
8923
8939
  });
8924
- const CouponList = withInstall(stdin_default$T);
8940
+ const CouponList = withInstall(stdin_default$U);
8925
8941
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8926
- const [name$J] = createNamespace("date-picker");
8942
+ const [name$K] = createNamespace("date-picker");
8927
8943
  const datePickerProps = extend({}, sharedProps, {
8928
8944
  columnsType: {
8929
8945
  type: Array,
@@ -8940,8 +8956,8 @@ const datePickerProps = extend({}, sharedProps, {
8940
8956
  validator: isDate
8941
8957
  }
8942
8958
  });
8943
- var stdin_default$S = defineComponent({
8944
- name: name$J,
8959
+ var stdin_default$T = defineComponent({
8960
+ name: name$K,
8945
8961
  props: datePickerProps,
8946
8962
  emits: ["confirm", "cancel", "change", "update:modelValue"],
8947
8963
  setup(props, {
@@ -9034,8 +9050,8 @@ var stdin_default$S = defineComponent({
9034
9050
  }, pick(props, pickerInheritKeys)), slots);
9035
9051
  }
9036
9052
  });
9037
- const DatePicker = withInstall(stdin_default$S);
9038
- const [name$I, bem$I, t$8] = createNamespace("dialog");
9053
+ const DatePicker = withInstall(stdin_default$T);
9054
+ const [name$J, bem$J, t$8] = createNamespace("dialog");
9039
9055
  const dialogProps = extend({}, popupSharedProps, {
9040
9056
  title: String,
9041
9057
  theme: String,
@@ -9058,8 +9074,8 @@ const dialogProps = extend({}, popupSharedProps, {
9058
9074
  closeOnClickOverlay: Boolean
9059
9075
  });
9060
9076
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
9061
- var stdin_default$R = defineComponent({
9062
- name: name$I,
9077
+ var stdin_default$S = defineComponent({
9078
+ name: name$J,
9063
9079
  props: dialogProps,
9064
9080
  emits: ["confirm", "cancel", "keydown", "update:show"],
9065
9081
  setup(props, {
@@ -9116,7 +9132,7 @@ var stdin_default$R = defineComponent({
9116
9132
  const title = slots.title ? slots.title() : props.title;
9117
9133
  if (title) {
9118
9134
  return createVNode("div", {
9119
- "class": bem$I("header", {
9135
+ "class": bem$J("header", {
9120
9136
  isolated: !props.message && !slots.default
9121
9137
  })
9122
9138
  }, [title]);
@@ -9128,7 +9144,7 @@ var stdin_default$R = defineComponent({
9128
9144
  allowHtml,
9129
9145
  messageAlign
9130
9146
  } = props;
9131
- const classNames = bem$I("message", {
9147
+ const classNames = bem$J("message", {
9132
9148
  "has-title": hasTitle,
9133
9149
  [messageAlign]: messageAlign
9134
9150
  });
@@ -9146,7 +9162,7 @@ var stdin_default$R = defineComponent({
9146
9162
  const renderContent = () => {
9147
9163
  if (slots.default) {
9148
9164
  return createVNode("div", {
9149
- "class": bem$I("content")
9165
+ "class": bem$J("content")
9150
9166
  }, [slots.default()]);
9151
9167
  }
9152
9168
  const {
@@ -9158,18 +9174,18 @@ var stdin_default$R = defineComponent({
9158
9174
  const hasTitle = !!(title || slots.title);
9159
9175
  return createVNode("div", {
9160
9176
  "key": allowHtml ? 1 : 0,
9161
- "class": bem$I("content", {
9177
+ "class": bem$J("content", {
9162
9178
  isolated: !hasTitle
9163
9179
  })
9164
9180
  }, [renderMessage(hasTitle)]);
9165
9181
  }
9166
9182
  };
9167
9183
  const renderButtons = () => createVNode("div", {
9168
- "class": [BORDER_TOP, bem$I("footer")]
9184
+ "class": [BORDER_TOP, bem$J("footer")]
9169
9185
  }, [props.showCancelButton && createVNode(Button, {
9170
9186
  "size": "large",
9171
9187
  "text": props.cancelButtonText || t$8("cancel"),
9172
- "class": bem$I("cancel"),
9188
+ "class": bem$J("cancel"),
9173
9189
  "style": {
9174
9190
  color: props.cancelButtonColor
9175
9191
  },
@@ -9179,7 +9195,7 @@ var stdin_default$R = defineComponent({
9179
9195
  }, null), props.showConfirmButton && createVNode(Button, {
9180
9196
  "size": "large",
9181
9197
  "text": props.confirmButtonText || t$8("confirm"),
9182
- "class": [bem$I("confirm"), {
9198
+ "class": [bem$J("confirm"), {
9183
9199
  [BORDER_LEFT]: props.showCancelButton
9184
9200
  }],
9185
9201
  "style": {
@@ -9190,12 +9206,12 @@ var stdin_default$R = defineComponent({
9190
9206
  "onClick": onConfirm
9191
9207
  }, null)]);
9192
9208
  const renderRoundButtons = () => createVNode(ActionBar, {
9193
- "class": bem$I("footer")
9209
+ "class": bem$J("footer")
9194
9210
  }, {
9195
9211
  default: () => [props.showCancelButton && createVNode(ActionBarButton, {
9196
9212
  "type": "warning",
9197
9213
  "text": props.cancelButtonText || t$8("cancel"),
9198
- "class": bem$I("cancel"),
9214
+ "class": bem$J("cancel"),
9199
9215
  "color": props.cancelButtonColor,
9200
9216
  "loading": loading.cancel,
9201
9217
  "disabled": props.cancelButtonDisabled,
@@ -9203,7 +9219,7 @@ var stdin_default$R = defineComponent({
9203
9219
  }, null), props.showConfirmButton && createVNode(ActionBarButton, {
9204
9220
  "type": "danger",
9205
9221
  "text": props.confirmButtonText || t$8("confirm"),
9206
- "class": bem$I("confirm"),
9222
+ "class": bem$J("confirm"),
9207
9223
  "color": props.confirmButtonColor,
9208
9224
  "loading": loading.confirm,
9209
9225
  "disabled": props.confirmButtonDisabled,
@@ -9227,7 +9243,7 @@ var stdin_default$R = defineComponent({
9227
9243
  return createVNode(Popup, mergeProps({
9228
9244
  "ref": root,
9229
9245
  "role": "dialog",
9230
- "class": [bem$I([theme]), className],
9246
+ "class": [bem$J([theme]), className],
9231
9247
  "style": {
9232
9248
  width: addUnit(width)
9233
9249
  },
@@ -9277,7 +9293,7 @@ function initInstance$2() {
9277
9293
  state,
9278
9294
  toggle
9279
9295
  } = usePopupState();
9280
- return () => createVNode(stdin_default$R, mergeProps(state, {
9296
+ return () => createVNode(stdin_default$S, mergeProps(state, {
9281
9297
  "onUpdate:show": toggle
9282
9298
  }), null);
9283
9299
  }
@@ -9315,16 +9331,16 @@ const closeDialog = () => {
9315
9331
  instance$2.toggle(false);
9316
9332
  }
9317
9333
  };
9318
- const Dialog = withInstall(stdin_default$R);
9319
- const [name$H, bem$H] = createNamespace("divider");
9334
+ const Dialog = withInstall(stdin_default$S);
9335
+ const [name$I, bem$I] = createNamespace("divider");
9320
9336
  const dividerProps = {
9321
9337
  dashed: Boolean,
9322
9338
  hairline: truthProp,
9323
9339
  vertical: Boolean,
9324
9340
  contentPosition: makeStringProp("center")
9325
9341
  };
9326
- var stdin_default$Q = defineComponent({
9327
- name: name$H,
9342
+ var stdin_default$R = defineComponent({
9343
+ name: name$I,
9328
9344
  props: dividerProps,
9329
9345
  setup(props, {
9330
9346
  slots
@@ -9333,7 +9349,7 @@ var stdin_default$Q = defineComponent({
9333
9349
  var _a;
9334
9350
  return createVNode("div", {
9335
9351
  "role": "separator",
9336
- "class": bem$H({
9352
+ "class": bem$I({
9337
9353
  dashed: props.dashed,
9338
9354
  hairline: props.hairline,
9339
9355
  vertical: props.vertical,
@@ -9343,8 +9359,8 @@ var stdin_default$Q = defineComponent({
9343
9359
  };
9344
9360
  }
9345
9361
  });
9346
- const Divider = withInstall(stdin_default$Q);
9347
- const [name$G, bem$G] = createNamespace("dropdown-menu");
9362
+ const Divider = withInstall(stdin_default$R);
9363
+ const [name$H, bem$H] = createNamespace("dropdown-menu");
9348
9364
  const dropdownMenuProps = {
9349
9365
  overlay: truthProp,
9350
9366
  zIndex: numericProp,
@@ -9354,9 +9370,9 @@ const dropdownMenuProps = {
9354
9370
  closeOnClickOutside: truthProp,
9355
9371
  closeOnClickOverlay: truthProp
9356
9372
  };
9357
- const DROPDOWN_KEY = Symbol(name$G);
9358
- var stdin_default$P = defineComponent({
9359
- name: name$G,
9373
+ const DROPDOWN_KEY = Symbol(name$H);
9374
+ var stdin_default$Q = defineComponent({
9375
+ name: name$H,
9360
9376
  props: dropdownMenuProps,
9361
9377
  setup(props, {
9362
9378
  slots
@@ -9378,11 +9394,14 @@ var stdin_default$P = defineComponent({
9378
9394
  };
9379
9395
  }
9380
9396
  });
9397
+ const close = () => {
9398
+ children.forEach((item) => {
9399
+ item.toggle(false);
9400
+ });
9401
+ };
9381
9402
  const onClickAway = () => {
9382
9403
  if (props.closeOnClickOutside) {
9383
- children.forEach((item) => {
9384
- item.toggle(false);
9385
- });
9404
+ close();
9386
9405
  }
9387
9406
  };
9388
9407
  const updateOffset = () => {
@@ -9391,7 +9410,7 @@ var stdin_default$P = defineComponent({
9391
9410
  if (props.direction === "down") {
9392
9411
  offset.value = rect.bottom;
9393
9412
  } else {
9394
- offset.value = windowHeight.value - rect.top;
9413
+ offset.value = windowHeight$1.value - rect.top;
9395
9414
  }
9396
9415
  }
9397
9416
  };
@@ -9423,7 +9442,7 @@ var stdin_default$P = defineComponent({
9423
9442
  "id": `${id}-${index}`,
9424
9443
  "role": "button",
9425
9444
  "tabindex": disabled ? void 0 : 0,
9426
- "class": [bem$G("item", {
9445
+ "class": [bem$H("item", {
9427
9446
  disabled
9428
9447
  }), {
9429
9448
  [HAPTICS_FEEDBACK]: !disabled
@@ -9434,7 +9453,7 @@ var stdin_default$P = defineComponent({
9434
9453
  }
9435
9454
  }
9436
9455
  }, [createVNode("span", {
9437
- "class": [bem$G("title", {
9456
+ "class": [bem$H("title", {
9438
9457
  down: showPopup === (props.direction === "down"),
9439
9458
  active: showPopup
9440
9459
  }), titleClass],
@@ -9445,6 +9464,9 @@ var stdin_default$P = defineComponent({
9445
9464
  "class": "van-ellipsis"
9446
9465
  }, [item.renderTitle()])])]);
9447
9466
  };
9467
+ useExpose({
9468
+ close
9469
+ });
9448
9470
  linkChildren({
9449
9471
  id,
9450
9472
  props,
@@ -9460,18 +9482,18 @@ var stdin_default$P = defineComponent({
9460
9482
  var _a;
9461
9483
  return createVNode("div", {
9462
9484
  "ref": root,
9463
- "class": bem$G()
9485
+ "class": bem$H()
9464
9486
  }, [createVNode("div", {
9465
9487
  "ref": barRef,
9466
9488
  "style": barStyle.value,
9467
- "class": bem$G("bar", {
9489
+ "class": bem$H("bar", {
9468
9490
  opened: opened.value
9469
9491
  })
9470
9492
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
9471
9493
  };
9472
9494
  }
9473
9495
  });
9474
- const [name$F, bem$F] = createNamespace("dropdown-item");
9496
+ const [name$G, bem$G] = createNamespace("dropdown-item");
9475
9497
  const dropdownItemProps = {
9476
9498
  title: String,
9477
9499
  options: makeArrayProp(),
@@ -9481,8 +9503,8 @@ const dropdownItemProps = {
9481
9503
  modelValue: unknownProp,
9482
9504
  titleClass: unknownProp
9483
9505
  };
9484
- var stdin_default$O = defineComponent({
9485
- name: name$F,
9506
+ var stdin_default$P = defineComponent({
9507
+ name: name$G,
9486
9508
  inheritAttrs: false,
9487
9509
  props: dropdownItemProps,
9488
9510
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
@@ -9555,7 +9577,7 @@ var stdin_default$O = defineComponent({
9555
9577
  const renderIcon = () => {
9556
9578
  if (active) {
9557
9579
  return createVNode(Icon, {
9558
- "class": bem$F("icon"),
9580
+ "class": bem$G("icon"),
9559
9581
  "color": activeColor,
9560
9582
  "name": "success"
9561
9583
  }, null);
@@ -9566,7 +9588,7 @@ var stdin_default$O = defineComponent({
9566
9588
  "key": option.value,
9567
9589
  "icon": option.icon,
9568
9590
  "title": option.text,
9569
- "class": bem$F("option", {
9591
+ "class": bem$G("option", {
9570
9592
  active
9571
9593
  }),
9572
9594
  "style": {
@@ -9598,13 +9620,13 @@ var stdin_default$O = defineComponent({
9598
9620
  }
9599
9621
  return withDirectives(createVNode("div", mergeProps({
9600
9622
  "style": style,
9601
- "class": bem$F([direction]),
9623
+ "class": bem$G([direction]),
9602
9624
  "onClick": onClickWrapper
9603
9625
  }, attrs), [createVNode(Popup, {
9604
9626
  "show": state.showPopup,
9605
9627
  "onUpdate:show": ($event) => state.showPopup = $event,
9606
9628
  "role": "menu",
9607
- "class": bem$F("content"),
9629
+ "class": bem$G("content"),
9608
9630
  "overlay": overlay,
9609
9631
  "position": direction === "down" ? "top" : "bottom",
9610
9632
  "duration": state.transition ? duration : 0,
@@ -9642,8 +9664,124 @@ var stdin_default$O = defineComponent({
9642
9664
  };
9643
9665
  }
9644
9666
  });
9645
- const DropdownItem = withInstall(stdin_default$O);
9646
- const DropdownMenu = withInstall(stdin_default$P);
9667
+ const DropdownItem = withInstall(stdin_default$P);
9668
+ const DropdownMenu = withInstall(stdin_default$Q);
9669
+ const {
9670
+ height: windowHeight
9671
+ } = useWindowSize();
9672
+ const floatingPanelProps = {
9673
+ height: makeNumericProp(0),
9674
+ anchors: makeArrayProp(),
9675
+ duration: makeNumericProp(0.2),
9676
+ contentDraggable: truthProp,
9677
+ safeAreaInsetBottom: truthProp
9678
+ };
9679
+ const [name$F, bem$F] = createNamespace("floating-panel");
9680
+ const DAMP = 0.2;
9681
+ var stdin_default$O = defineComponent({
9682
+ name: name$F,
9683
+ props: floatingPanelProps,
9684
+ emits: ["heightChange", "update:height"],
9685
+ setup(props, {
9686
+ emit,
9687
+ slots
9688
+ }) {
9689
+ const rootRef = ref();
9690
+ const contentRef = ref();
9691
+ const height = useSyncPropRef(() => +props.height, (value) => emit("update:height", value));
9692
+ const boundary = computed(() => {
9693
+ var _a, _b;
9694
+ return {
9695
+ min: (_a = props.anchors[0]) != null ? _a : 100,
9696
+ max: (_b = props.anchors[props.anchors.length - 1]) != null ? _b : Math.round(windowHeight.value * 0.6)
9697
+ };
9698
+ });
9699
+ const anchors = computed(() => props.anchors.length >= 2 ? props.anchors : [boundary.value.min, boundary.value.max]);
9700
+ const dragging = ref(false);
9701
+ const rootStyle = computed(() => ({
9702
+ height: addUnit(boundary.value.max),
9703
+ transform: `translateY(calc(100% + ${addUnit(-height.value)}))`,
9704
+ transition: !dragging.value ? `transform ${props.duration}s` : "none"
9705
+ }));
9706
+ const ease = (moveY) => {
9707
+ const absDistance = Math.abs(moveY);
9708
+ const {
9709
+ min,
9710
+ max
9711
+ } = boundary.value;
9712
+ if (absDistance > max) {
9713
+ return -(max + (absDistance - max) * DAMP);
9714
+ }
9715
+ if (absDistance < min) {
9716
+ return -(min - (min - absDistance) * DAMP);
9717
+ }
9718
+ return moveY;
9719
+ };
9720
+ const closest = (arr, target) => arr.reduce((pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur);
9721
+ let startY;
9722
+ const touch = useTouch();
9723
+ const onTouchstart = (e) => {
9724
+ touch.start(e);
9725
+ dragging.value = true;
9726
+ startY = -height.value;
9727
+ };
9728
+ const onTouchmove = (e) => {
9729
+ var _a;
9730
+ touch.move(e);
9731
+ const target = e.target;
9732
+ if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
9733
+ if (!props.contentDraggable)
9734
+ return;
9735
+ if (-startY < boundary.value.max) {
9736
+ if (e.cancelable)
9737
+ e.preventDefault();
9738
+ e.stopPropagation();
9739
+ } else if (!(contentRef.value.scrollTop <= 0 && touch.deltaY.value > 0)) {
9740
+ return;
9741
+ }
9742
+ }
9743
+ const moveY = touch.deltaY.value + startY;
9744
+ height.value = -ease(moveY);
9745
+ };
9746
+ const onTouchend = () => {
9747
+ dragging.value = false;
9748
+ height.value = closest(anchors.value, height.value);
9749
+ if (height.value !== -startY) {
9750
+ emit("heightChange", {
9751
+ height: height.value
9752
+ });
9753
+ }
9754
+ };
9755
+ watch(boundary, () => {
9756
+ height.value = closest(anchors.value, height.value);
9757
+ }, {
9758
+ immediate: true
9759
+ });
9760
+ useLockScroll(rootRef, () => true);
9761
+ return () => {
9762
+ var _a;
9763
+ return createVNode("div", {
9764
+ "class": [bem$F(), {
9765
+ "van-safe-area-bottom": props.safeAreaInsetBottom
9766
+ }],
9767
+ "ref": rootRef,
9768
+ "style": rootStyle.value,
9769
+ "onTouchstartPassive": onTouchstart,
9770
+ "onTouchmove": onTouchmove,
9771
+ "onTouchend": onTouchend,
9772
+ "onTouchcancel": onTouchend
9773
+ }, [createVNode("div", {
9774
+ "class": bem$F("header")
9775
+ }, [createVNode("div", {
9776
+ "class": bem$F("header-bar")
9777
+ }, null)]), createVNode("div", {
9778
+ "class": bem$F("content"),
9779
+ "ref": contentRef
9780
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
9781
+ };
9782
+ }
9783
+ });
9784
+ const FloatingPanel = withInstall(stdin_default$O);
9647
9785
  const [name$E, bem$E] = createNamespace("grid");
9648
9786
  const gridProps = {
9649
9787
  square: Boolean,
@@ -10258,7 +10396,7 @@ var stdin_default$K = defineComponent({
10258
10396
  swipeTo
10259
10397
  });
10260
10398
  onMounted(resize);
10261
- watch([windowWidth, windowHeight], resize);
10399
+ watch([windowWidth, windowHeight$1], resize);
10262
10400
  watch(() => props.startPosition, (value) => setActive(+value));
10263
10401
  watch(() => props.show, (value) => {
10264
10402
  const {
@@ -11642,7 +11780,7 @@ var stdin_default$A = defineComponent({
11642
11780
  }
11643
11781
  });
11644
11782
  const PasswordInput = withInstall(stdin_default$A);
11645
- const PickerGroup = withInstall(stdin_default$1v);
11783
+ const PickerGroup = withInstall(stdin_default$1w);
11646
11784
  const [name$r, bem$q] = createNamespace("popover");
11647
11785
  const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
11648
11786
  const popoverProps = {
@@ -12295,7 +12433,7 @@ var stdin_default$w = defineComponent({
12295
12433
  }
12296
12434
  });
12297
12435
  const Rate = withInstall(stdin_default$w);
12298
- const Row = withInstall(stdin_default$12);
12436
+ const Row = withInstall(stdin_default$13);
12299
12437
  const [name$n, bem$m, t$4] = createNamespace("search");
12300
12438
  const searchProps = extend({}, fieldSharedProps, {
12301
12439
  label: String,
@@ -13127,17 +13265,25 @@ var stdin_default$i = defineComponent({
13127
13265
  return bem$c("button-wrapper", props.reverse ? "left" : "right");
13128
13266
  };
13129
13267
  const renderButtonContent = (value, index) => {
13268
+ const dragging = dragStatus.value === "dragging";
13130
13269
  if (typeof index === "number") {
13131
13270
  const slot = slots[index === 0 ? "left-button" : "right-button"];
13271
+ let dragIndex;
13272
+ if (dragging && Array.isArray(current2)) {
13273
+ dragIndex = current2[0] > current2[1] ? buttonIndex ^ 1 : buttonIndex;
13274
+ }
13132
13275
  if (slot) {
13133
13276
  return slot({
13134
- value
13277
+ value,
13278
+ dragging,
13279
+ dragIndex
13135
13280
  });
13136
13281
  }
13137
13282
  }
13138
13283
  if (slots.button) {
13139
13284
  return slots.button({
13140
- value
13285
+ value,
13286
+ dragging
13141
13287
  });
13142
13288
  }
13143
13289
  return createVNode("div", {
@@ -14213,6 +14359,8 @@ var stdin_default$9 = defineComponent({
14213
14359
  });
14214
14360
  const TextEllipsis = withInstall(stdin_default$9);
14215
14361
  const [name$3] = createNamespace("time-picker");
14362
+ const validateTime = (val) => /^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(val);
14363
+ const fullColumns = ["hour", "minute", "second"];
14216
14364
  const timePickerProps = extend({}, sharedProps, {
14217
14365
  minHour: makeNumericProp(0),
14218
14366
  maxHour: makeNumericProp(23),
@@ -14220,10 +14368,19 @@ const timePickerProps = extend({}, sharedProps, {
14220
14368
  maxMinute: makeNumericProp(59),
14221
14369
  minSecond: makeNumericProp(0),
14222
14370
  maxSecond: makeNumericProp(59),
14371
+ minTime: {
14372
+ type: String,
14373
+ validator: validateTime
14374
+ },
14375
+ maxTime: {
14376
+ type: String,
14377
+ validator: validateTime
14378
+ },
14223
14379
  columnsType: {
14224
14380
  type: Array,
14225
14381
  default: () => ["hour", "minute"]
14226
- }
14382
+ },
14383
+ filter: Function
14227
14384
  });
14228
14385
  var stdin_default$8 = defineComponent({
14229
14386
  name: name$3,
@@ -14234,25 +14391,66 @@ var stdin_default$8 = defineComponent({
14234
14391
  slots
14235
14392
  }) {
14236
14393
  const currentValues = ref(props.modelValue);
14237
- const columns = computed(() => props.columnsType.map((type) => {
14238
- const {
14239
- filter,
14240
- formatter
14394
+ const getValidTime = (time) => {
14395
+ const timeLimitArr = time.split(":");
14396
+ return fullColumns.map((col, i) => props.columnsType.includes(col) ? timeLimitArr[i] : "00");
14397
+ };
14398
+ const columns = computed(() => {
14399
+ let {
14400
+ minHour,
14401
+ maxHour,
14402
+ minMinute,
14403
+ maxMinute,
14404
+ minSecond,
14405
+ maxSecond
14241
14406
  } = props;
14242
- switch (type) {
14243
- case "hour":
14244
- return genOptions(+props.minHour, +props.maxHour, type, formatter, filter);
14245
- case "minute":
14246
- return genOptions(+props.minMinute, +props.maxMinute, type, formatter, filter);
14247
- case "second":
14248
- return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
14249
- default:
14250
- if (process.env.NODE_ENV !== "production") {
14251
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
14252
- }
14253
- return [];
14254
- }
14255
- }));
14407
+ if (props.minTime || props.maxTime) {
14408
+ const fullTime = {
14409
+ hour: 0,
14410
+ minute: 0,
14411
+ second: 0
14412
+ };
14413
+ props.columnsType.forEach((col, i) => {
14414
+ var _a;
14415
+ fullTime[col] = (_a = currentValues.value[i]) != null ? _a : 0;
14416
+ });
14417
+ const {
14418
+ hour,
14419
+ minute
14420
+ } = fullTime;
14421
+ if (props.minTime) {
14422
+ const [minH, minM, minS] = getValidTime(props.minTime);
14423
+ minHour = minH;
14424
+ minMinute = +hour <= +minHour ? minM : "00";
14425
+ minSecond = +hour <= +minHour && +minute <= +minMinute ? minS : "00";
14426
+ }
14427
+ if (props.maxTime) {
14428
+ const [maxH, maxM, maxS] = getValidTime(props.maxTime);
14429
+ maxHour = maxH;
14430
+ maxMinute = +hour >= +maxHour ? maxM : "59";
14431
+ maxSecond = +hour >= +maxHour && +minute >= +maxMinute ? maxS : "59";
14432
+ }
14433
+ }
14434
+ return props.columnsType.map((type) => {
14435
+ const {
14436
+ filter,
14437
+ formatter
14438
+ } = props;
14439
+ switch (type) {
14440
+ case "hour":
14441
+ return genOptions(+minHour, +maxHour, type, formatter, filter, currentValues.value);
14442
+ case "minute":
14443
+ return genOptions(+minMinute, +maxMinute, type, formatter, filter, currentValues.value);
14444
+ case "second":
14445
+ return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
14446
+ default:
14447
+ if (process.env.NODE_ENV !== "production") {
14448
+ throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
14449
+ }
14450
+ return [];
14451
+ }
14452
+ });
14453
+ });
14256
14454
  watch(currentValues, (newValues) => {
14257
14455
  if (!isSameValue(newValues, props.modelValue)) {
14258
14456
  emit("update:modelValue", newValues);
@@ -15808,7 +16006,7 @@ const Lazyload = {
15808
16006
  });
15809
16007
  }
15810
16008
  };
15811
- const version = "4.4.1";
16009
+ const version = "4.5.0";
15812
16010
  function install(app) {
15813
16011
  const components = [
15814
16012
  ActionBar,
@@ -15848,6 +16046,7 @@ function install(app) {
15848
16046
  DropdownMenu,
15849
16047
  Empty,
15850
16048
  Field,
16049
+ FloatingPanel,
15851
16050
  Form,
15852
16051
  Grid,
15853
16052
  GridItem,
@@ -15960,6 +16159,7 @@ export {
15960
16159
  DropdownMenu,
15961
16160
  Empty,
15962
16161
  Field,
16162
+ FloatingPanel,
15963
16163
  Form,
15964
16164
  Grid,
15965
16165
  GridItem,