@nutui/nutui-react-taro 3.0.19-cpp-beta.4 → 3.0.19-cpp.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
  2. package/dist/cjs/hooks/use-ref-state.js +3 -3
  3. package/dist/cjs/hooks/use-touch.js +1 -2
  4. package/dist/cjs/packages/address/utils.js +3 -3
  5. package/dist/cjs/packages/avatarcropper/avatarcropper.js +16 -28
  6. package/dist/cjs/packages/badge/badge.js +4 -7
  7. package/dist/cjs/packages/barrage/barrage.js +14 -24
  8. package/dist/cjs/packages/calendar/utils.js +8 -8
  9. package/dist/cjs/packages/calendarcard/icon.js +5 -5
  10. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  11. package/dist/cjs/packages/cascader/cascader.js +12 -21
  12. package/dist/cjs/packages/cascader/utils.js +3 -3
  13. package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
  14. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  15. package/dist/cjs/packages/configprovider/index.js +6 -6
  16. package/dist/cjs/packages/countdown/countdown.js +1 -2
  17. package/dist/cjs/packages/datepicker/utils.js +9 -9
  18. package/dist/cjs/packages/dialog/content.js +3 -3
  19. package/dist/cjs/packages/dialog/dialog.js +8 -11
  20. package/dist/cjs/packages/drag/drag.js +4 -7
  21. package/dist/cjs/packages/elevator/elevator.js +7 -10
  22. package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
  23. package/dist/cjs/packages/form/index.js +0 -2
  24. package/dist/cjs/packages/form/useform.js +50 -57
  25. package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
  26. package/dist/cjs/packages/inputnumber/inputnumber.js +16 -28
  27. package/dist/cjs/packages/lottie/types.js +0 -2
  28. package/dist/cjs/packages/menuitem/menuitem.js +24 -22
  29. package/dist/cjs/packages/noticebar/noticebar.js +71 -67
  30. package/dist/cjs/packages/notify/notify.js +4 -4
  31. package/dist/cjs/packages/nutui.react.build.js +105 -105
  32. package/dist/cjs/packages/nutui.react.js +105 -105
  33. package/dist/cjs/packages/overlay/overlay.js +3 -3
  34. package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
  35. package/dist/cjs/packages/pickerview/pickerview.js +1 -2
  36. package/dist/cjs/packages/pickerview/utils.js +3 -3
  37. package/dist/cjs/packages/popover/popover.js +75 -77
  38. package/dist/cjs/packages/popup/popup.js +8 -14
  39. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
  40. package/dist/cjs/packages/radio/index.js +0 -2
  41. package/dist/cjs/packages/range/range.js +16 -28
  42. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  43. package/dist/cjs/packages/sticky/sticky.js +4 -7
  44. package/dist/cjs/packages/swipe/swipe.js +13 -21
  45. package/dist/cjs/packages/swiper/index.js +0 -1
  46. package/dist/cjs/packages/switch/switch.js +4 -7
  47. package/dist/cjs/packages/toast/toast.js +4 -4
  48. package/dist/cjs/packages/uploader/uploader.js +38 -51
  49. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  50. package/dist/cjs/packages/watermark/watermark.js +4 -8
  51. package/dist/cjs/types/spec/address/base.js +0 -2
  52. package/dist/cjs/utils/date.js +5 -5
  53. package/dist/cjs/utils/event-mocker.js +10 -18
  54. package/dist/cjs/utils/get-rect.js +4 -4
  55. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  56. package/dist/cjs/utils/merge-props.js +3 -3
  57. package/dist/cjs/utils/merge.js +6 -6
  58. package/dist/cjs/utils/raf.js +3 -3
  59. package/dist/cjs/utils/render.js +5 -9
  60. package/dist/cjs/utils/rubberband.js +3 -3
  61. package/dist/cjs/utils/taro/get-rect.js +14 -24
  62. package/dist/cjs/utils/taro/get-system-info.js +4 -4
  63. package/dist/cjs/utils/taro/platform.js +5 -5
  64. package/dist/es/hooks/use-touch.js +1 -1
  65. package/dist/es/packages/avatarcropper/avatarcropper.js +16 -28
  66. package/dist/es/packages/badge/badge.js +4 -7
  67. package/dist/es/packages/barrage/barrage.js +14 -24
  68. package/dist/es/packages/cascader/cascader.js +12 -21
  69. package/dist/es/packages/collapseitem/collapseitem.js +4 -7
  70. package/dist/es/packages/countdown/countdown.js +1 -2
  71. package/dist/es/packages/dialog/dialog.js +4 -7
  72. package/dist/es/packages/drag/drag.js +4 -7
  73. package/dist/es/packages/elevator/elevator.js +4 -7
  74. package/dist/es/packages/ellipsis/ellipsis.js +17 -30
  75. package/dist/es/packages/form/index.js +0 -1
  76. package/dist/es/packages/form/useform.js +46 -53
  77. package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
  78. package/dist/es/packages/inputnumber/inputnumber.js +16 -28
  79. package/dist/es/packages/lottie/types.js +1 -1
  80. package/dist/es/packages/menuitem/menuitem.js +24 -22
  81. package/dist/es/packages/noticebar/noticebar.js +71 -67
  82. package/dist/es/packages/pickerview/pickerroller.js +4 -7
  83. package/dist/es/packages/pickerview/pickerview.js +1 -2
  84. package/dist/es/packages/popover/popover.js +75 -77
  85. package/dist/es/packages/popup/popup.js +8 -14
  86. package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
  87. package/dist/es/packages/radio/index.js +0 -1
  88. package/dist/es/packages/range/range.js +16 -28
  89. package/dist/es/packages/sticky/sticky.js +4 -7
  90. package/dist/es/packages/swipe/swipe.js +14 -22
  91. package/dist/es/packages/swiper/index.js +0 -1
  92. package/dist/es/packages/switch/switch.js +4 -7
  93. package/dist/es/packages/uploader/uploader.js +38 -51
  94. package/dist/es/packages/watermark/watermark.js +4 -8
  95. package/dist/es/types/spec/address/base.js +1 -1
  96. package/dist/es/utils/event-mocker.js +4 -12
  97. package/dist/es/utils/render.js +2 -6
  98. package/dist/es/utils/taro/get-rect.js +10 -20
  99. package/dist/nutui.react.umd.js +601 -815
  100. package/dist/style-jmapp.css +1 -1
  101. package/dist/style-jmapp.scss +34 -34
  102. package/dist/style-jrkf.css +1 -1
  103. package/dist/style-jrkf.scss +32 -32
  104. package/dist/style.css +1 -1
  105. package/dist/style.scss +42 -42
  106. package/package.json +1 -1
@@ -152,7 +152,6 @@
152
152
  var classnamesExports = classnames.exports;
153
153
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
154
154
  const globalConfig = {
155
- useSvg: true,
156
155
  classPrefix: "nut-icon",
157
156
  tag: "i",
158
157
  fontClassName: "nutui-iconfont"
@@ -179,7 +178,6 @@
179
178
  height: height2,
180
179
  size,
181
180
  svg64,
182
- svgSrc,
183
181
  children,
184
182
  onClick,
185
183
  fallback = false
@@ -2224,12 +2222,10 @@
2224
2222
  height: height2
2225
2223
  };
2226
2224
  }
2227
- var getRectInMultiPlatform = /* @__PURE__ */ function() {
2228
- var _ref = _async_to_generator(function(element) {
2229
- var harmonyId;
2230
- var _arguments = arguments;
2225
+ var getRectInMultiPlatform = function(element) {
2226
+ var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
2227
+ return _async_to_generator(function() {
2231
2228
  return __generator(this, function(_state) {
2232
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
2233
2229
  if (element) {
2234
2230
  if (inBrowser) {
2235
2231
  return [
@@ -2259,17 +2255,12 @@
2259
2255
  Promise.resolve(makeRect(0, 0))
2260
2256
  ];
2261
2257
  });
2262
- });
2263
- return function getRectInMultiPlatform2(element) {
2264
- return _ref.apply(this, arguments);
2265
- };
2266
- }();
2267
- var getRectInMultiPlatformWithoutCache = /* @__PURE__ */ function() {
2268
- var _ref = _async_to_generator(function(element) {
2269
- var harmonyId;
2270
- var _arguments = arguments;
2258
+ })();
2259
+ };
2260
+ var getRectInMultiPlatformWithoutCache = function(element) {
2261
+ var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
2262
+ return _async_to_generator(function() {
2271
2263
  return __generator(this, function(_state) {
2272
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
2273
2264
  if (element) {
2274
2265
  if (inBrowser) {
2275
2266
  return [
@@ -2292,11 +2283,8 @@
2292
2283
  Promise.resolve(makeRect(0, 0))
2293
2284
  ];
2294
2285
  });
2295
- });
2296
- return function getRectInMultiPlatformWithoutCache2(element) {
2297
- return _ref.apply(this, arguments);
2298
- };
2299
- }();
2286
+ })();
2287
+ };
2300
2288
  var defaultProps$1r = _object_spread_props(_object_spread({}, ComponentDefaults), {
2301
2289
  position: "top",
2302
2290
  zIndex: 900
@@ -2365,8 +2353,8 @@
2365
2353
  threshold,
2366
2354
  zIndex
2367
2355
  ]);
2368
- var handleScroll = /* @__PURE__ */ function() {
2369
- var _ref2 = _async_to_generator(function(scrollTop) {
2356
+ var handleScroll = function(scrollTop) {
2357
+ return _async_to_generator(function() {
2370
2358
  var curRootRect, stickyRect, containerRect, difference, curTransform, curFixed, windowHeight;
2371
2359
  return __generator(this, function(_state) {
2372
2360
  switch (_state.label) {
@@ -2434,11 +2422,8 @@
2434
2422
  ];
2435
2423
  }
2436
2424
  });
2437
- });
2438
- return function handleScroll2(scrollTop) {
2439
- return _ref2.apply(this, arguments);
2440
- };
2441
- }();
2425
+ })();
2426
+ };
2442
2427
  var getElement = React.useCallback(function() {
2443
2428
  return getScrollParent(rootRef.current);
2444
2429
  }, []);
@@ -2915,16 +2900,7 @@
2915
2900
  return months.slice(preDates - days);
2916
2901
  };
2917
2902
  var ENV_TYPE$1 = {
2918
- WEAPP: "WEAPP",
2919
- SWAN: "SWAN",
2920
- ALIPAY: "ALIPAY",
2921
- TT: "TT",
2922
- QQ: "QQ",
2923
- JD: "JD",
2924
- WEB: "WEB",
2925
- RN: "RN",
2926
- HARMONY: "HARMONY",
2927
- QUICKAPP: "QUICKAPP"
2903
+ WEB: "WEB"
2928
2904
  };
2929
2905
  var getRectById = function(id) {
2930
2906
  return new Promise(function(resolve, reject) {
@@ -3146,10 +3122,7 @@
3146
3122
  return unmountComponentAtNode(container);
3147
3123
  }
3148
3124
  function concurrentUnmount(container) {
3149
- return _concurrentUnmount.apply(this, arguments);
3150
- }
3151
- function _concurrentUnmount() {
3152
- _concurrentUnmount = _async_to_generator(function(container) {
3125
+ return _async_to_generator(function() {
3153
3126
  return __generator(this, function(_state) {
3154
3127
  return [
3155
3128
  2,
@@ -3160,8 +3133,7 @@
3160
3133
  })
3161
3134
  ];
3162
3135
  });
3163
- });
3164
- return _concurrentUnmount.apply(this, arguments);
3136
+ })();
3165
3137
  }
3166
3138
  function unmount(container) {
3167
3139
  if (createRoot) {
@@ -3463,8 +3435,8 @@
3463
3435
  }
3464
3436
  });
3465
3437
  };
3466
- var scrollTo = /* @__PURE__ */ function() {
3467
- var _ref2 = _async_to_generator(function(index2) {
3438
+ var scrollTo = function(index2) {
3439
+ return _async_to_generator(function() {
3468
3440
  var cacheIndex, scrollTop2;
3469
3441
  return __generator(this, function(_state) {
3470
3442
  switch (_state.label) {
@@ -3504,11 +3476,8 @@
3504
3476
  ];
3505
3477
  }
3506
3478
  });
3507
- });
3508
- return function scrollTo2(index2) {
3509
- return _ref2.apply(this, arguments);
3510
- };
3511
- }();
3479
+ })();
3480
+ };
3512
3481
  var touchMove = function(e) {
3513
3482
  var firstTouch = e.touches[0];
3514
3483
  touchState.current.y2 = firstTouch.pageY;
@@ -3687,8 +3656,8 @@
3687
3656
  getPositionStyle();
3688
3657
  }
3689
3658
  }, []);
3690
- var getPositionStyle = /* @__PURE__ */ function() {
3691
- var _ref = _async_to_generator(function() {
3659
+ var getPositionStyle = function() {
3660
+ return _async_to_generator(function() {
3692
3661
  var style2;
3693
3662
  return __generator(this, function(_state) {
3694
3663
  style2 = _define_property({
@@ -3699,11 +3668,8 @@
3699
3668
  2
3700
3669
  ];
3701
3670
  });
3702
- });
3703
- return function getPositionStyle2() {
3704
- return _ref.apply(this, arguments);
3705
- };
3706
- }();
3671
+ })();
3672
+ };
3707
3673
  var _obj1;
3708
3674
  return /* @__PURE__ */ React.createElement(components.View, {
3709
3675
  className: classes,
@@ -4491,8 +4457,8 @@
4491
4457
  }
4492
4458
  onOpen && onOpen();
4493
4459
  };
4494
- var getPopupHeight = /* @__PURE__ */ function() {
4495
- var _ref = _async_to_generator(function() {
4460
+ var getPopupHeight = function() {
4461
+ return _async_to_generator(function() {
4496
4462
  var _nodeRef_current, rect, height2;
4497
4463
  return __generator(this, function(_state) {
4498
4464
  switch (_state.label) {
@@ -4510,11 +4476,8 @@
4510
4476
  ];
4511
4477
  }
4512
4478
  });
4513
- });
4514
- return function getPopupHeight2() {
4515
- return _ref.apply(this, arguments);
4516
- };
4517
- }();
4479
+ })();
4480
+ };
4518
4481
  React.useEffect(function() {
4519
4482
  if (innerVisible && topNodeRef.current && nodeRef.current) {
4520
4483
  Taro.nextTick(function() {
@@ -4581,8 +4544,8 @@
4581
4544
  return renderCloseIcon();
4582
4545
  }
4583
4546
  };
4584
- var handleTouchStart = /* @__PURE__ */ function() {
4585
- var _ref = _async_to_generator(function(event) {
4547
+ var handleTouchStart = function(event) {
4548
+ return _async_to_generator(function() {
4586
4549
  var _nodeRef_current, _rootRect_current, e, rect;
4587
4550
  return __generator(this, function(_state) {
4588
4551
  switch (_state.label) {
@@ -4608,11 +4571,8 @@
4608
4571
  ];
4609
4572
  }
4610
4573
  });
4611
- });
4612
- return function handleTouchStart2(event) {
4613
- return _ref.apply(this, arguments);
4614
- };
4615
- }();
4574
+ })();
4575
+ };
4616
4576
  var handleTouchMove = function(event) {
4617
4577
  if (position2 !== "bottom" || !resizable || !nodeRef.current || !rootRect.current) return;
4618
4578
  var e = event;
@@ -5292,8 +5252,8 @@
5292
5252
  outerOptions
5293
5253
  ]);
5294
5254
  React.useEffect(function() {
5295
- var load = /* @__PURE__ */ function() {
5296
- var _ref = _async_to_generator(function() {
5255
+ var load = function() {
5256
+ return _async_to_generator(function() {
5297
5257
  var parent2, error;
5298
5258
  return __generator(this, function(_state) {
5299
5259
  switch (_state.label) {
@@ -5311,8 +5271,8 @@
5311
5271
  ]);
5312
5272
  return [
5313
5273
  4,
5314
- innerValue.reduce(/* @__PURE__ */ function() {
5315
- var _ref2 = _async_to_generator(function(promise, val2, key2) {
5274
+ innerValue.reduce(function(promise, val2, key2) {
5275
+ return _async_to_generator(function() {
5316
5276
  var pane, parent3, node;
5317
5277
  return __generator(this, function(_state2) {
5318
5278
  switch (_state2.label) {
@@ -5352,11 +5312,8 @@
5352
5312
  ];
5353
5313
  }
5354
5314
  });
5355
- });
5356
- return function(promise, val2, key2) {
5357
- return _ref2.apply(this, arguments);
5358
- };
5359
- }(), Promise.resolve(parent2))
5315
+ })();
5316
+ }, Promise.resolve(parent2))
5360
5317
  ];
5361
5318
  case 2:
5362
5319
  _state.sent();
@@ -5378,17 +5335,14 @@
5378
5335
  ];
5379
5336
  }
5380
5337
  });
5381
- });
5382
- return function load2() {
5383
- return _ref.apply(this, arguments);
5384
- };
5385
- }();
5338
+ })();
5339
+ };
5386
5340
  if (lazy) load();
5387
5341
  }, [
5388
5342
  lazy
5389
5343
  ]);
5390
- var chooseItem = /* @__PURE__ */ function() {
5391
- var _ref = _async_to_generator(function(pane, levelIndex) {
5344
+ var chooseItem = function(pane, levelIndex) {
5345
+ return _async_to_generator(function() {
5392
5346
  var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
5393
5347
  return __generator(this, function(_state) {
5394
5348
  switch (_state.label) {
@@ -5440,11 +5394,8 @@
5440
5394
  ];
5441
5395
  }
5442
5396
  });
5443
- });
5444
- return function chooseItem2(pane, levelIndex) {
5445
- return _ref.apply(this, arguments);
5446
- };
5447
- }();
5397
+ })();
5398
+ };
5448
5399
  var renderCascaderItem = function(item, levelIndex) {
5449
5400
  var _item_pane;
5450
5401
  return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index2) {
@@ -7343,8 +7294,8 @@
7343
7294
  setTouchTime(0);
7344
7295
  selectValue(scrollDistance);
7345
7296
  };
7346
- var getReactHeight = /* @__PURE__ */ function() {
7347
- var _ref = _async_to_generator(function() {
7297
+ var getReactHeight = function() {
7298
+ return _async_to_generator(function() {
7348
7299
  var placeholder, placeholderHeight, error;
7349
7300
  return __generator(this, function(_state) {
7350
7301
  switch (_state.label) {
@@ -7379,11 +7330,8 @@
7379
7330
  ];
7380
7331
  }
7381
7332
  });
7382
- });
7383
- return function getReactHeight2() {
7384
- return _ref.apply(this, arguments);
7385
- };
7386
- }();
7333
+ })();
7334
+ };
7387
7335
  React.useEffect(function() {
7388
7336
  var element = pickerRollerRef.current;
7389
7337
  var currentLineSpacing;
@@ -7527,8 +7475,6 @@
7527
7475
  if (!options2.length) return [];
7528
7476
  var formatted = [];
7529
7477
  var columnOptions = {
7530
- label: "",
7531
- value: "",
7532
7478
  children: options2
7533
7479
  };
7534
7480
  var columnIndex = 0;
@@ -9288,7 +9234,6 @@
9288
9234
  var _this = this;
9289
9235
  var _this1 = this;
9290
9236
  _class_call_check(this, FormStore2);
9291
- var _this2 = this;
9292
9237
  _define_property(this, "initialValues", {});
9293
9238
  _define_property(this, "updateList", []);
9294
9239
  _define_property(this, "store", {});
@@ -9357,8 +9302,8 @@
9357
9302
  _define_property(this, "setCallback", function(callback) {
9358
9303
  _this.callbacks = _object_spread({}, _this.callbacks, callback);
9359
9304
  });
9360
- _define_property(this, "validateEntities", /* @__PURE__ */ function() {
9361
- var _ref = _async_to_generator(function(entity, errs) {
9305
+ _define_property(this, "validateEntities", function(entity, errs) {
9306
+ return _async_to_generator(function() {
9362
9307
  var _entity_props, name2, _entity_props_rules, rules2, descriptor, validator, _this_store, param, errors, _errs;
9363
9308
  return __generator(this, function(_state) {
9364
9309
  switch (_state.label) {
@@ -9392,7 +9337,7 @@
9392
9337
  ]);
9393
9338
  return [
9394
9339
  4,
9395
- validator.validate(_define_property({}, name2, (_this_store = _this2.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
9340
+ validator.validate(_define_property({}, name2, (_this_store = this.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
9396
9341
  ];
9397
9342
  case 2:
9398
9343
  _state.sent();
@@ -9405,7 +9350,7 @@
9405
9350
  errors = param.errors;
9406
9351
  if (errors) {
9407
9352
  (_errs = errs).push.apply(_errs, _to_consumable_array(errors));
9408
- _this2.errors[name2] = errors;
9353
+ this.errors[name2] = errors;
9409
9354
  }
9410
9355
  return [
9411
9356
  3,
@@ -9413,7 +9358,7 @@
9413
9358
  ];
9414
9359
  case 4:
9415
9360
  if (!errs || errs.length === 0) {
9416
- _this2.errors[name2] = [];
9361
+ this.errors[name2] = [];
9417
9362
  }
9418
9363
  return [
9419
9364
  7
@@ -9425,22 +9370,20 @@
9425
9370
  ];
9426
9371
  }
9427
9372
  });
9428
- });
9429
- return function(entity, errs) {
9430
- return _ref.apply(this, arguments);
9431
- };
9432
- }());
9433
- _define_property(this, "validateFields", /* @__PURE__ */ function() {
9434
- var _ref = _async_to_generator(function(nameList) {
9435
- var filterEntities, errs;
9373
+ }).call(_this);
9374
+ });
9375
+ _define_property(this, "validateFields", function(nameList) {
9376
+ return _async_to_generator(function() {
9377
+ var _this2, filterEntities, errs;
9436
9378
  return __generator(this, function(_state) {
9437
9379
  switch (_state.label) {
9438
9380
  case 0:
9381
+ _this2 = this;
9439
9382
  filterEntities = [];
9440
9383
  if (!nameList || nameList.length === 0) {
9441
- filterEntities = _this2.fieldEntities;
9384
+ filterEntities = this.fieldEntities;
9442
9385
  } else {
9443
- filterEntities = _this2.fieldEntities.filter(function(param) {
9386
+ filterEntities = this.fieldEntities.filter(function(param) {
9444
9387
  var name2 = param.props.name;
9445
9388
  return nameList.includes(name2);
9446
9389
  });
@@ -9448,14 +9391,14 @@
9448
9391
  errs = [];
9449
9392
  return [
9450
9393
  4,
9451
- Promise.all(filterEntities.map(/* @__PURE__ */ function() {
9452
- var _ref2 = _async_to_generator(function(entity) {
9394
+ Promise.all(filterEntities.map(function(entity) {
9395
+ return _async_to_generator(function() {
9453
9396
  return __generator(this, function(_state2) {
9454
9397
  switch (_state2.label) {
9455
9398
  case 0:
9456
9399
  return [
9457
9400
  4,
9458
- _this2.validateEntities(entity, errs)
9401
+ this.validateEntities(entity, errs)
9459
9402
  ];
9460
9403
  case 1:
9461
9404
  _state2.sent();
@@ -9464,11 +9407,8 @@
9464
9407
  ];
9465
9408
  }
9466
9409
  });
9467
- });
9468
- return function(entity) {
9469
- return _ref2.apply(this, arguments);
9470
- };
9471
- }()))
9410
+ }).call(_this2);
9411
+ }))
9472
9412
  ];
9473
9413
  case 1:
9474
9414
  _state.sent();
@@ -9478,33 +9418,32 @@
9478
9418
  ];
9479
9419
  }
9480
9420
  });
9481
- });
9482
- return function(nameList) {
9483
- return _ref.apply(this, arguments);
9484
- };
9485
- }());
9486
- _define_property(this, "submit", /* @__PURE__ */ _async_to_generator(function() {
9487
- var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
9488
- return __generator(this, function(_state) {
9489
- switch (_state.label) {
9490
- case 0:
9491
- return [
9492
- 4,
9493
- _this2.validateFields()
9494
- ];
9495
- case 1:
9496
- errors = _state.sent();
9497
- if (errors.length === 0) {
9498
- (_this_callbacks_onFinish = (_this_callbacks = _this2.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, _this2.store);
9499
- } else if (errors.length > 0) {
9500
- (_this_callbacks_onFinishFailed = (_this_callbacks1 = _this2.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, _this2.store, errors);
9501
- }
9502
- return [
9503
- 2
9504
- ];
9505
- }
9506
- });
9507
- }));
9421
+ }).call(_this);
9422
+ });
9423
+ _define_property(this, "submit", function() {
9424
+ return _async_to_generator(function() {
9425
+ var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
9426
+ return __generator(this, function(_state) {
9427
+ switch (_state.label) {
9428
+ case 0:
9429
+ return [
9430
+ 4,
9431
+ this.validateFields()
9432
+ ];
9433
+ case 1:
9434
+ errors = _state.sent();
9435
+ if (errors.length === 0) {
9436
+ (_this_callbacks_onFinish = (_this_callbacks = this.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, this.store);
9437
+ } else if (errors.length > 0) {
9438
+ (_this_callbacks_onFinishFailed = (_this_callbacks1 = this.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, this.store, errors);
9439
+ }
9440
+ return [
9441
+ 2
9442
+ ];
9443
+ }
9444
+ });
9445
+ }).call(_this);
9446
+ });
9508
9447
  _define_property(this, "resetFields", function(namePaths) {
9509
9448
  if (namePaths && namePaths.length) {
9510
9449
  namePaths.forEach(function(path) {
@@ -10009,16 +9948,7 @@
10009
9948
  return value2.replace(regExp, "");
10010
9949
  }
10011
9950
  var ENV_TYPE = {
10012
- WEAPP: "WEAPP",
10013
- SWAN: "SWAN",
10014
- ALIPAY: "ALIPAY",
10015
- TT: "TT",
10016
- QQ: "QQ",
10017
- JD: "JD",
10018
- WEB: "WEB",
10019
- RN: "RN",
10020
- HARMONY: "HARMONY",
10021
- QUICKAPP: "QUICKAPP"
9951
+ WEB: "WEB"
10022
9952
  };
10023
9953
  var defaultProps$Y = _object_spread_props(_object_spread({}, ComponentDefaults), {
10024
9954
  type: "text",
@@ -10293,8 +10223,8 @@
10293
10223
  var stepAmount = parseFloat(stepValue) * symbol;
10294
10224
  return (currentValue * dig + stepAmount * dig) / dig;
10295
10225
  };
10296
- var update = /* @__PURE__ */ function() {
10297
- var _ref2 = _async_to_generator(function(negative, e) {
10226
+ var update = function(negative, e) {
10227
+ return _async_to_generator(function() {
10298
10228
  var shouldOverBoundary, maybeResume, nextValue;
10299
10229
  return __generator(this, function(_state) {
10300
10230
  switch (_state.label) {
@@ -10325,13 +10255,10 @@
10325
10255
  ];
10326
10256
  }
10327
10257
  });
10328
- });
10329
- return function update2(negative, e) {
10330
- return _ref2.apply(this, arguments);
10331
- };
10332
- }();
10333
- var handleReduce = /* @__PURE__ */ function() {
10334
- var _ref2 = _async_to_generator(function(e) {
10258
+ })();
10259
+ };
10260
+ var handleReduce = function(e) {
10261
+ return _async_to_generator(function() {
10335
10262
  return __generator(this, function(_state) {
10336
10263
  switch (_state.label) {
10337
10264
  case 0:
@@ -10349,13 +10276,10 @@
10349
10276
  ];
10350
10277
  }
10351
10278
  });
10352
- });
10353
- return function handleReduce2(e) {
10354
- return _ref2.apply(this, arguments);
10355
- };
10356
- }();
10357
- var handlePlus = /* @__PURE__ */ function() {
10358
- var _ref2 = _async_to_generator(function(e) {
10279
+ })();
10280
+ };
10281
+ var handlePlus = function(e) {
10282
+ return _async_to_generator(function() {
10359
10283
  return __generator(this, function(_state) {
10360
10284
  switch (_state.label) {
10361
10285
  case 0:
@@ -10373,18 +10297,15 @@
10373
10297
  ];
10374
10298
  }
10375
10299
  });
10376
- });
10377
- return function handlePlus2(e) {
10378
- return _ref2.apply(this, arguments);
10379
- };
10380
- }();
10300
+ })();
10301
+ };
10381
10302
  var parseValue = function(text2) {
10382
10303
  if (text2 === "") return null;
10383
10304
  if (text2 === "-") return null;
10384
10305
  return text2;
10385
10306
  };
10386
- var handleInputChange = /* @__PURE__ */ function() {
10387
- var _ref2 = _async_to_generator(function(e) {
10307
+ var handleInputChange = function(e) {
10308
+ return _async_to_generator(function() {
10388
10309
  var valueStr, maybeResume;
10389
10310
  return __generator(this, function(_state) {
10390
10311
  switch (_state.label) {
@@ -10414,11 +10335,8 @@
10414
10335
  ];
10415
10336
  }
10416
10337
  });
10417
- });
10418
- return function handleInputChange2(e) {
10419
- return _ref2.apply(this, arguments);
10420
- };
10421
- }();
10338
+ })();
10339
+ };
10422
10340
  var handleFocus = function(e) {
10423
10341
  setFocused(true);
10424
10342
  setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
@@ -10472,7 +10390,7 @@
10472
10390
  if (null == r) return {};
10473
10391
  var t = {};
10474
10392
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
10475
- if (e.includes(n)) continue;
10393
+ if (-1 !== e.indexOf(n)) continue;
10476
10394
  t[n] = r[n];
10477
10395
  }
10478
10396
  return t;
@@ -12184,28 +12102,30 @@
12184
12102
  show2
12185
12103
  ]);
12186
12104
  var getParentOffset = React.useCallback(function() {
12187
- setTimeout(/* @__PURE__ */ _async_to_generator(function() {
12188
- var p, rect;
12189
- return __generator(this, function(_state) {
12190
- switch (_state.label) {
12191
- case 0:
12192
- p = parent2.menuRef.current;
12193
- return [
12194
- 4,
12195
- getRectInMultiPlatform(p)
12196
- ];
12197
- case 1:
12198
- rect = _state.sent();
12199
- setPosition({
12200
- height: rect.height,
12201
- top: rect.top
12202
- });
12203
- return [
12204
- 2
12205
- ];
12206
- }
12207
- });
12208
- }), 100);
12105
+ setTimeout(function() {
12106
+ return _async_to_generator(function() {
12107
+ var p, rect;
12108
+ return __generator(this, function(_state) {
12109
+ switch (_state.label) {
12110
+ case 0:
12111
+ p = parent2.menuRef.current;
12112
+ return [
12113
+ 4,
12114
+ getRectInMultiPlatform(p)
12115
+ ];
12116
+ case 1:
12117
+ rect = _state.sent();
12118
+ setPosition({
12119
+ height: rect.height,
12120
+ top: rect.top
12121
+ });
12122
+ return [
12123
+ 2
12124
+ ];
12125
+ }
12126
+ });
12127
+ })();
12128
+ }, 100);
12209
12129
  }, [
12210
12130
  parent2.menuRef
12211
12131
  ]);
@@ -13087,8 +13007,8 @@
13087
13007
  onEnd,
13088
13008
  setInnerValue
13089
13009
  ]);
13090
- var handleClick = React.useCallback(/* @__PURE__ */ function() {
13091
- var _ref = _async_to_generator(function(event) {
13010
+ var handleClick = React.useCallback(function(event) {
13011
+ return _async_to_generator(function() {
13092
13012
  var _event_detail, rect, _event_detail_x, x, delta, total, _event_detail1, _event_detail_y, y, value3, _innerValue, left2, right2, middle;
13093
13013
  return __generator(this, function(_state) {
13094
13014
  switch (_state.label) {
@@ -13140,11 +13060,8 @@
13140
13060
  ];
13141
13061
  }
13142
13062
  });
13143
- });
13144
- return function(event) {
13145
- return _ref.apply(this, arguments);
13146
- };
13147
- }(), [
13063
+ })();
13064
+ }, [
13148
13065
  innerValue,
13149
13066
  disabled,
13150
13067
  isRange,
@@ -13154,8 +13071,8 @@
13154
13071
  vertical
13155
13072
  ]);
13156
13073
  Taro.useReady(function() {
13157
- var getRootRect = /* @__PURE__ */ function() {
13158
- var _ref = _async_to_generator(function() {
13074
+ var getRootRect = function() {
13075
+ return _async_to_generator(function() {
13159
13076
  var rect;
13160
13077
  return __generator(this, function(_state) {
13161
13078
  switch (_state.label) {
@@ -13178,11 +13095,8 @@
13178
13095
  ];
13179
13096
  }
13180
13097
  });
13181
- });
13182
- return function getRootRect2() {
13183
- return _ref.apply(this, arguments);
13184
- };
13185
- }();
13098
+ })();
13099
+ };
13186
13100
  Taro.nextTick(function() {
13187
13101
  getRootRect();
13188
13102
  });
@@ -13204,8 +13118,8 @@
13204
13118
  isRange,
13205
13119
  touch
13206
13120
  ]);
13207
- var onTouchMove = React.useCallback(/* @__PURE__ */ function() {
13208
- var _ref = _async_to_generator(function(event) {
13121
+ var onTouchMove = React.useCallback(function(event) {
13122
+ return _async_to_generator(function() {
13209
13123
  var handleMove;
13210
13124
  return __generator(this, function(_state) {
13211
13125
  if (disabled || !root2.current) return [
@@ -13216,8 +13130,8 @@
13216
13130
  dragStatusRef.current = "draging";
13217
13131
  }
13218
13132
  touch.move(event);
13219
- handleMove = /* @__PURE__ */ function() {
13220
- var _ref2 = _async_to_generator(function() {
13133
+ handleMove = function() {
13134
+ return _async_to_generator(function() {
13221
13135
  var delta, total, diff, newValue;
13222
13136
  return __generator(this, function(_state2) {
13223
13137
  if (!rootRect.current) return [
@@ -13243,21 +13157,15 @@
13243
13157
  2
13244
13158
  ];
13245
13159
  });
13246
- });
13247
- return function handleMove2() {
13248
- return _ref2.apply(this, arguments);
13249
- };
13250
- }();
13160
+ })();
13161
+ };
13251
13162
  requestAnimationFrame(handleMove);
13252
13163
  return [
13253
13164
  2
13254
13165
  ];
13255
13166
  });
13256
- });
13257
- return function(event) {
13258
- return _ref.apply(this, arguments);
13259
- };
13260
- }(), [
13167
+ })();
13168
+ }, [
13261
13169
  disabled,
13262
13170
  isRange,
13263
13171
  onStart,
@@ -14167,8 +14075,8 @@
14167
14075
  (_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-close"), !value2), _define_property(_obj2, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-disabled-close"), disabled && !value2), _obj2)
14168
14076
  ]);
14169
14077
  };
14170
- var onClick = /* @__PURE__ */ function() {
14171
- var _ref2 = _async_to_generator(function() {
14078
+ var onClick = function() {
14079
+ return _async_to_generator(function() {
14172
14080
  return __generator(this, function(_state) {
14173
14081
  switch (_state.label) {
14174
14082
  case 0:
@@ -14212,11 +14120,8 @@
14212
14120
  ];
14213
14121
  }
14214
14122
  });
14215
- });
14216
- return function onClick2() {
14217
- return _ref2.apply(this, arguments);
14218
- };
14219
- }();
14123
+ })();
14124
+ };
14220
14125
  var _obj, _obj1;
14221
14126
  return /* @__PURE__ */ React.createElement(components.View, _object_spread({
14222
14127
  className: classes(),
@@ -14724,22 +14629,24 @@
14724
14629
  var classes = classNames(className, "nut-uploader");
14725
14630
  React.useImperativeHandle(ref, function() {
14726
14631
  return {
14727
- submit: /* @__PURE__ */ _async_to_generator(function() {
14728
- return __generator(this, function(_state) {
14729
- switch (_state.label) {
14730
- case 0:
14731
- return [
14732
- 4,
14733
- uploadAction(uploadQueue)
14734
- ];
14735
- case 1:
14736
- _state.sent();
14737
- return [
14738
- 2
14739
- ];
14740
- }
14741
- });
14742
- }),
14632
+ submit: function() {
14633
+ return _async_to_generator(function() {
14634
+ return __generator(this, function(_state) {
14635
+ switch (_state.label) {
14636
+ case 0:
14637
+ return [
14638
+ 4,
14639
+ uploadAction(uploadQueue)
14640
+ ];
14641
+ case 1:
14642
+ _state.sent();
14643
+ return [
14644
+ 2
14645
+ ];
14646
+ }
14647
+ });
14648
+ })();
14649
+ },
14743
14650
  clear: function() {
14744
14651
  clearUploadQueue();
14745
14652
  }
@@ -14812,8 +14719,8 @@
14812
14719
  });
14813
14720
  }
14814
14721
  };
14815
- var uploadAction = /* @__PURE__ */ function() {
14816
- var _ref2 = _async_to_generator(function(tasks) {
14722
+ var uploadAction = function(tasks) {
14723
+ return _async_to_generator(function() {
14817
14724
  var taskIds, list;
14818
14725
  return __generator(this, function(_state) {
14819
14726
  switch (_state.label) {
@@ -14833,8 +14740,8 @@
14833
14740
  setFileList(list);
14834
14741
  return [
14835
14742
  4,
14836
- Promise.all(tasks.map(/* @__PURE__ */ function() {
14837
- var _ref3 = _async_to_generator(function(currentTask, index2) {
14743
+ Promise.all(tasks.map(function(currentTask, index2) {
14744
+ return _async_to_generator(function() {
14838
14745
  var result, list2, e, list1;
14839
14746
  return __generator(this, function(_state2) {
14840
14747
  switch (_state2.label) {
@@ -14881,11 +14788,8 @@
14881
14788
  ];
14882
14789
  }
14883
14790
  });
14884
- });
14885
- return function(currentTask, index2) {
14886
- return _ref3.apply(this, arguments);
14887
- };
14888
- }())).catch(function(errs) {
14791
+ })();
14792
+ })).catch(function(errs) {
14889
14793
  return console.error(errs);
14890
14794
  })
14891
14795
  ];
@@ -14896,14 +14800,11 @@
14896
14800
  ];
14897
14801
  }
14898
14802
  });
14899
- });
14900
- return function uploadAction2(tasks) {
14901
- return _ref2.apply(this, arguments);
14902
- };
14903
- }();
14803
+ })();
14804
+ };
14904
14805
  var idCountRef = React.useRef(0);
14905
- var readFile = /* @__PURE__ */ function() {
14906
- var _ref2 = _async_to_generator(function(files) {
14806
+ var readFile = function(files) {
14807
+ return _async_to_generator(function() {
14907
14808
  var tasks;
14908
14809
  return __generator(this, function(_state) {
14909
14810
  switch (_state.label) {
@@ -14961,11 +14862,8 @@
14961
14862
  ];
14962
14863
  }
14963
14864
  });
14964
- });
14965
- return function readFile2(files) {
14966
- return _ref2.apply(this, arguments);
14967
- };
14968
- }();
14865
+ })();
14866
+ };
14969
14867
  var filterFiles = function(files) {
14970
14868
  var maximum = maxCount * 1;
14971
14869
  var maximize = maxFileSize * 1;
@@ -15004,8 +14902,8 @@
15004
14902
  }
15005
14903
  });
15006
14904
  };
15007
- var onChangeMedia = /* @__PURE__ */ function() {
15008
- var _ref2 = _async_to_generator(function(res) {
14905
+ var onChangeMedia = function(res) {
14906
+ return _async_to_generator(function() {
15009
14907
  var tempFiles, _files;
15010
14908
  return __generator(this, function(_state) {
15011
14909
  tempFiles = res.tempFiles;
@@ -15023,13 +14921,10 @@
15023
14921
  2
15024
14922
  ];
15025
14923
  });
15026
- });
15027
- return function onChangeMedia2(res) {
15028
- return _ref2.apply(this, arguments);
15029
- };
15030
- }();
15031
- var onChangeImage = /* @__PURE__ */ function() {
15032
- var _ref2 = _async_to_generator(function(res) {
14924
+ })();
14925
+ };
14926
+ var onChangeImage = function(res) {
14927
+ return _async_to_generator(function() {
15033
14928
  var tempFiles, _files;
15034
14929
  return __generator(this, function(_state) {
15035
14930
  tempFiles = res.tempFiles;
@@ -15047,11 +14942,8 @@
15047
14942
  2
15048
14943
  ];
15049
14944
  });
15050
- });
15051
- return function onChangeImage2(res) {
15052
- return _ref2.apply(this, arguments);
15053
- };
15054
- }();
14945
+ })();
14946
+ };
15055
14947
  var handleItemClick = function(file, index2) {
15056
14948
  onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index2);
15057
14949
  };
@@ -15264,8 +15156,8 @@
15264
15156
  if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
15265
15157
  onCancel();
15266
15158
  };
15267
- var handleOk = /* @__PURE__ */ function() {
15268
- var _ref = _async_to_generator(function(e) {
15159
+ var handleOk = function(e) {
15160
+ return _async_to_generator(function() {
15269
15161
  return __generator(this, function(_state) {
15270
15162
  switch (_state.label) {
15271
15163
  case 0:
@@ -15304,11 +15196,8 @@
15304
15196
  ];
15305
15197
  }
15306
15198
  });
15307
- });
15308
- return function handleOk2(e) {
15309
- return _ref.apply(this, arguments);
15310
- };
15311
- }();
15199
+ })();
15200
+ };
15312
15201
  var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix2, "-footer-block") : "";
15313
15202
  var renderCancelOfVertical = function() {
15314
15203
  return !hideCancelButton && /* @__PURE__ */ React.createElement(components.View, {
@@ -15452,9 +15341,9 @@
15452
15341
  var translateX = React.useRef(0);
15453
15342
  var translateY = React.useRef(0);
15454
15343
  var middleLine = React.useRef(0);
15455
- var getInfo = /* @__PURE__ */ function() {
15456
- var _ref = _async_to_generator(function() {
15457
- var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight, _ref2, width2, height2, dragTop, dragLeft;
15344
+ var getInfo = function() {
15345
+ return _async_to_generator(function() {
15346
+ var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight, _ref, width2, height2, dragTop, dragLeft;
15458
15347
  return __generator(this, function(_state) {
15459
15348
  switch (_state.label) {
15460
15349
  case 0:
@@ -15470,7 +15359,7 @@
15470
15359
  getRectInMultiPlatform(dragRef.current)
15471
15360
  ];
15472
15361
  case 1:
15473
- _ref2 = _state.sent(), width2 = _ref2.width, height2 = _ref2.height, dragTop = _ref2.top, dragLeft = _ref2.left;
15362
+ _ref = _state.sent(), width2 = _ref.width, height2 = _ref.height, dragTop = _ref.top, dragLeft = _ref.left;
15474
15363
  setBoundaryState({
15475
15364
  top: -dragTop + top,
15476
15365
  left: -dragLeft + left2,
@@ -15485,11 +15374,8 @@
15485
15374
  ];
15486
15375
  }
15487
15376
  });
15488
- });
15489
- return function getInfo2() {
15490
- return _ref.apply(this, arguments);
15491
- };
15492
- }();
15377
+ })();
15378
+ };
15493
15379
  var touchStart = function(e) {
15494
15380
  onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart();
15495
15381
  var touches = e.touches[0];
@@ -15741,8 +15627,8 @@
15741
15627
  }
15742
15628
  onScroll && onScroll(e.target.scrollTop);
15743
15629
  };
15744
- var lower = /* @__PURE__ */ function() {
15745
- var _ref2 = _async_to_generator(function() {
15630
+ var lower = function() {
15631
+ return _async_to_generator(function() {
15746
15632
  return __generator(this, function(_state) {
15747
15633
  switch (_state.label) {
15748
15634
  case 0:
@@ -15765,11 +15651,8 @@
15765
15651
  ];
15766
15652
  }
15767
15653
  });
15768
- });
15769
- return function lower2() {
15770
- return _ref2.apply(this, arguments);
15771
- };
15772
- }();
15654
+ })();
15655
+ };
15773
15656
  var touchStart = function(event) {
15774
15657
  if (scrollTop.current === 0 && !isTouching.current && pullRefresh) {
15775
15658
  y.current = event.touches[0].pageY;
@@ -15791,8 +15674,8 @@
15791
15674
  isTouching.current = false;
15792
15675
  }
15793
15676
  };
15794
- var touchEnd = /* @__PURE__ */ function() {
15795
- var _ref2 = _async_to_generator(function() {
15677
+ var touchEnd = function() {
15678
+ return _async_to_generator(function() {
15796
15679
  return __generator(this, function(_state) {
15797
15680
  switch (_state.label) {
15798
15681
  case 0:
@@ -15822,11 +15705,8 @@
15822
15705
  ];
15823
15706
  }
15824
15707
  });
15825
- });
15826
- return function touchEnd2() {
15827
- return _ref2.apply(this, arguments);
15828
- };
15829
- }();
15708
+ })();
15709
+ };
15830
15710
  return /* @__PURE__ */ React.createElement(components.ScrollView, _object_spread_props(_object_spread({}, rest), {
15831
15711
  className: classes,
15832
15712
  scrollY: true,
@@ -15998,46 +15878,48 @@
15998
15878
  if (showNoticeBar === false) {
15999
15879
  return;
16000
15880
  }
16001
- setTimeout(/* @__PURE__ */ _async_to_generator(function() {
16002
- var warpRes, contentRes, wrapW, offsetW, canScroll;
16003
- return __generator(this, function(_state) {
16004
- switch (_state.label) {
16005
- case 0:
16006
- if (!wrapRef.current || !contentRef.current) {
15881
+ setTimeout(function() {
15882
+ return _async_to_generator(function() {
15883
+ var warpRes, contentRes, wrapW, offsetW, canScroll;
15884
+ return __generator(this, function(_state) {
15885
+ switch (_state.label) {
15886
+ case 0:
15887
+ if (!wrapRef.current || !contentRef.current) {
15888
+ return [
15889
+ 2
15890
+ ];
15891
+ }
15892
+ return [
15893
+ 4,
15894
+ getRectInMultiPlatform(wrapRef.current)
15895
+ ];
15896
+ case 1:
15897
+ warpRes = _state.sent();
15898
+ return [
15899
+ 4,
15900
+ getRectInMultiPlatform(contentRef.current)
15901
+ ];
15902
+ case 2:
15903
+ contentRes = _state.sent();
15904
+ wrapW = warpRes.width;
15905
+ offsetW = contentRes.width;
15906
+ canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
15907
+ SetIsCanScroll(canScroll);
15908
+ if (canScroll) {
15909
+ SetWrapWidth(wrapW);
15910
+ SetOffsetW(offsetW);
15911
+ SetAnimationDuration(offsetW / speed);
15912
+ SetAnimationClass("play");
15913
+ } else {
15914
+ SetAnimationClass("");
15915
+ }
16007
15916
  return [
16008
15917
  2
16009
15918
  ];
16010
- }
16011
- return [
16012
- 4,
16013
- getRectInMultiPlatform(wrapRef.current)
16014
- ];
16015
- case 1:
16016
- warpRes = _state.sent();
16017
- return [
16018
- 4,
16019
- getRectInMultiPlatform(contentRef.current)
16020
- ];
16021
- case 2:
16022
- contentRes = _state.sent();
16023
- wrapW = warpRes.width;
16024
- offsetW = contentRes.width;
16025
- canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
16026
- SetIsCanScroll(canScroll);
16027
- if (canScroll) {
16028
- SetWrapWidth(wrapW);
16029
- SetOffsetW(offsetW);
16030
- SetAnimationDuration(offsetW / speed);
16031
- SetAnimationClass("play");
16032
- } else {
16033
- SetAnimationClass("");
16034
- }
16035
- return [
16036
- 2
16037
- ];
16038
- }
16039
- });
16040
- }), 0);
15919
+ }
15920
+ });
15921
+ })();
15922
+ }, 0);
16041
15923
  };
16042
15924
  var handleClick = function(event) {
16043
15925
  click && click(event);
@@ -16100,35 +15982,37 @@
16100
15982
  var init = function() {
16101
15983
  var activeIndex = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
16102
15984
  if (!(container === null || container === void 0 ? void 0 : container.current)) return;
16103
- setTimeout(/* @__PURE__ */ _async_to_generator(function() {
16104
- var rects, _active, _height, targetOffset;
16105
- return __generator(this, function(_state) {
16106
- switch (_state.label) {
16107
- case 0:
16108
- return [
16109
- 4,
16110
- getRectInMultiPlatform(container === null || container === void 0 ? void 0 : container.current)
16111
- ];
16112
- case 1:
16113
- rects = _state.sent();
16114
- _active = Math.max(Math.min(childCount - 1, activeIndex), 0);
16115
- _height = rects === null || rects === void 0 ? void 0 : rects.height;
16116
- trackSize = childCount * Number(_height);
16117
- targetOffset = getOffset(_active);
16118
- activeRef.current = _active;
16119
- setRect(rects);
16120
- setOffset(targetOffset);
16121
- setChildOffset(new Array(childCount).fill(0));
16122
- swiperRef.current.moving = true;
16123
- setStyle(targetOffset, rects);
16124
- swiperRef.current.moving = false;
16125
- setReady(true);
16126
- return [
16127
- 2
16128
- ];
16129
- }
16130
- });
16131
- }), 0);
15985
+ setTimeout(function() {
15986
+ return _async_to_generator(function() {
15987
+ var rects, _active, _height, targetOffset;
15988
+ return __generator(this, function(_state) {
15989
+ switch (_state.label) {
15990
+ case 0:
15991
+ return [
15992
+ 4,
15993
+ getRectInMultiPlatform(container === null || container === void 0 ? void 0 : container.current)
15994
+ ];
15995
+ case 1:
15996
+ rects = _state.sent();
15997
+ _active = Math.max(Math.min(childCount - 1, activeIndex), 0);
15998
+ _height = rects === null || rects === void 0 ? void 0 : rects.height;
15999
+ trackSize = childCount * Number(_height);
16000
+ targetOffset = getOffset(_active);
16001
+ activeRef.current = _active;
16002
+ setRect(rects);
16003
+ setOffset(targetOffset);
16004
+ setChildOffset(new Array(childCount).fill(0));
16005
+ swiperRef.current.moving = true;
16006
+ setStyle(targetOffset, rects);
16007
+ swiperRef.current.moving = false;
16008
+ setReady(true);
16009
+ return [
16010
+ 2
16011
+ ];
16012
+ }
16013
+ });
16014
+ })();
16015
+ }, 0);
16132
16016
  };
16133
16017
  React.useEffect(function() {
16134
16018
  if (ready) {
@@ -16517,93 +16401,91 @@
16517
16401
  ]);
16518
16402
  var uid = useUuid();
16519
16403
  var popoverId = "popover-".concat(uid);
16520
- var getWrapperPosition = /* @__PURE__ */ function() {
16521
- var _ref2 = _async_to_generator(function() {
16404
+ var getWrapperPosition = function() {
16405
+ return _async_to_generator(function() {
16522
16406
  return __generator(this, function(_state) {
16523
- Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
16524
- var rect, _tmp, width2, height2, right2, left2, top;
16525
- return __generator(this, function(_state2) {
16526
- switch (_state2.label) {
16527
- case 0:
16528
- if (!targetId) return [
16529
- 3,
16530
- 2
16531
- ];
16532
- return [
16533
- 4,
16534
- getRectInMultiPlatform(document.querySelector("#".concat(targetId)), targetId)
16535
- ];
16536
- case 1:
16537
- _tmp = _state2.sent();
16538
- return [
16539
- 3,
16540
- 4
16541
- ];
16542
- case 2:
16543
- return [
16544
- 4,
16545
- getRectInMultiPlatform(popoverRef.current, popoverId)
16546
- ];
16547
- case 3:
16548
- _tmp = _state2.sent();
16549
- _state2.label = 4;
16550
- case 4:
16551
- rect = _tmp;
16552
- width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
16553
- setWrapperPosition({
16554
- width: width2,
16555
- height: height2,
16556
- left: rtl ? right2 : left2,
16557
- top,
16558
- right: rtl ? left2 : right2
16559
- });
16560
- getPopoverContentW();
16561
- return [
16562
- 2
16563
- ];
16564
- }
16565
- });
16566
- }));
16407
+ Taro.nextTick(function() {
16408
+ return _async_to_generator(function() {
16409
+ var rect, _tmp, width2, height2, right2, left2, top;
16410
+ return __generator(this, function(_state2) {
16411
+ switch (_state2.label) {
16412
+ case 0:
16413
+ if (!targetId) return [
16414
+ 3,
16415
+ 2
16416
+ ];
16417
+ return [
16418
+ 4,
16419
+ getRectInMultiPlatform(document.querySelector("#".concat(targetId)), targetId)
16420
+ ];
16421
+ case 1:
16422
+ _tmp = _state2.sent();
16423
+ return [
16424
+ 3,
16425
+ 4
16426
+ ];
16427
+ case 2:
16428
+ return [
16429
+ 4,
16430
+ getRectInMultiPlatform(popoverRef.current, popoverId)
16431
+ ];
16432
+ case 3:
16433
+ _tmp = _state2.sent();
16434
+ _state2.label = 4;
16435
+ case 4:
16436
+ rect = _tmp;
16437
+ width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
16438
+ setWrapperPosition({
16439
+ width: width2,
16440
+ height: height2,
16441
+ left: rtl ? right2 : left2,
16442
+ top,
16443
+ right: rtl ? left2 : right2
16444
+ });
16445
+ getPopoverContentW();
16446
+ return [
16447
+ 2
16448
+ ];
16449
+ }
16450
+ });
16451
+ })();
16452
+ });
16567
16453
  return [
16568
16454
  2
16569
16455
  ];
16570
16456
  });
16571
- });
16572
- return function getWrapperPosition2() {
16573
- return _ref2.apply(this, arguments);
16574
- };
16575
- }();
16576
- var getPopoverContentW = /* @__PURE__ */ function() {
16577
- var _ref2 = _async_to_generator(function() {
16457
+ })();
16458
+ };
16459
+ var getPopoverContentW = function() {
16460
+ return _async_to_generator(function() {
16578
16461
  return __generator(this, function(_state) {
16579
- Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
16580
- var rectContent;
16581
- return __generator(this, function(_state2) {
16582
- switch (_state2.label) {
16583
- case 0:
16584
- return [
16585
- 4,
16586
- getRectInMultiPlatform(popoverContentRef.current)
16587
- ];
16588
- case 1:
16589
- rectContent = _state2.sent();
16590
- setPopWidth(rectContent.width);
16591
- setPopHeight(rectContent.height);
16592
- return [
16593
- 2
16594
- ];
16595
- }
16596
- });
16597
- }));
16462
+ Taro.nextTick(function() {
16463
+ return _async_to_generator(function() {
16464
+ var rectContent;
16465
+ return __generator(this, function(_state2) {
16466
+ switch (_state2.label) {
16467
+ case 0:
16468
+ return [
16469
+ 4,
16470
+ getRectInMultiPlatform(popoverContentRef.current)
16471
+ ];
16472
+ case 1:
16473
+ rectContent = _state2.sent();
16474
+ setPopWidth(rectContent.width);
16475
+ setPopHeight(rectContent.height);
16476
+ return [
16477
+ 2
16478
+ ];
16479
+ }
16480
+ });
16481
+ })();
16482
+ });
16598
16483
  return [
16599
16484
  2
16600
16485
  ];
16601
16486
  });
16602
- });
16603
- return function getPopoverContentW2() {
16604
- return _ref2.apply(this, arguments);
16605
- };
16606
- }();
16487
+ })();
16488
+ };
16607
16489
  var clickAway = function() {
16608
16490
  if (closeOnOutsideClick) {
16609
16491
  onClick === null || onClick === void 0 ? void 0 : onClick();
@@ -16794,7 +16676,58 @@
16794
16676
  });
16795
16677
  var PullToRefresh = function(p) {
16796
16678
  var doRefresh = function doRefresh2() {
16797
- return _doRefresh.apply(this, arguments);
16679
+ return _async_to_generator(function() {
16680
+ var e;
16681
+ return __generator(this, function(_state) {
16682
+ switch (_state.label) {
16683
+ case 0:
16684
+ setHeight(headHeight);
16685
+ setStatus("refreshing");
16686
+ _state.label = 1;
16687
+ case 1:
16688
+ _state.trys.push([
16689
+ 1,
16690
+ 3,
16691
+ ,
16692
+ 4
16693
+ ]);
16694
+ return [
16695
+ 4,
16696
+ props.onRefresh()
16697
+ ];
16698
+ case 2:
16699
+ _state.sent();
16700
+ setStatus("complete");
16701
+ return [
16702
+ 3,
16703
+ 4
16704
+ ];
16705
+ case 3:
16706
+ e = _state.sent();
16707
+ setHeight(0);
16708
+ setStatus("pulling");
16709
+ throw e;
16710
+ case 4:
16711
+ if (!(props.completeDelay > 0)) return [
16712
+ 3,
16713
+ 6
16714
+ ];
16715
+ return [
16716
+ 4,
16717
+ sleep(props.completeDelay)
16718
+ ];
16719
+ case 5:
16720
+ _state.sent();
16721
+ _state.label = 6;
16722
+ case 6:
16723
+ setHeight(0);
16724
+ setStatus("pulling");
16725
+ return [
16726
+ 2
16727
+ ];
16728
+ }
16729
+ });
16730
+ })();
16798
16731
  };
16799
16732
  var classPrefix2 = "nut-pulltorefresh";
16800
16733
  var locale = useConfig().locale;
@@ -16850,61 +16783,6 @@
16850
16783
  }
16851
16784
  clearTimeout(timer.current);
16852
16785
  };
16853
- function _doRefresh() {
16854
- _doRefresh = _async_to_generator(function() {
16855
- var e;
16856
- return __generator(this, function(_state) {
16857
- switch (_state.label) {
16858
- case 0:
16859
- setHeight(headHeight);
16860
- setStatus("refreshing");
16861
- _state.label = 1;
16862
- case 1:
16863
- _state.trys.push([
16864
- 1,
16865
- 3,
16866
- ,
16867
- 4
16868
- ]);
16869
- return [
16870
- 4,
16871
- props.onRefresh()
16872
- ];
16873
- case 2:
16874
- _state.sent();
16875
- setStatus("complete");
16876
- return [
16877
- 3,
16878
- 4
16879
- ];
16880
- case 3:
16881
- e = _state.sent();
16882
- setHeight(0);
16883
- setStatus("pulling");
16884
- throw e;
16885
- case 4:
16886
- if (!(props.completeDelay > 0)) return [
16887
- 3,
16888
- 6
16889
- ];
16890
- return [
16891
- 4,
16892
- sleep(props.completeDelay)
16893
- ];
16894
- case 5:
16895
- _state.sent();
16896
- _state.label = 6;
16897
- case 6:
16898
- setHeight(0);
16899
- setStatus("pulling");
16900
- return [
16901
- 2
16902
- ];
16903
- }
16904
- });
16905
- });
16906
- return _doRefresh.apply(this, arguments);
16907
- }
16908
16786
  var handleTouchEnd = function() {
16909
16787
  if (props.disabled) return;
16910
16788
  pullingRef.current = false;
@@ -17095,8 +16973,8 @@
17095
16973
  var uid = useUuid();
17096
16974
  var leftId = "swipe-left-".concat(uid);
17097
16975
  var rightId = "swipe-right-".concat(uid);
17098
- var getWidth = /* @__PURE__ */ function() {
17099
- var _ref = _async_to_generator(function() {
16976
+ var getWidth = function() {
16977
+ return _async_to_generator(function() {
17100
16978
  var leftRect, rightRect;
17101
16979
  return __generator(this, function(_state) {
17102
16980
  switch (_state.label) {
@@ -17107,7 +16985,7 @@
17107
16985
  ];
17108
16986
  return [
17109
16987
  4,
17110
- getRectInMultiPlatformWithoutCache(leftWrapper.current, leftId)
16988
+ getRectInMultiPlatform(leftWrapper.current, leftId)
17111
16989
  ];
17112
16990
  case 1:
17113
16991
  leftRect = _state.sent();
@@ -17124,7 +17002,7 @@
17124
17002
  ];
17125
17003
  return [
17126
17004
  4,
17127
- getRectInMultiPlatformWithoutCache(rightWrapper.current, rightId)
17005
+ getRectInMultiPlatform(rightWrapper.current, rightId)
17128
17006
  ];
17129
17007
  case 3:
17130
17008
  rightRect = _state.sent();
@@ -17140,11 +17018,8 @@
17140
17018
  ];
17141
17019
  }
17142
17020
  });
17143
- });
17144
- return function getWidth2() {
17145
- return _ref.apply(this, arguments);
17146
- };
17147
- }();
17021
+ })();
17022
+ };
17148
17023
  Taro.useReady(function() {
17149
17024
  Taro.nextTick(function() {
17150
17025
  return getWidth();
@@ -17179,13 +17054,14 @@
17179
17054
  var wrapperStyle = React.useMemo(function() {
17180
17055
  return {
17181
17056
  transform: "translate(".concat(state.offset, "px, 0)"),
17182
- transitionDuration: ".6s"
17057
+ transitionDuration: state.dragging ? "0.01s" : ".6s"
17183
17058
  };
17184
17059
  }, [
17185
- state.offset
17060
+ state.offset,
17061
+ state.dragging
17186
17062
  ]);
17187
- var onTouchStart = /* @__PURE__ */ function() {
17188
- var _ref = _async_to_generator(function(event) {
17063
+ var onTouchStart = function(event) {
17064
+ return _async_to_generator(function() {
17189
17065
  var _props_onTouchStart;
17190
17066
  return __generator(this, function(_state) {
17191
17067
  if (!props.disabled) {
@@ -17198,11 +17074,8 @@
17198
17074
  2
17199
17075
  ];
17200
17076
  });
17201
- });
17202
- return function onTouchStart2(event) {
17203
- return _ref.apply(this, arguments);
17204
- };
17205
- }();
17077
+ })();
17078
+ };
17206
17079
  var onTouchMove = function(event) {
17207
17080
  var _props_onTouchMove;
17208
17081
  if (props.disabled) return;
@@ -17318,7 +17191,6 @@
17318
17191
  });
17319
17192
  React.useEffect(function() {
17320
17193
  var handler = function(event) {
17321
- console.log("~~hanyu handler---- window", event);
17322
17194
  var targets = [
17323
17195
  root2
17324
17196
  ];
@@ -18174,8 +18046,8 @@
18174
18046
  var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
18175
18047
  var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
18176
18048
  var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
18177
- var updateRectHeight = /* @__PURE__ */ function() {
18178
- var _ref2 = _async_to_generator(function() {
18049
+ var updateRectHeight = function() {
18050
+ return _async_to_generator(function() {
18179
18051
  var res;
18180
18052
  return __generator(this, function(_state) {
18181
18053
  switch (_state.label) {
@@ -18198,11 +18070,8 @@
18198
18070
  ];
18199
18071
  }
18200
18072
  });
18201
- });
18202
- return function updateRectHeight2() {
18203
- return _ref2.apply(this, arguments);
18204
- };
18205
- }();
18073
+ })();
18074
+ };
18206
18075
  React.useEffect(function() {
18207
18076
  Taro.nextTick(function() {
18208
18077
  updateRectHeight();
@@ -18605,8 +18474,8 @@
18605
18474
  }, [
18606
18475
  content2
18607
18476
  ]);
18608
- var getSymbolInfo = /* @__PURE__ */ function() {
18609
- var _ref2 = _async_to_generator(function() {
18477
+ var getSymbolInfo = function() {
18478
+ return _async_to_generator(function() {
18610
18479
  var refe;
18611
18480
  return __generator(this, function(_state) {
18612
18481
  switch (_state.label) {
@@ -18623,19 +18492,16 @@
18623
18492
  ];
18624
18493
  }
18625
18494
  });
18626
- });
18627
- return function getSymbolInfo2() {
18628
- return _ref2.apply(this, arguments);
18629
- };
18630
- }();
18495
+ })();
18496
+ };
18631
18497
  var symbolText = function() {
18632
18498
  if (direction === "end" || direction === "middle") {
18633
18499
  return "".concat(symbol).concat(expandText);
18634
18500
  }
18635
18501
  return "".concat(symbol).concat(expandText).concat(symbol);
18636
18502
  };
18637
- var getReference = /* @__PURE__ */ function() {
18638
- var _ref2 = _async_to_generator(function() {
18503
+ var getReference = function() {
18504
+ return _async_to_generator(function() {
18639
18505
  var query;
18640
18506
  return __generator(this, function(_state) {
18641
18507
  query = Taro.createSelectorQuery();
@@ -18671,13 +18537,10 @@
18671
18537
  2
18672
18538
  ];
18673
18539
  });
18674
- });
18675
- return function getReference2() {
18676
- return _ref2.apply(this, arguments);
18677
- };
18678
- }();
18679
- var calcEllipse = /* @__PURE__ */ function() {
18680
- var _ref2 = _async_to_generator(function() {
18540
+ })();
18541
+ };
18542
+ var calcEllipse = function() {
18543
+ return _async_to_generator(function() {
18681
18544
  var refe, rowNum, end, end1, start;
18682
18545
  return __generator(this, function(_state) {
18683
18546
  switch (_state.label) {
@@ -18714,13 +18577,10 @@
18714
18577
  ];
18715
18578
  }
18716
18579
  });
18717
- });
18718
- return function calcEllipse2() {
18719
- return _ref2.apply(this, arguments);
18720
- };
18721
- }();
18722
- var verifyEllipsis = /* @__PURE__ */ function() {
18723
- var _ref2 = _async_to_generator(function() {
18580
+ })();
18581
+ };
18582
+ var verifyEllipsis = function() {
18583
+ return _async_to_generator(function() {
18724
18584
  var refe, _ellipsis_current_leading, _ellipsis_current4, _ellipsis_current_leading1, _ellipsis_current12, _ellipsis_current22, _ellipsis_current_tailing, _ellipsis_current32;
18725
18585
  return __generator(this, function(_state) {
18726
18586
  switch (_state.label) {
@@ -18747,11 +18607,8 @@
18747
18607
  ];
18748
18608
  }
18749
18609
  });
18750
- });
18751
- return function verifyEllipsis2() {
18752
- return _ref2.apply(this, arguments);
18753
- };
18754
- }();
18610
+ })();
18611
+ };
18755
18612
  var assignContent = function() {
18756
18613
  var _ellipsis_current4, _ellipsis_current12, _ellipsis_current22, _ellipsis_current32;
18757
18614
  var newContent = "".concat(((_ellipsis_current4 = ellipsis.current) === null || _ellipsis_current4 === void 0 ? void 0 : _ellipsis_current4.leading) || "").concat(((_ellipsis_current12 = ellipsis.current) === null || _ellipsis_current12 === void 0 ? void 0 : _ellipsis_current12.leading) ? symbol : "").concat(expandText || "").concat(((_ellipsis_current22 = ellipsis.current) === null || _ellipsis_current22 === void 0 ? void 0 : _ellipsis_current22.tailing) ? symbol : "").concat(((_ellipsis_current32 = ellipsis.current) === null || _ellipsis_current32 === void 0 ? void 0 : _ellipsis_current32.tailing) || "");
@@ -19297,7 +19154,7 @@
19297
19154
  ImagePreview.displayName = "NutImagePreview";
19298
19155
  var lottie$2 = { exports: {} };
19299
19156
  (function(module, exports) {
19300
- typeof navigator !== "undefined" && function(global2, factory2) {
19157
+ typeof document !== "undefined" && typeof navigator !== "undefined" && function(global2, factory2) {
19301
19158
  module.exports = factory2();
19302
19159
  }(commonjsGlobal, function() {
19303
19160
  var svgNS = "http://www.w3.org/2000/svg";
@@ -19467,18 +19324,13 @@
19467
19324
  length: len2
19468
19325
  });
19469
19326
  }
19470
- function _typeof$6(obj) {
19327
+ function _typeof$6(o) {
19471
19328
  "@babel/helpers - typeof";
19472
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
19473
- _typeof$6 = function _typeof2(obj2) {
19474
- return typeof obj2;
19475
- };
19476
- } else {
19477
- _typeof$6 = function _typeof2(obj2) {
19478
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
19479
- };
19480
- }
19481
- return _typeof$6(obj);
19329
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
19330
+ return typeof o2;
19331
+ } : function(o2) {
19332
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
19333
+ }, _typeof$6(o);
19482
19334
  }
19483
19335
  var subframeEnabled = true;
19484
19336
  var expressionsPlugin = null;
@@ -19725,18 +19577,13 @@
19725
19577
  function createNS(type2) {
19726
19578
  return document.createElementNS(svgNS, type2);
19727
19579
  }
19728
- function _typeof$5(obj) {
19580
+ function _typeof$5(o) {
19729
19581
  "@babel/helpers - typeof";
19730
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
19731
- _typeof$5 = function _typeof2(obj2) {
19732
- return typeof obj2;
19733
- };
19734
- } else {
19735
- _typeof$5 = function _typeof2(obj2) {
19736
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
19737
- };
19738
- }
19739
- return _typeof$5(obj);
19582
+ return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
19583
+ return typeof o2;
19584
+ } : function(o2) {
19585
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
19586
+ }, _typeof$5(o);
19740
19587
  }
19741
19588
  var dataManager = /* @__PURE__ */ function() {
19742
19589
  var _counterId = 1;
@@ -20692,18 +20539,13 @@
20692
20539
  }
20693
20540
  return "";
20694
20541
  }
20695
- function _typeof$4(obj) {
20542
+ function _typeof$4(o) {
20696
20543
  "@babel/helpers - typeof";
20697
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
20698
- _typeof$4 = function _typeof2(obj2) {
20699
- return typeof obj2;
20700
- };
20701
- } else {
20702
- _typeof$4 = function _typeof2(obj2) {
20703
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
20704
- };
20705
- }
20706
- return _typeof$4(obj);
20544
+ return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
20545
+ return typeof o2;
20546
+ } : function(o2) {
20547
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
20548
+ }, _typeof$4(o);
20707
20549
  }
20708
20550
  var AnimationItem = function AnimationItem2() {
20709
20551
  this._cbs = [];
@@ -23472,18 +23314,13 @@
23472
23314
  this.reset();
23473
23315
  };
23474
23316
  }();
23475
- function _typeof$3(obj) {
23317
+ function _typeof$3(o) {
23476
23318
  "@babel/helpers - typeof";
23477
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
23478
- _typeof$3 = function _typeof2(obj2) {
23479
- return typeof obj2;
23480
- };
23481
- } else {
23482
- _typeof$3 = function _typeof2(obj2) {
23483
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
23484
- };
23485
- }
23486
- return _typeof$3(obj);
23319
+ return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
23320
+ return typeof o2;
23321
+ } : function(o2) {
23322
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
23323
+ }, _typeof$3(o);
23487
23324
  }
23488
23325
  var lottie = {};
23489
23326
  function setLocation(href) {
@@ -23567,7 +23404,7 @@
23567
23404
  lottie.useWebWorker = setWebWorker;
23568
23405
  lottie.setIDPrefix = setPrefix;
23569
23406
  lottie.__getFactory = getFactory;
23570
- lottie.version = "5.12.2";
23407
+ lottie.version = "5.13.0";
23571
23408
  function checkReady() {
23572
23409
  if (document.readyState === "complete") {
23573
23410
  clearInterval(readyStateCheckInterval);
@@ -26161,7 +25998,7 @@
26161
25998
  }
26162
25999
  }
26163
26000
  }
26164
- if (this.finalTransform._matMdf) {
26001
+ if (!this.localTransforms || this.finalTransform._matMdf) {
26165
26002
  this.finalTransform._localMatMdf = this.finalTransform._matMdf;
26166
26003
  }
26167
26004
  if (this.finalTransform._opMdf) {
@@ -27399,7 +27236,7 @@
27399
27236
  itemData.of.setAttribute("r", rad);
27400
27237
  }
27401
27238
  }
27402
- if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
27239
+ if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
27403
27240
  if (!rad) {
27404
27241
  rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
27405
27242
  }
@@ -27596,7 +27433,7 @@
27596
27433
  var j;
27597
27434
  var jLen = this.stylesList.length;
27598
27435
  for (j = 0; j < jLen; j += 1) {
27599
- if (!this.stylesList[j].closed) {
27436
+ if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
27600
27437
  arr.push(this.stylesList[j]);
27601
27438
  }
27602
27439
  }
@@ -27638,7 +27475,7 @@
27638
27475
  if (!processedPos) {
27639
27476
  itemsData[i2] = this.createStyleElement(arr[i2], level);
27640
27477
  } else {
27641
- itemsData[i2].style.closed = false;
27478
+ itemsData[i2].style.closed = arr[i2].hd;
27642
27479
  }
27643
27480
  if (arr[i2]._render) {
27644
27481
  if (itemsData[i2].style.pElem.parentNode !== container) {
@@ -32475,18 +32312,13 @@
32475
32312
  return _thisLayerFunction;
32476
32313
  };
32477
32314
  }();
32478
- function _typeof$2(obj) {
32315
+ function _typeof$2(o) {
32479
32316
  "@babel/helpers - typeof";
32480
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
32481
- _typeof$2 = function _typeof2(obj2) {
32482
- return typeof obj2;
32483
- };
32484
- } else {
32485
- _typeof$2 = function _typeof2(obj2) {
32486
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
32487
- };
32488
- }
32489
- return _typeof$2(obj);
32317
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
32318
+ return typeof o2;
32319
+ } : function(o2) {
32320
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
32321
+ }, _typeof$2(o);
32490
32322
  }
32491
32323
  function seedRandom(pool, math) {
32492
32324
  var global2 = this, width2 = 256, chunks = 6, digits = 52, rngname = "random", startdenom = math.pow(width2, chunks), significance = math.pow(2, digits), overflow = significance * 2, mask2 = width2 - 1, nodecrypto;
@@ -32605,18 +32437,13 @@
32605
32437
  var propTypes = {
32606
32438
  SHAPE: "shape"
32607
32439
  };
32608
- function _typeof$1(obj) {
32440
+ function _typeof$1(o) {
32609
32441
  "@babel/helpers - typeof";
32610
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
32611
- _typeof$1 = function _typeof2(obj2) {
32612
- return typeof obj2;
32613
- };
32614
- } else {
32615
- _typeof$1 = function _typeof2(obj2) {
32616
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
32617
- };
32618
- }
32619
- return _typeof$1(obj);
32442
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
32443
+ return typeof o2;
32444
+ } : function(o2) {
32445
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
32446
+ }, _typeof$1(o);
32620
32447
  }
32621
32448
  var ExpressionManager = function() {
32622
32449
  var ob = {};
@@ -32984,6 +32811,7 @@
32984
32811
  var content;
32985
32812
  var effect;
32986
32813
  var thisProperty = property;
32814
+ thisProperty._name = elem.data.nm;
32987
32815
  thisProperty.valueAtTime = thisProperty.getValueAtTime;
32988
32816
  Object.defineProperty(thisProperty, "value", {
32989
32817
  get: function get() {
@@ -33420,6 +33248,7 @@
33420
33248
  if (expressionValue.value !== val2) {
33421
33249
  expressionValue = new Number(val2);
33422
33250
  expressionValue.value = val2;
33251
+ expressionValue[0] = val2;
33423
33252
  completeProperty(expressionValue, property2, "unidimensional");
33424
33253
  }
33425
33254
  return expressionValue;
@@ -34459,18 +34288,13 @@
34459
34288
  return _thisLayerFunction;
34460
34289
  };
34461
34290
  }();
34462
- function _typeof(obj) {
34291
+ function _typeof(o) {
34463
34292
  "@babel/helpers - typeof";
34464
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
34465
- _typeof = function _typeof2(obj2) {
34466
- return typeof obj2;
34467
- };
34468
- } else {
34469
- _typeof = function _typeof2(obj2) {
34470
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
34471
- };
34472
- }
34473
- return _typeof(obj);
34293
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
34294
+ return typeof o2;
34295
+ } : function(o2) {
34296
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
34297
+ }, _typeof(o);
34474
34298
  }
34475
34299
  var FootageInterface = /* @__PURE__ */ function() {
34476
34300
  var outlineInterfaceFactory = function outlineInterfaceFactory2(elem2) {
@@ -35582,122 +35406,106 @@
35582
35406
  })(lottie$2, lottie$2.exports);
35583
35407
  var lottieExports = lottie$2.exports;
35584
35408
  const lottie$1 = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports);
35585
- function _iterableToArrayLimit(arr, i2) {
35586
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
35587
- if (null != _i) {
35588
- var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
35409
+ function _arrayLikeToArray(r, a) {
35410
+ (null == a || a > r.length) && (a = r.length);
35411
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
35412
+ return n;
35413
+ }
35414
+ function _arrayWithHoles(r) {
35415
+ if (Array.isArray(r)) return r;
35416
+ }
35417
+ function _defineProperty(e, r, t) {
35418
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
35419
+ value: t,
35420
+ enumerable: true,
35421
+ configurable: true,
35422
+ writable: true
35423
+ }) : e[r] = t, e;
35424
+ }
35425
+ function _iterableToArrayLimit(r, l) {
35426
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
35427
+ if (null != t) {
35428
+ var e, n, i2, u, a = [], f = true, o = false;
35589
35429
  try {
35590
- if (_x = (_i = _i.call(arr)).next, 0 === i2) ;
35591
- else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i2); _n = true) ;
35592
- } catch (err) {
35593
- _d = true, _e = err;
35430
+ if (i2 = (t = t.call(r)).next, 0 === l) ;
35431
+ else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
35432
+ } catch (r2) {
35433
+ o = true, n = r2;
35594
35434
  } finally {
35595
35435
  try {
35596
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
35436
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
35597
35437
  } finally {
35598
- if (_d) throw _e;
35438
+ if (o) throw n;
35599
35439
  }
35600
35440
  }
35601
- return _arr;
35441
+ return a;
35602
35442
  }
35603
35443
  }
35604
- function ownKeys(object2, enumerableOnly) {
35605
- var keys = Object.keys(object2);
35444
+ function _nonIterableRest() {
35445
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
35446
+ }
35447
+ function ownKeys(e, r) {
35448
+ var t = Object.keys(e);
35606
35449
  if (Object.getOwnPropertySymbols) {
35607
- var symbols = Object.getOwnPropertySymbols(object2);
35608
- enumerableOnly && (symbols = symbols.filter(function(sym) {
35609
- return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
35610
- })), keys.push.apply(keys, symbols);
35450
+ var o = Object.getOwnPropertySymbols(e);
35451
+ r && (o = o.filter(function(r2) {
35452
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
35453
+ })), t.push.apply(t, o);
35611
35454
  }
35612
- return keys;
35455
+ return t;
35613
35456
  }
35614
- function _objectSpread2(target) {
35615
- for (var i2 = 1; i2 < arguments.length; i2++) {
35616
- var source = null != arguments[i2] ? arguments[i2] : {};
35617
- i2 % 2 ? ownKeys(Object(source), true).forEach(function(key2) {
35618
- _defineProperty(target, key2, source[key2]);
35619
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) {
35620
- Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
35457
+ function _objectSpread2(e) {
35458
+ for (var r = 1; r < arguments.length; r++) {
35459
+ var t = null != arguments[r] ? arguments[r] : {};
35460
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
35461
+ _defineProperty(e, r2, t[r2]);
35462
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
35463
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
35621
35464
  });
35622
35465
  }
35623
- return target;
35466
+ return e;
35624
35467
  }
35625
- function _defineProperty(obj, key2, value2) {
35626
- key2 = _toPropertyKey(key2);
35627
- if (key2 in obj) {
35628
- Object.defineProperty(obj, key2, {
35629
- value: value2,
35630
- enumerable: true,
35631
- configurable: true,
35632
- writable: true
35633
- });
35634
- } else {
35635
- obj[key2] = value2;
35636
- }
35637
- return obj;
35638
- }
35639
- function _objectWithoutPropertiesLoose(source, excluded) {
35640
- if (source == null) return {};
35641
- var target = {};
35642
- var sourceKeys = Object.keys(source);
35643
- var key2, i2;
35644
- for (i2 = 0; i2 < sourceKeys.length; i2++) {
35645
- key2 = sourceKeys[i2];
35646
- if (excluded.indexOf(key2) >= 0) continue;
35647
- target[key2] = source[key2];
35648
- }
35649
- return target;
35650
- }
35651
- function _objectWithoutProperties(source, excluded) {
35652
- if (source == null) return {};
35653
- var target = _objectWithoutPropertiesLoose(source, excluded);
35654
- var key2, i2;
35468
+ function _objectWithoutProperties(e, t) {
35469
+ if (null == e) return {};
35470
+ var o, r, i2 = _objectWithoutPropertiesLoose(e, t);
35655
35471
  if (Object.getOwnPropertySymbols) {
35656
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35657
- for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
35658
- key2 = sourceSymbolKeys[i2];
35659
- if (excluded.indexOf(key2) >= 0) continue;
35660
- if (!Object.prototype.propertyIsEnumerable.call(source, key2)) continue;
35661
- target[key2] = source[key2];
35662
- }
35472
+ var s = Object.getOwnPropertySymbols(e);
35473
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i2[o] = e[o]);
35663
35474
  }
35664
- return target;
35475
+ return i2;
35665
35476
  }
35666
- function _slicedToArray(arr, i2) {
35667
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
35668
- }
35669
- function _arrayWithHoles(arr) {
35670
- if (Array.isArray(arr)) return arr;
35671
- }
35672
- function _unsupportedIterableToArray(o, minLen) {
35673
- if (!o) return;
35674
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
35675
- var n = Object.prototype.toString.call(o).slice(8, -1);
35676
- if (n === "Object" && o.constructor) n = o.constructor.name;
35677
- if (n === "Map" || n === "Set") return Array.from(o);
35678
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
35679
- }
35680
- function _arrayLikeToArray(arr, len2) {
35681
- if (len2 == null || len2 > arr.length) len2 = arr.length;
35682
- for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++) arr2[i2] = arr[i2];
35683
- return arr2;
35477
+ function _objectWithoutPropertiesLoose(r, e) {
35478
+ if (null == r) return {};
35479
+ var t = {};
35480
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
35481
+ if (e.includes(n)) continue;
35482
+ t[n] = r[n];
35483
+ }
35484
+ return t;
35684
35485
  }
35685
- function _nonIterableRest() {
35686
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
35486
+ function _slicedToArray(r, e) {
35487
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
35687
35488
  }
35688
- function _toPrimitive(input, hint) {
35689
- if (typeof input !== "object" || input === null) return input;
35690
- var prim = input[Symbol.toPrimitive];
35691
- if (prim !== void 0) {
35692
- var res = prim.call(input, hint || "default");
35693
- if (typeof res !== "object") return res;
35489
+ function _toPrimitive(t, r) {
35490
+ if ("object" != typeof t || !t) return t;
35491
+ var e = t[Symbol.toPrimitive];
35492
+ if (void 0 !== e) {
35493
+ var i2 = e.call(t, r);
35494
+ if ("object" != typeof i2) return i2;
35694
35495
  throw new TypeError("@@toPrimitive must return a primitive value.");
35695
35496
  }
35696
- return (hint === "string" ? String : Number)(input);
35497
+ return ("string" === r ? String : Number)(t);
35697
35498
  }
35698
- function _toPropertyKey(arg) {
35699
- var key2 = _toPrimitive(arg, "string");
35700
- return typeof key2 === "symbol" ? key2 : String(key2);
35499
+ function _toPropertyKey(t) {
35500
+ var i2 = _toPrimitive(t, "string");
35501
+ return "symbol" == typeof i2 ? i2 : i2 + "";
35502
+ }
35503
+ function _unsupportedIterableToArray(r, a) {
35504
+ if (r) {
35505
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
35506
+ var t = {}.toString.call(r).slice(8, -1);
35507
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
35508
+ }
35701
35509
  }
35702
35510
  var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"];
35703
35511
  var useLottie = function useLottie2(props, style) {
@@ -36150,7 +35958,7 @@
36150
35958
  if ("object" != s(t3) || !t3) return t3;
36151
35959
  var r2 = t3[Symbol.toPrimitive];
36152
35960
  if (void 0 !== r2) {
36153
- var i3 = r2.call(t3, e3 || "default");
35961
+ var i3 = r2.call(t3, e3);
36154
35962
  if ("object" != s(i3)) return i3;
36155
35963
  throw new TypeError("@@toPrimitive must return a primitive value.");
36156
35964
  }
@@ -39050,7 +38858,7 @@
39050
38858
  var parent, randSeed = Math.floor(1e6 * Math.random());
39051
38859
  elem.globalData;
39052
38860
  function executeExpression(t) {
39053
- return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType, scoped_bm_rt);
38861
+ return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType && (scoped_bm_rt = scoped_bm_rt.v), scoped_bm_rt);
39054
38862
  }
39055
38863
  return executeExpression;
39056
38864
  }
@@ -41227,8 +41035,8 @@
41227
41035
  maxMoveY,
41228
41036
  draw
41229
41037
  ]);
41230
- var setDrawImgInfo = /* @__PURE__ */ function() {
41231
- var _ref2 = _async_to_generator(function(image) {
41038
+ var setDrawImgInfo = function(image) {
41039
+ return _async_to_generator(function() {
41232
41040
  var displayWidth, cropperWidth, copyDrawImg, imgWidth, imgHeight, isPortrait, rate, scale2;
41233
41041
  return __generator(this, function(_state) {
41234
41042
  switch (_state.label) {
@@ -41278,11 +41086,8 @@
41278
41086
  ];
41279
41087
  }
41280
41088
  });
41281
- });
41282
- return function setDrawImgInfo2(image) {
41283
- return _ref2.apply(this, arguments);
41284
- };
41285
- }();
41089
+ })();
41090
+ };
41286
41091
  var chooseImage = function() {
41287
41092
  Taro.chooseImage({
41288
41093
  count: 1,
@@ -41295,8 +41100,8 @@
41295
41100
  }
41296
41101
  });
41297
41102
  };
41298
- var imageChange = /* @__PURE__ */ function() {
41299
- var _ref2 = _async_to_generator(function(file) {
41103
+ var imageChange = function(file) {
41104
+ return _async_to_generator(function() {
41300
41105
  return __generator(this, function(_state) {
41301
41106
  Taro.getImageInfo({
41302
41107
  src: file.path
@@ -41308,11 +41113,8 @@
41308
41113
  2
41309
41114
  ];
41310
41115
  });
41311
- });
41312
- return function imageChange2(file) {
41313
- return _ref2.apply(this, arguments);
41314
- };
41315
- }();
41116
+ })();
41117
+ };
41316
41118
  var resetScale = function(scale2) {
41317
41119
  setState(_object_spread_props(_object_spread({}, state), {
41318
41120
  moveX: 0,
@@ -41461,8 +41263,8 @@
41461
41263
  height: cropperWidth,
41462
41264
  destWidth: cropperWidth,
41463
41265
  destHeight: cropperWidth,
41464
- success: /* @__PURE__ */ function() {
41465
- var _ref2 = _async_to_generator(function(res) {
41266
+ success: function(res) {
41267
+ return _async_to_generator(function() {
41466
41268
  var filePath;
41467
41269
  return __generator(this, function(_state) {
41468
41270
  filePath = res.tempFilePath;
@@ -41472,11 +41274,8 @@
41472
41274
  2
41473
41275
  ];
41474
41276
  });
41475
- });
41476
- return function(res) {
41477
- return _ref2.apply(this, arguments);
41478
- };
41479
- }()
41277
+ })();
41278
+ }
41480
41279
  });
41481
41280
  };
41482
41281
  var confirm = function() {
@@ -41498,8 +41297,8 @@
41498
41297
  height: cropperWidth,
41499
41298
  destWidth: cropperWidth * systemInfo.pixelRatio,
41500
41299
  destHeight: cropperWidth * systemInfo.pixelRatio,
41501
- success: /* @__PURE__ */ function() {
41502
- var _ref2 = _async_to_generator(function(res) {
41300
+ success: function(res) {
41301
+ return _async_to_generator(function() {
41503
41302
  var filePath;
41504
41303
  return __generator(this, function(_state) {
41505
41304
  filePath = res.tempFilePath;
@@ -41509,11 +41308,8 @@
41509
41308
  2
41510
41309
  ];
41511
41310
  });
41512
- });
41513
- return function(res) {
41514
- return _ref2.apply(this, arguments);
41515
- };
41516
- }()
41311
+ })();
41312
+ }
41517
41313
  });
41518
41314
  };
41519
41315
  var ToolBar = function() {
@@ -41610,14 +41406,13 @@
41610
41406
  }
41611
41407
  };
41612
41408
  });
41613
- var getNodeWidth = /* @__PURE__ */ function() {
41614
- var _ref2 = _async_to_generator(function(node) {
41615
- var type2, refe;
41616
- var _arguments = arguments;
41409
+ var getNodeWidth = function(node) {
41410
+ var type2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "width";
41411
+ return _async_to_generator(function() {
41412
+ var refe;
41617
41413
  return __generator(this, function(_state) {
41618
41414
  switch (_state.label) {
41619
41415
  case 0:
41620
- type2 = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "width";
41621
41416
  if (!node) return [
41622
41417
  3,
41623
41418
  2
@@ -41639,11 +41434,8 @@
41639
41434
  ];
41640
41435
  }
41641
41436
  });
41642
- });
41643
- return function getNodeWidth2(node) {
41644
- return _ref2.apply(this, arguments);
41645
- };
41646
- }();
41437
+ })();
41438
+ };
41647
41439
  var clearDomTimeout = function() {
41648
41440
  if (domTimer.current) {
41649
41441
  clearTimeout(domTimer.current);
@@ -41651,8 +41443,8 @@
41651
41443
  }
41652
41444
  };
41653
41445
  React.useEffect(function() {
41654
- var init = /* @__PURE__ */ function() {
41655
- var _ref2 = _async_to_generator(function() {
41446
+ var init = function() {
41447
+ return _async_to_generator(function() {
41656
41448
  var _barrageBody_current;
41657
41449
  return __generator(this, function(_state) {
41658
41450
  switch (_state.label) {
@@ -41677,11 +41469,8 @@
41677
41469
  ];
41678
41470
  }
41679
41471
  });
41680
- });
41681
- return function init2() {
41682
- return _ref2.apply(this, arguments);
41683
- };
41684
- }();
41472
+ })();
41473
+ };
41685
41474
  domTimer.current = window.setTimeout(function() {
41686
41475
  init();
41687
41476
  }, 300);
@@ -41703,8 +41492,8 @@
41703
41492
  play();
41704
41493
  }, intervalCache);
41705
41494
  };
41706
- var setStyle = /* @__PURE__ */ function() {
41707
- var _ref2 = _async_to_generator(function(el, currentIndex) {
41495
+ var setStyle = function(el, currentIndex) {
41496
+ return _async_to_generator(function() {
41708
41497
  var refe, width2, height2, elScrollDuration, error;
41709
41498
  return __generator(this, function(_state) {
41710
41499
  switch (_state.label) {
@@ -41756,11 +41545,8 @@
41756
41545
  ];
41757
41546
  }
41758
41547
  });
41759
- });
41760
- return function setStyle2(el, currentIndex) {
41761
- return _ref2.apply(this, arguments);
41762
- };
41763
- }();
41548
+ })();
41549
+ };
41764
41550
  var play = function() {
41765
41551
  if (!loop && index2.current >= list.length) {
41766
41552
  return;