@pisell/private-materials 6.5.4 → 6.5.6

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 (249) 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 +160 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/components/actionButtons/index.js +37 -42
  13. package/es/components/booking/components/actionButtons/index.less +0 -28
  14. package/es/components/booking/components/footer/amount.d.ts +3 -3
  15. package/es/components/booking/components/footer/amount.js +51 -31
  16. package/es/components/booking/components/footer/index.js +177 -68
  17. package/es/components/booking/components/footer/utils.js +62 -33
  18. package/es/components/booking/forms/model.d.ts +1 -10
  19. package/es/components/booking/info/model.d.ts +1 -10
  20. package/es/components/booking/info/model.js +5 -0
  21. package/es/components/booking/info/service/addService/index.js +2 -1
  22. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  23. package/es/components/booking/info/service2/utils.d.ts +1 -1
  24. package/es/components/booking/info2/index.js +42 -2
  25. package/es/components/booking/info2/service/addService/index.js +2 -1
  26. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  27. package/es/components/booking/info2/service/editService/index.js +12 -4
  28. package/es/components/booking/model.d.ts +1 -9
  29. package/es/components/booking/notes/model.d.ts +1 -10
  30. package/es/components/booking/payments/model.d.ts +1 -10
  31. package/es/components/booking/utils.js +10 -5
  32. package/es/components/checkout/PaymentModal.d.ts +2 -0
  33. package/es/components/checkout/PaymentModal.js +462 -263
  34. package/es/components/checkout/components/AdditionalModule/index.less +1 -1
  35. package/es/components/checkout/components/AmountSummary/index.js +176 -65
  36. package/es/components/checkout/components/AmountSummary/index.less +13 -0
  37. package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
  38. package/es/components/checkout/components/CashPaymentModule/index.js +110 -132
  39. package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
  40. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  41. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
  42. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +214 -0
  43. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
  44. package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
  45. package/es/components/checkout/components/PaymentOptionsModule/index.less +23 -0
  46. package/es/components/checkout/components/PaymentResultToast/index.js +38 -8
  47. package/es/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
  48. package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
  49. package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
  50. package/es/components/checkout/components/WalletPassModule/index.js +4 -3
  51. package/es/components/checkout/components/WalletPassModule/utils.js +10 -4
  52. package/es/components/checkout/hooks/useWalletPass.js +11 -4
  53. package/es/components/checkout/index.less +1 -1
  54. package/es/components/checkout/locales.d.ts +36 -0
  55. package/es/components/checkout/locales.js +43 -4
  56. package/es/components/checkout/types.d.ts +1 -0
  57. package/es/components/eftposPay/amount.d.ts +1 -1
  58. package/es/components/eftposPay/device.d.ts +1 -1
  59. package/es/components/eftposPay/hooks.d.ts +1 -1
  60. package/es/components/eftposPay/store/index.d.ts +3 -3
  61. package/es/components/pay/toC/model.d.ts +1 -9
  62. package/es/components/schedules/model.d.ts +1 -9
  63. package/es/components/shoppingCart/components/Cart/Product.js +143 -71
  64. package/es/components/shoppingCart/components/Cart/index.js +1 -1
  65. package/es/components/shoppingCart/components/Cart/index.less +31 -0
  66. package/es/components/shoppingCart/locales.d.ts +3 -0
  67. package/es/components/shoppingCart/locales.js +12 -3
  68. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  69. package/es/components/ticketBooking/components/addServiceVariant/addService.js +9 -12
  70. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  71. package/es/components/ticketBooking/components/menuBar/index.js +3 -1
  72. package/es/components/ticketBooking/components/menuBar/index.less +7 -0
  73. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  74. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  75. package/es/components/ticketBooking/index.d.ts +0 -1
  76. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  77. package/es/components/ticketBooking/utils/index.js +2 -1
  78. package/es/components/wallet/Detail/model.d.ts +1 -13
  79. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  80. package/es/components/wallet/PointCard/model.d.ts +1 -13
  81. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  82. package/es/components/wallet/Voucher/model.d.ts +1 -13
  83. package/es/components/wallet/model.d.ts +1 -9
  84. package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
  85. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  86. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
  87. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
  88. package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  89. package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
  90. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  91. package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
  92. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +5 -0
  93. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +331 -0
  94. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
  95. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
  96. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +12 -0
  97. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
  98. package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
  99. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  100. package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
  101. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
  102. package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
  103. package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
  104. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +465 -0
  105. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
  106. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  107. package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
  108. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  109. package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
  110. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +12 -0
  111. package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
  112. package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
  113. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  114. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
  115. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  116. package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
  117. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
  118. package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
  119. package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
  120. package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  121. package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
  122. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +28 -0
  123. package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
  124. package/es/pro/priceKeyboard/index.d.ts +3 -0
  125. package/es/pro/priceKeyboard/index.js +3 -0
  126. package/es/pro/priceKeyboard/index.less +215 -0
  127. package/es/pro/priceKeyboard/utils.d.ts +31 -0
  128. package/es/pro/priceKeyboard/utils.js +51 -0
  129. package/es/pro/skuDetailModal/index.js +19 -16
  130. package/lib/components/booking/addons/model.d.ts +1 -10
  131. package/lib/components/booking/components/actionButtons/index.js +31 -28
  132. package/lib/components/booking/components/actionButtons/index.less +0 -28
  133. package/lib/components/booking/components/footer/amount.d.ts +3 -3
  134. package/lib/components/booking/components/footer/amount.js +49 -34
  135. package/lib/components/booking/components/footer/index.js +114 -40
  136. package/lib/components/booking/components/footer/utils.js +35 -7
  137. package/lib/components/booking/forms/model.d.ts +1 -10
  138. package/lib/components/booking/info/model.d.ts +1 -10
  139. package/lib/components/booking/info/model.js +3 -0
  140. package/lib/components/booking/info/service/addService/index.js +2 -1
  141. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  142. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  143. package/lib/components/booking/info2/index.js +18 -1
  144. package/lib/components/booking/info2/service/addService/index.js +2 -1
  145. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  146. package/lib/components/booking/info2/service/editService/index.js +12 -4
  147. package/lib/components/booking/model.d.ts +1 -9
  148. package/lib/components/booking/notes/model.d.ts +1 -10
  149. package/lib/components/booking/payments/model.d.ts +1 -10
  150. package/lib/components/booking/utils.js +10 -5
  151. package/lib/components/checkout/PaymentModal.d.ts +2 -0
  152. package/lib/components/checkout/PaymentModal.js +208 -91
  153. package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
  154. package/lib/components/checkout/components/AmountSummary/index.js +120 -50
  155. package/lib/components/checkout/components/AmountSummary/index.less +13 -0
  156. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
  157. package/lib/components/checkout/components/CashPaymentModule/index.js +101 -134
  158. package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
  159. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  160. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
  161. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +163 -0
  162. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
  163. package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
  164. package/lib/components/checkout/components/PaymentOptionsModule/index.less +23 -0
  165. package/lib/components/checkout/components/PaymentResultToast/index.js +26 -1
  166. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
  167. package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
  168. package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
  169. package/lib/components/checkout/components/WalletPassModule/index.js +4 -3
  170. package/lib/components/checkout/components/WalletPassModule/utils.js +8 -4
  171. package/lib/components/checkout/hooks/useWalletPass.js +11 -6
  172. package/lib/components/checkout/index.less +1 -1
  173. package/lib/components/checkout/locales.d.ts +36 -0
  174. package/lib/components/checkout/locales.js +43 -4
  175. package/lib/components/checkout/types.d.ts +1 -0
  176. package/lib/components/eftposPay/amount.d.ts +1 -1
  177. package/lib/components/eftposPay/device.d.ts +1 -1
  178. package/lib/components/eftposPay/hooks.d.ts +1 -1
  179. package/lib/components/eftposPay/store/index.d.ts +3 -3
  180. package/lib/components/pay/toC/model.d.ts +1 -9
  181. package/lib/components/schedules/model.d.ts +1 -9
  182. package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
  183. package/lib/components/shoppingCart/components/Cart/index.js +1 -1
  184. package/lib/components/shoppingCart/components/Cart/index.less +31 -0
  185. package/lib/components/shoppingCart/locales.d.ts +3 -0
  186. package/lib/components/shoppingCart/locales.js +6 -3
  187. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  188. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -4
  189. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  190. package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
  191. package/lib/components/ticketBooking/components/menuBar/index.less +7 -0
  192. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  193. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  194. package/lib/components/ticketBooking/index.d.ts +0 -1
  195. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  196. package/lib/components/ticketBooking/utils/index.js +2 -1
  197. package/lib/components/wallet/Detail/model.d.ts +1 -13
  198. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  199. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  200. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  201. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  202. package/lib/components/wallet/model.d.ts +1 -9
  203. package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
  204. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  205. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
  206. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
  207. package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  208. package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
  209. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  210. package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
  211. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +5 -0
  212. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +360 -0
  213. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
  214. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
  215. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +12 -0
  216. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
  217. package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
  218. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  219. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
  220. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
  221. package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
  222. package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
  223. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +504 -0
  224. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
  225. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  226. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
  227. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  228. package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
  229. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +12 -0
  230. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
  231. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
  232. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  233. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
  234. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  235. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
  236. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
  237. package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
  238. package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
  239. package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  240. package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
  241. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +28 -0
  242. package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
  243. package/lib/pro/priceKeyboard/index.d.ts +3 -0
  244. package/lib/pro/priceKeyboard/index.js +45 -0
  245. package/lib/pro/priceKeyboard/index.less +215 -0
  246. package/lib/pro/priceKeyboard/utils.d.ts +31 -0
  247. package/lib/pro/priceKeyboard/utils.js +75 -0
  248. package/lib/pro/skuDetailModal/index.js +18 -22
  249. package/package.json +12 -12
@@ -62,7 +62,7 @@ var import_ahooks = require("ahooks");
62
62
  var import_lodash = require("lodash");
63
63
  var import_hooks = require("../../../appointmentBooking/hooks");
64
64
  var Footer = (props) => {
65
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
65
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
66
66
  const { state, buttons, dispatch, source } = props;
67
67
  const [showDetail, setShowDetail] = (0, import_react.useState)(false);
68
68
  const [loading, setLoading] = (0, import_react.useState)(false);
@@ -71,6 +71,7 @@ var Footer = (props) => {
71
71
  const [isPaymentModalOpen, setIsPaymentModalOpen] = (0, import_react.useState)(false);
72
72
  const [paymentModalData, setPaymentModalData] = (0, import_react.useState)(null);
73
73
  const [paymentCallback, setPaymentCallback] = (0, import_react.useState)(null);
74
+ const [editOrderId, setEditOrderId] = (0, import_react.useState)(0);
74
75
  const [isShowPaymentLink, setIsShowPaymentLink] = (0, import_react.useState)(false);
75
76
  const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
76
77
  const appointmentProductRef = (0, import_react.useRef)(null);
@@ -82,7 +83,8 @@ var Footer = (props) => {
82
83
  store,
83
84
  storage,
84
85
  pisellosAllModule,
85
- getData
86
+ getData,
87
+ pisellos
86
88
  } = (_a = context.appHelper) == null ? void 0 : _a.utils;
87
89
  const { disableAllScanListeners } = (0, import_useScanManager.default)();
88
90
  const { ScheduleModule } = pisellosAllModule;
@@ -123,6 +125,12 @@ var Footer = (props) => {
123
125
  console.error(error);
124
126
  }
125
127
  }, []);
128
+ (0, import_react.useEffect)(() => {
129
+ var _a2, _b2, _c2, _d2, _e2;
130
+ if ((((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length) === 0 || !((_c2 = state.service) == null ? void 0 : _c2.value)) && !((_e2 = (_d2 = state.paymentPaid) == null ? void 0 : _d2.value) == null ? void 0 : _e2.paidAmount)) {
131
+ setEditOrderId(0);
132
+ }
133
+ }, [state.service.value, (_b = state.paymentPaid) == null ? void 0 : _b.value]);
126
134
  const [modal, contextHolder] = import_antd.Modal.useModal();
127
135
  const { setActiveTab } = state;
128
136
  const isTeam = (0, import_react.useMemo)(() => {
@@ -181,21 +189,21 @@ var Footer = (props) => {
181
189
  const params = (0, import_react.useMemo)(() => {
182
190
  var _a2, _b2, _c2;
183
191
  return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.appointment_subject) || {};
184
- }, [(_d = (_c = (_b = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.appointment_subject]);
192
+ }, [(_e = (_d = (_c = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.basic) == null ? void 0 : _e.appointment_subject]);
185
193
  const transaction_habit_selection = (0, import_react.useMemo)(() => {
186
194
  var _a2, _b2, _c2;
187
195
  return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.information_tab) == null ? void 0 : _c2.transaction_habit_selection) || {
188
196
  type: "service_now_pay_later",
189
197
  button_rows: 1
190
198
  };
191
- }, [(_f = (_e = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.information_tab]);
199
+ }, [(_g = (_f = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _f.config) == null ? void 0 : _g.information_tab]);
192
200
  const addonsEdit = (0, import_react.useMemo)(() => {
193
201
  var _a2;
194
202
  if ((_a2 = state.addons) == null ? void 0 : _a2.edit) {
195
203
  return true;
196
204
  }
197
205
  return false;
198
- }, [(_g = state.addons) == null ? void 0 : _g.edit]);
206
+ }, [(_h = state.addons) == null ? void 0 : _h.edit]);
199
207
  const infoEdit = (0, import_react.useMemo)(() => {
200
208
  var _a2, _b2, _c2, _d2, _e2, _f2;
201
209
  if (!state.bookingId) {
@@ -290,7 +298,7 @@ var Footer = (props) => {
290
298
  label: import_utils.locales.getText("pisell2.text.refunded-amount")
291
299
  }
292
300
  ];
293
- }, [total, (_h = state.bookingDetail) == null ? void 0 : _h.surcharge, state.bookingId]);
301
+ }, [total, (_i = state.bookingDetail) == null ? void 0 : _i.surcharge, state.bookingId]);
294
302
  const subTotalList = (0, import_react.useMemo)(() => {
295
303
  return [
296
304
  // 小计
@@ -331,7 +339,7 @@ var Footer = (props) => {
331
339
  label: import_utils.locales.getText("pisell1.text.rounding")
332
340
  }
333
341
  ];
334
- }, [total, (_i = state.bookingDetail) == null ? void 0 : _i.surcharge, state.bookingId]);
342
+ }, [total, (_j = state.bookingDetail) == null ? void 0 : _j.surcharge, state.bookingId]);
335
343
  const isDisabled = (0, import_react.useMemo)(() => {
336
344
  var _a2;
337
345
  const isClient = state.client.value;
@@ -453,7 +461,7 @@ var Footer = (props) => {
453
461
  JSON.stringify(total),
454
462
  JSON.stringify(orderTotalList),
455
463
  JSON.stringify(subTotalList),
456
- (_k = (_j = state.client) == null ? void 0 : _j.value) == null ? void 0 : _k.id
464
+ (_l = (_k = state.client) == null ? void 0 : _k.value) == null ? void 0 : _l.id
457
465
  ]);
458
466
  const handleCheckout = async () => {
459
467
  (0, import_PaymentResultToast.closeAllPaymentResultToasts)();
@@ -551,6 +559,30 @@ var Footer = (props) => {
551
559
  }
552
560
  return _isHasDayProducts;
553
561
  };
562
+ const isOnlyDeposit = (0, import_react.useMemo)(() => {
563
+ var _a2, _b2, _c2, _d2;
564
+ if (((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_payment_time) && ((_d2 = (_c2 = (_b2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _b2.payment_types) == null ? void 0 : _c2.every) == null ? void 0 : _d2.call(
565
+ _c2,
566
+ (item) => item === "deposit"
567
+ ))) {
568
+ return true;
569
+ }
570
+ return false;
571
+ }, [state == null ? void 0 : state.bookingDetail]);
572
+ const arrearsText = (0, import_react.useMemo)(() => {
573
+ let str = "";
574
+ if (isOnlyDeposit) {
575
+ return str;
576
+ }
577
+ if (total.dueAmount < 0) {
578
+ str = `${import_utils.locales.getText("pisell1.text.refund-customer")}: ${(0, import_utils.formatAmount)(
579
+ total.dueAmount,
580
+ 2,
581
+ (state == null ? void 0 : state.amountSymbol) || "$"
582
+ )}`;
583
+ }
584
+ return str;
585
+ }, [state, total, isOnlyDeposit]);
554
586
  const handleSave = async ({
555
587
  type,
556
588
  messageShow = true,
@@ -581,7 +613,36 @@ var Footer = (props) => {
581
613
  if (noSubmit) {
582
614
  return values;
583
615
  }
584
- const api = state.bookingId ? editApi : createApi;
616
+ const checkout = pisellos.getModule("checkout");
617
+ if (editOrderId) {
618
+ const subtotal_info = {
619
+ subTotalList: (0, import_lodash.cloneDeep)(subTotalList),
620
+ orderTotalList: (0, import_lodash.cloneDeep)(orderTotalList),
621
+ total: (0, import_lodash.cloneDeep)(total),
622
+ showDetail
623
+ };
624
+ await checkout.updateLocalOrderAsync({
625
+ orderId: editOrderId,
626
+ orderData: values,
627
+ cartSummary: subtotal_info.subTotalList,
628
+ autoPayment: true,
629
+ totalInfo: subtotal_info
630
+ });
631
+ const res = await checkout.manualSyncOrderAsync();
632
+ if (res.success) {
633
+ state == null ? void 0 : state.callback(res, type);
634
+ _setLoading(false);
635
+ }
636
+ return;
637
+ }
638
+ if (type === "save") {
639
+ const isNeedDeposit = checkout.checkIsNeedDepositAsync(values.bookings, values.relation_products);
640
+ if (isNeedDeposit == null ? void 0 : isNeedDeposit.hasDeposit) {
641
+ values.is_deposit = 1;
642
+ values.deposit_amount = isNeedDeposit == null ? void 0 : isNeedDeposit.total;
643
+ }
644
+ }
645
+ let api = state.bookingId ? editApi : createApi;
585
646
  (0, import_utils4.sendWarningLog)({
586
647
  title: "saveBooking",
587
648
  content: [
@@ -593,7 +654,7 @@ var Footer = (props) => {
593
654
  await handleSaveAddons();
594
655
  }
595
656
  if (infoEdit) {
596
- callbackData = await api(values, state.bookingId);
657
+ callbackData = await api(values, state.bookingId || editOrderId);
597
658
  if (messageShow) {
598
659
  import_antd.message.success(
599
660
  import_utils.locales.getText(
@@ -684,12 +745,12 @@ var Footer = (props) => {
684
745
  onClick: () => {
685
746
  handleCheckout();
686
747
  },
687
- disabled: isDisabled || isDisabledCheckOutForNegativeOrder
748
+ disabled: isDisabled || isDisabledCheckOutForNegativeOrder || arrearsText !== ""
688
749
  },
689
750
  import_utils.locales.getText("pisell2.text.checkout")
690
751
  )
691
752
  );
692
- }, [isEdit, checkoutLoading, isDisabled, state, source]);
753
+ }, [isEdit, checkoutLoading, isDisabled, state, source, arrearsText]);
693
754
  const handleMenuClick = async (e) => {
694
755
  var _a2, _b2;
695
756
  let id = state.bookingId;
@@ -900,7 +961,7 @@ var Footer = (props) => {
900
961
  var _a2;
901
962
  const note = ((_a2 = state == null ? void 0 : state.notes) == null ? void 0 : _a2.orderNote) || "";
902
963
  return note.trim().length > 0;
903
- }, [(_l = state == null ? void 0 : state.notes) == null ? void 0 : _l.orderNote]);
964
+ }, [(_m = state == null ? void 0 : state.notes) == null ? void 0 : _m.orderNote]);
904
965
  const noteButton = (0, import_react.useMemo)(() => {
905
966
  return /* @__PURE__ */ import_react.default.createElement(
906
967
  import_antd.ConfigProvider,
@@ -1073,18 +1134,8 @@ var Footer = (props) => {
1073
1134
  isShowPaymentLink,
1074
1135
  source,
1075
1136
  _buttons.length,
1076
- (_m = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _m.payment_status
1137
+ (_n = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _n.payment_status
1077
1138
  ]);
1078
- const isOnlyDeposit = (0, import_react.useMemo)(() => {
1079
- var _a2, _b2, _c2, _d2;
1080
- if (((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_payment_time) && ((_d2 = (_c2 = (_b2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _b2.payment_types) == null ? void 0 : _c2.every) == null ? void 0 : _d2.call(
1081
- _c2,
1082
- (item) => item === "deposit"
1083
- ))) {
1084
- return true;
1085
- }
1086
- return false;
1087
- }, [state == null ? void 0 : state.bookingDetail]);
1088
1139
  const totalText = (0, import_react.useMemo)(() => {
1089
1140
  var _a2;
1090
1141
  let str = "";
@@ -1123,20 +1174,6 @@ var Footer = (props) => {
1123
1174
  }
1124
1175
  return str;
1125
1176
  }, [state, total, state.bookingId, isOnlyDeposit]);
1126
- const arrearsText = (0, import_react.useMemo)(() => {
1127
- let str = "";
1128
- if (isOnlyDeposit) {
1129
- return str;
1130
- }
1131
- if (total.dueAmount < 0) {
1132
- str = `${import_utils.locales.getText("pisell1.text.refund-customer")}: ${(0, import_utils.formatAmount)(
1133
- total.dueAmount,
1134
- 2,
1135
- (state == null ? void 0 : state.amountSymbol) || "$"
1136
- )}`;
1137
- }
1138
- return str;
1139
- }, [state, total, isOnlyDeposit]);
1140
1177
  const showFooter = (0, import_react.useMemo)(() => {
1141
1178
  var _a2;
1142
1179
  if (state.bookingId) {
@@ -1151,7 +1188,7 @@ var Footer = (props) => {
1151
1188
  }, [
1152
1189
  state.bookingId,
1153
1190
  state.bookingDetail,
1154
- (_n = state.addons) == null ? void 0 : _n.load,
1191
+ (_o = state.addons) == null ? void 0 : _o.load,
1155
1192
  state.renderType
1156
1193
  ]);
1157
1194
  const menuChange = (e) => {
@@ -1239,6 +1276,34 @@ var Footer = (props) => {
1239
1276
  }
1240
1277
  });
1241
1278
  (_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
1279
+ setEditOrderId(0);
1280
+ };
1281
+ const setEditCartMode = (order_id2, payData, closeModal = false) => {
1282
+ setEditOrderId(order_id2);
1283
+ if (closeModal) {
1284
+ setIsPaymentModalOpen(false);
1285
+ }
1286
+ dispatch({
1287
+ type: "setService",
1288
+ payload: {
1289
+ value: state.service.value.map((item) => ({ ...item, edit: true, booking_id: "checkout_edit", discount_list: item.discount_list.map((d) => ({ ...d, id: d.discount.resource_id })) }))
1290
+ }
1291
+ });
1292
+ dispatch({
1293
+ type: "setPaymentPaid",
1294
+ payload: {
1295
+ value: {
1296
+ paidAmount: payData.paidAmount,
1297
+ paidAmountWithoutSurcharge: payData.paidAmountWithoutSurcharge
1298
+ }
1299
+ }
1300
+ });
1301
+ shopDiscount.loadPrepareConfig({
1302
+ customerId: state.client.value.id,
1303
+ action: "create",
1304
+ with_good_pass: 1,
1305
+ with_discount_card: 1
1306
+ });
1242
1307
  };
1243
1308
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
1244
1309
  "span",
@@ -1314,7 +1379,7 @@ var Footer = (props) => {
1314
1379
  {
1315
1380
  open: noteModalOpen,
1316
1381
  title: import_utils.locales.getText("pisell2.text.add-order-notes"),
1317
- value: ((_o = state.notes) == null ? void 0 : _o.orderNote) || "",
1382
+ value: ((_p = state.notes) == null ? void 0 : _p.orderNote) || "",
1318
1383
  onConfirm: handleNoteConfirm,
1319
1384
  onDelete: handleNoteDelete,
1320
1385
  onCancel: handleNoteCancel
@@ -1323,14 +1388,23 @@ var Footer = (props) => {
1323
1388
  import_PaymentModal.default,
1324
1389
  {
1325
1390
  open: true,
1391
+ editOrderId,
1326
1392
  data: paymentModalData,
1327
1393
  callback: paymentCallback || void 0,
1394
+ setEditCartMode,
1328
1395
  state,
1329
1396
  dispatch,
1330
1397
  onClose: (reset) => {
1331
1398
  setIsPaymentModalOpen(false);
1332
1399
  setPaymentModalData(null);
1333
1400
  setPaymentCallback(null);
1401
+ setEditOrderId(0);
1402
+ dispatch({
1403
+ type: "setPaymentPaid",
1404
+ payload: {
1405
+ value: {}
1406
+ }
1407
+ });
1334
1408
  if (reset) {
1335
1409
  setTimeout(() => {
1336
1410
  handleClearAllAndReset();
@@ -48,6 +48,7 @@ var import_utils4 = require("../../info/service2/utils");
48
48
  var import_utils5 = require("@pisell/utils");
49
49
  var import_materials = require("@pisell/materials");
50
50
  var import_utils6 = require("../../../../plus/clientName/utils");
51
+ var import_lodash = require("lodash");
51
52
  var formatNote = (data) => {
52
53
  var _a;
53
54
  return ((_a = data.notes) == null ? void 0 : _a.orderNote) || "";
@@ -223,7 +224,7 @@ var formatSellingPrice = (item) => {
223
224
  return Number((_a = item._extend) == null ? void 0 : _a.total);
224
225
  };
225
226
  var formatMetaData = (item) => {
226
- var _a, _b, _c, _d, _e;
227
+ var _a, _b, _c, _d, _e, _f, _g;
227
228
  let metadata = {};
228
229
  if ((_a = item._extend) == null ? void 0 : _a.capacity) {
229
230
  metadata.capacity = item._extend.capacity;
@@ -237,6 +238,9 @@ var formatMetaData = (item) => {
237
238
  if ((_d = item._extend) == null ? void 0 : _d.multiDayPrices) {
238
239
  metadata.multiDayPrices = (_e = item._extend) == null ? void 0 : _e.multiDayPrices;
239
240
  }
241
+ if ((_f = item._extend) == null ? void 0 : _f.unique_identification_number) {
242
+ metadata.unique_identification_number = (_g = item._extend) == null ? void 0 : _g.unique_identification_number;
243
+ }
240
244
  return metadata;
241
245
  };
242
246
  var getSourceProductPrice = (item) => {
@@ -258,6 +262,12 @@ var formatProducts = (item, quantity) => {
258
262
  const discount_amount = origin_total - total;
259
263
  const discount_list = (item == null ? void 0 : item.discount_list) || [];
260
264
  const discount_type = discount_amount < 0 ? "change_price" : "discount";
265
+ discount_list.forEach((d) => {
266
+ d.metadata = {
267
+ ...d.metadata,
268
+ unique_identification_number: `${item._extend.unique_identification_number}_${d.discount.resource_id}`
269
+ };
270
+ });
261
271
  const notManualDiscount = discount_list.filter((item2) => item2.type !== "product");
262
272
  if (item.isCustomItem) {
263
273
  item.product_id = 0;
@@ -285,7 +295,8 @@ var formatProducts = (item, quantity) => {
285
295
  // checkout 需求新增字段
286
296
  "calculated_original_price": formatOriginalPrice(item),
287
297
  "calculated_selling_price": formatSellingPrice(item),
288
- "tax_fee": item._extend.tax_fee
298
+ "tax_fee": item._extend.tax_fee,
299
+ "custom_deposit_data": item.custom_deposit_data
289
300
  };
290
301
  };
291
302
  var formatAppointmentProductLists = (data) => {
@@ -337,7 +348,7 @@ var formatBookings = (data, values) => {
337
348
  const eventOtherParams = data.eventOtherParams;
338
349
  let bookings = [];
339
350
  list.forEach((item) => {
340
- var _a, _b, _c, _d;
351
+ var _a, _b, _c, _d, _e;
341
352
  if (item.isCustomItem) {
342
353
  bookings.push({
343
354
  ...item._extend,
@@ -366,8 +377,13 @@ var formatBookings = (data, values) => {
366
377
  dayParams.holder = formatHolders(data, item, values);
367
378
  dayParams.duration = (0, import_utils3.getDays)({ _extend: { start_date: startDateTime, end_date: endDateTime } }, "minutes");
368
379
  }
380
+ if (!((_e = item._extend) == null ? void 0 : _e.unique_identification_number)) {
381
+ const unique_identification_number = (0, import_utils5.getUniqueId)();
382
+ item._extend.unique_identification_number = unique_identification_number;
383
+ }
369
384
  const booking = {
370
385
  "product": formatProducts(item),
386
+ "metadata": formatMetaData(item),
371
387
  "relation_products": formatRelationDetails(item._extend.relation_details),
372
388
  "id": item.booking_id || 0,
373
389
  "relation_id": item._extend.relation_id || 0,
@@ -384,7 +400,6 @@ var formatBookings = (data, values) => {
384
400
  "duration": isDay ? 0 : import_utils.flexibleObj.getValue(item._extend.duration),
385
401
  "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }) : item._extend.number || 1,
386
402
  "resources": formatResource(item),
387
- "metadata": formatMetaData(item),
388
403
  "note": item._extend.note,
389
404
  ...eventOtherParams || {},
390
405
  ...dayParams
@@ -394,11 +409,14 @@ var formatBookings = (data, values) => {
394
409
  return;
395
410
  }
396
411
  for (let i = 0; i < (item._extend.quantity || 1); i++) {
412
+ const newItem = (0, import_lodash.cloneDeep)(item);
413
+ newItem._extend.unique_identification_number = `${item._extend.unique_identification_number}_${i}`;
397
414
  bookings.push({
398
415
  ...booking,
399
- "product": formatProducts(item, 1),
400
- "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }, false) : item._extend.number || 1,
401
- "holder": getHolderByIndex(booking.holder, i)
416
+ "product": formatProducts(newItem, 1),
417
+ "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: newItem }, false) : newItem._extend.number || 1,
418
+ "holder": getHolderByIndex(booking.holder, i),
419
+ "metadata": formatMetaData(newItem)
402
420
  });
403
421
  }
404
422
  });
@@ -418,6 +436,11 @@ var formatRelationProducts = (data, type) => {
418
436
  );
419
437
  let relationProducts = [];
420
438
  relationProducts = list.map((item) => {
439
+ var _a2;
440
+ if (!((_a2 = item._extend) == null ? void 0 : _a2.unique_identification_number)) {
441
+ const unique_identification_number = (0, import_utils5.getUniqueId)();
442
+ item._extend.unique_identification_number = unique_identification_number;
443
+ }
421
444
  return formatProducts(item);
422
445
  });
423
446
  return relationProducts || [];
@@ -428,6 +451,11 @@ var formatNormalProducts = (data) => {
428
451
  list = list.filter((item) => (0, import_utils4.isNormalProductByDurationSchedule)(item));
429
452
  let relationProducts = [];
430
453
  relationProducts = list.map((item) => {
454
+ var _a2;
455
+ if (!((_a2 = item._extend) == null ? void 0 : _a2.unique_identification_number)) {
456
+ const unique_identification_number = (0, import_utils5.getUniqueId)();
457
+ item._extend.unique_identification_number = unique_identification_number;
458
+ }
431
459
  return formatProducts(item);
432
460
  });
433
461
  return relationProducts || [];
@@ -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,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;
@@ -47,6 +47,9 @@ var { Provider, Context } = (0, import_utils.miniRedux)({
47
47
  service: { ...state.service, ...payload, ...obj }
48
48
  });
49
49
  },
50
+ setPaymentPaid(state, payload) {
51
+ state.setGlobalState({ paymentPaid: { ...state.paymentPaid, ...payload } });
52
+ },
50
53
  setDate(state, payload) {
51
54
  state.setGlobalState({ date: { ...state.date, ...payload } });
52
55
  },
@@ -127,7 +127,8 @@ var Info = (props) => {
127
127
  let product = list[0];
128
128
  const detail = await (0, import_serve.getProductDetail)(product.id, {
129
129
  schedule_date: state.date.value.format("YYYY-MM-DD"),
130
- customer_id: customerId
130
+ customer_id: customerId,
131
+ open_deposit: 1
131
132
  });
132
133
  const isBundleOrCombination = (0, import_utils4.getIsBundleOrCombination)(detail.data);
133
134
  setLoading(false);
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -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>;
@@ -96,6 +96,7 @@ var Info = (0, import_model.Provider)((props) => {
96
96
  });
97
97
  }
98
98
  }, []);
99
+ const Toast = (0, import_materials.useToast)();
99
100
  (0, import_react.useMemo)(() => {
100
101
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m;
101
102
  const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
@@ -110,6 +111,22 @@ var Info = (0, import_model.Provider)((props) => {
110
111
  }
111
112
  });
112
113
  }, [globalState]);
114
+ const dropdownProps = (0, import_react.useMemo)(() => {
115
+ const icon = /* @__PURE__ */ import_react.default.createElement(
116
+ import_materials.Iconfont,
117
+ {
118
+ type: "pisell2-switch-horizontal-01",
119
+ size: 24,
120
+ style: { color: "#667085" }
121
+ }
122
+ );
123
+ return {
124
+ buttonProps: {
125
+ icon,
126
+ size: "default"
127
+ }
128
+ };
129
+ }, [modal.state]);
113
130
  const addNote = (e) => {
114
131
  modal.dispatch({
115
132
  type: "setNotes",
@@ -281,7 +298,7 @@ var Info = (0, import_model.Provider)((props) => {
281
298
  dispatch: modal.dispatch,
282
299
  source: "info"
283
300
  },
284
- /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info-client-line" }, modules.client ? (globalState == null ? void 0 : globalState.isBookingTicket2) ? /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, overflow: "hidden" } }, /* @__PURE__ */ import_react.default.createElement(import_cartClientCard.default, null)) : /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, (globalState == null ? void 0 : globalState.isBookingTicket2) ? /* @__PURE__ */ import_react.default.createElement(
301
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info-client-line" }, modules.client ? (globalState == null ? void 0 : globalState.isBookingTicket2) ? /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, overflow: "hidden" } }, /* @__PURE__ */ import_react.default.createElement(import_cartClientCard.default, { clientCardProps: { dropdown: dropdownProps } })) : /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, (globalState == null ? void 0 : globalState.isBookingTicket2) ? /* @__PURE__ */ import_react.default.createElement(
285
302
  "div",
286
303
  {
287
304
  className: "booking-info-client-line-code",
@@ -98,7 +98,8 @@ var Info = (props) => {
98
98
  setLoading(true);
99
99
  let product = list[0];
100
100
  const detail = await (0, import_serve.getProductDetail)(product.id, {
101
- schedule_date: state.date.value.format("YYYY-MM-DD")
101
+ schedule_date: state.date.value.format("YYYY-MM-DD"),
102
+ open_deposit: 1
102
103
  });
103
104
  const isBundleOrCombination = (0, import_utils.getIsBundleOrCombination)(detail.data);
104
105
  setLoading(false);
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -54,6 +54,7 @@ var import_utils6 = require("../../../utils");
54
54
  var import_utilsByBooking = require("../../utilsByBooking");
55
55
  var import_utils7 = require("../addService/utils");
56
56
  var import_noteModal = __toESM(require("../../../../../plus/noteModal"));
57
+ var import_priceKeyboard = require("../../../../../pro/priceKeyboard");
57
58
  var submitLock = false;
58
59
  var Info = (_, ref) => {
59
60
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
@@ -527,7 +528,7 @@ var Info = (_, ref) => {
527
528
  )
528
529
  },
529
530
  /* @__PURE__ */ import_react.default.createElement(
530
- import_materials.PisellAdjustPriceInputNumber,
531
+ import_priceKeyboard.DiscountKeyboard.InputNumber,
531
532
  {
532
533
  style: { width: "100%" },
533
534
  min: 0,
@@ -535,8 +536,15 @@ var Info = (_, ref) => {
535
536
  prefix: state.amountSymbol,
536
537
  onChange: handleTotalChange,
537
538
  disabled: state.channelDisabledEdit,
538
- originValue: ((_f2 = (_e2 = state.service.cacheItem) == null ? void 0 : _e2._extend) == null ? void 0 : _f2.origin_total) || 0,
539
- placeholder: ((_h2 = (_g2 = state.service.cacheItem) == null ? void 0 : _g2._extend) == null ? void 0 : _h2.origin_total) || "0"
539
+ originalValue: ((_f2 = (_e2 = state.service.cacheItem) == null ? void 0 : _e2._extend) == null ? void 0 : _f2.origin_total) || 0,
540
+ placeholder: ((_h2 = (_g2 = state.service.cacheItem) == null ? void 0 : _g2._extend) == null ? void 0 : _h2.origin_total) || "0",
541
+ size: "large",
542
+ keyboardProps: {
543
+ containerProps: {
544
+ renderType: "modal"
545
+ },
546
+ selectType: "dark"
547
+ }
540
548
  }
541
549
  )
542
550
  ));
@@ -676,7 +684,7 @@ var Info = (_, ref) => {
676
684
  style: { height: "48px", width: "140px" }
677
685
  },
678
686
  import_utils.locales.getText("pisell2.ticket-booking.note"),
679
- useNote && /* @__PURE__ */ import_react.default.createElement("span", { className: "note-indicator" }, /* @__PURE__ */ import_react.default.createElement(Iconfont, { type: "pisell2-info-circle2" }))
687
+ useNote && /* @__PURE__ */ import_react.default.createElement("span", { className: "note-indicator" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-info-circle2" }))
680
688
  )
681
689
  )),
682
690
  /* @__PURE__ */ import_react.default.createElement(
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -106,11 +105,4 @@ export declare const walkInData: {
106
105
  id: number;
107
106
  nickname: string;
108
107
  };
109
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
- state: FormState;
111
- } & {
112
- dispatch: (params: {
113
- type: string;
114
- payload: any;
115
- }) => void;
116
- }>;
108
+ 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;