@pisell/private-materials 6.4.80 → 6.4.82

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 (271) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  15. package/es/components/booking/addons/index.js +3 -3
  16. package/es/components/booking/addons/model.d.ts +10 -1
  17. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  18. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  19. package/es/components/booking/components/footer/amount.js +48 -34
  20. package/es/components/booking/components/footer/utils.d.ts +1 -0
  21. package/es/components/booking/components/footer/utils.js +55 -36
  22. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  23. package/es/components/booking/components/voucher/index.js +3 -1
  24. package/es/components/booking/forms/footer.d.ts +1 -0
  25. package/es/components/booking/forms/model.d.ts +10 -1
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  27. package/es/components/booking/forms/single/index.d.ts +1 -0
  28. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  29. package/es/components/booking/hooks/useQuotation.js +4 -1
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  31. package/es/components/booking/info/date/index.d.ts +1 -0
  32. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  33. package/es/components/booking/info/header/index.d.ts +0 -1
  34. package/es/components/booking/info/model.d.ts +10 -1
  35. package/es/components/booking/info/notes/index.d.ts +1 -0
  36. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  37. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  38. package/es/components/booking/info/service2/utils.d.ts +1 -1
  39. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  41. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  42. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  43. package/es/components/booking/info2/service/editService/index.js +16 -6
  44. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  45. package/es/components/booking/info2/service/editService/utils.js +66 -0
  46. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  47. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  48. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  49. package/es/components/booking/model.d.ts +9 -1
  50. package/es/components/booking/notes/model.d.ts +10 -1
  51. package/es/components/booking/payments/model.d.ts +10 -1
  52. package/es/components/booking/utils.d.ts +2 -2
  53. package/es/components/checkout/components/AmountSummary/index.less +4 -5
  54. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  55. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  56. package/es/components/eftposPay/app.d.ts +0 -1
  57. package/es/components/eftposPay/hooks.d.ts +1 -1
  58. package/es/components/eftposPay/index.d.ts +0 -1
  59. package/es/components/eftposPay/store/index.d.ts +5 -5
  60. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  73. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  78. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  79. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  80. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  81. package/es/components/index.d.ts +24 -0
  82. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  83. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  84. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  87. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  88. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  89. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  90. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  91. package/es/components/pay/toC/locales.d.ts +301 -0
  92. package/es/components/pay/toC/model.d.ts +9 -1
  93. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  94. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  95. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  96. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  97. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  98. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  99. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  100. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  101. package/es/components/schedules/model.d.ts +9 -1
  102. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  103. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  104. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  105. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  106. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  107. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  108. package/es/components/shoppingCart/index.d.ts +1 -0
  109. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  110. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  111. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  112. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  113. package/es/components/systemSettings/registry/services.d.ts +77 -0
  114. package/es/components/systemSettings/registry/types.d.ts +126 -0
  115. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  116. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  117. package/es/components/taxSelect/index.d.ts +0 -1
  118. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  119. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  120. package/es/components/wallet/Detail/model.d.ts +13 -1
  121. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  122. package/es/components/wallet/PointCard/model.d.ts +13 -1
  123. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  124. package/es/components/wallet/Voucher/model.d.ts +13 -1
  125. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  126. package/es/components/wallet/model.d.ts +9 -1
  127. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  128. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  129. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  130. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  131. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  132. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  133. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  134. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  135. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  136. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  137. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  138. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  139. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
  140. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  141. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  142. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  143. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  144. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  145. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  146. package/lib/components/booking/addons/index.js +1 -1
  147. package/lib/components/booking/addons/model.d.ts +10 -1
  148. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  149. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  150. package/lib/components/booking/components/footer/amount.js +29 -15
  151. package/lib/components/booking/components/footer/utils.d.ts +1 -0
  152. package/lib/components/booking/components/footer/utils.js +21 -4
  153. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  154. package/lib/components/booking/components/voucher/index.js +4 -2
  155. package/lib/components/booking/forms/footer.d.ts +1 -0
  156. package/lib/components/booking/forms/model.d.ts +10 -1
  157. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  158. package/lib/components/booking/forms/single/index.d.ts +1 -0
  159. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  160. package/lib/components/booking/hooks/useQuotation.js +2 -1
  161. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  162. package/lib/components/booking/info/date/index.d.ts +1 -0
  163. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  164. package/lib/components/booking/info/header/index.d.ts +0 -1
  165. package/lib/components/booking/info/model.d.ts +10 -1
  166. package/lib/components/booking/info/notes/index.d.ts +1 -0
  167. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  168. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  169. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  170. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  171. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  172. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  173. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  174. package/lib/components/booking/info2/service/editService/index.js +12 -3
  175. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  176. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  177. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  178. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  179. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  180. package/lib/components/booking/model.d.ts +9 -1
  181. package/lib/components/booking/notes/model.d.ts +10 -1
  182. package/lib/components/booking/payments/model.d.ts +10 -1
  183. package/lib/components/booking/utils.d.ts +2 -2
  184. package/lib/components/checkout/components/AmountSummary/index.less +4 -5
  185. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  186. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  187. package/lib/components/eftposPay/app.d.ts +0 -1
  188. package/lib/components/eftposPay/hooks.d.ts +1 -1
  189. package/lib/components/eftposPay/index.d.ts +0 -1
  190. package/lib/components/eftposPay/store/index.d.ts +5 -5
  191. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  192. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  193. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  194. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  195. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  196. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  197. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  198. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  200. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  201. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  202. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  203. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  204. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  205. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  206. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  207. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  208. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  209. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  210. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  211. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  212. package/lib/components/index.d.ts +24 -0
  213. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  214. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  215. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  216. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  217. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  218. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  219. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  220. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  221. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  222. package/lib/components/pay/toC/locales.d.ts +301 -0
  223. package/lib/components/pay/toC/model.d.ts +9 -1
  224. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  225. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  226. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  227. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  228. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  229. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  230. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  231. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  232. package/lib/components/schedules/model.d.ts +9 -1
  233. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  234. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  235. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  236. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  237. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  238. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  239. package/lib/components/shoppingCart/index.d.ts +1 -0
  240. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  241. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  242. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  243. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  244. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  245. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  246. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  247. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  248. package/lib/components/taxSelect/index.d.ts +0 -1
  249. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  250. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  251. package/lib/components/wallet/Detail/model.d.ts +13 -1
  252. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  253. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  254. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  255. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  256. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  257. package/lib/components/wallet/model.d.ts +9 -1
  258. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  259. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  260. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  261. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  262. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  263. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  264. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  265. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  266. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  267. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  268. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  269. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  270. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
  271. package/package.json +3 -3
@@ -53,6 +53,7 @@ var import_utils5 = require("../../../info/utils");
53
53
  var import_utils6 = require("../../../utils");
54
54
  var import_utilsByBooking = require("../../utilsByBooking");
55
55
  var import_utils7 = require("../addService/utils");
56
+ var import_utils8 = require("./utils");
56
57
  var import_noteModal = __toESM(require("../../../../../plus/noteModal"));
57
58
  var import_priceKeyboard = require("../../../../../pro/priceKeyboard");
58
59
  var submitLock = false;
@@ -187,7 +188,7 @@ var Info = (_, ref) => {
187
188
  form.setFieldsValue({ discount });
188
189
  };
189
190
  const onFinish = (values) => {
190
- var _a2, _b2, _c2, _d2;
191
+ var _a2, _b2, _c2, _d2, _e2, _f2;
191
192
  let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
192
193
  if (isShowTimeAndResource && !isSuccess) {
193
194
  return;
@@ -222,19 +223,27 @@ var Info = (_, ref) => {
222
223
  _item._time = (/* @__PURE__ */ new Date()).getTime();
223
224
  _item._serviceKey = (0, import_utils3.genServiceKey)(_item);
224
225
  let _id = _item == null ? void 0 : _item._id;
226
+ _item = (0, import_utils8.setProductPrice)(_item, {
227
+ newTotal: values.total,
228
+ origin_total: (_c2 = _item._extend) == null ? void 0 : _c2.origin_total
229
+ });
225
230
  if (!_list.some((d) => d._id === _id)) {
226
231
  const detail = (0, import_utils3.addService)(_list, _item, state);
227
232
  _list = detail.list;
228
233
  } else {
229
234
  if (isChangeTotal.current) {
230
235
  delete _item.discount_list;
236
+ _item = (0, import_utils8.setProductPrice)(_item, {
237
+ newTotal: values.total,
238
+ origin_total: (_d2 = _item._extend) == null ? void 0 : _d2.origin_total
239
+ });
231
240
  }
232
241
  _list = _list.map((d) => d._id === _id ? { ..._item, new: 0 } : d);
233
242
  }
234
243
  (0, import_utils6.deleteCacheParams)();
235
244
  console.log("_onFinish", _list);
236
245
  form.resetFields();
237
- if (!!((_c2 = state.service.cacheItem) == null ? void 0 : _c2.new)) {
246
+ if (!!((_e2 = state.service.cacheItem) == null ? void 0 : _e2.new)) {
238
247
  window.dispatchEvent(
239
248
  new CustomEvent("onAddNewService", {
240
249
  detail: {
@@ -243,7 +252,7 @@ var Info = (_, ref) => {
243
252
  })
244
253
  );
245
254
  }
246
- (_d2 = window.closeBookingEditModal) == null ? void 0 : _d2.call(window);
255
+ (_f2 = window.closeBookingEditModal) == null ? void 0 : _f2.call(window);
247
256
  dispatch({
248
257
  type: "setService",
249
258
  payload: {
@@ -11,3 +11,18 @@ export declare const getAutoAllocationStorage: (id: string | number) => any;
11
11
  export declare const setAutoAllocationStorage: (data: {
12
12
  [key: string]: boolean;
13
13
  }) => void;
14
+ /**
15
+ * 手动折扣后给商品价格和子商品价格重新计算
16
+ *
17
+ * 计算逻辑:
18
+ * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
19
+ * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
20
+ *
21
+ * @param cacheItem - 缓存的商品项
22
+ * @param newTotal - 折扣后的新总价
23
+ * @param origin_total - 原始总价
24
+ */
25
+ export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
26
+ newTotal: number;
27
+ origin_total: number;
28
+ }) => any;
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,21 +16,32 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
 
19
29
  // src/components/booking/info2/service/editService/utils.tsx
20
30
  var utils_exports = {};
21
31
  __export(utils_exports, {
22
32
  getAutoAllocationStorage: () => getAutoAllocationStorage,
23
- setAutoAllocationStorage: () => setAutoAllocationStorage
33
+ setAutoAllocationStorage: () => setAutoAllocationStorage,
34
+ setProductPrice: () => setProductPrice
24
35
  });
25
36
  module.exports = __toCommonJS(utils_exports);
26
37
  var import_utils = require("@pisell/utils");
38
+ var import_utils2 = require("@pisell/utils");
39
+ var import_decimal = __toESM(require("decimal.js"));
27
40
  var getAutoAllocationStorage = (id) => {
28
41
  const value = localStorage.getItem("resource-auto-allocation");
29
42
  if (value) {
30
43
  const valueObj = JSON.parse(value);
31
- return (0, import_utils.isBoolean)(valueObj[id]) ? valueObj[id] : true;
44
+ return (0, import_utils2.isBoolean)(valueObj[id]) ? valueObj[id] : true;
32
45
  }
33
46
  return true;
34
47
  };
@@ -41,8 +54,32 @@ var setAutoAllocationStorage = (data) => {
41
54
  localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...data }));
42
55
  }
43
56
  };
57
+ var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
58
+ var _a, _b, _c, _d, _e, _f, _g, _h;
59
+ const discountRatio = new import_decimal.default(newTotal).div(new import_decimal.default(origin_total));
60
+ let subTotal = new import_decimal.default(0);
61
+ if (((_a = cacheItem._extend.other) == null ? void 0 : _a.bundle) && (0, import_utils.isArr)((_b = cacheItem._extend.other) == null ? void 0 : _b.bundle)) {
62
+ (_d = (_c = cacheItem._extend.other) == null ? void 0 : _c.bundle) == null ? void 0 : _d.forEach((bundle) => {
63
+ const newPrice = new import_decimal.default(bundle.original_price || bundle.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
64
+ const quantity = bundle.num ?? bundle.quantity ?? 1;
65
+ subTotal = subTotal.add(new import_decimal.default(newPrice).mul(quantity));
66
+ bundle.price = newPrice;
67
+ });
68
+ }
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
+ (_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();
72
+ const quantity = option.num ?? option.quantity ?? 1;
73
+ subTotal = subTotal.add(new import_decimal.default(newPrice).mul(quantity));
74
+ option.price = newPrice;
75
+ });
76
+ }
77
+ cacheItem._extend.price = new import_decimal.default(newTotal).sub(subTotal).toNumber();
78
+ return cacheItem;
79
+ };
44
80
  // Annotate the CommonJS export names for ESM import in node:
45
81
  0 && (module.exports = {
46
82
  getAutoAllocationStorage,
47
- setAutoAllocationStorage
83
+ setAutoAllocationStorage,
84
+ setProductPrice
48
85
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface DurationProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
166
166
  export declare const getDuration: (duration: number | {
167
167
  type: string;
168
168
  value: number;
169
- }) => number | {
169
+ }) => number | "flexible" | {
170
170
  type: string;
171
171
  value: number;
172
- } | "flexible";
172
+ };
173
173
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
174
174
  export declare const getIsEdit: (state: any) => boolean;
175
175
  export {};
@@ -248,7 +248,6 @@
248
248
 
249
249
  .balance-due-label {
250
250
  font-size: 16px;
251
- color: #7f56da;
252
251
  font-weight: 400;
253
252
  line-height: 1.5;
254
253
  margin-bottom: 4px;
@@ -256,7 +255,7 @@
256
255
 
257
256
  .balance-due-amount {
258
257
  font-size: 14px;
259
- font-weight: 400;
258
+ font-weight: 600;
260
259
  color: #7f56da;
261
260
  line-height: 0.75;
262
261
  text-decoration: underline;
@@ -272,13 +271,13 @@
272
271
  .pay-text {
273
272
  font-size: 16px;
274
273
  font-weight: 500;
275
- color: #7f56da;
276
274
  letter-spacing: 0.09375em;
275
+ margin-top: 12px;
277
276
  }
278
277
 
279
278
  .pay-amount {
280
- font-size: 32px;
281
- font-weight: 400;
279
+ font-size: 36px;
280
+ font-weight: 600;
282
281
  color: #1e1830;
283
282
  line-height: 0.75;
284
283
  }
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "warn" | "success" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
301
+ action?: "pay" | "amount" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: () => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EmptyHolderModal: (props: any) => JSX.Element;
3
4
  export default EmptyHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Event: () => JSX.Element;
3
4
  export default Event;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: () => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Information: () => JSX.Element;
3
4
  export default Information;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const OrderProductModal: (props: any) => JSX.Element;
3
4
  export default OrderProductModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
2
3
  export default RemoveOptionConfirmModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resource: () => JSX.Element;
3
4
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
4
  export default ScheduleTimeItem;
@@ -0,0 +1,24 @@
1
+ import Login from './login';
2
+ import BookingInfo from './booking/info/index';
3
+ import Booking from './booking';
4
+ import BookingNotes from './booking/notes';
5
+ import BookingAddons from './booking/addons';
6
+ import BookingForms from './booking/forms';
7
+ import Schedules from './schedules';
8
+ import ProductExtension from './productExtension';
9
+ import RuleSetting from './ruleSetting';
10
+ import TaxSelect from './taxSelect';
11
+ import ToCPay from './pay/toC';
12
+ import WalletList from './walletList';
13
+ import Wallet from './wallet';
14
+ import WorkspaceListDetail from './workSpaceListDetail/';
15
+ import WorkspaceList from './workSpaceList';
16
+ import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
+ import SubTotal from './subTotal';
18
+ import EditBookingModal from './booking/editBookingModal';
19
+ import StepController from './stepController';
20
+ import PinModal from './pinModal';
21
+ import PinVerifyModal from './pinVerifyModal';
22
+ import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
23
+ import Registry from './systemSettings/registry';
24
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ToBPayTitle: (props: {
3
2
  amount: number | string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
4
3
  export default ThreedsLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PageLoading: () => JSX.Element;
4
3
  export default PageLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PaymentRequestForm: () => JSX.Element | null;
4
3
  export default PaymentRequestForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {