@pisell/private-materials 3.3.23 → 3.3.25

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 (130) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +5 -5
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +6 -6
  10. package/es/components/booking/addons/model.d.ts +10 -1
  11. package/es/components/booking/addons/model.js +5 -5
  12. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  13. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  14. package/es/components/booking/components/browserSelect/index.js +1 -1
  15. package/es/components/booking/components/footer/index.d.ts +0 -1
  16. package/es/components/booking/components/footer/index.js +5 -4
  17. package/es/components/booking/forms/model.d.ts +10 -1
  18. package/es/components/booking/forms/model.js +5 -5
  19. package/es/components/booking/forms/single/index.js +64 -15
  20. package/es/components/booking/info/index.d.ts +0 -1
  21. package/es/components/booking/info/model.d.ts +10 -1
  22. package/es/components/booking/info/pet/index.js +5 -2
  23. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  24. package/es/components/booking/info/service/editService/index.js +39 -15
  25. package/es/components/booking/info/service/like/index.js +1 -1
  26. package/es/components/booking/info/utils.d.ts +4 -0
  27. package/es/components/booking/info/utils.js +18 -1
  28. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  29. package/es/components/booking/info2/service/editService/index.js +25 -2
  30. package/es/components/booking/materiels/startTime/index.js +1 -1
  31. package/es/components/booking/model.d.ts +9 -1
  32. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  33. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  34. package/es/components/booking/notes/model.d.ts +10 -1
  35. package/es/components/booking/notes/model.js +5 -5
  36. package/es/components/booking/payments/model.d.ts +10 -1
  37. package/es/components/booking/payments/model.js +5 -5
  38. package/es/components/booking/utils.js +8 -0
  39. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  40. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  41. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  42. package/es/components/eftposPay/hooks.d.ts +1 -1
  43. package/es/components/eftposPay/index.d.ts +1 -0
  44. package/es/components/eftposPay/pay.d.ts +1 -0
  45. package/es/components/eftposPay/store/index.d.ts +2 -2
  46. package/es/components/listComponent/index.js +5 -5
  47. package/es/components/pay/toC/model.d.ts +9 -1
  48. package/es/components/productExtension/card/index.js +3 -3
  49. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  50. package/es/components/productExtension/fields/Forms/index.js +12 -12
  51. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  52. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  53. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  54. package/es/components/productExtension/server.js +2 -2
  55. package/es/components/productSelect/components/productGroup/index.less +1 -1
  56. package/es/components/ruleSetting/index.d.ts +1 -0
  57. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  58. package/es/components/schedules/calendar/index.js +4 -4
  59. package/es/components/schedules/calendar/serve.js +2 -2
  60. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  61. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  62. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  63. package/es/components/schedules/components/ResourceList/index.js +1 -1
  64. package/es/components/schedules/components/Search/index.js +5 -5
  65. package/es/components/schedules/model.d.ts +9 -1
  66. package/es/components/schedules/model.js +5 -5
  67. package/es/components/schedules/openHours/index.js +1 -1
  68. package/es/components/schedules/openHours/serve.js +2 -2
  69. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  70. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  71. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  72. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  73. package/es/components/schedules/products/serve.js +2 -2
  74. package/es/components/schedules/products/utils.js +5 -5
  75. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  76. package/es/components/schedules/resources/detail/index.js +10 -10
  77. package/es/components/schedules/resources/list/index.js +2 -2
  78. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  79. package/es/components/schedules/resources/serve.js +2 -2
  80. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  81. package/es/components/schedules/utils.js +4 -4
  82. package/es/components/selectModal/index.js +2 -2
  83. package/es/components/wallet/Detail/model.d.ts +13 -1
  84. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  85. package/es/components/wallet/PointCard/model.d.ts +13 -1
  86. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  87. package/es/components/wallet/Voucher/model.d.ts +13 -1
  88. package/es/components/wallet/model.d.ts +9 -1
  89. package/es/hooks/useComponents.js +1 -1
  90. package/es/utils/date.d.ts +11 -0
  91. package/es/utils/date.js +49 -0
  92. package/lib/components/booking/addons/model.d.ts +10 -1
  93. package/lib/components/booking/components/footer/index.d.ts +0 -1
  94. package/lib/components/booking/components/footer/index.js +6 -9
  95. package/lib/components/booking/forms/model.d.ts +10 -1
  96. package/lib/components/booking/forms/single/index.js +28 -6
  97. package/lib/components/booking/info/index.d.ts +0 -1
  98. package/lib/components/booking/info/model.d.ts +10 -1
  99. package/lib/components/booking/info/pet/index.js +5 -2
  100. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  101. package/lib/components/booking/info/service/editService/index.js +32 -10
  102. package/lib/components/booking/info/utils.d.ts +4 -0
  103. package/lib/components/booking/info/utils.js +17 -0
  104. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  105. package/lib/components/booking/info2/service/editService/index.js +28 -4
  106. package/lib/components/booking/model.d.ts +9 -1
  107. package/lib/components/booking/notes/model.d.ts +10 -1
  108. package/lib/components/booking/payments/model.d.ts +10 -1
  109. package/lib/components/booking/utils.js +8 -0
  110. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  111. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  112. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  113. package/lib/components/eftposPay/hooks.d.ts +1 -1
  114. package/lib/components/eftposPay/index.d.ts +1 -0
  115. package/lib/components/eftposPay/pay.d.ts +1 -0
  116. package/lib/components/eftposPay/store/index.d.ts +2 -2
  117. package/lib/components/pay/toC/model.d.ts +9 -1
  118. package/lib/components/productSelect/components/productGroup/index.less +1 -1
  119. package/lib/components/ruleSetting/index.d.ts +1 -0
  120. package/lib/components/schedules/model.d.ts +9 -1
  121. package/lib/components/schedules/utils.js +1 -1
  122. package/lib/components/wallet/Detail/model.d.ts +13 -1
  123. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  124. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  125. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  126. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  127. package/lib/components/wallet/model.d.ts +9 -1
  128. package/lib/utils/date.d.ts +11 -0
  129. package/lib/utils/date.js +57 -0
  130. package/package.json +3 -3
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,9 +1,9 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -6,7 +6,7 @@ import CollapsibleList from "../../collapsibleList";
6
6
  import { renderBundles } from "../../collapsibleList/utils";
7
7
  import "./index.less";
8
8
  var SelectProductItem = function SelectProductItem(_ref) {
9
- var _item$_extend, _item$_extend2;
9
+ var _item$_extend, _item$_extend$other, _item$_extend2, _item$_extend2$other;
10
10
  var item = _ref.item,
11
11
  _onClick = _ref.onClick,
12
12
  onChangeQuantity = _ref.onChangeQuantity,
@@ -28,7 +28,7 @@ var SelectProductItem = function SelectProductItem(_ref) {
28
28
  style: style,
29
29
  className: classNames("server-select-product", className),
30
30
  onClick: function onClick() {
31
- _onClick === null || _onClick === void 0 || _onClick(item);
31
+ _onClick === null || _onClick === void 0 ? void 0 : _onClick(item);
32
32
  }
33
33
  }, item.cover ? /*#__PURE__*/React.createElement("img", {
34
34
  src: image.ali(item.cover, 100),
@@ -39,11 +39,11 @@ var SelectProductItem = function SelectProductItem(_ref) {
39
39
  className: "server-select-product-title"
40
40
  }, item.title), /*#__PURE__*/React.createElement("div", {
41
41
  className: "server-select-product-subtitle"
42
- }, item.subtitle || ""), (((_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).length ? /*#__PURE__*/React.createElement(CollapsibleList, {
42
+ }, item.subtitle || ""), (((_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : (_item$_extend$other = _item$_extend.other) === null || _item$_extend$other === void 0 ? void 0 : _item$_extend$other.bundle) || []).length ? /*#__PURE__*/React.createElement(CollapsibleList, {
43
43
  style: {
44
44
  width: "100%"
45
45
  },
46
- list: ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 || (_item$_extend2 = _item$_extend2.other) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.bundle) || [],
46
+ list: ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : (_item$_extend2$other = _item$_extend2.other) === null || _item$_extend2$other === void 0 ? void 0 : _item$_extend2$other.bundle) || [],
47
47
  renderItem: function renderItem(item) {
48
48
  return renderBundles(item, amountSymbol);
49
49
  }
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
8
8
  import classNames from "classnames";
@@ -13,10 +13,6 @@ import "./index.less";
13
13
 
14
14
  // tabs 子组件定义
15
15
 
16
- // 定义主键类型
17
-
18
- // Tabs 可传递的参数
19
-
20
16
  var Tabs = function Tabs(_ref, ref) {
21
17
  var renderTab = _ref.renderTab,
22
18
  rowKey = _ref.rowKey,
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
29
29
  onChange: function onChange(e) {
30
30
  var _resetProps$onChange;
31
31
  e.persist();
32
- (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
32
+ (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
33
33
  }
34
34
  }), _options);
35
35
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -26,7 +26,6 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
26
26
  import useEngineContext from "../../../../hooks/useEngineContext";
27
27
  import { formatProducts } from "../../addons";
28
28
  import { getIsSubjectRequire, isDayBooking, isHasDayAppointmentProduct } from "../../info/service2/utils";
29
- import { isBooking4Shop } from "../../info/utils";
30
29
  import { createBookings, editBookings } from "../../info2/serve";
31
30
  import AppointmentProductModal from "./AppointmentProductModal";
32
31
  import FooterMenus from "./FooterMenus";
@@ -36,6 +35,8 @@ import { createEventBooking, editEventBooking } from "./serve";
36
35
  import { checkHolderIsError, formatValues } from "./utils";
37
36
  import VoucherCard from "../voucher";
38
37
  import { SubTotal } from "../../../../index";
38
+ import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
39
+
39
40
  /**
40
41
  * @title: 底部
41
42
  * @description:
@@ -69,6 +70,7 @@ var Footer = function Footer(props) {
69
70
  _useState8 = _slicedToArray(_useState7, 2),
70
71
  isShowPaymentLink = _useState8[0],
71
72
  setIsShowPaymentLink = _useState8[1];
73
+ var isBooking4Shop = useIsBooking4Shop(state);
72
74
  var appointmentProductRef = useRef(null);
73
75
  var context = useEngineContext();
74
76
  var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
@@ -375,8 +377,7 @@ var Footer = function Footer(props) {
375
377
  };
376
378
  }();
377
379
  var getApis = function getApis() {
378
- var _context$appHelper$ut2, _context$appHelper$ut3;
379
- if (isBooking4Shop((_context$appHelper$ut2 = context.appHelper.utils.store) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getState) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.global) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.globalConfig) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.id, state.renderType) || state.renderType === 'dayBooking') {
380
+ if (isBooking4Shop || state.renderType === 'dayBooking') {
380
381
  return {
381
382
  editBooking: editBookings,
382
383
  createBooking: createBookings
@@ -430,7 +431,7 @@ var Footer = function Footer(props) {
430
431
  }
431
432
  return _context4.abrupt("return");
432
433
  case 5:
433
- if (!(getIsSubjectRequire(state) && checkHolderIsError(state))) {
434
+ if (!(isBooking4Shop && getIsSubjectRequire(state) && checkHolderIsError(state))) {
434
435
  _context4.next = 7;
435
436
  break;
436
437
  }
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,9 +1,9 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -20,6 +20,8 @@ import CollapsibleList from "../../components/collapsibleList";
20
20
  import "./index.less";
21
21
  import RenderValueById from "./RenderValueById";
22
22
  import useComponents from "../../../../hooks/useComponents";
23
+ import dayjs from 'dayjs';
24
+ import { formatDate } from "../../../../utils/date";
23
25
  var queryValueById = ['checkbox', 'radioButton', 'select', 'form_to_form'];
24
26
 
25
27
  /**
@@ -30,7 +32,7 @@ var queryValueById = ['checkbox', 'radioButton', 'select', 'form_to_form'];
30
32
  * @Date: 2024-01-30 17:06
31
33
  */
32
34
  var Single = function Single(_ref) {
33
- var _form$form3, _form$form4;
35
+ var _form$form4, _form$form5;
34
36
  var value = _ref.value,
35
37
  onChange = _ref.onChange,
36
38
  form = _ref.form,
@@ -166,6 +168,53 @@ var Single = function Single(_ref) {
166
168
  }
167
169
  });
168
170
  }, [form]);
171
+ console.log('fff', form);
172
+ var ignoreValidity = useMemo(function () {
173
+ var _form$form;
174
+ return !(form !== null && form !== void 0 && (_form$form = form.form) !== null && _form$form !== void 0 && (_form$form = _form$form.setting) !== null && _form$form !== void 0 && _form$form.validity) || form.form.setting.validity.type === 'no_expiry';
175
+ }, [form === null || form === void 0 ? void 0 : form.form]);
176
+ var getExpireStatus = function getExpireStatus(expiredAt) {
177
+ if (ignoreValidity || !expiredAt) return null;
178
+ var now = dayjs();
179
+ // 将过期时间设置为当天的最后一秒
180
+ var expireDate = dayjs(expiredAt).endOf('day');
181
+ var diffDays = expireDate.diff(now, 'day');
182
+ // 格式化显示日期(不显示时间)
183
+ var cnDate = 'YYYY-MM-DD';
184
+ var enDate = 'DD/MM/YYYY';
185
+ var formattedDate = formatDate(expireDate, cnDate, enDate);
186
+ if (now.isAfter(expireDate)) {
187
+ return /*#__PURE__*/React.createElement("div", {
188
+ style: {
189
+ color: '#999999',
190
+ fontSize: '14px',
191
+ lineHeight: '20px'
192
+ }
193
+ }, /*#__PURE__*/React.createElement(Tag, {
194
+ color: "red",
195
+ style: {
196
+ borderRadius: 16,
197
+ marginRight: 8
198
+ }
199
+ }, locales.getText('pisell2.text.status.expired')), locales.getText('pisell2.text.validity.expired')(formattedDate));
200
+ }
201
+ if (diffDays < 7) {
202
+ return /*#__PURE__*/React.createElement("div", {
203
+ style: {
204
+ color: '#FFA940',
205
+ fontSize: '14px',
206
+ lineHeight: '20px'
207
+ }
208
+ }, locales.getText('pisell2.text.validity.expiring_soon')(formattedDate));
209
+ }
210
+ return /*#__PURE__*/React.createElement("div", {
211
+ style: {
212
+ color: '#999999',
213
+ fontSize: '14px',
214
+ lineHeight: '20px'
215
+ }
216
+ }, locales.getText('pisell2.text.validity.valid_through')(formattedDate));
217
+ };
169
218
 
170
219
  /**
171
220
  * @title: 渲染字段
@@ -181,16 +230,16 @@ var Single = function Single(_ref) {
181
230
  }
182
231
  return /*#__PURE__*/React.createElement("div", {
183
232
  style: {
184
- flex: 1,
185
- display: 'flex',
186
- alignItems: 'center',
187
- justifyContent: 'space-between'
233
+ flex: 1
234
+ }
235
+ }, /*#__PURE__*/React.createElement("div", {
236
+ style: {
237
+ color: '#1B1B1B',
238
+ fontSize: 16,
239
+ fontWeight: 600,
240
+ lineHeight: '22px'
188
241
  }
189
- }, item['main_field'] || item[form.option_key] || '-', item !== null && item !== void 0 && item.status ? item.status === 'valid' ? /*#__PURE__*/React.createElement(Tag, {
190
- color: "#56c064"
191
- }, locales.getText('pisell2.text.status.valid')) : /*#__PURE__*/React.createElement(Tag, {
192
- color: "#d83963"
193
- }, locales.getText('pisell2.text.status.expired')) : null);
242
+ }, item['main_field'] || item[form.option_key] || '-'), /*#__PURE__*/React.createElement("div", null, getExpireStatus(item.expired_at)));
194
243
  };
195
244
 
196
245
  /**
@@ -202,10 +251,10 @@ var Single = function Single(_ref) {
202
251
  * @Date: 2024-01-30 17:09
203
252
  */
204
253
  var _addButtonProps = useMemo(function () {
205
- var _form$form, _form$form2;
254
+ var _form$form2, _form$form3;
206
255
  var obj = _objectSpread({
207
- title: "".concat(locales.getText('pisell2.text.add-a'), " ").concat(((_form$form = form.form) === null || _form$form === void 0 ? void 0 : _form$form.title) || '-'),
208
- subTitle: "".concat(locales.getText('pisell2.text.add-another'), " ").concat(((_form$form2 = form.form) === null || _form$form2 === void 0 ? void 0 : _form$form2.title) || '-')
256
+ title: "".concat(locales.getText('pisell2.text.add-a'), " ").concat(((_form$form2 = form.form) === null || _form$form2 === void 0 ? void 0 : _form$form2.title) || '-'),
257
+ subTitle: "".concat(locales.getText('pisell2.text.add-another'), " ").concat(((_form$form3 = form.form) === null || _form$form3 === void 0 ? void 0 : _form$form3.title) || '-')
209
258
  }, addButtonProps);
210
259
  // 表单和表格点击事件触发新增弹窗
211
260
  if (['form', 'table'].includes(form.type)) {
@@ -246,10 +295,10 @@ var Single = function Single(_ref) {
246
295
  previewItemRender: function previewItemRender(d) {
247
296
  return renderItem(d);
248
297
  },
249
- name: ((_form$form3 = form.form) === null || _form$form3 === void 0 ? void 0 : _form$form3.title) || '-',
298
+ name: ((_form$form4 = form.form) === null || _form$form4 === void 0 ? void 0 : _form$form4.title) || '-',
250
299
  addButtonProps: _addButtonProps,
251
300
  drawerProps: _objectSpread({
252
- title: "".concat(locales.getText('pisell2.text.select'), " ").concat(((_form$form4 = form.form) === null || _form$form4 === void 0 ? void 0 : _form$form4.title) || '-'),
301
+ title: "".concat(locales.getText('pisell2.text.select'), " ").concat(((_form$form5 = form.form) === null || _form$form5 === void 0 ? void 0 : _form$form5.title) || '-'),
253
302
  destroyOnClose: true
254
303
  }, drawerProps || {}),
255
304
  optionRender: _optionRender,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -34,6 +34,7 @@ import "./index.less";
34
34
  import useAddHolder, { useFormDataConfig } from "../hooks/useAddHolder";
35
35
  import useGetHolderList from "../hooks/useGetHolderList";
36
36
  import dayjs from 'dayjs';
37
+ import { formatDate } from "../../../../utils/date";
37
38
  var defaultParams = {
38
39
  skip: 1,
39
40
  num: 20,
@@ -558,7 +559,9 @@ var Pet = function Pet(props) {
558
559
  var expireDate = dayjs(expiredAt).endOf('day');
559
560
  var diffDays = expireDate.diff(now, 'day');
560
561
  // 格式化显示日期(不显示时间)
561
- var formattedDate = expireDate.format('YYYY-MM-DD');
562
+ var cnDate = 'YYYY-MM-DD';
563
+ var enDate = 'DD/MM/YYYY';
564
+ var formattedDate = formatDate(expireDate, cnDate, enDate);
562
565
  if (now.isAfter(expireDate)) {
563
566
  return /*#__PURE__*/React.createElement("div", {
564
567
  style: {
@@ -574,7 +577,7 @@ var Pet = function Pet(props) {
574
577
  }
575
578
  }, locales.getText('pisell2.text.status.expired')), locales.getText('pisell2.text.validity.expired')(formattedDate));
576
579
  }
577
- if (diffDays <= 7) {
580
+ if (diffDays < 7) {
578
581
  return /*#__PURE__*/React.createElement("div", {
579
582
  style: {
580
583
  color: '#FFA940',
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -42,7 +42,7 @@ import useSelectPet from "../../service2/hooks/useSelectPet";
42
42
  import { disabledDate as _disabledDate, formatDayTime, isDayBooking, isDayBookingProduct, isEventBooking } from "../../service2/utils";
43
43
  import { formatResources, getDurationProps, getFlexibleOption, getMultiDay, getTimeObj } from "../addService/utils";
44
44
  import Like from "../like";
45
- import { getMultiDayPrices } from "../../utils";
45
+ import { editSessionProduct, getMultiDayPrices } from "../../utils";
46
46
  import { useService } from "../serviceManager";
47
47
  import EditTabs from "./EditTabs";
48
48
  var submitLock = false;
@@ -649,7 +649,7 @@ var Info = function Info(_, ref) {
649
649
  * @Date: 2024-08-28 17:08
650
650
  */
651
651
  var handleEdit = useMemoizedFn(function (e) {
652
- var _item$_extend3, _state$client;
652
+ var _item$_extend6, _state$client;
653
653
  // 当前商品
654
654
  var item = state.service.cacheItem;
655
655
 
@@ -668,6 +668,15 @@ var Info = function Info(_, ref) {
668
668
  dayValue.product_option = option || [];
669
669
  }
670
670
  var isSession = isSessionProduct(item);
671
+ var sessionValue = {};
672
+ if (isSession) {
673
+ var _item$_extend3, _item$_extend4, _item$_extend5;
674
+ sessionValue.startEndTime = {
675
+ startDate: item === null || item === void 0 || (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.start_date,
676
+ endDate: item === null || item === void 0 || (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.end_date,
677
+ duration: item === null || item === void 0 || (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.duration
678
+ };
679
+ }
671
680
 
672
681
  // 打开商品详情弹窗
673
682
  state.action({
@@ -681,25 +690,29 @@ var Info = function Info(_, ref) {
681
690
  variant: isDayBookingMode ? true : false,
682
691
  package: true
683
692
  },
684
- value: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), dayValue),
693
+ value: _objectSpread(_objectSpread(_objectSpread({}, ((_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.other) || {}), dayValue), sessionValue),
685
694
  isOS: isSession,
686
695
  customer_id: isDayBookingMode ? ((_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id) || 1 : undefined
687
696
  },
688
697
  callback: function () {
689
698
  var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(e, extension_type, detail) {
690
699
  var _cacheItem$_extend;
691
- var _detail, cacheItem, _total, _cacheItem$_extend2;
700
+ var _detail, other, cacheItem, _total, _cacheItem$_extend2, sessionDetail;
692
701
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
693
702
  while (1) switch (_context4.prev = _context4.next) {
694
703
  case 0:
695
- _detail = detail || item; // 重新生成商品
704
+ _detail = detail || item;
705
+ other = JSON.parse(JSON.stringify(e));
706
+ other.session = e.session;
707
+
708
+ // 重新生成商品
696
709
  cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
697
710
  product_id: item.id,
698
711
  _id: item === null || item === void 0 ? void 0 : item._id,
699
712
  _key: e.key,
700
713
  _extend: _objectSpread(_objectSpread(_objectSpread({}, item._extend), values), {}, {
701
714
  // 覆盖选择的规格和套餐
702
- other: JSON.parse(JSON.stringify(e))
715
+ other: other
703
716
  }),
704
717
  new: 0
705
718
  }); // 获取商品总价
@@ -707,8 +720,7 @@ var Info = function Info(_, ref) {
707
720
  if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && (_cacheItem$_extend = _cacheItem$_extend.other) !== null && _cacheItem$_extend !== void 0 && _cacheItem$_extend.product_variant_id) {
708
721
  cacheItem._extend.price = Number((_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 || (_cacheItem$_extend2 = _cacheItem$_extend2.other) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.price);
709
722
  }
710
-
711
- // 用于折扣 可修改
723
+ sessionDetail = editSessionProduct(cacheItem, e.session); // 用于折扣 可修改
712
724
  cacheItem._extend.total = _total;
713
725
 
714
726
  // 用于储存原价
@@ -721,13 +733,25 @@ var Info = function Info(_, ref) {
721
733
  cacheItem: cacheItem
722
734
  }
723
735
  });
724
- setTimeout(function () {
725
- updateMultiDay({
726
- start_date: values.start_date,
727
- end_date: values.end_date
728
- });
729
- }, 100);
730
- case 8:
736
+ if (isDayBookingMode) {
737
+ setTimeout(function () {
738
+ updateMultiDay({
739
+ start_date: values.start_date,
740
+ end_date: values.end_date
741
+ });
742
+ }, 100);
743
+ } else {
744
+ // 商家反馈更新商品后没有展示最新价格,此处编辑商品后恢复折扣信息
745
+ // https://go.feishu.cn/approval/s/iaxPKxFW/
746
+ // 更新表单内的商品价格
747
+ form.setFieldsValue(_objectSpread({
748
+ total: _total
749
+ }, isSessionProduct(cacheItem) && sessionDetail ? {
750
+ start_time: sessionDetail.start_time,
751
+ duration: sessionDetail.duration
752
+ } : {}));
753
+ }
754
+ case 11:
731
755
  case "end":
732
756
  return _context4.stop();
733
757
  }
@@ -19,7 +19,7 @@ var Like = function Like(_ref) {
19
19
  }
20
20
  e.preventDefault();
21
21
  e.stopPropagation();
22
- onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
22
+ onChange === null || onChange === void 0 ? void 0 : onChange(status === "like" ? "common" : "like");
23
23
  }
24
24
  });
25
25
  };
@@ -43,4 +43,8 @@ export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
43
43
  export declare const isDayBooking: (shopId: number) => boolean;
44
44
  export declare const isOpenAddTime: (state: any) => boolean;
45
45
  export declare const isShowAddTime: (state: any, currentService: any) => boolean;
46
+ export declare const editSessionProduct: (cacheItem: any, session: any) => {
47
+ duration: any;
48
+ start_time: any;
49
+ } | undefined;
46
50
  export {};
@@ -5,7 +5,7 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
5
5
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
6
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
7
  import dayjs from "dayjs";
8
- import { getIsEdit } from "../utils";
8
+ import { getDays, getIsEdit, isSessionProduct } from "../utils";
9
9
  import { isUsableProduct } from "../info2/service/addTimeModal/utils";
10
10
  // 商品是套餐或单规格多规格
11
11
  export var getIsBundleOrCombination = function getIsBundleOrCombination(productDetail) {
@@ -171,4 +171,21 @@ export var isShowAddTime = function isShowAddTime(state, currentService) {
171
171
  return false;
172
172
  }
173
173
  return true;
174
+ };
175
+ export var editSessionProduct = function editSessionProduct(cacheItem, session) {
176
+ if (isSessionProduct(cacheItem) && session) {
177
+ cacheItem._extend.start_date = session.start_at;
178
+ cacheItem._extend.startDate = session.start_at;
179
+ cacheItem._extend.start_time = session.start_time;
180
+ cacheItem._extend.end_time = session.end_time;
181
+ cacheItem._extend.end_date = session.end_at;
182
+ cacheItem._extend.endDate = session.end_at;
183
+ cacheItem._extend.duration = getDays({
184
+ _extend: cacheItem._extend
185
+ }, 'minutes');
186
+ return {
187
+ duration: cacheItem._extend.duration,
188
+ start_time: session.start_time
189
+ };
190
+ }
174
191
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -33,6 +33,7 @@ import { getServiceTimes, deleteCacheParams, getProductTotalPrice, isSessionProd
33
33
  import { getErrorList } from "../../utilsByBooking";
34
34
  import { formatResources, getDurationProps, getFlexibleOption, getTimeObj, setDefaultCapacitys } from "../addService/utils";
35
35
  import { PisellAdjustPriceInputNumber } from '@pisell/materials';
36
+ import { editSessionProduct } from "../../../info/utils";
36
37
  var submitLock = false;
37
38
  var Info = function Info(_, ref) {
38
39
  var _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI5, _state$service3, _state$service5, _window$BaseMaterials, _state$service$cacheI6, _state$service6, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10, _state$bookingConfig3, _state$service$resour;
@@ -391,6 +392,16 @@ var Info = function Info(_, ref) {
391
392
  // 表单数据
392
393
  var values = form.getFieldsValue();
393
394
  var isSession = isSessionProduct(item);
395
+ var sessionValue = {};
396
+ if (isSession) {
397
+ var _item$_extend, _item$_extend2, _item$_extend3;
398
+ sessionValue.startEndTime = {
399
+ startDate: item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.start_date,
400
+ endDate: item === null || item === void 0 || (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.end_date,
401
+ duration: item === null || item === void 0 || (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.duration
402
+ };
403
+ }
404
+
394
405
  // 打开商品详情弹窗
395
406
  state.action({
396
407
  type: 'pisell1.handleOpenProductModal',
@@ -404,11 +415,14 @@ var Info = function Info(_, ref) {
404
415
  package: true
405
416
  },
406
417
  isOS: isSession,
407
- value: item._extend.other
418
+ value: _objectSpread(_objectSpread({}, item._extend.other), sessionValue)
408
419
  },
409
420
  callback: function callback(e, extension_type, detail) {
410
421
  var _cacheItem$_extend;
411
422
  var _detail = detail || item;
423
+ var other = JSON.parse(JSON.stringify(e));
424
+ other.session = e.session;
425
+
412
426
  // 重新生成商品
413
427
  var cacheItem = _objectSpread(_objectSpread(_objectSpread({}, item), _detail), {}, {
414
428
  product_id: item.id,
@@ -416,7 +430,7 @@ var Info = function Info(_, ref) {
416
430
  _key: e.key,
417
431
  _extend: _objectSpread(_objectSpread(_objectSpread({}, item._extend), values), {}, {
418
432
  // 覆盖选择的规格和套餐
419
- other: JSON.parse(JSON.stringify(e))
433
+ other: other
420
434
  }),
421
435
  new: 0
422
436
  });
@@ -432,6 +446,15 @@ var Info = function Info(_, ref) {
432
446
  cacheItem: cacheItem
433
447
  });
434
448
  } catch (err) {}
449
+ var sessionDetail = editSessionProduct(cacheItem, e.session);
450
+ if (sessionDetail) {
451
+ setTimeout(function () {
452
+ form.setFieldsValue({
453
+ start_time: sessionDetail.start_time,
454
+ duration: sessionDetail.duration
455
+ });
456
+ }, 200);
457
+ }
435
458
 
436
459
  // 用于储存原价
437
460
  cacheItem._extend.origin_total = _total;
@@ -25,7 +25,7 @@ var StartTime = function StartTime(props) {
25
25
  return sliceDayIntoFiveMinutes(slice, locale);
26
26
  }, [slice, locale]);
27
27
  useEffect(function () {
28
- timeObjChange === null || timeObjChange === void 0 || timeObjChange(timeObj);
28
+ timeObjChange === null || timeObjChange === void 0 ? void 0 : timeObjChange(timeObj);
29
29
  }, [timeObj]);
30
30
  var renderOptions = useCallback(function (array) {
31
31
  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "value";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
108
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
+ state: FormState;
110
+ } & {
111
+ dispatch: (params: {
112
+ type: string;
113
+ payload: any;
114
+ }) => void;
115
+ }>;