@pisell/private-materials 6.4.73 → 6.4.75

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 (235) 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/preview.js +4 -4
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +5 -5
  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/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  15. package/es/components/booking/components/footer/index.js +62 -53
  16. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  17. package/es/components/booking/forms/model.d.ts +10 -1
  18. package/es/components/booking/forms/table/index.d.ts +1 -0
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  20. package/es/components/booking/info/model.d.ts +10 -1
  21. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  22. package/es/components/booking/info/service/like/index.d.ts +1 -0
  23. package/es/components/booking/info/service2/utils.d.ts +1 -1
  24. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  25. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  26. package/es/components/booking/model.d.ts +9 -1
  27. package/es/components/booking/notes/model.d.ts +10 -1
  28. package/es/components/booking/payments/model.d.ts +10 -1
  29. package/es/components/booking/utils.d.ts +2 -2
  30. package/es/components/checkout/PaymentModal.js +178 -108
  31. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  32. package/es/components/checkout/components/AdditionalModule/index.js +50 -12
  33. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  34. package/es/components/checkout/components/AmountSummary/index.less +1 -1
  35. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  36. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  37. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  38. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  39. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  40. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  41. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  42. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  43. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  44. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  45. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  46. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  47. package/es/components/checkout/index.less +1 -1
  48. package/es/components/checkout/locales.d.ts +3 -0
  49. package/es/components/checkout/locales.js +3 -0
  50. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  51. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  52. package/es/components/eftpos/form/index.d.ts +1 -0
  53. package/es/components/eftpos/group/index.d.ts +1 -0
  54. package/es/components/eftpos/hooks.d.ts +1 -0
  55. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  56. package/es/components/eftpos/icon/device.d.ts +1 -0
  57. package/es/components/eftpos/receipt/index.d.ts +1 -0
  58. package/es/components/eftposPay/amount.d.ts +1 -1
  59. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  60. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  61. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  63. package/es/components/eftposPay/device.d.ts +1 -1
  64. package/es/components/eftposPay/hooks.d.ts +2 -2
  65. package/es/components/eftposPay/store/index.d.ts +4 -4
  66. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  67. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  77. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  79. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  80. package/es/components/pay/toC/model.d.ts +9 -1
  81. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  82. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  83. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  84. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  85. package/es/components/schedules/model.d.ts +9 -1
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  88. package/es/components/schedules/products/index.d.ts +1 -0
  89. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  90. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  91. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  92. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  93. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  94. package/es/components/ticketBooking/locales.d.ts +6 -0
  95. package/es/components/ticketBooking/locales.js +9 -3
  96. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  97. package/es/components/wallet/Detail/model.d.ts +13 -1
  98. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  99. package/es/components/wallet/PointCard/model.d.ts +13 -1
  100. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  101. package/es/components/wallet/Voucher/model.d.ts +13 -1
  102. package/es/components/wallet/model.d.ts +9 -1
  103. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  104. package/es/plus/clientName/index.d.ts +1 -0
  105. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  106. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  107. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  108. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  109. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  110. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  111. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  112. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  113. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  114. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +11 -7
  115. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  116. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  117. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  118. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  119. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  120. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  121. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  122. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  123. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  124. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  125. package/lib/components/booking/addons/model.d.ts +10 -1
  126. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  127. package/lib/components/booking/components/footer/index.js +15 -8
  128. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  129. package/lib/components/booking/forms/model.d.ts +10 -1
  130. package/lib/components/booking/forms/table/index.d.ts +1 -0
  131. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  132. package/lib/components/booking/info/model.d.ts +10 -1
  133. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  134. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  135. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  136. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  137. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  138. package/lib/components/booking/model.d.ts +9 -1
  139. package/lib/components/booking/notes/model.d.ts +10 -1
  140. package/lib/components/booking/payments/model.d.ts +10 -1
  141. package/lib/components/booking/utils.d.ts +2 -2
  142. package/lib/components/checkout/PaymentModal.js +73 -11
  143. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  144. package/lib/components/checkout/components/AdditionalModule/index.js +50 -11
  145. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  146. package/lib/components/checkout/components/AmountSummary/index.less +1 -1
  147. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  148. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  149. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  150. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  151. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  152. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  153. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  154. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  155. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  156. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  157. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  158. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  159. package/lib/components/checkout/index.less +1 -1
  160. package/lib/components/checkout/locales.d.ts +3 -0
  161. package/lib/components/checkout/locales.js +3 -0
  162. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  163. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  164. package/lib/components/eftpos/form/index.d.ts +1 -0
  165. package/lib/components/eftpos/group/index.d.ts +1 -0
  166. package/lib/components/eftpos/hooks.d.ts +1 -0
  167. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  168. package/lib/components/eftpos/icon/device.d.ts +1 -0
  169. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  170. package/lib/components/eftposPay/amount.d.ts +1 -1
  171. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  172. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  173. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  174. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  175. package/lib/components/eftposPay/device.d.ts +1 -1
  176. package/lib/components/eftposPay/hooks.d.ts +2 -2
  177. package/lib/components/eftposPay/store/index.d.ts +4 -4
  178. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  179. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  180. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  181. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  182. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  183. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  184. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  185. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  186. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  187. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  188. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  189. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  190. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  191. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  192. package/lib/components/pay/toC/model.d.ts +9 -1
  193. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  194. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  195. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  196. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  197. package/lib/components/schedules/model.d.ts +9 -1
  198. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  199. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  200. package/lib/components/schedules/products/index.d.ts +1 -0
  201. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  202. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  203. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  204. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  205. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  206. package/lib/components/ticketBooking/locales.d.ts +6 -0
  207. package/lib/components/ticketBooking/locales.js +9 -3
  208. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  209. package/lib/components/wallet/Detail/model.d.ts +13 -1
  210. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  211. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  212. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  213. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  214. package/lib/components/wallet/model.d.ts +9 -1
  215. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  216. package/lib/plus/clientName/index.d.ts +1 -0
  217. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  218. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  219. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  220. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  221. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  222. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  223. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  224. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  225. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  226. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +9 -5
  227. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  228. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  229. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  230. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  231. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  232. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  233. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  234. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  235. package/package.json +1 -1
@@ -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;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -619,46 +619,50 @@ var Footer = function Footer(props) {
619
619
  */
620
620
  var handleCheckoutInternal = /*#__PURE__*/function () {
621
621
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
622
- var isNewOrder, isHasDayProducts, res, modalData, _res;
622
+ var _state$bookingConfig5;
623
+ var isToastMode, isNewOrder, isHasDayProducts, res, modalData, _res;
623
624
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
624
625
  while (1) switch (_context4.prev = _context4.next) {
625
626
  case 0:
626
- // 关闭页面上所有的PaymentResultToast
627
- closeAllPaymentResultToasts();
627
+ // 弹窗模式判断
628
+ isToastMode = (state === null || state === void 0 || (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.config) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.payment_setting) === null || _state$bookingConfig5 === void 0 ? void 0 : _state$bookingConfig5.payment_result_display_mode) !== 'modal';
629
+ if (isToastMode) {
630
+ closeAllPaymentResultToasts();
631
+ }
628
632
  isNewOrder = !state.bookingId; // 如果有编辑内容, 则先保存
629
633
  if (!isEdit) {
630
- _context4.next = 26;
634
+ _context4.next = 27;
631
635
  break;
632
636
  }
633
637
  if (!isDayBooking(state)) {
634
- _context4.next = 7;
638
+ _context4.next = 8;
635
639
  break;
636
640
  }
637
641
  isHasDayProducts = handleDaySubmit();
638
642
  if (!isHasDayProducts) {
639
- _context4.next = 7;
643
+ _context4.next = 8;
640
644
  break;
641
645
  }
642
646
  return _context4.abrupt("return");
643
- case 7:
647
+ case 8:
644
648
  if (!state.isBookingTicket2) {
645
- _context4.next = 20;
649
+ _context4.next = 21;
646
650
  break;
647
651
  }
648
- _context4.next = 10;
652
+ _context4.next = 11;
649
653
  return handleSave({
650
654
  type: 'checkout',
651
655
  messageShow: !(isTerminal !== null && isTerminal !== void 0 && isTerminal()),
652
656
  noSubmit: true
653
657
  });
654
- case 10:
658
+ case 11:
655
659
  res = _context4.sent;
656
660
  if (res) {
657
- _context4.next = 13;
661
+ _context4.next = 14;
658
662
  break;
659
663
  }
660
664
  return _context4.abrupt("return");
661
- case 13:
665
+ case 14:
662
666
  // 使用新版支付弹窗
663
667
  modalData = {
664
668
  order_info: res,
@@ -700,24 +704,24 @@ var Footer = function Footer(props) {
700
704
  }
701
705
  };
702
706
  });
703
- _context4.next = 25;
707
+ _context4.next = 26;
704
708
  break;
705
- case 20:
706
- _context4.next = 22;
709
+ case 21:
710
+ _context4.next = 23;
707
711
  return handleSave({
708
712
  type: 'checkout',
709
713
  messageShow: !(isTerminal !== null && isTerminal !== void 0 && isTerminal())
710
714
  });
711
- case 22:
715
+ case 23:
712
716
  _res = _context4.sent;
713
717
  // goCheckout2(res);
714
718
  console.log(_res);
715
719
  goCheckout((_res === null || _res === void 0 ? void 0 : _res.order_id) || state.bookingId, isNewOrder);
716
- case 25:
717
- return _context4.abrupt("return");
718
720
  case 26:
719
- return _context4.abrupt("return", goCheckout(state.bookingId, isNewOrder));
721
+ return _context4.abrupt("return");
720
722
  case 27:
723
+ return _context4.abrupt("return", goCheckout(state.bookingId, isNewOrder));
724
+ case 28:
721
725
  case "end":
722
726
  return _context4.stop();
723
727
  }
@@ -848,31 +852,36 @@ var Footer = function Footer(props) {
848
852
  */
849
853
  var handleSave = /*#__PURE__*/function () {
850
854
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_ref6) {
851
- var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState, _window7, callbackData, values, checkout, subtotal_info, res, isNeedDeposit, api;
855
+ var _state$bookingConfig6;
856
+ var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isToastMode, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState, _window7, callbackData, values, checkout, subtotal_info, res, isNeedDeposit, api;
852
857
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
853
858
  while (1) switch (_context6.prev = _context6.next) {
854
859
  case 0:
855
860
  type = _ref6.type, _ref6$messageShow = _ref6.messageShow, messageShow = _ref6$messageShow === void 0 ? true : _ref6$messageShow, _ref6$noSubmit = _ref6.noSubmit, noSubmit = _ref6$noSubmit === void 0 ? false : _ref6$noSubmit;
856
861
  // 关闭页面上所有的PaymentResultToast
857
- closeAllPaymentResultToasts();
862
+ // 弹窗模式判断
863
+ isToastMode = (state === null || state === void 0 || (_state$bookingConfig6 = state.bookingConfig) === null || _state$bookingConfig6 === void 0 || (_state$bookingConfig6 = _state$bookingConfig6.config) === null || _state$bookingConfig6 === void 0 || (_state$bookingConfig6 = _state$bookingConfig6.payment_setting) === null || _state$bookingConfig6 === void 0 ? void 0 : _state$bookingConfig6.payment_result_display_mode) !== 'modal'; // 只有 toast 模式才关闭,modal 模式留着
864
+ if (isToastMode) {
865
+ closeAllPaymentResultToasts();
866
+ }
858
867
  // 跨日预约验证是否有预约商品
859
868
  if (!isDayBooking(state)) {
860
- _context6.next = 6;
869
+ _context6.next = 7;
861
870
  break;
862
871
  }
863
872
  isHasDayProducts = handleDaySubmit();
864
873
  if (!isHasDayProducts) {
865
- _context6.next = 6;
874
+ _context6.next = 7;
866
875
  break;
867
876
  }
868
877
  return _context6.abrupt("return");
869
- case 6:
878
+ case 7:
870
879
  if (!(isBooking4Shop && getIsSubjectRequire(state) && checkHolderIsError(state))) {
871
- _context6.next = 8;
880
+ _context6.next = 9;
872
881
  break;
873
882
  }
874
883
  return _context6.abrupt("return");
875
- case 8:
884
+ case 9:
876
885
  // 区分loading, 是点击的checkout 还是save
877
886
  _setLoading = type === 'checkout' ? setCheckoutLoading : setLoading;
878
887
  _setLoading(true);
@@ -881,34 +890,34 @@ var Footer = function Footer(props) {
881
890
  createApi = state.renderType === 'eventBooking' ? createEventBooking : createBooking;
882
891
  saveOtherValue = {};
883
892
  if (!(type === 'save')) {
884
- _context6.next = 21;
893
+ _context6.next = 22;
885
894
  break;
886
895
  }
887
- _context6.next = 17;
896
+ _context6.next = 18;
888
897
  return state === null || state === void 0 || (_state$onSave = state.onSave) === null || _state$onSave === void 0 ? void 0 : _state$onSave.call(state, state.client);
889
- case 17:
898
+ case 18:
890
899
  _context6.t0 = _context6.sent;
891
900
  if (_context6.t0) {
892
- _context6.next = 20;
901
+ _context6.next = 21;
893
902
  break;
894
903
  }
895
904
  _context6.t0 = {};
896
- case 20:
897
- saveOtherValue = _context6.t0;
898
905
  case 21:
899
- _context6.prev = 21;
906
+ saveOtherValue = _context6.t0;
907
+ case 22:
908
+ _context6.prev = 22;
900
909
  callbackData = null; // 格式化提交的参数
901
910
  values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // checkout 2.0 补充商品总税费字段
902
911
  values.product_tax_fee = total.tax || 0;
903
912
  if (!noSubmit) {
904
- _context6.next = 27;
913
+ _context6.next = 28;
905
914
  break;
906
915
  }
907
916
  return _context6.abrupt("return", values);
908
- case 27:
917
+ case 28:
909
918
  checkout = pisellos.getModule('checkout'); // 如果有 orderid,则应该走更新逻辑
910
919
  if (!editOrderId) {
911
- _context6.next = 37;
920
+ _context6.next = 38;
912
921
  break;
913
922
  }
914
923
  subtotal_info = {
@@ -917,7 +926,7 @@ var Footer = function Footer(props) {
917
926
  total: cloneDeep(total),
918
927
  showDetail: showDetail
919
928
  };
920
- _context6.next = 32;
929
+ _context6.next = 33;
921
930
  return checkout.updateLocalOrderAsync({
922
931
  orderId: editOrderId,
923
932
  orderData: values,
@@ -925,10 +934,10 @@ var Footer = function Footer(props) {
925
934
  autoPayment: true,
926
935
  totalInfo: subtotal_info
927
936
  });
928
- case 32:
929
- _context6.next = 34;
937
+ case 33:
938
+ _context6.next = 35;
930
939
  return checkout.manualSyncOrderAsync();
931
- case 34:
940
+ case 35:
932
941
  res = _context6.sent;
933
942
  if (res.success) {
934
943
  // 回调关闭弹窗
@@ -936,7 +945,7 @@ var Footer = function Footer(props) {
936
945
  _setLoading(false);
937
946
  }
938
947
  return _context6.abrupt("return");
939
- case 37:
948
+ case 38:
940
949
  // 如果是保存,检查是否需要支付定金
941
950
  if (type === 'save') {
942
951
  isNeedDeposit = checkout.checkIsNeedDepositAsync(values.bookings, values.relation_products);
@@ -1000,43 +1009,43 @@ var Footer = function Footer(props) {
1000
1009
 
1001
1010
  // 如果有addons改动, 则先保存
1002
1011
  if (!addonsEdit) {
1003
- _context6.next = 43;
1012
+ _context6.next = 44;
1004
1013
  break;
1005
1014
  }
1006
- _context6.next = 43;
1015
+ _context6.next = 44;
1007
1016
  return handleSaveAddons();
1008
- case 43:
1017
+ case 44:
1009
1018
  if (!infoEdit) {
1010
- _context6.next = 48;
1019
+ _context6.next = 49;
1011
1020
  break;
1012
1021
  }
1013
- _context6.next = 46;
1022
+ _context6.next = 47;
1014
1023
  return api(values, state.bookingId || editOrderId);
1015
- case 46:
1024
+ case 47:
1016
1025
  callbackData = _context6.sent;
1017
1026
  if (messageShow) {
1018
1027
  message.success(locales.getText(state.bookingId ? 'pisell2.text.appointment-updated' : 'pisell2.text.created-successfully'));
1019
1028
  }
1020
- case 48:
1029
+ case 49:
1021
1030
  // 回调关闭弹窗
1022
1031
  state === null || state === void 0 || state.callback(callbackData, type);
1023
1032
  _setLoading(false);
1024
1033
 
1025
1034
  // return数据 checkout时需要
1026
1035
  return _context6.abrupt("return", callbackData || values);
1027
- case 53:
1028
- _context6.prev = 53;
1029
- _context6.t1 = _context6["catch"](21);
1036
+ case 54:
1037
+ _context6.prev = 54;
1038
+ _context6.t1 = _context6["catch"](22);
1030
1039
  console.log(_context6.t1);
1031
1040
  if ((_context6.t1 === null || _context6.t1 === void 0 ? void 0 : _context6.t1.code) === 70101) {
1032
1041
  message.error(_context6.t1 === null || _context6.t1 === void 0 ? void 0 : _context6.t1.message);
1033
1042
  }
1034
1043
  _setLoading(false);
1035
- case 58:
1044
+ case 59:
1036
1045
  case "end":
1037
1046
  return _context6.stop();
1038
1047
  }
1039
- }, _callee6, null, [[21, 53]]);
1048
+ }, _callee6, null, [[22, 54]]);
1040
1049
  }));
1041
1050
  return function handleSave(_x5) {
1042
1051
  return _ref7.apply(this, arguments);
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
2
3
  export default useIsLowSpeedNetwork;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};