@pisell/private-materials 6.4.49 → 6.4.51

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 (377) 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 +146 -146
  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 +5 -5
  11. package/es/components/appointmentBooking/components/Services/index.js +36 -18
  12. package/es/components/appointmentBooking/hooks.js +6 -0
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  17. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  19. package/es/components/booking/components/footer/index.js +24 -5
  20. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  21. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  22. package/es/components/booking/deposit/index.d.ts +0 -1
  23. package/es/components/booking/editBookingModal/index.js +8 -2
  24. package/es/components/booking/forms/model.d.ts +1 -10
  25. package/es/components/booking/forms/single/index.d.ts +0 -1
  26. package/es/components/booking/forms/table/index.d.ts +0 -1
  27. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  28. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  29. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  30. package/es/components/booking/info/date/index.d.ts +0 -1
  31. package/es/components/booking/info/header/index.d.ts +0 -1
  32. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  33. package/es/components/booking/info/index.d.ts +0 -1
  34. package/es/components/booking/info/model.d.ts +1 -10
  35. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  36. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  37. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  38. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  39. package/es/components/booking/info/service/like/index.d.ts +0 -1
  40. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  41. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  42. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  43. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  45. package/es/components/booking/locales.d.ts +6 -0
  46. package/es/components/booking/locales.js +12 -0
  47. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  48. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  49. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  50. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  51. package/es/components/booking/model.d.ts +1 -9
  52. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  53. package/es/components/booking/notes/model.d.ts +1 -10
  54. package/es/components/booking/payments/model.d.ts +1 -10
  55. package/es/components/booking/utils.d.ts +2 -2
  56. package/es/components/checkout/PaymentModal.js +145 -101
  57. package/es/components/checkout/components/AmountSummary/index.js +41 -6
  58. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  59. package/es/components/checkout/components/CashPaymentModule/index.js +14 -10
  60. package/es/components/checkout/components/PaymentDetailModal/index.js +72 -20
  61. package/es/components/checkout/components/PaymentDetailModal/index.less +23 -2
  62. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  63. package/es/components/checkout/hooks/useWalletPass.js +1 -0
  64. package/es/components/checkout/locales.d.ts +3 -0
  65. package/es/components/checkout/locales.js +3 -0
  66. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  67. package/es/components/eftpos/form/index.d.ts +0 -1
  68. package/es/components/eftpos/group/index.d.ts +0 -1
  69. package/es/components/eftpos/hooks.d.ts +0 -1
  70. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  71. package/es/components/eftpos/icon/device.d.ts +0 -1
  72. package/es/components/eftpos/index.d.ts +0 -1
  73. package/es/components/eftpos/pos.d.ts +0 -1
  74. package/es/components/eftpos/receipt/index.d.ts +0 -1
  75. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  76. package/es/components/eftposPay/component/alert/warn.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/hooks.d.ts +2 -2
  85. package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
  86. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +25 -4
  87. package/es/components/eftposPay/payo/config.d.ts +0 -1
  88. package/es/components/eftposPay/serve.js +1 -1
  89. package/es/components/eftposPay/store/index.d.ts +4 -4
  90. package/es/components/eftposPay/tip.d.ts +0 -1
  91. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  92. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  93. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  97. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  99. package/es/components/index.d.ts +3 -1
  100. package/es/components/index.js +3 -1
  101. package/es/components/login/index.d.ts +0 -1
  102. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  103. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  104. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
  105. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  106. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  107. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  108. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  111. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
  112. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  113. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
  114. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  115. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
  116. package/es/components/pay/toC/model.d.ts +1 -9
  117. package/es/components/pay/toC/utils.js +1 -1
  118. package/es/components/pinModal/hooks.d.ts +7 -0
  119. package/es/components/pinModal/hooks.js +65 -0
  120. package/es/components/pinModal/index.d.ts +4 -0
  121. package/es/components/pinModal/index.js +98 -0
  122. package/es/components/pinModal/index.less +44 -0
  123. package/es/components/pinModal/locales.d.ts +27 -0
  124. package/es/components/pinModal/locales.js +26 -0
  125. package/es/components/pinModal/serve.d.ts +6 -0
  126. package/es/components/pinModal/serve.js +11 -0
  127. package/es/components/pinModal/types.d.ts +0 -0
  128. package/es/components/pinModal/types.js +0 -0
  129. package/es/components/pinVerifyModal/hooks.d.ts +7 -0
  130. package/es/components/pinVerifyModal/hooks.js +80 -0
  131. package/es/components/pinVerifyModal/index.d.ts +5 -0
  132. package/es/components/pinVerifyModal/index.js +218 -0
  133. package/es/components/pinVerifyModal/index.less +92 -0
  134. package/es/components/pinVerifyModal/locales.d.ts +24 -0
  135. package/es/components/pinVerifyModal/locales.js +23 -0
  136. package/es/components/pinVerifyModal/types.d.ts +33 -0
  137. package/es/components/pinVerifyModal/types.js +1 -0
  138. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  139. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  140. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  141. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  142. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  143. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  144. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  145. package/es/components/schedules/calendar/index.d.ts +0 -1
  146. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  147. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  148. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  149. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  150. package/es/components/schedules/model.d.ts +1 -9
  151. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  152. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  153. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  154. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  155. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  156. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  157. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  158. package/es/components/schedules/products/index.d.ts +0 -1
  159. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  160. package/es/components/schedules/products/list/index.d.ts +0 -1
  161. package/es/components/schedules/resources/index.d.ts +0 -1
  162. package/es/components/schedules/resources/list/index.d.ts +0 -1
  163. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  164. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  165. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  166. package/es/components/schedules/schedules/index.d.ts +0 -1
  167. package/es/components/taxSelect/index.d.ts +0 -1
  168. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  169. package/es/components/ticketBooking/components/ticketBooking/index.js +56 -10
  170. package/es/components/ticketBooking/components/timeBar/index.js +2 -1
  171. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  172. package/es/components/wallet/Detail/model.d.ts +1 -13
  173. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  174. package/es/components/wallet/PointCard/model.d.ts +1 -13
  175. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  176. package/es/components/wallet/Voucher/model.d.ts +1 -13
  177. package/es/components/wallet/model.d.ts +1 -9
  178. package/es/components/walletList/index.js +20 -2
  179. package/es/hooks/usePaymentLogger.d.ts +0 -1
  180. package/es/index.d.ts +2 -0
  181. package/es/index.js +3 -1
  182. package/es/plus/clientName/index.d.ts +0 -1
  183. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  184. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  185. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  186. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  187. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  188. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  189. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  190. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  191. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  192. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  193. package/lib/components/appointmentBooking/components/Services/index.js +13 -3
  194. package/lib/components/appointmentBooking/hooks.js +6 -0
  195. package/lib/components/booking/addons/model.d.ts +1 -10
  196. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  197. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  198. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  199. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  200. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  201. package/lib/components/booking/components/footer/index.js +21 -3
  202. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  203. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  204. package/lib/components/booking/deposit/index.d.ts +0 -1
  205. package/lib/components/booking/editBookingModal/index.js +6 -1
  206. package/lib/components/booking/forms/model.d.ts +1 -10
  207. package/lib/components/booking/forms/single/index.d.ts +0 -1
  208. package/lib/components/booking/forms/table/index.d.ts +0 -1
  209. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  210. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  211. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  212. package/lib/components/booking/info/date/index.d.ts +0 -1
  213. package/lib/components/booking/info/header/index.d.ts +0 -1
  214. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  215. package/lib/components/booking/info/index.d.ts +0 -1
  216. package/lib/components/booking/info/model.d.ts +1 -10
  217. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  218. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  219. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  220. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  221. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  222. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  223. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  224. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  225. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  226. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  227. package/lib/components/booking/locales.d.ts +6 -0
  228. package/lib/components/booking/locales.js +6 -0
  229. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  230. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  231. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  232. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  233. package/lib/components/booking/model.d.ts +1 -9
  234. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  235. package/lib/components/booking/notes/model.d.ts +1 -10
  236. package/lib/components/booking/payments/model.d.ts +1 -10
  237. package/lib/components/booking/utils.d.ts +2 -2
  238. package/lib/components/checkout/PaymentModal.js +38 -10
  239. package/lib/components/checkout/components/AmountSummary/index.js +33 -5
  240. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  241. package/lib/components/checkout/components/CashPaymentModule/index.js +6 -3
  242. package/lib/components/checkout/components/PaymentDetailModal/index.js +49 -11
  243. package/lib/components/checkout/components/PaymentDetailModal/index.less +23 -2
  244. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  245. package/lib/components/checkout/hooks/useWalletPass.js +1 -0
  246. package/lib/components/checkout/locales.d.ts +3 -0
  247. package/lib/components/checkout/locales.js +3 -0
  248. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  249. package/lib/components/eftpos/form/index.d.ts +0 -1
  250. package/lib/components/eftpos/group/index.d.ts +0 -1
  251. package/lib/components/eftpos/hooks.d.ts +0 -1
  252. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  253. package/lib/components/eftpos/icon/device.d.ts +0 -1
  254. package/lib/components/eftpos/index.d.ts +0 -1
  255. package/lib/components/eftpos/pos.d.ts +0 -1
  256. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  257. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  258. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  259. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  260. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  261. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  262. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  263. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  264. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  265. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  266. package/lib/components/eftposPay/hooks.d.ts +2 -2
  267. package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
  268. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +16 -4
  269. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  270. package/lib/components/eftposPay/serve.js +1 -1
  271. package/lib/components/eftposPay/store/index.d.ts +4 -4
  272. package/lib/components/eftposPay/tip.d.ts +0 -1
  273. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  274. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  275. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  276. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  277. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  278. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  279. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  280. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  281. package/lib/components/index.d.ts +3 -1
  282. package/lib/components/index.js +6 -0
  283. package/lib/components/login/index.d.ts +0 -1
  284. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  285. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  286. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  287. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  288. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  289. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  290. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  291. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  292. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  293. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
  294. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  295. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
  296. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  297. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
  298. package/lib/components/pay/toC/model.d.ts +1 -9
  299. package/lib/components/pay/toC/utils.js +1 -1
  300. package/lib/components/pinModal/hooks.d.ts +7 -0
  301. package/lib/components/pinModal/hooks.js +85 -0
  302. package/lib/components/pinModal/index.d.ts +4 -0
  303. package/lib/components/pinModal/index.js +88 -0
  304. package/lib/components/pinModal/index.less +44 -0
  305. package/lib/components/pinModal/locales.d.ts +27 -0
  306. package/lib/components/pinModal/locales.js +50 -0
  307. package/lib/components/pinModal/serve.d.ts +6 -0
  308. package/lib/components/pinModal/serve.js +37 -0
  309. package/lib/components/pinModal/types.d.ts +0 -0
  310. package/lib/components/pinModal/types.js +0 -0
  311. package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
  312. package/lib/components/pinVerifyModal/hooks.js +93 -0
  313. package/lib/components/pinVerifyModal/index.d.ts +5 -0
  314. package/lib/components/pinVerifyModal/index.js +230 -0
  315. package/lib/components/pinVerifyModal/index.less +92 -0
  316. package/lib/components/pinVerifyModal/locales.d.ts +24 -0
  317. package/lib/components/pinVerifyModal/locales.js +47 -0
  318. package/lib/components/pinVerifyModal/types.d.ts +33 -0
  319. package/lib/components/pinVerifyModal/types.js +17 -0
  320. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  321. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  322. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  323. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  324. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  325. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  326. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  327. package/lib/components/schedules/calendar/index.d.ts +0 -1
  328. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  329. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  330. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  331. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  332. package/lib/components/schedules/model.d.ts +1 -9
  333. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  334. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  335. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  336. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  337. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  338. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  339. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  340. package/lib/components/schedules/products/index.d.ts +0 -1
  341. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  342. package/lib/components/schedules/products/list/index.d.ts +0 -1
  343. package/lib/components/schedules/resources/index.d.ts +0 -1
  344. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  345. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  346. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  347. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  348. package/lib/components/schedules/schedules/index.d.ts +0 -1
  349. package/lib/components/taxSelect/index.d.ts +0 -1
  350. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  351. package/lib/components/ticketBooking/components/ticketBooking/index.js +52 -5
  352. package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
  353. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  354. package/lib/components/wallet/Detail/model.d.ts +1 -13
  355. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  356. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  357. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  358. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  359. package/lib/components/wallet/model.d.ts +1 -9
  360. package/lib/components/walletList/index.js +19 -2
  361. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  362. package/lib/index.d.ts +2 -0
  363. package/lib/index.js +6 -0
  364. package/lib/plus/clientName/index.d.ts +0 -1
  365. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  366. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  367. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  368. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  369. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  370. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  371. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  372. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  373. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  374. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  375. package/lowcode/pin-modal/meta.ts +37 -0
  376. package/lowcode/pin-verify-modal/meta.ts +80 -0
  377. package/package.json +12 -12
@@ -29,6 +29,8 @@ export function CashPaymentModule(_ref) {
29
29
  roundingFunction = _ref.roundingFunction,
30
30
  _ref$balanceDueAmount = _ref.balanceDueAmount,
31
31
  balanceDueAmount = _ref$balanceDueAmount === void 0 ? '0' : _ref$balanceDueAmount,
32
+ _ref$balanceDueTotalA = _ref.balanceDueTotalAmount,
33
+ balanceDueTotalAmount = _ref$balanceDueTotalA === void 0 ? '0' : _ref$balanceDueTotalA,
32
34
  _ref$syncingLock = _ref.syncingLock,
33
35
  syncingLock = _ref$syncingLock === void 0 ? false : _ref$syncingLock;
34
36
  var _useState = useState(customAmount || ''),
@@ -56,7 +58,7 @@ export function CashPaymentModule(_ref) {
56
58
  };
57
59
  useEffect(function () {
58
60
  handleKeyboardConfirm(customAmount || '');
59
- }, [customAmount, balanceDueAmount]);
61
+ }, [customAmount, balanceDueAmount, orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.isDeposit]);
60
62
 
61
63
  // 检查是否应该禁用按钮:原本disabled为true 或者 订单金额为0
62
64
  var isAmountButtonsDisabled = disabled || Number(customAmount || 0) === 0;
@@ -119,33 +121,35 @@ export function CashPaymentModule(_ref) {
119
121
  break;
120
122
  }
121
123
  setAmount('');
122
- _context.next = 32;
124
+ _context.next = 33;
123
125
  break;
124
126
  case 13:
125
127
  // 移除可能的货币符号和多余空格
126
128
  cleanValue = finalValue.replace(/[$\s]/g, '');
127
129
  numValue = parseFloat(cleanValue); // 检查当前金额是否等于剩余支付金额
128
- balanceDue = parseFloat(balanceDueAmount);
130
+ debugger;
131
+ // 需要确认当前是否是定金模式,如果是定金模式则 balanceDue 应该为完整订单剩余待付金额
132
+ balanceDue = parseFloat(orderInfo !== null && orderInfo !== void 0 && orderInfo.isDeposit ? balanceDueTotalAmount || '0' : balanceDueAmount);
129
133
  shouldApplyRounding = Math.abs(numValue - balanceDue) < 0.01; // 使用小数精度比较
130
134
  finalAmount = numValue;
131
135
  roundingDiff = 0;
132
136
  if (!(shouldApplyRounding && roundingFunction)) {
133
- _context.next = 29;
137
+ _context.next = 30;
134
138
  break;
135
139
  }
136
- _context.next = 22;
140
+ _context.next = 23;
137
141
  return roundingFunction(numValue);
138
- case 22:
142
+ case 23:
139
143
  _result = _context.sent;
140
144
  _ref3 = _result || {}, _ref3$roundedAmount = _ref3.roundedAmount, roundedAmount = _ref3$roundedAmount === void 0 ? numValue : _ref3$roundedAmount, _ref3$roundingDiffere = _ref3.roundingDifference, roundingDifference = _ref3$roundingDiffere === void 0 ? 0 : _ref3$roundingDiffere;
141
145
  finalAmount = roundedAmount;
142
146
  roundingDiff = roundingDifference;
143
147
  console.log('应用抹零:', numValue, '->', roundedAmount, '差额:', roundingDifference);
144
- _context.next = 30;
148
+ _context.next = 31;
145
149
  break;
146
- case 29:
147
- console.log('不应用抹零,用户输入金额:', numValue, '剩余支付金额:', balanceDue);
148
150
  case 30:
151
+ console.log('不应用抹零,用户输入金额:', numValue, '剩余支付金额:', balanceDue);
152
+ case 31:
149
153
  setRoundingAmount(roundingDiff);
150
154
  if (isNaN(numValue)) {
151
155
  setAmount('');
@@ -153,7 +157,7 @@ export function CashPaymentModule(_ref) {
153
157
  setAmount(finalAmount.toString());
154
158
  console.log('设置金额为:', finalAmount);
155
159
  }
156
- case 32:
160
+ case 33:
157
161
  case "end":
158
162
  return _context.stop();
159
163
  }
@@ -12,6 +12,7 @@ import checkoutLocales from "../../locales";
12
12
  import "./index.less";
13
13
  import classNames from 'classnames';
14
14
  import useEngineContext from "../../../../hooks/useEngineContext";
15
+ import Decimal from 'decimal.js';
15
16
 
16
17
  // 小计数据类型
17
18
 
@@ -101,26 +102,21 @@ function PaymentDetailModal(_ref) {
101
102
  // 计算已支付总额 (只计算不带voucher_id的支付项)
102
103
  var getTotalPaidAmount = function getTotalPaidAmount() {
103
104
  return paymentItems.filter(function (item) {
104
- return !item.voucher_id;
105
+ return !item.voucher_id || item.isSynced;
105
106
  }).reduce(function (total, item) {
106
- return total + Math.abs(item.amount) + Math.abs(item.rounding_amount);
107
- }, 0);
108
- };
109
-
110
- // 计算优惠券扣减总额 (只计算带voucher_id的支付项)
111
- var getTotalVoucherAmount = function getTotalVoucherAmount() {
112
- return paymentItems.filter(function (item) {
113
- return item.voucher_id;
114
- }).reduce(function (total, item) {
115
- return total + Math.abs(item.amount);
107
+ var amount = new Decimal(Math.abs(item.amount));
108
+ var roundingAmount = new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
109
+ return new Decimal(total).plus(amount).plus(roundingAmount).toNumber();
116
110
  }, 0);
117
111
  };
118
112
 
119
113
  // 计算Balance Due金额 (customAmount + 所有voucher扣减金额)
120
114
  var getBalanceDueAmount = function getBalanceDueAmount() {
121
- var baseAmount = customAmount ? parseFloat(customAmount) : 0;
122
- var voucherDeductions = getTotalVoucherAmount();
123
- return baseAmount + voucherDeductions;
115
+ // debugger
116
+ // const baseAmount = customAmount ? parseFloat(customAmount) : 0;
117
+ // const voucherDeductions = getTotalVoucherAmount();
118
+ // return baseAmount + voucherDeductions;
119
+ return new Decimal(orderInfo.totalAmount || 0).sub(new Decimal(getTotalPaidAmount())).toNumber().toFixed(2);
124
120
  };
125
121
 
126
122
  // 处理 Void 按钮点击
@@ -133,25 +129,76 @@ function PaymentDetailModal(_ref) {
133
129
 
134
130
  // 渲染支付项 (只渲染不带voucher_id的支付项)
135
131
  var renderPaymentItems = function renderPaymentItems() {
132
+ var depositPayments = paymentItems.filter(function (item) {
133
+ return item.order_payment_type === 'deposit' && item.isSynced;
134
+ });
136
135
  var regularPayments = paymentItems.filter(function (item) {
137
- return !item.voucher_id;
136
+ return item.isSynced && item.order_payment_type !== 'deposit';
138
137
  });
139
- if (!paymentItems || paymentItems.length === 0 || regularPayments.length === 0) {
138
+ if (!paymentItems || paymentItems.length === 0 || regularPayments.length === 0 && depositPayments.length === 0) {
140
139
  return /*#__PURE__*/React.createElement("div", {
141
140
  className: classNames('section-content')
142
141
  }, /*#__PURE__*/React.createElement("div", {
143
142
  className: classNames('no-payment-text')
144
143
  }, getText('no.payments.recorded') || 'No payments recorded'));
145
144
  }
145
+ var depositPaymentSummary = depositPayments.reduce(function (acc, item) {
146
+ return new Decimal(acc).plus(new Decimal(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
147
+ }, 0);
148
+ var regularPaymentSummary = regularPayments.reduce(function (acc, item) {
149
+ return new Decimal(acc).plus(new Decimal(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
150
+ }, 0);
146
151
  return /*#__PURE__*/React.createElement("div", {
147
152
  className: classNames('section-content')
148
153
  }, /*#__PURE__*/React.createElement("div", {
149
154
  className: classNames('payment-record-container')
150
- }, regularPayments.map(function (item) {
155
+ }, depositPayments.length > 0 && /*#__PURE__*/React.createElement("div", {
156
+ className: classNames('payment-item-header')
157
+ }, /*#__PURE__*/React.createElement("div", null, getText('pisell2.subtotal.deposit') || 'Deposit'), /*#__PURE__*/React.createElement("div", null, formatAmountWithOptions(depositPaymentSummary, amountSymbol, {
158
+ precision: 2,
159
+ hideDecimalForWholeNumbers: false,
160
+ useThousandsSeparator: true,
161
+ showCurrencySymbol: true
162
+ }))), depositPayments.map(function (item) {
163
+ return /*#__PURE__*/React.createElement("div", {
164
+ key: item.uuid,
165
+ className: classNames('payment-item')
166
+ }, /*#__PURE__*/React.createElement("div", {
167
+ className: classNames('payment-item-bullet')
168
+ }), /*#__PURE__*/React.createElement("div", {
169
+ className: classNames('payment-item-content')
170
+ }, /*#__PURE__*/React.createElement("div", {
171
+ className: classNames('payment-item-text')
172
+ }, item.name, " - ", new Date().toLocaleDateString(), ' ', getText('pisell2.checkout.payment-detail.by') || 'by', ' ', getCustomerInfo().nickname), /*#__PURE__*/React.createElement("div", {
173
+ className: classNames('payment-item-actions')
174
+ }, /*#__PURE__*/React.createElement("div", {
175
+ className: classNames('payment-item-amount')
176
+ }, "-", formatAmountWithOptions(new Decimal(Math.abs(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(), amountSymbol, {
177
+ precision: 2,
178
+ hideDecimalForWholeNumbers: false,
179
+ useThousandsSeparator: true,
180
+ showCurrencySymbol: true
181
+ })), shouldShowVoidButton(item) && /*#__PURE__*/React.createElement("button", {
182
+ className: classNames('void-button'),
183
+ onClick: function onClick() {
184
+ return handleVoidPayment(item);
185
+ },
186
+ type: "button"
187
+ }, getText('void') || 'Void'))));
188
+ }), regularPayments.length > 0 && /*#__PURE__*/React.createElement("div", {
189
+ className: classNames('payment-item-header')
190
+ }, /*#__PURE__*/React.createElement("div", null, getText('payment.text') || 'Payment'), /*#__PURE__*/React.createElement("div", null, formatAmountWithOptions(regularPaymentSummary, amountSymbol, {
191
+ precision: 2,
192
+ hideDecimalForWholeNumbers: false,
193
+ useThousandsSeparator: true,
194
+ showCurrencySymbol: true
195
+ }))), regularPayments.map(function (item) {
151
196
  return /*#__PURE__*/React.createElement("div", {
152
197
  key: item.uuid,
153
198
  className: classNames('payment-item')
154
199
  }, /*#__PURE__*/React.createElement("div", {
200
+ className: classNames('payment-item-bullet')
201
+ }), /*#__PURE__*/React.createElement("div", {
155
202
  className: classNames('payment-item-content')
156
203
  }, /*#__PURE__*/React.createElement("div", {
157
204
  className: classNames('payment-item-text')
@@ -159,7 +206,7 @@ function PaymentDetailModal(_ref) {
159
206
  className: classNames('payment-item-actions')
160
207
  }, /*#__PURE__*/React.createElement("div", {
161
208
  className: classNames('payment-item-amount')
162
- }, "-", formatAmountWithOptions(Math.abs(item.amount) + Math.abs(item.rounding_amount), amountSymbol, {
209
+ }, "-", formatAmountWithOptions(new Decimal(Math.abs(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(), amountSymbol, {
163
210
  precision: 2,
164
211
  hideDecimalForWholeNumbers: false,
165
212
  useThousandsSeparator: true,
@@ -181,7 +228,7 @@ function PaymentDetailModal(_ref) {
181
228
 
182
229
  // 1. 添加 paymentItems 中带 voucher_id 的支付项
183
230
  // 这块先不用 下面钱包卡券应该包含了
184
- // const voucherPayments = paymentItems.filter(item => item.voucher_id);
231
+ // const voucherPayments = paymentItems.filter(item => item.voucher_id && !item.isSynced);
185
232
  // voucherPayments.forEach((item) => {
186
233
  // items.push(
187
234
  // <div key={`payment-${item.uuid}`} className={classNames('balance-item-row')}>
@@ -189,7 +236,12 @@ function PaymentDetailModal(_ref) {
189
236
  // {item.name} - {item.voucher_id}
190
237
  // </div>
191
238
  // <div className={classNames('balance-item-amount')}>
192
- // -${Math.abs(item.amount).toFixed(2)}
239
+ // -{formatAmountWithOptions(Math.abs(item.amount), amountSymbol, {
240
+ // precision: 2,
241
+ // hideDecimalForWholeNumbers: false,
242
+ // useThousandsSeparator: true,
243
+ // showCurrencySymbol: true,
244
+ // })}
193
245
  // </div>
194
246
  // </div>
195
247
  // );
@@ -263,7 +263,7 @@
263
263
  flex-direction: column;
264
264
  justify-content: flex-start;
265
265
  align-items: flex-start;
266
- gap: 16px;
266
+ gap: 8px;
267
267
  }
268
268
 
269
269
  .payment-record-header {
@@ -299,12 +299,33 @@
299
299
  line-height: 20px;
300
300
  word-wrap: break-word;
301
301
  }
302
+ .payment-item-header {
303
+ width: 100%;
304
+ color: black;
305
+ font-size: 14px;
306
+ font-weight: 500;
307
+ line-height: 20px;
308
+ word-wrap: break-word;
309
+ display: flex;
310
+ justify-content: space-between;
311
+ }
302
312
 
303
313
  .payment-item {
304
314
  align-self: stretch;
305
315
  display: flex;
306
- justify-content: space-between;
316
+ justify-content: flex-start;
307
317
  align-items: center;
318
+ gap: 8px;
319
+ margin-left: 10px;
320
+ margin-right: 64px;
321
+ }
322
+
323
+ .payment-item-bullet {
324
+ width: 6px;
325
+ height: 6px;
326
+ background-color: #475467;
327
+ border-radius: 50%;
328
+ flex-shrink: 0;
308
329
  }
309
330
 
310
331
  .payment-item-content {
@@ -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;
@@ -433,6 +433,7 @@ export var useWalletPass = function useWalletPass(props) {
433
433
  } else {
434
434
  setWalletSelect([]);
435
435
  notSetWalletSelectRef.current = false;
436
+ onSelectChange === null || onSelectChange === void 0 || onSelectChange([]);
436
437
  }
437
438
 
438
439
  // 获取折扣列表并按初始顺序排序(isSelected为true的在前)
@@ -122,6 +122,7 @@ declare const _default: {
122
122
  'pisell2.checkout.manual-discount.no-amount': string;
123
123
  'pisell2.checkout.manual-discount.has-payment-items': string;
124
124
  'pisell2.checkout.manual-discount.invalid-amount': string;
125
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
125
126
  'pisell2.checkout.wallet-balance-confirm.title': string;
126
127
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
127
128
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -281,6 +282,7 @@ declare const _default: {
281
282
  'pisell2.checkout.manual-discount.no-amount': string;
282
283
  'pisell2.checkout.manual-discount.has-payment-items': string;
283
284
  'pisell2.checkout.manual-discount.invalid-amount': string;
285
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
284
286
  'pisell2.checkout.wallet-balance-confirm.title': string;
285
287
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
286
288
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -456,6 +458,7 @@ declare const _default: {
456
458
  'pisell2.checkout.manual-discount.no-amount': string;
457
459
  'pisell2.checkout.manual-discount.has-payment-items': string;
458
460
  'pisell2.checkout.manual-discount.invalid-amount': string;
461
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
459
462
  'pisell2.checkout.wallet-balance-confirm.title': string;
460
463
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
461
464
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -154,6 +154,7 @@ export default {
154
154
  'pisell2.checkout.manual-discount.no-amount': 'No order amount available for discount',
155
155
  'pisell2.checkout.manual-discount.has-payment-items': 'Order already contains payment items, cannot manually adjust price',
156
156
  'pisell2.checkout.manual-discount.invalid-amount': 'Please enter a valid amount greater than 0',
157
+ 'pisell2.checkout.can-not-change-deposit-amount': 'Order already contains deposit payment items, cannot change deposit amount',
157
158
  // Wallet balance confirmation modal
158
159
  'pisell2.checkout.wallet-balance-confirm.title': 'Apply wallet balance now',
159
160
  'pisell2.checkout.wallet-balance-confirm.description-before': ' will be deducted from selected wallet balance, order will be marked as ',
@@ -352,6 +353,7 @@ export default {
352
353
  'pisell2.checkout.manual-discount.no-amount': '无可用的订单金额进行折扣',
353
354
  'pisell2.checkout.manual-discount.has-payment-items': '订单已经含有支付项,不可手动改价',
354
355
  'pisell2.checkout.manual-discount.invalid-amount': '请输入大于0的有效金额',
356
+ 'pisell2.checkout.can-not-change-deposit-amount': '已经含有定金支付项,不可修改定金金额',
355
357
  // Wallet balance confirmation modal
356
358
  'pisell2.checkout.wallet-balance-confirm.title': '立即应用钱包余额',
357
359
  'pisell2.checkout.wallet-balance-confirm.description-before': ' 将从所选钱包余额中扣除,订单将标记为 ',
@@ -588,6 +590,7 @@ export default {
588
590
  'pisell2.checkout.manual-discount.no-amount': '無可用的訂單金額進行折扣',
589
591
  'pisell2.checkout.manual-discount.has-payment-items': '訂單已經含有支付項,不可手動改價',
590
592
  'pisell2.checkout.manual-discount.invalid-amount': '請輸入大於0的有效金額',
593
+ 'pisell2.checkout.can-not-change-deposit-amount': '已經含有定金支付項,不可修改定金金額',
591
594
  // Wallet balance confirmation modal
592
595
  'pisell2.checkout.wallet-balance-confirm.title': '立即應用錢包餘額',
593
596
  'pisell2.checkout.wallet-balance-confirm.description-before': ' 將從所選錢包餘額中扣除,訂單將標記為 ',
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -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.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -15,11 +15,11 @@ 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>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -74,7 +74,7 @@ export var useLinklyPayOrRefund = function useLinklyPayOrRefund(handleCheck) {
74
74
  var status = res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status;
75
75
 
76
76
  // 继续查询交易状态
77
- if (status === 0) {
77
+ if (status == 0) {
78
78
  var _res$data2;
79
79
  // 交易流水号
80
80
  numRef.current = res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.session_id;
@@ -89,7 +89,7 @@ export var useLinklyPayOrRefund = function useLinklyPayOrRefund(handleCheck) {
89
89
  setTimeout(function () {
90
90
  var _resultQueryRef$curre;
91
91
  (_resultQueryRef$curre = resultQueryRef.current) === null || _resultQueryRef$curre === void 0 || _resultQueryRef$curre.call(resultQueryRef);
92
- });
92
+ }, 300);
93
93
  return;
94
94
  }
95
95
 
@@ -99,7 +99,7 @@ export var useLinklyPayOrRefund = function useLinklyPayOrRefund(handleCheck) {
99
99
  }));
100
100
 
101
101
  // 交易成功
102
- if (status === 1) {
102
+ if (status == 1) {
103
103
  var _handleLinklySuccessR;
104
104
  (_handleLinklySuccessR = handleLinklySuccessRef.current) === null || _handleLinklySuccessR === void 0 || _handleLinklySuccessR.call(handleLinklySuccessRef, res);
105
105
  return;
@@ -86,15 +86,22 @@ export var useTimeResultQuery = function useTimeResultQuery(api, resultCheck, ha
86
86
  isQueryFinishedRef.current = true;
87
87
  var data = (result === null || result === void 0 ? void 0 : result.data) || {};
88
88
  // 交易成功,终止查询
89
- if (data.status === 1) {
89
+ if (data.status == 1) {
90
90
  console.log('交易成功,终止查询');
91
+ sendWarningLog({
92
+ title: "Linkly-".concat(isPay ? 'Pay' : 'Refund', "-\u4EA4\u6613\u6210\u529F"),
93
+ content: [{
94
+ key: 'response',
95
+ value: JSON.stringify(result)
96
+ }]
97
+ });
91
98
  reset();
92
99
  handleLinklySuccess(result);
93
100
  return;
94
101
  }
95
102
 
96
103
  // 交易状态为0,且不需要签名,则继续查询
97
- if (data.status !== undefined && (data === null || data === void 0 ? void 0 : data.status) === 0) {
104
+ if ((data === null || data === void 0 ? void 0 : data.status) == 0 && (data === null || data === void 0 ? void 0 : data.signature_flag) != 1) {
98
105
  console.log('交易状态为0需要继续查询');
99
106
  isQueryFinishedRef.current = false;
100
107
  _resultQuery();
@@ -105,6 +112,13 @@ export var useTimeResultQuery = function useTimeResultQuery(api, resultCheck, ha
105
112
  if (data.status < 0) {
106
113
  var _failRef$current;
107
114
  console.log('交易失败,终止查询');
115
+ sendWarningLog({
116
+ title: "Linkly-".concat(isPay ? 'Pay' : 'Refund', "-\u4EA4\u6613\u5931\u8D25"),
117
+ content: [{
118
+ key: 'response',
119
+ value: JSON.stringify(result)
120
+ }]
121
+ });
108
122
  reset();
109
123
  // 交易失败,code码转换为支付失败code码
110
124
  result.code = PayStatus.Unknown;
@@ -113,8 +127,15 @@ export var useTimeResultQuery = function useTimeResultQuery(api, resultCheck, ha
113
127
  }
114
128
 
115
129
  // 需要签名
116
- if (data.signature_flag === 1) {
130
+ if (data.signature_flag == 1) {
117
131
  console.log('交易需要签名,终止查询');
132
+ sendWarningLog({
133
+ title: "Linkly-".concat(isPay ? 'Pay' : 'Refund', "-\u4EA4\u6613\u9700\u8981\u7B7E\u540D"),
134
+ content: [{
135
+ key: 'response',
136
+ value: JSON.stringify(result)
137
+ }]
138
+ });
118
139
  reset();
119
140
  gotoSignature();
120
141
  return;
@@ -240,7 +261,7 @@ export var useTimeResultQuery = function useTimeResultQuery(api, resultCheck, ha
240
261
  });
241
262
  }
242
263
  sendWarningLog({
243
- title: "Linkly-".concat(isPay ? 'Pay' : 'Refund', "-\u7ED3\u679C\u67E5\u8BE2--").concat(type),
264
+ title: "Linkly-".concat(isPay ? 'Pay' : 'Refund', "-\u4EA4\u6613\u7ED3\u679C\u8F6E\u8BE2"),
244
265
  content: content
245
266
  });
246
267
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -232,7 +232,7 @@ export var linklyPayQuery = /*#__PURE__*/function () {
232
232
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
233
233
  while (1) switch (_context15.prev = _context15.next) {
234
234
  case 0:
235
- return _context15.abrupt("return", request.getRequest().get('/shop/shop/linkly/pay/query', params, config));
235
+ return _context15.abrupt("return", request.getRequest().get('/shop/linkly/pay/query', params, config));
236
236
  case 1:
237
237
  case "end":
238
238
  return _context15.stop();
@@ -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,9 +295,9 @@ 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
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -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
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;