@pisell/private-materials 6.9.2 → 6.9.4

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 (840) hide show
  1. package/README.md +5 -1
  2. package/build/lowcode/assets-daily.json +11 -11
  3. package/build/lowcode/assets-dev.json +2 -2
  4. package/build/lowcode/assets-prod.json +11 -11
  5. package/build/lowcode/index.js +1 -1
  6. package/build/lowcode/meta.js +2 -2
  7. package/build/lowcode/preview.js +150 -164
  8. package/build/lowcode/render/default/view.css +1 -1
  9. package/build/lowcode/render/default/view.js +11 -11
  10. package/build/lowcode/view.css +1 -1
  11. package/build/lowcode/view.js +11 -11
  12. package/es/components/Sales/Cart/index.js +20 -3
  13. package/es/components/Sales/Cart/utils.d.ts +5 -0
  14. package/es/components/Sales/Cart/utils.js +16 -0
  15. package/es/components/Sales/Summary/utils.js +5 -4
  16. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  20. package/es/components/appointmentBooking/components/Header/index.js +12 -12
  21. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +3 -0
  22. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
  23. package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
  24. package/es/components/appointmentBooking/components/Voucher/index.js +26 -5
  25. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  26. package/es/components/appointmentBooking/hooks.d.ts +1 -1
  27. package/es/components/appointmentBooking/hooks.js +6 -13
  28. package/es/components/appointmentBooking/locales.d.ts +3 -0
  29. package/es/components/appointmentBooking/locales.js +3 -0
  30. package/es/components/appointmentBooking/utils.d.ts +23 -0
  31. package/es/components/appointmentBooking/utils.js +159 -0
  32. package/es/components/booking/addons/index.js +3 -2
  33. package/es/components/booking/addons/model.d.ts +10 -1
  34. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  35. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  36. package/es/components/booking/components/actionButtons/index.js +10 -0
  37. package/es/components/booking/components/customiseItemModal/index.js +4 -7
  38. package/es/components/booking/components/footer/amount.d.ts +1 -0
  39. package/es/components/booking/components/footer/amount.js +358 -165
  40. package/es/components/booking/components/footer/index.js +496 -170
  41. package/es/components/booking/components/footer/utils.d.ts +1 -1
  42. package/es/components/booking/components/footer/utils.js +142 -82
  43. package/es/components/booking/components/voucher/index.js +15 -6
  44. package/es/components/booking/components/voucher/index.less +4 -1
  45. package/es/components/booking/components/voucherModal/index.less +1 -0
  46. package/es/components/booking/dashboard/index.js +78 -92
  47. package/es/components/booking/dashboard/serve.d.ts +1 -0
  48. package/es/components/booking/dashboard/serve.js +22 -0
  49. package/es/components/booking/forms/footer.d.ts +1 -0
  50. package/es/components/booking/forms/model.d.ts +10 -1
  51. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  52. package/es/components/booking/forms/single/index.d.ts +1 -0
  53. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  54. package/es/components/booking/hooks/useQuotation.js +32 -10
  55. package/es/components/booking/info/client/index.js +16 -6
  56. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  57. package/es/components/booking/info/header/index.d.ts +0 -1
  58. package/es/components/booking/info/index.d.ts +0 -1
  59. package/es/components/booking/info/model.d.ts +10 -1
  60. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  61. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  62. package/es/components/booking/info/service2/Group/utils.js +2 -2
  63. package/es/components/booking/info/service2/utils.js +45 -41
  64. package/es/components/booking/info2/cartClientCard/index.js +16 -10
  65. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  66. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  67. package/es/components/booking/info2/service/editNormalService/index.js +21 -18
  68. package/es/components/booking/info2/service/editService/index.js +33 -2
  69. package/es/components/booking/info2/service/editService/utils.js +9 -5
  70. package/es/components/booking/locales.d.ts +3 -0
  71. package/es/components/booking/locales.js +6 -3
  72. package/es/components/booking/model.d.ts +9 -1
  73. package/es/components/booking/notes/model.d.ts +10 -1
  74. package/es/components/booking/payments/model.d.ts +10 -1
  75. package/es/components/booking/utils.d.ts +2 -2
  76. package/es/components/booking/utils.js +4 -4
  77. package/es/components/checkout/PaymentModal.d.ts +1 -0
  78. package/es/components/checkout/PaymentModal.js +172 -65
  79. package/es/components/checkout/components/PaymentDetailModal/index.less +426 -429
  80. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
  81. package/es/components/checkout/components/PaymentOptionsModule/index.js +3 -2
  82. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
  83. package/es/components/checkout/components/PaymentResultToast/index.js +2 -0
  84. package/es/components/checkout/components/WalletPassModule/index.js +1 -0
  85. package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  86. package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
  87. package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
  88. package/es/components/checkout/hooks/useWalletPass.js +324 -198
  89. package/es/components/checkout/index.less +6 -0
  90. package/es/components/checkout/plugin.js +59 -12
  91. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
  92. package/es/components/ecocup/components/AddCustomerModal/index.js +216 -0
  93. package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
  94. package/es/components/ecocup/components/CupActionList/index.d.ts +14 -0
  95. package/es/components/ecocup/components/CupActionList/index.js +91 -0
  96. package/es/components/ecocup/components/CupActionList/index.less +102 -0
  97. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  98. package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
  99. package/es/components/ecocup/components/CupActionModal/index.d.ts +15 -0
  100. package/es/components/ecocup/components/CupActionModal/index.js +92 -0
  101. package/es/components/ecocup/components/CupActionModal/index.less +38 -0
  102. package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
  103. package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
  104. package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
  105. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  106. package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
  107. package/es/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
  108. package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
  109. package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
  110. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  111. package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
  112. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +17 -0
  113. package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
  114. package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
  115. package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
  116. package/es/components/ecocup/components/CustomerCard/index.js +34 -0
  117. package/es/components/ecocup/components/CustomerCard/index.less +50 -0
  118. package/es/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
  119. package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
  120. package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
  121. package/es/components/ecocup/components/PageHeader/index.js +37 -0
  122. package/es/components/ecocup/components/PageHeader/index.less +19 -0
  123. package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
  124. package/es/components/ecocup/components/SearchBar/const.js +16 -0
  125. package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
  126. package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
  127. package/es/components/ecocup/components/SearchBar/index.d.ts +13 -0
  128. package/es/components/ecocup/components/SearchBar/index.js +218 -0
  129. package/es/components/ecocup/components/SearchBar/index.less +88 -0
  130. package/es/components/ecocup/cupList/const.d.ts +133 -0
  131. package/es/components/ecocup/cupList/const.js +306 -0
  132. package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
  133. package/es/components/ecocup/cupList/hooks/index.js +4 -0
  134. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
  135. package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
  136. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  137. package/es/{plus/myTeamLogin/index.js → components/ecocup/cupList/hooks/useCupApi.js} +129 -259
  138. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
  139. package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
  140. package/es/components/ecocup/cupList/index.d.ts +6 -0
  141. package/es/components/ecocup/cupList/index.js +220 -0
  142. package/es/components/ecocup/cupList/index.less +113 -0
  143. package/es/components/ecocup/cupProject/const.d.ts +7 -0
  144. package/es/components/ecocup/cupProject/const.js +27 -0
  145. package/es/components/ecocup/cupProject/index.d.ts +3 -0
  146. package/es/components/ecocup/cupProject/index.js +103 -0
  147. package/es/components/ecocup/cupProject/index.less +41 -0
  148. package/es/components/ecocup/customerList/const.d.ts +44 -0
  149. package/es/components/ecocup/customerList/const.js +67 -0
  150. package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
  151. package/es/components/ecocup/customerList/hooks/index.js +3 -0
  152. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  153. package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
  154. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  155. package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
  156. package/es/components/ecocup/customerList/index.d.ts +7 -0
  157. package/es/components/ecocup/customerList/index.js +127 -0
  158. package/es/components/ecocup/customerList/index.less +15 -0
  159. package/es/components/ecocup/hooks.d.ts +49 -0
  160. package/es/components/ecocup/hooks.js +151 -0
  161. package/es/components/ecocup/locales.d.ts +339 -0
  162. package/es/components/ecocup/locales.js +372 -0
  163. package/es/components/ecocup/types.d.ts +103 -0
  164. package/es/components/ecocup/types.js +36 -0
  165. package/es/components/ecocup/utils/scanListener.d.ts +20 -0
  166. package/es/components/ecocup/utils/scanListener.js +107 -0
  167. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  168. package/es/components/eftposPay/EFTPos.js +15 -6
  169. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  170. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
  171. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  172. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  173. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  174. package/es/components/eftposPay/aggregatePayment/service.js +69 -0
  175. package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  176. package/es/components/eftposPay/aggregatePayment/types.js +65 -0
  177. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  178. package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
  179. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  180. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
  181. package/es/components/eftposPay/app.js +5 -0
  182. package/es/components/eftposPay/component/fail/failCustom.js +16 -12
  183. package/es/components/eftposPay/component/fail/index.js +12 -5
  184. package/es/components/eftposPay/const.d.ts +6 -1
  185. package/es/components/eftposPay/const.js +3 -0
  186. package/es/components/eftposPay/hooks.d.ts +3 -2
  187. package/es/components/eftposPay/hooks.js +12 -0
  188. package/es/components/eftposPay/huifu/Action.d.ts +8 -0
  189. package/es/components/eftposPay/huifu/Action.js +146 -0
  190. package/es/components/eftposPay/huifu/const.d.ts +5 -0
  191. package/es/components/eftposPay/huifu/const.js +70 -0
  192. package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
  193. package/es/components/eftposPay/huifu/hooks.js +184 -0
  194. package/es/components/eftposPay/huifu/index.d.ts +5 -0
  195. package/es/components/eftposPay/huifu/index.js +196 -0
  196. package/es/components/eftposPay/huifu/index.less +180 -0
  197. package/es/components/eftposPay/huifu/types.d.ts +14 -0
  198. package/es/components/eftposPay/huifu/types.js +1 -0
  199. package/es/components/eftposPay/index.js +5 -1
  200. package/es/components/eftposPay/locales.d.ts +36 -0
  201. package/es/components/eftposPay/locales.js +42 -3
  202. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  203. package/es/components/eftposPay/manufacturer.js +5 -0
  204. package/es/components/eftposPay/pay.js +6 -2
  205. package/es/components/eftposPay/store/index.d.ts +12 -5
  206. package/es/components/eftposPay/tyro/index.js +97 -4
  207. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  208. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  209. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  210. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  211. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  212. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  213. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  214. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  215. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  216. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  217. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  218. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  219. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  220. package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  221. package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
  222. package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
  223. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  224. package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
  225. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  226. package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
  227. package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
  228. package/es/components/eventBooking/components/Voucher/index.js +266 -0
  229. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  230. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  231. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  232. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  233. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  234. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  235. package/es/components/kioskSkuDetail/index.d.ts +3 -0
  236. package/es/components/kioskSkuDetail/index.js +268 -173
  237. package/es/components/kioskSkuDetail/index.less +49 -7
  238. package/es/components/kioskSkuDetail/locales.d.ts +6 -0
  239. package/es/components/kioskSkuDetail/locales.js +9 -3
  240. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  241. package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
  242. package/es/components/pay/toB/components/MX51/index.js +2 -1
  243. package/es/components/pay/toB/paymentMethods/index.js +2 -1
  244. package/es/components/pay/toB/types/index.d.ts +9 -0
  245. package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
  246. package/es/components/pay/toC/PaymentList/index.js +54 -5
  247. package/es/components/pay/toC/PaymentList/index.less +58 -1
  248. package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
  249. package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
  250. package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
  251. package/es/components/pay/toC/PaymentList/serve.js +22 -0
  252. package/es/components/pay/toC/PaymentList/utils.d.ts +26 -0
  253. package/es/components/pay/toC/PaymentList/utils.js +188 -6
  254. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
  255. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  256. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +139 -42
  257. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  258. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  259. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  260. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  261. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  262. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  263. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  264. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  265. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
  266. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  267. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  268. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  269. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  270. package/es/components/pay/toC/index.js +68 -28
  271. package/es/components/pay/toC/locales.d.ts +6 -0
  272. package/es/components/pay/toC/locales.js +9 -3
  273. package/es/components/pay/toC/model.d.ts +10 -1
  274. package/es/components/pay/toC/serve.d.ts +18 -0
  275. package/es/components/pay/toC/serve.js +29 -1
  276. package/es/components/pay/toC/utils.d.ts +2 -2
  277. package/es/components/pay/toC/utils.js +4 -0
  278. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  279. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  280. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  281. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  282. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  283. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  284. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  285. package/es/components/productSelect/components/productGroup/index.js +1 -1
  286. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  287. package/es/components/schedules/model.d.ts +9 -1
  288. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  289. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  290. package/es/components/shoppingCart/components/Cart/Product.js +1 -1
  291. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  292. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  293. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  294. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  295. package/es/components/shoppingCart/index.d.ts +1 -0
  296. package/es/components/systemSettings/registry/components/SectionList.js +5 -1
  297. package/es/components/taxSelect/index.d.ts +0 -1
  298. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +5 -8
  299. package/es/components/ticketBooking/components/addServiceVariant/addService.js +142 -63
  300. package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
  301. package/es/components/ticketBooking/components/ticketBooking/index.js +18 -4
  302. package/es/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
  303. package/es/components/ticketBooking/context/OsKeyContext.js +12 -2
  304. package/es/components/ticketBooking/context/index.d.ts +1 -1
  305. package/es/components/ticketBooking/context/index.js +1 -1
  306. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
  307. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +14 -11
  308. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +69 -10
  309. package/es/components/ticketBooking/index.d.ts +1 -0
  310. package/es/components/ticketBooking/index.js +2 -1
  311. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  312. package/es/components/walletList/index.js +7 -2
  313. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  314. package/es/index.d.ts +7 -4
  315. package/es/index.js +7 -4
  316. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  317. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  318. package/es/plus/clinetSearch/index.d.ts +1 -0
  319. package/es/plus/clinetSearch/index.js +27 -5
  320. package/es/plus/clinetSearch/locales.d.ts +3 -0
  321. package/es/plus/clinetSearch/locales.js +6 -3
  322. package/es/plus/clinetSearch/types.d.ts +9 -0
  323. package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
  324. package/es/plus/orderList/components/BatchActionBar.js +861 -0
  325. package/es/plus/orderList/components/FilterList.d.ts +8 -0
  326. package/es/plus/orderList/components/FilterList.js +78 -0
  327. package/es/plus/orderList/components/HandleActions.d.ts +5 -0
  328. package/es/plus/orderList/components/HandleActions.js +24 -0
  329. package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
  330. package/es/plus/orderList/components/QuickFilter.js +14 -0
  331. package/es/plus/orderList/components/Reset.d.ts +7 -0
  332. package/es/plus/orderList/components/Reset.js +23 -0
  333. package/es/plus/orderList/components/Toolbar.d.ts +6 -0
  334. package/es/plus/orderList/components/Toolbar.js +57 -0
  335. package/es/plus/orderList/config.d.ts +152 -0
  336. package/es/plus/orderList/config.js +785 -0
  337. package/es/plus/orderList/index.d.ts +9 -0
  338. package/es/plus/orderList/index.js +128 -0
  339. package/es/plus/orderList/index.less +125 -0
  340. package/es/plus/orderList/locales.d.ts +372 -0
  341. package/es/plus/orderList/locales.js +459 -0
  342. package/es/plus/orderList/serve.d.ts +42 -0
  343. package/es/plus/orderList/serve.js +351 -0
  344. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  345. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  346. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  347. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  348. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  349. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +3 -0
  350. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  351. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  352. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  353. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  354. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  355. package/es/plus/productSelect/ProductCard/index.js +12 -3
  356. package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
  357. package/es/plus/productSelect/ProductList/gridComponents.js +30 -10
  358. package/es/plus/productSelect/index.d.ts +3 -1
  359. package/es/plus/productSelect/index.js +85 -14
  360. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  361. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  362. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  363. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  364. package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
  365. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  366. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
  367. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  368. package/es/plus/skuOptionsSelection/locales.js +3 -0
  369. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +11 -2
  370. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
  371. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
  372. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
  373. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
  374. package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
  375. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  376. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
  377. package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
  378. package/es/plus/walletPassGallery/index.js +2 -2
  379. package/es/plus/walletPassGallery/index.less +1 -1
  380. package/es/plus/walletPassGallery/serve.d.ts +8 -0
  381. package/es/plus/walletPassGallery/serve.js +78 -50
  382. package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
  383. package/es/plus/webPosLogin/WebPosLogin.js +7 -2
  384. package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
  385. package/es/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
  386. package/es/plus/webPosLogin/service.js +2 -1
  387. package/es/pro/Login2.0/AuthModal.js +12 -4
  388. package/es/pro/Login2.0/Login2.js +7 -0
  389. package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
  390. package/es/pro/Login2.0/index.less +15 -3
  391. package/es/pro/Login2.0/steps/CodeInput.js +37 -7
  392. package/es/pro/NumericStepper/index.d.ts +27 -1
  393. package/es/pro/NumericStepper/index.js +84 -68
  394. package/es/pro/NumericStepper/index.less +261 -136
  395. package/es/pro/Selector/Selector.js +17 -10
  396. package/es/pro/Selector/demo.d.ts +1 -0
  397. package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
  398. package/es/pro/Selector/hooks/usePresetProps.js +4 -2
  399. package/es/pro/Selector/types.d.ts +1 -0
  400. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  401. package/es/pro/keyboards/index.d.ts +2 -0
  402. package/es/pro/keyboards/index.js +1 -0
  403. package/es/pro/keyboards/locales.d.ts +24 -0
  404. package/es/pro/keyboards/locales.js +35 -0
  405. package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  406. package/es/pro/keyboards/numberKeyboard/index.js +523 -0
  407. package/es/pro/keyboards/numberKeyboard/index.less +59 -0
  408. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  409. package/es/pro/keyboards/numberKeyboard/types.js +1 -0
  410. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
  411. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
  412. package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
  413. package/es/pro/skuDetailModal/index.js +57 -55
  414. package/es/pro/skuDetailModal/index.less +46 -4
  415. package/es/pro/skuDetailModal/types.d.ts +7 -0
  416. package/lib/components/Sales/Cart/index.js +25 -7
  417. package/lib/components/Sales/Cart/utils.d.ts +5 -0
  418. package/lib/components/Sales/Cart/utils.js +13 -1
  419. package/lib/components/Sales/Summary/utils.js +2 -4
  420. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  421. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  422. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  423. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  424. package/lib/components/appointmentBooking/components/Header/index.js +3 -8
  425. package/lib/components/appointmentBooking/components/Services/index.js +5 -1
  426. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +3 -0
  427. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
  428. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
  429. package/lib/components/appointmentBooking/components/Voucher/index.js +37 -6
  430. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  431. package/lib/components/appointmentBooking/hooks.d.ts +1 -1
  432. package/lib/components/appointmentBooking/hooks.js +6 -11
  433. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  434. package/lib/components/appointmentBooking/locales.js +3 -0
  435. package/lib/components/appointmentBooking/utils.d.ts +23 -0
  436. package/lib/components/appointmentBooking/utils.js +103 -0
  437. package/lib/components/booking/addons/index.js +3 -2
  438. package/lib/components/booking/addons/model.d.ts +10 -1
  439. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  440. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  441. package/lib/components/booking/components/actionButtons/index.js +10 -0
  442. package/lib/components/booking/components/customiseItemModal/index.js +4 -5
  443. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  444. package/lib/components/booking/components/footer/amount.js +122 -25
  445. package/lib/components/booking/components/footer/index.js +243 -5
  446. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  447. package/lib/components/booking/components/footer/utils.js +58 -21
  448. package/lib/components/booking/components/voucher/index.js +18 -4
  449. package/lib/components/booking/components/voucher/index.less +4 -1
  450. package/lib/components/booking/components/voucherModal/index.less +1 -0
  451. package/lib/components/booking/dashboard/index.js +38 -59
  452. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  453. package/lib/components/booking/dashboard/serve.js +8 -2
  454. package/lib/components/booking/forms/footer.d.ts +1 -0
  455. package/lib/components/booking/forms/model.d.ts +10 -1
  456. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  457. package/lib/components/booking/forms/single/index.d.ts +1 -0
  458. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  459. package/lib/components/booking/hooks/useQuotation.js +65 -21
  460. package/lib/components/booking/info/client/index.js +16 -8
  461. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  462. package/lib/components/booking/info/header/index.d.ts +0 -1
  463. package/lib/components/booking/info/index.d.ts +0 -1
  464. package/lib/components/booking/info/model.d.ts +10 -1
  465. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  466. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  467. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  468. package/lib/components/booking/info/service2/utils.js +6 -2
  469. package/lib/components/booking/info2/cartClientCard/index.js +17 -11
  470. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  471. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  472. package/lib/components/booking/info2/service/editNormalService/index.js +20 -17
  473. package/lib/components/booking/info2/service/editService/index.js +48 -24
  474. package/lib/components/booking/info2/service/editService/utils.js +7 -4
  475. package/lib/components/booking/locales.d.ts +3 -0
  476. package/lib/components/booking/locales.js +6 -3
  477. package/lib/components/booking/model.d.ts +9 -1
  478. package/lib/components/booking/notes/model.d.ts +10 -1
  479. package/lib/components/booking/payments/model.d.ts +10 -1
  480. package/lib/components/booking/utils.d.ts +2 -2
  481. package/lib/components/booking/utils.js +3 -3
  482. package/lib/components/checkout/PaymentModal.d.ts +1 -0
  483. package/lib/components/checkout/PaymentModal.js +105 -31
  484. package/lib/components/checkout/components/PaymentDetailModal/index.less +426 -429
  485. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
  486. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -2
  487. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
  488. package/lib/components/checkout/components/PaymentResultToast/index.js +2 -0
  489. package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
  490. package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  491. package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
  492. package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
  493. package/lib/components/checkout/hooks/useWalletPass.js +160 -109
  494. package/lib/components/checkout/index.less +6 -0
  495. package/lib/components/checkout/plugin.js +195 -150
  496. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
  497. package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
  498. package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
  499. package/lib/components/ecocup/components/CupActionList/index.d.ts +14 -0
  500. package/lib/components/ecocup/components/CupActionList/index.js +116 -0
  501. package/lib/components/ecocup/components/CupActionList/index.less +102 -0
  502. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  503. package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
  504. package/lib/components/ecocup/components/CupActionModal/index.d.ts +15 -0
  505. package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
  506. package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
  507. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
  508. package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
  509. package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
  510. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  511. package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
  512. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
  513. package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
  514. package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
  515. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  516. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
  517. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +17 -0
  518. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
  519. package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
  520. package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
  521. package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
  522. package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
  523. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
  524. package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
  525. package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
  526. package/lib/components/ecocup/components/PageHeader/index.js +59 -0
  527. package/lib/components/ecocup/components/PageHeader/index.less +19 -0
  528. package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
  529. package/lib/components/ecocup/components/SearchBar/const.js +50 -0
  530. package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
  531. package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
  532. package/lib/components/ecocup/components/SearchBar/index.d.ts +13 -0
  533. package/lib/components/ecocup/components/SearchBar/index.js +213 -0
  534. package/lib/components/ecocup/components/SearchBar/index.less +88 -0
  535. package/lib/components/ecocup/cupList/const.d.ts +133 -0
  536. package/lib/components/ecocup/cupList/const.js +326 -0
  537. package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
  538. package/lib/components/ecocup/cupList/hooks/index.js +39 -0
  539. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
  540. package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
  541. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  542. package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
  543. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
  544. package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
  545. package/lib/components/ecocup/cupList/index.d.ts +6 -0
  546. package/lib/components/ecocup/cupList/index.js +208 -0
  547. package/lib/components/ecocup/cupList/index.less +113 -0
  548. package/lib/components/ecocup/cupProject/const.d.ts +7 -0
  549. package/lib/components/ecocup/cupProject/const.js +58 -0
  550. package/lib/components/ecocup/cupProject/index.d.ts +3 -0
  551. package/lib/components/ecocup/cupProject/index.js +126 -0
  552. package/lib/components/ecocup/cupProject/index.less +41 -0
  553. package/lib/components/ecocup/customerList/const.d.ts +44 -0
  554. package/lib/components/ecocup/customerList/const.js +93 -0
  555. package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
  556. package/lib/components/ecocup/customerList/hooks/index.js +32 -0
  557. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  558. package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
  559. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  560. package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
  561. package/lib/components/ecocup/customerList/index.d.ts +7 -0
  562. package/lib/components/ecocup/customerList/index.js +138 -0
  563. package/lib/components/ecocup/customerList/index.less +15 -0
  564. package/lib/components/ecocup/hooks.d.ts +49 -0
  565. package/lib/components/ecocup/hooks.js +155 -0
  566. package/lib/components/ecocup/locales.d.ts +339 -0
  567. package/lib/components/ecocup/locales.js +389 -0
  568. package/lib/components/ecocup/types.d.ts +103 -0
  569. package/lib/components/ecocup/types.js +57 -0
  570. package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
  571. package/lib/components/ecocup/utils/scanListener.js +90 -0
  572. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  573. package/lib/components/eftposPay/EFTPos.js +11 -7
  574. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  575. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
  576. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  577. package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
  578. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  579. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  580. package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  581. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  582. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  583. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
  584. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  585. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
  586. package/lib/components/eftposPay/app.js +5 -0
  587. package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
  588. package/lib/components/eftposPay/component/fail/index.js +4 -1
  589. package/lib/components/eftposPay/const.d.ts +6 -1
  590. package/lib/components/eftposPay/const.js +3 -0
  591. package/lib/components/eftposPay/hooks.d.ts +3 -2
  592. package/lib/components/eftposPay/hooks.js +16 -0
  593. package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
  594. package/lib/components/eftposPay/huifu/Action.js +174 -0
  595. package/lib/components/eftposPay/huifu/const.d.ts +5 -0
  596. package/lib/components/eftposPay/huifu/const.js +86 -0
  597. package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
  598. package/lib/components/eftposPay/huifu/hooks.js +186 -0
  599. package/lib/components/eftposPay/huifu/index.d.ts +5 -0
  600. package/lib/components/eftposPay/huifu/index.js +200 -0
  601. package/lib/components/eftposPay/huifu/index.less +180 -0
  602. package/lib/components/eftposPay/huifu/types.d.ts +14 -0
  603. package/lib/components/eftposPay/huifu/types.js +17 -0
  604. package/lib/components/eftposPay/index.js +5 -1
  605. package/lib/components/eftposPay/locales.d.ts +36 -0
  606. package/lib/components/eftposPay/locales.js +42 -3
  607. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  608. package/lib/components/eftposPay/manufacturer.js +7 -0
  609. package/lib/components/eftposPay/pay.js +3 -2
  610. package/lib/components/eftposPay/store/index.d.ts +12 -5
  611. package/lib/components/eftposPay/tyro/index.js +64 -7
  612. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  613. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  614. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  615. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  616. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  617. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  618. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  619. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  620. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  621. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  622. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  623. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  624. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  625. package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  626. package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
  627. package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
  628. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  629. package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
  630. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  631. package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
  632. package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
  633. package/lib/components/eventBooking/components/Voucher/index.js +197 -0
  634. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  635. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  636. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  637. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  638. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  639. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  640. package/lib/components/kioskSkuDetail/index.d.ts +3 -0
  641. package/lib/components/kioskSkuDetail/index.js +180 -113
  642. package/lib/components/kioskSkuDetail/index.less +49 -7
  643. package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
  644. package/lib/components/kioskSkuDetail/locales.js +9 -3
  645. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  646. package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
  647. package/lib/components/pay/toB/components/MX51/index.js +2 -1
  648. package/lib/components/pay/toB/paymentMethods/index.js +2 -1
  649. package/lib/components/pay/toB/types/index.d.ts +9 -0
  650. package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
  651. package/lib/components/pay/toC/PaymentList/index.js +36 -5
  652. package/lib/components/pay/toC/PaymentList/index.less +58 -1
  653. package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
  654. package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
  655. package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
  656. package/lib/components/pay/toC/PaymentList/serve.js +21 -1
  657. package/lib/components/pay/toC/PaymentList/utils.d.ts +26 -0
  658. package/lib/components/pay/toC/PaymentList/utils.js +156 -7
  659. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
  660. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  661. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +97 -7
  662. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  663. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  664. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  665. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  666. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  667. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  668. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  669. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  670. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  671. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  672. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  673. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  674. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  675. package/lib/components/pay/toC/index.js +53 -11
  676. package/lib/components/pay/toC/locales.d.ts +6 -0
  677. package/lib/components/pay/toC/locales.js +9 -3
  678. package/lib/components/pay/toC/model.d.ts +10 -1
  679. package/lib/components/pay/toC/serve.d.ts +18 -0
  680. package/lib/components/pay/toC/serve.js +6 -0
  681. package/lib/components/pay/toC/utils.d.ts +2 -2
  682. package/lib/components/pay/toC/utils.js +4 -0
  683. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  684. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  685. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  686. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  687. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  688. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  689. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  690. package/lib/components/productSelect/components/productGroup/index.js +1 -1
  691. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  692. package/lib/components/schedules/model.d.ts +9 -1
  693. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  694. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  695. package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
  696. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  697. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  698. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  699. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  700. package/lib/components/shoppingCart/index.d.ts +1 -0
  701. package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
  702. package/lib/components/taxSelect/index.d.ts +0 -1
  703. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +3 -7
  704. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -16
  705. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
  706. package/lib/components/ticketBooking/components/ticketBooking/index.js +20 -6
  707. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
  708. package/lib/components/ticketBooking/context/OsKeyContext.js +13 -3
  709. package/lib/components/ticketBooking/context/index.d.ts +1 -1
  710. package/lib/components/ticketBooking/context/index.js +2 -0
  711. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
  712. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +3 -2
  713. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +59 -0
  714. package/lib/components/ticketBooking/index.d.ts +1 -0
  715. package/lib/components/ticketBooking/index.js +1 -1
  716. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  717. package/lib/components/walletList/index.js +5 -1
  718. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  719. package/lib/index.d.ts +7 -4
  720. package/lib/index.js +15 -6
  721. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  722. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  723. package/lib/plus/clinetSearch/index.d.ts +1 -0
  724. package/lib/plus/clinetSearch/index.js +31 -7
  725. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  726. package/lib/plus/clinetSearch/locales.js +6 -3
  727. package/lib/plus/clinetSearch/types.d.ts +9 -0
  728. package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
  729. package/lib/plus/orderList/components/BatchActionBar.js +584 -0
  730. package/lib/plus/orderList/components/FilterList.d.ts +8 -0
  731. package/lib/plus/orderList/components/FilterList.js +121 -0
  732. package/lib/plus/orderList/components/HandleActions.d.ts +5 -0
  733. package/lib/plus/orderList/components/HandleActions.js +52 -0
  734. package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
  735. package/lib/plus/orderList/components/QuickFilter.js +43 -0
  736. package/lib/plus/orderList/components/Reset.d.ts +7 -0
  737. package/lib/plus/orderList/components/Reset.js +58 -0
  738. package/lib/plus/orderList/components/Toolbar.d.ts +6 -0
  739. package/lib/plus/orderList/components/Toolbar.js +68 -0
  740. package/lib/plus/orderList/config.d.ts +152 -0
  741. package/lib/plus/orderList/config.js +763 -0
  742. package/lib/plus/orderList/index.d.ts +9 -0
  743. package/lib/plus/orderList/index.js +132 -0
  744. package/lib/plus/orderList/index.less +125 -0
  745. package/lib/plus/orderList/locales.d.ts +372 -0
  746. package/lib/plus/orderList/locales.js +471 -0
  747. package/lib/plus/orderList/serve.d.ts +42 -0
  748. package/lib/plus/orderList/serve.js +177 -0
  749. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  750. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  751. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  752. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  753. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  754. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  755. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  756. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  757. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  758. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  759. package/lib/plus/productSelect/ProductCard/index.js +3 -3
  760. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
  761. package/lib/plus/productSelect/ProductList/gridComponents.js +7 -1
  762. package/lib/plus/productSelect/index.d.ts +3 -1
  763. package/lib/plus/productSelect/index.js +56 -11
  764. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  765. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  766. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  767. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  768. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
  769. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  770. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
  771. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  772. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  773. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -0
  774. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
  775. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
  776. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
  777. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
  778. package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
  779. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  780. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
  781. package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
  782. package/lib/plus/walletPassGallery/index.js +2 -2
  783. package/lib/plus/walletPassGallery/index.less +1 -1
  784. package/lib/plus/walletPassGallery/serve.d.ts +8 -0
  785. package/lib/plus/walletPassGallery/serve.js +23 -8
  786. package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
  787. package/lib/plus/webPosLogin/WebPosLogin.js +7 -2
  788. package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
  789. package/lib/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
  790. package/lib/plus/webPosLogin/service.js +2 -1
  791. package/lib/pro/Login2.0/AuthModal.js +15 -7
  792. package/lib/pro/Login2.0/Login2.js +7 -0
  793. package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
  794. package/lib/pro/Login2.0/index.less +15 -3
  795. package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
  796. package/lib/pro/NumericStepper/index.d.ts +27 -1
  797. package/lib/pro/NumericStepper/index.js +73 -70
  798. package/lib/pro/NumericStepper/index.less +261 -136
  799. package/lib/pro/Selector/Selector.js +11 -4
  800. package/lib/pro/Selector/demo.d.ts +1 -0
  801. package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
  802. package/lib/pro/Selector/hooks/usePresetProps.js +4 -2
  803. package/lib/pro/Selector/types.d.ts +1 -0
  804. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  805. package/lib/pro/keyboards/index.d.ts +2 -0
  806. package/lib/pro/keyboards/index.js +39 -0
  807. package/lib/pro/keyboards/locales.d.ts +24 -0
  808. package/lib/pro/keyboards/locales.js +47 -0
  809. package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  810. package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
  811. package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
  812. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  813. package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
  814. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
  815. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
  816. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
  817. package/lib/pro/skuDetailModal/index.js +114 -64
  818. package/lib/pro/skuDetailModal/index.less +46 -4
  819. package/lib/pro/skuDetailModal/types.d.ts +7 -0
  820. package/lowcode/eco-cup-list/meta.ts +63 -0
  821. package/lowcode/eco-customer-list/meta.ts +63 -0
  822. package/lowcode/ecocup-cup-list/meta.ts +38 -0
  823. package/lowcode/ecocup-cup-project/meta.ts +35 -0
  824. package/lowcode/ecocup-customer-list/meta.ts +38 -0
  825. package/lowcode/kiosk-sku-detail/meta.ts +229 -94
  826. package/lowcode/login2/meta.ts +15 -0
  827. package/lowcode/order-list/meta.ts +87 -0
  828. package/package.json +8 -23
  829. package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
  830. package/es/plus/myTeamLogin/MyTeamLoginCpt.js +0 -157
  831. package/es/plus/myTeamLogin/index.d.ts +0 -11
  832. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  833. package/es/pro/pisellNumberSelector/example.js +0 -68
  834. package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
  835. package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +0 -156
  836. package/lib/plus/myTeamLogin/index.d.ts +0 -11
  837. package/lib/plus/myTeamLogin/index.js +0 -198
  838. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  839. package/lib/pro/pisellNumberSelector/example.js +0 -93
  840. package/lowcode/my-team-login/meta.ts +0 -71
@@ -48,13 +48,17 @@ var import_utils3 = require("../clientVariant/utils");
48
48
  var import_useGetHolderList = __toESM(require("../hooks/useGetHolderList"));
49
49
  var isLoadClient = false;
50
50
  var Client = () => {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
52
52
  const modalRef = (0, import_react.useRef)();
53
53
  const [loadLoading, setLoadLoading] = (0, import_react.useState)(false);
54
54
  const [loading, setLoading] = (0, import_react.useState)(false);
55
55
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
56
56
  const [franchiseeLoading, setFranchiseeLoading] = (0, import_react.useState)(0);
57
57
  const getHolders = (0, import_useGetHolderList.default)(state, dispatch);
58
+ const boardConfig = (0, import_react.useMemo)(() => {
59
+ var _a2, _b2, _c2;
60
+ 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) || {};
61
+ }, [(_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic]);
58
62
  const [params, setParams] = (0, import_react.useState)({
59
63
  skip: 1,
60
64
  num: 10,
@@ -95,10 +99,14 @@ var Client = () => {
95
99
  if (!withKey.includes("contactsInfo")) {
96
100
  withKey.push("contactsInfo");
97
101
  }
102
+ if (!(withKey == null ? void 0 : withKey.includes("formRecord"))) {
103
+ withKey.push("formRecord");
104
+ }
98
105
  const data = await api({
99
106
  ...resetParams,
100
107
  with: withKey,
101
- ...!state.isFranchisee ? { _config: { abort: true } } : {}
108
+ ...!state.isFranchisee ? { _config: { abort: true } } : {},
109
+ relation_form_id: (boardConfig == null ? void 0 : boardConfig.form_id) || void 0
102
110
  });
103
111
  const list = ((data == null ? void 0 : data.list) || []).map((d) => {
104
112
  return {
@@ -268,7 +276,7 @@ var Client = () => {
268
276
  const isWalkIn = (0, import_react.useMemo)(() => {
269
277
  var _a2;
270
278
  return (0, import_utils2.isWalkIn)((_a2 = state.client.value) == null ? void 0 : _a2.id);
271
- }, [(_a = state.client.value) == null ? void 0 : _a.id]);
279
+ }, [(_c = state.client.value) == null ? void 0 : _c.id]);
272
280
  (0, import_react.useEffect)(() => {
273
281
  if (state.action) {
274
282
  state.action({
@@ -379,7 +387,7 @@ var Client = () => {
379
387
  }
380
388
  }
381
389
  );
382
- }, [state.isTerminal, state.modalOpen, (_b = state.client) == null ? void 0 : _b.value, state.drawerMask, renderList, loading, franchiseeLoading, params.search, loadMore]);
390
+ }, [state.isTerminal, state.modalOpen, (_d = state.client) == null ? void 0 : _d.value, state.drawerMask, renderList, loading, franchiseeLoading, params.search, loadMore]);
383
391
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
384
392
  "div",
385
393
  {
@@ -396,17 +404,17 @@ var Client = () => {
396
404
  import_antd.Avatar,
397
405
  {
398
406
  className: "pisell-lowcode__booking-client-list-item-avatar",
399
- src: import_utils.image.ali((_c = state.client.value) == null ? void 0 : _c.cover, 100),
407
+ src: import_utils.image.ali((_e = state.client.value) == null ? void 0 : _e.cover, 100),
400
408
  icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
401
409
  }
402
410
  ),
403
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-name" }, getNickname(state.client.value)), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in")) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_d = state.client.value) == null ? void 0 : _d.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-email" }, (_e = state.client.value) == null ? void 0 : _e.email) : null, ((_f = state.client.value) == null ? void 0 : _f.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-phone" }, (_g = state.client.value) == null ? void 0 : _g.phone) : null, !!((_i = (_h = state.client.value) == null ? void 0 : _h.waiver_form) == null ? void 0 : _i.length) && /* @__PURE__ */ import_react.default.createElement(
411
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-name" }, getNickname(state.client.value)), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in")) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_f = state.client.value) == null ? void 0 : _f.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-email" }, (_g = state.client.value) == null ? void 0 : _g.email) : null, ((_h = state.client.value) == null ? void 0 : _h.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-phone" }, (_i = state.client.value) == null ? void 0 : _i.phone) : null, !!((_k = (_j = state.client.value) == null ? void 0 : _j.waiver_form) == null ? void 0 : _k.length) && /* @__PURE__ */ import_react.default.createElement(
404
412
  "div",
405
413
  {
406
414
  className: "pisell-lowcode__booking-client-waiver",
407
- title: (0, import_utils3.getWaiverTitle)((_j = state.client.value) == null ? void 0 : _j.waiver_form)
415
+ title: (0, import_utils3.getWaiverTitle)((_l = state.client.value) == null ? void 0 : _l.waiver_form)
408
416
  },
409
- (_m = (_l = (_k = state.client.value) == null ? void 0 : _k.waiver_form) == null ? void 0 : _l.map) == null ? void 0 : _m.call(_l, (item) => {
417
+ (_o = (_n = (_m = state.client.value) == null ? void 0 : _m.waiver_form) == null ? void 0 : _n.map) == null ? void 0 : _o.call(_n, (item) => {
410
418
  return /* @__PURE__ */ import_react.default.createElement("span", null, item.form_title, /* @__PURE__ */ import_react.default.createElement(
411
419
  "span",
412
420
  {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const header: ({ state, dispatch }: any) => JSX.Element;
4
3
  export default header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -68,7 +68,7 @@ var concatBookings = (items) => {
68
68
  };
69
69
  };
70
70
  var createBookingItemsByGroup = (item, isBatchEdit) => {
71
- var _a, _b;
71
+ var _a, _b, _c;
72
72
  const groupId = item._extend.groupId || (0, import_utils.getUniqueId)("bookingGroup_");
73
73
  let bookings = [];
74
74
  for (let i = 0; i < item._extend.duration; i++) {
@@ -97,7 +97,7 @@ var createBookingItemsByGroup = (item, isBatchEdit) => {
97
97
  };
98
98
  const totalPrice = (0, import_utils2.getProductTotalPrice)(cacheItem);
99
99
  cacheItem._extend.total = totalPrice;
100
- cacheItem._extend.origin_total = totalPrice;
100
+ cacheItem._extend.origin_total = ((_c = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _c.origin_total) ?? totalPrice;
101
101
  cacheItem._extend.items = void 0;
102
102
  cacheItem._serviceKey = (0, import_utils3.genServiceKey)(cacheItem);
103
103
  bookings.push(cacheItem);
@@ -174,12 +174,14 @@ var currentResource = (state, useResource, cacheItem) => {
174
174
  };
175
175
  var handleChangeHolder = (products, currentItem, other) => {
176
176
  return products.map((item) => {
177
- if (item._id === currentItem._id) {
177
+ var _a, _b, _c, _d;
178
+ const isSameGroup = ((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId) && ((_b = item._extend) == null ? void 0 : _b.groupId) === ((_d = (_c = currentItem == null ? void 0 : currentItem._origin) == null ? void 0 : _c._extend) == null ? void 0 : _d.groupId);
179
+ if (item._id === currentItem._id || isSameGroup) {
178
180
  return {
179
181
  ...item,
180
182
  _extend: {
181
183
  ...item._extend,
182
- holder_id: (0, import_utils2.isArr)(other) ? other.map((item2) => item2.id) : item._extend.quantity > 1 ? [other.id] : other.id
184
+ holder_id: (0, import_utils2.isArr)(other) ? other.map((item2) => item2.id) : item._extend.quantity > 1 ? [other.id] : other == null ? void 0 : other.id
183
185
  }
184
186
  };
185
187
  }
@@ -531,6 +533,7 @@ var getGeneralParams = (item, state, isParallelResource) => {
531
533
  holders: formatHolders(holders),
532
534
  isShowChangeHolder: !isNormalProduct,
533
535
  isShowAction: (0, import_utils4.isShowAddTime)(state, item),
536
+ allowClearHolder: true,
534
537
  actionText: import_utils2.locales.getText("page.booking.text.add-time"),
535
538
  actionIcon: "pisell2-clock-plus",
536
539
  isMultipleResource: true,
@@ -578,6 +581,7 @@ var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelR
578
581
  title: item == null ? void 0 : item.title,
579
582
  // 购物车显示需要 title 字段
580
583
  price: (_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.price,
584
+ totalDifference: (0, import_amount.getProductDiscountProductDiscountDifference)(item),
581
585
  total: calcAddTimeTotalPrice((_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.total, (_i = item == null ? void 0 : item._extend) == null ? void 0 : _i.relation_details),
582
586
  origin_total: calcAddTimeTotalPrice((_j = item == null ? void 0 : item._extend) == null ? void 0 : _j.origin_total, (_k = item == null ? void 0 : item._extend) == null ? void 0 : _k.relation_details),
583
587
  num: item == null ? void 0 : item._extend.quantity,
@@ -55,7 +55,7 @@ var CartClientCard = (0, import_react.forwardRef)(({
55
55
  beforeSwitchModalOpen,
56
56
  onClientChange
57
57
  }, ref) => {
58
- var _a, _b, _c, _d;
58
+ var _a, _b, _c, _d, _e, _f;
59
59
  const clientSearchRef = (0, import_react.useRef)(null);
60
60
  const [searchModalVisible, setSearchModalVisible] = (0, import_react.useState)(false);
61
61
  const [switchModalVisible, setSwitchModalVisible] = (0, import_react.useState)(false);
@@ -75,6 +75,10 @@ var CartClientCard = (0, import_react.forwardRef)(({
75
75
  import_locales.default,
76
76
  ((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.storage) == null ? void 0 : _c.get("umi_locale")) || "en"
77
77
  );
78
+ const boardConfig = (0, import_react.useMemo)(() => {
79
+ var _a2, _b2, _c2;
80
+ 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) || {};
81
+ }, [(_e = (_d = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _d.config) == null ? void 0 : _e.basic]);
78
82
  const {
79
83
  customers,
80
84
  loading,
@@ -86,23 +90,23 @@ var CartClientCard = (0, import_react.forwardRef)(({
86
90
  hasMore,
87
91
  loadMore
88
92
  } = (0, import_useCustomer.useCustomer)({});
89
- const selectedCustomer = (_d = state.client) == null ? void 0 : _d.value;
93
+ const selectedCustomer = (_f = state.client) == null ? void 0 : _f.value;
90
94
  const handleSearchClient = async (keyword2) => {
91
95
  var _a2, _b2;
92
- await initLoad(keyword2);
96
+ await initLoad(keyword2, boardConfig == null ? void 0 : boardConfig.form_id);
93
97
  (_b2 = (_a2 = clientSearchRef.current) == null ? void 0 : _a2.resetScrollPosition) == null ? void 0 : _b2.call(_a2);
94
98
  };
95
99
  const _debouncedSearch = (0, import_ahooks.useDebounceFn)(
96
- async (_keyword) => {
100
+ async (_keyword, formId) => {
97
101
  var _a2, _b2;
98
- await initLoad(keyword);
102
+ await initLoad(keyword, formId);
99
103
  (_b2 = (_a2 = clientSearchRef.current) == null ? void 0 : _a2.resetScrollPosition) == null ? void 0 : _b2.call(_a2);
100
104
  },
101
105
  { wait: 500 }
102
106
  );
103
107
  (0, import_react.useEffect)(() => {
104
- _debouncedSearch.run(keyword);
105
- }, [keyword]);
108
+ _debouncedSearch.run(keyword, boardConfig == null ? void 0 : boardConfig.form_id);
109
+ }, [keyword, boardConfig == null ? void 0 : boardConfig.form_id]);
106
110
  (0, import_react.useEffect)(() => {
107
111
  if (state.action) {
108
112
  state.action({
@@ -195,7 +199,7 @@ var CartClientCard = (0, import_react.forwardRef)(({
195
199
  };
196
200
  }, [pagination, loading]);
197
201
  const handleSetClient = (0, import_ahooks.useMemoizedFn)(async (record, options) => {
198
- var _a2, _b2, _c2, _d2, _e;
202
+ var _a2, _b2, _c2, _d2, _e2;
199
203
  if ((0, import_utils2.isWalkIn)(selectedCustomer == null ? void 0 : selectedCustomer.id) && ((_a2 = options == null ? void 0 : options.fullData) == null ? void 0 : _a2.searchType) === "walletPass" && ((_b2 = options == null ? void 0 : options.fullData) == null ? void 0 : _b2.scanCode)) {
200
204
  window.dispatchEvent(
201
205
  new CustomEvent("onScanWallPassCode", {
@@ -214,7 +218,7 @@ var CartClientCard = (0, import_react.forwardRef)(({
214
218
  }
215
219
  if ((selectedCustomer == null ? void 0 : selectedCustomer.id) === (record == null ? void 0 : record.id)) {
216
220
  if (options == null ? void 0 : options.sameClientTip) {
217
- (_e = Toast == null ? void 0 : Toast.info) == null ? void 0 : _e.call(Toast, options.sameClientTip);
221
+ (_e2 = Toast == null ? void 0 : Toast.info) == null ? void 0 : _e2.call(Toast, options.sameClientTip);
218
222
  }
219
223
  setSearchModalVisible(false);
220
224
  return;
@@ -308,13 +312,15 @@ var CartClientCard = (0, import_react.forwardRef)(({
308
312
  open: searchModalVisible,
309
313
  onCancel: handleModalCancel,
310
314
  // 同时存在两个搜索弹窗时,内部的无限滚动组件会发生冲突
311
- destroyOnClose: true
315
+ destroyOnClose: true,
316
+ width: 880
312
317
  },
313
318
  isShowNewButton: false,
314
319
  resultProps,
315
320
  onAddClient: handleAddClientSuccess,
316
321
  onLoadMore: loadMore,
317
- hasMore
322
+ hasMore,
323
+ state
318
324
  }
319
325
  ), /* @__PURE__ */ import_react.default.createElement(
320
326
  import_materials.PisellModal,
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const ContactInfoMode: () => JSX.Element;
2
3
  export default ContactInfoMode;
@@ -39,6 +39,7 @@ var import_model = require("../../../info/model");
39
39
  var import_utils = require("../editService/utils");
40
40
  var import_utils2 = require("../../../../ticketBooking/components/addServiceVariant/utils");
41
41
  var import_utils3 = require("../../../utils");
42
+ var import_lodash = require("lodash");
42
43
  var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
43
44
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
44
45
  const modalRef = (0, import_react.useRef)(null);
@@ -81,7 +82,7 @@ var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
81
82
  });
82
83
  });
83
84
  const handleConfirm = (0, import_ahooks.useMemoizedFn)((data) => {
84
- var _a, _b, _c, _d, _e;
85
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
85
86
  if (createPayloadRef.current) {
86
87
  const payload = createPayloadRef.current;
87
88
  createPayloadRef.current = null;
@@ -92,40 +93,42 @@ var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
92
93
  option: []
93
94
  };
94
95
  const quantity = Number(((_b = data == null ? void 0 : data._extend) == null ? void 0 : _b.quantity) || 1);
95
- const detail = {
96
+ let detail = {
96
97
  ...data || {},
97
98
  id: payload.productId,
98
99
  product_id: payload.productId,
99
100
  _extend: {
100
101
  ...(data == null ? void 0 : data._extend) || {},
101
- origin_total: (_c = data == null ? void 0 : data._extend) == null ? void 0 : _c.total,
102
- quantity
103
- },
104
- origin_total: data.total
102
+ origin_total: ((_c = data == null ? void 0 : data._extend) == null ? void 0 : _c.origin_total) ?? ((_d = data == null ? void 0 : data._extend) == null ? void 0 : _d.total),
103
+ quantity,
104
+ skuValue: (0, import_lodash.cloneDeep)(((_e = data == null ? void 0 : data._extend) == null ? void 0 : _e.skuValue) || {})
105
+ }
105
106
  };
107
+ data._extend.total = (0, import_utils3.getProductTotalPrice)(data);
108
+ detail = (0, import_utils.setProductPrice)(detail, {
109
+ newTotal: (_f = data == null ? void 0 : data._extend) == null ? void 0 : _f.total,
110
+ origin_total: (_g = data._extend) == null ? void 0 : _g.origin_total
111
+ });
106
112
  let e = {
107
- product_id: payload.productId,
108
- price: skuValue.price || 0,
109
- product_variant_id: skuValue.product_variant_id || 0,
110
- bundle: skuValue.bundle || [],
111
- option: skuValue.option || [],
112
- quantity
113
+ ...detail._extend.other
113
114
  };
114
115
  e = (0, import_utils2.formatDataKey)(e);
115
116
  payload.callback(e, void 0, detail, false);
116
117
  return;
117
118
  }
118
- const newProducts = (_e = ((_d = state == null ? void 0 : state.service) == null ? void 0 : _d.value) || []) == null ? void 0 : _e.map((item) => {
119
- var _a2, _b2;
119
+ console.log("handleConfirm", data, (_h = data == null ? void 0 : data._extend) == null ? void 0 : _h.origin_total);
120
+ const newProducts = (_j = ((_i = state == null ? void 0 : state.service) == null ? void 0 : _i.value) || []) == null ? void 0 : _j.map((item) => {
121
+ var _a2, _b2, _c2, _d2;
120
122
  if (item._id == data._id) {
121
123
  const total = (0, import_utils3.getProductTotalPrice)(data);
122
124
  data._extend.total = total;
123
- data._extend.origin_total = total;
125
+ data._extend.origin_total = ((_a2 = data._extend) == null ? void 0 : _a2.origin_total) ?? total;
126
+ data._extend._skuValue = (0, import_lodash.cloneDeep)(((_b2 = data == null ? void 0 : data._extend) == null ? void 0 : _b2.skuValue) || {});
124
127
  data = (0, import_utils.setProductPrice)(data, {
125
128
  newTotal: total,
126
- origin_total: (_a2 = data._extend) == null ? void 0 : _a2.origin_total
129
+ origin_total: (_c2 = data._extend) == null ? void 0 : _c2.origin_total
127
130
  });
128
- data.note = (_b2 = data._extend) == null ? void 0 : _b2.note;
131
+ data.note = (_d2 = data._extend) == null ? void 0 : _d2.note;
129
132
  return data;
130
133
  }
131
134
  return item;
@@ -62,9 +62,11 @@ var import_BookingList = __toESM(require("../../../info/service/editService/Book
62
62
  var import_dayjs = __toESM(require("dayjs"));
63
63
  var import_utils9 = require("../../../info/service2/Group/utils");
64
64
  var import_openNormalService = require("../openNormalService");
65
+ var import_decimal = __toESM(require("decimal.js"));
66
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
65
67
  var submitLock = false;
66
68
  var Info = (_, ref) => {
67
- 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, _J, _K;
69
+ 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, _J, _K, _L;
68
70
  const [form] = import_antd.Form.useForm();
69
71
  const useTotal = import_antd.Form.useWatch("total", form);
70
72
  const useResource = import_antd.Form.useWatch("resource", form);
@@ -82,6 +84,10 @@ var Info = (_, ref) => {
82
84
  const [open, setOpen] = (0, import_react.useState)(false);
83
85
  const [currentTab, setCurrentTab] = (0, import_react.useState)("batch_edit");
84
86
  const [maskClosable, setMaskClosable] = (0, import_react.useState)(false);
87
+ const context = (0, import_useEngineContext.default)();
88
+ const {
89
+ getData
90
+ } = (_a = context.appHelper) == null ? void 0 : _a.utils;
85
91
  (0, import_react.useEffect)(() => {
86
92
  window.openBookingEditModal = () => {
87
93
  setOpen(true);
@@ -96,7 +102,7 @@ var Info = (_, ref) => {
96
102
  return true;
97
103
  }
98
104
  return ((_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.cacheItem) && (0, import_utils4.isNormalProductByDurationSchedule)((_c2 = state == null ? void 0 : state.service) == null ? void 0 : _c2.cacheItem);
99
- }, [(_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem]);
105
+ }, [(_b = state == null ? void 0 : state.service) == null ? void 0 : _b.cacheItem]);
100
106
  const getCurrentCacheItem = (0, import_ahooks.useMemoizedFn)((_cacheItem) => {
101
107
  let values = form.getFieldsValue();
102
108
  let _item = _cacheItem || state.service.cacheItem;
@@ -126,7 +132,7 @@ var Info = (_, ref) => {
126
132
  state.service.cacheItem,
127
133
  useStartTime,
128
134
  useResource,
129
- (_d = (_c = (_b = state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.service_time
135
+ (_e = (_d = (_c = state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.basic) == null ? void 0 : _e.service_time
130
136
  ]);
131
137
  const flexibleOption = (0, import_react.useMemo)(() => {
132
138
  const op = (0, import_utils7.getFlexibleOption)({
@@ -148,7 +154,7 @@ var Info = (_, ref) => {
148
154
  durationProps,
149
155
  useStartTime,
150
156
  currentResource,
151
- (_g = (_f = (_e = state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.basic) == null ? void 0 : _g.service_time,
157
+ (_h = (_g = (_f = state.bookingConfig) == null ? void 0 : _f.config) == null ? void 0 : _g.basic) == null ? void 0 : _h.service_time,
152
158
  useDuration
153
159
  ]);
154
160
  (0, import_react.useEffect)(() => {
@@ -201,7 +207,7 @@ var Info = (_, ref) => {
201
207
  form.setFieldsValue({ discount });
202
208
  };
203
209
  const onFinish = (values) => {
204
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
210
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2;
205
211
  let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
206
212
  if (isShowTimeAndResource && !isSuccess) {
207
213
  return;
@@ -215,6 +221,7 @@ var Info = (_, ref) => {
215
221
  }, 1500);
216
222
  let _list = [...state.service.value];
217
223
  let _item = {
224
+ is_price_include_tax: getData("is_price_include_tax"),
218
225
  ...state.service.cacheItem,
219
226
  autoClose: false
220
227
  };
@@ -235,6 +242,23 @@ var Info = (_, ref) => {
235
242
  _extend.startDate = startDate;
236
243
  _extend.endDate = endDate;
237
244
  }
245
+ if (isChangeTotal.current) {
246
+ const discountRatio = new import_decimal.default(values.total).div(_item._extend.origin_total);
247
+ const bundles2 = ((_c2 = _extend == null ? void 0 : _extend.other) == null ? void 0 : _c2.bundle) || [];
248
+ let childProductsTotal = new import_decimal.default(0);
249
+ if (bundles2.length > 0) {
250
+ bundles2.forEach((bundle) => {
251
+ const discountedPrice = new import_decimal.default(bundle.original_price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP);
252
+ bundle.bundle_selling_price = discountedPrice.toNumber();
253
+ childProductsTotal = childProductsTotal.add(
254
+ discountedPrice.mul(bundle.quantity)
255
+ );
256
+ });
257
+ }
258
+ const mainProductTotal = new import_decimal.default(values.total).sub(childProductsTotal);
259
+ const mainProductQuantity = ((_d2 = _extend.other) == null ? void 0 : _d2.quantity) || _extend.quantity || 1;
260
+ _extend.main_product_selling_price = mainProductTotal.div(mainProductQuantity).toNumber();
261
+ }
238
262
  if (_extend.bundle_edit !== void 0) {
239
263
  _extend.bundle_edit = 1;
240
264
  }
@@ -242,7 +266,7 @@ var Info = (_, ref) => {
242
266
  _item._time = (/* @__PURE__ */ new Date()).getTime();
243
267
  _item._serviceKey = (0, import_utils3.genServiceKey)(_item);
244
268
  _item._holderKey = (0, import_utils3.genHolderKey)(_item);
245
- if (((_d2 = (_c2 = _item._extend) == null ? void 0 : _c2.holder_id) == null ? void 0 : _d2.length) > 1 || ((_e2 = _item._extend) == null ? void 0 : _e2.quantity) > 1 && ((_g2 = (_f2 = _item._extend) == null ? void 0 : _f2.holder_id) == null ? void 0 : _g2.length) >= 1) {
269
+ if (((_f2 = (_e2 = _item._extend) == null ? void 0 : _e2.holder_id) == null ? void 0 : _f2.length) > 1 || ((_g2 = _item._extend) == null ? void 0 : _g2.quantity) > 1 && ((_i2 = (_h2 = _item._extend) == null ? void 0 : _h2.holder_id) == null ? void 0 : _i2.length) >= 1) {
246
270
  let holder_ids = _item._extend.holder_id;
247
271
  _item._extend.holder_id = holder_ids[0];
248
272
  holder_ids = holder_ids.slice(1);
@@ -261,10 +285,10 @@ var Info = (_, ref) => {
261
285
  }
262
286
  }
263
287
  let _id = _item == null ? void 0 : _item._id;
264
- let groupId = (_h2 = _item == null ? void 0 : _item._extend) == null ? void 0 : _h2.groupId;
288
+ let groupId = (_j2 = _item == null ? void 0 : _item._extend) == null ? void 0 : _j2.groupId;
265
289
  _item = (0, import_utils8.setProductPrice)(_item, {
266
290
  newTotal: values.total,
267
- origin_total: (_i2 = _item._extend) == null ? void 0 : _i2.origin_total
291
+ origin_total: (_k2 = _item._extend) == null ? void 0 : _k2.origin_total
268
292
  });
269
293
  if (groupId) {
270
294
  _list = _list.filter((d) => {
@@ -286,7 +310,7 @@ var Info = (_, ref) => {
286
310
  (0, import_utils6.deleteCacheParams)();
287
311
  console.log("_onFinish", _list);
288
312
  form.resetFields();
289
- if (!!((_j2 = state.service.cacheItem) == null ? void 0 : _j2.new)) {
313
+ if (!!((_l2 = state.service.cacheItem) == null ? void 0 : _l2.new)) {
290
314
  window.dispatchEvent(
291
315
  new CustomEvent("onAddNewService", {
292
316
  detail: {
@@ -295,7 +319,7 @@ var Info = (_, ref) => {
295
319
  })
296
320
  );
297
321
  }
298
- (_k2 = window.closeBookingEditModal) == null ? void 0 : _k2.call(window);
322
+ (_m2 = window.closeBookingEditModal) == null ? void 0 : _m2.call(window);
299
323
  _list.sort((a, b) => {
300
324
  var _a3, _b3;
301
325
  const aHasHolderId = ((_a3 = a._extend) == null ? void 0 : _a3.holder_id) && (Array.isArray(a._extend.holder_id) ? a._extend.holder_id.length > 0 : true);
@@ -372,7 +396,7 @@ var Info = (_, ref) => {
372
396
  let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
373
397
  let cPrice = Number(useTotal || 0);
374
398
  return cPrice !== oPrice;
375
- }, [useTotal, (_i = (_h = state.service.cacheItem) == null ? void 0 : _h._extend) == null ? void 0 : _i.origin_total]);
399
+ }, [useTotal, (_j = (_i = state.service.cacheItem) == null ? void 0 : _i._extend) == null ? void 0 : _j.origin_total]);
376
400
  const getResources = () => {
377
401
  var _a2, _b2;
378
402
  let res = (0, import_utils7.formatResources)({
@@ -436,11 +460,11 @@ var Info = (_, ref) => {
436
460
  }, [state.service.editModal, state.isBookingCreatePage]);
437
461
  (0, import_react.useEffect)(() => {
438
462
  getDiscount();
439
- }, [useTotal, (_k = (_j = state.service.cacheItem) == null ? void 0 : _j._extend) == null ? void 0 : _k.origin_total]);
463
+ }, [useTotal, (_l = (_k = state.service.cacheItem) == null ? void 0 : _k._extend) == null ? void 0 : _l.origin_total]);
440
464
  const bundles = (0, import_react.useMemo)(() => {
441
465
  var _a2, _b2, _c2, _d2;
442
466
  return ((_d2 = (_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.bundle) || [];
443
- }, [(_o = (_n = (_m = (_l = state.service) == null ? void 0 : _l.cacheItem) == null ? void 0 : _m._extend) == null ? void 0 : _n.other) == null ? void 0 : _o.bundle]);
467
+ }, [(_p = (_o = (_n = (_m = state.service) == null ? void 0 : _m.cacheItem) == null ? void 0 : _n._extend) == null ? void 0 : _o.other) == null ? void 0 : _p.bundle]);
444
468
  const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
445
469
  var _a2, _b2, _c2, _d2, _e2;
446
470
  const item = state.service.cacheItem;
@@ -573,7 +597,7 @@ var Info = (_, ref) => {
573
597
  }
574
598
  return false;
575
599
  }, [state.renderType, isNormalProduct]);
576
- const SelectTime = (_p = window.BaseMaterials) == null ? void 0 : _p.SelectTime;
600
+ const SelectTime = (_q = window.BaseMaterials) == null ? void 0 : _q.SelectTime;
577
601
  const isNoSpecAndPackage = (0, import_utilsByBooking.getIsNoSpecAndPackage)(state.service.cacheItem);
578
602
  const items = (0, import_react.useMemo)(() => {
579
603
  var _a2, _b2;
@@ -610,7 +634,7 @@ var Info = (_, ref) => {
610
634
  }
611
635
  ))));
612
636
  }, [
613
- (_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name,
637
+ (_t = (_s = (_r = state.service) == null ? void 0 : _r.cacheItem) == null ? void 0 : _s._extend) == null ? void 0 : _t.product_name,
614
638
  bundles,
615
639
  state.amountSymbol,
616
640
  state.isBookingCreatePage
@@ -655,7 +679,7 @@ var Info = (_, ref) => {
655
679
  ));
656
680
  }, [
657
681
  useTotal,
658
- (_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total,
682
+ (_v = (_u = state.service.cacheItem) == null ? void 0 : _u._extend) == null ? void 0 : _v.origin_total,
659
683
  state.amountSymbol,
660
684
  state.channelDisabledEdit
661
685
  ]);
@@ -703,7 +727,7 @@ var Info = (_, ref) => {
703
727
  }
704
728
  ) : null
705
729
  ));
706
- }, [SelectTime, (_y = (_x = (_w = (_v = state.bookingConfig) == null ? void 0 : _v.config) == null ? void 0 : _w.basic) == null ? void 0 : _x.service_time) == null ? void 0 : _y.value, isEditGroup]);
730
+ }, [SelectTime, (_z = (_y = (_x = (_w = state.bookingConfig) == null ? void 0 : _w.config) == null ? void 0 : _x.basic) == null ? void 0 : _y.service_time) == null ? void 0 : _z.value, isEditGroup]);
707
731
  const endTime = (0, import_react.useMemo)(() => {
708
732
  if (!isEditGroup) {
709
733
  return null;
@@ -742,8 +766,8 @@ var Info = (_, ref) => {
742
766
  ));
743
767
  }, [
744
768
  state.renderType,
745
- (_A = (_z = state.service.cacheItem) == null ? void 0 : _z._data) == null ? void 0 : _A.resources,
746
- (_C = (_B = state.service.cacheItem) == null ? void 0 : _B._data) == null ? void 0 : _C.resourceMaps
769
+ (_B = (_A = state.service.cacheItem) == null ? void 0 : _A._data) == null ? void 0 : _B.resources,
770
+ (_D = (_C = state.service.cacheItem) == null ? void 0 : _C._data) == null ? void 0 : _D.resourceMaps
747
771
  ]);
748
772
  const holder = (0, import_react.useMemo)(() => {
749
773
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
@@ -781,7 +805,7 @@ var Info = (_, ref) => {
781
805
  }, [
782
806
  state.locale,
783
807
  state.isTerminal,
784
- (_F = (_E = (_D = state.service) == null ? void 0 : _D.cacheItem) == null ? void 0 : _E._data) == null ? void 0 : _F.capacitys
808
+ (_G = (_F = (_E = state.service) == null ? void 0 : _E.cacheItem) == null ? void 0 : _F._data) == null ? void 0 : _G.capacitys
785
809
  ]);
786
810
  const hiddenQuantity = (0, import_react.useMemo)(() => {
787
811
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null));
@@ -861,10 +885,10 @@ var Info = (_, ref) => {
861
885
  import_utils.locales.getText("pisell2.text.apply")
862
886
  )
863
887
  );
864
- }, [(_G = state.service.resourcesOrigin) == null ? void 0 : _G.length, isNormalProduct]);
888
+ }, [(_H = state.service.resourcesOrigin) == null ? void 0 : _H.length, isNormalProduct]);
865
889
  console.log("render edit");
866
890
  console.log(
867
- state.service.editModal && !((_H = state.service.cacheItem) == null ? void 0 : _H.autoClose),
891
+ state.service.editModal && !((_I = state.service.cacheItem) == null ? void 0 : _I.autoClose),
868
892
  performance.now() - window.pp1,
869
893
  "打开商品1"
870
894
  );
@@ -966,7 +990,7 @@ var Info = (_, ref) => {
966
990
  const drawerOpen = (0, import_react.useMemo)(() => {
967
991
  var _a2;
968
992
  return !isNoSpecAndPackage && state.service.editModal && !((_a2 = state.service.cacheItem) == null ? void 0 : _a2.autoClose);
969
- }, [isNoSpecAndPackage, state.service.editModal, (_I = state.service.cacheItem) == null ? void 0 : _I.autoClose]);
993
+ }, [isNoSpecAndPackage, state.service.editModal, (_J = state.service.cacheItem) == null ? void 0 : _J.autoClose]);
970
994
  (0, import_react.useEffect)(() => {
971
995
  let timer = null;
972
996
  if (drawerOpen) {
@@ -1016,7 +1040,7 @@ var Info = (_, ref) => {
1016
1040
  display: currentTab === "batch_edit" ? "block" : "none"
1017
1041
  }
1018
1042
  },
1019
- /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, productName, price, reason, val && isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, startTime, endTime, duration, resource, capacity, hiddenQuantity), isNormalProduct && quantity, !(0, import_utils4.isNormalProductByDurationSchedule)(state.service.cacheItem) && !(0, import_utils6.isWalkIn)((_K = (_J = state.client) == null ? void 0 : _J.value) == null ? void 0 : _K.id) && holder),
1043
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, productName, price, reason, val && isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, startTime, endTime, duration, resource, capacity, hiddenQuantity), isNormalProduct && quantity, !(0, import_utils4.isNormalProductByDurationSchedule)(state.service.cacheItem) && !(0, import_utils6.isWalkIn)((_L = (_K = state.client) == null ? void 0 : _K.value) == null ? void 0 : _L.id) && holder),
1020
1044
  /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "note" }, noteModalOpen && /* @__PURE__ */ import_react.default.createElement(
1021
1045
  import_noteModal.default,
1022
1046
  {
@@ -55,7 +55,7 @@ var setAutoAllocationStorage = (data) => {
55
55
  }
56
56
  };
57
57
  var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
58
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
58
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
59
59
  const discountRatio = new import_decimal.default(newTotal).div(new import_decimal.default(origin_total));
60
60
  let subTotal = new import_decimal.default(0);
61
61
  if (((_a = cacheItem._extend.other) == null ? void 0 : _a.bundle) && (0, import_utils.isArr)((_b = cacheItem._extend.other) == null ? void 0 : _b.bundle)) {
@@ -68,15 +68,18 @@ var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
68
68
  }
69
69
  if (((_e = cacheItem._extend.other) == null ? void 0 : _e.option) && (0, import_utils.isArr)((_f = cacheItem._extend.other) == null ? void 0 : _f.option)) {
70
70
  (_h = (_g = cacheItem._extend.other) == null ? void 0 : _g.option) == null ? void 0 : _h.forEach((option) => {
71
- const newPrice = new import_decimal.default(option.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
71
+ const newPrice = new import_decimal.default(option.original_price || option.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
72
72
  const quantity = option.num ?? option.quantity ?? 1;
73
73
  subTotal = subTotal.add(new import_decimal.default(newPrice).mul(quantity));
74
74
  option.price = newPrice;
75
75
  });
76
76
  }
77
77
  cacheItem._extend.price = new import_decimal.default(newTotal).sub(subTotal).toNumber();
78
- if ((_i = cacheItem._extend) == null ? void 0 : _i.priceOverride) {
79
- cacheItem._extend.total = new import_decimal.default(((_j = cacheItem._extend) == null ? void 0 : _j.priceOverride) || 0).toNumber();
78
+ if ((_j = (_i = cacheItem._extend) == null ? void 0 : _i.other) == null ? void 0 : _j.product_variant_id) {
79
+ cacheItem._extend.other.price = cacheItem._extend.price;
80
+ }
81
+ if ((_k = cacheItem._extend) == null ? void 0 : _k.priceOverride) {
82
+ cacheItem._extend.total = new import_decimal.default(((_l = cacheItem._extend) == null ? void 0 : _l.priceOverride) || 0).toNumber();
80
83
  }
81
84
  return cacheItem;
82
85
  };