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.cjs.js CHANGED
@@ -114,7 +114,7 @@ function isHidden(elementRef) {
114
114
  const parentHidden = el.offsetParent === null && style.position !== "fixed";
115
115
  return hidden || parentHidden;
116
116
  }
117
- const { width: windowWidth, height: windowHeight } = use.useWindowSize();
117
+ const { width: windowWidth, height: windowHeight$1 } = use.useWindowSize();
118
118
  function addUnit(value) {
119
119
  if (isDef(value)) {
120
120
  return isNumeric(value) ? `${value}px` : String(value);
@@ -162,7 +162,7 @@ function convertVw(value) {
162
162
  }
163
163
  function convertVh(value) {
164
164
  value = value.replace(/vh/g, "");
165
- return +value * windowHeight.value / 100;
165
+ return +value * windowHeight$1.value / 100;
166
166
  }
167
167
  function unitToPx(value) {
168
168
  if (typeof value === "number") {
@@ -238,7 +238,7 @@ function deepAssign(to, from) {
238
238
  });
239
239
  return to;
240
240
  }
241
- var stdin_default$1Q = {
241
+ var stdin_default$1R = {
242
242
  name: "姓名",
243
243
  tel: "电话",
244
244
  save: "保存",
@@ -302,7 +302,7 @@ var stdin_default$1Q = {
302
302
  };
303
303
  const lang = vue.ref("zh-CN");
304
304
  const messages = vue.reactive({
305
- "zh-CN": stdin_default$1Q
305
+ "zh-CN": stdin_default$1R
306
306
  });
307
307
  const Locale = {
308
308
  messages() {
@@ -317,11 +317,11 @@ const Locale = {
317
317
  }
318
318
  };
319
319
  const useCurrentLang = () => lang;
320
- var stdin_default$1P = Locale;
320
+ var stdin_default$1Q = Locale;
321
321
  function createTranslate(name2) {
322
322
  const prefix = camelize(name2) + ".";
323
323
  return (path, ...args) => {
324
- const messages2 = stdin_default$1P.messages();
324
+ const messages2 = stdin_default$1Q.messages();
325
325
  const message = get(messages2, prefix + path) || get(messages2, path);
326
326
  return isFunction(message) ? message(...args) : message;
327
327
  };
@@ -432,7 +432,7 @@ const useHeight = (element, withSafeArea) => {
432
432
  }
433
433
  });
434
434
  onPopupReopen(() => vue.nextTick(setHeight));
435
- vue.watch([windowWidth, windowHeight], setHeight);
435
+ vue.watch([windowWidth, windowHeight$1], setHeight);
436
436
  return height;
437
437
  };
438
438
  function usePlaceholder(contentRef, bem2) {
@@ -444,20 +444,20 @@ function usePlaceholder(contentRef, bem2) {
444
444
  }
445
445
  }, [renderContent()]);
446
446
  }
447
- const [name$1F, bem$1A] = createNamespace("action-bar");
448
- const ACTION_BAR_KEY = Symbol(name$1F);
447
+ const [name$1G, bem$1B] = createNamespace("action-bar");
448
+ const ACTION_BAR_KEY = Symbol(name$1G);
449
449
  const actionBarProps = {
450
450
  placeholder: Boolean,
451
451
  safeAreaInsetBottom: truthProp
452
452
  };
453
- var stdin_default$1O = vue.defineComponent({
454
- name: name$1F,
453
+ var stdin_default$1P = vue.defineComponent({
454
+ name: name$1G,
455
455
  props: actionBarProps,
456
456
  setup(props, {
457
457
  slots
458
458
  }) {
459
459
  const root = vue.ref();
460
- const renderPlaceholder = usePlaceholder(root, bem$1A);
460
+ const renderPlaceholder = usePlaceholder(root, bem$1B);
461
461
  const {
462
462
  linkChildren
463
463
  } = use.useChildren(ACTION_BAR_KEY);
@@ -466,7 +466,7 @@ var stdin_default$1O = vue.defineComponent({
466
466
  var _a;
467
467
  return vue.createVNode("div", {
468
468
  "ref": root,
469
- "class": [bem$1A(), {
469
+ "class": [bem$1B(), {
470
470
  "van-safe-area-bottom": props.safeAreaInsetBottom
471
471
  }]
472
472
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -479,7 +479,7 @@ var stdin_default$1O = vue.defineComponent({
479
479
  };
480
480
  }
481
481
  });
482
- const ActionBar = withInstall(stdin_default$1O);
482
+ const ActionBar = withInstall(stdin_default$1P);
483
483
  function useExpose(apis) {
484
484
  const instance2 = vue.getCurrentInstance();
485
485
  if (instance2) {
@@ -507,7 +507,7 @@ function useRoute() {
507
507
  const vm = vue.getCurrentInstance().proxy;
508
508
  return () => route(vm);
509
509
  }
510
- const [name$1E, bem$1z] = createNamespace("badge");
510
+ const [name$1F, bem$1A] = createNamespace("badge");
511
511
  const badgeProps = {
512
512
  dot: Boolean,
513
513
  max: numericProp,
@@ -518,8 +518,8 @@ const badgeProps = {
518
518
  showZero: truthProp,
519
519
  position: makeStringProp("top-right")
520
520
  };
521
- var stdin_default$1N = vue.defineComponent({
522
- name: name$1E,
521
+ var stdin_default$1O = vue.defineComponent({
522
+ name: name$1F,
523
523
  props: badgeProps,
524
524
  setup(props, {
525
525
  slots
@@ -582,7 +582,7 @@ var stdin_default$1N = vue.defineComponent({
582
582
  const renderBadge = () => {
583
583
  if (hasContent() || props.dot) {
584
584
  return vue.createVNode("div", {
585
- "class": bem$1z([props.position, {
585
+ "class": bem$1A([props.position, {
586
586
  dot: props.dot,
587
587
  fixed: !!slots.default
588
588
  }]),
@@ -596,7 +596,7 @@ var stdin_default$1N = vue.defineComponent({
596
596
  tag
597
597
  } = props;
598
598
  return vue.createVNode(tag, {
599
- "class": bem$1z("wrapper")
599
+ "class": bem$1A("wrapper")
600
600
  }, {
601
601
  default: () => [slots.default(), renderBadge()]
602
602
  });
@@ -605,14 +605,14 @@ var stdin_default$1N = vue.defineComponent({
605
605
  };
606
606
  }
607
607
  });
608
- const Badge = withInstall(stdin_default$1N);
608
+ const Badge = withInstall(stdin_default$1O);
609
609
  let globalZIndex = 2e3;
610
610
  const useGlobalZIndex = () => ++globalZIndex;
611
611
  const setGlobalZIndex = (val) => {
612
612
  globalZIndex = val;
613
613
  };
614
- const [name$1D, bem$1y] = createNamespace("config-provider");
615
- const CONFIG_PROVIDER_KEY = Symbol(name$1D);
614
+ const [name$1E, bem$1z] = createNamespace("config-provider");
615
+ const CONFIG_PROVIDER_KEY = Symbol(name$1E);
616
616
  const configProviderProps = {
617
617
  tag: makeStringProp("div"),
618
618
  theme: makeStringProp("light"),
@@ -629,8 +629,8 @@ function mapThemeVarsToCSSVars(themeVars) {
629
629
  });
630
630
  return cssVars;
631
631
  }
632
- var stdin_default$1M = vue.defineComponent({
633
- name: name$1D,
632
+ var stdin_default$1N = vue.defineComponent({
633
+ name: name$1E,
634
634
  props: configProviderProps,
635
635
  setup(props, {
636
636
  slots
@@ -662,7 +662,7 @@ var stdin_default$1M = vue.defineComponent({
662
662
  }
663
663
  });
664
664
  return () => vue.createVNode(props.tag, {
665
- "class": bem$1y(),
665
+ "class": bem$1z(),
666
666
  "style": style.value
667
667
  }, {
668
668
  default: () => {
@@ -672,7 +672,7 @@ var stdin_default$1M = vue.defineComponent({
672
672
  });
673
673
  }
674
674
  });
675
- const [name$1C, bem$1x] = createNamespace("icon");
675
+ const [name$1D, bem$1y] = createNamespace("icon");
676
676
  const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
677
677
  const iconProps = {
678
678
  dot: Boolean,
@@ -684,14 +684,14 @@ const iconProps = {
684
684
  badgeProps: Object,
685
685
  classPrefix: String
686
686
  };
687
- var stdin_default$1L = vue.defineComponent({
688
- name: name$1C,
687
+ var stdin_default$1M = vue.defineComponent({
688
+ name: name$1D,
689
689
  props: iconProps,
690
690
  setup(props, {
691
691
  slots
692
692
  }) {
693
693
  const config = vue.inject(CONFIG_PROVIDER_KEY, null);
694
- const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1x());
694
+ const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1y());
695
695
  return () => {
696
696
  const {
697
697
  tag,
@@ -715,7 +715,7 @@ var stdin_default$1L = vue.defineComponent({
715
715
  default: () => {
716
716
  var _a;
717
717
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
718
- "class": bem$1x("image"),
718
+ "class": bem$1y("image"),
719
719
  "src": name2
720
720
  }, null)];
721
721
  }
@@ -723,13 +723,13 @@ var stdin_default$1L = vue.defineComponent({
723
723
  };
724
724
  }
725
725
  });
726
- const Icon = withInstall(stdin_default$1L);
727
- const [name$1B, bem$1w] = createNamespace("loading");
726
+ const Icon = withInstall(stdin_default$1M);
727
+ const [name$1C, bem$1x] = createNamespace("loading");
728
728
  const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
729
- "class": bem$1w("line", String(index + 1))
729
+ "class": bem$1x("line", String(index + 1))
730
730
  }, null));
731
731
  const CircularIcon = vue.createVNode("svg", {
732
- "class": bem$1w("circular"),
732
+ "class": bem$1x("circular"),
733
733
  "viewBox": "25 25 50 50"
734
734
  }, [vue.createVNode("circle", {
735
735
  "cx": "50",
@@ -745,8 +745,8 @@ const loadingProps = {
745
745
  textSize: numericProp,
746
746
  textColor: String
747
747
  };
748
- var stdin_default$1K = vue.defineComponent({
749
- name: name$1B,
748
+ var stdin_default$1L = vue.defineComponent({
749
+ name: name$1C,
750
750
  props: loadingProps,
751
751
  setup(props, {
752
752
  slots
@@ -757,7 +757,7 @@ var stdin_default$1K = vue.defineComponent({
757
757
  const renderIcon = () => {
758
758
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
759
759
  return vue.createVNode("span", {
760
- "class": bem$1w("spinner", props.type),
760
+ "class": bem$1x("spinner", props.type),
761
761
  "style": spinnerStyle.value
762
762
  }, [slots.icon ? slots.icon() : DefaultIcon]);
763
763
  };
@@ -765,7 +765,7 @@ var stdin_default$1K = vue.defineComponent({
765
765
  var _a;
766
766
  if (slots.default) {
767
767
  return vue.createVNode("span", {
768
- "class": bem$1w("text"),
768
+ "class": bem$1x("text"),
769
769
  "style": {
770
770
  fontSize: addUnit(props.textSize),
771
771
  color: (_a = props.textColor) != null ? _a : props.color
@@ -779,7 +779,7 @@ var stdin_default$1K = vue.defineComponent({
779
779
  vertical
780
780
  } = props;
781
781
  return vue.createVNode("div", {
782
- "class": bem$1w([type, {
782
+ "class": bem$1x([type, {
783
783
  vertical
784
784
  }]),
785
785
  "aria-live": "polite",
@@ -788,8 +788,8 @@ var stdin_default$1K = vue.defineComponent({
788
788
  };
789
789
  }
790
790
  });
791
- const Loading = withInstall(stdin_default$1K);
792
- const [name$1A, bem$1v] = createNamespace("button");
791
+ const Loading = withInstall(stdin_default$1L);
792
+ const [name$1B, bem$1w] = createNamespace("button");
793
793
  const buttonProps = extend({}, routeProps, {
794
794
  tag: makeStringProp("button"),
795
795
  text: String,
@@ -811,8 +811,8 @@ const buttonProps = extend({}, routeProps, {
811
811
  loadingType: String,
812
812
  iconPosition: makeStringProp("left")
813
813
  });
814
- var stdin_default$1J = vue.defineComponent({
815
- name: name$1A,
814
+ var stdin_default$1K = vue.defineComponent({
815
+ name: name$1B,
816
816
  props: buttonProps,
817
817
  emits: ["click"],
818
818
  setup(props, {
@@ -827,7 +827,7 @@ var stdin_default$1J = vue.defineComponent({
827
827
  return vue.createVNode(Loading, {
828
828
  "size": props.loadingSize,
829
829
  "type": props.loadingType,
830
- "class": bem$1v("loading")
830
+ "class": bem$1w("loading")
831
831
  }, null);
832
832
  };
833
833
  const renderIcon = () => {
@@ -836,13 +836,13 @@ var stdin_default$1J = vue.defineComponent({
836
836
  }
837
837
  if (slots.icon) {
838
838
  return vue.createVNode("div", {
839
- "class": bem$1v("icon")
839
+ "class": bem$1w("icon")
840
840
  }, [slots.icon()]);
841
841
  }
842
842
  if (props.icon) {
843
843
  return vue.createVNode(Icon, {
844
844
  "name": props.icon,
845
- "class": bem$1v("icon"),
845
+ "class": bem$1w("icon"),
846
846
  "classPrefix": props.iconPrefix
847
847
  }, null);
848
848
  }
@@ -856,7 +856,7 @@ var stdin_default$1J = vue.defineComponent({
856
856
  }
857
857
  if (text) {
858
858
  return vue.createVNode("span", {
859
- "class": bem$1v("text")
859
+ "class": bem$1w("text")
860
860
  }, [text]);
861
861
  }
862
862
  };
@@ -903,7 +903,7 @@ var stdin_default$1J = vue.defineComponent({
903
903
  nativeType,
904
904
  iconPosition
905
905
  } = props;
906
- const classes = [bem$1v([type, size, {
906
+ const classes = [bem$1w([type, size, {
907
907
  plain,
908
908
  block,
909
909
  round,
@@ -922,14 +922,14 @@ var stdin_default$1J = vue.defineComponent({
922
922
  "onClick": onClick
923
923
  }, {
924
924
  default: () => [vue.createVNode("div", {
925
- "class": bem$1v("content")
925
+ "class": bem$1w("content")
926
926
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
927
927
  });
928
928
  };
929
929
  }
930
930
  });
931
- const Button = withInstall(stdin_default$1J);
932
- const [name$1z, bem$1u] = createNamespace("action-bar-button");
931
+ const Button = withInstall(stdin_default$1K);
932
+ const [name$1A, bem$1v] = createNamespace("action-bar-button");
933
933
  const actionBarButtonProps = extend({}, routeProps, {
934
934
  type: String,
935
935
  text: String,
@@ -938,8 +938,8 @@ const actionBarButtonProps = extend({}, routeProps, {
938
938
  loading: Boolean,
939
939
  disabled: Boolean
940
940
  });
941
- var stdin_default$1I = vue.defineComponent({
942
- name: name$1z,
941
+ var stdin_default$1J = vue.defineComponent({
942
+ name: name$1A,
943
943
  props: actionBarButtonProps,
944
944
  setup(props, {
945
945
  slots
@@ -974,7 +974,7 @@ var stdin_default$1I = vue.defineComponent({
974
974
  disabled
975
975
  } = props;
976
976
  return vue.createVNode(Button, {
977
- "class": bem$1u([type, {
977
+ "class": bem$1v([type, {
978
978
  last: isLast.value,
979
979
  first: isFirst.value
980
980
  }]),
@@ -991,8 +991,8 @@ var stdin_default$1I = vue.defineComponent({
991
991
  };
992
992
  }
993
993
  });
994
- const ActionBarButton = withInstall(stdin_default$1I);
995
- const [name$1y, bem$1t] = createNamespace("action-bar-icon");
994
+ const ActionBarButton = withInstall(stdin_default$1J);
995
+ const [name$1z, bem$1u] = createNamespace("action-bar-icon");
996
996
  const actionBarIconProps = extend({}, routeProps, {
997
997
  dot: Boolean,
998
998
  text: String,
@@ -1003,8 +1003,8 @@ const actionBarIconProps = extend({}, routeProps, {
1003
1003
  badgeProps: Object,
1004
1004
  iconPrefix: String
1005
1005
  });
1006
- var stdin_default$1H = vue.defineComponent({
1007
- name: name$1y,
1006
+ var stdin_default$1I = vue.defineComponent({
1007
+ name: name$1z,
1008
1008
  props: actionBarIconProps,
1009
1009
  setup(props, {
1010
1010
  slots
@@ -1024,7 +1024,7 @@ var stdin_default$1H = vue.defineComponent({
1024
1024
  if (slots.icon) {
1025
1025
  return vue.createVNode(Badge, vue.mergeProps({
1026
1026
  "dot": dot,
1027
- "class": bem$1t("icon"),
1027
+ "class": bem$1u("icon"),
1028
1028
  "content": badge
1029
1029
  }, badgeProps2), {
1030
1030
  default: slots.icon
@@ -1036,20 +1036,20 @@ var stdin_default$1H = vue.defineComponent({
1036
1036
  "name": icon,
1037
1037
  "badge": badge,
1038
1038
  "color": color,
1039
- "class": [bem$1t("icon"), iconClass],
1039
+ "class": [bem$1u("icon"), iconClass],
1040
1040
  "badgeProps": badgeProps2,
1041
1041
  "classPrefix": iconPrefix
1042
1042
  }, null);
1043
1043
  };
1044
1044
  return () => vue.createVNode("div", {
1045
1045
  "role": "button",
1046
- "class": bem$1t(),
1046
+ "class": bem$1u(),
1047
1047
  "tabindex": 0,
1048
1048
  "onClick": route2
1049
1049
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1050
1050
  }
1051
1051
  });
1052
- const ActionBarIcon = withInstall(stdin_default$1H);
1052
+ const ActionBarIcon = withInstall(stdin_default$1I);
1053
1053
  const popupSharedProps = {
1054
1054
  // whether to show popup
1055
1055
  show: Boolean,
@@ -1200,7 +1200,7 @@ function useLazyRender(show) {
1200
1200
  );
1201
1201
  return (render) => () => inited.value ? render() : null;
1202
1202
  }
1203
- const [name$1x, bem$1s] = createNamespace("overlay");
1203
+ const [name$1y, bem$1t] = createNamespace("overlay");
1204
1204
  const overlayProps = {
1205
1205
  show: Boolean,
1206
1206
  zIndex: numericProp,
@@ -1210,8 +1210,8 @@ const overlayProps = {
1210
1210
  lazyRender: truthProp,
1211
1211
  customStyle: Object
1212
1212
  };
1213
- var stdin_default$1G = vue.defineComponent({
1214
- name: name$1x,
1213
+ var stdin_default$1H = vue.defineComponent({
1214
+ name: name$1y,
1215
1215
  props: overlayProps,
1216
1216
  setup(props, {
1217
1217
  slots
@@ -1232,7 +1232,7 @@ var stdin_default$1G = vue.defineComponent({
1232
1232
  return vue.withDirectives(vue.createVNode("div", {
1233
1233
  "ref": root,
1234
1234
  "style": style,
1235
- "class": [bem$1s(), props.className]
1235
+ "class": [bem$1t(), props.className]
1236
1236
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props.show]]);
1237
1237
  });
1238
1238
  use.useEventListener("touchmove", onTouchMove, {
@@ -1246,7 +1246,7 @@ var stdin_default$1G = vue.defineComponent({
1246
1246
  });
1247
1247
  }
1248
1248
  });
1249
- const Overlay = withInstall(stdin_default$1G);
1249
+ const Overlay = withInstall(stdin_default$1H);
1250
1250
  const popupProps$2 = extend({}, popupSharedProps, {
1251
1251
  round: Boolean,
1252
1252
  position: makeStringProp("center"),
@@ -1259,9 +1259,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
1259
1259
  safeAreaInsetTop: Boolean,
1260
1260
  safeAreaInsetBottom: Boolean
1261
1261
  });
1262
- const [name$1w, bem$1r] = createNamespace("popup");
1263
- var stdin_default$1F = vue.defineComponent({
1264
- name: name$1w,
1262
+ const [name$1x, bem$1s] = createNamespace("popup");
1263
+ var stdin_default$1G = vue.defineComponent({
1264
+ name: name$1x,
1265
1265
  inheritAttrs: false,
1266
1266
  props: popupProps$2,
1267
1267
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1335,7 +1335,7 @@ var stdin_default$1F = vue.defineComponent({
1335
1335
  "role": "button",
1336
1336
  "tabindex": 0,
1337
1337
  "name": props.closeIcon,
1338
- "class": [bem$1r("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1338
+ "class": [bem$1s("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1339
1339
  "classPrefix": props.iconPrefix,
1340
1340
  "onClick": onClickCloseIcon
1341
1341
  }, null);
@@ -1364,7 +1364,7 @@ var stdin_default$1F = vue.defineComponent({
1364
1364
  "style": style.value,
1365
1365
  "role": "dialog",
1366
1366
  "tabindex": 0,
1367
- "class": [bem$1r({
1367
+ "class": [bem$1s({
1368
1368
  round,
1369
1369
  [position]: position
1370
1370
  }), {
@@ -1445,8 +1445,8 @@ var stdin_default$1F = vue.defineComponent({
1445
1445
  };
1446
1446
  }
1447
1447
  });
1448
- const Popup = withInstall(stdin_default$1F);
1449
- const [name$1v, bem$1q] = createNamespace("action-sheet");
1448
+ const Popup = withInstall(stdin_default$1G);
1449
+ const [name$1w, bem$1r] = createNamespace("action-sheet");
1450
1450
  const actionSheetProps = extend({}, popupSharedProps, {
1451
1451
  title: String,
1452
1452
  round: truthProp,
@@ -1460,8 +1460,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
1460
1460
  safeAreaInsetBottom: truthProp
1461
1461
  });
1462
1462
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1463
- var stdin_default$1E = vue.defineComponent({
1464
- name: name$1v,
1463
+ var stdin_default$1F = vue.defineComponent({
1464
+ name: name$1w,
1465
1465
  props: actionSheetProps,
1466
1466
  emits: ["select", "cancel", "update:show"],
1467
1467
  setup(props, {
@@ -1476,10 +1476,10 @@ var stdin_default$1E = vue.defineComponent({
1476
1476
  const renderHeader = () => {
1477
1477
  if (props.title) {
1478
1478
  return vue.createVNode("div", {
1479
- "class": bem$1q("header")
1479
+ "class": bem$1r("header")
1480
1480
  }, [props.title, props.closeable && vue.createVNode(Icon, {
1481
1481
  "name": props.closeIcon,
1482
- "class": [bem$1q("close"), HAPTICS_FEEDBACK],
1482
+ "class": [bem$1r("close"), HAPTICS_FEEDBACK],
1483
1483
  "onClick": onCancel
1484
1484
  }, null)]);
1485
1485
  }
@@ -1487,10 +1487,10 @@ var stdin_default$1E = vue.defineComponent({
1487
1487
  const renderCancel = () => {
1488
1488
  if (slots.cancel || props.cancelText) {
1489
1489
  return [vue.createVNode("div", {
1490
- "class": bem$1q("gap")
1490
+ "class": bem$1r("gap")
1491
1491
  }, null), vue.createVNode("button", {
1492
1492
  "type": "button",
1493
- "class": bem$1q("cancel"),
1493
+ "class": bem$1r("cancel"),
1494
1494
  "onClick": onCancel
1495
1495
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1496
1496
  }
@@ -1498,7 +1498,7 @@ var stdin_default$1E = vue.defineComponent({
1498
1498
  const renderActionContent = (action, index) => {
1499
1499
  if (action.loading) {
1500
1500
  return vue.createVNode(Loading, {
1501
- "class": bem$1q("loading-icon")
1501
+ "class": bem$1r("loading-icon")
1502
1502
  }, null);
1503
1503
  }
1504
1504
  if (slots.action) {
@@ -1508,9 +1508,9 @@ var stdin_default$1E = vue.defineComponent({
1508
1508
  });
1509
1509
  }
1510
1510
  return [vue.createVNode("span", {
1511
- "class": bem$1q("name")
1511
+ "class": bem$1r("name")
1512
1512
  }, [action.name]), action.subname && vue.createVNode("div", {
1513
- "class": bem$1q("subname")
1513
+ "class": bem$1r("subname")
1514
1514
  }, [action.subname])];
1515
1515
  };
1516
1516
  const renderAction = (action, index) => {
@@ -1538,7 +1538,7 @@ var stdin_default$1E = vue.defineComponent({
1538
1538
  "style": {
1539
1539
  color
1540
1540
  },
1541
- "class": [bem$1q("item", {
1541
+ "class": [bem$1r("item", {
1542
1542
  loading,
1543
1543
  disabled
1544
1544
  }), className],
@@ -1549,26 +1549,26 @@ var stdin_default$1E = vue.defineComponent({
1549
1549
  if (props.description || slots.description) {
1550
1550
  const content = slots.description ? slots.description() : props.description;
1551
1551
  return vue.createVNode("div", {
1552
- "class": bem$1q("description")
1552
+ "class": bem$1r("description")
1553
1553
  }, [content]);
1554
1554
  }
1555
1555
  };
1556
1556
  return () => vue.createVNode(Popup, vue.mergeProps({
1557
- "class": bem$1q(),
1557
+ "class": bem$1r(),
1558
1558
  "position": "bottom",
1559
1559
  "onUpdate:show": updateShow
1560
1560
  }, pick(props, popupInheritKeys$2)), {
1561
1561
  default: () => {
1562
1562
  var _a;
1563
1563
  return [renderHeader(), renderDescription(), vue.createVNode("div", {
1564
- "class": bem$1q("content")
1564
+ "class": bem$1r("content")
1565
1565
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1566
1566
  }
1567
1567
  });
1568
1568
  }
1569
1569
  });
1570
- const ActionSheet = withInstall(stdin_default$1E);
1571
- const [name$1u, bem$1p, t$k] = createNamespace("picker");
1570
+ const ActionSheet = withInstall(stdin_default$1F);
1571
+ const [name$1v, bem$1q, t$k] = createNamespace("picker");
1572
1572
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1573
1573
  function getColumnsType(columns, fields) {
1574
1574
  const firstColumn = columns[0];
@@ -1637,10 +1637,10 @@ function assignDefaultFields(fields) {
1637
1637
  const DEFAULT_DURATION = 200;
1638
1638
  const MOMENTUM_TIME = 300;
1639
1639
  const MOMENTUM_DISTANCE = 15;
1640
- const [name$1t, bem$1o] = createNamespace("picker-column");
1641
- const PICKER_KEY = Symbol(name$1t);
1642
- var stdin_default$1D = vue.defineComponent({
1643
- name: name$1t,
1640
+ const [name$1u, bem$1p] = createNamespace("picker-column");
1641
+ const PICKER_KEY = Symbol(name$1u);
1642
+ var stdin_default$1E = vue.defineComponent({
1643
+ name: name$1u,
1644
1644
  props: {
1645
1645
  value: numericProp,
1646
1646
  fields: makeRequiredProp(Object),
@@ -1779,7 +1779,7 @@ var stdin_default$1D = vue.defineComponent({
1779
1779
  role: "button",
1780
1780
  style: optionStyle,
1781
1781
  tabindex: disabled ? -1 : 0,
1782
- class: [bem$1o("item", {
1782
+ class: [bem$1p("item", {
1783
1783
  disabled,
1784
1784
  selected: value === props.value
1785
1785
  }), option.className],
@@ -1807,7 +1807,7 @@ var stdin_default$1D = vue.defineComponent({
1807
1807
  });
1808
1808
  return () => vue.createVNode("div", {
1809
1809
  "ref": root,
1810
- "class": bem$1o(),
1810
+ "class": bem$1p(),
1811
1811
  "onTouchstartPassive": onTouchStart,
1812
1812
  "onTouchend": onTouchEnd,
1813
1813
  "onTouchcancel": onTouchEnd
@@ -1818,12 +1818,12 @@ var stdin_default$1D = vue.defineComponent({
1818
1818
  transitionDuration: `${currentDuration.value}ms`,
1819
1819
  transitionProperty: currentDuration.value ? "all" : "none"
1820
1820
  },
1821
- "class": bem$1o("wrapper"),
1821
+ "class": bem$1p("wrapper"),
1822
1822
  "onTransitionend": stopMomentum
1823
1823
  }, [renderOptions()])]);
1824
1824
  }
1825
1825
  });
1826
- const [name$1s] = createNamespace("picker-toolbar");
1826
+ const [name$1t] = createNamespace("picker-toolbar");
1827
1827
  const pickerToolbarProps = {
1828
1828
  title: String,
1829
1829
  cancelButtonText: String,
@@ -1831,8 +1831,8 @@ const pickerToolbarProps = {
1831
1831
  };
1832
1832
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
1833
1833
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
1834
- var stdin_default$1C = vue.defineComponent({
1835
- name: name$1s,
1834
+ var stdin_default$1D = vue.defineComponent({
1835
+ name: name$1t,
1836
1836
  props: pickerToolbarProps,
1837
1837
  emits: ["confirm", "cancel"],
1838
1838
  setup(props, {
@@ -1845,7 +1845,7 @@ var stdin_default$1C = vue.defineComponent({
1845
1845
  }
1846
1846
  if (props.title) {
1847
1847
  return vue.createVNode("div", {
1848
- "class": [bem$1p("title"), "van-ellipsis"]
1848
+ "class": [bem$1q("title"), "van-ellipsis"]
1849
1849
  }, [props.title]);
1850
1850
  }
1851
1851
  };
@@ -1855,7 +1855,7 @@ var stdin_default$1C = vue.defineComponent({
1855
1855
  const text = props.cancelButtonText || t$k("cancel");
1856
1856
  return vue.createVNode("button", {
1857
1857
  "type": "button",
1858
- "class": [bem$1p("cancel"), HAPTICS_FEEDBACK],
1858
+ "class": [bem$1q("cancel"), HAPTICS_FEEDBACK],
1859
1859
  "onClick": onCancel
1860
1860
  }, [slots.cancel ? slots.cancel() : text]);
1861
1861
  };
@@ -1863,12 +1863,12 @@ var stdin_default$1C = vue.defineComponent({
1863
1863
  const text = props.confirmButtonText || t$k("confirm");
1864
1864
  return vue.createVNode("button", {
1865
1865
  "type": "button",
1866
- "class": [bem$1p("confirm"), HAPTICS_FEEDBACK],
1866
+ "class": [bem$1q("confirm"), HAPTICS_FEEDBACK],
1867
1867
  "onClick": onConfirm
1868
1868
  }, [slots.confirm ? slots.confirm() : text]);
1869
1869
  };
1870
1870
  return () => vue.createVNode("div", {
1871
- "class": bem$1p("toolbar")
1871
+ "class": bem$1q("toolbar")
1872
1872
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
1873
1873
  }
1874
1874
  });
@@ -1976,7 +1976,7 @@ function useVisibilityChange(target, onChange) {
1976
1976
  vue.onBeforeUnmount(unobserve);
1977
1977
  use.onMountedOrActivated(observe);
1978
1978
  }
1979
- const [name$1r, bem$1n] = createNamespace("sticky");
1979
+ const [name$1s, bem$1o] = createNamespace("sticky");
1980
1980
  const stickyProps = {
1981
1981
  zIndex: numericProp,
1982
1982
  position: makeStringProp("top"),
@@ -1984,8 +1984,8 @@ const stickyProps = {
1984
1984
  offsetTop: makeNumericProp(0),
1985
1985
  offsetBottom: makeNumericProp(0)
1986
1986
  };
1987
- var stdin_default$1B = vue.defineComponent({
1988
- name: name$1r,
1987
+ var stdin_default$1C = vue.defineComponent({
1988
+ name: name$1s,
1989
1989
  props: stickyProps,
1990
1990
  emits: ["scroll", "change"],
1991
1991
  setup(props, {
@@ -2080,7 +2080,7 @@ var stdin_default$1B = vue.defineComponent({
2080
2080
  passive: true
2081
2081
  });
2082
2082
  useVisibilityChange(root, onScroll);
2083
- vue.watch([windowWidth, windowHeight], () => {
2083
+ vue.watch([windowWidth, windowHeight$1], () => {
2084
2084
  if (!root.value || isHidden(root) || !state.fixed) {
2085
2085
  return;
2086
2086
  }
@@ -2098,7 +2098,7 @@ var stdin_default$1B = vue.defineComponent({
2098
2098
  "ref": root,
2099
2099
  "style": rootStyle.value
2100
2100
  }, [vue.createVNode("div", {
2101
- "class": bem$1n({
2101
+ "class": bem$1o({
2102
2102
  fixed: state.fixed && !isReset.value
2103
2103
  }),
2104
2104
  "style": stickyStyle.value
@@ -2106,8 +2106,8 @@ var stdin_default$1B = vue.defineComponent({
2106
2106
  };
2107
2107
  }
2108
2108
  });
2109
- const Sticky = withInstall(stdin_default$1B);
2110
- const [name$1q, bem$1m] = createNamespace("swipe");
2109
+ const Sticky = withInstall(stdin_default$1C);
2110
+ const [name$1r, bem$1n] = createNamespace("swipe");
2111
2111
  const swipeProps = {
2112
2112
  loop: truthProp,
2113
2113
  width: numericProp,
@@ -2122,9 +2122,9 @@ const swipeProps = {
2122
2122
  showIndicators: truthProp,
2123
2123
  stopPropagation: truthProp
2124
2124
  };
2125
- const SWIPE_KEY = Symbol(name$1q);
2126
- var stdin_default$1A = vue.defineComponent({
2127
- name: name$1q,
2125
+ const SWIPE_KEY = Symbol(name$1r);
2126
+ var stdin_default$1B = vue.defineComponent({
2127
+ name: name$1r,
2128
2128
  props: swipeProps,
2129
2129
  emits: ["change", "dragStart", "dragEnd"],
2130
2130
  setup(props, {
@@ -2402,7 +2402,7 @@ var stdin_default$1A = vue.defineComponent({
2402
2402
  } : void 0;
2403
2403
  return vue.createVNode("i", {
2404
2404
  "style": style,
2405
- "class": bem$1m("indicator", {
2405
+ "class": bem$1n("indicator", {
2406
2406
  active
2407
2407
  })
2408
2408
  }, null);
@@ -2416,7 +2416,7 @@ var stdin_default$1A = vue.defineComponent({
2416
2416
  }
2417
2417
  if (props.showIndicators && count.value > 1) {
2418
2418
  return vue.createVNode("div", {
2419
- "class": bem$1m("indicators", {
2419
+ "class": bem$1n("indicators", {
2420
2420
  vertical: props.vertical
2421
2421
  })
2422
2422
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2438,7 +2438,7 @@ var stdin_default$1A = vue.defineComponent({
2438
2438
  vue.watch(() => props.initialSwipe, (value) => initialize(+value));
2439
2439
  vue.watch(count, () => initialize(state.active));
2440
2440
  vue.watch(() => props.autoplay, autoplay);
2441
- vue.watch([windowWidth, windowHeight, () => props.width, () => props.height], resize);
2441
+ vue.watch([windowWidth, windowHeight$1, () => props.width, () => props.height], resize);
2442
2442
  vue.watch(use.usePageVisibility(), (visible) => {
2443
2443
  if (visible === "visible") {
2444
2444
  autoplay();
@@ -2458,11 +2458,11 @@ var stdin_default$1A = vue.defineComponent({
2458
2458
  var _a;
2459
2459
  return vue.createVNode("div", {
2460
2460
  "ref": root,
2461
- "class": bem$1m()
2461
+ "class": bem$1n()
2462
2462
  }, [vue.createVNode("div", {
2463
2463
  "ref": track,
2464
2464
  "style": trackStyle.value,
2465
- "class": bem$1m("track", {
2465
+ "class": bem$1n("track", {
2466
2466
  vertical: props.vertical
2467
2467
  }),
2468
2468
  "onTouchstartPassive": onTouchStart,
@@ -2472,10 +2472,10 @@ var stdin_default$1A = vue.defineComponent({
2472
2472
  };
2473
2473
  }
2474
2474
  });
2475
- const Swipe = withInstall(stdin_default$1A);
2476
- const [name$1p, bem$1l] = createNamespace("tabs");
2477
- var stdin_default$1z = vue.defineComponent({
2478
- name: name$1p,
2475
+ const Swipe = withInstall(stdin_default$1B);
2476
+ const [name$1q, bem$1m] = createNamespace("tabs");
2477
+ var stdin_default$1A = vue.defineComponent({
2478
+ name: name$1q,
2479
2479
  props: {
2480
2480
  count: makeRequiredProp(Number),
2481
2481
  inited: Boolean,
@@ -2499,7 +2499,7 @@ var stdin_default$1z = vue.defineComponent({
2499
2499
  return vue.createVNode(Swipe, {
2500
2500
  "ref": swipeRef,
2501
2501
  "loop": false,
2502
- "class": bem$1l("track"),
2502
+ "class": bem$1m("track"),
2503
2503
  "duration": +props.duration * 1e3,
2504
2504
  "touchable": props.swipeable,
2505
2505
  "lazyRender": props.lazyRender,
@@ -2527,13 +2527,13 @@ var stdin_default$1z = vue.defineComponent({
2527
2527
  swipeRef
2528
2528
  });
2529
2529
  return () => vue.createVNode("div", {
2530
- "class": bem$1l("content", {
2530
+ "class": bem$1m("content", {
2531
2531
  animated: props.animated || props.swipeable
2532
2532
  })
2533
2533
  }, [renderChildren()]);
2534
2534
  }
2535
2535
  });
2536
- const [name$1o, bem$1k] = createNamespace("tabs");
2536
+ const [name$1p, bem$1l] = createNamespace("tabs");
2537
2537
  const tabsProps = {
2538
2538
  type: makeStringProp("line"),
2539
2539
  color: String,
@@ -2556,9 +2556,9 @@ const tabsProps = {
2556
2556
  titleActiveColor: String,
2557
2557
  titleInactiveColor: String
2558
2558
  };
2559
- const TABS_KEY = Symbol(name$1o);
2560
- var stdin_default$1y = vue.defineComponent({
2561
- name: name$1o,
2559
+ const TABS_KEY = Symbol(name$1p);
2560
+ var stdin_default$1z = vue.defineComponent({
2561
+ name: name$1p,
2562
2562
  props: tabsProps,
2563
2563
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2564
2564
  setup(props, {
@@ -2756,7 +2756,7 @@ var stdin_default$1y = vue.defineComponent({
2756
2756
  const renderLine = () => {
2757
2757
  if (props.type === "line" && children.length) {
2758
2758
  return vue.createVNode("div", {
2759
- "class": bem$1k("line"),
2759
+ "class": bem$1l("line"),
2760
2760
  "style": state.lineStyle
2761
2761
  }, null);
2762
2762
  }
@@ -2770,13 +2770,13 @@ var stdin_default$1y = vue.defineComponent({
2770
2770
  } = props;
2771
2771
  const Header = [vue.createVNode("div", {
2772
2772
  "ref": sticky ? void 0 : wrapRef,
2773
- "class": [bem$1k("wrap"), {
2773
+ "class": [bem$1l("wrap"), {
2774
2774
  [BORDER_TOP_BOTTOM]: type === "line" && border
2775
2775
  }]
2776
2776
  }, [vue.createVNode("div", {
2777
2777
  "ref": navRef,
2778
2778
  "role": "tablist",
2779
- "class": bem$1k("nav", [type, {
2779
+ "class": bem$1l("nav", [type, {
2780
2780
  shrink: props.shrink,
2781
2781
  complete: scrollable.value
2782
2782
  }]),
@@ -2849,14 +2849,14 @@ var stdin_default$1y = vue.defineComponent({
2849
2849
  });
2850
2850
  return () => vue.createVNode("div", {
2851
2851
  "ref": root,
2852
- "class": bem$1k([props.type])
2852
+ "class": bem$1l([props.type])
2853
2853
  }, [props.sticky ? vue.createVNode(Sticky, {
2854
2854
  "container": root.value,
2855
2855
  "offsetTop": offsetTopPx.value,
2856
2856
  "onScroll": onStickyScroll
2857
2857
  }, {
2858
2858
  default: () => [renderHeader()]
2859
- }) : renderHeader(), vue.createVNode(stdin_default$1z, {
2859
+ }) : renderHeader(), vue.createVNode(stdin_default$1A, {
2860
2860
  "ref": contentRef,
2861
2861
  "count": children.length,
2862
2862
  "inited": state.inited,
@@ -2876,9 +2876,9 @@ var stdin_default$1y = vue.defineComponent({
2876
2876
  });
2877
2877
  const TAB_STATUS_KEY = Symbol();
2878
2878
  const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
2879
- const [name$1n, bem$1j] = createNamespace("tab");
2879
+ const [name$1o, bem$1k] = createNamespace("tab");
2880
2880
  const TabTitle = vue.defineComponent({
2881
- name: name$1n,
2881
+ name: name$1o,
2882
2882
  props: {
2883
2883
  id: String,
2884
2884
  dot: Boolean,
@@ -2927,7 +2927,7 @@ const TabTitle = vue.defineComponent({
2927
2927
  });
2928
2928
  const renderText = () => {
2929
2929
  const Text = vue.createVNode("span", {
2930
- "class": bem$1j("text", {
2930
+ "class": bem$1k("text", {
2931
2931
  ellipsis: !props.scrollable
2932
2932
  })
2933
2933
  }, [slots.title ? slots.title() : props.title]);
@@ -2945,7 +2945,7 @@ const TabTitle = vue.defineComponent({
2945
2945
  return () => vue.createVNode("div", {
2946
2946
  "id": props.id,
2947
2947
  "role": "tab",
2948
- "class": [bem$1j([props.type, {
2948
+ "class": [bem$1k([props.type, {
2949
2949
  grow: props.scrollable && !props.shrink,
2950
2950
  shrink: props.shrink,
2951
2951
  active: props.isActive,
@@ -2959,9 +2959,9 @@ const TabTitle = vue.defineComponent({
2959
2959
  }, [renderText()]);
2960
2960
  }
2961
2961
  });
2962
- const [name$1m, bem$1i] = createNamespace("swipe-item");
2963
- var stdin_default$1x = vue.defineComponent({
2964
- name: name$1m,
2962
+ const [name$1n, bem$1j] = createNamespace("swipe-item");
2963
+ var stdin_default$1y = vue.defineComponent({
2964
+ name: name$1n,
2965
2965
  setup(props, {
2966
2966
  slots
2967
2967
  }) {
@@ -3026,14 +3026,14 @@ var stdin_default$1x = vue.defineComponent({
3026
3026
  return () => {
3027
3027
  var _a;
3028
3028
  return vue.createVNode("div", {
3029
- "class": bem$1i(),
3029
+ "class": bem$1j(),
3030
3030
  "style": style.value
3031
3031
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
3032
3032
  };
3033
3033
  }
3034
3034
  });
3035
- const SwipeItem = withInstall(stdin_default$1x);
3036
- const [name$1l, bem$1h] = createNamespace("tab");
3035
+ const SwipeItem = withInstall(stdin_default$1y);
3036
+ const [name$1m, bem$1i] = createNamespace("tab");
3037
3037
  const tabProps = extend({}, routeProps, {
3038
3038
  dot: Boolean,
3039
3039
  name: numericProp,
@@ -3044,8 +3044,8 @@ const tabProps = extend({}, routeProps, {
3044
3044
  titleStyle: [String, Object],
3045
3045
  showZeroBadge: truthProp
3046
3046
  });
3047
- var stdin_default$1w = vue.defineComponent({
3048
- name: name$1l,
3047
+ var stdin_default$1x = vue.defineComponent({
3048
+ name: name$1m,
3049
3049
  props: tabProps,
3050
3050
  setup(props, {
3051
3051
  slots
@@ -3143,7 +3143,7 @@ var stdin_default$1w = vue.defineComponent({
3143
3143
  return vue.createVNode(SwipeItem, {
3144
3144
  "id": id,
3145
3145
  "role": "tabpanel",
3146
- "class": bem$1h("panel-wrapper", {
3146
+ "class": bem$1i("panel-wrapper", {
3147
3147
  inactive: hasInactiveClass.value
3148
3148
  }),
3149
3149
  "tabindex": active.value ? 0 : -1,
@@ -3153,7 +3153,7 @@ var stdin_default$1w = vue.defineComponent({
3153
3153
  default: () => {
3154
3154
  var _a2;
3155
3155
  return [vue.createVNode("div", {
3156
- "class": bem$1h("panel")
3156
+ "class": bem$1i("panel")
3157
3157
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3158
3158
  }
3159
3159
  });
@@ -3163,24 +3163,24 @@ var stdin_default$1w = vue.defineComponent({
3163
3163
  return vue.withDirectives(vue.createVNode("div", {
3164
3164
  "id": id,
3165
3165
  "role": "tabpanel",
3166
- "class": bem$1h("panel"),
3166
+ "class": bem$1i("panel"),
3167
3167
  "tabindex": show ? 0 : -1,
3168
3168
  "aria-labelledby": label
3169
3169
  }, [Content]), [[vue.vShow, show]]);
3170
3170
  };
3171
3171
  }
3172
3172
  });
3173
- const Tab = withInstall(stdin_default$1w);
3174
- const Tabs = withInstall(stdin_default$1y);
3175
- const [name$1k, bem$1g] = createNamespace("picker-group");
3176
- const PICKER_GROUP_KEY = Symbol(name$1k);
3173
+ const Tab = withInstall(stdin_default$1x);
3174
+ const Tabs = withInstall(stdin_default$1z);
3175
+ const [name$1l, bem$1h] = createNamespace("picker-group");
3176
+ const PICKER_GROUP_KEY = Symbol(name$1l);
3177
3177
  const pickerGroupProps = extend({
3178
3178
  tabs: makeArrayProp(),
3179
3179
  activeTab: makeNumericProp(0),
3180
3180
  nextStepText: String
3181
3181
  }, pickerToolbarProps);
3182
- var stdin_default$1v = vue.defineComponent({
3183
- name: name$1k,
3182
+ var stdin_default$1w = vue.defineComponent({
3183
+ name: name$1l,
3184
3184
  props: pickerGroupProps,
3185
3185
  emits: ["confirm", "cancel", "update:activeTab"],
3186
3186
  setup(props, {
@@ -3207,8 +3207,8 @@ var stdin_default$1v = vue.defineComponent({
3207
3207
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3208
3208
  const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
3209
3209
  return vue.createVNode("div", {
3210
- "class": bem$1g()
3211
- }, [vue.createVNode(stdin_default$1C, {
3210
+ "class": bem$1h()
3211
+ }, [vue.createVNode(stdin_default$1D, {
3212
3212
  "title": props.title,
3213
3213
  "cancelButtonText": props.cancelButtonText,
3214
3214
  "confirmButtonText": confirmButtonText,
@@ -3217,14 +3217,14 @@ var stdin_default$1v = vue.defineComponent({
3217
3217
  }, pick(slots, pickerToolbarSlots)), vue.createVNode(Tabs, {
3218
3218
  "active": activeTab.value,
3219
3219
  "onUpdate:active": ($event) => activeTab.value = $event,
3220
- "class": bem$1g("tabs"),
3220
+ "class": bem$1h("tabs"),
3221
3221
  "shrink": true,
3222
3222
  "animated": true,
3223
3223
  "lazyRender": false
3224
3224
  }, {
3225
3225
  default: () => [props.tabs.map((title, index) => vue.createVNode(Tab, {
3226
3226
  "title": title,
3227
- "titleClass": bem$1g("tab-title")
3227
+ "titleClass": bem$1h("tab-title")
3228
3228
  }, {
3229
3229
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3230
3230
  }))]
@@ -3247,8 +3247,8 @@ const pickerProps = extend({}, pickerSharedProps, {
3247
3247
  toolbarPosition: makeStringProp("top"),
3248
3248
  columnsFieldNames: Object
3249
3249
  });
3250
- var stdin_default$1u = vue.defineComponent({
3251
- name: name$1u,
3250
+ var stdin_default$1v = vue.defineComponent({
3251
+ name: name$1v,
3252
3252
  props: pickerProps,
3253
3253
  emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
3254
3254
  setup(props, {
@@ -3329,7 +3329,7 @@ var stdin_default$1u = vue.defineComponent({
3329
3329
  return params;
3330
3330
  };
3331
3331
  const cancel = () => emit("cancel", getEventParams());
3332
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1D, {
3332
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1E, {
3333
3333
  "value": selectedValues.value[columnIndex],
3334
3334
  "fields": fields.value,
3335
3335
  "options": options,
@@ -3358,10 +3358,10 @@ var stdin_default$1u = vue.defineComponent({
3358
3358
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3359
3359
  };
3360
3360
  return [vue.createVNode("div", {
3361
- "class": bem$1p("mask"),
3361
+ "class": bem$1q("mask"),
3362
3362
  "style": maskStyle
3363
3363
  }, null), vue.createVNode("div", {
3364
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1p("frame")],
3364
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1q("frame")],
3365
3365
  "style": frameStyle
3366
3366
  }, null)];
3367
3367
  }
@@ -3373,13 +3373,13 @@ var stdin_default$1u = vue.defineComponent({
3373
3373
  };
3374
3374
  return vue.createVNode("div", {
3375
3375
  "ref": columnsRef,
3376
- "class": bem$1p("columns"),
3376
+ "class": bem$1q("columns"),
3377
3377
  "style": columnsStyle
3378
3378
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3379
3379
  };
3380
3380
  const renderToolbar = () => {
3381
3381
  if (props.showToolbar && !parent) {
3382
- return vue.createVNode(stdin_default$1C, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3382
+ return vue.createVNode(stdin_default$1D, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3383
3383
  "onConfirm": confirm,
3384
3384
  "onCancel": cancel
3385
3385
  }), pick(slots, pickerToolbarSlots));
@@ -3422,9 +3422,9 @@ var stdin_default$1u = vue.defineComponent({
3422
3422
  return () => {
3423
3423
  var _a, _b;
3424
3424
  return vue.createVNode("div", {
3425
- "class": bem$1p()
3425
+ "class": bem$1q()
3426
3426
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? vue.createVNode(Loading, {
3427
- "class": bem$1p("loading")
3427
+ "class": bem$1q("loading")
3428
3428
  }, 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]);
3429
3429
  };
3430
3430
  }
@@ -3515,8 +3515,8 @@ function formatDataForCascade({
3515
3515
  }
3516
3516
  return options;
3517
3517
  }
3518
- const Picker = withInstall(stdin_default$1u);
3519
- const [name$1j, bem$1f] = createNamespace("area");
3518
+ const Picker = withInstall(stdin_default$1v);
3519
+ const [name$1k, bem$1g] = createNamespace("area");
3520
3520
  const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3521
3521
  modelValue: String,
3522
3522
  columnsNum: makeNumericProp(3),
@@ -3526,8 +3526,8 @@ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3526
3526
  default: () => ({})
3527
3527
  }
3528
3528
  });
3529
- var stdin_default$1t = vue.defineComponent({
3530
- name: name$1j,
3529
+ var stdin_default$1u = vue.defineComponent({
3530
+ name: name$1k,
3531
3531
  props: areaProps,
3532
3532
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3533
3533
  setup(props, {
@@ -3574,7 +3574,7 @@ var stdin_default$1t = vue.defineComponent({
3574
3574
  "ref": picker,
3575
3575
  "modelValue": codes.value,
3576
3576
  "onUpdate:modelValue": ($event) => codes.value = $event,
3577
- "class": bem$1f(),
3577
+ "class": bem$1g(),
3578
3578
  "columns": columns.value,
3579
3579
  "onChange": onChange,
3580
3580
  "onCancel": onCancel,
@@ -3582,8 +3582,8 @@ var stdin_default$1t = vue.defineComponent({
3582
3582
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3583
3583
  }
3584
3584
  });
3585
- const Area = withInstall(stdin_default$1t);
3586
- const [name$1i, bem$1e] = createNamespace("cell");
3585
+ const Area = withInstall(stdin_default$1u);
3586
+ const [name$1j, bem$1f] = createNamespace("cell");
3587
3587
  const cellSharedProps = {
3588
3588
  tag: makeStringProp("div"),
3589
3589
  icon: String,
@@ -3607,8 +3607,8 @@ const cellSharedProps = {
3607
3607
  }
3608
3608
  };
3609
3609
  const cellProps = extend({}, cellSharedProps, routeProps);
3610
- var stdin_default$1s = vue.defineComponent({
3611
- name: name$1i,
3610
+ var stdin_default$1t = vue.defineComponent({
3611
+ name: name$1j,
3612
3612
  props: cellProps,
3613
3613
  setup(props, {
3614
3614
  slots
@@ -3618,7 +3618,7 @@ var stdin_default$1s = vue.defineComponent({
3618
3618
  const showLabel = slots.label || isDef(props.label);
3619
3619
  if (showLabel) {
3620
3620
  return vue.createVNode("div", {
3621
- "class": [bem$1e("label"), props.labelClass]
3621
+ "class": [bem$1f("label"), props.labelClass]
3622
3622
  }, [slots.label ? slots.label() : props.label]);
3623
3623
  }
3624
3624
  };
@@ -3630,7 +3630,7 @@ var stdin_default$1s = vue.defineComponent({
3630
3630
  return;
3631
3631
  }
3632
3632
  return vue.createVNode("div", {
3633
- "class": [bem$1e("title"), props.titleClass],
3633
+ "class": [bem$1f("title"), props.titleClass],
3634
3634
  "style": props.titleStyle
3635
3635
  }, [titleSlot || vue.createVNode("span", null, [props.title]), renderLabel()]);
3636
3636
  }
@@ -3640,7 +3640,7 @@ var stdin_default$1s = vue.defineComponent({
3640
3640
  const hasValue = slot || isDef(props.value);
3641
3641
  if (hasValue) {
3642
3642
  return vue.createVNode("div", {
3643
- "class": [bem$1e("value"), props.valueClass]
3643
+ "class": [bem$1f("value"), props.valueClass]
3644
3644
  }, [slot ? slot() : vue.createVNode("span", null, [props.value])]);
3645
3645
  }
3646
3646
  };
@@ -3651,7 +3651,7 @@ var stdin_default$1s = vue.defineComponent({
3651
3651
  if (props.icon) {
3652
3652
  return vue.createVNode(Icon, {
3653
3653
  "name": props.icon,
3654
- "class": bem$1e("left-icon"),
3654
+ "class": bem$1f("left-icon"),
3655
3655
  "classPrefix": props.iconPrefix
3656
3656
  }, null);
3657
3657
  }
@@ -3664,7 +3664,7 @@ var stdin_default$1s = vue.defineComponent({
3664
3664
  const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
3665
3665
  return vue.createVNode(Icon, {
3666
3666
  "name": name2,
3667
- "class": bem$1e("right-icon")
3667
+ "class": bem$1f("right-icon")
3668
3668
  }, null);
3669
3669
  }
3670
3670
  };
@@ -3689,7 +3689,7 @@ var stdin_default$1s = vue.defineComponent({
3689
3689
  classes[size] = !!size;
3690
3690
  }
3691
3691
  return vue.createVNode(tag, {
3692
- "class": bem$1e(classes),
3692
+ "class": bem$1f(classes),
3693
3693
  "role": clickable ? "button" : void 0,
3694
3694
  "tabindex": clickable ? 0 : void 0,
3695
3695
  "onClick": route2
@@ -3702,8 +3702,8 @@ var stdin_default$1s = vue.defineComponent({
3702
3702
  };
3703
3703
  }
3704
3704
  });
3705
- const Cell = withInstall(stdin_default$1s);
3706
- const [name$1h, bem$1d] = createNamespace("form");
3705
+ const Cell = withInstall(stdin_default$1t);
3706
+ const [name$1i, bem$1e] = createNamespace("form");
3707
3707
  const formProps = {
3708
3708
  colon: Boolean,
3709
3709
  disabled: Boolean,
@@ -3722,8 +3722,8 @@ const formProps = {
3722
3722
  default: "onBlur"
3723
3723
  }
3724
3724
  };
3725
- var stdin_default$1r = vue.defineComponent({
3726
- name: name$1h,
3725
+ var stdin_default$1s = vue.defineComponent({
3726
+ name: name$1i,
3727
3727
  props: formProps,
3728
3728
  emits: ["submit", "failed"],
3729
3729
  setup(props, {
@@ -3849,13 +3849,13 @@ var stdin_default$1r = vue.defineComponent({
3849
3849
  return () => {
3850
3850
  var _a;
3851
3851
  return vue.createVNode("form", {
3852
- "class": bem$1d(),
3852
+ "class": bem$1e(),
3853
3853
  "onSubmit": onSubmit
3854
3854
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3855
3855
  };
3856
3856
  }
3857
3857
  });
3858
- const Form = withInstall(stdin_default$1r);
3858
+ const Form = withInstall(stdin_default$1s);
3859
3859
  function isEmptyValue(value) {
3860
3860
  if (Array.isArray(value)) {
3861
3861
  return !value.length;
@@ -3944,7 +3944,7 @@ function getStringLength(str) {
3944
3944
  function cutString(str, maxlength) {
3945
3945
  return [...str].slice(0, maxlength).join("");
3946
3946
  }
3947
- const [name$1g, bem$1c] = createNamespace("field");
3947
+ const [name$1h, bem$1d] = createNamespace("field");
3948
3948
  const fieldSharedProps = {
3949
3949
  id: String,
3950
3950
  name: String,
@@ -3991,8 +3991,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3991
3991
  default: null
3992
3992
  }
3993
3993
  });
3994
- var stdin_default$1q = vue.defineComponent({
3995
- name: name$1g,
3994
+ var stdin_default$1r = vue.defineComponent({
3995
+ name: name$1h,
3996
3996
  props: fieldProps,
3997
3997
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
3998
3998
  setup(props, {
@@ -4266,7 +4266,7 @@ var stdin_default$1q = vue.defineComponent({
4266
4266
  const getInputId = () => props.id || `${id}-input`;
4267
4267
  const getValidationStatus = () => state.status;
4268
4268
  const renderInput = () => {
4269
- const controlClass = bem$1c("control", [getProp("inputAlign"), {
4269
+ const controlClass = bem$1d("control", [getProp("inputAlign"), {
4270
4270
  error: showError.value,
4271
4271
  custom: !!slots.input,
4272
4272
  "min-height": props.type === "textarea" && !props.autosize
@@ -4308,7 +4308,7 @@ var stdin_default$1q = vue.defineComponent({
4308
4308
  const leftIconSlot = slots["left-icon"];
4309
4309
  if (props.leftIcon || leftIconSlot) {
4310
4310
  return vue.createVNode("div", {
4311
- "class": bem$1c("left-icon"),
4311
+ "class": bem$1d("left-icon"),
4312
4312
  "onClick": onClickLeftIcon
4313
4313
  }, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
4314
4314
  "name": props.leftIcon,
@@ -4320,7 +4320,7 @@ var stdin_default$1q = vue.defineComponent({
4320
4320
  const rightIconSlot = slots["right-icon"];
4321
4321
  if (props.rightIcon || rightIconSlot) {
4322
4322
  return vue.createVNode("div", {
4323
- "class": bem$1c("right-icon"),
4323
+ "class": bem$1d("right-icon"),
4324
4324
  "onClick": onClickRightIcon
4325
4325
  }, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
4326
4326
  "name": props.rightIcon,
@@ -4332,9 +4332,9 @@ var stdin_default$1q = vue.defineComponent({
4332
4332
  if (props.showWordLimit && props.maxlength) {
4333
4333
  const count = getStringLength(getModelValue());
4334
4334
  return vue.createVNode("div", {
4335
- "class": bem$1c("word-limit")
4335
+ "class": bem$1d("word-limit")
4336
4336
  }, [vue.createVNode("span", {
4337
- "class": bem$1c("word-num")
4337
+ "class": bem$1d("word-num")
4338
4338
  }, [count]), vue.createTextVNode("/"), props.maxlength]);
4339
4339
  }
4340
4340
  };
@@ -4347,7 +4347,7 @@ var stdin_default$1q = vue.defineComponent({
4347
4347
  const slot = slots["error-message"];
4348
4348
  const errorMessageAlign = getProp("errorMessageAlign");
4349
4349
  return vue.createVNode("div", {
4350
- "class": bem$1c("error-message", errorMessageAlign)
4350
+ "class": bem$1d("error-message", errorMessageAlign)
4351
4351
  }, [slot ? slot({
4352
4352
  message
4353
4353
  }) : message]);
@@ -4375,13 +4375,13 @@ var stdin_default$1q = vue.defineComponent({
4375
4375
  }
4376
4376
  };
4377
4377
  const renderFieldBody = () => [vue.createVNode("div", {
4378
- "class": bem$1c("body")
4378
+ "class": bem$1d("body")
4379
4379
  }, [renderInput(), showClear.value && vue.createVNode(Icon, {
4380
4380
  "ref": clearIconRef,
4381
4381
  "name": props.clearIcon,
4382
- "class": bem$1c("clear")
4382
+ "class": bem$1d("clear")
4383
4383
  }, null), renderRightIcon(), slots.button && vue.createVNode("div", {
4384
- "class": bem$1c("button")
4384
+ "class": bem$1d("button")
4385
4385
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4386
4386
  useExpose({
4387
4387
  blur,
@@ -4425,7 +4425,7 @@ var stdin_default$1q = vue.defineComponent({
4425
4425
  };
4426
4426
  return vue.createVNode(Cell, {
4427
4427
  "size": props.size,
4428
- "class": bem$1c({
4428
+ "class": bem$1d({
4429
4429
  error: showError.value,
4430
4430
  disabled,
4431
4431
  [`label-${labelAlign}`]: labelAlign
@@ -4435,8 +4435,8 @@ var stdin_default$1q = vue.defineComponent({
4435
4435
  "isLink": props.isLink,
4436
4436
  "clickable": props.clickable,
4437
4437
  "titleStyle": labelStyle.value,
4438
- "valueClass": bem$1c("value"),
4439
- "titleClass": [bem$1c("label", [labelAlign, {
4438
+ "valueClass": bem$1d("value"),
4439
+ "titleClass": [bem$1d("label", [labelAlign, {
4440
4440
  required: props.required
4441
4441
  }]), props.labelClass],
4442
4442
  "arrowDirection": props.arrowDirection
@@ -4449,7 +4449,7 @@ var stdin_default$1q = vue.defineComponent({
4449
4449
  };
4450
4450
  }
4451
4451
  });
4452
- const Field = withInstall(stdin_default$1q);
4452
+ const Field = withInstall(stdin_default$1r);
4453
4453
  let lockCount = 0;
4454
4454
  function lockClick(lock) {
4455
4455
  if (lock) {
@@ -4464,7 +4464,7 @@ function lockClick(lock) {
4464
4464
  }
4465
4465
  }
4466
4466
  }
4467
- const [name$1f, bem$1b] = createNamespace("toast");
4467
+ const [name$1g, bem$1c] = createNamespace("toast");
4468
4468
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4469
4469
  const toastProps = {
4470
4470
  icon: String,
@@ -4487,8 +4487,8 @@ const toastProps = {
4487
4487
  closeOnClick: Boolean,
4488
4488
  closeOnClickOverlay: Boolean
4489
4489
  };
4490
- var stdin_default$1p = vue.defineComponent({
4491
- name: name$1f,
4490
+ var stdin_default$1q = vue.defineComponent({
4491
+ name: name$1g,
4492
4492
  props: toastProps,
4493
4493
  emits: ["update:show"],
4494
4494
  setup(props, {
@@ -4524,13 +4524,13 @@ var stdin_default$1p = vue.defineComponent({
4524
4524
  return vue.createVNode(Icon, {
4525
4525
  "name": icon || type,
4526
4526
  "size": iconSize,
4527
- "class": bem$1b("icon"),
4527
+ "class": bem$1c("icon"),
4528
4528
  "classPrefix": iconPrefix
4529
4529
  }, null);
4530
4530
  }
4531
4531
  if (type === "loading") {
4532
4532
  return vue.createVNode(Loading, {
4533
- "class": bem$1b("loading"),
4533
+ "class": bem$1c("loading"),
4534
4534
  "size": iconSize,
4535
4535
  "type": loadingType
4536
4536
  }, null);
@@ -4543,16 +4543,16 @@ var stdin_default$1p = vue.defineComponent({
4543
4543
  } = props;
4544
4544
  if (slots.message) {
4545
4545
  return vue.createVNode("div", {
4546
- "class": bem$1b("text")
4546
+ "class": bem$1c("text")
4547
4547
  }, [slots.message()]);
4548
4548
  }
4549
4549
  if (isDef(message) && message !== "") {
4550
4550
  return type === "html" ? vue.createVNode("div", {
4551
4551
  "key": 0,
4552
- "class": bem$1b("text"),
4552
+ "class": bem$1c("text"),
4553
4553
  "innerHTML": String(message)
4554
4554
  }, null) : vue.createVNode("div", {
4555
- "class": bem$1b("text")
4555
+ "class": bem$1c("text")
4556
4556
  }, [message]);
4557
4557
  }
4558
4558
  };
@@ -4568,7 +4568,7 @@ var stdin_default$1p = vue.defineComponent({
4568
4568
  vue.onMounted(toggleClickable);
4569
4569
  vue.onUnmounted(toggleClickable);
4570
4570
  return () => vue.createVNode(Popup, vue.mergeProps({
4571
- "class": [bem$1b([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4571
+ "class": [bem$1c([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4572
4572
  [props.type]: !props.icon
4573
4573
  }]), props.className],
4574
4574
  "lockScroll": false,
@@ -4669,7 +4669,7 @@ function createInstance() {
4669
4669
  onClosed,
4670
4670
  "onUpdate:show": toggle
4671
4671
  };
4672
- return vue.createVNode(stdin_default$1p, vue.mergeProps(state, attrs), null);
4672
+ return vue.createVNode(stdin_default$1q, vue.mergeProps(state, attrs), null);
4673
4673
  };
4674
4674
  vue.watch(message, (val) => {
4675
4675
  state.message = val;
@@ -4739,8 +4739,8 @@ const resetToastDefaultOptions = (type) => {
4739
4739
  const allowMultipleToast = (value = true) => {
4740
4740
  allowMultiple = value;
4741
4741
  };
4742
- const Toast = withInstall(stdin_default$1p);
4743
- const [name$1e, bem$1a] = createNamespace("switch");
4742
+ const Toast = withInstall(stdin_default$1q);
4743
+ const [name$1f, bem$1b] = createNamespace("switch");
4744
4744
  const switchProps = {
4745
4745
  size: numericProp,
4746
4746
  loading: Boolean,
@@ -4757,8 +4757,8 @@ const switchProps = {
4757
4757
  default: false
4758
4758
  }
4759
4759
  };
4760
- var stdin_default$1o = vue.defineComponent({
4761
- name: name$1e,
4760
+ var stdin_default$1p = vue.defineComponent({
4761
+ name: name$1f,
4762
4762
  props: switchProps,
4763
4763
  emits: ["change", "update:modelValue"],
4764
4764
  setup(props, {
@@ -4777,7 +4777,7 @@ var stdin_default$1o = vue.defineComponent({
4777
4777
  if (props.loading) {
4778
4778
  const color = isChecked() ? props.activeColor : props.inactiveColor;
4779
4779
  return vue.createVNode(Loading, {
4780
- "class": bem$1a("loading"),
4780
+ "class": bem$1b("loading"),
4781
4781
  "color": color
4782
4782
  }, null);
4783
4783
  }
@@ -4802,7 +4802,7 @@ var stdin_default$1o = vue.defineComponent({
4802
4802
  };
4803
4803
  return vue.createVNode("div", {
4804
4804
  "role": "switch",
4805
- "class": bem$1a({
4805
+ "class": bem$1b({
4806
4806
  on: checked,
4807
4807
  loading,
4808
4808
  disabled
@@ -4812,16 +4812,16 @@ var stdin_default$1o = vue.defineComponent({
4812
4812
  "aria-checked": checked,
4813
4813
  "onClick": onClick
4814
4814
  }, [vue.createVNode("div", {
4815
- "class": bem$1a("node")
4815
+ "class": bem$1b("node")
4816
4816
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
4817
4817
  };
4818
4818
  }
4819
4819
  });
4820
- const Switch = withInstall(stdin_default$1o);
4821
- const [name$1d, bem$19] = createNamespace("address-edit-detail");
4820
+ const Switch = withInstall(stdin_default$1p);
4821
+ const [name$1e, bem$1a] = createNamespace("address-edit-detail");
4822
4822
  const t$j = createNamespace("address-edit")[2];
4823
- var stdin_default$1n = vue.defineComponent({
4824
- name: name$1d,
4823
+ var stdin_default$1o = vue.defineComponent({
4824
+ name: name$1e,
4825
4825
  props: {
4826
4826
  show: Boolean,
4827
4827
  rows: numericProp,
@@ -4855,7 +4855,7 @@ var stdin_default$1n = vue.defineComponent({
4855
4855
  "icon": "location-o",
4856
4856
  "title": express.name,
4857
4857
  "label": express.address,
4858
- "class": bem$19("search-item"),
4858
+ "class": bem$1a("search-item"),
4859
4859
  "border": false,
4860
4860
  "onClick": () => onSelect(express)
4861
4861
  }, null));
@@ -4869,7 +4869,7 @@ var stdin_default$1n = vue.defineComponent({
4869
4869
  "autosize": true,
4870
4870
  "clearable": true,
4871
4871
  "ref": field,
4872
- "class": bem$19(),
4872
+ "class": bem$1a(),
4873
4873
  "rows": props.rows,
4874
4874
  "type": "textarea",
4875
4875
  "rules": props.rules,
@@ -4886,7 +4886,7 @@ var stdin_default$1n = vue.defineComponent({
4886
4886
  };
4887
4887
  }
4888
4888
  });
4889
- const [name$1c, bem$18, t$i] = createNamespace("address-edit");
4889
+ const [name$1d, bem$19, t$i] = createNamespace("address-edit");
4890
4890
  const DEFAULT_DATA = {
4891
4891
  name: "",
4892
4892
  tel: "",
@@ -4926,8 +4926,8 @@ const addressEditProps = {
4926
4926
  default: isMobile
4927
4927
  }
4928
4928
  };
4929
- var stdin_default$1m = vue.defineComponent({
4930
- name: name$1c,
4929
+ var stdin_default$1n = vue.defineComponent({
4930
+ name: name$1d,
4931
4931
  props: addressEditProps,
4932
4932
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
4933
4933
  setup(props, {
@@ -5039,7 +5039,7 @@ var stdin_default$1m = vue.defineComponent({
5039
5039
  "center": true,
5040
5040
  "border": false,
5041
5041
  "title": t$i("defaultAddress"),
5042
- "class": bem$18("default")
5042
+ "class": bem$19("default")
5043
5043
  }, slots2), [[vue.vShow, !hideBottomFields.value]]);
5044
5044
  }
5045
5045
  };
@@ -5065,13 +5065,13 @@ var stdin_default$1m = vue.defineComponent({
5065
5065
  disableArea
5066
5066
  } = props;
5067
5067
  return vue.createVNode(Form, {
5068
- "class": bem$18(),
5068
+ "class": bem$19(),
5069
5069
  "onSubmit": onSave
5070
5070
  }, {
5071
5071
  default: () => {
5072
5072
  var _a;
5073
5073
  return [vue.createVNode("div", {
5074
- "class": bem$18("fields")
5074
+ "class": bem$19("fields")
5075
5075
  }, [vue.createVNode(Field, {
5076
5076
  "modelValue": data.name,
5077
5077
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -5102,7 +5102,7 @@ var stdin_default$1m = vue.defineComponent({
5102
5102
  emit("clickArea");
5103
5103
  showAreaPopup.value = !disableArea;
5104
5104
  }
5105
- }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1n, {
5105
+ }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1o, {
5106
5106
  "show": props.showDetail,
5107
5107
  "rows": props.detailRows,
5108
5108
  "rules": rules.value.addressDetail,
@@ -5116,19 +5116,19 @@ var stdin_default$1m = vue.defineComponent({
5116
5116
  "onInput": onChangeDetail,
5117
5117
  "onSelectSearch": (event) => emit("selectSearch", event)
5118
5118
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
5119
- "class": bem$18("buttons")
5119
+ "class": bem$19("buttons")
5120
5120
  }, [vue.createVNode(Button, {
5121
5121
  "block": true,
5122
5122
  "round": true,
5123
5123
  "type": "primary",
5124
5124
  "text": props.saveButtonText || t$i("save"),
5125
- "class": bem$18("button"),
5125
+ "class": bem$19("button"),
5126
5126
  "loading": props.isSaving,
5127
5127
  "nativeType": "submit"
5128
5128
  }, null), props.showDelete && vue.createVNode(Button, {
5129
5129
  "block": true,
5130
5130
  "round": true,
5131
- "class": bem$18("button"),
5131
+ "class": bem$19("button"),
5132
5132
  "loading": props.isDeleting,
5133
5133
  "text": props.deleteButtonText || t$i("delete"),
5134
5134
  "onClick": onDelete
@@ -5158,8 +5158,8 @@ var stdin_default$1m = vue.defineComponent({
5158
5158
  };
5159
5159
  }
5160
5160
  });
5161
- const AddressEdit = withInstall(stdin_default$1m);
5162
- const [name$1b, bem$17] = createNamespace("radio-group");
5161
+ const AddressEdit = withInstall(stdin_default$1n);
5162
+ const [name$1c, bem$18] = createNamespace("radio-group");
5163
5163
  const radioGroupProps = {
5164
5164
  disabled: Boolean,
5165
5165
  iconSize: numericProp,
@@ -5167,9 +5167,9 @@ const radioGroupProps = {
5167
5167
  modelValue: unknownProp,
5168
5168
  checkedColor: String
5169
5169
  };
5170
- const RADIO_KEY = Symbol(name$1b);
5171
- var stdin_default$1l = vue.defineComponent({
5172
- name: name$1b,
5170
+ const RADIO_KEY = Symbol(name$1c);
5171
+ var stdin_default$1m = vue.defineComponent({
5172
+ name: name$1c,
5173
5173
  props: radioGroupProps,
5174
5174
  emits: ["change", "update:modelValue"],
5175
5175
  setup(props, {
@@ -5189,14 +5189,14 @@ var stdin_default$1l = vue.defineComponent({
5189
5189
  return () => {
5190
5190
  var _a;
5191
5191
  return vue.createVNode("div", {
5192
- "class": bem$17([props.direction]),
5192
+ "class": bem$18([props.direction]),
5193
5193
  "role": "radiogroup"
5194
5194
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5195
5195
  };
5196
5196
  }
5197
5197
  });
5198
- const RadioGroup = withInstall(stdin_default$1l);
5199
- const [name$1a, bem$16] = createNamespace("tag");
5198
+ const RadioGroup = withInstall(stdin_default$1m);
5199
+ const [name$1b, bem$17] = createNamespace("tag");
5200
5200
  const tagProps = {
5201
5201
  size: String,
5202
5202
  mark: Boolean,
@@ -5208,8 +5208,8 @@ const tagProps = {
5208
5208
  textColor: String,
5209
5209
  closeable: Boolean
5210
5210
  };
5211
- var stdin_default$1k = vue.defineComponent({
5212
- name: name$1a,
5211
+ var stdin_default$1l = vue.defineComponent({
5212
+ name: name$1b,
5213
5213
  props: tagProps,
5214
5214
  emits: ["close"],
5215
5215
  setup(props, {
@@ -5252,12 +5252,12 @@ var stdin_default$1k = vue.defineComponent({
5252
5252
  }
5253
5253
  const CloseIcon = closeable && vue.createVNode(Icon, {
5254
5254
  "name": "cross",
5255
- "class": [bem$16("close"), HAPTICS_FEEDBACK],
5255
+ "class": [bem$17("close"), HAPTICS_FEEDBACK],
5256
5256
  "onClick": onClose
5257
5257
  }, null);
5258
5258
  return vue.createVNode("span", {
5259
5259
  "style": getStyle(),
5260
- "class": bem$16([classes, type])
5260
+ "class": bem$17([classes, type])
5261
5261
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5262
5262
  };
5263
5263
  return () => vue.createVNode(vue.Transition, {
@@ -5267,7 +5267,7 @@ var stdin_default$1k = vue.defineComponent({
5267
5267
  });
5268
5268
  }
5269
5269
  });
5270
- const Tag = withInstall(stdin_default$1k);
5270
+ const Tag = withInstall(stdin_default$1l);
5271
5271
  const checkerProps = {
5272
5272
  name: unknownProp,
5273
5273
  shape: makeStringProp("round"),
@@ -5278,7 +5278,7 @@ const checkerProps = {
5278
5278
  labelPosition: String,
5279
5279
  labelDisabled: Boolean
5280
5280
  };
5281
- var stdin_default$1j = vue.defineComponent({
5281
+ var stdin_default$1k = vue.defineComponent({
5282
5282
  props: extend({}, checkerProps, {
5283
5283
  bem: makeRequiredProp(Function),
5284
5284
  role: String,
@@ -5380,9 +5380,9 @@ var stdin_default$1j = vue.defineComponent({
5380
5380
  }
5381
5381
  });
5382
5382
  const radioProps = checkerProps;
5383
- const [name$19, bem$15] = createNamespace("radio");
5384
- var stdin_default$1i = vue.defineComponent({
5385
- name: name$19,
5383
+ const [name$1a, bem$16] = createNamespace("radio");
5384
+ var stdin_default$1j = vue.defineComponent({
5385
+ name: name$1a,
5386
5386
  props: checkerProps,
5387
5387
  emits: ["update:modelValue"],
5388
5388
  setup(props, {
@@ -5403,8 +5403,8 @@ var stdin_default$1i = vue.defineComponent({
5403
5403
  emit("update:modelValue", props.name);
5404
5404
  }
5405
5405
  };
5406
- return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
5407
- "bem": bem$15,
5406
+ return () => vue.createVNode(stdin_default$1k, vue.mergeProps({
5407
+ "bem": bem$16,
5408
5408
  "role": "radio",
5409
5409
  "parent": parent,
5410
5410
  "checked": checked(),
@@ -5412,15 +5412,16 @@ var stdin_default$1i = vue.defineComponent({
5412
5412
  }, props), pick(slots, ["default", "icon"]));
5413
5413
  }
5414
5414
  });
5415
- const Radio = withInstall(stdin_default$1i);
5416
- const [name$18, bem$14] = createNamespace("address-item");
5417
- var stdin_default$1h = vue.defineComponent({
5418
- name: name$18,
5415
+ const Radio = withInstall(stdin_default$1j);
5416
+ const [name$19, bem$15] = createNamespace("address-item");
5417
+ var stdin_default$1i = vue.defineComponent({
5418
+ name: name$19,
5419
5419
  props: {
5420
5420
  address: makeRequiredProp(Object),
5421
5421
  disabled: Boolean,
5422
5422
  switchable: Boolean,
5423
- defaultTagText: String
5423
+ defaultTagText: String,
5424
+ rightIcon: makeStringProp("edit")
5424
5425
  },
5425
5426
  emits: ["edit", "click", "select"],
5426
5427
  setup(props, {
@@ -5434,8 +5435,8 @@ var stdin_default$1h = vue.defineComponent({
5434
5435
  emit("click");
5435
5436
  };
5436
5437
  const renderRightIcon = () => vue.createVNode(Icon, {
5437
- "name": "edit",
5438
- "class": bem$14("edit"),
5438
+ "name": props.rightIcon,
5439
+ "class": bem$15("edit"),
5439
5440
  "onClick": (event) => {
5440
5441
  event.stopPropagation();
5441
5442
  emit("edit");
@@ -5450,7 +5451,7 @@ var stdin_default$1h = vue.defineComponent({
5450
5451
  return vue.createVNode(Tag, {
5451
5452
  "type": "primary",
5452
5453
  "round": true,
5453
- "class": bem$14("tag")
5454
+ "class": bem$15("tag")
5454
5455
  }, {
5455
5456
  default: () => [props.defaultTagText]
5456
5457
  });
@@ -5463,9 +5464,9 @@ var stdin_default$1h = vue.defineComponent({
5463
5464
  switchable
5464
5465
  } = props;
5465
5466
  const Info = [vue.createVNode("div", {
5466
- "class": bem$14("name")
5467
+ "class": bem$15("name")
5467
5468
  }, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
5468
- "class": bem$14("address")
5469
+ "class": bem$15("address")
5469
5470
  }, [address.address])];
5470
5471
  if (switchable && !disabled) {
5471
5472
  return vue.createVNode(Radio, {
@@ -5483,13 +5484,13 @@ var stdin_default$1h = vue.defineComponent({
5483
5484
  disabled
5484
5485
  } = props;
5485
5486
  return vue.createVNode("div", {
5486
- "class": bem$14({
5487
+ "class": bem$15({
5487
5488
  disabled
5488
5489
  }),
5489
5490
  "onClick": onClick
5490
5491
  }, [vue.createVNode(Cell, {
5491
5492
  "border": false,
5492
- "titleClass": bem$14("title")
5493
+ "titleClass": bem$15("title")
5493
5494
  }, {
5494
5495
  title: renderContent,
5495
5496
  "right-icon": renderRightIcon
@@ -5499,7 +5500,7 @@ var stdin_default$1h = vue.defineComponent({
5499
5500
  };
5500
5501
  }
5501
5502
  });
5502
- const [name$17, bem$13, t$h] = createNamespace("address-list");
5503
+ const [name$18, bem$14, t$h] = createNamespace("address-list");
5503
5504
  const addressListProps = {
5504
5505
  list: makeArrayProp(),
5505
5506
  modelValue: numericProp,
@@ -5507,10 +5508,11 @@ const addressListProps = {
5507
5508
  disabledText: String,
5508
5509
  disabledList: makeArrayProp(),
5509
5510
  addButtonText: String,
5510
- defaultTagText: String
5511
+ defaultTagText: String,
5512
+ rightIcon: makeStringProp("edit")
5511
5513
  };
5512
- var stdin_default$1g = vue.defineComponent({
5513
- name: name$17,
5514
+ var stdin_default$1h = vue.defineComponent({
5515
+ name: name$18,
5514
5516
  props: addressListProps,
5515
5517
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5516
5518
  setup(props, {
@@ -5526,12 +5528,13 @@ var stdin_default$1g = vue.defineComponent({
5526
5528
  emit("update:modelValue", item.id);
5527
5529
  }
5528
5530
  };
5529
- return vue.createVNode(stdin_default$1h, {
5531
+ return vue.createVNode(stdin_default$1i, {
5530
5532
  "key": item.id,
5531
5533
  "address": item,
5532
5534
  "disabled": disabled,
5533
5535
  "switchable": props.switchable,
5534
5536
  "defaultTagText": props.defaultTagText,
5537
+ "rightIcon": props.rightIcon,
5535
5538
  "onEdit": onEdit,
5536
5539
  "onClick": onClick,
5537
5540
  "onSelect": onSelect
@@ -5546,13 +5549,13 @@ var stdin_default$1g = vue.defineComponent({
5546
5549
  }
5547
5550
  };
5548
5551
  const renderBottom = () => vue.createVNode("div", {
5549
- "class": [bem$13("bottom"), "van-safe-area-bottom"]
5552
+ "class": [bem$14("bottom"), "van-safe-area-bottom"]
5550
5553
  }, [vue.createVNode(Button, {
5551
5554
  "round": true,
5552
5555
  "block": true,
5553
5556
  "type": "primary",
5554
5557
  "text": props.addButtonText || t$h("add"),
5555
- "class": bem$13("add"),
5558
+ "class": bem$14("add"),
5556
5559
  "onClick": () => emit("add")
5557
5560
  }, null)]);
5558
5561
  return () => {
@@ -5560,10 +5563,10 @@ var stdin_default$1g = vue.defineComponent({
5560
5563
  const List2 = renderList(props.list);
5561
5564
  const DisabledList = renderList(props.disabledList, true);
5562
5565
  const DisabledText = props.disabledText && vue.createVNode("div", {
5563
- "class": bem$13("disabled-text")
5566
+ "class": bem$14("disabled-text")
5564
5567
  }, [props.disabledText]);
5565
5568
  return vue.createVNode("div", {
5566
- "class": bem$13()
5569
+ "class": bem$14()
5567
5570
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
5568
5571
  "modelValue": props.modelValue
5569
5572
  }, {
@@ -5572,7 +5575,7 @@ var stdin_default$1g = vue.defineComponent({
5572
5575
  };
5573
5576
  }
5574
5577
  });
5575
- const AddressList = withInstall(stdin_default$1g);
5578
+ const AddressList = withInstall(stdin_default$1h);
5576
5579
  const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5577
5580
  const modeType = {
5578
5581
  event: "event",
@@ -5725,7 +5728,7 @@ class ImageCache {
5725
5728
  this.caches.shift();
5726
5729
  }
5727
5730
  }
5728
- const [name$16, bem$12] = createNamespace("back-top");
5731
+ const [name$17, bem$13] = createNamespace("back-top");
5729
5732
  const backTopProps = {
5730
5733
  right: numericProp,
5731
5734
  bottom: numericProp,
@@ -5738,8 +5741,8 @@ const backTopProps = {
5738
5741
  default: "body"
5739
5742
  }
5740
5743
  };
5741
- var stdin_default$1f = vue.defineComponent({
5742
- name: name$16,
5744
+ var stdin_default$1g = vue.defineComponent({
5745
+ name: name$17,
5743
5746
  inheritAttrs: false,
5744
5747
  props: backTopProps,
5745
5748
  emits: ["click"],
@@ -5748,6 +5751,7 @@ var stdin_default$1f = vue.defineComponent({
5748
5751
  slots,
5749
5752
  attrs
5750
5753
  }) {
5754
+ let shouldReshow = false;
5751
5755
  const show = vue.ref(false);
5752
5756
  const root = vue.ref();
5753
5757
  const scrollParent = vue.ref();
@@ -5794,23 +5798,35 @@ var stdin_default$1f = vue.defineComponent({
5794
5798
  target: scrollParent
5795
5799
  });
5796
5800
  vue.onMounted(updateTarget);
5801
+ vue.onActivated(() => {
5802
+ if (shouldReshow) {
5803
+ show.value = true;
5804
+ shouldReshow = false;
5805
+ }
5806
+ });
5807
+ vue.onDeactivated(() => {
5808
+ if (show.value && props.teleport) {
5809
+ show.value = false;
5810
+ shouldReshow = true;
5811
+ }
5812
+ });
5797
5813
  vue.watch(() => props.target, updateTarget);
5798
5814
  return () => {
5799
5815
  const Content = vue.createVNode("div", vue.mergeProps({
5800
5816
  "ref": !props.teleport ? root : void 0,
5801
- "class": bem$12({
5817
+ "class": bem$13({
5802
5818
  active: show.value
5803
5819
  }),
5804
5820
  "style": style.value,
5805
5821
  "onClick": onClick
5806
5822
  }, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
5807
5823
  "name": "back-top",
5808
- "class": bem$12("icon")
5824
+ "class": bem$13("icon")
5809
5825
  }, null)]);
5810
5826
  if (props.teleport) {
5811
5827
  return [vue.createVNode("div", {
5812
5828
  "ref": root,
5813
- "class": bem$12("placeholder")
5829
+ "class": bem$13("placeholder")
5814
5830
  }, null), vue.createVNode(vue.Teleport, {
5815
5831
  "to": props.teleport
5816
5832
  }, {
@@ -5821,7 +5837,7 @@ var stdin_default$1f = vue.defineComponent({
5821
5837
  };
5822
5838
  }
5823
5839
  });
5824
- const BackTop = withInstall(stdin_default$1f);
5840
+ const BackTop = withInstall(stdin_default$1g);
5825
5841
  var __async = (__this, __arguments, generator) => {
5826
5842
  return new Promise((resolve, reject) => {
5827
5843
  var fulfilled = (value) => {
@@ -5850,9 +5866,9 @@ const barrageProps = {
5850
5866
  delay: makeNumberProp(300),
5851
5867
  modelValue: makeArrayProp()
5852
5868
  };
5853
- const [name$15, bem$11] = createNamespace("barrage");
5854
- var stdin_default$1e = vue.defineComponent({
5855
- name: name$15,
5869
+ const [name$16, bem$12] = createNamespace("barrage");
5870
+ var stdin_default$1f = vue.defineComponent({
5871
+ name: name$16,
5856
5872
  props: barrageProps,
5857
5873
  emits: ["update:modelValue"],
5858
5874
  setup(props, {
@@ -5860,7 +5876,7 @@ var stdin_default$1e = vue.defineComponent({
5860
5876
  slots
5861
5877
  }) {
5862
5878
  const barrageWrapper = vue.ref();
5863
- const className = bem$11("item");
5879
+ const className = bem$12("item");
5864
5880
  const total = vue.ref(0);
5865
5881
  const barrageItems = [];
5866
5882
  const createBarrageItem = (text, delay = props.delay) => {
@@ -5941,15 +5957,15 @@ var stdin_default$1e = vue.defineComponent({
5941
5957
  return () => {
5942
5958
  var _a;
5943
5959
  return vue.createVNode("div", {
5944
- "class": bem$11(),
5960
+ "class": bem$12(),
5945
5961
  "ref": barrageWrapper,
5946
5962
  "style": rootStyle.value
5947
5963
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5948
5964
  };
5949
5965
  }
5950
5966
  });
5951
- const Barrage = withInstall(stdin_default$1e);
5952
- const [name$14, bem$10, t$g] = createNamespace("calendar");
5967
+ const Barrage = withInstall(stdin_default$1f);
5968
+ const [name$15, bem$11, t$g] = createNamespace("calendar");
5953
5969
  const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
5954
5970
  function compareMonth(date1, date2) {
5955
5971
  const year1 = date1.getFullYear();
@@ -6010,7 +6026,7 @@ function times(n, iteratee) {
6010
6026
  return result;
6011
6027
  }
6012
6028
  const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
6013
- const genOptions = (min, max, type, formatter, filter) => {
6029
+ const genOptions = (min, max, type, formatter, filter, values) => {
6014
6030
  const options = times(max - min + 1, (index) => {
6015
6031
  const value = padZero(min + index);
6016
6032
  return formatter(type, {
@@ -6018,7 +6034,7 @@ const genOptions = (min, max, type, formatter, filter) => {
6018
6034
  value
6019
6035
  });
6020
6036
  });
6021
- return filter ? filter(type, options) : options;
6037
+ return filter ? filter(type, options, values) : options;
6022
6038
  };
6023
6039
  const formatValueRange = (values, columns) => values.map((value, index) => {
6024
6040
  const column = columns[index];
@@ -6029,9 +6045,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
6029
6045
  }
6030
6046
  return value;
6031
6047
  });
6032
- const [name$13] = createNamespace("calendar-day");
6033
- var stdin_default$1d = vue.defineComponent({
6034
- name: name$13,
6048
+ const [name$14] = createNamespace("calendar-day");
6049
+ var stdin_default$1e = vue.defineComponent({
6050
+ name: name$14,
6035
6051
  props: {
6036
6052
  item: makeRequiredProp(Object),
6037
6053
  color: String,
@@ -6093,7 +6109,7 @@ var stdin_default$1d = vue.defineComponent({
6093
6109
  } = props.item;
6094
6110
  if (topInfo || slots["top-info"]) {
6095
6111
  return vue.createVNode("div", {
6096
- "class": bem$10("top-info")
6112
+ "class": bem$11("top-info")
6097
6113
  }, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
6098
6114
  }
6099
6115
  };
@@ -6103,7 +6119,7 @@ var stdin_default$1d = vue.defineComponent({
6103
6119
  } = props.item;
6104
6120
  if (bottomInfo || slots["bottom-info"]) {
6105
6121
  return vue.createVNode("div", {
6106
- "class": bem$10("bottom-info")
6122
+ "class": bem$11("bottom-info")
6107
6123
  }, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
6108
6124
  }
6109
6125
  };
@@ -6120,7 +6136,7 @@ var stdin_default$1d = vue.defineComponent({
6120
6136
  const Nodes = [renderTopInfo(), text, renderBottomInfo()];
6121
6137
  if (type === "selected") {
6122
6138
  return vue.createVNode("div", {
6123
- "class": bem$10("selected-day"),
6139
+ "class": bem$11("selected-day"),
6124
6140
  "style": {
6125
6141
  width: rowHeight,
6126
6142
  height: rowHeight,
@@ -6137,21 +6153,21 @@ var stdin_default$1d = vue.defineComponent({
6137
6153
  } = props.item;
6138
6154
  if (type === "placeholder") {
6139
6155
  return vue.createVNode("div", {
6140
- "class": bem$10("day"),
6156
+ "class": bem$11("day"),
6141
6157
  "style": style.value
6142
6158
  }, null);
6143
6159
  }
6144
6160
  return vue.createVNode("div", {
6145
6161
  "role": "gridcell",
6146
6162
  "style": style.value,
6147
- "class": [bem$10("day", type), className],
6163
+ "class": [bem$11("day", type), className],
6148
6164
  "tabindex": type === "disabled" ? void 0 : -1,
6149
6165
  "onClick": onClick
6150
6166
  }, [renderContent()]);
6151
6167
  };
6152
6168
  }
6153
6169
  });
6154
- const [name$12] = createNamespace("calendar-month");
6170
+ const [name$13] = createNamespace("calendar-month");
6155
6171
  const calendarMonthProps = {
6156
6172
  date: makeRequiredProp(Date),
6157
6173
  type: String,
@@ -6168,8 +6184,8 @@ const calendarMonthProps = {
6168
6184
  showMonthTitle: Boolean,
6169
6185
  firstDayOfWeek: Number
6170
6186
  };
6171
- var stdin_default$1c = vue.defineComponent({
6172
- name: name$12,
6187
+ var stdin_default$1d = vue.defineComponent({
6188
+ name: name$13,
6173
6189
  props: calendarMonthProps,
6174
6190
  emits: ["click"],
6175
6191
  setup(props, {
@@ -6274,7 +6290,7 @@ var stdin_default$1c = vue.defineComponent({
6274
6290
  const renderTitle = () => {
6275
6291
  if (props.showMonthTitle) {
6276
6292
  return vue.createVNode("div", {
6277
- "class": bem$10("month-title")
6293
+ "class": bem$11("month-title")
6278
6294
  }, [slots["month-title"] ? slots["month-title"]({
6279
6295
  date: props.date,
6280
6296
  text: title.value
@@ -6284,7 +6300,7 @@ var stdin_default$1c = vue.defineComponent({
6284
6300
  const renderMark = () => {
6285
6301
  if (props.showMark && shouldRender.value) {
6286
6302
  return vue.createVNode("div", {
6287
- "class": bem$10("month-mark")
6303
+ "class": bem$11("month-mark")
6288
6304
  }, [props.date.getMonth() + 1]);
6289
6305
  }
6290
6306
  };
@@ -6324,7 +6340,7 @@ var stdin_default$1c = vue.defineComponent({
6324
6340
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
6325
6341
  }
6326
6342
  };
6327
- const renderDay = (item, index) => vue.createVNode(stdin_default$1d, {
6343
+ const renderDay = (item, index) => vue.createVNode(stdin_default$1e, {
6328
6344
  "item": item,
6329
6345
  "index": index,
6330
6346
  "color": props.color,
@@ -6335,7 +6351,7 @@ var stdin_default$1c = vue.defineComponent({
6335
6351
  const renderDays = () => vue.createVNode("div", {
6336
6352
  "ref": daysRef,
6337
6353
  "role": "grid",
6338
- "class": bem$10("days")
6354
+ "class": bem$11("days")
6339
6355
  }, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
6340
6356
  useExpose({
6341
6357
  getTitle,
@@ -6345,14 +6361,14 @@ var stdin_default$1c = vue.defineComponent({
6345
6361
  disabledDays
6346
6362
  });
6347
6363
  return () => vue.createVNode("div", {
6348
- "class": bem$10("month"),
6364
+ "class": bem$11("month"),
6349
6365
  "ref": monthRef
6350
6366
  }, [renderTitle(), renderDays()]);
6351
6367
  }
6352
6368
  });
6353
- const [name$11] = createNamespace("calendar-header");
6354
- var stdin_default$1b = vue.defineComponent({
6355
- name: name$11,
6369
+ const [name$12] = createNamespace("calendar-header");
6370
+ var stdin_default$1c = vue.defineComponent({
6371
+ name: name$12,
6356
6372
  props: {
6357
6373
  date: Date,
6358
6374
  title: String,
@@ -6371,7 +6387,7 @@ var stdin_default$1b = vue.defineComponent({
6371
6387
  const text = props.title || t$g("title");
6372
6388
  const title = slots.title ? slots.title() : text;
6373
6389
  return vue.createVNode("div", {
6374
- "class": bem$10("header-title")
6390
+ "class": bem$11("header-title")
6375
6391
  }, [title]);
6376
6392
  }
6377
6393
  };
@@ -6383,7 +6399,7 @@ var stdin_default$1b = vue.defineComponent({
6383
6399
  text: props.subtitle
6384
6400
  }) : props.subtitle;
6385
6401
  return vue.createVNode("div", {
6386
- "class": bem$10("header-subtitle"),
6402
+ "class": bem$11("header-subtitle"),
6387
6403
  "onClick": onClickSubtitle
6388
6404
  }, [title]);
6389
6405
  }
@@ -6395,13 +6411,13 @@ var stdin_default$1b = vue.defineComponent({
6395
6411
  const weekdays = t$g("weekdays");
6396
6412
  const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
6397
6413
  return vue.createVNode("div", {
6398
- "class": bem$10("weekdays")
6414
+ "class": bem$11("weekdays")
6399
6415
  }, [renderWeekDays2.map((text) => vue.createVNode("span", {
6400
- "class": bem$10("weekday")
6416
+ "class": bem$11("weekday")
6401
6417
  }, [text]))]);
6402
6418
  };
6403
6419
  return () => vue.createVNode("div", {
6404
- "class": bem$10("header")
6420
+ "class": bem$11("header")
6405
6421
  }, [renderTitle(), renderSubtitle(), renderWeekDays()]);
6406
6422
  }
6407
6423
  });
@@ -6452,8 +6468,8 @@ const calendarProps = {
6452
6468
  validator: (val) => val >= 0 && val <= 6
6453
6469
  }
6454
6470
  };
6455
- var stdin_default$1a = vue.defineComponent({
6456
- name: name$14,
6471
+ var stdin_default$1b = vue.defineComponent({
6472
+ name: name$15,
6457
6473
  props: calendarProps,
6458
6474
  emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
6459
6475
  setup(props, {
@@ -6716,7 +6732,7 @@ var stdin_default$1a = vue.defineComponent({
6716
6732
  const updateShow = (value) => emit("update:show", value);
6717
6733
  const renderMonth = (date, index) => {
6718
6734
  const showMonthTitle = index !== 0 || !props.showSubtitle;
6719
- return vue.createVNode(stdin_default$1c, vue.mergeProps({
6735
+ return vue.createVNode(stdin_default$1d, vue.mergeProps({
6720
6736
  "ref": setMonthRefs(index),
6721
6737
  "date": date,
6722
6738
  "currentDate": currentDate.value,
@@ -6739,7 +6755,7 @@ var stdin_default$1a = vue.defineComponent({
6739
6755
  "block": true,
6740
6756
  "type": "primary",
6741
6757
  "color": props.color,
6742
- "class": bem$10("confirm"),
6758
+ "class": bem$11("confirm"),
6743
6759
  "disabled": disabled,
6744
6760
  "nativeType": "button",
6745
6761
  "onClick": onConfirm
@@ -6751,13 +6767,13 @@ var stdin_default$1a = vue.defineComponent({
6751
6767
  }
6752
6768
  };
6753
6769
  const renderFooter = () => vue.createVNode("div", {
6754
- "class": [bem$10("footer"), {
6770
+ "class": [bem$11("footer"), {
6755
6771
  "van-safe-area-bottom": props.safeAreaInsetBottom
6756
6772
  }]
6757
6773
  }, [renderFooterButton()]);
6758
6774
  const renderCalendar = () => vue.createVNode("div", {
6759
- "class": bem$10()
6760
- }, [vue.createVNode(stdin_default$1b, {
6775
+ "class": bem$11()
6776
+ }, [vue.createVNode(stdin_default$1c, {
6761
6777
  "date": subtitle.value.date,
6762
6778
  "title": props.title,
6763
6779
  "subtitle": subtitle.value.text,
@@ -6767,7 +6783,7 @@ var stdin_default$1a = vue.defineComponent({
6767
6783
  "onClickSubtitle": (event) => emit("clickSubtitle", event)
6768
6784
  }, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
6769
6785
  "ref": bodyRef,
6770
- "class": bem$10("body"),
6786
+ "class": bem$11("body"),
6771
6787
  "onScroll": onScroll
6772
6788
  }, [months.value.map(renderMonth)]), renderFooter()]);
6773
6789
  vue.watch(() => props.show, init);
@@ -6786,7 +6802,7 @@ var stdin_default$1a = vue.defineComponent({
6786
6802
  if (props.poppable) {
6787
6803
  return vue.createVNode(Popup, {
6788
6804
  "show": props.show,
6789
- "class": bem$10("popup"),
6805
+ "class": bem$11("popup"),
6790
6806
  "round": props.round,
6791
6807
  "position": props.position,
6792
6808
  "closeable": props.showTitle || props.showSubtitle,
@@ -6803,8 +6819,8 @@ var stdin_default$1a = vue.defineComponent({
6803
6819
  };
6804
6820
  }
6805
6821
  });
6806
- const Calendar = withInstall(stdin_default$1a);
6807
- const [name$10, bem$$] = createNamespace("image");
6822
+ const Calendar = withInstall(stdin_default$1b);
6823
+ const [name$11, bem$10] = createNamespace("image");
6808
6824
  const imageProps = {
6809
6825
  src: String,
6810
6826
  alt: String,
@@ -6823,8 +6839,8 @@ const imageProps = {
6823
6839
  showLoading: truthProp,
6824
6840
  loadingIcon: makeStringProp("photo")
6825
6841
  };
6826
- var stdin_default$19 = vue.defineComponent({
6827
- name: name$10,
6842
+ var stdin_default$1a = vue.defineComponent({
6843
+ name: name$11,
6828
6844
  props: imageProps,
6829
6845
  emits: ["load", "error"],
6830
6846
  setup(props, {
@@ -6885,13 +6901,13 @@ var stdin_default$19 = vue.defineComponent({
6885
6901
  const renderPlaceholder = () => {
6886
6902
  if (loading.value && props.showLoading) {
6887
6903
  return vue.createVNode("div", {
6888
- "class": bem$$("loading")
6889
- }, [renderIcon(props.loadingIcon, bem$$("loading-icon"), slots.loading)]);
6904
+ "class": bem$10("loading")
6905
+ }, [renderIcon(props.loadingIcon, bem$10("loading-icon"), slots.loading)]);
6890
6906
  }
6891
6907
  if (error.value && props.showError) {
6892
6908
  return vue.createVNode("div", {
6893
- "class": bem$$("error")
6894
- }, [renderIcon(props.errorIcon, bem$$("error-icon"), slots.error)]);
6909
+ "class": bem$10("error")
6910
+ }, [renderIcon(props.errorIcon, bem$10("error-icon"), slots.error)]);
6895
6911
  }
6896
6912
  };
6897
6913
  const renderImage = () => {
@@ -6900,7 +6916,7 @@ var stdin_default$19 = vue.defineComponent({
6900
6916
  }
6901
6917
  const attrs = {
6902
6918
  alt: props.alt,
6903
- class: bem$$("img"),
6919
+ class: bem$10("img"),
6904
6920
  style: {
6905
6921
  objectFit: props.fit,
6906
6922
  objectPosition: props.position
@@ -6958,7 +6974,7 @@ var stdin_default$19 = vue.defineComponent({
6958
6974
  return () => {
6959
6975
  var _a;
6960
6976
  return vue.createVNode("div", {
6961
- "class": bem$$({
6977
+ "class": bem$10({
6962
6978
  round: props.round,
6963
6979
  block: props.block
6964
6980
  }),
@@ -6967,8 +6983,8 @@ var stdin_default$19 = vue.defineComponent({
6967
6983
  };
6968
6984
  }
6969
6985
  });
6970
- const Image$1 = withInstall(stdin_default$19);
6971
- const [name$$, bem$_] = createNamespace("card");
6986
+ const Image$1 = withInstall(stdin_default$1a);
6987
+ const [name$10, bem$$] = createNamespace("card");
6972
6988
  const cardProps = {
6973
6989
  tag: String,
6974
6990
  num: numericProp,
@@ -6982,8 +6998,8 @@ const cardProps = {
6982
6998
  thumbLink: String,
6983
6999
  originPrice: numericProp
6984
7000
  };
6985
- var stdin_default$18 = vue.defineComponent({
6986
- name: name$$,
7001
+ var stdin_default$19 = vue.defineComponent({
7002
+ name: name$10,
6987
7003
  props: cardProps,
6988
7004
  emits: ["clickThumb"],
6989
7005
  setup(props, {
@@ -6996,14 +7012,14 @@ var stdin_default$18 = vue.defineComponent({
6996
7012
  }
6997
7013
  if (props.title) {
6998
7014
  return vue.createVNode("div", {
6999
- "class": [bem$_("title"), "van-multi-ellipsis--l2"]
7015
+ "class": [bem$$("title"), "van-multi-ellipsis--l2"]
7000
7016
  }, [props.title]);
7001
7017
  }
7002
7018
  };
7003
7019
  const renderThumbTag = () => {
7004
7020
  if (slots.tag || props.tag) {
7005
7021
  return vue.createVNode("div", {
7006
- "class": bem$_("tag")
7022
+ "class": bem$$("tag")
7007
7023
  }, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
7008
7024
  "mark": true,
7009
7025
  "type": "primary"
@@ -7028,7 +7044,7 @@ var stdin_default$18 = vue.defineComponent({
7028
7044
  if (slots.thumb || props.thumb) {
7029
7045
  return vue.createVNode("a", {
7030
7046
  "href": props.thumbLink,
7031
- "class": bem$_("thumb"),
7047
+ "class": bem$$("thumb"),
7032
7048
  "onClick": (event) => emit("clickThumb", event)
7033
7049
  }, [renderThumbImage(), renderThumbTag()]);
7034
7050
  }
@@ -7039,18 +7055,18 @@ var stdin_default$18 = vue.defineComponent({
7039
7055
  }
7040
7056
  if (props.desc) {
7041
7057
  return vue.createVNode("div", {
7042
- "class": [bem$_("desc"), "van-ellipsis"]
7058
+ "class": [bem$$("desc"), "van-ellipsis"]
7043
7059
  }, [props.desc]);
7044
7060
  }
7045
7061
  };
7046
7062
  const renderPriceText = () => {
7047
7063
  const priceArr = props.price.toString().split(".");
7048
7064
  return vue.createVNode("div", null, [vue.createVNode("span", {
7049
- "class": bem$_("price-currency")
7065
+ "class": bem$$("price-currency")
7050
7066
  }, [props.currency]), vue.createVNode("span", {
7051
- "class": bem$_("price-integer")
7067
+ "class": bem$$("price-integer")
7052
7068
  }, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
7053
- "class": bem$_("price-decimal")
7069
+ "class": bem$$("price-decimal")
7054
7070
  }, [priceArr[1]])]);
7055
7071
  };
7056
7072
  return () => {
@@ -7060,34 +7076,34 @@ var stdin_default$18 = vue.defineComponent({
7060
7076
  const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
7061
7077
  const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
7062
7078
  const Price = showPrice && vue.createVNode("div", {
7063
- "class": bem$_("price")
7079
+ "class": bem$$("price")
7064
7080
  }, [slots.price ? slots.price() : renderPriceText()]);
7065
7081
  const OriginPrice = showOriginPrice && vue.createVNode("div", {
7066
- "class": bem$_("origin-price")
7082
+ "class": bem$$("origin-price")
7067
7083
  }, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
7068
7084
  const Num = showNum && vue.createVNode("div", {
7069
- "class": bem$_("num")
7085
+ "class": bem$$("num")
7070
7086
  }, [slots.num ? slots.num() : `x${props.num}`]);
7071
7087
  const Footer = slots.footer && vue.createVNode("div", {
7072
- "class": bem$_("footer")
7088
+ "class": bem$$("footer")
7073
7089
  }, [slots.footer()]);
7074
7090
  const Bottom = showBottom && vue.createVNode("div", {
7075
- "class": bem$_("bottom")
7091
+ "class": bem$$("bottom")
7076
7092
  }, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
7077
7093
  return vue.createVNode("div", {
7078
- "class": bem$_()
7094
+ "class": bem$$()
7079
7095
  }, [vue.createVNode("div", {
7080
- "class": bem$_("header")
7096
+ "class": bem$$("header")
7081
7097
  }, [renderThumb(), vue.createVNode("div", {
7082
- "class": bem$_("content", {
7098
+ "class": bem$$("content", {
7083
7099
  centered: props.centered
7084
7100
  })
7085
7101
  }, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
7086
7102
  };
7087
7103
  }
7088
7104
  });
7089
- const Card = withInstall(stdin_default$18);
7090
- const [name$_, bem$Z, t$f] = createNamespace("cascader");
7105
+ const Card = withInstall(stdin_default$19);
7106
+ const [name$$, bem$_, t$f] = createNamespace("cascader");
7091
7107
  const cascaderProps = {
7092
7108
  title: String,
7093
7109
  options: makeArrayProp(),
@@ -7100,8 +7116,8 @@ const cascaderProps = {
7100
7116
  placeholder: String,
7101
7117
  activeColor: String
7102
7118
  };
7103
- var stdin_default$17 = vue.defineComponent({
7104
- name: name$_,
7119
+ var stdin_default$18 = vue.defineComponent({
7120
+ name: name$$,
7105
7121
  props: cascaderProps,
7106
7122
  emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
7107
7123
  setup(props, {
@@ -7210,12 +7226,12 @@ var stdin_default$17 = vue.defineComponent({
7210
7226
  title
7211
7227
  }) => emit("clickTab", name2, title);
7212
7228
  const renderHeader = () => props.showHeader ? vue.createVNode("div", {
7213
- "class": bem$Z("header")
7229
+ "class": bem$_("header")
7214
7230
  }, [vue.createVNode("h2", {
7215
- "class": bem$Z("title")
7231
+ "class": bem$_("title")
7216
7232
  }, [slots.title ? slots.title() : props.title]), props.closeable ? vue.createVNode(Icon, {
7217
7233
  "name": props.closeIcon,
7218
- "class": [bem$Z("close-icon"), HAPTICS_FEEDBACK],
7234
+ "class": [bem$_("close-icon"), HAPTICS_FEEDBACK],
7219
7235
  "onClick": onClose
7220
7236
  }, null) : null]) : null;
7221
7237
  const renderOption = (option, selectedOption, tabIndex) => {
@@ -7231,7 +7247,7 @@ var stdin_default$17 = vue.defineComponent({
7231
7247
  return vue.createVNode("li", {
7232
7248
  "ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
7233
7249
  "role": "menuitemradio",
7234
- "class": [bem$Z("option", {
7250
+ "class": [bem$_("option", {
7235
7251
  selected,
7236
7252
  disabled
7237
7253
  }), option.className],
@@ -7244,12 +7260,12 @@ var stdin_default$17 = vue.defineComponent({
7244
7260
  "onClick": () => onSelect(option, tabIndex)
7245
7261
  }, [Text, selected ? vue.createVNode(Icon, {
7246
7262
  "name": "success",
7247
- "class": bem$Z("selected-icon")
7263
+ "class": bem$_("selected-icon")
7248
7264
  }, null) : null]);
7249
7265
  };
7250
7266
  const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
7251
7267
  "role": "menu",
7252
- "class": bem$Z("options")
7268
+ "class": bem$_("options")
7253
7269
  }, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
7254
7270
  const renderTab = (tab, tabIndex) => {
7255
7271
  const {
@@ -7260,7 +7276,7 @@ var stdin_default$17 = vue.defineComponent({
7260
7276
  const title = selected ? selected[textKey] : placeholder;
7261
7277
  return vue.createVNode(Tab, {
7262
7278
  "title": title,
7263
- "titleClass": bem$Z("tab", {
7279
+ "titleClass": bem$_("tab", {
7264
7280
  unselected: !selected
7265
7281
  })
7266
7282
  }, {
@@ -7279,7 +7295,7 @@ var stdin_default$17 = vue.defineComponent({
7279
7295
  "onUpdate:active": ($event) => activeTab.value = $event,
7280
7296
  "shrink": true,
7281
7297
  "animated": true,
7282
- "class": bem$Z("tabs"),
7298
+ "class": bem$_("tabs"),
7283
7299
  "color": props.activeColor,
7284
7300
  "swipeable": props.swipeable,
7285
7301
  "onClickTab": onClickTab
@@ -7314,19 +7330,19 @@ var stdin_default$17 = vue.defineComponent({
7314
7330
  updateTabs();
7315
7331
  });
7316
7332
  return () => vue.createVNode("div", {
7317
- "class": bem$Z()
7333
+ "class": bem$_()
7318
7334
  }, [renderHeader(), renderTabs()]);
7319
7335
  }
7320
7336
  });
7321
- const Cascader = withInstall(stdin_default$17);
7322
- const [name$Z, bem$Y] = createNamespace("cell-group");
7337
+ const Cascader = withInstall(stdin_default$18);
7338
+ const [name$_, bem$Z] = createNamespace("cell-group");
7323
7339
  const cellGroupProps = {
7324
7340
  title: String,
7325
7341
  inset: Boolean,
7326
7342
  border: truthProp
7327
7343
  };
7328
- var stdin_default$16 = vue.defineComponent({
7329
- name: name$Z,
7344
+ var stdin_default$17 = vue.defineComponent({
7345
+ name: name$_,
7330
7346
  inheritAttrs: false,
7331
7347
  props: cellGroupProps,
7332
7348
  setup(props, {
@@ -7336,7 +7352,7 @@ var stdin_default$16 = vue.defineComponent({
7336
7352
  const renderGroup = () => {
7337
7353
  var _a;
7338
7354
  return vue.createVNode("div", vue.mergeProps({
7339
- "class": [bem$Y({
7355
+ "class": [bem$Z({
7340
7356
  inset: props.inset
7341
7357
  }), {
7342
7358
  [BORDER_TOP_BOTTOM]: props.border && !props.inset
@@ -7344,7 +7360,7 @@ var stdin_default$16 = vue.defineComponent({
7344
7360
  }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7345
7361
  };
7346
7362
  const renderTitle = () => vue.createVNode("div", {
7347
- "class": bem$Y("title", {
7363
+ "class": bem$Z("title", {
7348
7364
  inset: props.inset
7349
7365
  })
7350
7366
  }, [slots.title ? slots.title() : props.title]);
@@ -7356,8 +7372,8 @@ var stdin_default$16 = vue.defineComponent({
7356
7372
  };
7357
7373
  }
7358
7374
  });
7359
- const CellGroup = withInstall(stdin_default$16);
7360
- const [name$Y, bem$X] = createNamespace("checkbox-group");
7375
+ const CellGroup = withInstall(stdin_default$17);
7376
+ const [name$Z, bem$Y] = createNamespace("checkbox-group");
7361
7377
  const checkboxGroupProps = {
7362
7378
  max: numericProp,
7363
7379
  disabled: Boolean,
@@ -7366,9 +7382,9 @@ const checkboxGroupProps = {
7366
7382
  modelValue: makeArrayProp(),
7367
7383
  checkedColor: String
7368
7384
  };
7369
- const CHECKBOX_GROUP_KEY = Symbol(name$Y);
7370
- var stdin_default$15 = vue.defineComponent({
7371
- name: name$Y,
7385
+ const CHECKBOX_GROUP_KEY = Symbol(name$Z);
7386
+ var stdin_default$16 = vue.defineComponent({
7387
+ name: name$Z,
7372
7388
  props: checkboxGroupProps,
7373
7389
  emits: ["change", "update:modelValue"],
7374
7390
  setup(props, {
@@ -7414,17 +7430,17 @@ var stdin_default$15 = vue.defineComponent({
7414
7430
  return () => {
7415
7431
  var _a;
7416
7432
  return vue.createVNode("div", {
7417
- "class": bem$X([props.direction])
7433
+ "class": bem$Y([props.direction])
7418
7434
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7419
7435
  };
7420
7436
  }
7421
7437
  });
7422
- const [name$X, bem$W] = createNamespace("checkbox");
7438
+ const [name$Y, bem$X] = createNamespace("checkbox");
7423
7439
  const checkboxProps = extend({}, checkerProps, {
7424
7440
  bindGroup: truthProp
7425
7441
  });
7426
- var stdin_default$14 = vue.defineComponent({
7427
- name: name$X,
7442
+ var stdin_default$15 = vue.defineComponent({
7443
+ name: name$Y,
7428
7444
  props: checkboxProps,
7429
7445
  emits: ["change", "update:modelValue"],
7430
7446
  setup(props, {
@@ -7481,8 +7497,8 @@ var stdin_default$14 = vue.defineComponent({
7481
7497
  checked
7482
7498
  });
7483
7499
  use.useCustomFieldValue(() => props.modelValue);
7484
- return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
7485
- "bem": bem$W,
7500
+ return () => vue.createVNode(stdin_default$1k, vue.mergeProps({
7501
+ "bem": bem$X,
7486
7502
  "role": "checkbox",
7487
7503
  "parent": parent,
7488
7504
  "checked": checked.value,
@@ -7490,9 +7506,9 @@ var stdin_default$14 = vue.defineComponent({
7490
7506
  }, props), pick(slots, ["default", "icon"]));
7491
7507
  }
7492
7508
  });
7493
- const Checkbox = withInstall(stdin_default$14);
7494
- const CheckboxGroup = withInstall(stdin_default$15);
7495
- const [name$W, bem$V] = createNamespace("circle");
7509
+ const Checkbox = withInstall(stdin_default$15);
7510
+ const CheckboxGroup = withInstall(stdin_default$16);
7511
+ const [name$X, bem$W] = createNamespace("circle");
7496
7512
  let uid = 0;
7497
7513
  const format = (rate) => Math.min(Math.max(+rate, 0), 100);
7498
7514
  function getPath(clockwise, viewBoxSize) {
@@ -7513,8 +7529,8 @@ const circleProps = {
7513
7529
  strokeLinecap: String,
7514
7530
  startPosition: makeStringProp("top")
7515
7531
  };
7516
- var stdin_default$13 = vue.defineComponent({
7517
- name: name$W,
7532
+ var stdin_default$14 = vue.defineComponent({
7533
+ name: name$X,
7518
7534
  props: circleProps,
7519
7535
  emits: ["update:currentRate"],
7520
7536
  setup(props, {
@@ -7582,7 +7598,7 @@ var stdin_default$13 = vue.defineComponent({
7582
7598
  return vue.createVNode("path", {
7583
7599
  "d": path.value,
7584
7600
  "style": style,
7585
- "class": bem$V("hover"),
7601
+ "class": bem$W("hover"),
7586
7602
  "stroke": color
7587
7603
  }, null);
7588
7604
  };
@@ -7593,7 +7609,7 @@ var stdin_default$13 = vue.defineComponent({
7593
7609
  strokeWidth: `${props.strokeWidth}px`
7594
7610
  };
7595
7611
  return vue.createVNode("path", {
7596
- "class": bem$V("layer"),
7612
+ "class": bem$W("layer"),
7597
7613
  "style": style,
7598
7614
  "d": path.value
7599
7615
  }, null);
@@ -7624,12 +7640,12 @@ var stdin_default$13 = vue.defineComponent({
7624
7640
  }
7625
7641
  if (props.text) {
7626
7642
  return vue.createVNode("div", {
7627
- "class": bem$V("text")
7643
+ "class": bem$W("text")
7628
7644
  }, [props.text]);
7629
7645
  }
7630
7646
  };
7631
7647
  return () => vue.createVNode("div", {
7632
- "class": bem$V(),
7648
+ "class": bem$W(),
7633
7649
  "style": getSizeStyle(props.size)
7634
7650
  }, [vue.createVNode("svg", {
7635
7651
  "viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
@@ -7637,9 +7653,9 @@ var stdin_default$13 = vue.defineComponent({
7637
7653
  }, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
7638
7654
  }
7639
7655
  });
7640
- const Circle = withInstall(stdin_default$13);
7641
- const [name$V, bem$U] = createNamespace("row");
7642
- const ROW_KEY = Symbol(name$V);
7656
+ const Circle = withInstall(stdin_default$14);
7657
+ const [name$W, bem$V] = createNamespace("row");
7658
+ const ROW_KEY = Symbol(name$W);
7643
7659
  const rowProps = {
7644
7660
  tag: makeStringProp("div"),
7645
7661
  wrap: truthProp,
@@ -7647,8 +7663,8 @@ const rowProps = {
7647
7663
  gutter: makeNumericProp(0),
7648
7664
  justify: String
7649
7665
  };
7650
- var stdin_default$12 = vue.defineComponent({
7651
- name: name$V,
7666
+ var stdin_default$13 = vue.defineComponent({
7667
+ name: name$W,
7652
7668
  props: rowProps,
7653
7669
  setup(props, {
7654
7670
  slots
@@ -7707,7 +7723,7 @@ var stdin_default$12 = vue.defineComponent({
7707
7723
  justify
7708
7724
  } = props;
7709
7725
  return vue.createVNode(tag, {
7710
- "class": bem$U({
7726
+ "class": bem$V({
7711
7727
  [`align-${align}`]: align,
7712
7728
  [`justify-${justify}`]: justify,
7713
7729
  nowrap: !wrap
@@ -7721,14 +7737,14 @@ var stdin_default$12 = vue.defineComponent({
7721
7737
  };
7722
7738
  }
7723
7739
  });
7724
- const [name$U, bem$T] = createNamespace("col");
7740
+ const [name$V, bem$U] = createNamespace("col");
7725
7741
  const colProps = {
7726
7742
  tag: makeStringProp("div"),
7727
7743
  span: makeNumericProp(0),
7728
7744
  offset: numericProp
7729
7745
  };
7730
- var stdin_default$11 = vue.defineComponent({
7731
- name: name$U,
7746
+ var stdin_default$12 = vue.defineComponent({
7747
+ name: name$V,
7732
7748
  props: colProps,
7733
7749
  setup(props, {
7734
7750
  slots
@@ -7763,7 +7779,7 @@ var stdin_default$11 = vue.defineComponent({
7763
7779
  } = props;
7764
7780
  return vue.createVNode(tag, {
7765
7781
  "style": style.value,
7766
- "class": bem$T({
7782
+ "class": bem$U({
7767
7783
  [span]: span,
7768
7784
  [`offset-${offset}`]: offset
7769
7785
  })
@@ -7776,9 +7792,9 @@ var stdin_default$11 = vue.defineComponent({
7776
7792
  };
7777
7793
  }
7778
7794
  });
7779
- const Col = withInstall(stdin_default$11);
7780
- const [name$T, bem$S] = createNamespace("collapse");
7781
- const COLLAPSE_KEY = Symbol(name$T);
7795
+ const Col = withInstall(stdin_default$12);
7796
+ const [name$U, bem$T] = createNamespace("collapse");
7797
+ const COLLAPSE_KEY = Symbol(name$U);
7782
7798
  const collapseProps = {
7783
7799
  border: truthProp,
7784
7800
  accordion: Boolean,
@@ -7798,8 +7814,8 @@ function validateModelValue(modelValue, accordion) {
7798
7814
  }
7799
7815
  return true;
7800
7816
  }
7801
- var stdin_default$10 = vue.defineComponent({
7802
- name: name$T,
7817
+ var stdin_default$11 = vue.defineComponent({
7818
+ name: name$U,
7803
7819
  props: collapseProps,
7804
7820
  emits: ["change", "update:modelValue"],
7805
7821
  setup(props, {
@@ -7869,15 +7885,15 @@ var stdin_default$10 = vue.defineComponent({
7869
7885
  return () => {
7870
7886
  var _a;
7871
7887
  return vue.createVNode("div", {
7872
- "class": [bem$S(), {
7888
+ "class": [bem$T(), {
7873
7889
  [BORDER_TOP_BOTTOM]: props.border
7874
7890
  }]
7875
7891
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7876
7892
  };
7877
7893
  }
7878
7894
  });
7879
- const Collapse = withInstall(stdin_default$10);
7880
- const [name$S, bem$R] = createNamespace("collapse-item");
7895
+ const Collapse = withInstall(stdin_default$11);
7896
+ const [name$T, bem$S] = createNamespace("collapse-item");
7881
7897
  const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
7882
7898
  const collapseItemProps = extend({}, cellSharedProps, {
7883
7899
  name: numericProp,
@@ -7886,8 +7902,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
7886
7902
  readonly: Boolean,
7887
7903
  lazyRender: truthProp
7888
7904
  });
7889
- var stdin_default$$ = vue.defineComponent({
7890
- name: name$S,
7905
+ var stdin_default$10 = vue.defineComponent({
7906
+ name: name$T,
7891
7907
  props: collapseItemProps,
7892
7908
  setup(props, {
7893
7909
  slots
@@ -7969,7 +7985,7 @@ var stdin_default$$ = vue.defineComponent({
7969
7985
  }
7970
7986
  return vue.createVNode(Cell, vue.mergeProps({
7971
7987
  "role": "button",
7972
- "class": bem$R("title", {
7988
+ "class": bem$S("title", {
7973
7989
  disabled,
7974
7990
  expanded: expanded.value,
7975
7991
  borderless: !border
@@ -7982,11 +7998,11 @@ var stdin_default$$ = vue.defineComponent({
7982
7998
  var _a;
7983
7999
  return vue.withDirectives(vue.createVNode("div", {
7984
8000
  "ref": wrapperRef,
7985
- "class": bem$R("wrapper"),
8001
+ "class": bem$S("wrapper"),
7986
8002
  "onTransitionend": onTransitionEnd
7987
8003
  }, [vue.createVNode("div", {
7988
8004
  "ref": contentRef,
7989
- "class": bem$R("content")
8005
+ "class": bem$S("content")
7990
8006
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
7991
8007
  });
7992
8008
  useExpose({
@@ -7995,15 +8011,15 @@ var stdin_default$$ = vue.defineComponent({
7995
8011
  itemName: name2
7996
8012
  });
7997
8013
  return () => vue.createVNode("div", {
7998
- "class": [bem$R({
8014
+ "class": [bem$S({
7999
8015
  border: index.value && props.border
8000
8016
  })]
8001
8017
  }, [renderTitle(), renderContent()]);
8002
8018
  }
8003
8019
  });
8004
- const CollapseItem = withInstall(stdin_default$$);
8005
- const ConfigProvider = withInstall(stdin_default$1M);
8006
- const [name$R, bem$Q, t$e] = createNamespace("contact-card");
8020
+ const CollapseItem = withInstall(stdin_default$10);
8021
+ const ConfigProvider = withInstall(stdin_default$1N);
8022
+ const [name$S, bem$R, t$e] = createNamespace("contact-card");
8007
8023
  const contactCardProps = {
8008
8024
  tel: String,
8009
8025
  name: String,
@@ -8011,8 +8027,8 @@ const contactCardProps = {
8011
8027
  addText: String,
8012
8028
  editable: truthProp
8013
8029
  };
8014
- var stdin_default$_ = vue.defineComponent({
8015
- name: name$R,
8030
+ var stdin_default$$ = vue.defineComponent({
8031
+ name: name$S,
8016
8032
  props: contactCardProps,
8017
8033
  emits: ["click"],
8018
8034
  setup(props, {
@@ -8032,18 +8048,18 @@ var stdin_default$_ = vue.defineComponent({
8032
8048
  return () => vue.createVNode(Cell, {
8033
8049
  "center": true,
8034
8050
  "icon": props.type === "edit" ? "contact" : "add-square",
8035
- "class": bem$Q([props.type]),
8051
+ "class": bem$R([props.type]),
8036
8052
  "border": false,
8037
8053
  "isLink": props.editable,
8038
- "titleClass": bem$Q("title"),
8054
+ "titleClass": bem$R("title"),
8039
8055
  "onClick": onClick
8040
8056
  }, {
8041
8057
  title: renderContent
8042
8058
  });
8043
8059
  }
8044
8060
  });
8045
- const ContactCard = withInstall(stdin_default$_);
8046
- const [name$Q, bem$P, t$d] = createNamespace("contact-edit");
8061
+ const ContactCard = withInstall(stdin_default$$);
8062
+ const [name$R, bem$Q, t$d] = createNamespace("contact-edit");
8047
8063
  const DEFAULT_CONTACT = {
8048
8064
  tel: "",
8049
8065
  name: ""
@@ -8063,8 +8079,8 @@ const contactEditProps = {
8063
8079
  default: isMobile
8064
8080
  }
8065
8081
  };
8066
- var stdin_default$Z = vue.defineComponent({
8067
- name: name$Q,
8082
+ var stdin_default$_ = vue.defineComponent({
8083
+ name: name$R,
8068
8084
  props: contactEditProps,
8069
8085
  emits: ["save", "delete", "changeDefault"],
8070
8086
  setup(props, {
@@ -8078,20 +8094,20 @@ var stdin_default$Z = vue.defineComponent({
8078
8094
  };
8079
8095
  const onDelete = () => emit("delete", contact);
8080
8096
  const renderButtons = () => vue.createVNode("div", {
8081
- "class": bem$P("buttons")
8097
+ "class": bem$Q("buttons")
8082
8098
  }, [vue.createVNode(Button, {
8083
8099
  "block": true,
8084
8100
  "round": true,
8085
8101
  "type": "primary",
8086
8102
  "text": t$d("save"),
8087
- "class": bem$P("button"),
8103
+ "class": bem$Q("button"),
8088
8104
  "loading": props.isSaving,
8089
8105
  "nativeType": "submit"
8090
8106
  }, null), props.isEdit && vue.createVNode(Button, {
8091
8107
  "block": true,
8092
8108
  "round": true,
8093
8109
  "text": t$d("delete"),
8094
- "class": bem$P("button"),
8110
+ "class": bem$Q("button"),
8095
8111
  "loading": props.isDeleting,
8096
8112
  "onClick": onDelete
8097
8113
  }, null)]);
@@ -8104,7 +8120,7 @@ var stdin_default$Z = vue.defineComponent({
8104
8120
  if (props.showSetDefault) {
8105
8121
  return vue.createVNode(Cell, {
8106
8122
  "title": props.setDefaultLabel,
8107
- "class": bem$P("switch-cell"),
8123
+ "class": bem$Q("switch-cell"),
8108
8124
  "border": false
8109
8125
  }, {
8110
8126
  "right-icon": renderSwitch
@@ -8113,11 +8129,11 @@ var stdin_default$Z = vue.defineComponent({
8113
8129
  };
8114
8130
  vue.watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
8115
8131
  return () => vue.createVNode(Form, {
8116
- "class": bem$P(),
8132
+ "class": bem$Q(),
8117
8133
  "onSubmit": onSave
8118
8134
  }, {
8119
8135
  default: () => [vue.createVNode("div", {
8120
- "class": bem$P("fields")
8136
+ "class": bem$Q("fields")
8121
8137
  }, [vue.createVNode(Field, {
8122
8138
  "modelValue": contact.name,
8123
8139
  "onUpdate:modelValue": ($event) => contact.name = $event,
@@ -8144,16 +8160,16 @@ var stdin_default$Z = vue.defineComponent({
8144
8160
  });
8145
8161
  }
8146
8162
  });
8147
- const ContactEdit = withInstall(stdin_default$Z);
8148
- const [name$P, bem$O, t$c] = createNamespace("contact-list");
8163
+ const ContactEdit = withInstall(stdin_default$_);
8164
+ const [name$Q, bem$P, t$c] = createNamespace("contact-list");
8149
8165
  const contactListProps = {
8150
8166
  list: Array,
8151
8167
  addText: String,
8152
8168
  modelValue: unknownProp,
8153
8169
  defaultTagText: String
8154
8170
  };
8155
- var stdin_default$Y = vue.defineComponent({
8156
- name: name$P,
8171
+ var stdin_default$Z = vue.defineComponent({
8172
+ name: name$Q,
8157
8173
  props: contactListProps,
8158
8174
  emits: ["add", "edit", "select", "update:modelValue"],
8159
8175
  setup(props, {
@@ -8165,13 +8181,13 @@ var stdin_default$Y = vue.defineComponent({
8165
8181
  emit("select", item, index);
8166
8182
  };
8167
8183
  const renderRightIcon = () => vue.createVNode(Radio, {
8168
- "class": bem$O("radio"),
8184
+ "class": bem$P("radio"),
8169
8185
  "name": item.id,
8170
8186
  "iconSize": 18
8171
8187
  }, null);
8172
8188
  const renderEditIcon = () => vue.createVNode(Icon, {
8173
8189
  "name": "edit",
8174
- "class": bem$O("edit"),
8190
+ "class": bem$P("edit"),
8175
8191
  "onClick": (event) => {
8176
8192
  event.stopPropagation();
8177
8193
  emit("edit", item, index);
@@ -8183,7 +8199,7 @@ var stdin_default$Y = vue.defineComponent({
8183
8199
  nodes.push(vue.createVNode(Tag, {
8184
8200
  "type": "primary",
8185
8201
  "round": true,
8186
- "class": bem$O("item-tag")
8202
+ "class": bem$P("item-tag")
8187
8203
  }, {
8188
8204
  default: () => [props.defaultTagText]
8189
8205
  }));
@@ -8194,8 +8210,8 @@ var stdin_default$Y = vue.defineComponent({
8194
8210
  "key": item.id,
8195
8211
  "isLink": true,
8196
8212
  "center": true,
8197
- "class": bem$O("item"),
8198
- "titleClass": bem$O("item-title"),
8213
+ "class": bem$P("item"),
8214
+ "titleClass": bem$P("item-title"),
8199
8215
  "onClick": onClick
8200
8216
  }, {
8201
8217
  icon: renderEditIcon,
@@ -8204,25 +8220,25 @@ var stdin_default$Y = vue.defineComponent({
8204
8220
  });
8205
8221
  };
8206
8222
  return () => vue.createVNode("div", {
8207
- "class": bem$O()
8223
+ "class": bem$P()
8208
8224
  }, [vue.createVNode(RadioGroup, {
8209
8225
  "modelValue": props.modelValue,
8210
- "class": bem$O("group")
8226
+ "class": bem$P("group")
8211
8227
  }, {
8212
8228
  default: () => [props.list && props.list.map(renderItem)]
8213
8229
  }), vue.createVNode("div", {
8214
- "class": [bem$O("bottom"), "van-safe-area-bottom"]
8230
+ "class": [bem$P("bottom"), "van-safe-area-bottom"]
8215
8231
  }, [vue.createVNode(Button, {
8216
8232
  "round": true,
8217
8233
  "block": true,
8218
8234
  "type": "primary",
8219
- "class": bem$O("add"),
8235
+ "class": bem$P("add"),
8220
8236
  "text": props.addText || t$c("addContact"),
8221
8237
  "onClick": () => emit("add")
8222
8238
  }, null)])]);
8223
8239
  }
8224
8240
  });
8225
- const ContactList = withInstall(stdin_default$Y);
8241
+ const ContactList = withInstall(stdin_default$Z);
8226
8242
  function parseFormat(format2, currentTime) {
8227
8243
  const { days } = currentTime;
8228
8244
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -8258,15 +8274,15 @@ function parseFormat(format2, currentTime) {
8258
8274
  }
8259
8275
  return format2;
8260
8276
  }
8261
- const [name$O, bem$N] = createNamespace("count-down");
8277
+ const [name$P, bem$O] = createNamespace("count-down");
8262
8278
  const countDownProps = {
8263
8279
  time: makeNumericProp(0),
8264
8280
  format: makeStringProp("HH:mm:ss"),
8265
8281
  autoStart: truthProp,
8266
8282
  millisecond: Boolean
8267
8283
  };
8268
- var stdin_default$X = vue.defineComponent({
8269
- name: name$O,
8284
+ var stdin_default$Y = vue.defineComponent({
8285
+ name: name$P,
8270
8286
  props: countDownProps,
8271
8287
  emits: ["change", "finish"],
8272
8288
  setup(props, {
@@ -8301,11 +8317,11 @@ var stdin_default$X = vue.defineComponent({
8301
8317
  });
8302
8318
  return () => vue.createVNode("div", {
8303
8319
  "role": "timer",
8304
- "class": bem$N()
8320
+ "class": bem$O()
8305
8321
  }, [slots.default ? slots.default(current2.value) : timeText.value]);
8306
8322
  }
8307
8323
  });
8308
- const CountDown = withInstall(stdin_default$X);
8324
+ const CountDown = withInstall(stdin_default$Y);
8309
8325
  function getDate(timeStamp) {
8310
8326
  const date = new Date(timeStamp * 1e3);
8311
8327
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -8314,9 +8330,9 @@ function getDate(timeStamp) {
8314
8330
  }
8315
8331
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
8316
8332
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
8317
- const [name$N, bem$M, t$b] = createNamespace("coupon");
8318
- var stdin_default$W = vue.defineComponent({
8319
- name: name$N,
8333
+ const [name$O, bem$N, t$b] = createNamespace("coupon");
8334
+ var stdin_default$X = vue.defineComponent({
8335
+ name: name$O,
8320
8336
  props: {
8321
8337
  chosen: Boolean,
8322
8338
  coupon: makeRequiredProp(Object),
@@ -8360,34 +8376,34 @@ var stdin_default$W = vue.defineComponent({
8360
8376
  } = props;
8361
8377
  const description = disabled && coupon.reason || coupon.description;
8362
8378
  return vue.createVNode("div", {
8363
- "class": bem$M({
8379
+ "class": bem$N({
8364
8380
  disabled
8365
8381
  })
8366
8382
  }, [vue.createVNode("div", {
8367
- "class": bem$M("content")
8383
+ "class": bem$N("content")
8368
8384
  }, [vue.createVNode("div", {
8369
- "class": bem$M("head")
8385
+ "class": bem$N("head")
8370
8386
  }, [vue.createVNode("h2", {
8371
- "class": bem$M("amount")
8387
+ "class": bem$N("amount")
8372
8388
  }, [faceAmount.value]), vue.createVNode("p", {
8373
- "class": bem$M("condition")
8389
+ "class": bem$N("condition")
8374
8390
  }, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
8375
- "class": bem$M("body")
8391
+ "class": bem$N("body")
8376
8392
  }, [vue.createVNode("p", {
8377
- "class": bem$M("name")
8393
+ "class": bem$N("name")
8378
8394
  }, [coupon.name]), vue.createVNode("p", {
8379
- "class": bem$M("valid")
8395
+ "class": bem$N("valid")
8380
8396
  }, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
8381
- "class": bem$M("corner"),
8397
+ "class": bem$N("corner"),
8382
8398
  "modelValue": chosen
8383
8399
  }, null)])]), description && vue.createVNode("p", {
8384
- "class": bem$M("description")
8400
+ "class": bem$N("description")
8385
8401
  }, [description])]);
8386
8402
  };
8387
8403
  }
8388
8404
  });
8389
- const Coupon = withInstall(stdin_default$W);
8390
- const [name$M, bem$L, t$a] = createNamespace("coupon-cell");
8405
+ const Coupon = withInstall(stdin_default$X);
8406
+ const [name$N, bem$M, t$a] = createNamespace("coupon-cell");
8391
8407
  const couponCellProps = {
8392
8408
  title: String,
8393
8409
  border: truthProp,
@@ -8415,34 +8431,34 @@ function formatValue({
8415
8431
  }
8416
8432
  return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8417
8433
  }
8418
- var stdin_default$V = vue.defineComponent({
8419
- name: name$M,
8434
+ var stdin_default$W = vue.defineComponent({
8435
+ name: name$N,
8420
8436
  props: couponCellProps,
8421
8437
  setup(props) {
8422
8438
  return () => {
8423
8439
  const selected = props.coupons[+props.chosenCoupon];
8424
8440
  return vue.createVNode(Cell, {
8425
- "class": bem$L(),
8441
+ "class": bem$M(),
8426
8442
  "value": formatValue(props),
8427
8443
  "title": props.title || t$a("title"),
8428
8444
  "border": props.border,
8429
8445
  "isLink": props.editable,
8430
- "valueClass": bem$L("value", {
8446
+ "valueClass": bem$M("value", {
8431
8447
  selected
8432
8448
  })
8433
8449
  }, null);
8434
8450
  };
8435
8451
  }
8436
8452
  });
8437
- const CouponCell = withInstall(stdin_default$V);
8438
- const [name$L, bem$K] = createNamespace("empty");
8453
+ const CouponCell = withInstall(stdin_default$W);
8454
+ const [name$M, bem$L] = createNamespace("empty");
8439
8455
  const emptyProps = {
8440
8456
  image: makeStringProp("default"),
8441
8457
  imageSize: [Number, String, Array],
8442
8458
  description: String
8443
8459
  };
8444
- var stdin_default$U = vue.defineComponent({
8445
- name: name$L,
8460
+ var stdin_default$V = vue.defineComponent({
8461
+ name: name$M,
8446
8462
  props: emptyProps,
8447
8463
  setup(props, {
8448
8464
  slots
@@ -8451,14 +8467,14 @@ var stdin_default$U = vue.defineComponent({
8451
8467
  const description = slots.description ? slots.description() : props.description;
8452
8468
  if (description) {
8453
8469
  return vue.createVNode("p", {
8454
- "class": bem$K("description")
8470
+ "class": bem$L("description")
8455
8471
  }, [description]);
8456
8472
  }
8457
8473
  };
8458
8474
  const renderBottom = () => {
8459
8475
  if (slots.default) {
8460
8476
  return vue.createVNode("div", {
8461
- "class": bem$K("bottom")
8477
+ "class": bem$L("bottom")
8462
8478
  }, [slots.default()]);
8463
8479
  }
8464
8480
  };
@@ -8743,15 +8759,15 @@ var stdin_default$U = vue.defineComponent({
8743
8759
  }, null);
8744
8760
  };
8745
8761
  return () => vue.createVNode("div", {
8746
- "class": bem$K()
8762
+ "class": bem$L()
8747
8763
  }, [vue.createVNode("div", {
8748
- "class": bem$K("image"),
8764
+ "class": bem$L("image"),
8749
8765
  "style": getSizeStyle(props.imageSize)
8750
8766
  }, [renderImage()]), renderDescription(), renderBottom()]);
8751
8767
  }
8752
8768
  });
8753
- const Empty = withInstall(stdin_default$U);
8754
- const [name$K, bem$J, t$9] = createNamespace("coupon-list");
8769
+ const Empty = withInstall(stdin_default$V);
8770
+ const [name$L, bem$K, t$9] = createNamespace("coupon-list");
8755
8771
  const couponListProps = {
8756
8772
  code: makeStringProp(""),
8757
8773
  coupons: makeArrayProp(),
@@ -8772,8 +8788,8 @@ const couponListProps = {
8772
8788
  exchangeButtonLoading: Boolean,
8773
8789
  exchangeButtonDisabled: Boolean
8774
8790
  };
8775
- var stdin_default$T = vue.defineComponent({
8776
- name: name$K,
8791
+ var stdin_default$U = vue.defineComponent({
8792
+ name: name$L,
8777
8793
  props: couponListProps,
8778
8794
  emits: ["change", "exchange", "update:code"],
8779
8795
  setup(props, {
@@ -8791,7 +8807,7 @@ var stdin_default$T = vue.defineComponent({
8791
8807
  const TABS_HEIGHT = 44;
8792
8808
  const rootHeight = use.useRect(root).height;
8793
8809
  const headerHeight = use.useRect(barRef).height + TABS_HEIGHT;
8794
- listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight.value) - headerHeight;
8810
+ listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight$1.value) - headerHeight;
8795
8811
  };
8796
8812
  const onExchange = () => {
8797
8813
  emit("exchange", currentCode.value);
@@ -8809,26 +8825,26 @@ var stdin_default$T = vue.defineComponent({
8809
8825
  "image": props.emptyImage
8810
8826
  }, {
8811
8827
  default: () => [vue.createVNode("p", {
8812
- "class": bem$J("empty-tip")
8828
+ "class": bem$K("empty-tip")
8813
8829
  }, [t$9("noCoupon")])]
8814
8830
  });
8815
8831
  const renderExchangeBar = () => {
8816
8832
  if (props.showExchangeBar) {
8817
8833
  return vue.createVNode("div", {
8818
8834
  "ref": barRef,
8819
- "class": bem$J("exchange-bar")
8835
+ "class": bem$K("exchange-bar")
8820
8836
  }, [vue.createVNode(Field, {
8821
8837
  "modelValue": currentCode.value,
8822
8838
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
8823
8839
  "clearable": true,
8824
8840
  "border": false,
8825
- "class": bem$J("field"),
8841
+ "class": bem$K("field"),
8826
8842
  "placeholder": props.inputPlaceholder || t$9("placeholder"),
8827
8843
  "maxlength": "20"
8828
8844
  }, null), vue.createVNode(Button, {
8829
8845
  "plain": true,
8830
8846
  "type": "primary",
8831
- "class": bem$J("exchange"),
8847
+ "class": bem$K("exchange"),
8832
8848
  "text": props.exchangeButtonText || t$9("exchange"),
8833
8849
  "loading": props.exchangeButtonLoading,
8834
8850
  "disabled": buttonDisabled.value,
@@ -8848,7 +8864,7 @@ var stdin_default$T = vue.defineComponent({
8848
8864
  default: () => {
8849
8865
  var _a;
8850
8866
  return [vue.createVNode("div", {
8851
- "class": bem$J("list", {
8867
+ "class": bem$K("list", {
8852
8868
  "with-bottom": props.showCloseButton
8853
8869
  }),
8854
8870
  "style": {
@@ -8877,7 +8893,7 @@ var stdin_default$T = vue.defineComponent({
8877
8893
  default: () => {
8878
8894
  var _a;
8879
8895
  return [vue.createVNode("div", {
8880
- "class": bem$J("list", {
8896
+ "class": bem$K("list", {
8881
8897
  "with-bottom": props.showCloseButton
8882
8898
  }),
8883
8899
  "style": {
@@ -8895,7 +8911,7 @@ var stdin_default$T = vue.defineComponent({
8895
8911
  vue.watch(() => props.code, (value) => {
8896
8912
  currentCode.value = value;
8897
8913
  });
8898
- vue.watch(windowHeight, updateListHeight);
8914
+ vue.watch(windowHeight$1, updateListHeight);
8899
8915
  vue.watch(currentCode, (value) => emit("update:code", value));
8900
8916
  vue.watch(() => props.displayedCouponIndex, scrollToCoupon);
8901
8917
  vue.onMounted(() => {
@@ -8904,28 +8920,28 @@ var stdin_default$T = vue.defineComponent({
8904
8920
  });
8905
8921
  return () => vue.createVNode("div", {
8906
8922
  "ref": root,
8907
- "class": bem$J()
8923
+ "class": bem$K()
8908
8924
  }, [renderExchangeBar(), vue.createVNode(Tabs, {
8909
8925
  "active": activeTab.value,
8910
8926
  "onUpdate:active": ($event) => activeTab.value = $event,
8911
- "class": bem$J("tab")
8927
+ "class": bem$K("tab")
8912
8928
  }, {
8913
8929
  default: () => [renderCouponTab(), renderDisabledTab()]
8914
8930
  }), vue.createVNode("div", {
8915
- "class": bem$J("bottom")
8931
+ "class": bem$K("bottom")
8916
8932
  }, [vue.withDirectives(vue.createVNode(Button, {
8917
8933
  "round": true,
8918
8934
  "block": true,
8919
8935
  "type": "primary",
8920
- "class": bem$J("close"),
8936
+ "class": bem$K("close"),
8921
8937
  "text": props.closeButtonText || t$9("close"),
8922
8938
  "onClick": () => emit("change", -1)
8923
8939
  }, null), [[vue.vShow, props.showCloseButton]])])]);
8924
8940
  }
8925
8941
  });
8926
- const CouponList = withInstall(stdin_default$T);
8942
+ const CouponList = withInstall(stdin_default$U);
8927
8943
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8928
- const [name$J] = createNamespace("date-picker");
8944
+ const [name$K] = createNamespace("date-picker");
8929
8945
  const datePickerProps = extend({}, sharedProps, {
8930
8946
  columnsType: {
8931
8947
  type: Array,
@@ -8942,8 +8958,8 @@ const datePickerProps = extend({}, sharedProps, {
8942
8958
  validator: isDate
8943
8959
  }
8944
8960
  });
8945
- var stdin_default$S = vue.defineComponent({
8946
- name: name$J,
8961
+ var stdin_default$T = vue.defineComponent({
8962
+ name: name$K,
8947
8963
  props: datePickerProps,
8948
8964
  emits: ["confirm", "cancel", "change", "update:modelValue"],
8949
8965
  setup(props, {
@@ -9036,8 +9052,8 @@ var stdin_default$S = vue.defineComponent({
9036
9052
  }, pick(props, pickerInheritKeys)), slots);
9037
9053
  }
9038
9054
  });
9039
- const DatePicker = withInstall(stdin_default$S);
9040
- const [name$I, bem$I, t$8] = createNamespace("dialog");
9055
+ const DatePicker = withInstall(stdin_default$T);
9056
+ const [name$J, bem$J, t$8] = createNamespace("dialog");
9041
9057
  const dialogProps = extend({}, popupSharedProps, {
9042
9058
  title: String,
9043
9059
  theme: String,
@@ -9060,8 +9076,8 @@ const dialogProps = extend({}, popupSharedProps, {
9060
9076
  closeOnClickOverlay: Boolean
9061
9077
  });
9062
9078
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
9063
- var stdin_default$R = vue.defineComponent({
9064
- name: name$I,
9079
+ var stdin_default$S = vue.defineComponent({
9080
+ name: name$J,
9065
9081
  props: dialogProps,
9066
9082
  emits: ["confirm", "cancel", "keydown", "update:show"],
9067
9083
  setup(props, {
@@ -9118,7 +9134,7 @@ var stdin_default$R = vue.defineComponent({
9118
9134
  const title = slots.title ? slots.title() : props.title;
9119
9135
  if (title) {
9120
9136
  return vue.createVNode("div", {
9121
- "class": bem$I("header", {
9137
+ "class": bem$J("header", {
9122
9138
  isolated: !props.message && !slots.default
9123
9139
  })
9124
9140
  }, [title]);
@@ -9130,7 +9146,7 @@ var stdin_default$R = vue.defineComponent({
9130
9146
  allowHtml,
9131
9147
  messageAlign
9132
9148
  } = props;
9133
- const classNames = bem$I("message", {
9149
+ const classNames = bem$J("message", {
9134
9150
  "has-title": hasTitle,
9135
9151
  [messageAlign]: messageAlign
9136
9152
  });
@@ -9148,7 +9164,7 @@ var stdin_default$R = vue.defineComponent({
9148
9164
  const renderContent = () => {
9149
9165
  if (slots.default) {
9150
9166
  return vue.createVNode("div", {
9151
- "class": bem$I("content")
9167
+ "class": bem$J("content")
9152
9168
  }, [slots.default()]);
9153
9169
  }
9154
9170
  const {
@@ -9160,18 +9176,18 @@ var stdin_default$R = vue.defineComponent({
9160
9176
  const hasTitle = !!(title || slots.title);
9161
9177
  return vue.createVNode("div", {
9162
9178
  "key": allowHtml ? 1 : 0,
9163
- "class": bem$I("content", {
9179
+ "class": bem$J("content", {
9164
9180
  isolated: !hasTitle
9165
9181
  })
9166
9182
  }, [renderMessage(hasTitle)]);
9167
9183
  }
9168
9184
  };
9169
9185
  const renderButtons = () => vue.createVNode("div", {
9170
- "class": [BORDER_TOP, bem$I("footer")]
9186
+ "class": [BORDER_TOP, bem$J("footer")]
9171
9187
  }, [props.showCancelButton && vue.createVNode(Button, {
9172
9188
  "size": "large",
9173
9189
  "text": props.cancelButtonText || t$8("cancel"),
9174
- "class": bem$I("cancel"),
9190
+ "class": bem$J("cancel"),
9175
9191
  "style": {
9176
9192
  color: props.cancelButtonColor
9177
9193
  },
@@ -9181,7 +9197,7 @@ var stdin_default$R = vue.defineComponent({
9181
9197
  }, null), props.showConfirmButton && vue.createVNode(Button, {
9182
9198
  "size": "large",
9183
9199
  "text": props.confirmButtonText || t$8("confirm"),
9184
- "class": [bem$I("confirm"), {
9200
+ "class": [bem$J("confirm"), {
9185
9201
  [BORDER_LEFT]: props.showCancelButton
9186
9202
  }],
9187
9203
  "style": {
@@ -9192,12 +9208,12 @@ var stdin_default$R = vue.defineComponent({
9192
9208
  "onClick": onConfirm
9193
9209
  }, null)]);
9194
9210
  const renderRoundButtons = () => vue.createVNode(ActionBar, {
9195
- "class": bem$I("footer")
9211
+ "class": bem$J("footer")
9196
9212
  }, {
9197
9213
  default: () => [props.showCancelButton && vue.createVNode(ActionBarButton, {
9198
9214
  "type": "warning",
9199
9215
  "text": props.cancelButtonText || t$8("cancel"),
9200
- "class": bem$I("cancel"),
9216
+ "class": bem$J("cancel"),
9201
9217
  "color": props.cancelButtonColor,
9202
9218
  "loading": loading.cancel,
9203
9219
  "disabled": props.cancelButtonDisabled,
@@ -9205,7 +9221,7 @@ var stdin_default$R = vue.defineComponent({
9205
9221
  }, null), props.showConfirmButton && vue.createVNode(ActionBarButton, {
9206
9222
  "type": "danger",
9207
9223
  "text": props.confirmButtonText || t$8("confirm"),
9208
- "class": bem$I("confirm"),
9224
+ "class": bem$J("confirm"),
9209
9225
  "color": props.confirmButtonColor,
9210
9226
  "loading": loading.confirm,
9211
9227
  "disabled": props.confirmButtonDisabled,
@@ -9229,7 +9245,7 @@ var stdin_default$R = vue.defineComponent({
9229
9245
  return vue.createVNode(Popup, vue.mergeProps({
9230
9246
  "ref": root,
9231
9247
  "role": "dialog",
9232
- "class": [bem$I([theme]), className],
9248
+ "class": [bem$J([theme]), className],
9233
9249
  "style": {
9234
9250
  width: addUnit(width)
9235
9251
  },
@@ -9279,7 +9295,7 @@ function initInstance$2() {
9279
9295
  state,
9280
9296
  toggle
9281
9297
  } = usePopupState();
9282
- return () => vue.createVNode(stdin_default$R, vue.mergeProps(state, {
9298
+ return () => vue.createVNode(stdin_default$S, vue.mergeProps(state, {
9283
9299
  "onUpdate:show": toggle
9284
9300
  }), null);
9285
9301
  }
@@ -9317,16 +9333,16 @@ const closeDialog = () => {
9317
9333
  instance$2.toggle(false);
9318
9334
  }
9319
9335
  };
9320
- const Dialog = withInstall(stdin_default$R);
9321
- const [name$H, bem$H] = createNamespace("divider");
9336
+ const Dialog = withInstall(stdin_default$S);
9337
+ const [name$I, bem$I] = createNamespace("divider");
9322
9338
  const dividerProps = {
9323
9339
  dashed: Boolean,
9324
9340
  hairline: truthProp,
9325
9341
  vertical: Boolean,
9326
9342
  contentPosition: makeStringProp("center")
9327
9343
  };
9328
- var stdin_default$Q = vue.defineComponent({
9329
- name: name$H,
9344
+ var stdin_default$R = vue.defineComponent({
9345
+ name: name$I,
9330
9346
  props: dividerProps,
9331
9347
  setup(props, {
9332
9348
  slots
@@ -9335,7 +9351,7 @@ var stdin_default$Q = vue.defineComponent({
9335
9351
  var _a;
9336
9352
  return vue.createVNode("div", {
9337
9353
  "role": "separator",
9338
- "class": bem$H({
9354
+ "class": bem$I({
9339
9355
  dashed: props.dashed,
9340
9356
  hairline: props.hairline,
9341
9357
  vertical: props.vertical,
@@ -9345,8 +9361,8 @@ var stdin_default$Q = vue.defineComponent({
9345
9361
  };
9346
9362
  }
9347
9363
  });
9348
- const Divider = withInstall(stdin_default$Q);
9349
- const [name$G, bem$G] = createNamespace("dropdown-menu");
9364
+ const Divider = withInstall(stdin_default$R);
9365
+ const [name$H, bem$H] = createNamespace("dropdown-menu");
9350
9366
  const dropdownMenuProps = {
9351
9367
  overlay: truthProp,
9352
9368
  zIndex: numericProp,
@@ -9356,9 +9372,9 @@ const dropdownMenuProps = {
9356
9372
  closeOnClickOutside: truthProp,
9357
9373
  closeOnClickOverlay: truthProp
9358
9374
  };
9359
- const DROPDOWN_KEY = Symbol(name$G);
9360
- var stdin_default$P = vue.defineComponent({
9361
- name: name$G,
9375
+ const DROPDOWN_KEY = Symbol(name$H);
9376
+ var stdin_default$Q = vue.defineComponent({
9377
+ name: name$H,
9362
9378
  props: dropdownMenuProps,
9363
9379
  setup(props, {
9364
9380
  slots
@@ -9380,11 +9396,14 @@ var stdin_default$P = vue.defineComponent({
9380
9396
  };
9381
9397
  }
9382
9398
  });
9399
+ const close = () => {
9400
+ children.forEach((item) => {
9401
+ item.toggle(false);
9402
+ });
9403
+ };
9383
9404
  const onClickAway = () => {
9384
9405
  if (props.closeOnClickOutside) {
9385
- children.forEach((item) => {
9386
- item.toggle(false);
9387
- });
9406
+ close();
9388
9407
  }
9389
9408
  };
9390
9409
  const updateOffset = () => {
@@ -9393,7 +9412,7 @@ var stdin_default$P = vue.defineComponent({
9393
9412
  if (props.direction === "down") {
9394
9413
  offset.value = rect.bottom;
9395
9414
  } else {
9396
- offset.value = windowHeight.value - rect.top;
9415
+ offset.value = windowHeight$1.value - rect.top;
9397
9416
  }
9398
9417
  }
9399
9418
  };
@@ -9425,7 +9444,7 @@ var stdin_default$P = vue.defineComponent({
9425
9444
  "id": `${id}-${index}`,
9426
9445
  "role": "button",
9427
9446
  "tabindex": disabled ? void 0 : 0,
9428
- "class": [bem$G("item", {
9447
+ "class": [bem$H("item", {
9429
9448
  disabled
9430
9449
  }), {
9431
9450
  [HAPTICS_FEEDBACK]: !disabled
@@ -9436,7 +9455,7 @@ var stdin_default$P = vue.defineComponent({
9436
9455
  }
9437
9456
  }
9438
9457
  }, [vue.createVNode("span", {
9439
- "class": [bem$G("title", {
9458
+ "class": [bem$H("title", {
9440
9459
  down: showPopup === (props.direction === "down"),
9441
9460
  active: showPopup
9442
9461
  }), titleClass],
@@ -9447,6 +9466,9 @@ var stdin_default$P = vue.defineComponent({
9447
9466
  "class": "van-ellipsis"
9448
9467
  }, [item.renderTitle()])])]);
9449
9468
  };
9469
+ useExpose({
9470
+ close
9471
+ });
9450
9472
  linkChildren({
9451
9473
  id,
9452
9474
  props,
@@ -9462,18 +9484,18 @@ var stdin_default$P = vue.defineComponent({
9462
9484
  var _a;
9463
9485
  return vue.createVNode("div", {
9464
9486
  "ref": root,
9465
- "class": bem$G()
9487
+ "class": bem$H()
9466
9488
  }, [vue.createVNode("div", {
9467
9489
  "ref": barRef,
9468
9490
  "style": barStyle.value,
9469
- "class": bem$G("bar", {
9491
+ "class": bem$H("bar", {
9470
9492
  opened: opened.value
9471
9493
  })
9472
9494
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
9473
9495
  };
9474
9496
  }
9475
9497
  });
9476
- const [name$F, bem$F] = createNamespace("dropdown-item");
9498
+ const [name$G, bem$G] = createNamespace("dropdown-item");
9477
9499
  const dropdownItemProps = {
9478
9500
  title: String,
9479
9501
  options: makeArrayProp(),
@@ -9483,8 +9505,8 @@ const dropdownItemProps = {
9483
9505
  modelValue: unknownProp,
9484
9506
  titleClass: unknownProp
9485
9507
  };
9486
- var stdin_default$O = vue.defineComponent({
9487
- name: name$F,
9508
+ var stdin_default$P = vue.defineComponent({
9509
+ name: name$G,
9488
9510
  inheritAttrs: false,
9489
9511
  props: dropdownItemProps,
9490
9512
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
@@ -9557,7 +9579,7 @@ var stdin_default$O = vue.defineComponent({
9557
9579
  const renderIcon = () => {
9558
9580
  if (active) {
9559
9581
  return vue.createVNode(Icon, {
9560
- "class": bem$F("icon"),
9582
+ "class": bem$G("icon"),
9561
9583
  "color": activeColor,
9562
9584
  "name": "success"
9563
9585
  }, null);
@@ -9568,7 +9590,7 @@ var stdin_default$O = vue.defineComponent({
9568
9590
  "key": option.value,
9569
9591
  "icon": option.icon,
9570
9592
  "title": option.text,
9571
- "class": bem$F("option", {
9593
+ "class": bem$G("option", {
9572
9594
  active
9573
9595
  }),
9574
9596
  "style": {
@@ -9600,13 +9622,13 @@ var stdin_default$O = vue.defineComponent({
9600
9622
  }
9601
9623
  return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
9602
9624
  "style": style,
9603
- "class": bem$F([direction]),
9625
+ "class": bem$G([direction]),
9604
9626
  "onClick": onClickWrapper
9605
9627
  }, attrs), [vue.createVNode(Popup, {
9606
9628
  "show": state.showPopup,
9607
9629
  "onUpdate:show": ($event) => state.showPopup = $event,
9608
9630
  "role": "menu",
9609
- "class": bem$F("content"),
9631
+ "class": bem$G("content"),
9610
9632
  "overlay": overlay,
9611
9633
  "position": direction === "down" ? "top" : "bottom",
9612
9634
  "duration": state.transition ? duration : 0,
@@ -9644,8 +9666,124 @@ var stdin_default$O = vue.defineComponent({
9644
9666
  };
9645
9667
  }
9646
9668
  });
9647
- const DropdownItem = withInstall(stdin_default$O);
9648
- const DropdownMenu = withInstall(stdin_default$P);
9669
+ const DropdownItem = withInstall(stdin_default$P);
9670
+ const DropdownMenu = withInstall(stdin_default$Q);
9671
+ const {
9672
+ height: windowHeight
9673
+ } = use.useWindowSize();
9674
+ const floatingPanelProps = {
9675
+ height: makeNumericProp(0),
9676
+ anchors: makeArrayProp(),
9677
+ duration: makeNumericProp(0.2),
9678
+ contentDraggable: truthProp,
9679
+ safeAreaInsetBottom: truthProp
9680
+ };
9681
+ const [name$F, bem$F] = createNamespace("floating-panel");
9682
+ const DAMP = 0.2;
9683
+ var stdin_default$O = vue.defineComponent({
9684
+ name: name$F,
9685
+ props: floatingPanelProps,
9686
+ emits: ["heightChange", "update:height"],
9687
+ setup(props, {
9688
+ emit,
9689
+ slots
9690
+ }) {
9691
+ const rootRef = vue.ref();
9692
+ const contentRef = vue.ref();
9693
+ const height = useSyncPropRef(() => +props.height, (value) => emit("update:height", value));
9694
+ const boundary = vue.computed(() => {
9695
+ var _a, _b;
9696
+ return {
9697
+ min: (_a = props.anchors[0]) != null ? _a : 100,
9698
+ max: (_b = props.anchors[props.anchors.length - 1]) != null ? _b : Math.round(windowHeight.value * 0.6)
9699
+ };
9700
+ });
9701
+ const anchors = vue.computed(() => props.anchors.length >= 2 ? props.anchors : [boundary.value.min, boundary.value.max]);
9702
+ const dragging = vue.ref(false);
9703
+ const rootStyle = vue.computed(() => ({
9704
+ height: addUnit(boundary.value.max),
9705
+ transform: `translateY(calc(100% + ${addUnit(-height.value)}))`,
9706
+ transition: !dragging.value ? `transform ${props.duration}s` : "none"
9707
+ }));
9708
+ const ease = (moveY) => {
9709
+ const absDistance = Math.abs(moveY);
9710
+ const {
9711
+ min,
9712
+ max
9713
+ } = boundary.value;
9714
+ if (absDistance > max) {
9715
+ return -(max + (absDistance - max) * DAMP);
9716
+ }
9717
+ if (absDistance < min) {
9718
+ return -(min - (min - absDistance) * DAMP);
9719
+ }
9720
+ return moveY;
9721
+ };
9722
+ const closest = (arr, target) => arr.reduce((pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur);
9723
+ let startY;
9724
+ const touch = useTouch();
9725
+ const onTouchstart = (e) => {
9726
+ touch.start(e);
9727
+ dragging.value = true;
9728
+ startY = -height.value;
9729
+ };
9730
+ const onTouchmove = (e) => {
9731
+ var _a;
9732
+ touch.move(e);
9733
+ const target = e.target;
9734
+ if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
9735
+ if (!props.contentDraggable)
9736
+ return;
9737
+ if (-startY < boundary.value.max) {
9738
+ if (e.cancelable)
9739
+ e.preventDefault();
9740
+ e.stopPropagation();
9741
+ } else if (!(contentRef.value.scrollTop <= 0 && touch.deltaY.value > 0)) {
9742
+ return;
9743
+ }
9744
+ }
9745
+ const moveY = touch.deltaY.value + startY;
9746
+ height.value = -ease(moveY);
9747
+ };
9748
+ const onTouchend = () => {
9749
+ dragging.value = false;
9750
+ height.value = closest(anchors.value, height.value);
9751
+ if (height.value !== -startY) {
9752
+ emit("heightChange", {
9753
+ height: height.value
9754
+ });
9755
+ }
9756
+ };
9757
+ vue.watch(boundary, () => {
9758
+ height.value = closest(anchors.value, height.value);
9759
+ }, {
9760
+ immediate: true
9761
+ });
9762
+ useLockScroll(rootRef, () => true);
9763
+ return () => {
9764
+ var _a;
9765
+ return vue.createVNode("div", {
9766
+ "class": [bem$F(), {
9767
+ "van-safe-area-bottom": props.safeAreaInsetBottom
9768
+ }],
9769
+ "ref": rootRef,
9770
+ "style": rootStyle.value,
9771
+ "onTouchstartPassive": onTouchstart,
9772
+ "onTouchmove": onTouchmove,
9773
+ "onTouchend": onTouchend,
9774
+ "onTouchcancel": onTouchend
9775
+ }, [vue.createVNode("div", {
9776
+ "class": bem$F("header")
9777
+ }, [vue.createVNode("div", {
9778
+ "class": bem$F("header-bar")
9779
+ }, null)]), vue.createVNode("div", {
9780
+ "class": bem$F("content"),
9781
+ "ref": contentRef
9782
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
9783
+ };
9784
+ }
9785
+ });
9786
+ const FloatingPanel = withInstall(stdin_default$O);
9649
9787
  const [name$E, bem$E] = createNamespace("grid");
9650
9788
  const gridProps = {
9651
9789
  square: Boolean,
@@ -10260,7 +10398,7 @@ var stdin_default$K = vue.defineComponent({
10260
10398
  swipeTo
10261
10399
  });
10262
10400
  vue.onMounted(resize);
10263
- vue.watch([windowWidth, windowHeight], resize);
10401
+ vue.watch([windowWidth, windowHeight$1], resize);
10264
10402
  vue.watch(() => props.startPosition, (value) => setActive(+value));
10265
10403
  vue.watch(() => props.show, (value) => {
10266
10404
  const {
@@ -11644,7 +11782,7 @@ var stdin_default$A = vue.defineComponent({
11644
11782
  }
11645
11783
  });
11646
11784
  const PasswordInput = withInstall(stdin_default$A);
11647
- const PickerGroup = withInstall(stdin_default$1v);
11785
+ const PickerGroup = withInstall(stdin_default$1w);
11648
11786
  const [name$r, bem$q] = createNamespace("popover");
11649
11787
  const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
11650
11788
  const popoverProps = {
@@ -12297,7 +12435,7 @@ var stdin_default$w = vue.defineComponent({
12297
12435
  }
12298
12436
  });
12299
12437
  const Rate = withInstall(stdin_default$w);
12300
- const Row = withInstall(stdin_default$12);
12438
+ const Row = withInstall(stdin_default$13);
12301
12439
  const [name$n, bem$m, t$4] = createNamespace("search");
12302
12440
  const searchProps = extend({}, fieldSharedProps, {
12303
12441
  label: String,
@@ -13129,17 +13267,25 @@ var stdin_default$i = vue.defineComponent({
13129
13267
  return bem$c("button-wrapper", props.reverse ? "left" : "right");
13130
13268
  };
13131
13269
  const renderButtonContent = (value, index) => {
13270
+ const dragging = dragStatus.value === "dragging";
13132
13271
  if (typeof index === "number") {
13133
13272
  const slot = slots[index === 0 ? "left-button" : "right-button"];
13273
+ let dragIndex;
13274
+ if (dragging && Array.isArray(current2)) {
13275
+ dragIndex = current2[0] > current2[1] ? buttonIndex ^ 1 : buttonIndex;
13276
+ }
13134
13277
  if (slot) {
13135
13278
  return slot({
13136
- value
13279
+ value,
13280
+ dragging,
13281
+ dragIndex
13137
13282
  });
13138
13283
  }
13139
13284
  }
13140
13285
  if (slots.button) {
13141
13286
  return slots.button({
13142
- value
13287
+ value,
13288
+ dragging
13143
13289
  });
13144
13290
  }
13145
13291
  return vue.createVNode("div", {
@@ -14215,6 +14361,8 @@ var stdin_default$9 = vue.defineComponent({
14215
14361
  });
14216
14362
  const TextEllipsis = withInstall(stdin_default$9);
14217
14363
  const [name$3] = createNamespace("time-picker");
14364
+ const validateTime = (val) => /^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(val);
14365
+ const fullColumns = ["hour", "minute", "second"];
14218
14366
  const timePickerProps = extend({}, sharedProps, {
14219
14367
  minHour: makeNumericProp(0),
14220
14368
  maxHour: makeNumericProp(23),
@@ -14222,10 +14370,19 @@ const timePickerProps = extend({}, sharedProps, {
14222
14370
  maxMinute: makeNumericProp(59),
14223
14371
  minSecond: makeNumericProp(0),
14224
14372
  maxSecond: makeNumericProp(59),
14373
+ minTime: {
14374
+ type: String,
14375
+ validator: validateTime
14376
+ },
14377
+ maxTime: {
14378
+ type: String,
14379
+ validator: validateTime
14380
+ },
14225
14381
  columnsType: {
14226
14382
  type: Array,
14227
14383
  default: () => ["hour", "minute"]
14228
- }
14384
+ },
14385
+ filter: Function
14229
14386
  });
14230
14387
  var stdin_default$8 = vue.defineComponent({
14231
14388
  name: name$3,
@@ -14236,25 +14393,66 @@ var stdin_default$8 = vue.defineComponent({
14236
14393
  slots
14237
14394
  }) {
14238
14395
  const currentValues = vue.ref(props.modelValue);
14239
- const columns = vue.computed(() => props.columnsType.map((type) => {
14240
- const {
14241
- filter,
14242
- formatter
14396
+ const getValidTime = (time) => {
14397
+ const timeLimitArr = time.split(":");
14398
+ return fullColumns.map((col, i) => props.columnsType.includes(col) ? timeLimitArr[i] : "00");
14399
+ };
14400
+ const columns = vue.computed(() => {
14401
+ let {
14402
+ minHour,
14403
+ maxHour,
14404
+ minMinute,
14405
+ maxMinute,
14406
+ minSecond,
14407
+ maxSecond
14243
14408
  } = props;
14244
- switch (type) {
14245
- case "hour":
14246
- return genOptions(+props.minHour, +props.maxHour, type, formatter, filter);
14247
- case "minute":
14248
- return genOptions(+props.minMinute, +props.maxMinute, type, formatter, filter);
14249
- case "second":
14250
- return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
14251
- default:
14252
- if (process.env.NODE_ENV !== "production") {
14253
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
14254
- }
14255
- return [];
14256
- }
14257
- }));
14409
+ if (props.minTime || props.maxTime) {
14410
+ const fullTime = {
14411
+ hour: 0,
14412
+ minute: 0,
14413
+ second: 0
14414
+ };
14415
+ props.columnsType.forEach((col, i) => {
14416
+ var _a;
14417
+ fullTime[col] = (_a = currentValues.value[i]) != null ? _a : 0;
14418
+ });
14419
+ const {
14420
+ hour,
14421
+ minute
14422
+ } = fullTime;
14423
+ if (props.minTime) {
14424
+ const [minH, minM, minS] = getValidTime(props.minTime);
14425
+ minHour = minH;
14426
+ minMinute = +hour <= +minHour ? minM : "00";
14427
+ minSecond = +hour <= +minHour && +minute <= +minMinute ? minS : "00";
14428
+ }
14429
+ if (props.maxTime) {
14430
+ const [maxH, maxM, maxS] = getValidTime(props.maxTime);
14431
+ maxHour = maxH;
14432
+ maxMinute = +hour >= +maxHour ? maxM : "59";
14433
+ maxSecond = +hour >= +maxHour && +minute >= +maxMinute ? maxS : "59";
14434
+ }
14435
+ }
14436
+ return props.columnsType.map((type) => {
14437
+ const {
14438
+ filter,
14439
+ formatter
14440
+ } = props;
14441
+ switch (type) {
14442
+ case "hour":
14443
+ return genOptions(+minHour, +maxHour, type, formatter, filter, currentValues.value);
14444
+ case "minute":
14445
+ return genOptions(+minMinute, +maxMinute, type, formatter, filter, currentValues.value);
14446
+ case "second":
14447
+ return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
14448
+ default:
14449
+ if (process.env.NODE_ENV !== "production") {
14450
+ throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
14451
+ }
14452
+ return [];
14453
+ }
14454
+ });
14455
+ });
14258
14456
  vue.watch(currentValues, (newValues) => {
14259
14457
  if (!isSameValue(newValues, props.modelValue)) {
14260
14458
  emit("update:modelValue", newValues);
@@ -15810,7 +16008,7 @@ const Lazyload = {
15810
16008
  });
15811
16009
  }
15812
16010
  };
15813
- const version = "4.4.1";
16011
+ const version = "4.5.0";
15814
16012
  function install(app) {
15815
16013
  const components = [
15816
16014
  ActionBar,
@@ -15850,6 +16048,7 @@ function install(app) {
15850
16048
  DropdownMenu,
15851
16049
  Empty,
15852
16050
  Field,
16051
+ FloatingPanel,
15853
16052
  Form,
15854
16053
  Grid,
15855
16054
  GridItem,
@@ -15961,6 +16160,7 @@ exports.DropdownItem = DropdownItem;
15961
16160
  exports.DropdownMenu = DropdownMenu;
15962
16161
  exports.Empty = Empty;
15963
16162
  exports.Field = Field;
16163
+ exports.FloatingPanel = FloatingPanel;
15964
16164
  exports.Form = Form;
15965
16165
  exports.Grid = Grid;
15966
16166
  exports.GridItem = GridItem;