@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
@@ -23,7 +23,9 @@ declare const _default: {
23
23
  'balance.due': string;
24
24
  'deposit.due': string;
25
25
  'partial.paid': string;
26
+ 'deposit.partial.paid': string;
26
27
  'split.payment': string;
28
+ 'split.cancel': string;
27
29
  cash: string;
28
30
  rounding: string;
29
31
  'cash.payment': string;
@@ -78,6 +80,7 @@ declare const _default: {
78
80
  'wallet-pass-module-disabled-modal-title': string;
79
81
  'wallet-pass-module-disabled-modal-empty': string;
80
82
  'wallet-pass-module-discount-partially-paid': string;
83
+ 'wallet-pass-module-discount-order-free': string;
81
84
  'additional.options': string;
82
85
  'add.tip': string;
83
86
  'service.charge': string;
@@ -153,6 +156,15 @@ declare const _default: {
153
156
  'pisell2.checkout.sync-retry-hint': string;
154
157
  'pisell2.checkout.tips': string;
155
158
  retry: string;
159
+ 'cash-payment-title': string;
160
+ 'cash-payment-balance-due': string;
161
+ 'cash-payment-cash-received': string;
162
+ 'cash-payment-change-due': string;
163
+ 'cash-payment-rounding': string;
164
+ 'cash-payment-other': string;
165
+ 'cash-payment-reset': string;
166
+ 'cash-payment-pay': string;
167
+ 'cash-payment-amount-cannot-be-zero': string;
156
168
  };
157
169
  'zh-CN': {
158
170
  'order.total': string;
@@ -178,7 +190,9 @@ declare const _default: {
178
190
  'balance.due': string;
179
191
  'deposit.due': string;
180
192
  'partial.paid': string;
193
+ 'deposit.partial.paid': string;
181
194
  'split.payment': string;
195
+ 'split.cancel': string;
182
196
  cash: string;
183
197
  rounding: string;
184
198
  'cash.payment': string;
@@ -233,6 +247,7 @@ declare const _default: {
233
247
  'wallet-pass-module-disabled-modal-title': string;
234
248
  'wallet-pass-module-disabled-modal-empty': string;
235
249
  'wallet-pass-module-discount-partially-paid': string;
250
+ 'wallet-pass-module-discount-order-free': string;
236
251
  'additional.options': string;
237
252
  'add.tip': string;
238
253
  'service.charge': string;
@@ -308,6 +323,15 @@ declare const _default: {
308
323
  'pisell2.checkout.sync-retry-hint': string;
309
324
  'pisell2.checkout.tips': string;
310
325
  retry: string;
326
+ 'cash-payment-title': string;
327
+ 'cash-payment-balance-due': string;
328
+ 'cash-payment-cash-received': string;
329
+ 'cash-payment-change-due': string;
330
+ 'cash-payment-rounding': string;
331
+ 'cash-payment-other': string;
332
+ 'cash-payment-reset': string;
333
+ 'cash-payment-pay': string;
334
+ 'cash-payment-amount-cannot-be-zero': string;
311
335
  };
312
336
  'zh-HK': {
313
337
  'order.total': string;
@@ -333,7 +357,9 @@ declare const _default: {
333
357
  'balance.due': string;
334
358
  'deposit.due': string;
335
359
  'partial.paid': string;
360
+ 'deposit.partial.paid': string;
336
361
  'split.payment': string;
362
+ 'split.cancel': string;
337
363
  cash: string;
338
364
  rounding: string;
339
365
  'cash.payment': string;
@@ -394,6 +420,7 @@ declare const _default: {
394
420
  'wallet-pass-module-disabled-modal-title': string;
395
421
  'wallet-pass-module-disabled-modal-empty': string;
396
422
  'wallet-pass-module-discount-partially-paid': string;
423
+ 'wallet-pass-module-discount-order-free': string;
397
424
  'pisell2.checkout.search-section.placeholder': string;
398
425
  'pisell2.checkout.discount.percentage.off': (value: string) => string;
399
426
  'pisell2.checkout.discount.fixed_amount': string;
@@ -463,6 +490,15 @@ declare const _default: {
463
490
  'pisell2.checkout.sync-retry-hint': string;
464
491
  'pisell2.checkout.tips': string;
465
492
  retry: string;
493
+ 'cash-payment-title': string;
494
+ 'cash-payment-balance-due': string;
495
+ 'cash-payment-cash-received': string;
496
+ 'cash-payment-change-due': string;
497
+ 'cash-payment-rounding': string;
498
+ 'cash-payment-other': string;
499
+ 'cash-payment-reset': string;
500
+ 'cash-payment-pay': string;
501
+ 'cash-payment-amount-cannot-be-zero': string;
466
502
  };
467
503
  };
468
504
  export default _default;
@@ -51,7 +51,9 @@ var locales_default = {
51
51
  "balance.due": "Balance Due",
52
52
  "deposit.due": "Deposit Due",
53
53
  "partial.paid": "Partial Paid",
54
+ "deposit.partial.paid": "Deposit Paid",
54
55
  "split.payment": "Pay\nPartially",
56
+ "split.cancel": "Cancel\nPartial",
55
57
  // Cash Payment
56
58
  "cash": "Cash",
57
59
  "rounding": "Rounding",
@@ -99,7 +101,7 @@ var locales_default = {
99
101
  "wallet-pass-module-applied": (count) => `${count} Applied`,
100
102
  "wallet-pass-module-expired": (count) => `${count} Expired`,
101
103
  "wallet-pass-module-best-saving": "Select Best",
102
- "wallet-pass-module-clear-all": "Clear All",
104
+ "wallet-pass-module-clear-all": "Clear Selection",
103
105
  "wallet-pass-module-expired-modal-title": (count) => `${count} Expired Vouchers`,
104
106
  "wallet-pass-module-expired-modal-empty": "No expired cards or coupons",
105
107
  "wallet-pass-module-expired-modal-close": "Close",
@@ -114,6 +116,7 @@ var locales_default = {
114
116
  "wallet-pass-module-disabled-modal-title": "Unable to use",
115
117
  "wallet-pass-module-disabled-modal-empty": "No unusable cards",
116
118
  "wallet-pass-module-discount-partially-paid": "Promotion cannot be changed on partially paid orders or used wallet",
119
+ "wallet-pass-module-discount-order-free": "The order total is free, can not use wallet",
117
120
  // Additional Module
118
121
  "additional.options": "Additional Options",
119
122
  "add.tip": "Add Tip",
@@ -208,7 +211,17 @@ var locales_default = {
208
211
  "pisell2.checkout.order-sync-failed": "Order sync failed, please check your network",
209
212
  "pisell2.checkout.sync-retry-hint": "Network error, please click the retry button to resync the order",
210
213
  "pisell2.checkout.tips": "Tips",
211
- "retry": "Retry"
214
+ "retry": "Retry",
215
+ // Cash Payment Module
216
+ "cash-payment-title": "Cash Payment",
217
+ "cash-payment-balance-due": "Balance Due",
218
+ "cash-payment-cash-received": "Cash Received",
219
+ "cash-payment-change-due": "Change Due",
220
+ "cash-payment-rounding": "Rounding",
221
+ "cash-payment-other": "Other",
222
+ "cash-payment-reset": "Reset",
223
+ "cash-payment-pay": "Pay",
224
+ "cash-payment-amount-cannot-be-zero": "The amount cannot be 0"
212
225
  },
213
226
  "zh-CN": {
214
227
  // Order and Payment
@@ -238,7 +251,9 @@ var locales_default = {
238
251
  "balance.due": "应付金额",
239
252
  "deposit.due": "定金待支付金额",
240
253
  "partial.paid": "部分支付",
254
+ "deposit.partial.paid": "定金部分支付",
241
255
  "split.payment": "部分付款",
256
+ "split.cancel": "取消\n部分支付",
242
257
  // Cash Payment
243
258
  "cash": "现金",
244
259
  "rounding": "舍入",
@@ -301,6 +316,7 @@ var locales_default = {
301
316
  "wallet-pass-module-disabled-modal-title": "无法使用的卡券",
302
317
  "wallet-pass-module-disabled-modal-empty": "暂无不可用卡券",
303
318
  "wallet-pass-module-discount-partially-paid": "部分付款或已使用钱包的订单不可修改促销",
319
+ "wallet-pass-module-discount-order-free": "订单金额为0,不可使用折扣卡或商品券",
304
320
  // Additional Module
305
321
  "additional.options": "附加选项",
306
322
  "add.tip": "添加小费",
@@ -399,7 +415,17 @@ var locales_default = {
399
415
  "pisell2.checkout.order-sync-failed": "订单同步失败,请检查网络",
400
416
  "pisell2.checkout.sync-retry-hint": "网络异常,请点击重试按钮重新同步订单",
401
417
  "pisell2.checkout.tips": "提示",
402
- "retry": "重试"
418
+ "retry": "重试",
419
+ // 现金支付模块
420
+ "cash-payment-title": "现金支付",
421
+ "cash-payment-balance-due": "应付金额",
422
+ "cash-payment-cash-received": "实收金额",
423
+ "cash-payment-change-due": "找零金额",
424
+ "cash-payment-rounding": "抹零",
425
+ "cash-payment-other": "其他",
426
+ "cash-payment-reset": "重置",
427
+ "cash-payment-pay": "支付",
428
+ "cash-payment-amount-cannot-be-zero": "金额不能为0"
403
429
  },
404
430
  "zh-HK": {
405
431
  // Order and Payment
@@ -429,7 +455,9 @@ var locales_default = {
429
455
  "balance.due": "應付金額",
430
456
  "deposit.due": "定金待支付金額",
431
457
  "partial.paid": "部分支付",
458
+ "deposit.partial.paid": "定金部分支付",
432
459
  "split.payment": "部分付款",
460
+ "split.cancel": "取消\n部分支付",
433
461
  // Cash Payment
434
462
  "cash": "現金",
435
463
  "rounding": "捨入",
@@ -499,6 +527,7 @@ var locales_default = {
499
527
  "wallet-pass-module-disabled-modal-title": "無法使用的卡券",
500
528
  "wallet-pass-module-disabled-modal-empty": "暫無不可用卡券",
501
529
  "wallet-pass-module-discount-partially-paid": "部分付款或已使用錢包的訂單不可修改促銷",
530
+ "wallet-pass-module-discount-order-free": "訂單金額為0,不可使用折扣卡或商品券",
502
531
  // search section
503
532
  "pisell2.checkout.search-section.placeholder": "錢包碼 / 短碼",
504
533
  // discount formatting
@@ -590,6 +619,16 @@ var locales_default = {
590
619
  "pisell2.checkout.order-sync-failed": "訂單同步失敗,請檢查網絡",
591
620
  "pisell2.checkout.sync-retry-hint": "網絡異常,請點擊重試按鈕重新同步訂單",
592
621
  "pisell2.checkout.tips": "提示",
593
- "retry": "重試"
622
+ "retry": "重試",
623
+ // 現金支付模組
624
+ "cash-payment-title": "現金支付",
625
+ "cash-payment-balance-due": "應付金額",
626
+ "cash-payment-cash-received": "實收金額",
627
+ "cash-payment-change-due": "找零金額",
628
+ "cash-payment-rounding": "抹零",
629
+ "cash-payment-other": "其他",
630
+ "cash-payment-reset": "重置",
631
+ "cash-payment-pay": "支付",
632
+ "cash-payment-amount-cannot-be-zero": "金額不能為0"
594
633
  }
595
634
  };
@@ -121,6 +121,7 @@ export interface PaymentMethod {
121
121
  type: string;
122
122
  fixed?: number;
123
123
  percentage?: number;
124
+ totalAmount?: string;
124
125
  }
125
126
  export interface PaymentMethodSelection {
126
127
  method: PaymentMethod;
@@ -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;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
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,7 +15,7 @@ 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<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "fail" | "warn" | "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>;
@@ -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: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "fail" | "warn" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,7 +295,7 @@ 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?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | 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?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "fail" | "warn" | "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
  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 { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -40,6 +40,9 @@ var import_useAddService = __toESM(require("../../hooks/useAddService"));
40
40
  var import_ahooks = require("ahooks");
41
41
  var import_utils = require("../../../booking/info/service2/utils");
42
42
  var import_pisellNumberSelector = __toESM(require("../../../../pro/pisellNumberSelector"));
43
+ var import_utils2 = require("@pisell/utils");
44
+ var import_utils3 = require("@pisell/utils");
45
+ var import_decimal = __toESM(require("decimal.js"));
43
46
  var Product = (props) => {
44
47
  const { id, lists, isAdd = true } = props;
45
48
  const { state, onAction, onChange } = (0, import_useContext.useContext)();
@@ -58,12 +61,17 @@ var Product = (props) => {
58
61
  productCardStyleConfig = {}
59
62
  } = state;
60
63
  const clearCart = (0, import_useClearCart.default)(id);
64
+ const [isEditExpanded, setIsEditExpanded] = (0, import_react.useState)(true);
61
65
  const handleChange = (0, import_ahooks.useMemoizedFn)(
62
66
  (item, type, other) => {
63
67
  if (disabledEdit && !(other == null ? void 0 : other.disabled)) return;
64
68
  onChange(item, type, other);
65
69
  }
66
70
  );
71
+ const toggleEditExpanded = (0, import_ahooks.useMemoizedFn)((e) => {
72
+ e == null ? void 0 : e.preventDefault();
73
+ setIsEditExpanded(!isEditExpanded);
74
+ });
67
75
  const productParams = (0, import_react.useMemo)(() => {
68
76
  return {
69
77
  isShowNote,
@@ -98,59 +106,111 @@ var Product = (props) => {
98
106
  };
99
107
  }
100
108
  );
101
- return (0, import_react.useMemo)(() => {
102
- console.log("render cart");
103
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
104
- let Comp = import_materials.ProductCard;
105
- let isRetail;
106
- if (state.scenario === "booking2") {
107
- isRetail = (0, import_utils.isNormalProductByDurationSchedule)(item == null ? void 0 : item._origin);
108
- Comp = import_materials.ProductCard.V2;
109
- }
110
- return /* @__PURE__ */ import_react.default.createElement(
111
- Comp,
112
- {
113
- type: isRetail ? "a2" : "a5",
114
- rightActions: [
115
- {
116
- key: "update_number",
117
- text: /* @__PURE__ */ import_react.default.createElement(
118
- import_pisellNumberSelector.default,
119
- {
120
- enablePriceAdjust: true,
121
- min: 1,
122
- className: "pisell-sku-card__pisell-number-setter",
123
- value: item == null ? void 0 : item.num,
124
- onChange: (value) => {
125
- if (value < 1) {
126
- handleChange(item, "num", { num: 1 });
127
- } else {
128
- handleChange(item, "num", { num: value });
129
- }
109
+ const editItems = (0, import_react.useMemo)(
110
+ () => (lists || []).filter((item) => {
111
+ var _a;
112
+ return (_a = item == null ? void 0 : item._origin) == null ? void 0 : _a.edit;
113
+ }),
114
+ [lists]
115
+ );
116
+ const normalItems = (0, import_react.useMemo)(
117
+ () => (lists || []).filter((item) => {
118
+ var _a;
119
+ return !((_a = item == null ? void 0 : item._origin) == null ? void 0 : _a.edit);
120
+ }),
121
+ [lists]
122
+ );
123
+ const editTotal = (0, import_react.useMemo)(() => {
124
+ const total = editItems.reduce((total2, item) => {
125
+ const itemTotal = new import_decimal.default((item == null ? void 0 : item.total) || 0).mul(item.num);
126
+ return total2.add(itemTotal);
127
+ }, new import_decimal.default(0));
128
+ return (0, import_utils2.formatAmount)(total.toNumber(), 2, (state == null ? void 0 : state.amountSymbol) || "$");
129
+ }, [editItems]);
130
+ const renderProductItem = (0, import_ahooks.useMemoizedFn)((item) => {
131
+ let Comp = import_materials.ProductCard;
132
+ let isRetail;
133
+ if (state.scenario === "booking2") {
134
+ isRetail = (0, import_utils.isNormalProductByDurationSchedule)(item == null ? void 0 : item._origin);
135
+ Comp = import_materials.ProductCard.V2;
136
+ }
137
+ return /* @__PURE__ */ import_react.default.createElement(
138
+ Comp,
139
+ {
140
+ type: isRetail ? "a2" : "a5",
141
+ rightActions: [
142
+ {
143
+ key: "update_number",
144
+ text: /* @__PURE__ */ import_react.default.createElement(
145
+ import_pisellNumberSelector.default,
146
+ {
147
+ enablePriceAdjust: true,
148
+ min: 1,
149
+ className: "pisell-sku-card__pisell-number-setter",
150
+ value: item == null ? void 0 : item.num,
151
+ onChange: (value) => {
152
+ if (value < 1) {
153
+ handleChange(item, "num", { num: 1 });
154
+ } else {
155
+ handleChange(item, "num", { num: value });
130
156
  }
131
157
  }
132
- ),
133
- color: "#667085"
134
- }
135
- ],
136
- escapeDom: ".pisell-number-selector-popover",
137
- key: item._id,
138
- dataSource: item,
139
- onAction: (e) => onAction == null ? void 0 : onAction(e),
140
- onDelete: (e) => handleChange(e, "delete", item),
141
- onNote: (e) => handleChange(e, "note", { note: e.note }),
142
- onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
143
- onEditProduct: (e) => handleChange == null ? void 0 : handleChange(e, "edit_product"),
144
- onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
145
- onChangeResource: (e) => handleChange(item, "change_resource", e),
146
- onChangeHolder: (e) => handleChange(item, "change_holder", e),
147
- onAddHolder: (e) => handleChange(item, "add_holder", e),
148
- ...productParams,
149
- ...getProductCardStyleProps(isRetail ? "retail" : "appointment"),
150
- scenario: state.scenario
158
+ }
159
+ ),
160
+ color: "#667085"
161
+ }
162
+ ],
163
+ escapeDom: ".pisell-number-selector-popover",
164
+ key: item._id,
165
+ dataSource: item,
166
+ onAction: (e) => onAction == null ? void 0 : onAction(e),
167
+ onDelete: (e) => handleChange(e, "delete", item),
168
+ onNote: (e) => handleChange(e, "note", { note: e.note }),
169
+ onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
170
+ onEditProduct: (e) => handleChange == null ? void 0 : handleChange(e, "edit_product"),
171
+ onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
172
+ onChangeResource: (e) => handleChange(item, "change_resource", e),
173
+ onChangeHolder: (e) => handleChange(item, "change_holder", e),
174
+ onAddHolder: (e) => handleChange(item, "add_holder", e),
175
+ ...productParams,
176
+ ...getProductCardStyleProps(isRetail ? "retail" : "appointment"),
177
+ scenario: state.scenario
178
+ }
179
+ );
180
+ });
181
+ return (0, import_react.useMemo)(() => {
182
+ console.log("render cart", lists);
183
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, editItems.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit" }, /* @__PURE__ */ import_react.default.createElement(
184
+ "div",
185
+ {
186
+ className: "pisell-lowcode__shopping-cart-edit-header",
187
+ ...{ onClick: toggleEditExpanded },
188
+ style: { cursor: "pointer" }
189
+ },
190
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit-header-title" }, import_utils3.locales.getText("pisell2.text.shopping-cart.save.items")(editItems.length)),
191
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit-header-summary" }, editTotal),
192
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-edit-header-switch" }, /* @__PURE__ */ import_react.default.createElement(
193
+ import_materials.Iconfont,
194
+ {
195
+ type: "pisell2-chevron-down",
196
+ style: {
197
+ transform: isEditExpanded ? "rotate(180deg)" : "rotate(0deg)",
198
+ transition: "transform 0.3s ease"
199
+ }
200
+ }
201
+ ))
202
+ ), /* @__PURE__ */ import_react.default.createElement(
203
+ "div",
204
+ {
205
+ className: "pisell-lowcode__shopping-cart-edit-content",
206
+ style: {
207
+ maxHeight: isEditExpanded ? "unset" : "0",
208
+ overflow: "hidden",
209
+ transition: "max-height 0.3s ease"
151
210
  }
152
- );
153
- }), !hideAddBtn && platform !== "h5" && isAdd ? (0, import_useAddService.default)(id, "more") : null);
154
- }, [clearCart, lists, productParams, hideAddBtn, isAdd, platform]);
211
+ },
212
+ editItems.map(renderProductItem)
213
+ )), normalItems.map(renderProductItem), !hideAddBtn && platform !== "h5" && isAdd ? (0, import_useAddService.default)(id, "more") : null);
214
+ }, [clearCart, editItems, normalItems, productParams, hideAddBtn, isAdd, platform, isEditExpanded]);
155
215
  };
156
216
  var Product_default = Product;
@@ -67,7 +67,7 @@ var Cart = () => {
67
67
  });
68
68
  }, [carts, platform]);
69
69
  return (0, import_react.useMemo)(() => {
70
- console.log("render cart 22222");
70
+ console.log("render cart 22222", state.prodcuts);
71
71
  return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__shopping-cart") }, isProductList ? /* @__PURE__ */ import_react.default.createElement(import_Product.default, { id: void 0, lists: state == null ? void 0 : state.products }) : /* @__PURE__ */ import_react.default.createElement(
72
72
  import_materials.Collapse,
73
73
  {
@@ -24,6 +24,37 @@
24
24
  margin-bottom: 0;
25
25
  }
26
26
  }
27
+
28
+ .pisell-lowcode__shopping-cart-edit {
29
+ display: flex;
30
+ padding: 6px;
31
+ background: #EAECF0;
32
+ flex-direction: column;
33
+ color: black;
34
+ border-radius: 8px;
35
+ .pisell-lowcode__shopping-cart-edit-header {
36
+ display: flex;
37
+ font-size: 14px;
38
+ font-weight: 600;
39
+ .pisell-lowcode__shopping-cart-edit-header-title {
40
+ flex: 1;
41
+ }
42
+ .pisell-lowcode__shopping-cart-edit-header-summary {
43
+ margin-right: 4px;
44
+ }
45
+ // .pisell-lowcode__shopping-cart-edit-header-switch {
46
+ // font-size: 14px;
47
+ // font-weight: 400;
48
+ // line-height: 20px;
49
+ // }
50
+ }
51
+ .pisell-lowcode__shopping-cart-edit-content {
52
+ margin-top: 6px;
53
+ gap: 8px;
54
+ display: flex;
55
+ flex-direction: column;
56
+ }
57
+ }
27
58
 
28
59
  .pisell-lowcode__shopping-cart-label {
29
60
  color: var(--Base-Black, #000);
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  'pisell2.text.shopping-cart.confirm': string;
9
9
  'pisell2.text.shopping-cart.cancel': string;
10
10
  'pisell2.text.shopping-cart.select.holder.modal.title': string;
11
+ 'pisell2.text.shopping-cart.save.items': (num: number) => string;
11
12
  };
12
13
  'zh-CN': {
13
14
  'pisell2.text.shopping-cart.item': (num: number) => string;
@@ -18,6 +19,7 @@ declare const _default: {
18
19
  'pisell2.text.shopping-cart.confirm': string;
19
20
  'pisell2.text.shopping-cart.cancel': string;
20
21
  'pisell2.text.shopping-cart.select.holder.modal.title': string;
22
+ 'pisell2.text.shopping-cart.save.items': (num: number) => string;
21
23
  };
22
24
  'zh-HK': {
23
25
  'pisell2.text.shopping-cart.item': (num: number) => string;
@@ -28,6 +30,7 @@ declare const _default: {
28
30
  'pisell2.text.shopping-cart.confirm': string;
29
31
  'pisell2.text.shopping-cart.cancel': string;
30
32
  'pisell2.text.shopping-cart.select.holder.modal.title': string;
33
+ 'pisell2.text.shopping-cart.save.items': (num: number) => string;
31
34
  };
32
35
  };
33
36
  export default _default;
@@ -31,7 +31,8 @@ var locales_default = {
31
31
  "pisell2.text.shopping-cart.no.selected": "No items selected",
32
32
  "pisell2.text.shopping-cart.confirm": "Confirm",
33
33
  "pisell2.text.shopping-cart.cancel": "Cancel",
34
- "pisell2.text.shopping-cart.select.holder.modal.title": "Item Assignment"
34
+ "pisell2.text.shopping-cart.select.holder.modal.title": "Item Assignment",
35
+ "pisell2.text.shopping-cart.save.items": (num) => `${num} save ${num > 1 ? "items" : "item"}`
35
36
  },
36
37
  "zh-CN": {
37
38
  "pisell2.text.shopping-cart.item": (num) => `(${num} 项)`,
@@ -41,7 +42,8 @@ var locales_default = {
41
42
  "pisell2.text.shopping-cart.no.selected": "未选择任何项目",
42
43
  "pisell2.text.shopping-cart.confirm": "确定",
43
44
  "pisell2.text.shopping-cart.cancel": "取消",
44
- "pisell2.text.shopping-cart.select.holder.modal.title": "商品分配"
45
+ "pisell2.text.shopping-cart.select.holder.modal.title": "商品分配",
46
+ "pisell2.text.shopping-cart.save.items": (num) => `${num} 个保存商品`
45
47
  },
46
48
  "zh-HK": {
47
49
  "pisell2.text.shopping-cart.item": (num) => `(${num} 項)`,
@@ -51,6 +53,7 @@ var locales_default = {
51
53
  "pisell2.text.shopping-cart.no.selected": "未選擇任何項目",
52
54
  "pisell2.text.shopping-cart.confirm": "確定",
53
55
  "pisell2.text.shopping-cart.cancel": "取消",
54
- "pisell2.text.shopping-cart.select.holder.modal.title": "商品分配"
56
+ "pisell2.text.shopping-cart.select.holder.modal.title": "商品分配",
57
+ "pisell2.text.shopping-cart.save.items": (num) => `${num} 個保存商品`
55
58
  }
56
59
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddServiceProps {
4
3
  onEdit?: any;
@@ -227,9 +227,6 @@ var AddSerivce = (props) => {
227
227
  const callback = async (e, extension_type, detail, notShowToast) => {
228
228
  var _a3, _b3, _c3, _d3, _e2, _f2, _g2;
229
229
  setCurrentProduct(null);
230
- if (lock) {
231
- return;
232
- }
233
230
  lock = true;
234
231
  setTimeout(() => {
235
232
  lock = false;
@@ -281,7 +278,7 @@ var AddSerivce = (props) => {
281
278
  cacheItem.autoClose = false;
282
279
  cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
283
280
  let { list: _list, quantity } = (0, import_utils6.addService)(
284
- [...state.service.value],
281
+ [...stateRef.current.service.value],
285
282
  cacheItem,
286
283
  state
287
284
  );
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;