@pisell/private-materials 6.7.9 → 6.8.1

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 (421) 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 +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
  12. package/es/components/booking/addons/index.js +25 -17
  13. package/es/components/booking/components/footer/amount.d.ts +1 -0
  14. package/es/components/booking/components/footer/amount.js +548 -84
  15. package/es/components/booking/components/footer/index.js +77 -56
  16. package/es/components/booking/components/footer/utils.d.ts +19 -0
  17. package/es/components/booking/components/footer/utils.js +194 -73
  18. package/es/components/booking/components/voucher/index.js +23 -7
  19. package/es/components/booking/hooks/useQuotation.js +4 -1
  20. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  21. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  22. package/es/components/booking/info/service2/utils.js +1 -0
  23. package/es/components/booking/info2/cartClientCard/index.js +30 -6
  24. package/es/components/booking/info2/index.js +1 -1
  25. package/es/components/booking/info2/service/addService/index.js +2 -3
  26. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  27. package/es/components/booking/info2/service/editService/index.js +16 -6
  28. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  29. package/es/components/booking/info2/service/editService/utils.js +66 -0
  30. package/es/components/booking/utils.d.ts +1 -0
  31. package/es/components/booking/utils.js +16 -3
  32. package/es/components/checkout/PaymentModal.d.ts +13 -5
  33. package/es/components/checkout/PaymentModal.js +304 -252
  34. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  35. package/es/components/checkout/components/AdditionalModule/index.js +52 -12
  36. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  37. package/es/components/checkout/components/AmountSummary/index.less +5 -6
  38. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  39. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  40. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  41. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  42. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  43. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  44. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  45. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  46. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  47. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  48. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  49. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  50. package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
  51. package/es/components/checkout/index.less +1 -1
  52. package/es/components/checkout/locales.d.ts +6 -0
  53. package/es/components/checkout/locales.js +6 -0
  54. package/es/components/checkout/plugin.d.ts +2 -0
  55. package/es/components/checkout/plugin.js +303 -0
  56. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  57. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  58. package/es/components/eftpos/hooks.d.ts +0 -1
  59. package/es/components/eftposPay/hooks.d.ts +1 -1
  60. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  61. package/es/components/eftposPay/payo/config.js +70 -32
  62. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  63. package/es/components/eftposPay/payo/payment.js +579 -0
  64. package/es/components/eftposPay/store/index.d.ts +4 -4
  65. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  66. package/es/components/eftposPay/tyro/index.js +12 -0
  67. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  68. package/es/components/eftposPay/utils/log/index.js +371 -0
  69. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  77. package/es/components/index.d.ts +2 -1
  78. package/es/components/index.js +2 -1
  79. package/es/components/list/List.js +99 -56
  80. package/es/components/list/hooks/useListState.d.ts +5 -3
  81. package/es/components/list/hooks/useListState.js +10 -2
  82. package/es/components/list/styles/base.less +4 -0
  83. package/es/components/list/styles/content.less +1 -1
  84. package/es/components/list/styles/header.less +4 -4
  85. package/es/components/list/types.d.ts +1 -0
  86. package/es/components/list/utils/index.d.ts +13 -1
  87. package/es/components/list/utils/index.js +43 -1
  88. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  89. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  90. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  92. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  93. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  94. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  95. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  96. package/es/components/pay/toC/index.js +7 -4
  97. package/es/components/pay/toC/locales.d.ts +3 -0
  98. package/es/components/pay/toC/locales.js +6 -3
  99. package/es/components/pay/toC/status.d.ts +1 -0
  100. package/es/components/pay/toC/status.js +3 -0
  101. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  102. package/es/components/subTotal/index.js +1 -1
  103. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  104. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  105. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  106. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  107. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  108. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  109. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  110. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  111. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  112. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  113. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  114. package/es/components/systemSettings/registry/components/index.js +4 -0
  115. package/es/components/systemSettings/registry/index.d.ts +5 -0
  116. package/es/components/systemSettings/registry/index.js +1059 -0
  117. package/es/components/systemSettings/registry/index.less +410 -0
  118. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  119. package/es/components/systemSettings/registry/locales.js +300 -0
  120. package/es/components/systemSettings/registry/services.d.ts +77 -0
  121. package/es/components/systemSettings/registry/services.js +472 -0
  122. package/es/components/systemSettings/registry/types.d.ts +126 -0
  123. package/es/components/systemSettings/registry/types.js +1 -0
  124. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  125. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  126. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  127. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  128. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +58 -11
  129. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  130. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  131. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +149 -36
  132. package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
  133. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  134. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  135. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  136. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  137. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
  138. package/es/components/ticketBooking/locales.d.ts +9 -0
  139. package/es/components/ticketBooking/locales.js +12 -3
  140. package/es/components/ticketBooking/utils/index.d.ts +3 -0
  141. package/es/components/ticketBooking/utils/index.js +36 -13
  142. package/es/components/wallet/Detail/index.js +34 -2
  143. package/es/components/wallet/Detail/index.less +11 -0
  144. package/es/components/wallet/Detail/locales.d.ts +6 -0
  145. package/es/components/wallet/Detail/locales.js +14 -2
  146. package/es/components/wallet/Voucher/index.js +11 -10
  147. package/es/components/wallet/components/WalletCard.js +5 -1
  148. package/es/components/wallet/index.js +4 -2
  149. package/es/components/wallet/serve.d.ts +7 -0
  150. package/es/components/wallet/utils.d.ts +48 -0
  151. package/es/components/wallet/utils.js +342 -0
  152. package/es/index.d.ts +5 -0
  153. package/es/index.js +6 -1
  154. package/es/plus/clientCard/locales.js +3 -3
  155. package/es/plus/clinetSearch/index.js +28 -30
  156. package/es/plus/clinetSearch/locales.d.ts +3 -0
  157. package/es/plus/clinetSearch/locales.js +7 -4
  158. package/es/plus/clinetSearch/types.d.ts +12 -0
  159. package/es/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  160. package/es/plus/productSelect/CategoryTabs/index.js +2 -1
  161. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  162. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  163. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  164. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  165. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  166. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  167. package/es/plus/walletPassGallery/index.js +7 -3
  168. package/es/plus/walletPassGallery/serve.d.ts +3 -0
  169. package/es/plus/walletPassGallery/serve.js +4 -2
  170. package/es/pro/Login2.0/index.less +15 -8
  171. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  172. package/es/pro/Selector/BatchSelectorDemo.js +470 -0
  173. package/es/pro/Selector/Selector.d.ts +5 -0
  174. package/es/pro/Selector/Selector.js +283 -0
  175. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  176. package/es/pro/Selector/SelectorGroup.js +537 -0
  177. package/es/pro/Selector/components/Card/index.d.ts +27 -0
  178. package/es/pro/Selector/components/Card/index.js +96 -0
  179. package/es/pro/Selector/components/Card/index.less +132 -0
  180. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  181. package/es/pro/Selector/components/IntersectionObserver.js +384 -0
  182. package/es/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  183. package/es/pro/Selector/components/NumericStepper/index.js +198 -0
  184. package/es/pro/Selector/components/NumericStepper/index.less +221 -0
  185. package/es/pro/Selector/components/index.d.ts +2 -0
  186. package/es/pro/Selector/components/index.js +2 -0
  187. package/es/pro/Selector/demo.d.ts +3 -0
  188. package/es/pro/Selector/demo.js +158 -0
  189. package/es/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  190. package/es/pro/Selector/hooks/useSelectionController.js +414 -0
  191. package/es/pro/Selector/index.d.ts +8 -0
  192. package/es/pro/Selector/index.js +5 -0
  193. package/es/pro/Selector/locales.d.ts +42 -0
  194. package/es/pro/Selector/locales.js +80 -0
  195. package/es/pro/Selector/selector.less +3 -0
  196. package/es/pro/Selector/selectorGroup.less +8 -0
  197. package/es/pro/Selector/types.d.ts +114 -0
  198. package/es/pro/Selector/types.js +1 -0
  199. package/es/pro/Selector/utils/index.d.ts +49 -0
  200. package/es/pro/Selector/utils/index.js +229 -0
  201. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  202. package/es/pro/comprehensiveSearch/locales.js +1 -1
  203. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
  204. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  205. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  206. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  207. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  208. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  209. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  210. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  211. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  212. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  213. package/lib/components/booking/addons/index.js +15 -7
  214. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  215. package/lib/components/booking/components/footer/amount.js +293 -41
  216. package/lib/components/booking/components/footer/index.js +30 -11
  217. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  218. package/lib/components/booking/components/footer/utils.js +138 -41
  219. package/lib/components/booking/components/voucher/index.js +25 -9
  220. package/lib/components/booking/hooks/useQuotation.js +2 -1
  221. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  222. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  223. package/lib/components/booking/info/service2/utils.js +1 -0
  224. package/lib/components/booking/info2/cartClientCard/index.js +25 -5
  225. package/lib/components/booking/info2/index.js +7 -2
  226. package/lib/components/booking/info2/service/addService/index.js +1 -2
  227. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  228. package/lib/components/booking/info2/service/editService/index.js +12 -3
  229. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  230. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  231. package/lib/components/booking/utils.d.ts +1 -0
  232. package/lib/components/booking/utils.js +11 -0
  233. package/lib/components/checkout/PaymentModal.d.ts +13 -5
  234. package/lib/components/checkout/PaymentModal.js +190 -147
  235. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  236. package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
  237. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  238. package/lib/components/checkout/components/AmountSummary/index.less +5 -6
  239. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  240. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  241. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  242. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  243. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  244. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  245. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  246. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  247. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  248. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  249. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  250. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  251. package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
  252. package/lib/components/checkout/index.less +1 -1
  253. package/lib/components/checkout/locales.d.ts +6 -0
  254. package/lib/components/checkout/locales.js +6 -0
  255. package/lib/components/checkout/plugin.d.ts +2 -0
  256. package/lib/components/checkout/plugin.js +263 -0
  257. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  258. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  259. package/lib/components/eftpos/hooks.d.ts +0 -1
  260. package/lib/components/eftposPay/hooks.d.ts +1 -1
  261. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  262. package/lib/components/eftposPay/payo/config.js +98 -73
  263. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  264. package/lib/components/eftposPay/payo/payment.js +357 -0
  265. package/lib/components/eftposPay/store/index.d.ts +4 -4
  266. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  267. package/lib/components/eftposPay/tyro/index.js +12 -0
  268. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  269. package/lib/components/eftposPay/utils/log/index.js +294 -0
  270. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  271. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  272. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  273. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  274. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  275. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  276. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  277. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  278. package/lib/components/index.d.ts +2 -1
  279. package/lib/components/index.js +3 -0
  280. package/lib/components/list/List.js +58 -36
  281. package/lib/components/list/hooks/useListState.d.ts +5 -3
  282. package/lib/components/list/hooks/useListState.js +9 -1
  283. package/lib/components/list/styles/base.less +4 -0
  284. package/lib/components/list/styles/content.less +1 -1
  285. package/lib/components/list/styles/header.less +4 -4
  286. package/lib/components/list/types.d.ts +1 -0
  287. package/lib/components/list/utils/index.d.ts +13 -1
  288. package/lib/components/list/utils/index.js +27 -0
  289. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  290. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  291. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  292. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  293. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  294. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  295. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  296. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  297. package/lib/components/pay/toC/index.js +4 -1
  298. package/lib/components/pay/toC/locales.d.ts +3 -0
  299. package/lib/components/pay/toC/locales.js +6 -3
  300. package/lib/components/pay/toC/status.d.ts +1 -0
  301. package/lib/components/pay/toC/status.js +5 -0
  302. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  303. package/lib/components/subTotal/index.js +1 -1
  304. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  305. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  306. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  307. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  308. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  309. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  310. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  311. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  312. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  313. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  314. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  315. package/lib/components/systemSettings/registry/components/index.js +48 -0
  316. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  317. package/lib/components/systemSettings/registry/index.js +529 -0
  318. package/lib/components/systemSettings/registry/index.less +410 -0
  319. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  320. package/lib/components/systemSettings/registry/locales.js +324 -0
  321. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  322. package/lib/components/systemSettings/registry/services.js +290 -0
  323. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  324. package/lib/components/systemSettings/registry/types.js +17 -0
  325. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  326. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  327. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  328. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  329. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +40 -5
  330. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  331. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  332. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +93 -24
  333. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  334. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  335. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  336. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  337. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  338. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
  339. package/lib/components/ticketBooking/locales.d.ts +9 -0
  340. package/lib/components/ticketBooking/locales.js +12 -3
  341. package/lib/components/ticketBooking/utils/index.d.ts +3 -0
  342. package/lib/components/ticketBooking/utils/index.js +20 -6
  343. package/lib/components/wallet/Detail/index.js +31 -3
  344. package/lib/components/wallet/Detail/index.less +11 -0
  345. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  346. package/lib/components/wallet/Detail/locales.js +14 -2
  347. package/lib/components/wallet/Voucher/index.js +8 -8
  348. package/lib/components/wallet/components/WalletCard.js +4 -0
  349. package/lib/components/wallet/index.js +2 -2
  350. package/lib/components/wallet/serve.d.ts +7 -0
  351. package/lib/components/wallet/utils.d.ts +48 -0
  352. package/lib/components/wallet/utils.js +287 -0
  353. package/lib/index.d.ts +5 -0
  354. package/lib/index.js +15 -0
  355. package/lib/plus/clientCard/locales.js +3 -3
  356. package/lib/plus/clinetSearch/index.js +17 -8
  357. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  358. package/lib/plus/clinetSearch/locales.js +7 -4
  359. package/lib/plus/clinetSearch/types.d.ts +12 -0
  360. package/lib/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  361. package/lib/plus/productSelect/CategoryTabs/index.js +2 -1
  362. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  363. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  364. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  365. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  366. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  367. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  368. package/lib/plus/walletPassGallery/index.js +7 -3
  369. package/lib/plus/walletPassGallery/serve.d.ts +3 -0
  370. package/lib/plus/walletPassGallery/serve.js +3 -2
  371. package/lib/pro/Login2.0/index.less +15 -8
  372. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  373. package/lib/pro/Selector/BatchSelectorDemo.js +376 -0
  374. package/lib/pro/Selector/Selector.d.ts +5 -0
  375. package/lib/pro/Selector/Selector.js +264 -0
  376. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  377. package/lib/pro/Selector/SelectorGroup.js +463 -0
  378. package/lib/pro/Selector/components/Card/index.d.ts +27 -0
  379. package/lib/pro/Selector/components/Card/index.js +114 -0
  380. package/lib/pro/Selector/components/Card/index.less +132 -0
  381. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  382. package/lib/pro/Selector/components/IntersectionObserver.js +281 -0
  383. package/lib/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  384. package/lib/pro/Selector/components/NumericStepper/index.js +221 -0
  385. package/lib/pro/Selector/components/NumericStepper/index.less +221 -0
  386. package/lib/pro/Selector/components/index.d.ts +2 -0
  387. package/lib/pro/Selector/components/index.js +42 -0
  388. package/lib/pro/Selector/demo.d.ts +3 -0
  389. package/lib/pro/Selector/demo.js +102 -0
  390. package/lib/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  391. package/lib/pro/Selector/hooks/useSelectionController.js +338 -0
  392. package/lib/pro/Selector/index.d.ts +8 -0
  393. package/lib/pro/Selector/index.js +39 -0
  394. package/lib/pro/Selector/locales.d.ts +42 -0
  395. package/lib/pro/Selector/locales.js +80 -0
  396. package/lib/pro/Selector/selector.less +3 -0
  397. package/lib/pro/Selector/selectorGroup.less +8 -0
  398. package/lib/pro/Selector/types.d.ts +114 -0
  399. package/lib/pro/Selector/types.js +17 -0
  400. package/lib/pro/Selector/utils/index.d.ts +49 -0
  401. package/lib/pro/Selector/utils/index.js +221 -0
  402. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  403. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  404. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
  405. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  406. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  407. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  408. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  409. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  410. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  411. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  412. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  413. package/lowcode/payment-modal/meta.ts +135 -0
  414. package/lowcode/selector/meta.ts +352 -0
  415. package/lowcode/selector.group/meta.ts +200 -0
  416. package/lowcode/settings-registry/meta.ts +29 -0
  417. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  418. package/package.json +4 -4
  419. package/es/components/checkout/PaymentPlugin.d.ts +0 -3
  420. package/lib/components/checkout/PaymentPlugin.d.ts +0 -3
  421. package/lib/components/checkout/PaymentPlugin.js +0 -181
@@ -20,4 +20,63 @@
20
20
  }
21
21
  }
22
22
  }
23
+
24
+ // 收起状态
25
+ &.collapsed {
26
+ position: fixed;
27
+ bottom: 0;
28
+ left: 86px;
29
+ padding: 0;
30
+ background-color: transparent;
31
+ display: block;
32
+ // 高度通过内联样式动态设置以补偿 body 的 scale
33
+
34
+ .pisell-ticket-booking-time-bar-collapsed-content {
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: space-between;
38
+ width: 100%;
39
+ // 高度通过内联样式动态设置以补偿 body 的 scale
40
+ padding: 0 16px;
41
+ background-color: #fff;
42
+ border-radius: 0 8px 8px 0;
43
+ box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
44
+ box-sizing: border-box;
45
+ overflow: hidden;
46
+
47
+ .pisell-ticket-booking-time-bar-collapsed-today {
48
+ font-weight: 600;
49
+ font-size: 18px;
50
+ color: #000;
51
+ flex-shrink: 0;
52
+ margin-right: 16px;
53
+ // line-height 通过内联样式动态设置
54
+ }
55
+
56
+ .pisell-ticket-booking-time-bar-collapsed-expand {
57
+ color: #7F56DA;
58
+ padding: 0;
59
+ margin: 0;
60
+ height: auto;
61
+ font-size: 18px;
62
+ font-weight: 500;
63
+ display: inline-flex;
64
+ align-items: center;
65
+ flex-shrink: 0;
66
+ // line-height 通过内联样式动态设置
67
+
68
+ &:hover {
69
+ color: #6941c6;
70
+ }
71
+
72
+ span {
73
+ margin-right: 2px;
74
+ }
75
+ .anticon {
76
+ margin-left: 0px;
77
+ margin-right: 0px;
78
+ }
79
+ }
80
+ }
81
+ }
23
82
  }
@@ -38,17 +38,21 @@ var import_react = require("react");
38
38
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
39
39
  var import_dayjs = __toESM(require("dayjs"));
40
40
  var useProducts = (notAvailableRef) => {
41
+ var _a;
41
42
  const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
42
43
  const context = (0, import_useEngineContext.default)();
43
44
  const platform = (0, import_useEngineContext.usePlatform)();
44
45
  const [products, setProducts] = (0, import_react.useState)([]);
45
46
  const [loading, setLoading] = (0, import_react.useState)(true);
46
47
  const isFirstLoadRef = (0, import_react.useRef)(true);
48
+ const isFirstLoadDataRef = (0, import_react.useRef)(true);
49
+ const { getApp } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
50
+ const app = getApp();
47
51
  const [scheduleTimePoints, setScheduleTimePoints] = (0, import_react.useState)([]);
48
52
  const scheduledTaskQueueIdRef = (0, import_react.useRef)("booking-schedule-products");
49
53
  const paramsRef = (0, import_react.useRef)(void 0);
50
54
  const getProducts = (0, import_ahooks.useMemoizedFn)(async (params) => {
51
- var _a;
55
+ var _a2;
52
56
  setLoading(true);
53
57
  try {
54
58
  paramsRef.current = params;
@@ -58,30 +62,30 @@ var useProducts = (notAvailableRef) => {
58
62
  isFirstLoadRef.current = false;
59
63
  } catch (error) {
60
64
  if ((error == null ? void 0 : error.code) === 607100 && (isFirstLoadRef.current || products.length > 0)) {
61
- (_a = notAvailableRef.current) == null ? void 0 : _a.open();
65
+ (_a2 = notAvailableRef.current) == null ? void 0 : _a2.open();
62
66
  }
63
67
  setLoading(false);
64
68
  isFirstLoadRef.current = false;
65
69
  }
66
70
  });
67
71
  (0, import_react.useEffect)(() => {
68
- var _a, _b, _c;
72
+ var _a2, _b, _c;
69
73
  if (platform === "shop") {
70
74
  return;
71
75
  }
72
76
  try {
73
- const app = (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b);
74
- if (!app || !app.tasksManager) {
77
+ const app2 = (_c = (_b = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b);
78
+ if (!app2 || !app2.tasksManager) {
75
79
  console.warn("App 或 tasksManager 不可用");
76
80
  return;
77
81
  }
78
- app.tasksManager.addTaskFunction("getProducts", async ({ task }) => {
82
+ app2.tasksManager.addTaskFunction("getProducts", async ({ task }) => {
79
83
  console.log("定时执行 getProducts,参数:", task.payload);
80
84
  await getProducts(task.payload);
81
85
  return { status: "success" };
82
86
  });
83
87
  if (scheduleTimePoints && scheduleTimePoints.length > 0) {
84
- app.tasksManager.clearTasks({
88
+ app2.tasksManager.clearTasks({
85
89
  module: "scheduledTasks",
86
90
  queueId: scheduledTaskQueueIdRef.current
87
91
  });
@@ -102,12 +106,12 @@ var useProducts = (notAvailableRef) => {
102
106
  }
103
107
  };
104
108
  });
105
- app.tasksManager.addTask({
109
+ app2.tasksManager.addTask({
106
110
  module: "scheduledTasks",
107
111
  queueId: scheduledTaskQueueIdRef.current,
108
112
  tasks
109
113
  });
110
- app.tasksManager.run({
114
+ app2.tasksManager.run({
111
115
  module: "scheduledTasks",
112
116
  queueId: scheduledTaskQueueIdRef.current
113
117
  });
@@ -117,11 +121,11 @@ var useProducts = (notAvailableRef) => {
117
121
  console.error("创建定时任务失败:", error);
118
122
  }
119
123
  return () => {
120
- var _a2, _b2, _c2;
124
+ var _a3, _b2, _c2;
121
125
  try {
122
- const app = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.getApp) == null ? void 0 : _c2.call(_b2);
123
- if (app && app.tasksManager) {
124
- app.tasksManager.clearTasks({
126
+ const app2 = (_c2 = (_b2 = (_a3 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a3.utils) == null ? void 0 : _b2.getApp) == null ? void 0 : _c2.call(_b2);
127
+ if (app2 && app2.tasksManager) {
128
+ app2.tasksManager.clearTasks({
125
129
  module: "scheduledTasks",
126
130
  queueId: scheduledTaskQueueIdRef.current
127
131
  });
@@ -61,6 +61,9 @@ declare const _default: {
61
61
  'pisell2.ticket-booking.terminal-upgrade-description': string;
62
62
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
63
63
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
64
+ 'pisell2.ticket-booking.collapse': string;
65
+ 'pisell2.ticket-booking.expand': string;
66
+ 'pisell2.product-select.search': string;
64
67
  };
65
68
  'zh-CN': {
66
69
  'pisell2.ticket-booking.info': string;
@@ -124,6 +127,9 @@ declare const _default: {
124
127
  'pisell2.ticket-booking.terminal-upgrade-description': string;
125
128
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
126
129
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
130
+ 'pisell2.ticket-booking.collapse': string;
131
+ 'pisell2.ticket-booking.expand': string;
132
+ 'pisell2.product-select.search': string;
127
133
  };
128
134
  'zh-HK': {
129
135
  'pisell2.ticket-booking.info': string;
@@ -187,6 +193,9 @@ declare const _default: {
187
193
  'pisell2.ticket-booking.terminal-upgrade-description': string;
188
194
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
189
195
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
196
+ 'pisell2.ticket-booking.collapse': string;
197
+ 'pisell2.ticket-booking.expand': string;
198
+ 'pisell2.product-select.search': string;
190
199
  };
191
200
  };
192
201
  export default _default;
@@ -87,7 +87,10 @@ var locales_default = {
87
87
  "pisell2.ticket-booking.terminal-upgrade-title": "Terminal Version Reminder",
88
88
  "pisell2.ticket-booking.terminal-upgrade-description": "Your Terminal version is outdated. Please upgrade Terminal to use all features.",
89
89
  "pisell2.ticket-booking.terminal-upgrade-ok": "I understand",
90
- "pisell2.ticket-booking.terminal-upgrade-cancel": "Cancel"
90
+ "pisell2.ticket-booking.terminal-upgrade-cancel": "Cancel",
91
+ "pisell2.ticket-booking.collapse": "Collapse",
92
+ "pisell2.ticket-booking.expand": "Expand",
93
+ "pisell2.product-select.search": "Search"
91
94
  },
92
95
  "zh-CN": {
93
96
  "pisell2.ticket-booking.info": "信息",
@@ -153,7 +156,10 @@ var locales_default = {
153
156
  "pisell2.ticket-booking.terminal-upgrade-title": "Terminal版本提醒",
154
157
  "pisell2.ticket-booking.terminal-upgrade-description": "检测到您的Terminal版本较低,请升级Terminal以使用完整功能",
155
158
  "pisell2.ticket-booking.terminal-upgrade-ok": "我知道了",
156
- "pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
159
+ "pisell2.ticket-booking.terminal-upgrade-cancel": "取消",
160
+ "pisell2.ticket-booking.collapse": "收起",
161
+ "pisell2.ticket-booking.expand": "展开",
162
+ "pisell2.product-select.search": "搜索"
157
163
  },
158
164
  "zh-HK": {
159
165
  "pisell2.ticket-booking.info": "資訊",
@@ -219,6 +225,9 @@ var locales_default = {
219
225
  "pisell2.ticket-booking.terminal-upgrade-title": "Terminal版本提醒",
220
226
  "pisell2.ticket-booking.terminal-upgrade-description": "檢測到您的Terminal版本較低,請升級Terminal以使用完整功能",
221
227
  "pisell2.ticket-booking.terminal-upgrade-ok": "我知道了",
222
- "pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
228
+ "pisell2.ticket-booking.terminal-upgrade-cancel": "取消",
229
+ "pisell2.ticket-booking.collapse": "收起",
230
+ "pisell2.ticket-booking.expand": "展開",
231
+ "pisell2.product-select.search": "搜索"
223
232
  }
224
233
  };
@@ -73,6 +73,9 @@ export declare const rulesHooks: {
73
73
  num: any;
74
74
  quantity: any;
75
75
  vouchersApplicable: any;
76
+ startDate: any;
77
+ bundle: any;
78
+ options: any;
76
79
  };
77
80
  setProduct(product: Record<string, any>, values: {
78
81
  total: number;
@@ -197,12 +197,17 @@ var addService = (list, addItem, state) => {
197
197
  let isNotSame = true;
198
198
  let isSetCount = false;
199
199
  value = list.map((item) => {
200
- var _a2, _b, _c;
200
+ var _a2, _b, _c, _d, _e;
201
201
  const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
202
202
  const isEdit = item == null ? void 0 : item.edit;
203
- if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
203
+ const bundleDiscountList = [];
204
+ (((_b = (_a2 = item == null ? void 0 : item._extend) == null ? void 0 : _a2.other) == null ? void 0 : _b.bundle) || []).forEach((item2) => {
205
+ bundleDiscountList.push(...(item2 == null ? void 0 : item2.discount_list) || []);
206
+ });
207
+ const isGoodPassBundleProduct = bundleDiscountList.some((item2) => item2.type === "good_pass");
208
+ if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
204
209
  isNotSame = false;
205
- const quantity = (((_a2 = item == null ? void 0 : item._extend) == null ? void 0 : _a2.quantity) || 1) + (((_b = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _b.quantity) || 1);
210
+ const quantity = (((_c = item == null ? void 0 : item._extend) == null ? void 0 : _c.quantity) || 1) + (((_d = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _d.quantity) || 1);
206
211
  count = quantity;
207
212
  isSetCount = true;
208
213
  return {
@@ -211,7 +216,7 @@ var addService = (list, addItem, state) => {
211
216
  ...item._extend,
212
217
  quantity,
213
218
  other: {
214
- ...((_c = item._extend) == null ? void 0 : _c.other) || {},
219
+ ...((_e = item._extend) == null ? void 0 : _e.other) || {},
215
220
  quantity
216
221
  }
217
222
  }
@@ -341,17 +346,21 @@ var getShopDiscountKey = (osKey) => {
341
346
  var rulesHooks = {
342
347
  // 获取商品关键信息
343
348
  getProduct(product) {
349
+ var _a, _b, _c, _d, _e;
344
350
  const detail = {
345
351
  booking_id: product.booking_id,
346
352
  id: product.id,
347
353
  _id: product._id,
348
- price: product.price,
354
+ price: product._extend.price,
349
355
  total: product._extend.total,
350
356
  discount_list: product.discount_list,
351
357
  origin_total: product._extend.origin_total,
352
358
  num: product._extend.quantity,
353
359
  quantity: product._extend.quantity || 1,
354
- vouchersApplicable: product.vouchersApplicable
360
+ vouchersApplicable: product.vouchersApplicable,
361
+ startDate: (_a = product._extend) == null ? void 0 : _a.startDate,
362
+ bundle: ((_c = (_b = product._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle) || [],
363
+ options: ((_e = (_d = product._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option) || []
355
364
  };
356
365
  return detail;
357
366
  },
@@ -362,7 +371,12 @@ var rulesHooks = {
362
371
  discount_list: values.discount_list,
363
372
  _extend: {
364
373
  ...product._extend,
374
+ other: {
375
+ ...product._extend.other,
376
+ ..."bundle" in values ? { bundle: values.bundle } : {}
377
+ },
365
378
  ..."total" in values ? { total: values.total } : {},
379
+ ..."main_product_selling_price" in values ? { main_product_selling_price: values.main_product_selling_price } : {},
366
380
  ..."quantity" in values ? { quantity: values.quantity } : {}
367
381
  }
368
382
  };
@@ -45,6 +45,7 @@ var import_locales = __toESM(require("./locales"));
45
45
  var import_serve = require("./serve");
46
46
  var import_utils2 = require("./../../../utils");
47
47
  var import_components = require("../components");
48
+ var import_utils3 = require("../utils");
48
49
  var import_index = require("./index.less");
49
50
  var { Text } = import_materials2.Typography;
50
51
  import_dayjs.default.extend(import_timezone.default);
@@ -65,8 +66,10 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
65
66
  encoded = "",
66
67
  balance,
67
68
  expire_date = "",
68
- product = {}
69
+ product = {},
70
+ custom_schedule_snapshot
69
71
  } = detail;
72
+ console.log(detail, "detail22");
70
73
  const {
71
74
  description = "",
72
75
  extension_data = [],
@@ -212,8 +215,33 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
212
215
  onGoogleClick();
213
216
  }
214
217
  };
218
+ const scheduleList = (0, import_react.useMemo)(() => {
219
+ return (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [];
220
+ }, [custom_schedule_snapshot]);
215
221
  (0, import_react.useEffect)(() => {
216
222
  var _a2;
223
+ const detail2 = (0, import_utils3.formatScheduleText)(scheduleList, "zh-CN");
224
+ let expireText = expire_date ? expire_date : import_utils.locales.getText("page.wallet.expireDate");
225
+ if (scheduleList.length > 0) {
226
+ let validityTexts = "";
227
+ let excludedText = "";
228
+ let includedText = "";
229
+ detail2.forEach((item) => {
230
+ if (item.validityTexts.length > 0) {
231
+ validityTexts = `${validityTexts}${item.validityTexts.join("\n")}
232
+ `;
233
+ }
234
+ if (item.excluded_date.length > 0) {
235
+ excludedText = `${excludedText}${item.excluded_date.join("\n")}
236
+ `;
237
+ }
238
+ if (item.included_date.length > 0) {
239
+ includedText = `${includedText}${item.included_date.join("\n")}
240
+ `;
241
+ }
242
+ });
243
+ expireText = /* @__PURE__ */ import_react.default.createElement("span", { className: "wallet-detail-expire-text" }, validityTexts, excludedText && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-expire-text-title" }, import_utils.locales.getText("page.wallet.notValidDate")), excludedText, includedText && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-expire-text-title" }, import_utils.locales.getText("page.wallet.includedDate")), includedText);
244
+ }
217
245
  let data = [
218
246
  {
219
247
  label: import_utils.locales.getText("page.wallet.cardName"),
@@ -226,11 +254,11 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
226
254
  },
227
255
  {
228
256
  label: import_utils.locales.getText("page.wallet.validDate"),
229
- value: expire_date ? expire_date : import_utils.locales.getText("page.wallet.expireDate")
257
+ value: expireText
230
258
  }
231
259
  ];
232
260
  if (tag === "product_discount_card") {
233
- const isFixedAmount = ((_a2 = detail.metadata) == null ? void 0 : _a2.discount_card_type) === "fixed_amount";
261
+ const isFixedAmount = ((_a2 = detail2.metadata) == null ? void 0 : _a2.discount_card_type) === "fixed_amount";
234
262
  data.splice(2, 0, {
235
263
  label: import_utils.locales.getText("page.wallet.discount"),
236
264
  value: balance ? isFixedAmount ? `${symbol}${Number(balance)}` : `${Number(balance)}%` : ""
@@ -373,3 +373,14 @@
373
373
  font-weight: 500;
374
374
  line-height: 24px;
375
375
  }
376
+
377
+ .wallet-detail-expire-text {
378
+ white-space: pre-wrap;
379
+ }
380
+
381
+ .wallet-detail-expire-text-title {
382
+ font-size: 14px;
383
+ font-weight: 500;
384
+ line-height: 20px;
385
+ color: #667085;
386
+ }
@@ -21,6 +21,8 @@ declare const _default: {
21
21
  'page.wallet.addGoogle': string;
22
22
  'page.wallet.viewDetails': string;
23
23
  'page.wallet.expireDate': string;
24
+ 'page.wallet.notValidDate': string;
25
+ 'page.wallet.includedDate': string;
24
26
  'page.wallet.urlEmpty': string;
25
27
  'page.wallet.notIOS': string;
26
28
  'page.wallet.addSuccess': string;
@@ -69,6 +71,8 @@ declare const _default: {
69
71
  'page.wallet.addGoogle': string;
70
72
  'page.wallet.viewDetails': string;
71
73
  'page.wallet.expireDate': string;
74
+ 'page.wallet.notValidDate': string;
75
+ 'page.wallet.includedDate': string;
72
76
  'page.wallet.urlEmpty': string;
73
77
  'page.wallet.notIOS': string;
74
78
  'page.wallet.addSuccess': string;
@@ -117,6 +121,8 @@ declare const _default: {
117
121
  'page.wallet.addGoogle': string;
118
122
  'page.wallet.viewDetails': string;
119
123
  'page.wallet.expireDate': string;
124
+ 'page.wallet.notValidDate': string;
125
+ 'page.wallet.includedDate': string;
120
126
  'page.wallet.urlEmpty': string;
121
127
  'page.wallet.notIOS': string;
122
128
  'page.wallet.addSuccess': string;
@@ -48,6 +48,10 @@ var locales_default = {
48
48
  "page.wallet.addGoogle": "Add to Google Wallet",
49
49
  "page.wallet.viewDetails": "See details",
50
50
  "page.wallet.expireDate": "Long term",
51
+ "page.wallet.notValidDate": "Not valid on",
52
+ // 不可用日期
53
+ "page.wallet.includedDate": "Included dates",
54
+ // 包含日期
51
55
  "page.wallet.urlEmpty": "Wallet link is empty",
52
56
  "page.wallet.notIOS": "Apple Wallet is not supported on non-iOS devices",
53
57
  "page.wallet.addSuccess": "Successfully added to wallet",
@@ -100,6 +104,10 @@ var locales_default = {
100
104
  "page.wallet.addGoogle": "添加到谷歌钱包",
101
105
  "page.wallet.viewDetails": "查看详情",
102
106
  "page.wallet.expireDate": "长期",
107
+ "page.wallet.notValidDate": "不可用日期",
108
+ // 不可用日期
109
+ "page.wallet.includedDate": "包含日期",
110
+ // 包含日期
103
111
  "page.wallet.urlEmpty": "钱包链接为空",
104
112
  "page.wallet.notIOS": "非iOS设备不支持Apple Wallet",
105
113
  "page.wallet.addSuccess": "已成功添加到钱包",
@@ -111,7 +119,7 @@ var locales_default = {
111
119
  // Usage Rules
112
120
  "page.wallet.usageRules": "使用规则",
113
121
  "page.wallet.usageRulesSubtitle": "请仔细阅读以下使用条件",
114
- "page.wallet.timeUsageLimits": "时间使用限制",
122
+ "page.wallet.timeUsageLimits": "使用频次限制",
115
123
  "page.wallet.totalQuantityControl": "总量控制",
116
124
  "page.wallet.dailyLimit": "每日限制:",
117
125
  "page.wallet.weeklyLimit": "每周限制:",
@@ -152,6 +160,10 @@ var locales_default = {
152
160
  "page.wallet.addGoogle": "添加到谷歌錢包",
153
161
  "page.wallet.viewDetails": "查看詳情",
154
162
  "page.wallet.expireDate": "長期",
163
+ "page.wallet.notValidDate": "不可用日期",
164
+ // 不可用日期
165
+ "page.wallet.includedDate": "包含日期",
166
+ // 包含日期
155
167
  "page.wallet.urlEmpty": "錢包連結為空",
156
168
  "page.wallet.notIOS": "非iOS設備不支持Apple Wallet",
157
169
  "page.wallet.addSuccess": "已成功添加到錢包",
@@ -163,7 +175,7 @@ var locales_default = {
163
175
  // Usage Rules
164
176
  "page.wallet.usageRules": "使用規則",
165
177
  "page.wallet.usageRulesSubtitle": "請仔細閱讀以下使用條件",
166
- "page.wallet.timeUsageLimits": "時間使用限制",
178
+ "page.wallet.timeUsageLimits": "使用頻次限制",
167
179
  "page.wallet.totalQuantityControl": "總量控制",
168
180
  "page.wallet.dailyLimit": "每日限制:",
169
181
  "page.wallet.weeklyLimit": "每週限制:",
@@ -65,6 +65,14 @@ var Voucher = (0, import_model.Provider)((props) => {
65
65
  recordViewRef.current.closeDetailModal();
66
66
  }
67
67
  }, [globalState.setup]);
68
+ const handleBack = (0, import_react.useCallback)(() => {
69
+ if (recordViewRef.current) {
70
+ recordViewRef.current.closeDetailModal();
71
+ }
72
+ setGlobalState({
73
+ setup: "list"
74
+ });
75
+ }, [recordViewRef, setGlobalState]);
68
76
  const renderItem = (item) => /* @__PURE__ */ import_react.default.createElement(
69
77
  import_WalletCard.default,
70
78
  {
@@ -82,14 +90,6 @@ var Voucher = (0, import_model.Provider)((props) => {
82
90
  if (isEmpty) {
83
91
  return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellEmpty, null);
84
92
  }
85
- const handleBack = (0, import_react.useCallback)(() => {
86
- if (recordViewRef.current) {
87
- recordViewRef.current.closeDetailModal();
88
- }
89
- setGlobalState({
90
- setup: "list"
91
- });
92
- }, [recordViewRef, setGlobalState]);
93
93
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, platform !== "pc" && /* @__PURE__ */ import_react.default.createElement(Title, { className: "wallet-voucher-title" }, import_utils.locales.getText("page.wallet.voucher")), /* @__PURE__ */ import_react.default.createElement(
94
94
  import_materials.CardMetricItem,
95
95
  {
@@ -55,6 +55,8 @@ var WalletCard = ({
55
55
  product_cover = "",
56
56
  par_value = "",
57
57
  unified_messages = {},
58
+ custom_schedule_snapshot,
59
+ metadata,
58
60
  ...rest
59
61
  } = item;
60
62
  const platform = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() ? "h5" : "pc", []);
@@ -66,6 +68,8 @@ var WalletCard = ({
66
68
  import_materials.PisellWalletPassCard,
67
69
  {
68
70
  ...rest,
71
+ scheduleList: (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [],
72
+ validDateBySchedule: (metadata == null ? void 0 : metadata.validity_type) === "custom_schedule_validity",
69
73
  balanceTitle,
70
74
  showDetail: false,
71
75
  showRedeem: false,
@@ -88,7 +88,7 @@ var Wallet = (0, import_model.Provider)(() => {
88
88
  import_utils2.request.setRequest(utils == null ? void 0 : utils.request);
89
89
  (0, import_react.useEffect)(() => {
90
90
  document.body.id = "body";
91
- getList({ num: 999, skip: 1 });
91
+ getList({ num: 999, skip: 1, with: ["customScheduleSnapshot"] });
92
92
  }, []);
93
93
  const transformData = (data) => {
94
94
  const result = {};
@@ -353,7 +353,7 @@ var Wallet = (0, import_model.Provider)(() => {
353
353
  content: successMessage,
354
354
  duration: 2
355
355
  });
356
- getList({ num: 999, skip: 1 }, code);
356
+ getList({ num: 999, skip: 1, with: ["customScheduleSnapshot"] }, code);
357
357
  }
358
358
  dispatch({
359
359
  type: "setState",
@@ -15,6 +15,7 @@ export interface IWalletListParmsProps {
15
15
  used_status?: string;
16
16
  num?: number;
17
17
  skip?: number;
18
+ with?: string[];
18
19
  }
19
20
  /**
20
21
  * 钱包列表项属性接口
@@ -48,6 +49,12 @@ export interface IWalletListItemProps {
48
49
  machinecode_config?: {
49
50
  hide_recharge?: number;
50
51
  };
52
+ metadata: {
53
+ validity_type: string;
54
+ };
55
+ custom_schedule_snapshot: {
56
+ data: any[];
57
+ };
51
58
  }
52
59
  /**
53
60
  * 商店信息接口
@@ -0,0 +1,48 @@
1
+ interface ScheduleTextResult {
2
+ validityTexts: string[];
3
+ excluded_date: string[];
4
+ included_date: string[];
5
+ }
6
+ declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
7
+ interface ScheduleItem {
8
+ id: number;
9
+ name: string | {
10
+ [key: string]: string;
11
+ };
12
+ type: 'standard' | 'time-slots' | 'designation';
13
+ start_time: string | null;
14
+ end_time: string | null;
15
+ repeat_type: 'none' | 'daily' | 'weekly';
16
+ repeat_rule: {
17
+ end: {
18
+ type: 'never' | 'date' | 'occurrence';
19
+ end_date: string | null;
20
+ occurrence: number | null;
21
+ };
22
+ frequency: number;
23
+ excluded_date: Array<{
24
+ start: string;
25
+ end: string;
26
+ }>;
27
+ included_date: any[];
28
+ frequency_date: number[];
29
+ } | null;
30
+ designation: Array<{
31
+ start_date: string;
32
+ start_time: string;
33
+ end_date: string;
34
+ end_time: string;
35
+ }> | null;
36
+ is_all: number;
37
+ time_slot: Array<{
38
+ start_time: string;
39
+ end_time: string;
40
+ }>;
41
+ }
42
+ /**
43
+ * 根据scheduleList格式化文案展示
44
+ * @param scheduleList 日程列表
45
+ * @returns 格式化后的文案结果数组,每个日程对应一个结果
46
+ */
47
+ export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
48
+ export {};