@pisell/private-materials 3.3.38 → 3.3.40

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 (236) 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.js +4 -4
  7. package/build/lowcode/view.js +4 -4
  8. package/es/components/Sales/Summary/utils.d.ts +1 -1
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +32 -24
  13. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  19. package/es/components/appointmentBooking/components/Services/index.js +13 -8
  20. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  22. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  23. package/es/components/appointmentBooking/hooks.js +3 -1
  24. package/es/components/appointmentBooking/index.d.ts +0 -1
  25. package/es/components/appointmentBooking/utils.d.ts +1 -1
  26. package/es/components/appointmentBooking/utils.js +3 -1
  27. package/es/components/booking/addons/model.d.ts +1 -10
  28. package/es/components/booking/addons/model.js +5 -5
  29. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  30. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  31. package/es/components/booking/components/browserSelect/index.js +1 -1
  32. package/es/components/booking/components/voucher/index.d.ts +0 -1
  33. package/es/components/booking/forms/footer.d.ts +0 -1
  34. package/es/components/booking/forms/model.d.ts +1 -10
  35. package/es/components/booking/forms/model.js +5 -5
  36. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  37. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  38. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  39. package/es/components/booking/info/model.d.ts +1 -10
  40. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  41. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  42. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  43. package/es/components/booking/info/service/like/index.js +1 -1
  44. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  45. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  46. package/es/components/booking/materiels/startTime/index.js +1 -1
  47. package/es/components/booking/model.d.ts +1 -9
  48. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  49. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  50. package/es/components/booking/notes/model.d.ts +1 -10
  51. package/es/components/booking/notes/model.js +5 -5
  52. package/es/components/booking/payments/model.d.ts +1 -10
  53. package/es/components/booking/payments/model.js +5 -5
  54. package/es/components/eftposPay/amount.d.ts +1 -1
  55. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  56. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  57. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  58. package/es/components/eftposPay/device.d.ts +1 -1
  59. package/es/components/eftposPay/hooks.d.ts +2 -2
  60. package/es/components/eftposPay/index.d.ts +0 -1
  61. package/es/components/eftposPay/pay.d.ts +0 -1
  62. package/es/components/eftposPay/store/index.d.ts +4 -4
  63. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  64. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +41 -34
  67. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  68. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  69. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  70. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  72. package/es/components/eventBooking/components/Provider/Event/index.js +1 -1
  73. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  78. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  83. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  84. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  85. package/es/components/eventBooking/utils.js +8 -8
  86. package/es/components/listComponent/index.js +5 -5
  87. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  88. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  89. package/es/components/pay/toC/model.d.ts +1 -9
  90. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  91. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  92. package/es/components/productExtension/card/index.js +3 -3
  93. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  94. package/es/components/productExtension/fields/Forms/index.js +12 -12
  95. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  96. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  97. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  98. package/es/components/productExtension/server.js +2 -2
  99. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  100. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  101. package/es/components/ruleSetting/index.d.ts +0 -1
  102. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  103. package/es/components/schedules/calendar/index.js +4 -4
  104. package/es/components/schedules/calendar/serve.js +2 -2
  105. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  106. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  107. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  108. package/es/components/schedules/components/ResourceList/index.js +1 -1
  109. package/es/components/schedules/components/Search/index.js +5 -5
  110. package/es/components/schedules/model.d.ts +1 -9
  111. package/es/components/schedules/model.js +5 -5
  112. package/es/components/schedules/openHours/index.js +1 -1
  113. package/es/components/schedules/openHours/serve.js +2 -2
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  115. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  116. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  117. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  118. package/es/components/schedules/products/serve.js +2 -2
  119. package/es/components/schedules/products/utils.js +5 -5
  120. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  121. package/es/components/schedules/resources/detail/index.js +10 -10
  122. package/es/components/schedules/resources/list/index.js +2 -2
  123. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  124. package/es/components/schedules/resources/serve.js +2 -2
  125. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  126. package/es/components/schedules/schedules/utils.js +1 -1
  127. package/es/components/schedules/utils.js +4 -4
  128. package/es/components/selectModal/index.js +2 -2
  129. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  130. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  131. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  132. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  133. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  134. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  135. package/es/components/wallet/Detail/model.d.ts +1 -13
  136. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  137. package/es/components/wallet/PointCard/model.d.ts +1 -13
  138. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  139. package/es/components/wallet/Voucher/model.d.ts +1 -13
  140. package/es/components/wallet/model.d.ts +1 -9
  141. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  142. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  143. package/es/hooks/useComponents.js +1 -1
  144. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  145. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  146. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  147. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  148. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +10 -7
  149. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  150. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  151. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  152. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  153. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  154. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  155. package/lib/components/appointmentBooking/components/Services/index.js +11 -7
  156. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  157. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  158. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  159. package/lib/components/appointmentBooking/hooks.js +2 -2
  160. package/lib/components/appointmentBooking/index.d.ts +0 -1
  161. package/lib/components/appointmentBooking/utils.d.ts +1 -1
  162. package/lib/components/appointmentBooking/utils.js +2 -1
  163. package/lib/components/booking/addons/model.d.ts +1 -10
  164. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  165. package/lib/components/booking/forms/footer.d.ts +0 -1
  166. package/lib/components/booking/forms/model.d.ts +1 -10
  167. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  168. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  169. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  170. package/lib/components/booking/info/model.d.ts +1 -10
  171. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  172. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  173. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  174. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  175. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  176. package/lib/components/booking/model.d.ts +1 -9
  177. package/lib/components/booking/notes/model.d.ts +1 -10
  178. package/lib/components/booking/payments/model.d.ts +1 -10
  179. package/lib/components/eftposPay/amount.d.ts +1 -1
  180. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  181. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  182. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  183. package/lib/components/eftposPay/device.d.ts +1 -1
  184. package/lib/components/eftposPay/hooks.d.ts +2 -2
  185. package/lib/components/eftposPay/index.d.ts +0 -1
  186. package/lib/components/eftposPay/pay.d.ts +0 -1
  187. package/lib/components/eftposPay/store/index.d.ts +4 -4
  188. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  189. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  190. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  191. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +26 -23
  192. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  193. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  194. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  195. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/Provider/Event/index.js +1 -1
  198. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  201. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  202. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  203. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  205. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  206. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  207. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  208. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  209. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  210. package/lib/components/eventBooking/utils.js +5 -3
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  212. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  213. package/lib/components/pay/toC/model.d.ts +1 -9
  214. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  215. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  216. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  217. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  218. package/lib/components/ruleSetting/index.d.ts +0 -1
  219. package/lib/components/schedules/model.d.ts +1 -9
  220. package/lib/components/schedules/schedules/utils.js +1 -1
  221. package/lib/components/schedules/utils.js +1 -1
  222. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  223. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  224. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  225. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  226. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  227. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  228. package/lib/components/wallet/Detail/model.d.ts +1 -13
  229. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  230. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  231. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  232. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  233. package/lib/components/wallet/model.d.ts +1 -9
  234. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  235. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  236. package/package.json +3 -3
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
8
8
  var _utils$getComponents;
9
9
  var _ref = appHelper || {},
10
10
  utils = _ref.utils;
11
- return (utils === null || utils === void 0 ? void 0 : (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
11
+ return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
12
12
  }, [components]);
13
13
  return Cpt;
14
14
  };
@@ -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[]) => Decimal | "0.00";
28
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
29
29
  /**
30
30
  * 计算所有价格明细
31
31
  * @param items - 购物车商品数组
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
4
3
  export default Total;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: ({ onNext }: any) => JSX.Element;
4
3
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
4
3
  export default Cart;
@@ -80,12 +80,15 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
80
80
  data: params,
81
81
  callback: async (e) => {
82
82
  var _a3;
83
- await appointmentBooking.updateCart({
84
- _id: (_a3 = carts == null ? void 0 : carts[0]) == null ? void 0 : _a3._id,
85
- relationForms: e
86
- });
87
- appointmentBooking.setOtherData(key, true);
88
- callback();
83
+ if ((e == null ? void 0 : e.type) !== "close") {
84
+ await appointmentBooking.updateCart({
85
+ _id: (_a3 = carts == null ? void 0 : carts[0]) == null ? void 0 : _a3._id,
86
+ relationForms: e
87
+ });
88
+ appointmentBooking.setOtherData(key, true);
89
+ callback();
90
+ }
91
+ setLoading(false);
89
92
  }
90
93
  });
91
94
  };
@@ -95,6 +98,7 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
95
98
  if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
96
99
  return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
97
100
  }
101
+ setLoading(true);
98
102
  if (isRetailTemplate) {
99
103
  handleForm(true);
100
104
  return;
@@ -102,7 +106,6 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
102
106
  onCheckout();
103
107
  };
104
108
  const onCheckout = async () => {
105
- setLoading(true);
106
109
  try {
107
110
  const { deposit } = summary;
108
111
  const { data } = await appointmentBooking.submitOrder();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Deposit: () => JSX.Element;
4
3
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -83,6 +83,7 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
83
83
  const stepList = ((_c = (_b = (_a = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a.step) == null ? void 0 : _b.store) == null ? void 0 : _c.stepList) || [];
84
84
  const accountLists = await appointmentBooking.getAccounts();
85
85
  const checkResult = (0, import_utils.checkHasFormStep)({
86
+ setIsErrorHolder,
86
87
  nextStep,
87
88
  hasResourceFormId: (resultCarts == null ? void 0 : resultCarts.length) > 0,
88
89
  currentStep,
@@ -48,22 +48,26 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
48
48
  const { isDateSelectedFirst, isRetailTemplate } = (0, import_hooks.useAppointmentBookingSetting)();
49
49
  const { getProducts, checkProductType } = (0, import_hooks.useAppointmentBookingProduct)();
50
50
  const { removeStep, nextStep } = (0, import_hooks.useAppointmentBookingStep)();
51
- const { currentStep } = (0, import_context.useAppointmentBookingContext)();
51
+ const { currentStep, setLoading } = (0, import_context.useAppointmentBookingContext)();
52
52
  const [products, setProducts] = (0, import_react.useState)(null);
53
- const [loading, setLoading] = (0, import_react.useState)(false);
53
+ const [productLoading, setProductLoading] = (0, import_react.useState)(false);
54
54
  (0, import_react.useImperativeHandle)(ref, () => ({
55
55
  next: () => {
56
- nextStep();
56
+ setLoading(true);
57
+ setTimeout(() => {
58
+ nextStep();
59
+ setLoading(false);
60
+ }, 200);
57
61
  }
58
62
  }));
59
63
  (0, import_react.useEffect)(() => {
60
- setLoading(true);
64
+ setProductLoading(true);
61
65
  getProducts().then((res) => {
62
66
  setProducts(res || []);
63
- setLoading(false);
67
+ setProductLoading(false);
64
68
  }).catch(() => {
65
69
  setProducts([]);
66
- setLoading(false);
70
+ setProductLoading(false);
67
71
  });
68
72
  }, [isDateSelectedFirst]);
69
73
  const handleSelectProduct = async (item) => {
@@ -155,7 +159,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
155
159
  dataSource: products,
156
160
  onChange: handleSelectProduct,
157
161
  scrollDom: (0, import_utils.isMobile)() ? ".parallel-content-wrap" : ".parallel-booking-wrap",
158
- loading,
162
+ loading: productLoading,
159
163
  emptyDescription: import_utils.locales.getText(
160
164
  "pisell2.appointment.booking.empty.service"
161
165
  ),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../booking/components/voucher/index.less';
3
2
  import './index.less';
4
3
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DepositModal: (props: any) => JSX.Element;
4
3
  export default DepositModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Deposit: (props: any) => JSX.Element;
4
3
  export default Deposit;
@@ -312,7 +312,7 @@ var useAppointmentBookingResource = () => {
312
312
  };
313
313
  var useIsSkipResourceStep = () => {
314
314
  var _a, _b, _c;
315
- const { currentStep, setCarts, setPolicyIds } = (0, import_context.useAppointmentBookingContext)();
315
+ const { currentStep, setCarts, setPolicyIds, setIsErrorHolder } = (0, import_context.useAppointmentBookingContext)();
316
316
  const { getResourceList, autoSelectAllProductResources } = useAppointmentBookingResource();
317
317
  const { isFormSubject } = useAppointmentBookingSetting();
318
318
  const appointmentBooking = useAppointmentBooking();
@@ -332,7 +332,7 @@ var useIsSkipResourceStep = () => {
332
332
  if (!((_a2 = res == null ? void 0 : res.errorList) == null ? void 0 : _a2.length) && ((_e = (_d = (_c2 = (_b2 = resources == null ? void 0 : resources[0]) == null ? void 0 : _b2.resources) == null ? void 0 : _c2[0]) == null ? void 0 : _d.renderList) == null ? void 0 : _e.length) === 1) {
333
333
  if (!isSkipUpdateFormStep) {
334
334
  const resultCarts = (0, import_utils2.formatCartsResources)(carts, resources, setPolicyIds);
335
- (0, import_utils2.checkHasFormStep)({ nextStep, isSkip: true, openLoginModal, utils, accountLists, getHolders, checkHolder: import_utils3.checkHolder, setCarts, checkAccount, carts, isFormSubject, hasResourceFormId: (resultCarts == null ? void 0 : resultCarts.length) > 0, currentStep, stepList, appointmentBooking, locales: import_utils.locales, isLogin });
335
+ (0, import_utils2.checkHasFormStep)({ setIsErrorHolder, nextStep, isSkip: true, openLoginModal, utils, accountLists, getHolders, checkHolder: import_utils3.checkHolder, setCarts, checkAccount, carts, isFormSubject, hasResourceFormId: (resultCarts == null ? void 0 : resultCarts.length) > 0, currentStep, stepList, appointmentBooking, locales: import_utils.locales, isLogin });
336
336
  }
337
337
  return true;
338
338
  } else {
@@ -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;
@@ -111,4 +111,4 @@ export declare const Toast: (text: string) => void;
111
111
  * @Author: WangHan
112
112
  * @Date: 2025-05-06 21:51
113
113
  */
114
- export declare const checkHasFormStep: ({ nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
114
+ export declare const checkHasFormStep: ({ setIsErrorHolder, nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
@@ -273,7 +273,7 @@ var Toast = (text) => {
273
273
  window == null ? void 0 : window.alert(text);
274
274
  }
275
275
  };
276
- var checkHasFormStep = ({ nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId: hasResourceFormId2, currentStep, stepList, appointmentBooking, locales: locales2, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }) => {
276
+ var checkHasFormStep = ({ setIsErrorHolder, nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId: hasResourceFormId2, currentStep, stepList, appointmentBooking, locales: locales2, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }) => {
277
277
  var _a, _b, _c;
278
278
  let isNext = false;
279
279
  if (hasResourceFormId2) {
@@ -295,6 +295,7 @@ var checkHasFormStep = ({ nextStep, isSkip, checkHolder, checkAccount, carts, se
295
295
  if (result) {
296
296
  setCarts(result);
297
297
  }
298
+ setIsErrorHolder(!!result);
298
299
  if (!!result) return true;
299
300
  };
300
301
  if (!isLogin) {
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const VoucherCard: (props: any) => JSX.Element | null;
4
3
  export default VoucherCard;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FooterProps {
3
2
  state: any;
4
3
  reload: () => void;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
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
- }>;
5
+ export declare const Provider: any, Context: 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
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
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
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "warn" | "success" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ContinueButton: () => JSX.Element;
4
3
  export default ContinueButton;
@@ -69,6 +69,9 @@ var ContinueButton = () => {
69
69
  data: params,
70
70
  callback: async (e) => {
71
71
  var _a2;
72
+ if ((e == null ? void 0 : e.type) === "close") {
73
+ return;
74
+ }
72
75
  const value = (0, import_utils2.formatValues)(data, false, {
73
76
  relation_forms: e
74
77
  });
@@ -103,16 +106,8 @@ var ContinueButton = () => {
103
106
  return item;
104
107
  }
105
108
  const { bundle = [], options } = item._productDetail;
106
- if (product == null ? void 0 : product.product_variant_id) {
107
- const { variant = [] } = newProduct;
108
- const _variant = variant.find(
109
- (v) => v.id === product.product_variant_id
110
- );
111
- if (_variant) {
112
- _totalPrice = Number(_variant.price);
113
- }
114
- } else if (
115
- // 2. 套餐商品
109
+ if (
110
+ // 1. 套餐商品
116
111
  Array.isArray(product == null ? void 0 : product.product_bundle) && product.product_bundle.length > 0
117
112
  ) {
118
113
  const { bundle_group = [] } = newProduct;
@@ -132,7 +127,7 @@ var ContinueButton = () => {
132
127
  if ((_originBundleItemInfo == null ? void 0 : _originBundleItemInfo._bundle_product_id) === (_newBundleItemInfo == null ? void 0 : _newBundleItemInfo.bundle_product_id)) {
133
128
  const {
134
129
  price_type,
135
- num = 0,
130
+ num = 1,
136
131
  option: _originBundleItemOptions
137
132
  } = _originBundleItemInfo;
138
133
  const _bundleItemPrice = Number(_newBundleItemInfo.price);
@@ -150,7 +145,7 @@ var ContinueButton = () => {
150
145
  (op) => op.product_option_item_id === option_group_item_id
151
146
  );
152
147
  if (_originOptionItem) {
153
- const { price, num: _optionNum = 0 } = _originOptionItem;
148
+ const { price, num: _optionNum = 1 } = _originOptionItem;
154
149
  _totalPrice += Number(price) * _optionNum;
155
150
  }
156
151
  }
@@ -158,18 +153,26 @@ var ContinueButton = () => {
158
153
  }
159
154
  }
160
155
  }
161
- } else if (
162
- // 3. 单规格商品
163
- Array.isArray(product == null ? void 0 : product.product_option_item) && product.product_option_item.length > 0
164
- ) {
165
- for (let i = 0; i < product.product_option_item.length; i++) {
166
- const { option_group_item_id } = product.product_option_item[i];
167
- const _originOptionItem = options.find(
168
- (op) => op.product_option_item_id === option_group_item_id
156
+ } else {
157
+ if (product == null ? void 0 : product.product_variant_id) {
158
+ const { variant = [] } = newProduct;
159
+ const _variant = variant.find(
160
+ (v) => v.id === product.product_variant_id
169
161
  );
170
- if (_originOptionItem) {
171
- const { price, num = 0 } = _originOptionItem;
172
- _totalPrice += Number(price) * num;
162
+ if (_variant) {
163
+ _totalPrice = Number(_variant.price);
164
+ }
165
+ }
166
+ if (Array.isArray(product == null ? void 0 : product.product_option_item) && product.product_option_item.length > 0) {
167
+ for (let i = 0; i < product.product_option_item.length; i++) {
168
+ const { option_group_item_id } = product.product_option_item[i];
169
+ const _originOptionItem = options.find(
170
+ (op) => op.product_option_item_id === option_group_item_id
171
+ );
172
+ if (_originOptionItem) {
173
+ const { price, num = 1 } = _originOptionItem;
174
+ _totalPrice += Number(price) * num;
175
+ }
173
176
  }
174
177
  }
175
178
  }