@pisell/private-materials 3.3.51 → 3.3.55

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 (211) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/preview.js +8 -8
  3. package/build/lowcode/render/default/view.css +1 -1
  4. package/build/lowcode/render/default/view.js +7 -7
  5. package/build/lowcode/view.css +1 -1
  6. package/build/lowcode/view.js +6 -6
  7. package/es/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Resource/index.js +5 -44
  14. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/hooks.js +177 -218
  18. package/es/components/appointmentBooking/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/locales.d.ts +0 -3
  20. package/es/components/appointmentBooking/locales.js +0 -9
  21. package/es/components/booking/components/TabProduct/productItem/index.js +2 -14
  22. package/es/components/booking/components/drawer/index.js +2 -4
  23. package/es/components/booking/components/footer/index.d.ts +0 -1
  24. package/es/components/booking/components/voucher/index.js +17 -25
  25. package/es/components/booking/forms/footer.d.ts +1 -0
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  27. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  28. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  29. package/es/components/booking/info/client/index.js +1 -2
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  31. package/es/components/booking/info/date/index.d.ts +0 -1
  32. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  33. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  34. package/es/components/booking/info/index.d.ts +0 -1
  35. package/es/components/booking/info/notes/index.d.ts +0 -1
  36. package/es/components/booking/info/pet/index.js +0 -3
  37. package/es/components/booking/info/service/Lists.d.ts +0 -1
  38. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  39. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  40. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  41. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  42. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  43. package/es/components/booking/info/service2/utils.js +27 -27
  44. package/es/components/booking/info2/index.js +3 -3
  45. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  46. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  47. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  48. package/es/components/booking/info2/service/addService/utils.js +2 -5
  49. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  50. package/es/components/booking/info2/service/editService/index.js +0 -1
  51. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  52. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  53. package/es/components/eftposPay/amount.d.ts +1 -1
  54. package/es/components/eftposPay/device.d.ts +1 -1
  55. package/es/components/eftposPay/hooks.d.ts +2 -2
  56. package/es/components/eftposPay/store/index.d.ts +5 -5
  57. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  60. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +4 -23
  74. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  75. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  77. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  78. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  79. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  80. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  81. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -1
  82. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +6 -18
  83. package/es/components/productExtension/index.d.ts +0 -1
  84. package/es/components/productSelect/components/TabProduct/index.js +10 -28
  85. package/es/components/productSelect/components/productGroup/index.js +7 -20
  86. package/es/components/productSelect/components/productGroup/index.less +1 -14
  87. package/es/components/productSelect/index.less +2 -1
  88. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  89. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  90. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  91. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  92. package/es/components/ticketBooking/components/addServiceVariant/addService.js +10 -16
  93. package/es/components/ticketBooking/components/addServiceVariant/index.less +0 -10
  94. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -3
  95. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  96. package/es/components/ticketBooking/index.js +1 -2
  97. package/es/components/ticketBooking/locales.d.ts +0 -3
  98. package/es/components/ticketBooking/locales.js +3 -12
  99. package/es/components/ticketBooking/utils/index.d.ts +1 -5
  100. package/es/components/ticketBooking/utils/index.js +3 -35
  101. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  102. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  103. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  104. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  105. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  106. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  107. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  108. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  109. package/lib/components/appointmentBooking/components/Resource/index.js +5 -44
  110. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  111. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  112. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  113. package/lib/components/appointmentBooking/hooks.js +3 -12
  114. package/lib/components/appointmentBooking/index.d.ts +0 -1
  115. package/lib/components/appointmentBooking/locales.d.ts +0 -3
  116. package/lib/components/appointmentBooking/locales.js +0 -3
  117. package/lib/components/booking/components/TabProduct/productItem/index.js +1 -8
  118. package/lib/components/booking/components/drawer/index.js +2 -2
  119. package/lib/components/booking/components/footer/index.d.ts +0 -1
  120. package/lib/components/booking/components/voucher/index.js +27 -31
  121. package/lib/components/booking/forms/footer.d.ts +1 -0
  122. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  123. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  124. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  125. package/lib/components/booking/info/client/index.js +1 -2
  126. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  127. package/lib/components/booking/info/date/index.d.ts +0 -1
  128. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  129. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  130. package/lib/components/booking/info/index.d.ts +0 -1
  131. package/lib/components/booking/info/notes/index.d.ts +0 -1
  132. package/lib/components/booking/info/pet/index.js +0 -3
  133. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  134. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  135. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  136. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  137. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  138. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  139. package/lib/components/booking/info/service2/utils.js +2 -2
  140. package/lib/components/booking/info2/index.js +4 -7
  141. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  142. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  143. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  144. package/lib/components/booking/info2/service/addService/utils.js +2 -4
  145. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  146. package/lib/components/booking/info2/service/editService/index.js +0 -1
  147. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  148. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  149. package/lib/components/eftposPay/amount.d.ts +1 -1
  150. package/lib/components/eftposPay/device.d.ts +1 -1
  151. package/lib/components/eftposPay/hooks.d.ts +2 -2
  152. package/lib/components/eftposPay/store/index.d.ts +5 -5
  153. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  154. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  155. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  156. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  157. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  158. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  159. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  160. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  161. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  162. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  163. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  164. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  165. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  166. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  167. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  168. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +8 -18
  170. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  171. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  172. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  173. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  174. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  175. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  176. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  177. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -1
  178. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +1 -8
  179. package/lib/components/productExtension/index.d.ts +0 -1
  180. package/lib/components/productSelect/components/TabProduct/index.js +6 -19
  181. package/lib/components/productSelect/components/productGroup/index.js +4 -24
  182. package/lib/components/productSelect/components/productGroup/index.less +1 -14
  183. package/lib/components/productSelect/index.less +2 -1
  184. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  185. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  186. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  187. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  188. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +14 -25
  189. package/lib/components/ticketBooking/components/addServiceVariant/index.less +0 -10
  190. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -3
  191. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  192. package/lib/components/ticketBooking/index.js +1 -2
  193. package/lib/components/ticketBooking/locales.d.ts +0 -3
  194. package/lib/components/ticketBooking/locales.js +3 -6
  195. package/lib/components/ticketBooking/utils/index.d.ts +1 -5
  196. package/lib/components/ticketBooking/utils/index.js +3 -35
  197. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  198. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  199. package/package.json +4 -4
  200. package/es/components/appointmentBooking/assets/resource.svg +0 -1
  201. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  202. package/es/components/productSelect/components/TabProduct/tabs/index.js +0 -243
  203. package/es/components/productSelect/components/TabProduct/tabs/index.less +0 -126
  204. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  205. package/es/components/productSelect/components/pisellPriceText/index.js +0 -43
  206. package/lib/components/appointmentBooking/assets/resource.svg +0 -1
  207. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  208. package/lib/components/productSelect/components/TabProduct/tabs/index.js +0 -202
  209. package/lib/components/productSelect/components/TabProduct/tabs/index.less +0 -126
  210. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  211. package/lib/components/productSelect/components/pisellPriceText/index.js +0 -72
@@ -109,26 +109,19 @@ var isSameProduct = function isSameProduct(a, b) {
109
109
  };
110
110
  export var addService = function addService(list, addItem) {
111
111
  var value = list;
112
- var count;
113
112
  // 预约商品直接添加
114
113
  if (!isNormalProductByDurationSchedule(addItem)) {
115
114
  value.push(addItem);
116
- count = addItem._extend.quantity;
117
115
  } else {
118
116
  // 非预约商品判断是否相同,相同合并
119
117
  var isNotSame = true;
120
118
  value = list.map(function (item) {
121
119
  if (isSameProduct(item, addItem)) {
122
- var _item$_extend, _addItem$_extend, _item$_extend2;
120
+ var _item$_extend, _addItem$_extend;
123
121
  isNotSame = false;
124
- var quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.quantity) || 1);
125
- count = quantity;
126
122
  return _objectSpread(_objectSpread({}, item), {}, {
127
123
  _extend: _objectSpread(_objectSpread({}, item._extend), {}, {
128
- quantity: quantity,
129
- other: _objectSpread(_objectSpread({}, ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.other) || {}), {}, {
130
- quantity: quantity
131
- })
124
+ quantity: ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.quantity) || 1)
132
125
  })
133
126
  });
134
127
  }
@@ -136,32 +129,7 @@ export var addService = function addService(list, addItem) {
136
129
  });
137
130
  if (isNotSame) {
138
131
  value.push(addItem);
139
- count = addItem._extend.quantity;
140
132
  }
141
133
  }
142
- return {
143
- list: value,
144
- quantity: count
145
- };
146
- };
147
- export var addServiceScroll = function addServiceScroll(rowKey, cacheItem) {
148
- var list = document.querySelectorAll("#rowKey-".concat(rowKey));
149
- setTimeout(function () {
150
- if (list.length && isNormalProductByDurationSchedule(cacheItem)) {
151
- list[list.length - 1].scrollIntoView({
152
- behavior: 'smooth',
153
- block: 'center'
154
- });
155
- } else {
156
- setTimeout(function () {
157
- var bookingWrap = document.querySelectorAll(".booking-info-warp");
158
- if (bookingWrap.length) {
159
- bookingWrap[0].scrollTo({
160
- top: 99999,
161
- behavior: 'smooth'
162
- });
163
- }
164
- }, 100);
165
- }
166
- });
134
+ return value;
167
135
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
@@ -25,7 +25,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
25
25
  * @return {*}
26
26
  * @Author: xiangfeng.xue
27
27
  */
28
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
28
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
29
29
  /**
30
30
  * 计算所有价格明细
31
31
  * @param items - 购物车商品数组
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Deposit: () => JSX.Element;
3
4
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -40,7 +40,6 @@ var import_hooks = require("../../hooks");
40
40
  var import_context = require("../../context");
41
41
  var import_utils = require("../../utils");
42
42
  var import_guests = __toESM(require("../../assets/guests.svg"));
43
- var import_resource = __toESM(require("../../assets/resource.svg"));
44
43
  var import_utils2 = require("@pisell/utils");
45
44
  var import_index = require("./index.less");
46
45
  var Resource = (0, import_react.forwardRef)((props, ref) => {
@@ -51,14 +50,11 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
51
50
  resourceOtherParams,
52
51
  currentStep,
53
52
  setResourceOtherParams,
54
- currentStepParams,
55
- currentSelectedResources
53
+ currentStepParams
56
54
  } = (0, import_context.useAppointmentBookingContext)();
57
55
  const { getResourceList } = (0, import_hooks.useAppointmentBookingResource)();
58
56
  const { checkSkipResourceStep } = (0, import_hooks.useIsSkipResourceStep)();
59
57
  const { updateStep, nextStep } = (0, import_hooks.useAppointmentBookingStep)();
60
- const [loading, setLoading] = (0, import_react.useState)(false);
61
- const utils = (0, import_hooks.contextUtils)();
62
58
  (0, import_react.useImperativeHandle)(ref, () => ({
63
59
  next: async () => {
64
60
  setResourceOtherParams({
@@ -72,9 +68,6 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
72
68
  const { resources: resources2 } = getResourceList();
73
69
  return resources2 || [];
74
70
  }, []);
75
- (0, import_react.useEffect)(() => {
76
- setLoading(true);
77
- }, []);
78
71
  (0, import_react.useEffect)(() => {
79
72
  const checkAndSkipResourceStep = async () => {
80
73
  var _a;
@@ -111,9 +104,7 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
111
104
  );
112
105
  }, [currentStepParams.key, resources]);
113
106
  const renderLists = (0, import_react.useMemo)(() => {
114
- const appointmentCarts = carts.filter(
115
- (n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id))
116
- );
107
+ const appointmentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
117
108
  if (appointmentCarts.length > 1 || !(appointmentCarts == null ? void 0 : appointmentCarts.length)) {
118
109
  return [];
119
110
  }
@@ -151,9 +142,7 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
151
142
  var _a;
152
143
  setSelectedResource(e.id);
153
144
  if (e.id) {
154
- const index = carts.findIndex(
155
- (n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id))
156
- );
145
+ const index = carts.findIndex((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
157
146
  return appointmentBooking.updateCart({
158
147
  _id: (_a = carts == null ? void 0 : carts[index]) == null ? void 0 : _a._id,
159
148
  resources: (0, import_utils.updateCartResources)(carts == null ? void 0 : carts[index], e)
@@ -162,41 +151,13 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
162
151
  };
163
152
  (0, import_react.useEffect)(() => {
164
153
  var _a, _b, _c;
165
- const index = carts.findIndex(
166
- (n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id))
167
- );
154
+ const index = carts.findIndex((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
168
155
  const selectedResource2 = (_c = (_b = (_a = carts == null ? void 0 : carts[index]) == null ? void 0 : _a._origin) == null ? void 0 : _b.resources) == null ? void 0 : _c.find(
169
156
  (item) => (item == null ? void 0 : item.form_id) === (appointmentBoard == null ? void 0 : appointmentBoard.form_id)
170
157
  );
171
158
  setSelectedResource((selectedResource2 == null ? void 0 : selectedResource2.id) || 0);
172
159
  }, [carts, appointmentBoard == null ? void 0 : appointmentBoard.form_id]);
173
- (0, import_react.useEffect)(() => {
174
- if (resourcesResult) {
175
- setLoading(false);
176
- }
177
- }, [resourcesResult]);
178
- const currentResourceName = (0, import_react.useMemo)(() => {
179
- var _a;
180
- const currentResource = (_a = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _a.currentSelectedResource;
181
- const resourceItem = (currentResource == null ? void 0 : currentResource.resourceItem) || {};
182
- const name = (0, import_utils.getResourceTitle)(
183
- appointmentBooking,
184
- resourceItem == null ? void 0 : resourceItem.code,
185
- utils,
186
- resourceItem
187
- );
188
- return name;
189
- }, [currentSelectedResources]);
190
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-resource-wrap" }, loading ? /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true }) : !(resourcesResult == null ? void 0 : resourcesResult.length) ? /* @__PURE__ */ import_react.default.createElement(
191
- import_materials.PisellEmpty,
192
- {
193
- description: import_utils2.locales.getText("pisell2.appointment.resource.tip")(
194
- currentResourceName
195
- ),
196
- maxWidth: 400,
197
- icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Image, { src: import_resource.default, preview: false, width: 44 })
198
- }
199
- ) : /* @__PURE__ */ import_react.default.createElement(
160
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-resource-wrap" }, !(resourcesResult == null ? void 0 : resourcesResult.length) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true }) : /* @__PURE__ */ import_react.default.createElement(
200
161
  import_materials.PisellCustomCheckboxGroup,
201
162
  {
202
163
  dataSource: resourcesResult,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../booking/components/voucher/index.less';
2
3
  import './index.less';
3
4
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Deposit: (props: any) => JSX.Element;
3
4
  export default Deposit;
@@ -197,7 +197,6 @@ var useAppointmentBookingStep = () => {
197
197
  (0, import_utils3.scrollToFirstErrorCard)();
198
198
  return;
199
199
  }
200
- let preKey = "";
201
200
  currentSelectedResources == null ? void 0 : currentSelectedResources.forEach((cart) => {
202
201
  var _a3, _b3;
203
202
  const selectedResource2 = cart == null ? void 0 : cart.currentSelectedResource;
@@ -208,8 +207,7 @@ var useAppointmentBookingStep = () => {
208
207
  if (formId) {
209
208
  const description = import_utils.locales.getText("pisell2.appointment.fill-form");
210
209
  const beforeKey = (0, import_utils2.getFormInsertBeforeKey)(currentKey, stepList2);
211
- appointmentBooking.addStep({ key: formKey, description }, preKey || beforeKey);
212
- preKey = formKey;
210
+ appointmentBooking.addStep({ key: formKey, description }, beforeKey);
213
211
  } else {
214
212
  appointmentBooking.removeStep(formKey);
215
213
  }
@@ -237,19 +235,12 @@ var useAppointmentBookingStep = () => {
237
235
  if (((_f = nextStep2 == null ? void 0 : nextStep2.key) == null ? void 0 : _f.startsWith("select-resource_")) || (nextStep2 == null ? void 0 : nextStep2.key) === "confirm-information") {
238
236
  const selectedResource = ((_g = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _g.currentSelectedResource) || {};
239
237
  const renderItem = (selectedResource == null ? void 0 : selectedResource.renderItem) || {};
240
- const checkHolder = async () => {
238
+ const checkHolder = () => {
241
239
  setLoading(false);
242
240
  if (isRetailTemplate || (appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts())) {
243
241
  return appointmentBooking.next();
244
242
  }
245
- let cartLists = carts || [];
246
- if (!(carts == null ? void 0 : carts.length)) {
247
- const newCarts = await appointmentBooking.getCart();
248
- cartLists = newCarts || [];
249
- } else {
250
- cartLists = carts || [];
251
- }
252
- const appoimentCarts = cartLists.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
243
+ const appoimentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
253
244
  const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, appoimentCarts);
254
245
  setIsErrorHolder(hasError);
255
246
  if (hasError) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AppointmentBooking: () => JSX.Element;
4
3
  export default AppointmentBooking;
@@ -106,7 +106,6 @@ declare const _default: {
106
106
  'pisell2.appointment.add-guests': string;
107
107
  'pisell2.appointment.policy': string;
108
108
  'pisell2.appointment.policy.confirm': string;
109
- 'pisell2.appointment.resource.tip': (val: string) => string;
110
109
  'pisell2.text.apply': string;
111
110
  'pisell2.text.goodpass': string;
112
111
  'pisell2.text.goodpass.product-vouchers': string;
@@ -224,7 +223,6 @@ declare const _default: {
224
223
  'pisell2.appointment.add-guests': string;
225
224
  'pisell2.appointment.policy': string;
226
225
  'pisell2.appointment.policy.confirm': string;
227
- 'pisell2.appointment.resource.tip': (val: string) => string;
228
226
  'pisell2.text.apply': string;
229
227
  'pisell2.text.goodpass': string;
230
228
  'pisell2.text.goodpass.product-vouchers': string;
@@ -342,7 +340,6 @@ declare const _default: {
342
340
  'pisell2.appointment.add-guests': string;
343
341
  'pisell2.appointment.policy': string;
344
342
  'pisell2.appointment.policy.confirm': string;
345
- 'pisell2.appointment.resource.tip': (val: string) => string;
346
343
  'pisell2.text.apply': string;
347
344
  'pisell2.text.goodpass': string;
348
345
  'pisell2.text.goodpass.product-vouchers': string;
@@ -130,7 +130,6 @@ var locales_default = {
130
130
  "pisell2.appointment.add-guests": "Add guests",
131
131
  "pisell2.appointment.policy": "You have read and agreed to this policy",
132
132
  "pisell2.appointment.policy.confirm": "Confirm",
133
- "pisell2.appointment.resource.tip": (val) => `Tip: Change ${val || "resource"} using the dropdown in the cart.`,
134
133
  "pisell2.text.apply": "Apply",
135
134
  "pisell2.text.goodpass": "GoodPass",
136
135
  "pisell2.text.goodpass.product-vouchers": "Product Vouchers",
@@ -248,7 +247,6 @@ var locales_default = {
248
247
  "pisell2.appointment.add-guests": "添加预约人",
249
248
  "pisell2.appointment.policy": "您已仔细阅读并同意此协议",
250
249
  "pisell2.appointment.policy.confirm": "确定",
251
- "pisell2.appointment.resource.tip": (val) => `提示:在右侧购物车中,通过下拉框修改“${val || "资源"}”`,
252
250
  "pisell2.text.apply": "应用",
253
251
  "pisell2.text.goodpass": "商品券",
254
252
  "pisell2.text.goodpass.product-vouchers": "商品兑换券",
@@ -366,7 +364,6 @@ var locales_default = {
366
364
  "pisell2.appointment.add-guests": "添加預約人",
367
365
  "pisell2.appointment.policy": "您已仔細閱讀並同意此協議",
368
366
  "pisell2.appointment.policy.confirm": "確定",
369
- "pisell2.appointment.resource.tip": (val) => `提示:在右側購物車中,透過下拉框修改“${val || "資源"}”`,
370
367
  "pisell2.text.apply": "應用",
371
368
  "pisell2.text.goodpass": "商品券",
372
369
  "pisell2.text.goodpass.product-vouchers": "商品兌換券",
@@ -36,8 +36,6 @@ var import_react = __toESM(require("react"));
36
36
  var import_utils = require("@pisell/utils");
37
37
  var import_classnames = __toESM(require("classnames"));
38
38
  var import_utils2 = require("../../../utils");
39
- var import_decimal = __toESM(require("decimal.js"));
40
- var import_pisellPriceText = __toESM(require("../../../../productSelect/components/pisellPriceText"));
41
39
  var import_index = require("./index.less");
42
40
  var ProductItem = ({
43
41
  item,
@@ -46,11 +44,6 @@ var ProductItem = ({
46
44
  style,
47
45
  className
48
46
  }) => {
49
- const { price, is_bundle, minimum_markup_price } = item;
50
- let _price = price;
51
- if (is_bundle) {
52
- _price = new import_decimal.default(price).plus(new import_decimal.default(minimum_markup_price)).toFixed(2);
53
- }
54
47
  const stockText = (0, import_react.useMemo)(() => {
55
48
  if (item.is_track === 0) {
56
49
  return false;
@@ -80,7 +73,7 @@ var ProductItem = ({
80
73
  className: "server-product-title"
81
74
  },
82
75
  item.title
83
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-time" }, (0, import_utils2.getDiscountTime)(item.service_times)), stockText && /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-time" }, stockText), /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-price" }, /* @__PURE__ */ import_react.default.createElement(import_pisellPriceText.default, { value: _price, isMini: is_bundle })))
76
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-time" }, (0, import_utils2.getDiscountTime)(item.service_times)), stockText && /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-time" }, stockText), /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-price" }, (0, import_utils.formatAmount)(item.price, 2, amountSymbol)))
84
77
  );
85
78
  };
86
79
  var productItem_default = ProductItem;
@@ -38,7 +38,7 @@ var import_ArrowLeft = __toESM(require("@pisell/icon/es/ArrowLeft"));
38
38
  var import_index = require("./index.less");
39
39
  var import_classnames = __toESM(require("classnames"));
40
40
  var Drawer = (props) => {
41
- const { hideScrollBar = true, showGoBack = true, mask = false } = props;
41
+ const { hideScrollBar = true, showGoBack = true } = props;
42
42
  return /* @__PURE__ */ import_react.default.createElement(
43
43
  import_antd.Drawer,
44
44
  {
@@ -52,7 +52,7 @@ var Drawer = (props) => {
52
52
  title: false,
53
53
  bodyStyle: { padding: 0 },
54
54
  push: false,
55
- mask
55
+ mask: false
56
56
  },
57
57
  /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__booking-drawer-title-wrap") }, /* @__PURE__ */ import_react.default.createElement(
58
58
  "div",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -101,28 +101,24 @@ var VoucherCard = (props) => {
101
101
  });
102
102
  return val;
103
103
  }, [state.service.value]);
104
- const { run } = (0, import_ahooks.useDebounceFn)(
105
- () => {
106
- var _a2, _b2;
107
- if (productRef.current === state.service.value || !((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length)) {
108
- return;
109
- }
110
- if (isBooking4Shop) {
111
- const val = shopDiscount.calcDiscount(state.service.value);
112
- productRef.current = val.productList;
113
- dispatch({
114
- type: "setService",
115
- payload: {
116
- ...services,
117
- value: ((val == null ? void 0 : val.productList) || []).filter(Boolean)
118
- }
119
- });
120
- }
121
- },
122
- { wait: 500 }
123
- );
124
104
  (0, import_react.useEffect)(() => {
125
- run();
105
+ var _a2, _b2;
106
+ if (productRef.current === state.service.value || !((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length)) {
107
+ return;
108
+ }
109
+ if (isBooking4Shop) {
110
+ const val = shopDiscount.calcDiscount(state.service.value);
111
+ console.log("input: ", state.service.value);
112
+ console.log("output: ", val);
113
+ productRef.current = val.productList;
114
+ dispatch({
115
+ type: "setService",
116
+ payload: {
117
+ ...services,
118
+ value: ((val == null ? void 0 : val.productList) || []).filter(Boolean)
119
+ }
120
+ });
121
+ }
126
122
  }, [JSON.stringify(serviceMemo), isBooking4Shop]);
127
123
  const fn = (0, import_ahooks.useMemoizedFn)((result) => {
128
124
  var _a2;
@@ -139,18 +135,18 @@ var VoucherCard = (props) => {
139
135
  });
140
136
  (0, import_react.useEffect)(() => {
141
137
  if (!isBooking4Shop) return;
138
+ pisellos.effects.on(ShopDiscountHooks.onScanCustomerChange, (customer) => {
139
+ dispatch({
140
+ type: "setClient",
141
+ payload: {
142
+ value: customer
143
+ }
144
+ });
145
+ });
142
146
  pisellos.effects.on(
143
- ShopDiscountHooks.onScanCustomerChange,
144
- (customer) => {
145
- dispatch({
146
- type: "setClient",
147
- payload: {
148
- value: customer
149
- }
150
- });
151
- }
147
+ ShopDiscountHooks.onLoadPrepareCalcResult,
148
+ fn
152
149
  );
153
- pisellos.effects.on(ShopDiscountHooks.onLoadPrepareCalcResult, fn);
154
150
  pisellos.effects.on(
155
151
  ShopDiscountHooks.onDiscountListChange,
156
152
  (discount) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
3
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -306,8 +306,7 @@ var Client = () => {
306
306
  isPreview: false,
307
307
  drawerProps: {
308
308
  title: import_utils.locales.getText("pisell2.text.select-customer"),
309
- destroyOnClose: true,
310
- mask: state.drawerMask
309
+ destroyOnClose: true
311
310
  },
312
311
  mode: "single",
313
312
  createItemText: import_utils.locales.getText("pisell2.text.create-new-customer"),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -463,9 +463,6 @@ var Pet = (props) => {
463
463
  ...((_c3 = (_b3 = (_a3 = state.pet) == null ? void 0 : _a3.formData) == null ? void 0 : _b3[0]) == null ? void 0 : _c3.options) || []
464
464
  ]);
465
465
  },
466
- drawerProps: {
467
- mask: state.drawerMask
468
- },
469
466
  getHolders,
470
467
  addCallbackService: addCallback,
471
468
  loading: valueLoading,
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -454,7 +454,7 @@ var isAllNormalProductByState = (state) => {
454
454
  return isAllNormalProduct(state.service.value);
455
455
  };
456
456
  var getGeneralParams = (item, state, isParallelResource) => {
457
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
457
+ var _a, _b, _c, _d, _e, _f, _g;
458
458
  const { pet, service } = state;
459
459
  const { holders = [], formData } = pet || {};
460
460
  const parallelResourceOtherParams = {};
@@ -519,7 +519,6 @@ var getGeneralParams = (item, state, isParallelResource) => {
519
519
  holder_id: (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.holder_id,
520
520
  start_date: !isNormalProduct ? (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.startDate : "",
521
521
  end_date: !isNormalProduct ? ((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.endDate) || ((_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.end_date) : "",
522
- rowKey: `rowKey-${(_i = (_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.rowKey}`,
523
522
  ...parallelResourceOtherParams
524
523
  };
525
524
  };
@@ -544,6 +543,7 @@ var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelR
544
543
  errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
545
544
  }
546
545
  const generalParams = isGeneral ? getGeneralParams(item, state, !!isParallelResource) : {};
546
+ console.log(isNormalProduct, "isNormalProduct");
547
547
  return {
548
548
  id: item == null ? void 0 : item.id,
549
549
  _id: item == null ? void 0 : item._id,
@@ -92,7 +92,7 @@ var Info = (0, import_model.Provider)((props) => {
92
92
  });
93
93
  }
94
94
  }, []);
95
- (0, import_react.useMemo)(() => {
95
+ (0, import_react.useEffect)(() => {
96
96
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m;
97
97
  const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
98
98
  modal.dispatch({
@@ -165,12 +165,9 @@ var Info = (0, import_model.Provider)((props) => {
165
165
  try {
166
166
  setTimeout(async () => {
167
167
  var _a2;
168
- let data = await (0, import_serve.getResourceList)(
169
- {
170
- date: currentDate
171
- },
172
- (_a2 = stateRef == null ? void 0 : stateRef.current) == null ? void 0 : _a2.bookingId
173
- );
168
+ let data = await (0, import_serve.getResourceList)({
169
+ date: currentDate
170
+ }, (_a2 = stateRef == null ? void 0 : stateRef.current) == null ? void 0 : _a2.bookingId);
174
171
  data.date = currentDate;
175
172
  localStorage.setItem("bookingResourceList", JSON.stringify(data));
176
173
  modal.dispatch({
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;