@pisell/private-materials 6.5.11 → 6.5.13

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 (425) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +3 -3
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +3 -3
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Services/index.js +36 -18
  18. package/es/components/appointmentBooking/hooks.js +6 -0
  19. package/es/components/booking/addons/model.d.ts +1 -10
  20. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  21. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  22. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  23. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  24. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  25. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  26. package/es/components/booking/components/footer/index.js +12 -1
  27. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  28. package/es/components/booking/editBookingModal/index.js +8 -2
  29. package/es/components/booking/forms/footer.d.ts +0 -1
  30. package/es/components/booking/forms/model.d.ts +1 -10
  31. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  32. package/es/components/booking/forms/single/index.d.ts +0 -1
  33. package/es/components/booking/forms/table/index.d.ts +0 -1
  34. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  35. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  36. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  37. package/es/components/booking/info/date/index.d.ts +0 -1
  38. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  39. package/es/components/booking/info/model.d.ts +1 -10
  40. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  41. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  42. package/es/components/booking/info/service/like/index.d.ts +0 -1
  43. package/es/components/booking/info/service2/utils.d.ts +1 -1
  44. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  45. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  46. package/es/components/booking/locales.d.ts +6 -0
  47. package/es/components/booking/locales.js +12 -0
  48. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  49. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  50. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  51. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  52. package/es/components/booking/model.d.ts +1 -9
  53. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  54. package/es/components/booking/notes/model.d.ts +1 -10
  55. package/es/components/booking/payments/model.d.ts +1 -10
  56. package/es/components/booking/utils.d.ts +2 -2
  57. package/es/components/checkout/PaymentModal.js +79 -65
  58. package/es/components/checkout/components/AmountSummary/index.js +4 -4
  59. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  60. package/es/components/checkout/components/CashPaymentModule/index.js +14 -10
  61. package/es/components/checkout/components/PaymentDetailModal/index.js +5 -14
  62. package/es/components/checkout/components/PaymentOptionsModule/index.js +4 -1
  63. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  64. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  65. package/es/components/eftpos/form/index.d.ts +0 -1
  66. package/es/components/eftpos/group/index.d.ts +0 -1
  67. package/es/components/eftpos/hooks.d.ts +0 -1
  68. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  69. package/es/components/eftpos/icon/device.d.ts +0 -1
  70. package/es/components/eftpos/index.d.ts +0 -1
  71. package/es/components/eftpos/pos.d.ts +0 -1
  72. package/es/components/eftpos/receipt/index.d.ts +0 -1
  73. package/es/components/eftposPay/amount.d.ts +1 -2
  74. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  75. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  76. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  77. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  78. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  79. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  80. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  81. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  82. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  83. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  84. package/es/components/eftposPay/device.d.ts +1 -1
  85. package/es/components/eftposPay/hooks.d.ts +2 -2
  86. package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
  87. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +60 -17
  88. package/es/components/eftposPay/pay.d.ts +0 -1
  89. package/es/components/eftposPay/payo/config.d.ts +0 -1
  90. package/es/components/eftposPay/payo/config.js +10 -10
  91. package/es/components/eftposPay/serve.js +1 -1
  92. package/es/components/eftposPay/store/index.d.ts +6 -6
  93. package/es/components/eftposPay/tip.d.ts +0 -1
  94. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  95. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  96. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  97. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  103. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  104. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  105. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  106. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  107. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  108. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  109. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  110. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  111. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  112. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  113. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  114. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  115. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  116. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  117. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  118. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  119. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  120. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  121. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  122. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  123. package/es/components/index.d.ts +3 -1
  124. package/es/components/index.js +3 -1
  125. package/es/components/login/index.d.ts +0 -1
  126. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
  127. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  128. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  129. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  130. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  131. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
  132. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  133. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
  134. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  135. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
  136. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  137. package/es/components/pay/toC/model.d.ts +1 -9
  138. package/es/components/pay/toC/utils.js +1 -1
  139. package/es/components/pinModal/hooks.d.ts +7 -0
  140. package/es/components/pinModal/hooks.js +65 -0
  141. package/es/components/pinModal/index.d.ts +4 -0
  142. package/es/components/pinModal/index.js +98 -0
  143. package/es/components/pinModal/index.less +44 -0
  144. package/es/components/pinModal/locales.d.ts +27 -0
  145. package/es/components/pinModal/locales.js +26 -0
  146. package/es/components/pinModal/serve.d.ts +6 -0
  147. package/es/components/pinModal/serve.js +11 -0
  148. package/es/components/pinModal/types.d.ts +0 -0
  149. package/es/components/pinModal/types.js +0 -0
  150. package/es/components/pinVerifyModal/hooks.d.ts +7 -0
  151. package/es/components/pinVerifyModal/hooks.js +80 -0
  152. package/es/components/pinVerifyModal/index.d.ts +5 -0
  153. package/es/components/pinVerifyModal/index.js +218 -0
  154. package/es/components/pinVerifyModal/index.less +92 -0
  155. package/es/components/pinVerifyModal/locales.d.ts +24 -0
  156. package/es/components/pinVerifyModal/locales.js +23 -0
  157. package/es/components/pinVerifyModal/types.d.ts +33 -0
  158. package/es/components/pinVerifyModal/types.js +1 -0
  159. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  160. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  161. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  162. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  163. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  164. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  165. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  166. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  167. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  168. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  169. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  170. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  171. package/es/components/schedules/calendar/index.d.ts +0 -1
  172. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  173. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  174. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  175. package/es/components/schedules/model.d.ts +1 -9
  176. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  177. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  178. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  179. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  180. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  181. package/es/components/schedules/products/index.d.ts +0 -1
  182. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  183. package/es/components/schedules/products/list/index.d.ts +0 -1
  184. package/es/components/schedules/resources/index.d.ts +0 -1
  185. package/es/components/schedules/resources/list/index.d.ts +0 -1
  186. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  187. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  188. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  189. package/es/components/schedules/schedules/index.d.ts +0 -1
  190. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  191. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  192. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  193. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  194. package/es/components/shoppingCart/index.d.ts +0 -1
  195. package/es/components/ticketBooking/components/ticketBooking/index.js +56 -10
  196. package/es/components/ticketBooking/components/timeBar/index.js +2 -1
  197. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  198. package/es/components/wallet/Detail/model.d.ts +1 -13
  199. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  200. package/es/components/wallet/PointCard/model.d.ts +1 -13
  201. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  202. package/es/components/wallet/Voucher/model.d.ts +1 -13
  203. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  204. package/es/components/wallet/model.d.ts +1 -9
  205. package/es/components/walletList/index.js +20 -2
  206. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  207. package/es/index.d.ts +2 -0
  208. package/es/index.js +3 -1
  209. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  210. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  211. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  212. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  213. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  214. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  215. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  216. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  217. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  218. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  219. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  220. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  221. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  222. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  223. package/lib/components/appointmentBooking/components/Services/index.js +13 -3
  224. package/lib/components/appointmentBooking/hooks.js +6 -0
  225. package/lib/components/booking/addons/model.d.ts +1 -10
  226. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  227. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  228. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  229. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  230. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  231. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  232. package/lib/components/booking/components/footer/index.js +15 -2
  233. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  234. package/lib/components/booking/editBookingModal/index.js +6 -1
  235. package/lib/components/booking/forms/footer.d.ts +0 -1
  236. package/lib/components/booking/forms/model.d.ts +1 -10
  237. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  238. package/lib/components/booking/forms/single/index.d.ts +0 -1
  239. package/lib/components/booking/forms/table/index.d.ts +0 -1
  240. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  241. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  242. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  243. package/lib/components/booking/info/date/index.d.ts +0 -1
  244. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  245. package/lib/components/booking/info/model.d.ts +1 -10
  246. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  247. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  248. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  249. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  250. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  251. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  252. package/lib/components/booking/locales.d.ts +6 -0
  253. package/lib/components/booking/locales.js +6 -0
  254. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  255. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  256. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  257. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  258. package/lib/components/booking/model.d.ts +1 -9
  259. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  260. package/lib/components/booking/notes/model.d.ts +1 -10
  261. package/lib/components/booking/payments/model.d.ts +1 -10
  262. package/lib/components/booking/utils.d.ts +2 -2
  263. package/lib/components/checkout/PaymentModal.js +9 -3
  264. package/lib/components/checkout/components/AmountSummary/index.js +4 -4
  265. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  266. package/lib/components/checkout/components/CashPaymentModule/index.js +6 -3
  267. package/lib/components/checkout/components/PaymentDetailModal/index.js +5 -10
  268. package/lib/components/checkout/components/PaymentOptionsModule/index.js +3 -1
  269. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  270. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  271. package/lib/components/eftpos/form/index.d.ts +0 -1
  272. package/lib/components/eftpos/group/index.d.ts +0 -1
  273. package/lib/components/eftpos/hooks.d.ts +0 -1
  274. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  275. package/lib/components/eftpos/icon/device.d.ts +0 -1
  276. package/lib/components/eftpos/index.d.ts +0 -1
  277. package/lib/components/eftpos/pos.d.ts +0 -1
  278. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  279. package/lib/components/eftposPay/amount.d.ts +1 -2
  280. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  281. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  282. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  283. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  284. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  285. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  286. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  287. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  288. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  289. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  290. package/lib/components/eftposPay/device.d.ts +1 -1
  291. package/lib/components/eftposPay/hooks.d.ts +2 -2
  292. package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
  293. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +59 -15
  294. package/lib/components/eftposPay/pay.d.ts +0 -1
  295. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  296. package/lib/components/eftposPay/payo/config.js +9 -9
  297. package/lib/components/eftposPay/serve.js +1 -1
  298. package/lib/components/eftposPay/store/index.d.ts +6 -6
  299. package/lib/components/eftposPay/tip.d.ts +0 -1
  300. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  301. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  302. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  303. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  304. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  305. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  306. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  307. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  308. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  309. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  310. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  311. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  312. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  313. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  314. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  315. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  316. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  317. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  318. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  319. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  320. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  321. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  322. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  323. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  324. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  325. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  326. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  327. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  328. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  329. package/lib/components/index.d.ts +3 -1
  330. package/lib/components/index.js +6 -0
  331. package/lib/components/login/index.d.ts +0 -1
  332. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  333. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  334. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  335. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  336. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  337. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
  338. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  339. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
  340. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  341. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
  342. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  343. package/lib/components/pay/toC/model.d.ts +1 -9
  344. package/lib/components/pay/toC/utils.js +1 -1
  345. package/lib/components/pinModal/hooks.d.ts +7 -0
  346. package/lib/components/pinModal/hooks.js +85 -0
  347. package/lib/components/pinModal/index.d.ts +4 -0
  348. package/lib/components/pinModal/index.js +88 -0
  349. package/lib/components/pinModal/index.less +44 -0
  350. package/lib/components/pinModal/locales.d.ts +27 -0
  351. package/lib/components/pinModal/locales.js +50 -0
  352. package/lib/components/pinModal/serve.d.ts +6 -0
  353. package/lib/components/pinModal/serve.js +37 -0
  354. package/lib/components/pinModal/types.d.ts +0 -0
  355. package/lib/components/pinModal/types.js +0 -0
  356. package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
  357. package/lib/components/pinVerifyModal/hooks.js +93 -0
  358. package/lib/components/pinVerifyModal/index.d.ts +5 -0
  359. package/lib/components/pinVerifyModal/index.js +230 -0
  360. package/lib/components/pinVerifyModal/index.less +92 -0
  361. package/lib/components/pinVerifyModal/locales.d.ts +24 -0
  362. package/lib/components/pinVerifyModal/locales.js +47 -0
  363. package/lib/components/pinVerifyModal/types.d.ts +33 -0
  364. package/lib/components/pinVerifyModal/types.js +17 -0
  365. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  366. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  367. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  368. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  369. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  370. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  371. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  372. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  373. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  374. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  375. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  376. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  377. package/lib/components/schedules/calendar/index.d.ts +0 -1
  378. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  379. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  380. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  381. package/lib/components/schedules/model.d.ts +1 -9
  382. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  383. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  384. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  385. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  386. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  387. package/lib/components/schedules/products/index.d.ts +0 -1
  388. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  389. package/lib/components/schedules/products/list/index.d.ts +0 -1
  390. package/lib/components/schedules/resources/index.d.ts +0 -1
  391. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  392. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  393. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  394. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  395. package/lib/components/schedules/schedules/index.d.ts +0 -1
  396. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  397. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  398. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  399. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  400. package/lib/components/shoppingCart/index.d.ts +0 -1
  401. package/lib/components/ticketBooking/components/ticketBooking/index.js +52 -5
  402. package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
  403. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  404. package/lib/components/wallet/Detail/model.d.ts +1 -13
  405. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  406. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  407. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  408. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  409. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  410. package/lib/components/wallet/model.d.ts +1 -9
  411. package/lib/components/walletList/index.js +19 -2
  412. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  413. package/lib/index.d.ts +2 -0
  414. package/lib/index.js +6 -0
  415. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  416. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  417. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  418. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  419. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  420. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  421. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  422. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  423. package/lowcode/pin-modal/meta.ts +37 -0
  424. package/lowcode/pin-verify-modal/meta.ts +80 -0
  425. package/package.json +1 -1
@@ -95,20 +95,27 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
95
95
  delete product.option;
96
96
  if (isRetailTemplate) {
97
97
  if (data == null ? void 0 : data.isCancel) return;
98
- appointmentBooking.storeProduct(product);
98
+ const res = appointmentBooking.storeProduct(product);
99
+ if (!res.success && res.errorCode === "not_enough_stock") {
100
+ return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.stock"));
101
+ }
99
102
  return;
100
103
  }
101
104
  const session = data == null ? void 0 : data.session;
102
105
  if (session) {
103
106
  const startDate = (0, import_dayjs.default)(session == null ? void 0 : session.start_at).format("YYYY-MM-DD");
104
107
  const endDate = (0, import_dayjs.default)(session == null ? void 0 : session.end_at).format("YYYY-MM-DD");
105
- appointmentBooking.addProductToCart({
108
+ const res = appointmentBooking.addProductToCart({
106
109
  product: { ...product },
107
110
  date: {
108
111
  startTime: `${startDate} ${session == null ? void 0 : session.start_time}`,
109
112
  endTime: `${endDate} ${session == null ? void 0 : session.end_time}`
110
113
  }
111
114
  });
115
+ if (!res.success && res.errorCode === "not_enough_stock") {
116
+ return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.stock"));
117
+ }
118
+ appointmentBooking.closeProductDetail();
112
119
  await appointmentBooking.getAvailableDate({
113
120
  startDate,
114
121
  endDate
@@ -121,7 +128,10 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
121
128
  import_utils.locales.getText("pisell2.appointment.no.available.service")
122
129
  );
123
130
  }
124
- appointmentBooking.storeProduct(product);
131
+ const res = appointmentBooking.storeProduct(product);
132
+ if (!res.success && res.errorCode === "not_enough_stock") {
133
+ return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.stock"));
134
+ }
125
135
  if (type === "duration") {
126
136
  await appointmentBooking.getAvailableDate();
127
137
  }
@@ -189,6 +189,12 @@ var useAppointmentBookingStep = () => {
189
189
  if (!result) {
190
190
  return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.date"));
191
191
  }
192
+ const capacityResult = appointmentBooking.checkMaxDurationCapacity();
193
+ if (!capacityResult.success) {
194
+ const getMessage = import_utils.locales.getText("pisell2.appointment.unuse.capacity");
195
+ const message = typeof getMessage === "function" ? getMessage(capacityResult.minAvailableCount) : getMessage;
196
+ return (0, import_utils2.Toast)(message);
197
+ }
192
198
  }
193
199
  if (!isRetailTemplate && (currentKey == null ? void 0 : currentKey.startsWith("select-resource"))) {
194
200
  const { hasError, updatedCartList } = (0, import_utils2.checkAndMarkCartRenderError)(currentSelectedResources, appointmentBooking, utils);
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 空状态
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
4
3
  export default FooterMenus;
@@ -593,7 +593,7 @@ var Footer = (props) => {
593
593
  messageShow = true,
594
594
  noSubmit = false
595
595
  }) => {
596
- var _a2;
596
+ var _a2, _b2, _c2, _d2, _e2;
597
597
  (0, import_PaymentResultToast.closeAllPaymentResultToasts)();
598
598
  if ((0, import_utils2.isDayBooking)(state)) {
599
599
  const isHasDayProducts = handleDaySubmit();
@@ -652,7 +652,20 @@ var Footer = (props) => {
652
652
  title: "saveBooking",
653
653
  content: [
654
654
  { key: "下单前数据", value: JSON.stringify(values) },
655
- { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") }
655
+ { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") },
656
+ {
657
+ key: "店铺id",
658
+ value: (_e2 = (_d2 = (_c2 = (_b2 = store == null ? void 0 : store.getState) == null ? void 0 : _b2.call(store)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e2.id
659
+ },
660
+ {
661
+ key: "shopApi",
662
+ value: JSON.stringify(window == null ? void 0 : window.shopApi, (key, value) => {
663
+ if (typeof value === "function") {
664
+ return "function";
665
+ }
666
+ return value;
667
+ })
668
+ }
656
669
  ]
657
670
  });
658
671
  if (addonsEdit) {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -113,7 +113,12 @@ var EditBookingModal = (props, ref) => {
113
113
  _cloned[_idx] = _targetResource;
114
114
  }
115
115
  } else {
116
- _cloned.push(_targetResource);
116
+ const _targetIdx = _cloned.findIndex((rs) => {
117
+ return rs.relation_id == (_targetResource == null ? void 0 : _targetResource.relation_id);
118
+ });
119
+ if (_targetIdx === -1) {
120
+ _cloned.push(_targetResource);
121
+ }
117
122
  }
118
123
  _initResourceVal = {
119
124
  ..._initResourceVal,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FooterProps {
3
2
  state: any;
4
3
  reload: () => void;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 表单选择器
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -156,6 +156,8 @@ declare const _default: {
156
156
  'pisell2.text.deposit-delete-message': string;
157
157
  'pisell2.text.deposit-paid': string;
158
158
  "pisell2.text.stock": string;
159
+ 'pisell2.appointment.unuse.stock': string;
160
+ 'pisell2.appointment.unuse.capacity': (count: number) => string;
159
161
  'pisell2.text.payment-link': string;
160
162
  'pisell2.text.send-mail': string;
161
163
  'pisell2.text.copy-to-clipboard': string;
@@ -458,6 +460,8 @@ declare const _default: {
458
460
  'pisell2.text.deposit-delete-message': string;
459
461
  'pisell2.text.deposit-paid': string;
460
462
  "pisell2.text.stock": string;
463
+ 'pisell2.appointment.unuse.stock': string;
464
+ 'pisell2.appointment.unuse.capacity': (count: number) => string;
461
465
  'pisell2.text.payment-link': string;
462
466
  'pisell2.text.send-mail': string;
463
467
  'pisell2.text.copy-to-clipboard': string;
@@ -760,6 +764,8 @@ declare const _default: {
760
764
  'pisell2.text.deposit-delete-message': string;
761
765
  'pisell2.text.deposit-paid': string;
762
766
  "pisell2.text.stock": string;
767
+ 'pisell2.appointment.unuse.stock': string;
768
+ 'pisell2.appointment.unuse.capacity': (count: number) => string;
763
769
  'pisell2.text.payment-link': string;
764
770
  'pisell2.text.send-mail': string;
765
771
  'pisell2.text.copy-to-clipboard': string;
@@ -200,6 +200,8 @@ var locales_default = {
200
200
  "pisell2.text.deposit-delete-message": "It cannot be restored after deletion. Please confirm the operation.",
201
201
  "pisell2.text.deposit-paid": "Deposit paid",
202
202
  "pisell2.text.stock": "Stock",
203
+ "pisell2.appointment.unuse.stock": "Not enough stock",
204
+ "pisell2.appointment.unuse.capacity": (count) => `Only ${count} spots available. Please reduce quantity.`,
203
205
  "pisell2.text.payment-link": "Payment link",
204
206
  "pisell2.text.send-mail": "Send email",
205
207
  "pisell2.text.copy-to-clipboard": "Copy to clipboard",
@@ -540,6 +542,8 @@ var locales_default = {
540
542
  "pisell2.text.deposit-delete-message": "删除后不可恢复,请确认操作",
541
543
  "pisell2.text.deposit-paid": "已付定金",
542
544
  "pisell2.text.stock": "库存",
545
+ "pisell2.appointment.unuse.stock": "库存不足",
546
+ "pisell2.appointment.unuse.capacity": (count) => `仅可预约 ${count} 个,请减少数量`,
543
547
  "pisell2.text.payment-link": "付款链接",
544
548
  "pisell2.text.send-mail": "发送邮件",
545
549
  "pisell2.text.copy-to-clipboard": "复制到剪切板",
@@ -880,6 +884,8 @@ var locales_default = {
880
884
  "pisell2.text.deposit-delete-message": "刪除後不可恢復,請確認操作",
881
885
  "pisell2.text.deposit-paid": "已付定金",
882
886
  "pisell2.text.stock": "庫存",
887
+ "pisell2.appointment.unuse.stock": "庫存不足",
888
+ "pisell2.appointment.unuse.capacity": (count) => `僅可預約 ${count} 個,請減少數量`,
883
889
  "pisell2.text.payment-link": "付款鏈接",
884
890
  "pisell2.text.send-mail": "發送郵件",
885
891
  "pisell2.text.copy-to-clipboard": "複製到剪切板",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -106,11 +105,4 @@ export declare const walkInData: {
106
105
  id: number;
107
106
  nickname: string;
108
107
  };
109
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
- state: FormState;
111
- } & {
112
- dispatch: (params: {
113
- type: string;
114
- payload: any;
115
- }) => void;
116
- }>;
108
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -109,6 +109,7 @@ var PaymentContent = (0, import_react.forwardRef)(
109
109
  const savePayLaterHandlerRef = (0, import_react.useRef)(null);
110
110
  const [customAmount, setCustomAmount] = (0, import_react.useState)("");
111
111
  const [balanceDueAmount, setBalanceDueAmount] = (0, import_react.useState)("");
112
+ const [balanceDueTotalAmount, setBalanceDueTotalAmount] = (0, import_react.useState)("");
112
113
  const [recommendAmounts, setRecommendAmounts] = (0, import_react.useState)([]);
113
114
  const paymentMethodsRef = (0, import_react.useRef)(null);
114
115
  const [paymentMethods, setPaymentMethods] = (0, import_react.useState)([]);
@@ -321,6 +322,7 @@ var PaymentContent = (0, import_react.forwardRef)(
321
322
  if (currentAmount) {
322
323
  setCustomAmount(currentAmount);
323
324
  setBalanceDueAmount(currentAmount);
325
+ setBalanceDueTotalAmount(orderInfo.totalAmount || "0");
324
326
  const currentNote = checkoutModule.getOrderNote();
325
327
  if (currentNote) {
326
328
  setOrderNote(currentNote);
@@ -409,6 +411,7 @@ var PaymentContent = (0, import_react.forwardRef)(
409
411
  CheckoutHooks.OnBalanceDueAmountChanged,
410
412
  (data) => {
411
413
  setBalanceDueAmount(data.newAmount);
414
+ setBalanceDueTotalAmount(data.totalAmount || "0");
412
415
  }
413
416
  );
414
417
  const orderSubmitStartUnsubscribe = core.effects.on(
@@ -453,17 +456,19 @@ var PaymentContent = (0, import_react.forwardRef)(
453
456
  );
454
457
  const paymentItems2 = await checkoutModule.getCurrentOrderPaymentItemsAsync();
455
458
  let totalAmount2 = new import_decimal.default(orderInfo2.isDeposit ? orderInfo2.depositAmount : orderInfo2.totalAmount);
456
- if (paymentItems2.length > 0 && paymentItems2.filter((n) => n.isSynced).some((item) => item.service_charge)) {
459
+ if (paymentItems2.length > 0 && paymentItems2.filter((n) => n.isSynced).some((item) => item.service_charge || item.rounding_amount)) {
457
460
  const serviceChargeTotal = paymentItems2.reduce((acc, item) => {
458
461
  var _a3, _b3;
459
462
  const chargeAmount = new import_decimal.default(((_a3 = item.service_charge) == null ? void 0 : _a3.amount) || 0);
460
463
  const chargePercentage = new import_decimal.default(((_b3 = item.service_charge) == null ? void 0 : _b3.percentage) || 0);
461
464
  const itemAmount = new import_decimal.default(item.amount || 0);
462
- const itemServiceCharge = chargeAmount.add(chargePercentage.mul(itemAmount));
465
+ let itemServiceCharge = chargeAmount.add(chargePercentage.mul(itemAmount));
466
+ console.log(itemServiceCharge);
463
467
  return acc.add(itemServiceCharge);
464
468
  }, new import_decimal.default(0));
465
469
  totalAmount2 = totalAmount2.add(serviceChargeTotal);
466
470
  }
471
+ console.log(totalAmount2, paymentItems2);
467
472
  await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
468
473
  {
469
474
  paymentStatus: "partially_paid",
@@ -937,7 +942,8 @@ var PaymentContent = (0, import_react.forwardRef)(
937
942
  amountButtons: recommendAmounts,
938
943
  customAmount,
939
944
  roundingFunction,
940
- balanceDueAmount
945
+ balanceDueAmount,
946
+ balanceDueTotalAmount
941
947
  }
942
948
  )
943
949
  ),
@@ -365,8 +365,8 @@ function AmountSummary({
365
365
  let balanceAmountValue = parseFormattedAmount(getBalanceDueAmount());
366
366
  let balanceDecimal = new import_decimal.default(balanceAmountValue);
367
367
  const syncedVoucherAmount = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
368
- if (item.voucher_id && item.isSynced && (paymentType === "regular" && item.order_payment_type !== "deposit" || paymentType === "deposit" && item.order_payment_type === "deposit")) {
369
- return acc.plus(item.amount).plus(item.rounding_amount);
368
+ if (item.isSynced && (paymentType === "regular" && item.order_payment_type !== "deposit" || paymentType === "deposit" && item.order_payment_type === "deposit")) {
369
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
370
370
  }
371
371
  return acc;
372
372
  }, new import_decimal.default(0)).toNumber();
@@ -447,7 +447,7 @@ function AmountSummary({
447
447
  if (paymentType === "regular") {
448
448
  const depositPaidAmount = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
449
449
  if (item.order_payment_type === "deposit") {
450
- return acc.plus(item.amount).plus(Math.abs(item.rounding_amount));
450
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
451
451
  }
452
452
  return acc;
453
453
  }, new import_decimal.default(0)).toNumber();
@@ -456,7 +456,7 @@ function AmountSummary({
456
456
  } else {
457
457
  const depositPaidAmount = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
458
458
  if (item.order_payment_type === "deposit") {
459
- return acc.plus(item.amount);
459
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
460
460
  }
461
461
  return acc;
462
462
  }, new import_decimal.default(0)).toNumber();
@@ -13,10 +13,12 @@ export interface CashPaymentModuleProps {
13
13
  roundingDifference: number;
14
14
  }>;
15
15
  balanceDueAmount?: string;
16
+ balanceDueTotalAmount?: string;
16
17
  syncingLock?: boolean;
17
18
  }
18
19
  export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
19
20
  disabled, // 禁用状态
20
- roundingFunction, balanceDueAmount, // 剩余支付金额
21
+ roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
22
+ balanceDueTotalAmount, // 完整订单剩余待付金额
21
23
  syncingLock, }: CashPaymentModuleProps): JSX.Element;
22
24
  export default CashPaymentModule;
@@ -52,7 +52,9 @@ function CashPaymentModule({
52
52
  // 禁用状态
53
53
  roundingFunction,
54
54
  balanceDueAmount = "0",
55
- // 剩余支付金额
55
+ // 当前阶段剩余支付金额(定金或普通支付)
56
+ balanceDueTotalAmount = "0",
57
+ // 完整订单剩余待付金额
56
58
  syncingLock = false
57
59
  // 是否锁定
58
60
  }) {
@@ -71,7 +73,7 @@ function CashPaymentModule({
71
73
  };
72
74
  (0, import_react.useEffect)(() => {
73
75
  handleKeyboardConfirm(customAmount || "");
74
- }, [customAmount, balanceDueAmount]);
76
+ }, [customAmount, balanceDueAmount, orderInfo == null ? void 0 : orderInfo.isDeposit]);
75
77
  const isAmountButtonsDisabled = disabled || Number(customAmount || 0) === 0;
76
78
  const isInputDisabled = disabled || Number(customAmount || 0) === 0;
77
79
  const handleAmountClick = (clickedAmount) => {
@@ -126,7 +128,8 @@ function CashPaymentModule({
126
128
  } else {
127
129
  const cleanValue = finalValue.replace(/[$\s]/g, "");
128
130
  const numValue = parseFloat(cleanValue);
129
- const balanceDue = parseFloat(balanceDueAmount);
131
+ debugger;
132
+ const balanceDue = parseFloat((orderInfo == null ? void 0 : orderInfo.isDeposit) ? balanceDueTotalAmount || "0" : balanceDueAmount);
130
133
  const shouldApplyRounding = Math.abs(numValue - balanceDue) < 0.01;
131
134
  let finalAmount = numValue;
132
135
  let roundingDiff = 0;
@@ -90,15 +90,10 @@ function PaymentDetailModal({
90
90
  const getTotalPaidAmount = () => {
91
91
  return paymentItems.filter((item) => !item.voucher_id || item.isSynced).reduce((total, item) => {
92
92
  const amount = new import_decimal.default(Math.abs(item.amount));
93
- const roundingAmount = new import_decimal.default(Math.abs(item.rounding_amount));
93
+ const roundingAmount = new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
94
94
  return new import_decimal.default(total).plus(amount).plus(roundingAmount).toNumber();
95
95
  }, 0);
96
96
  };
97
- const getTotalVoucherAmount = () => {
98
- return paymentItems.filter((item) => item.voucher_id).reduce((total, item) => {
99
- return new import_decimal.default(total).plus(new import_decimal.default(Math.abs(item.amount))).toNumber();
100
- }, 0);
101
- };
102
97
  const getBalanceDueAmount = () => {
103
98
  return new import_decimal.default(orderInfo.totalAmount || 0).sub(new import_decimal.default(getTotalPaidAmount())).toNumber().toFixed(2);
104
99
  };
@@ -115,10 +110,10 @@ function PaymentDetailModal({
115
110
  return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("no-payment-text") }, getText("no.payments.recorded") || "No payments recorded"));
116
111
  }
117
112
  const depositPaymentSummary = depositPayments.reduce((acc, item) => {
118
- return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Math.abs(item.rounding_amount || 0))).toNumber();
113
+ return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
119
114
  }, 0);
120
115
  const regularPaymentSummary = regularPayments.reduce((acc, item) => {
121
- return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Math.abs(item.rounding_amount || 0))).toNumber();
116
+ return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
122
117
  }, 0);
123
118
  return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-record-container") }, depositPayments.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-header") }, /* @__PURE__ */ import_react.default.createElement("div", null, getText("pisell2.subtotal.deposit") || "Deposit"), /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_utils.formatAmountWithOptions)(depositPaymentSummary, amountSymbol, {
124
119
  precision: 2,
@@ -126,7 +121,7 @@ function PaymentDetailModal({
126
121
  useThousandsSeparator: true,
127
122
  showCurrencySymbol: true
128
123
  }))), depositPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-bullet") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(
129
- new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Math.abs(item.rounding_amount))).toNumber(),
124
+ new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(),
130
125
  amountSymbol,
131
126
  {
132
127
  precision: 2,
@@ -148,7 +143,7 @@ function PaymentDetailModal({
148
143
  useThousandsSeparator: true,
149
144
  showCurrencySymbol: true
150
145
  }))), regularPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-bullet") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(
151
- new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Math.abs(item.rounding_amount))).toNumber(),
146
+ new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(),
152
147
  amountSymbol,
153
148
  {
154
149
  precision: 2,
@@ -87,8 +87,10 @@ function PaymentOptionsModule({
87
87
  }
88
88
  },
89
89
  {
90
- wait: 500
90
+ wait: 1e3,
91
91
  // 500ms 防抖延迟
92
+ leading: true,
93
+ trailing: false
92
94
  }
93
95
  );
94
96
  return /* @__PURE__ */ import_react.default.createElement(