@pisell/private-materials 3.3.39 → 3.3.41

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 (238) 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/ContinueButton/index.js +3 -2
  10. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +32 -24
  14. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  20. package/es/components/appointmentBooking/components/Services/index.js +13 -8
  21. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  22. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  23. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  24. package/es/components/appointmentBooking/hooks.js +4 -2
  25. package/es/components/appointmentBooking/index.d.ts +0 -1
  26. package/es/components/appointmentBooking/utils.d.ts +1 -1
  27. package/es/components/appointmentBooking/utils.js +3 -1
  28. package/es/components/booking/addons/model.d.ts +1 -10
  29. package/es/components/booking/addons/model.js +5 -5
  30. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  31. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  32. package/es/components/booking/components/browserSelect/index.js +1 -1
  33. package/es/components/booking/components/footer/index.d.ts +1 -0
  34. package/es/components/booking/components/voucher/index.d.ts +0 -1
  35. package/es/components/booking/forms/footer.d.ts +0 -1
  36. package/es/components/booking/forms/model.d.ts +1 -10
  37. package/es/components/booking/forms/model.js +5 -5
  38. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  39. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  40. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  41. package/es/components/booking/info/index.d.ts +1 -0
  42. package/es/components/booking/info/model.d.ts +1 -10
  43. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  44. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  45. package/es/components/booking/info/service/like/index.js +1 -1
  46. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  47. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  48. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  49. package/es/components/booking/materiels/startTime/index.js +1 -1
  50. package/es/components/booking/model.d.ts +1 -9
  51. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  52. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  53. package/es/components/booking/notes/model.d.ts +1 -10
  54. package/es/components/booking/notes/model.js +5 -5
  55. package/es/components/booking/payments/model.d.ts +1 -10
  56. package/es/components/booking/payments/model.js +5 -5
  57. package/es/components/eftposPay/amount.d.ts +1 -1
  58. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  59. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  60. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  61. package/es/components/eftposPay/device.d.ts +1 -1
  62. package/es/components/eftposPay/hooks.d.ts +2 -2
  63. package/es/components/eftposPay/index.d.ts +0 -1
  64. package/es/components/eftposPay/pay.d.ts +0 -1
  65. package/es/components/eftposPay/store/index.d.ts +4 -4
  66. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  67. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +9 -3
  69. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  70. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  72. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  73. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  76. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  81. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  82. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  83. package/es/components/eventBooking/index.d.ts +1 -0
  84. package/es/components/eventBooking/utils.js +8 -8
  85. package/es/components/listComponent/index.js +5 -5
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  87. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  88. package/es/components/pay/toC/model.d.ts +1 -9
  89. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  90. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  91. package/es/components/productExtension/card/index.js +3 -3
  92. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  93. package/es/components/productExtension/fields/Forms/index.js +12 -12
  94. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  95. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  96. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  97. package/es/components/productExtension/server.js +2 -2
  98. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  99. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  100. package/es/components/ruleSetting/index.d.ts +0 -1
  101. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  102. package/es/components/schedules/calendar/index.js +4 -4
  103. package/es/components/schedules/calendar/serve.js +2 -2
  104. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  105. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  106. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  107. package/es/components/schedules/components/ResourceList/index.js +1 -1
  108. package/es/components/schedules/components/Search/index.js +5 -5
  109. package/es/components/schedules/model.d.ts +1 -9
  110. package/es/components/schedules/model.js +5 -5
  111. package/es/components/schedules/openHours/index.js +1 -1
  112. package/es/components/schedules/openHours/serve.js +2 -2
  113. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  115. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  116. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  117. package/es/components/schedules/products/serve.js +2 -2
  118. package/es/components/schedules/products/utils.js +5 -5
  119. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  120. package/es/components/schedules/resources/detail/index.js +10 -10
  121. package/es/components/schedules/resources/list/index.js +2 -2
  122. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  123. package/es/components/schedules/resources/serve.js +2 -2
  124. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  125. package/es/components/schedules/schedules/utils.js +1 -1
  126. package/es/components/schedules/utils.js +4 -4
  127. package/es/components/selectModal/index.js +2 -2
  128. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  129. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  130. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  131. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  132. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  133. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  134. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  135. package/es/components/ticketBooking/index.d.ts +1 -0
  136. package/es/components/wallet/Detail/model.d.ts +1 -13
  137. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  138. package/es/components/wallet/PointCard/model.d.ts +1 -13
  139. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  140. package/es/components/wallet/Voucher/model.d.ts +1 -13
  141. package/es/components/wallet/model.d.ts +1 -9
  142. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  143. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  144. package/es/hooks/useComponents.js +1 -1
  145. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  146. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +2 -2
  147. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  148. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  149. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  150. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +10 -7
  151. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  152. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  153. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  154. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  155. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  156. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  157. package/lib/components/appointmentBooking/components/Services/index.js +11 -7
  158. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  159. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  160. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  161. package/lib/components/appointmentBooking/hooks.js +3 -3
  162. package/lib/components/appointmentBooking/index.d.ts +0 -1
  163. package/lib/components/appointmentBooking/utils.d.ts +1 -1
  164. package/lib/components/appointmentBooking/utils.js +2 -1
  165. package/lib/components/booking/addons/model.d.ts +1 -10
  166. package/lib/components/booking/components/footer/index.d.ts +1 -0
  167. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  168. package/lib/components/booking/forms/footer.d.ts +0 -1
  169. package/lib/components/booking/forms/model.d.ts +1 -10
  170. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  171. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  172. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  173. package/lib/components/booking/info/index.d.ts +1 -0
  174. package/lib/components/booking/info/model.d.ts +1 -10
  175. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  176. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  177. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  178. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  179. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  180. package/lib/components/booking/model.d.ts +1 -9
  181. package/lib/components/booking/notes/model.d.ts +1 -10
  182. package/lib/components/booking/payments/model.d.ts +1 -10
  183. package/lib/components/eftposPay/amount.d.ts +1 -1
  184. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  185. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  186. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  187. package/lib/components/eftposPay/device.d.ts +1 -1
  188. package/lib/components/eftposPay/hooks.d.ts +2 -2
  189. package/lib/components/eftposPay/index.d.ts +0 -1
  190. package/lib/components/eftposPay/pay.d.ts +0 -1
  191. package/lib/components/eftposPay/store/index.d.ts +4 -4
  192. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  193. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  194. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -0
  195. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  196. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  197. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  201. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  202. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  203. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  205. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  206. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  207. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  208. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  209. package/lib/components/eventBooking/index.d.ts +1 -0
  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/ticketBooking/index.d.ts +1 -0
  228. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  229. package/lib/components/ticketBooking/index.d.ts +1 -0
  230. package/lib/components/wallet/Detail/model.d.ts +1 -13
  231. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  232. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  233. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  234. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  235. package/lib/components/wallet/model.d.ts +1 -9
  236. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  237. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  238. package/package.json +4 -4
@@ -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;
@@ -121,7 +121,7 @@ var useAppointmentBookingStep = () => {
121
121
  }
122
122
  const currentStep = appointmentBooking == null ? void 0 : appointmentBooking.getCurrentStep();
123
123
  const stepList2 = ((_c2 = (_b2 = (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a2.step) == null ? void 0 : _b2.store) == null ? void 0 : _c2.stepList) || [];
124
- if ((currentStep == null ? void 0 : currentStep.index) + 2 === (stepList2 == null ? void 0 : stepList2.length)) {
124
+ if ((currentStep == null ? void 0 : currentStep.index) + 2 >= (stepList2 == null ? void 0 : stepList2.length)) {
125
125
  if ((_d = policyIdsRef == null ? void 0 : policyIdsRef.current) == null ? void 0 : _d.length) {
126
126
  let idx = 0;
127
127
  const showNextPolicy = () => {
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -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
  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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -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;
@@ -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
  });
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EmptyHolderModal: (props: any) => JSX.Element;
4
3
  export default EmptyHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Information: () => JSX.Element;
4
3
  export default Information;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OrderProductModal: (props: any) => JSX.Element;
4
3
  export default OrderProductModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
3
2
  export default RemoveOptionConfirmModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resource: () => JSX.Element;
4
3
  export default Resource;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingOptions: (props: {
3
2
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
4
3
  export default ScheduleTimeItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -39,7 +39,9 @@ module.exports = __toCommonJS(utils_exports);
39
39
  var import_dayjs = __toESM(require("dayjs"));
40
40
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
41
41
  var formatBackgroundColors = (colors) => {
42
- let _colors = Array.from(new Set(colors.map((color) => color == null ? void 0 : color.toLocaleLowerCase()) || [])).filter((d) => !!d);
42
+ let _colors = Array.from(
43
+ new Set(colors.map((color) => color == null ? void 0 : color.toLocaleLowerCase()) || [])
44
+ ).filter((d) => !!d);
43
45
  let colorStr = _colors.map((color, index) => {
44
46
  return `${color} ${index * 100 / _colors.length}% ${(index + 1) * 100 / _colors.length}%`;
45
47
  }).join(", ");
@@ -73,12 +75,12 @@ var formatMonthDisplay = (dateString) => {
73
75
  return date.toLocaleString(locale, { month: "long", year: "numeric" });
74
76
  };
75
77
  var resourceTitle = (data) => {
76
- var _a, _b, _c, _d, _e, _f, _g;
78
+ var _a, _b, _c, _d, _e, _f;
77
79
  const context = (0, import_useEngineContext.default)();
78
80
  const form = (_c = (_b = (_a = data == null ? void 0 : data.initData) == null ? void 0 : _a.boardSetting) == null ? void 0 : _b.event_v2_form) == null ? void 0 : _c.form;
79
81
  const title = ((_d = form == null ? void 0 : form.setting) == null ? void 0 : _d.title) || (form == null ? void 0 : form.title);
80
82
  const translation = (_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.translation;
81
- return (_g = translation(title)) == null ? void 0 : _g.toLowerCase();
83
+ return translation(title);
82
84
  };
83
85
  // Annotate the CommonJS export names for ESM import in node:
84
86
  0 && (module.exports = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import { CustomerCardProps } from './CustomerCard';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;