@pisell/private-materials 6.7.7 → 6.7.8

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 (345) 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 +17 -8
  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 +1 -2
  12. package/es/components/booking/addons/index.js +17 -25
  13. package/es/components/booking/components/footer/amount.d.ts +0 -1
  14. package/es/components/booking/components/footer/amount.js +84 -548
  15. package/es/components/booking/components/footer/index.js +56 -77
  16. package/es/components/booking/components/footer/utils.d.ts +0 -19
  17. package/es/components/booking/components/footer/utils.js +73 -194
  18. package/es/components/booking/components/voucher/index.js +7 -23
  19. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  20. package/es/components/booking/hooks/useQuotation.js +1 -4
  21. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  22. package/es/components/booking/info/service2/utils.js +0 -1
  23. package/es/components/booking/info2/cartClientCard/index.js +6 -30
  24. package/es/components/booking/info2/index.js +1 -1
  25. package/es/components/booking/info2/service/addService/index.js +3 -2
  26. package/es/components/booking/info2/service/editNormalService/index.js +0 -6
  27. package/es/components/booking/info2/service/editService/index.js +6 -16
  28. package/es/components/booking/info2/service/editService/utils.d.ts +0 -15
  29. package/es/components/booking/info2/service/editService/utils.js +0 -66
  30. package/es/components/booking/utils.d.ts +0 -1
  31. package/es/components/booking/utils.js +3 -16
  32. package/es/components/checkout/PaymentModal.d.ts +5 -13
  33. package/es/components/checkout/PaymentModal.js +252 -304
  34. package/es/components/checkout/PaymentPlugin.d.ts +3 -0
  35. package/es/components/{systemSettings/registry/components/GroupModal.js → checkout/PaymentPlugin.js} +171 -132
  36. package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  37. package/es/components/checkout/components/AdditionalModule/index.js +12 -52
  38. package/es/components/checkout/components/AmountSummary/index.js +76 -9
  39. package/es/components/checkout/components/AmountSummary/index.less +6 -5
  40. package/es/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  41. package/es/components/checkout/components/CashPaymentModule/index.js +2 -5
  42. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  43. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  44. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -6
  45. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  46. package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -2
  47. package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  48. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  49. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +8 -31
  50. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  51. package/es/components/checkout/components/PaymentResultToast/index.less +33 -94
  52. package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
  53. package/es/components/checkout/index.less +1 -1
  54. package/es/components/checkout/locales.d.ts +0 -6
  55. package/es/components/checkout/locales.js +0 -6
  56. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  57. package/es/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  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 +6 -14
  61. package/es/components/eftposPay/payo/config.js +32 -70
  62. package/es/components/eftposPay/store/index.d.ts +4 -4
  63. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  64. package/es/components/eftposPay/tyro/index.js +0 -12
  65. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  69. package/es/components/index.d.ts +1 -2
  70. package/es/components/index.js +1 -2
  71. package/es/components/list/List.js +40 -56
  72. package/es/components/list/hooks/useListState.d.ts +3 -5
  73. package/es/components/list/hooks/useListState.js +2 -17
  74. package/es/components/list/styles/header.less +3 -3
  75. package/es/components/list/utils/index.d.ts +1 -13
  76. package/es/components/list/utils/index.js +1 -43
  77. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  81. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  82. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  83. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +0 -2
  84. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  85. package/es/components/pay/toC/index.js +4 -7
  86. package/es/components/pay/toC/locales.d.ts +0 -3
  87. package/es/components/pay/toC/locales.js +3 -6
  88. package/es/components/pay/toC/status.d.ts +0 -1
  89. package/es/components/pay/toC/status.js +0 -3
  90. package/es/components/schedules/utils.d.ts +1 -1
  91. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  92. package/es/components/subTotal/index.js +1 -1
  93. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  94. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  95. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +36 -139
  96. package/es/components/ticketBooking/components/addServiceVariant/addService.js +86 -2
  97. package/es/components/ticketBooking/components/menuBar/index.js +12 -109
  98. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  99. package/es/components/ticketBooking/components/timeBar/index.js +7 -112
  100. package/es/components/ticketBooking/components/timeBar/index.less +0 -59
  101. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +18 -29
  102. package/es/components/ticketBooking/locales.d.ts +0 -6
  103. package/es/components/ticketBooking/locales.js +3 -9
  104. package/es/components/ticketBooking/utils/index.d.ts +0 -3
  105. package/es/components/ticketBooking/utils/index.js +13 -36
  106. package/es/components/wallet/Detail/index.js +2 -34
  107. package/es/components/wallet/Detail/index.less +0 -11
  108. package/es/components/wallet/Detail/locales.d.ts +0 -6
  109. package/es/components/wallet/Detail/locales.js +2 -14
  110. package/es/components/wallet/Voucher/index.js +10 -11
  111. package/es/components/wallet/components/WalletCard.js +1 -5
  112. package/es/components/wallet/index.js +2 -4
  113. package/es/components/wallet/serve.d.ts +0 -7
  114. package/es/hooks/usePaymentLogger.d.ts +0 -1
  115. package/es/index.d.ts +0 -4
  116. package/es/index.js +1 -5
  117. package/es/plus/clientCard/locales.js +3 -3
  118. package/es/plus/clinetSearch/index.js +30 -28
  119. package/es/plus/clinetSearch/locales.d.ts +0 -3
  120. package/es/plus/clinetSearch/locales.js +4 -7
  121. package/es/plus/clinetSearch/types.d.ts +0 -12
  122. package/es/plus/walletPassGallery/components/footerButton/index.js +4 -2
  123. package/es/plus/walletPassGallery/components/footerButton/index.less +59 -14
  124. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  125. package/es/plus/walletPassGallery/components/passDetail/index.js +31 -84
  126. package/es/plus/walletPassGallery/components/passDetail/index.less +0 -4
  127. package/es/plus/walletPassGallery/components/recharge/index.js +8 -19
  128. package/es/plus/walletPassGallery/index.js +3 -7
  129. package/es/plus/walletPassGallery/serve.d.ts +0 -3
  130. package/es/plus/walletPassGallery/serve.js +2 -4
  131. package/es/pro/Login2.0/index.less +8 -15
  132. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  133. package/es/pro/comprehensiveSearch/locales.js +1 -1
  134. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +36 -45
  135. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  136. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +2 -4
  137. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  138. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -10
  139. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  140. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  141. package/es/pro/priceKeyboard/components/shortcuts/index.js +2 -5
  142. package/es/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  143. package/es/utils/index.d.ts +1 -1
  144. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -2
  145. package/lib/components/booking/addons/index.js +7 -15
  146. package/lib/components/booking/components/footer/amount.d.ts +0 -1
  147. package/lib/components/booking/components/footer/amount.js +41 -293
  148. package/lib/components/booking/components/footer/index.js +11 -30
  149. package/lib/components/booking/components/footer/utils.d.ts +0 -19
  150. package/lib/components/booking/components/footer/utils.js +41 -138
  151. package/lib/components/booking/components/voucher/index.js +9 -25
  152. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  153. package/lib/components/booking/hooks/useQuotation.js +1 -2
  154. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  155. package/lib/components/booking/info/service2/utils.js +0 -1
  156. package/lib/components/booking/info2/cartClientCard/index.js +5 -25
  157. package/lib/components/booking/info2/index.js +2 -7
  158. package/lib/components/booking/info2/service/addService/index.js +2 -1
  159. package/lib/components/booking/info2/service/editNormalService/index.js +0 -6
  160. package/lib/components/booking/info2/service/editService/index.js +3 -12
  161. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -15
  162. package/lib/components/booking/info2/service/editService/utils.js +3 -40
  163. package/lib/components/booking/utils.d.ts +0 -1
  164. package/lib/components/booking/utils.js +0 -11
  165. package/lib/components/checkout/PaymentModal.d.ts +5 -13
  166. package/lib/components/checkout/PaymentModal.js +147 -190
  167. package/lib/components/checkout/PaymentPlugin.d.ts +3 -0
  168. package/lib/components/checkout/PaymentPlugin.js +181 -0
  169. package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  170. package/lib/components/checkout/components/AdditionalModule/index.js +11 -52
  171. package/lib/components/checkout/components/AmountSummary/index.js +46 -5
  172. package/lib/components/checkout/components/AmountSummary/index.less +6 -5
  173. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  174. package/lib/components/checkout/components/CashPaymentModule/index.js +2 -5
  175. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  176. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  177. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -5
  178. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  179. package/lib/components/checkout/components/PaymentOptionsModule/index.js +0 -6
  180. package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  181. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  182. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +5 -23
  183. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  184. package/lib/components/checkout/components/PaymentResultToast/index.less +33 -94
  185. package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
  186. package/lib/components/checkout/index.less +1 -1
  187. package/lib/components/checkout/locales.d.ts +0 -6
  188. package/lib/components/checkout/locales.js +0 -6
  189. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  190. package/lib/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  191. package/lib/components/eftpos/hooks.d.ts +0 -1
  192. package/lib/components/eftposPay/hooks.d.ts +1 -1
  193. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -12
  194. package/lib/components/eftposPay/payo/config.js +73 -98
  195. package/lib/components/eftposPay/store/index.d.ts +4 -4
  196. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  197. package/lib/components/eftposPay/tyro/index.js +0 -12
  198. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  202. package/lib/components/index.d.ts +1 -2
  203. package/lib/components/index.js +0 -3
  204. package/lib/components/list/List.js +16 -34
  205. package/lib/components/list/hooks/useListState.d.ts +3 -5
  206. package/lib/components/list/hooks/useListState.js +1 -14
  207. package/lib/components/list/styles/header.less +3 -3
  208. package/lib/components/list/utils/index.d.ts +1 -13
  209. package/lib/components/list/utils/index.js +0 -27
  210. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  212. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  213. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  214. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  215. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  216. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  217. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  218. package/lib/components/pay/toC/index.js +1 -4
  219. package/lib/components/pay/toC/locales.d.ts +0 -3
  220. package/lib/components/pay/toC/locales.js +3 -6
  221. package/lib/components/pay/toC/status.d.ts +0 -1
  222. package/lib/components/pay/toC/status.js +0 -5
  223. package/lib/components/schedules/utils.d.ts +1 -1
  224. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  225. package/lib/components/subTotal/index.js +1 -1
  226. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  227. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  228. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +24 -84
  229. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
  230. package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
  231. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  232. package/lib/components/ticketBooking/components/timeBar/index.js +4 -105
  233. package/lib/components/ticketBooking/components/timeBar/index.less +0 -59
  234. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +13 -17
  235. package/lib/components/ticketBooking/locales.d.ts +0 -6
  236. package/lib/components/ticketBooking/locales.js +3 -9
  237. package/lib/components/ticketBooking/utils/index.d.ts +0 -3
  238. package/lib/components/ticketBooking/utils/index.js +6 -20
  239. package/lib/components/wallet/Detail/index.js +3 -31
  240. package/lib/components/wallet/Detail/index.less +0 -11
  241. package/lib/components/wallet/Detail/locales.d.ts +0 -6
  242. package/lib/components/wallet/Detail/locales.js +2 -14
  243. package/lib/components/wallet/Voucher/index.js +8 -8
  244. package/lib/components/wallet/components/WalletCard.js +0 -4
  245. package/lib/components/wallet/index.js +2 -2
  246. package/lib/components/wallet/serve.d.ts +0 -7
  247. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  248. package/lib/index.d.ts +0 -4
  249. package/lib/index.js +0 -12
  250. package/lib/plus/clientCard/locales.js +3 -3
  251. package/lib/plus/clinetSearch/index.js +8 -17
  252. package/lib/plus/clinetSearch/locales.d.ts +0 -3
  253. package/lib/plus/clinetSearch/locales.js +4 -7
  254. package/lib/plus/clinetSearch/types.d.ts +0 -12
  255. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  256. package/lib/plus/walletPassGallery/components/footerButton/index.less +59 -14
  257. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  258. package/lib/plus/walletPassGallery/components/passDetail/index.js +15 -54
  259. package/lib/plus/walletPassGallery/components/passDetail/index.less +0 -4
  260. package/lib/plus/walletPassGallery/components/recharge/index.js +1 -7
  261. package/lib/plus/walletPassGallery/index.js +3 -7
  262. package/lib/plus/walletPassGallery/serve.d.ts +0 -3
  263. package/lib/plus/walletPassGallery/serve.js +2 -3
  264. package/lib/pro/Login2.0/index.less +8 -15
  265. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  266. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  267. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +43 -42
  268. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  269. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +2 -3
  270. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  271. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -8
  272. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  273. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  274. package/lib/pro/priceKeyboard/components/shortcuts/index.js +2 -3
  275. package/lib/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  276. package/lib/utils/index.d.ts +1 -1
  277. package/package.json +4 -4
  278. package/es/components/checkout/plugin.d.ts +0 -2
  279. package/es/components/checkout/plugin.js +0 -303
  280. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  281. package/es/components/eftposPay/payo/payment.js +0 -579
  282. package/es/components/eftposPay/utils/log/index.d.ts +0 -110
  283. package/es/components/eftposPay/utils/log/index.js +0 -371
  284. package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  285. package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  286. package/es/components/systemSettings/registry/components/ItemModal.js +0 -547
  287. package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  288. package/es/components/systemSettings/registry/components/ModuleList.js +0 -54
  289. package/es/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  290. package/es/components/systemSettings/registry/components/SectionList.js +0 -174
  291. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  292. package/es/components/systemSettings/registry/components/SettingsTable.js +0 -765
  293. package/es/components/systemSettings/registry/components/index.d.ts +0 -4
  294. package/es/components/systemSettings/registry/components/index.js +0 -4
  295. package/es/components/systemSettings/registry/index.d.ts +0 -5
  296. package/es/components/systemSettings/registry/index.js +0 -1059
  297. package/es/components/systemSettings/registry/index.less +0 -410
  298. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  299. package/es/components/systemSettings/registry/locales.js +0 -300
  300. package/es/components/systemSettings/registry/services.d.ts +0 -77
  301. package/es/components/systemSettings/registry/services.js +0 -472
  302. package/es/components/systemSettings/registry/types.d.ts +0 -126
  303. package/es/components/systemSettings/registry/types.js +0 -1
  304. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  305. package/es/components/systemSettings/registry/utils/typeValidation.js +0 -284
  306. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  307. package/es/components/systemSettings/registry/utils/validators.js +0 -44
  308. package/es/components/wallet/utils.d.ts +0 -48
  309. package/es/components/wallet/utils.js +0 -342
  310. package/lib/components/checkout/plugin.d.ts +0 -2
  311. package/lib/components/checkout/plugin.js +0 -263
  312. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  313. package/lib/components/eftposPay/payo/payment.js +0 -357
  314. package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
  315. package/lib/components/eftposPay/utils/log/index.js +0 -294
  316. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  317. package/lib/components/systemSettings/registry/components/GroupModal.js +0 -177
  318. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  319. package/lib/components/systemSettings/registry/components/ItemModal.js +0 -508
  320. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  321. package/lib/components/systemSettings/registry/components/ModuleList.js +0 -71
  322. package/lib/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  323. package/lib/components/systemSettings/registry/components/SectionList.js +0 -181
  324. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  325. package/lib/components/systemSettings/registry/components/SettingsTable.js +0 -575
  326. package/lib/components/systemSettings/registry/components/index.d.ts +0 -4
  327. package/lib/components/systemSettings/registry/components/index.js +0 -48
  328. package/lib/components/systemSettings/registry/index.d.ts +0 -5
  329. package/lib/components/systemSettings/registry/index.js +0 -529
  330. package/lib/components/systemSettings/registry/index.less +0 -410
  331. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  332. package/lib/components/systemSettings/registry/locales.js +0 -324
  333. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  334. package/lib/components/systemSettings/registry/services.js +0 -290
  335. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  336. package/lib/components/systemSettings/registry/types.js +0 -17
  337. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  338. package/lib/components/systemSettings/registry/utils/typeValidation.js +0 -228
  339. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  340. package/lib/components/systemSettings/registry/utils/validators.js +0 -54
  341. package/lib/components/wallet/utils.d.ts +0 -48
  342. package/lib/components/wallet/utils.js +0 -287
  343. package/lowcode/payment-modal/meta.ts +0 -135
  344. package/lowcode/settings-registry/meta.ts +0 -29
  345. package/lowcode/wallet-pass-detail/meta.ts +0 -89
@@ -18,14 +18,7 @@ import { useBookingTicket } from "./bookingTicket";
18
18
  import { useState, useEffect, useRef } from 'react';
19
19
  import useEngineContext, { usePlatform } from "../../../../hooks/useEngineContext";
20
20
  import dayjs from 'dayjs';
21
- // 等待函数
22
- var sleep = function sleep(ms) {
23
- return new Promise(function (resolve) {
24
- return setTimeout(resolve, ms);
25
- });
26
- };
27
21
  export var useProducts = function useProducts(notAvailableRef) {
28
- var _context$appHelper;
29
22
  var bookingTicket = useBookingTicket();
30
23
  var context = useEngineContext();
31
24
  var platform = usePlatform();
@@ -38,10 +31,6 @@ export var useProducts = function useProducts(notAvailableRef) {
38
31
  loading = _useState4[0],
39
32
  setLoading = _useState4[1];
40
33
  var isFirstLoadRef = useRef(true);
41
- var isFirstLoadDataRef = useRef(true);
42
- var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
43
- getApp = _ref.getApp;
44
- var app = getApp();
45
34
 
46
35
  // 日程时间段列表 HH:mm格式
47
36
  var _useState5 = useState([]),
@@ -51,7 +40,7 @@ export var useProducts = function useProducts(notAvailableRef) {
51
40
  var scheduledTaskQueueIdRef = useRef('booking-schedule-products');
52
41
  var paramsRef = useRef(undefined);
53
42
  var getProducts = useMemoizedFn( /*#__PURE__*/function () {
54
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
43
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
55
44
  var _products, _notAvailableRef$curr;
56
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
57
46
  while (1) switch (_context.prev = _context.next) {
@@ -84,7 +73,7 @@ export var useProducts = function useProducts(notAvailableRef) {
84
73
  }, _callee, null, [[1, 11]]);
85
74
  }));
86
75
  return function (_x) {
87
- return _ref2.apply(this, arguments);
76
+ return _ref.apply(this, arguments);
88
77
  };
89
78
  }());
90
79
 
@@ -94,21 +83,21 @@ export var useProducts = function useProducts(notAvailableRef) {
94
83
  return;
95
84
  }
96
85
  try {
97
- var _context$appHelper2, _context$appHelper2$g;
98
- var _app = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getApp) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.call(_context$appHelper2);
99
- if (!_app || !_app.tasksManager) {
86
+ var _context$appHelper, _context$appHelper$ge;
87
+ var app = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getApp) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper);
88
+ if (!app || !app.tasksManager) {
100
89
  console.warn('App 或 tasksManager 不可用');
101
90
  return;
102
91
  }
103
92
 
104
93
  // 注册 getProducts 任务函数
105
- _app.tasksManager.addTaskFunction('getProducts', /*#__PURE__*/function () {
106
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
94
+ app.tasksManager.addTaskFunction('getProducts', /*#__PURE__*/function () {
95
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
107
96
  var task;
108
97
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
109
98
  while (1) switch (_context2.prev = _context2.next) {
110
99
  case 0:
111
- task = _ref3.task;
100
+ task = _ref2.task;
112
101
  console.log('定时执行 getProducts,参数:', task.payload);
113
102
  _context2.next = 4;
114
103
  return getProducts(task.payload);
@@ -123,14 +112,14 @@ export var useProducts = function useProducts(notAvailableRef) {
123
112
  }, _callee2);
124
113
  }));
125
114
  return function (_x2) {
126
- return _ref4.apply(this, arguments);
115
+ return _ref3.apply(this, arguments);
127
116
  };
128
117
  }());
129
118
 
130
119
  // 如果有 scheduleTimePoints,创建定时任务
131
120
  if (scheduleTimePoints && scheduleTimePoints.length > 0) {
132
121
  // 先清除之前的定时任务
133
- _app.tasksManager.clearTasks({
122
+ app.tasksManager.clearTasks({
134
123
  module: 'scheduledTasks',
135
124
  queueId: scheduledTaskQueueIdRef.current
136
125
  });
@@ -158,14 +147,14 @@ export var useProducts = function useProducts(notAvailableRef) {
158
147
  });
159
148
 
160
149
  // 添加定时任务到 scheduledTasks 模块
161
- _app.tasksManager.addTask({
150
+ app.tasksManager.addTask({
162
151
  module: 'scheduledTasks',
163
152
  queueId: scheduledTaskQueueIdRef.current,
164
153
  tasks: tasks
165
154
  });
166
155
 
167
156
  // 开始执行定时任务队列
168
- _app.tasksManager.run({
157
+ app.tasksManager.run({
169
158
  module: 'scheduledTasks',
170
159
  queueId: scheduledTaskQueueIdRef.current
171
160
  });
@@ -178,10 +167,10 @@ export var useProducts = function useProducts(notAvailableRef) {
178
167
  // 清理函数:组件卸载时清除定时任务
179
168
  return function () {
180
169
  try {
181
- var _context$appHelper3, _context$appHelper3$g;
182
- var _app2 = context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.utils) === null || _context$appHelper3 === void 0 || (_context$appHelper3$g = _context$appHelper3.getApp) === null || _context$appHelper3$g === void 0 ? void 0 : _context$appHelper3$g.call(_context$appHelper3);
183
- if (_app2 && _app2.tasksManager) {
184
- _app2.tasksManager.clearTasks({
170
+ var _context$appHelper2, _context$appHelper2$g;
171
+ var _app = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getApp) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.call(_context$appHelper2);
172
+ if (_app && _app.tasksManager) {
173
+ _app.tasksManager.clearTasks({
185
174
  module: 'scheduledTasks',
186
175
  queueId: scheduledTaskQueueIdRef.current
187
176
  });
@@ -192,7 +181,7 @@ export var useProducts = function useProducts(notAvailableRef) {
192
181
  };
193
182
  }, [scheduleTimePoints]);
194
183
  var getScheduleTimePoints = useMemoizedFn( /*#__PURE__*/function () {
195
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
184
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
196
185
  var scheduleTimePoints;
197
186
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
198
187
  while (1) switch (_context3.prev = _context3.next) {
@@ -215,7 +204,7 @@ export var useProducts = function useProducts(notAvailableRef) {
215
204
  }, _callee3);
216
205
  }));
217
206
  return function (_x3) {
218
- return _ref5.apply(this, arguments);
207
+ return _ref4.apply(this, arguments);
219
208
  };
220
209
  }());
221
210
  return {
@@ -61,8 +61,6 @@ 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
64
  };
67
65
  'zh-CN': {
68
66
  'pisell2.ticket-booking.info': string;
@@ -126,8 +124,6 @@ declare const _default: {
126
124
  'pisell2.ticket-booking.terminal-upgrade-description': string;
127
125
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
128
126
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
129
- 'pisell2.ticket-booking.collapse': string;
130
- 'pisell2.ticket-booking.expand': string;
131
127
  };
132
128
  'zh-HK': {
133
129
  'pisell2.ticket-booking.info': string;
@@ -191,8 +187,6 @@ declare const _default: {
191
187
  'pisell2.ticket-booking.terminal-upgrade-description': string;
192
188
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
193
189
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
194
- 'pisell2.ticket-booking.collapse': string;
195
- 'pisell2.ticket-booking.expand': string;
196
190
  };
197
191
  };
198
192
  export default _default;
@@ -73,9 +73,7 @@ export default {
73
73
  'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal Version Reminder',
74
74
  'pisell2.ticket-booking.terminal-upgrade-description': 'Your Terminal version is outdated. Please upgrade Terminal to use all features.',
75
75
  'pisell2.ticket-booking.terminal-upgrade-ok': 'I understand',
76
- 'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel',
77
- 'pisell2.ticket-booking.collapse': 'Collapse',
78
- 'pisell2.ticket-booking.expand': 'Expand'
76
+ 'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel'
79
77
  },
80
78
  'zh-CN': {
81
79
  'pisell2.ticket-booking.info': '信息',
@@ -151,9 +149,7 @@ export default {
151
149
  'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
152
150
  'pisell2.ticket-booking.terminal-upgrade-description': '检测到您的Terminal版本较低,请升级Terminal以使用完整功能',
153
151
  'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
154
- 'pisell2.ticket-booking.terminal-upgrade-cancel': '取消',
155
- 'pisell2.ticket-booking.collapse': '收起',
156
- 'pisell2.ticket-booking.expand': '展开'
152
+ 'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
157
153
  },
158
154
  'zh-HK': {
159
155
  'pisell2.ticket-booking.info': '資訊',
@@ -229,8 +225,6 @@ export default {
229
225
  'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
230
226
  'pisell2.ticket-booking.terminal-upgrade-description': '檢測到您的Terminal版本較低,請升級Terminal以使用完整功能',
231
227
  'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
232
- 'pisell2.ticket-booking.terminal-upgrade-cancel': '取消',
233
- 'pisell2.ticket-booking.collapse': '收起',
234
- 'pisell2.ticket-booking.expand': '展開'
228
+ 'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
235
229
  }
236
230
  };
@@ -73,9 +73,6 @@ 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;
79
76
  };
80
77
  setProduct(product: Record<string, any>, values: {
81
78
  total: number;
@@ -2,14 +2,10 @@ var _excluded = ["detail"];
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
6
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -166,30 +162,21 @@ export var addService = function addService(list, addItem, state) {
166
162
  // 是否设置过 只追加到第一个中
167
163
  var isSetCount = false;
168
164
  value = list.map(function (item) {
169
- var _item$_extend;
170
165
  // 是否商品券折扣的商品
171
166
  var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
172
167
  return item.type === 'good_pass';
173
168
  });
174
169
  var isEdit = item === null || item === void 0 ? void 0 : item.edit;
175
- // 子商品是否有商品券折扣的商品
176
- var bundleDiscountList = [];
177
- ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).forEach(function (item) {
178
- bundleDiscountList.push.apply(bundleDiscountList, _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []));
179
- });
180
- var isGoodPassBundleProduct = bundleDiscountList.some(function (item) {
181
- return item.type === 'good_pass';
182
- });
183
- if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
184
- var _item$_extend2, _addItem$_extend2, _item$_extend3;
170
+ if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
171
+ var _item$_extend, _addItem$_extend2, _item$_extend2;
185
172
  isNotSame = false;
186
- var _quantity = ((item === null || item === void 0 || (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend2 = addItem._extend) === null || _addItem$_extend2 === void 0 ? void 0 : _addItem$_extend2.quantity) || 1);
173
+ var _quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend2 = addItem._extend) === null || _addItem$_extend2 === void 0 ? void 0 : _addItem$_extend2.quantity) || 1);
187
174
  count = _quantity;
188
175
  isSetCount = true;
189
176
  return _objectSpread(_objectSpread({}, item), {}, {
190
177
  _extend: _objectSpread(_objectSpread({}, item._extend), {}, {
191
178
  quantity: _quantity,
192
- other: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), {}, {
179
+ other: _objectSpread(_objectSpread({}, ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.other) || {}), {}, {
193
180
  quantity: _quantity
194
181
  })
195
182
  })
@@ -266,11 +253,11 @@ export var getIsShowNumber = function getIsShowNumber(item, state) {
266
253
 
267
254
  // 生成服务key
268
255
  export var genServiceKey = function genServiceKey(item) {
269
- var _item$_extend4, _item$_extend5, _item$_extend6;
256
+ var _item$_extend3, _item$_extend4, _item$_extend5;
270
257
  var product_id = item.product_id;
271
- var durationKey = (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.duration;
272
- var start_time = (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.start_time;
273
- var total = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.total;
258
+ var durationKey = (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.duration;
259
+ var start_time = (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.start_time;
260
+ var total = (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.total;
274
261
  var resourceKey = '';
275
262
  Object.values(item._extend.resource || []).forEach(function (resources) {
276
263
  resources.forEach(function (resource) {
@@ -375,21 +362,17 @@ export var getShopDiscountKey = function getShopDiscountKey(osKey) {
375
362
  export var rulesHooks = {
376
363
  // 获取商品关键信息
377
364
  getProduct: function getProduct(product) {
378
- var _product$_extend, _product$_extend2, _product$_extend3;
379
365
  var detail = {
380
366
  booking_id: product.booking_id,
381
367
  id: product.id,
382
368
  _id: product._id,
383
- price: product._extend.price,
369
+ price: product.price,
384
370
  total: product._extend.total,
385
371
  discount_list: product.discount_list,
386
372
  origin_total: product._extend.origin_total,
387
373
  num: product._extend.quantity,
388
374
  quantity: product._extend.quantity || 1,
389
- vouchersApplicable: product.vouchersApplicable,
390
- startDate: (_product$_extend = product._extend) === null || _product$_extend === void 0 ? void 0 : _product$_extend.startDate,
391
- bundle: ((_product$_extend2 = product._extend) === null || _product$_extend2 === void 0 || (_product$_extend2 = _product$_extend2.other) === null || _product$_extend2 === void 0 ? void 0 : _product$_extend2.bundle) || [],
392
- options: ((_product$_extend3 = product._extend) === null || _product$_extend3 === void 0 || (_product$_extend3 = _product$_extend3.other) === null || _product$_extend3 === void 0 ? void 0 : _product$_extend3.option) || []
375
+ vouchersApplicable: product.vouchersApplicable
393
376
  };
394
377
  return detail;
395
378
  },
@@ -397,14 +380,8 @@ export var rulesHooks = {
397
380
  var detail = _objectSpread(_objectSpread({}, product), {}, {
398
381
  _id: values._id || product._id,
399
382
  discount_list: values.discount_list,
400
- _extend: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, product._extend), {}, {
401
- other: _objectSpread(_objectSpread({}, product._extend.other), 'bundle' in values ? {
402
- bundle: values.bundle
403
- } : {})
404
- }, 'total' in values ? {
383
+ _extend: _objectSpread(_objectSpread(_objectSpread({}, product._extend), 'total' in values ? {
405
384
  total: values.total
406
- } : {}), 'main_product_selling_price' in values ? {
407
- main_product_selling_price: values.main_product_selling_price
408
385
  } : {}), 'quantity' in values ? {
409
386
  quantity: values.quantity
410
387
  } : {})
@@ -22,7 +22,6 @@ import localeTexts from "./locales";
22
22
  import { getAssetList, getDetailApi } from "./serve";
23
23
  import { request } from "./../../../utils";
24
24
  import { WalletBar, FooterButtons, UsageRules } from "../components";
25
- import { formatScheduleText } from "../utils";
26
25
  import "./index.less";
27
26
  var Text = Typography.Text;
28
27
 
@@ -55,9 +54,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
55
54
  _detail$expire_date = detail.expire_date,
56
55
  expire_date = _detail$expire_date === void 0 ? '' : _detail$expire_date,
57
56
  _detail$product = detail.product,
58
- product = _detail$product === void 0 ? {} : _detail$product,
59
- custom_schedule_snapshot = detail.custom_schedule_snapshot;
60
- console.log(detail, 'detail22');
57
+ product = _detail$product === void 0 ? {} : _detail$product;
61
58
  var _ref = product || {},
62
59
  _ref$description = _ref.description,
63
60
  description = _ref$description === void 0 ? '' : _ref$description,
@@ -301,36 +298,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
301
298
  onGoogleClick();
302
299
  }
303
300
  };
304
- var scheduleList = useMemo(function () {
305
- return (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [];
306
- }, [custom_schedule_snapshot]);
307
301
  useEffect(function () {
308
- var detail = formatScheduleText(scheduleList, 'zh-CN');
309
- var expireText = expire_date ? expire_date : locales.getText('page.wallet.expireDate');
310
- if (scheduleList.length > 0) {
311
- // 换行展示
312
- var validityTexts = "";
313
- var excludedText = "";
314
- var includedText = "";
315
- detail.forEach(function (item) {
316
- if (item.validityTexts.length > 0) {
317
- validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
318
- }
319
- if (item.excluded_date.length > 0) {
320
- excludedText = "".concat(excludedText).concat(item.excluded_date.join('\n'), "\n");
321
- }
322
- if (item.included_date.length > 0) {
323
- includedText = "".concat(includedText).concat(item.included_date.join('\n'), "\n");
324
- }
325
- });
326
- expireText = /*#__PURE__*/React.createElement("span", {
327
- className: "wallet-detail-expire-text"
328
- }, validityTexts, excludedText && /*#__PURE__*/React.createElement("div", {
329
- className: "wallet-detail-expire-text-title"
330
- }, locales.getText('page.wallet.notValidDate')), excludedText, includedText && /*#__PURE__*/React.createElement("div", {
331
- className: "wallet-detail-expire-text-title"
332
- }, locales.getText('page.wallet.includedDate')), includedText);
333
- }
334
302
  var data = [{
335
303
  label: locales.getText('page.wallet.cardName'),
336
304
  value: product_title
@@ -340,7 +308,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
340
308
  isLink: false
341
309
  }, {
342
310
  label: locales.getText('page.wallet.validDate'),
343
- value: expireText
311
+ value: expire_date ? expire_date : locales.getText('page.wallet.expireDate')
344
312
  }];
345
313
  //折扣卡显示折扣字段 其他显示余额字段
346
314
  if (tag === 'product_discount_card') {
@@ -373,14 +373,3 @@
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,8 +21,6 @@ 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;
26
24
  'page.wallet.urlEmpty': string;
27
25
  'page.wallet.notIOS': string;
28
26
  'page.wallet.addSuccess': string;
@@ -71,8 +69,6 @@ declare const _default: {
71
69
  'page.wallet.addGoogle': string;
72
70
  'page.wallet.viewDetails': string;
73
71
  'page.wallet.expireDate': string;
74
- 'page.wallet.notValidDate': string;
75
- 'page.wallet.includedDate': string;
76
72
  'page.wallet.urlEmpty': string;
77
73
  'page.wallet.notIOS': string;
78
74
  'page.wallet.addSuccess': string;
@@ -121,8 +117,6 @@ declare const _default: {
121
117
  'page.wallet.addGoogle': string;
122
118
  'page.wallet.viewDetails': string;
123
119
  'page.wallet.expireDate': string;
124
- 'page.wallet.notValidDate': string;
125
- 'page.wallet.includedDate': string;
126
120
  'page.wallet.urlEmpty': string;
127
121
  'page.wallet.notIOS': string;
128
122
  'page.wallet.addSuccess': string;
@@ -24,10 +24,6 @@ export default {
24
24
  'page.wallet.addGoogle': 'Add to Google Wallet',
25
25
  'page.wallet.viewDetails': 'See details',
26
26
  'page.wallet.expireDate': 'Long term',
27
- 'page.wallet.notValidDate': 'Not valid on',
28
- // 不可用日期
29
- 'page.wallet.includedDate': 'Included dates',
30
- // 包含日期
31
27
  'page.wallet.urlEmpty': 'Wallet link is empty',
32
28
  'page.wallet.notIOS': 'Apple Wallet is not supported on non-iOS devices',
33
29
  'page.wallet.addSuccess': 'Successfully added to wallet',
@@ -80,10 +76,6 @@ export default {
80
76
  'page.wallet.addGoogle': '添加到谷歌钱包',
81
77
  'page.wallet.viewDetails': '查看详情',
82
78
  'page.wallet.expireDate': '长期',
83
- 'page.wallet.notValidDate': '不可用日期',
84
- // 不可用日期
85
- 'page.wallet.includedDate': '包含日期',
86
- // 包含日期
87
79
  'page.wallet.urlEmpty': '钱包链接为空',
88
80
  'page.wallet.notIOS': '非iOS设备不支持Apple Wallet',
89
81
  'page.wallet.addSuccess': '已成功添加到钱包',
@@ -95,7 +87,7 @@ export default {
95
87
  // Usage Rules
96
88
  'page.wallet.usageRules': '使用规则',
97
89
  'page.wallet.usageRulesSubtitle': '请仔细阅读以下使用条件',
98
- 'page.wallet.timeUsageLimits': '使用频次限制',
90
+ 'page.wallet.timeUsageLimits': '时间使用限制',
99
91
  'page.wallet.totalQuantityControl': '总量控制',
100
92
  'page.wallet.dailyLimit': '每日限制:',
101
93
  'page.wallet.weeklyLimit': '每周限制:',
@@ -136,10 +128,6 @@ export default {
136
128
  'page.wallet.addGoogle': '添加到谷歌錢包',
137
129
  'page.wallet.viewDetails': '查看詳情',
138
130
  'page.wallet.expireDate': '長期',
139
- 'page.wallet.notValidDate': '不可用日期',
140
- // 不可用日期
141
- 'page.wallet.includedDate': '包含日期',
142
- // 包含日期
143
131
  'page.wallet.urlEmpty': '錢包連結為空',
144
132
  'page.wallet.notIOS': '非iOS設備不支持Apple Wallet',
145
133
  'page.wallet.addSuccess': '已成功添加到錢包',
@@ -151,7 +139,7 @@ export default {
151
139
  // Usage Rules
152
140
  'page.wallet.usageRules': '使用規則',
153
141
  'page.wallet.usageRulesSubtitle': '請仔細閱讀以下使用條件',
154
- 'page.wallet.timeUsageLimits': '使用頻次限制',
142
+ 'page.wallet.timeUsageLimits': '時間使用限制',
155
143
  'page.wallet.totalQuantityControl': '總量控制',
156
144
  'page.wallet.dailyLimit': '每日限制:',
157
145
  'page.wallet.weeklyLimit': '每週限制:',
@@ -48,17 +48,6 @@ var Voucher = Provider(function (props) {
48
48
  }
49
49
  }, [globalState.setup]);
50
50
 
51
- // 添加处理后退按钮的方法
52
- var handleBack = useCallback(function () {
53
- if (recordViewRef.current) {
54
- recordViewRef.current.closeDetailModal();
55
- }
56
- // 更新状态
57
- setGlobalState({
58
- setup: 'list'
59
- });
60
- }, [recordViewRef, setGlobalState]);
61
-
62
51
  // 渲染卡片项
63
52
  var renderItem = function renderItem(item) {
64
53
  return /*#__PURE__*/React.createElement(WalletCard, {
@@ -78,6 +67,16 @@ var Voucher = Provider(function (props) {
78
67
  if (isEmpty) {
79
68
  return /*#__PURE__*/React.createElement(PisellEmpty, null);
80
69
  }
70
+ // 添加处理后退按钮的方法
71
+ var handleBack = useCallback(function () {
72
+ if (recordViewRef.current) {
73
+ recordViewRef.current.closeDetailModal();
74
+ }
75
+ // 更新状态
76
+ setGlobalState({
77
+ setup: 'list'
78
+ });
79
+ }, [recordViewRef, setGlobalState]);
81
80
  return /*#__PURE__*/React.createElement(React.Fragment, null, platform !== 'pc' && /*#__PURE__*/React.createElement(Title, {
82
81
  className: "wallet-voucher-title"
83
82
  }, locales.getText('page.wallet.voucher')), /*#__PURE__*/React.createElement(CardMetricItem, {
@@ -1,4 +1,4 @@
1
- var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages", "custom_schedule_snapshot", "metadata"];
1
+ var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -40,8 +40,6 @@ var WalletCard = function WalletCard(_ref) {
40
40
  par_value = _item$par_value === void 0 ? '' : _item$par_value,
41
41
  _item$unified_message = item.unified_messages,
42
42
  unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
43
- custom_schedule_snapshot = item.custom_schedule_snapshot,
44
- metadata = item.metadata,
45
43
  rest = _objectWithoutProperties(item, _excluded);
46
44
 
47
45
  // 获取平台
@@ -60,8 +58,6 @@ var WalletCard = function WalletCard(_ref) {
60
58
  // 是否禁用
61
59
  var isDisabled = limit_status !== 'enable';
62
60
  return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, rest, {
63
- scheduleList: (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [],
64
- validDateBySchedule: (metadata === null || metadata === void 0 ? void 0 : metadata.validity_type) === 'custom_schedule_validity',
65
61
  balanceTitle: balanceTitle,
66
62
  showDetail: false,
67
63
  showRedeem: false,
@@ -72,8 +72,7 @@ var Wallet = Provider(function () {
72
72
  document.body.id = 'body';
73
73
  getList({
74
74
  num: 999,
75
- skip: 1,
76
- with: ['customScheduleSnapshot']
75
+ skip: 1
77
76
  });
78
77
  }, []);
79
78
  var transformData = function transformData(data) {
@@ -478,8 +477,7 @@ var Wallet = Provider(function () {
478
477
  // 重新获取列表
479
478
  getList({
480
479
  num: 999,
481
- skip: 1,
482
- with: ['customScheduleSnapshot']
480
+ skip: 1
483
481
  }, code);
484
482
  }
485
483
 
@@ -15,7 +15,6 @@ export interface IWalletListParmsProps {
15
15
  used_status?: string;
16
16
  num?: number;
17
17
  skip?: number;
18
- with?: string[];
19
18
  }
20
19
  /**
21
20
  * 钱包列表项属性接口
@@ -49,12 +48,6 @@ export interface IWalletListItemProps {
49
48
  machinecode_config?: {
50
49
  hide_recharge?: number;
51
50
  };
52
- metadata: {
53
- validity_type: string;
54
- };
55
- custom_schedule_snapshot: {
56
- data: any[];
57
- };
58
51
  }
59
52
  /**
60
53
  * 商店信息接口
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LogData {
3
2
  key: string;
4
3
  value: any;
package/es/index.d.ts CHANGED
@@ -23,7 +23,6 @@ export { default as EftposPay } from './components/eftposPay';
23
23
  export { default as ToCPay } from './components/pay/toC';
24
24
  export { default as ToBPay } from './components/pay/toB';
25
25
  export { default as Eftpos } from './components/eftpos';
26
- export { default as Wallet } from './components/wallet';
27
26
  export { default as WalletList } from './components/walletList';
28
27
  export { default as BookingDashboard } from './components/booking/dashboard';
29
28
  export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
@@ -70,7 +69,4 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
70
69
  export { Login2, Register2, AuthModal } from './pro/Login2.0';
71
70
  export { default as WalletEditor } from './plus/walletEditor';
72
71
  export { default as WalletPassGallery } from './plus/walletPassGallery';
73
- export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
74
- export { default as SettingsRegistry } from './components/systemSettings/registry';
75
72
  export { default as WebPosLogin } from './plus/webPosLogin';
76
- export { default as PaymentModal } from './components/checkout/plugin';
package/es/index.js CHANGED
@@ -27,7 +27,6 @@ export { default as EftposPay } from "./components/eftposPay";
27
27
  export { default as ToCPay } from "./components/pay/toC";
28
28
  export { default as ToBPay } from "./components/pay/toB";
29
29
  export { default as Eftpos } from "./components/eftpos";
30
- export { default as Wallet } from "./components/wallet";
31
30
  export { default as WalletList } from "./components/walletList";
32
31
  export { default as BookingDashboard } from "./components/booking/dashboard";
33
32
  export { default as PisellSelectCustomerModal } from "./components/pisellSelectCustomerModal";
@@ -73,7 +72,4 @@ export { default as ContactInfoModal } from "./plus/contactInfoModal";
73
72
  export { Login2, Register2, AuthModal } from "./pro/Login2.0";
74
73
  export { default as WalletEditor } from "./plus/walletEditor";
75
74
  export { default as WalletPassGallery } from "./plus/walletPassGallery";
76
- export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
77
- export { default as SettingsRegistry } from "./components/systemSettings/registry";
78
- export { default as WebPosLogin } from "./plus/webPosLogin";
79
- export { default as PaymentModal } from "./components/checkout/plugin";
75
+ export { default as WebPosLogin } from "./plus/webPosLogin";
@@ -1,8 +1,8 @@
1
1
  export default {
2
2
  en: {
3
- 'pisell2.text.add-client': 'Add Customer',
4
- 'pisell2.text.change-client': 'Change Customer',
5
- 'pisell2.text.remove-client': ' Remove Customer'
3
+ 'pisell2.text.add-client': 'Add client',
4
+ 'pisell2.text.change-client': 'Change Client',
5
+ 'pisell2.text.remove-client': ' Remove Client'
6
6
  },
7
7
  'zh-CN': {
8
8
  'pisell2.text.add-client': '添加客户',