vant 3.2.7 → 3.3.2

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 (191) hide show
  1. package/es/address-edit/AddressEdit.js +154 -180
  2. package/es/address-edit/AddressEditDetail.d.ts +10 -9
  3. package/es/address-edit/AddressEditDetail.js +6 -6
  4. package/es/button/Button.js +2 -2
  5. package/es/calendar/Calendar.js +8 -14
  6. package/es/calendar/CalendarHeader.js +1 -3
  7. package/es/calendar/CalendarMonth.js +11 -10
  8. package/es/calendar/types.d.ts +1 -1
  9. package/es/cascader/Cascader.js +17 -5
  10. package/es/checkbox/Checker.js +1 -1
  11. package/es/checkbox/types.d.ts +2 -6
  12. package/es/composables/use-id.d.ts +1 -0
  13. package/es/composables/use-id.js +14 -0
  14. package/es/composables/use-route.d.ts +1 -1
  15. package/es/composables/use-route.js +4 -4
  16. package/es/count-down/CountDown.js +1 -0
  17. package/es/coupon-list/CouponList.js +40 -24
  18. package/es/coupon-list/index.css +1 -1
  19. package/es/coupon-list/index.less +0 -5
  20. package/es/dropdown-item/DropdownItem.js +7 -2
  21. package/es/dropdown-item/types.d.ts +2 -6
  22. package/es/dropdown-menu/DropdownMenu.js +7 -3
  23. package/es/dropdown-menu/types.d.ts +1 -0
  24. package/es/empty/Network.js +22 -34
  25. package/es/field/Field.d.ts +1 -1
  26. package/es/field/Field.js +13 -5
  27. package/es/field/index.d.ts +2 -2
  28. package/es/field/types.d.ts +7 -6
  29. package/es/form/Form.js +2 -2
  30. package/es/image/Image.js +4 -9
  31. package/es/image-preview/ImagePreview.js +3 -4
  32. package/es/index.d.ts +1 -1
  33. package/es/index.js +1 -1
  34. package/es/lazyload/index.d.ts +1 -1
  35. package/es/lazyload/index.js +1 -1
  36. package/es/lazyload/vue-lazyload/index.d.ts +55 -0
  37. package/es/lazyload/vue-lazyload/index.js +46 -0
  38. package/es/lazyload/vue-lazyload/lazy-component.js +53 -0
  39. package/es/lazyload/vue-lazyload/lazy-container.js +98 -0
  40. package/es/lazyload/vue-lazyload/lazy-image.js +115 -0
  41. package/es/lazyload/vue-lazyload/lazy.js +507 -0
  42. package/es/lazyload/vue-lazyload/listener.js +241 -0
  43. package/es/lazyload/vue-lazyload/util.js +183 -0
  44. package/es/list/List.js +3 -1
  45. package/es/nav-bar/NavBar.d.ts +1 -1
  46. package/es/nav-bar/index.d.ts +1 -1
  47. package/es/number-keyboard/NumberKeyboardKey.js +4 -4
  48. package/es/pagination/Pagination.js +67 -49
  49. package/es/pagination/index.css +1 -1
  50. package/es/pagination/index.less +32 -31
  51. package/es/password-input/PasswordInput.d.ts +21 -1
  52. package/es/password-input/PasswordInput.js +10 -9
  53. package/es/password-input/index.d.ts +2 -1
  54. package/es/popover/Popover.js +2 -0
  55. package/es/popup/Popup.d.ts +1 -2
  56. package/es/popup/Popup.js +2 -5
  57. package/es/popup/index.d.ts +1 -2
  58. package/es/progress/Progress.js +2 -2
  59. package/es/rate/Rate.js +5 -3
  60. package/es/search/Search.js +8 -2
  61. package/es/sidebar/Sidebar.js +1 -0
  62. package/es/sidebar-item/SidebarItem.js +4 -1
  63. package/es/slider/Slider.js +5 -3
  64. package/es/stepper/Stepper.js +11 -8
  65. package/es/submit-bar/SubmitBar.d.ts +4 -3
  66. package/es/submit-bar/index.d.ts +3 -2
  67. package/es/swipe/Swipe.js +11 -6
  68. package/es/swipe/types.d.ts +1 -3
  69. package/es/switch/Switch.js +1 -0
  70. package/es/switch/index.css +1 -1
  71. package/es/switch/index.less +2 -0
  72. package/es/tab/Tab.js +18 -5
  73. package/es/tab/index.css +1 -1
  74. package/es/tab/index.less +1 -1
  75. package/es/tabbar/Tabbar.d.ts +1 -1
  76. package/es/tabbar/Tabbar.js +10 -10
  77. package/es/tabbar-item/TabbarItem.js +16 -7
  78. package/es/tabs/Tabs.js +17 -11
  79. package/es/tabs/TabsTitle.d.ts +6 -0
  80. package/es/tabs/TabsTitle.js +7 -1
  81. package/es/tabs/types.d.ts +1 -0
  82. package/es/uploader/UploaderPreviewItem.js +4 -1
  83. package/es/uploader/utils.d.ts +2 -2
  84. package/es/uploader/utils.js +2 -2
  85. package/es/utils/dom.d.ts +1 -0
  86. package/es/utils/dom.js +6 -2
  87. package/es/utils/format.js +6 -5
  88. package/es/vue-tsx-shim.d.ts +1 -0
  89. package/lib/address-edit/AddressEdit.js +155 -180
  90. package/lib/address-edit/AddressEditDetail.d.ts +10 -9
  91. package/lib/address-edit/AddressEditDetail.js +6 -6
  92. package/lib/button/Button.js +1 -1
  93. package/lib/calendar/Calendar.js +8 -14
  94. package/lib/calendar/CalendarHeader.js +1 -3
  95. package/lib/calendar/CalendarMonth.js +11 -10
  96. package/lib/calendar/types.d.ts +1 -1
  97. package/lib/cascader/Cascader.js +17 -5
  98. package/lib/checkbox/Checker.js +1 -1
  99. package/lib/checkbox/types.d.ts +2 -6
  100. package/lib/composables/use-id.d.ts +1 -0
  101. package/lib/composables/use-id.js +21 -0
  102. package/lib/composables/use-route.d.ts +1 -1
  103. package/lib/composables/use-route.js +4 -4
  104. package/lib/count-down/CountDown.js +1 -0
  105. package/lib/coupon-list/CouponList.js +39 -22
  106. package/lib/coupon-list/index.css +1 -1
  107. package/lib/coupon-list/index.less +0 -5
  108. package/lib/dropdown-item/DropdownItem.js +7 -2
  109. package/lib/dropdown-item/types.d.ts +2 -6
  110. package/lib/dropdown-menu/DropdownMenu.js +7 -2
  111. package/lib/dropdown-menu/types.d.ts +1 -0
  112. package/lib/empty/Network.js +22 -34
  113. package/lib/field/Field.d.ts +1 -1
  114. package/lib/field/Field.js +14 -5
  115. package/lib/field/index.d.ts +2 -2
  116. package/lib/field/types.d.ts +7 -6
  117. package/lib/form/Form.js +1 -1
  118. package/lib/image/Image.js +4 -9
  119. package/lib/image-preview/ImagePreview.js +1 -2
  120. package/lib/index.css +1 -1
  121. package/lib/index.d.ts +1 -1
  122. package/lib/index.js +1 -1
  123. package/lib/lazyload/index.d.ts +1 -1
  124. package/lib/lazyload/index.js +3 -3
  125. package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
  126. package/lib/lazyload/vue-lazyload/index.js +58 -0
  127. package/lib/lazyload/vue-lazyload/lazy-component.js +62 -0
  128. package/lib/lazyload/vue-lazyload/lazy-container.js +106 -0
  129. package/lib/lazyload/vue-lazyload/lazy-image.js +125 -0
  130. package/lib/lazyload/vue-lazyload/lazy.js +520 -0
  131. package/lib/lazyload/vue-lazyload/listener.js +251 -0
  132. package/lib/lazyload/vue-lazyload/util.js +213 -0
  133. package/lib/list/List.js +3 -1
  134. package/lib/nav-bar/NavBar.d.ts +1 -1
  135. package/lib/nav-bar/index.d.ts +1 -1
  136. package/lib/number-keyboard/NumberKeyboardKey.js +3 -3
  137. package/lib/pagination/Pagination.js +65 -47
  138. package/lib/pagination/index.css +1 -1
  139. package/lib/pagination/index.less +32 -31
  140. package/lib/password-input/PasswordInput.d.ts +21 -1
  141. package/lib/password-input/PasswordInput.js +10 -9
  142. package/lib/password-input/index.d.ts +2 -1
  143. package/lib/popover/Popover.js +2 -0
  144. package/lib/popup/Popup.d.ts +1 -2
  145. package/lib/popup/Popup.js +2 -5
  146. package/lib/popup/index.d.ts +1 -2
  147. package/lib/progress/Progress.js +2 -2
  148. package/lib/rate/Rate.js +5 -3
  149. package/lib/search/Search.js +9 -2
  150. package/lib/sidebar/Sidebar.js +1 -0
  151. package/lib/sidebar-item/SidebarItem.js +4 -1
  152. package/lib/slider/Slider.js +5 -3
  153. package/lib/stepper/Stepper.js +11 -8
  154. package/lib/submit-bar/SubmitBar.d.ts +4 -3
  155. package/lib/submit-bar/index.d.ts +3 -2
  156. package/lib/swipe/Swipe.js +9 -4
  157. package/lib/swipe/types.d.ts +1 -3
  158. package/lib/switch/Switch.js +1 -0
  159. package/lib/switch/index.css +1 -1
  160. package/lib/switch/index.less +2 -0
  161. package/lib/tab/Tab.js +20 -5
  162. package/lib/tab/index.css +1 -1
  163. package/lib/tab/index.less +1 -1
  164. package/lib/tabbar/Tabbar.d.ts +1 -1
  165. package/lib/tabbar/Tabbar.js +10 -10
  166. package/lib/tabbar-item/TabbarItem.js +16 -7
  167. package/lib/tabs/Tabs.js +16 -9
  168. package/lib/tabs/TabsTitle.d.ts +6 -0
  169. package/lib/tabs/TabsTitle.js +7 -1
  170. package/lib/tabs/types.d.ts +1 -0
  171. package/lib/uploader/UploaderPreviewItem.js +3 -0
  172. package/lib/uploader/utils.d.ts +2 -2
  173. package/lib/uploader/utils.js +3 -2
  174. package/lib/utils/dom.d.ts +1 -0
  175. package/lib/utils/dom.js +9 -2
  176. package/lib/utils/format.js +7 -5
  177. package/lib/vant.cjs.js +14407 -0
  178. package/lib/vant.cjs.min.js +1 -0
  179. package/lib/vant.es.js +1217 -2203
  180. package/lib/vant.es.min.js +1217 -2203
  181. package/lib/vant.js +1349 -1254
  182. package/lib/vant.min.js +1 -1
  183. package/lib/vue-tsx-shim.d.ts +1 -0
  184. package/package.json +27 -13
  185. package/vetur/attributes.json +115 -115
  186. package/vetur/tags.json +35 -35
  187. package/vetur/web-types.json +370 -366
  188. package/es/composables/use-link-field.d.ts +0 -0
  189. package/es/composables/use-link-field.js +0 -0
  190. package/lib/composables/use-link-field.d.ts +0 -0
  191. package/lib/composables/use-link-field.js +0 -1
package/lib/index.d.ts CHANGED
@@ -90,4 +90,4 @@ declare namespace _default {
90
90
  }
91
91
  export default _default;
92
92
  export function install(app: any): void;
93
- export const version: "3.2.7";
93
+ export const version: "3.3.2";
package/lib/index.js CHANGED
@@ -782,7 +782,7 @@ Object.keys(_uploader).forEach(function (key) {
782
782
  if (key in exports && exports[key] === _uploader[key]) return;
783
783
  exports[key] = _uploader[key];
784
784
  });
785
- var version = '3.2.7';
785
+ var version = '3.3.2';
786
786
  exports.version = version;
787
787
 
788
788
  function install(app) {
@@ -1,3 +1,3 @@
1
- import { Lazyload } from '@vant/lazyload';
1
+ import { Lazyload } from './vue-lazyload';
2
2
  export default Lazyload;
3
3
  export { Lazyload };
@@ -3,8 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
- var _lazyload = require("@vant/lazyload");
6
+ var _vueLazyload = require("./vue-lazyload");
7
7
 
8
- exports.Lazyload = _lazyload.Lazyload;
9
- var _default = _lazyload.Lazyload;
8
+ exports.Lazyload = _vueLazyload.Lazyload;
9
+ var _default = _vueLazyload.Lazyload;
10
10
  exports.default = _default;
@@ -0,0 +1,55 @@
1
+ import type { App } from 'vue';
2
+
3
+ declare type ListenEvent =
4
+ | 'scroll'
5
+ | 'wheel'
6
+ | 'mousewheel'
7
+ | 'resize'
8
+ | 'animationend'
9
+ | 'transitionend'
10
+ | 'touchmove';
11
+
12
+ // eslint-disable-next-line
13
+ declare type Callback = (listener: any, options: LazyloadOptions) => void;
14
+
15
+ declare type Filter = {
16
+ webp?: Callback;
17
+ progressive?: Callback;
18
+ };
19
+
20
+ declare type Adapter = {
21
+ error?: Callback;
22
+ loaded?: Callback;
23
+ loading?: Callback;
24
+ };
25
+
26
+ export declare type LazyloadOptions = {
27
+ error?: string;
28
+ filter?: Filter;
29
+ silent?: boolean;
30
+ adapter?: Adapter;
31
+ loading?: string;
32
+ attempt?: number;
33
+ preLoad?: number;
34
+ observer?: boolean;
35
+ lazyImage?: boolean;
36
+ throttleWait?: number;
37
+ listenEvents?: ListenEvent[];
38
+ dispatchEvent?: boolean;
39
+ lazyComponent?: boolean;
40
+ observerOptions?: IntersectionObserverInit;
41
+ };
42
+
43
+ export declare const Lazyload: {
44
+ install(app: App, options?: LazyloadOptions): void;
45
+ };
46
+
47
+ declare module '@vue/runtime-core' {
48
+ interface ComponentCustomProperties {
49
+ $Lazyload: {
50
+ $on: (event: string, handler: Callback) => void;
51
+ $off: (event: string, handler?: Callback) => void;
52
+ $once: (event: string, handler: Callback) => void;
53
+ };
54
+ }
55
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.Lazyload = void 0;
5
+
6
+ var _lazy = _interopRequireDefault(require("./lazy"));
7
+
8
+ var _lazyComponent = _interopRequireDefault(require("./lazy-component"));
9
+
10
+ var _lazyContainer = _interopRequireDefault(require("./lazy-container"));
11
+
12
+ var _lazyImage = _interopRequireDefault(require("./lazy-image"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ /**
17
+ * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support.
18
+ */
19
+ var Lazyload = {
20
+ /*
21
+ * install function
22
+ * @param {App} app
23
+ * @param {object} options lazyload options
24
+ */
25
+ install(app, options) {
26
+ if (options === void 0) {
27
+ options = {};
28
+ }
29
+
30
+ var LazyClass = (0, _lazy.default)();
31
+ var lazy = new LazyClass(options);
32
+ var lazyContainer = new _lazyContainer.default({
33
+ lazy
34
+ });
35
+ app.config.globalProperties.$Lazyload = lazy;
36
+
37
+ if (options.lazyComponent) {
38
+ app.component('LazyComponent', (0, _lazyComponent.default)(lazy));
39
+ }
40
+
41
+ if (options.lazyImage) {
42
+ app.component('LazyImage', (0, _lazyImage.default)(lazy));
43
+ }
44
+
45
+ app.directive('lazy', {
46
+ beforeMount: lazy.add.bind(lazy),
47
+ updated: lazy.update.bind(lazy),
48
+ unmounted: lazy.remove.bind(lazy)
49
+ });
50
+ app.directive('lazy-container', {
51
+ beforeMount: lazyContainer.bind.bind(lazyContainer),
52
+ updated: lazyContainer.update.bind(lazyContainer),
53
+ unmounted: lazyContainer.unbind.bind(lazyContainer)
54
+ });
55
+ }
56
+
57
+ };
58
+ exports.Lazyload = Lazyload;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _vue = require("vue");
7
+
8
+ var _use = require("@vant/use");
9
+
10
+ var _default = lazy => ({
11
+ props: {
12
+ tag: {
13
+ type: String,
14
+ default: 'div'
15
+ }
16
+ },
17
+ emits: ['show'],
18
+
19
+ render() {
20
+ return (0, _vue.h)(this.tag, this.show && this.$slots.default ? this.$slots.default() : null);
21
+ },
22
+
23
+ data() {
24
+ return {
25
+ el: null,
26
+ state: {
27
+ loaded: false
28
+ },
29
+ show: false
30
+ };
31
+ },
32
+
33
+ mounted() {
34
+ this.el = this.$el;
35
+ lazy.addLazyBox(this);
36
+ lazy.lazyLoadHandler();
37
+ },
38
+
39
+ beforeUnmount() {
40
+ lazy.removeComponent(this);
41
+ },
42
+
43
+ methods: {
44
+ checkInView() {
45
+ var rect = (0, _use.useRect)(this.$el);
46
+ return _use.inBrowser && rect.top < window.innerHeight * lazy.options.preLoad && rect.bottom > 0 && rect.left < window.innerWidth * lazy.options.preLoad && rect.right > 0;
47
+ },
48
+
49
+ load() {
50
+ this.show = true;
51
+ this.state.loaded = true;
52
+ this.$emit('show', this);
53
+ },
54
+
55
+ destroy() {
56
+ return this.$destroy;
57
+ }
58
+
59
+ }
60
+ });
61
+
62
+ exports.default = _default;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _util = require("./util");
7
+
8
+ /* eslint-disable max-classes-per-file */
9
+
10
+ /* eslint-disable prefer-object-spread */
11
+ var defaultOptions = {
12
+ selector: 'img'
13
+ };
14
+
15
+ class LazyContainer {
16
+ constructor(_ref) {
17
+ var {
18
+ el,
19
+ binding,
20
+ vnode,
21
+ lazy
22
+ } = _ref;
23
+ this.el = null;
24
+ this.vnode = vnode;
25
+ this.binding = binding;
26
+ this.options = {};
27
+ this.lazy = lazy;
28
+ this.queue = [];
29
+ this.update({
30
+ el,
31
+ binding
32
+ });
33
+ }
34
+
35
+ update(_ref2) {
36
+ var {
37
+ el,
38
+ binding
39
+ } = _ref2;
40
+ this.el = el;
41
+ this.options = Object.assign({}, defaultOptions, binding.value);
42
+ var imgs = this.getImgs();
43
+ imgs.forEach(el => {
44
+ this.lazy.add(el, Object.assign({}, this.binding, {
45
+ value: {
46
+ src: 'dataset' in el ? el.dataset.src : el.getAttribute('data-src'),
47
+ error: ('dataset' in el ? el.dataset.error : el.getAttribute('data-error')) || this.options.error,
48
+ loading: ('dataset' in el ? el.dataset.loading : el.getAttribute('data-loading')) || this.options.loading
49
+ }
50
+ }), this.vnode);
51
+ });
52
+ }
53
+
54
+ getImgs() {
55
+ return Array.from(this.el.querySelectorAll(this.options.selector));
56
+ }
57
+
58
+ clear() {
59
+ var imgs = this.getImgs();
60
+ imgs.forEach(el => this.lazy.remove(el));
61
+ this.vnode = null;
62
+ this.binding = null;
63
+ this.lazy = null;
64
+ }
65
+
66
+ }
67
+
68
+ class LazyContainerManager {
69
+ constructor(_ref3) {
70
+ var {
71
+ lazy
72
+ } = _ref3;
73
+ this.lazy = lazy;
74
+ this.queue = [];
75
+ }
76
+
77
+ bind(el, binding, vnode) {
78
+ var container = new LazyContainer({
79
+ el,
80
+ binding,
81
+ vnode,
82
+ lazy: this.lazy
83
+ });
84
+ this.queue.push(container);
85
+ }
86
+
87
+ update(el, binding, vnode) {
88
+ var container = this.queue.find(item => item.el === el);
89
+ if (!container) return;
90
+ container.update({
91
+ el,
92
+ binding,
93
+ vnode
94
+ });
95
+ }
96
+
97
+ unbind(el) {
98
+ var container = this.queue.find(item => item.el === el);
99
+ if (!container) return;
100
+ container.clear();
101
+ (0, _util.remove)(this.queue, container);
102
+ }
103
+
104
+ }
105
+
106
+ exports.default = LazyContainerManager;
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _use = require("@vant/use");
7
+
8
+ var _util = require("./util");
9
+
10
+ var _utils = require("../../utils");
11
+
12
+ var _default = lazyManager => ({
13
+ props: {
14
+ src: [String, Object],
15
+ tag: {
16
+ type: String,
17
+ default: 'img'
18
+ }
19
+ },
20
+
21
+ render(h) {
22
+ return h(this.tag, {
23
+ attrs: {
24
+ src: this.renderSrc
25
+ }
26
+ }, this.$slots.default);
27
+ },
28
+
29
+ data() {
30
+ return {
31
+ el: null,
32
+ options: {
33
+ src: '',
34
+ error: '',
35
+ loading: '',
36
+ attempt: lazyManager.options.attempt
37
+ },
38
+ state: {
39
+ loaded: false,
40
+ error: false,
41
+ attempt: 0
42
+ },
43
+ renderSrc: ''
44
+ };
45
+ },
46
+
47
+ watch: {
48
+ src() {
49
+ this.init();
50
+ lazyManager.addLazyBox(this);
51
+ lazyManager.lazyLoadHandler();
52
+ }
53
+
54
+ },
55
+
56
+ created() {
57
+ this.init();
58
+ this.renderSrc = this.options.loading;
59
+ },
60
+
61
+ mounted() {
62
+ this.el = this.$el;
63
+ lazyManager.addLazyBox(this);
64
+ lazyManager.lazyLoadHandler();
65
+ },
66
+
67
+ beforeUnmount() {
68
+ lazyManager.removeComponent(this);
69
+ },
70
+
71
+ methods: {
72
+ init() {
73
+ var {
74
+ src,
75
+ loading,
76
+ error
77
+ } = lazyManager.valueFormatter(this.src);
78
+ this.state.loaded = false;
79
+ this.options.src = src;
80
+ this.options.error = error;
81
+ this.options.loading = loading;
82
+ this.renderSrc = this.options.loading;
83
+ },
84
+
85
+ checkInView() {
86
+ var rect = (0, _use.useRect)(this.$el);
87
+ return rect.top < window.innerHeight * lazyManager.options.preLoad && rect.bottom > 0 && rect.left < window.innerWidth * lazyManager.options.preLoad && rect.right > 0;
88
+ },
89
+
90
+ load(onFinish) {
91
+ if (onFinish === void 0) {
92
+ onFinish = _utils.noop;
93
+ }
94
+
95
+ if (this.state.attempt > this.options.attempt - 1 && this.state.error) {
96
+ if (process.env.NODE_ENV !== 'production' && !lazyManager.options.silent) {
97
+ console.log("[@vant/lazyload] " + this.options.src + " tried too more than " + this.options.attempt + " times");
98
+ }
99
+
100
+ onFinish();
101
+ return;
102
+ }
103
+
104
+ var {
105
+ src
106
+ } = this.options;
107
+ (0, _util.loadImageAsync)({
108
+ src
109
+ }, _ref => {
110
+ var {
111
+ src
112
+ } = _ref;
113
+ this.renderSrc = src;
114
+ this.state.loaded = true;
115
+ }, () => {
116
+ this.state.attempt++;
117
+ this.renderSrc = this.options.error;
118
+ this.state.error = true;
119
+ });
120
+ }
121
+
122
+ }
123
+ });
124
+
125
+ exports.default = _default;