@pisell/private-materials 6.7.7 → 6.7.9

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 (367) 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/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/footer/amount.d.ts +0 -1
  15. package/es/components/booking/components/footer/amount.js +84 -548
  16. package/es/components/booking/components/footer/index.js +56 -77
  17. package/es/components/booking/components/footer/utils.d.ts +0 -19
  18. package/es/components/booking/components/footer/utils.js +73 -194
  19. package/es/components/booking/components/voucher/index.js +7 -23
  20. package/es/components/booking/forms/model.d.ts +10 -1
  21. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  22. package/es/components/booking/hooks/useQuotation.js +1 -4
  23. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  24. package/es/components/booking/info/model.d.ts +10 -1
  25. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  26. package/es/components/booking/info/service2/utils.js +0 -1
  27. package/es/components/booking/info2/cartClientCard/index.js +6 -30
  28. package/es/components/booking/info2/index.js +1 -1
  29. package/es/components/booking/info2/service/addService/index.js +3 -2
  30. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info2/service/editNormalService/index.js +0 -6
  32. package/es/components/booking/info2/service/editService/index.js +6 -16
  33. package/es/components/booking/info2/service/editService/utils.d.ts +0 -15
  34. package/es/components/booking/info2/service/editService/utils.js +0 -66
  35. package/es/components/booking/model.d.ts +9 -1
  36. package/es/components/booking/notes/model.d.ts +10 -1
  37. package/es/components/booking/payments/model.d.ts +10 -1
  38. package/es/components/booking/utils.d.ts +0 -1
  39. package/es/components/booking/utils.js +3 -16
  40. package/es/components/checkout/PaymentModal.d.ts +5 -13
  41. package/es/components/checkout/PaymentModal.js +252 -304
  42. package/es/components/checkout/PaymentPlugin.d.ts +3 -0
  43. package/es/components/{systemSettings/registry/components/GroupModal.js → checkout/PaymentPlugin.js} +171 -132
  44. package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  45. package/es/components/checkout/components/AdditionalModule/index.js +12 -52
  46. package/es/components/checkout/components/AmountSummary/index.js +76 -9
  47. package/es/components/checkout/components/AmountSummary/index.less +6 -5
  48. package/es/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  49. package/es/components/checkout/components/CashPaymentModule/index.js +2 -5
  50. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  51. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  52. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -6
  53. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  54. package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -2
  55. package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  56. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  57. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +8 -31
  58. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  59. package/es/components/checkout/components/PaymentResultToast/index.less +33 -94
  60. package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
  61. package/es/components/checkout/hooks/useWalletPass.js +1 -1
  62. package/es/components/checkout/index.less +1 -1
  63. package/es/components/checkout/locales.d.ts +0 -6
  64. package/es/components/checkout/locales.js +0 -6
  65. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  66. package/es/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  67. package/es/components/eftposPay/hooks.d.ts +1 -1
  68. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -14
  69. package/es/components/eftposPay/payo/config.js +32 -70
  70. package/es/components/eftposPay/store/index.d.ts +4 -4
  71. package/es/components/eftposPay/tyro/index.js +0 -12
  72. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  76. package/es/components/index.d.ts +1 -2
  77. package/es/components/index.js +1 -2
  78. package/es/components/list/List.js +40 -56
  79. package/es/components/list/hooks/useListState.d.ts +3 -5
  80. package/es/components/list/hooks/useListState.js +2 -17
  81. package/es/components/list/styles/header.less +3 -3
  82. package/es/components/list/utils/index.d.ts +1 -13
  83. package/es/components/list/utils/index.js +1 -43
  84. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  85. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  86. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  87. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +0 -2
  88. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  89. package/es/components/pay/toC/index.js +4 -7
  90. package/es/components/pay/toC/locales.d.ts +0 -3
  91. package/es/components/pay/toC/locales.js +3 -6
  92. package/es/components/pay/toC/model.d.ts +9 -1
  93. package/es/components/pay/toC/status.d.ts +0 -1
  94. package/es/components/pay/toC/status.js +0 -3
  95. package/es/components/schedules/model.d.ts +9 -1
  96. package/es/components/schedules/utils.d.ts +1 -1
  97. package/es/components/subTotal/index.js +1 -1
  98. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  99. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  100. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +36 -139
  101. package/es/components/ticketBooking/components/addServiceVariant/addService.js +86 -2
  102. package/es/components/ticketBooking/components/menuBar/index.js +12 -109
  103. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  104. package/es/components/ticketBooking/components/timeBar/index.js +7 -112
  105. package/es/components/ticketBooking/components/timeBar/index.less +0 -59
  106. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +18 -29
  107. package/es/components/ticketBooking/locales.d.ts +0 -6
  108. package/es/components/ticketBooking/locales.js +3 -9
  109. package/es/components/ticketBooking/utils/index.d.ts +0 -3
  110. package/es/components/ticketBooking/utils/index.js +13 -36
  111. package/es/components/wallet/Detail/index.js +2 -34
  112. package/es/components/wallet/Detail/index.less +0 -11
  113. package/es/components/wallet/Detail/locales.d.ts +0 -6
  114. package/es/components/wallet/Detail/locales.js +2 -14
  115. package/es/components/wallet/Detail/model.d.ts +13 -1
  116. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  117. package/es/components/wallet/PointCard/model.d.ts +13 -1
  118. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  119. package/es/components/wallet/Voucher/index.js +10 -11
  120. package/es/components/wallet/Voucher/model.d.ts +13 -1
  121. package/es/components/wallet/components/WalletCard.js +1 -5
  122. package/es/components/wallet/index.js +2 -4
  123. package/es/components/wallet/model.d.ts +9 -1
  124. package/es/components/wallet/serve.d.ts +0 -7
  125. package/es/hooks/usePaymentLogger.d.ts +0 -1
  126. package/es/index.d.ts +0 -4
  127. package/es/index.js +1 -5
  128. package/es/plus/clientCard/locales.js +3 -3
  129. package/es/plus/clinetSearch/index.js +30 -28
  130. package/es/plus/clinetSearch/locales.d.ts +0 -3
  131. package/es/plus/clinetSearch/locales.js +4 -7
  132. package/es/plus/clinetSearch/types.d.ts +0 -12
  133. package/es/plus/walletPassGallery/components/footerButton/index.js +4 -2
  134. package/es/plus/walletPassGallery/components/footerButton/index.less +59 -14
  135. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  136. package/es/plus/walletPassGallery/components/passDetail/index.js +31 -84
  137. package/es/plus/walletPassGallery/components/passDetail/index.less +0 -4
  138. package/es/plus/walletPassGallery/components/recharge/index.js +8 -19
  139. package/es/plus/walletPassGallery/index.js +3 -7
  140. package/es/plus/walletPassGallery/serve.d.ts +0 -3
  141. package/es/plus/walletPassGallery/serve.js +2 -4
  142. package/es/pro/Login2.0/index.less +8 -15
  143. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  144. package/es/pro/comprehensiveSearch/locales.js +1 -1
  145. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +36 -45
  146. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  147. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +2 -4
  148. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  149. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -10
  150. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  151. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  152. package/es/pro/priceKeyboard/components/shortcuts/index.js +2 -5
  153. package/es/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  154. package/es/utils/index.d.ts +1 -1
  155. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -2
  156. package/lib/components/booking/addons/index.js +7 -15
  157. package/lib/components/booking/addons/model.d.ts +10 -1
  158. package/lib/components/booking/components/footer/amount.d.ts +0 -1
  159. package/lib/components/booking/components/footer/amount.js +41 -293
  160. package/lib/components/booking/components/footer/index.js +11 -30
  161. package/lib/components/booking/components/footer/utils.d.ts +0 -19
  162. package/lib/components/booking/components/footer/utils.js +41 -138
  163. package/lib/components/booking/components/voucher/index.js +9 -25
  164. package/lib/components/booking/forms/model.d.ts +10 -1
  165. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  166. package/lib/components/booking/hooks/useQuotation.js +1 -2
  167. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  168. package/lib/components/booking/info/model.d.ts +10 -1
  169. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  170. package/lib/components/booking/info/service2/utils.js +0 -1
  171. package/lib/components/booking/info2/cartClientCard/index.js +5 -25
  172. package/lib/components/booking/info2/index.js +2 -7
  173. package/lib/components/booking/info2/service/addService/index.js +2 -1
  174. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  175. package/lib/components/booking/info2/service/editNormalService/index.js +0 -6
  176. package/lib/components/booking/info2/service/editService/index.js +3 -12
  177. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -15
  178. package/lib/components/booking/info2/service/editService/utils.js +3 -40
  179. package/lib/components/booking/model.d.ts +9 -1
  180. package/lib/components/booking/notes/model.d.ts +10 -1
  181. package/lib/components/booking/payments/model.d.ts +10 -1
  182. package/lib/components/booking/utils.d.ts +0 -1
  183. package/lib/components/booking/utils.js +0 -11
  184. package/lib/components/checkout/PaymentModal.d.ts +5 -13
  185. package/lib/components/checkout/PaymentModal.js +147 -190
  186. package/lib/components/checkout/PaymentPlugin.d.ts +3 -0
  187. package/lib/components/checkout/PaymentPlugin.js +181 -0
  188. package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  189. package/lib/components/checkout/components/AdditionalModule/index.js +11 -52
  190. package/lib/components/checkout/components/AmountSummary/index.js +46 -5
  191. package/lib/components/checkout/components/AmountSummary/index.less +6 -5
  192. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  193. package/lib/components/checkout/components/CashPaymentModule/index.js +2 -5
  194. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  195. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  196. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -5
  197. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  198. package/lib/components/checkout/components/PaymentOptionsModule/index.js +0 -6
  199. package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  200. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  201. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +5 -23
  202. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  203. package/lib/components/checkout/components/PaymentResultToast/index.less +33 -94
  204. package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
  205. package/lib/components/checkout/hooks/useWalletPass.js +1 -1
  206. package/lib/components/checkout/index.less +1 -1
  207. package/lib/components/checkout/locales.d.ts +0 -6
  208. package/lib/components/checkout/locales.js +0 -6
  209. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  210. package/lib/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  211. package/lib/components/eftposPay/hooks.d.ts +1 -1
  212. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -12
  213. package/lib/components/eftposPay/payo/config.js +73 -98
  214. package/lib/components/eftposPay/store/index.d.ts +4 -4
  215. package/lib/components/eftposPay/tyro/index.js +0 -12
  216. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  217. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  218. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  219. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  220. package/lib/components/index.d.ts +1 -2
  221. package/lib/components/index.js +0 -3
  222. package/lib/components/list/List.js +16 -34
  223. package/lib/components/list/hooks/useListState.d.ts +3 -5
  224. package/lib/components/list/hooks/useListState.js +1 -14
  225. package/lib/components/list/styles/header.less +3 -3
  226. package/lib/components/list/utils/index.d.ts +1 -13
  227. package/lib/components/list/utils/index.js +0 -27
  228. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  229. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  230. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  231. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  232. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  233. package/lib/components/pay/toC/index.js +1 -4
  234. package/lib/components/pay/toC/locales.d.ts +0 -3
  235. package/lib/components/pay/toC/locales.js +3 -6
  236. package/lib/components/pay/toC/model.d.ts +9 -1
  237. package/lib/components/pay/toC/status.d.ts +0 -1
  238. package/lib/components/pay/toC/status.js +0 -5
  239. package/lib/components/schedules/model.d.ts +9 -1
  240. package/lib/components/schedules/utils.d.ts +1 -1
  241. package/lib/components/subTotal/index.js +1 -1
  242. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  243. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  244. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +24 -84
  245. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
  246. package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
  247. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  248. package/lib/components/ticketBooking/components/timeBar/index.js +4 -105
  249. package/lib/components/ticketBooking/components/timeBar/index.less +0 -59
  250. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +13 -17
  251. package/lib/components/ticketBooking/locales.d.ts +0 -6
  252. package/lib/components/ticketBooking/locales.js +3 -9
  253. package/lib/components/ticketBooking/utils/index.d.ts +0 -3
  254. package/lib/components/ticketBooking/utils/index.js +6 -20
  255. package/lib/components/wallet/Detail/index.js +3 -31
  256. package/lib/components/wallet/Detail/index.less +0 -11
  257. package/lib/components/wallet/Detail/locales.d.ts +0 -6
  258. package/lib/components/wallet/Detail/locales.js +2 -14
  259. package/lib/components/wallet/Detail/model.d.ts +13 -1
  260. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  261. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  262. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  263. package/lib/components/wallet/Voucher/index.js +8 -8
  264. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  265. package/lib/components/wallet/components/WalletCard.js +0 -4
  266. package/lib/components/wallet/index.js +2 -2
  267. package/lib/components/wallet/model.d.ts +9 -1
  268. package/lib/components/wallet/serve.d.ts +0 -7
  269. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  270. package/lib/index.d.ts +0 -4
  271. package/lib/index.js +0 -12
  272. package/lib/plus/clientCard/locales.js +3 -3
  273. package/lib/plus/clinetSearch/index.js +8 -17
  274. package/lib/plus/clinetSearch/locales.d.ts +0 -3
  275. package/lib/plus/clinetSearch/locales.js +4 -7
  276. package/lib/plus/clinetSearch/types.d.ts +0 -12
  277. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  278. package/lib/plus/walletPassGallery/components/footerButton/index.less +59 -14
  279. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  280. package/lib/plus/walletPassGallery/components/passDetail/index.js +15 -54
  281. package/lib/plus/walletPassGallery/components/passDetail/index.less +0 -4
  282. package/lib/plus/walletPassGallery/components/recharge/index.js +1 -7
  283. package/lib/plus/walletPassGallery/index.js +3 -7
  284. package/lib/plus/walletPassGallery/serve.d.ts +0 -3
  285. package/lib/plus/walletPassGallery/serve.js +2 -3
  286. package/lib/pro/Login2.0/index.less +8 -15
  287. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  288. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  289. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +43 -42
  290. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  291. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +2 -3
  292. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  293. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -8
  294. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  295. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  296. package/lib/pro/priceKeyboard/components/shortcuts/index.js +2 -3
  297. package/lib/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  298. package/lib/utils/index.d.ts +1 -1
  299. package/package.json +4 -4
  300. package/es/components/checkout/plugin.d.ts +0 -2
  301. package/es/components/checkout/plugin.js +0 -303
  302. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  303. package/es/components/eftposPay/payo/payment.js +0 -579
  304. package/es/components/eftposPay/utils/log/index.d.ts +0 -110
  305. package/es/components/eftposPay/utils/log/index.js +0 -371
  306. package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  307. package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  308. package/es/components/systemSettings/registry/components/ItemModal.js +0 -547
  309. package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  310. package/es/components/systemSettings/registry/components/ModuleList.js +0 -54
  311. package/es/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  312. package/es/components/systemSettings/registry/components/SectionList.js +0 -174
  313. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  314. package/es/components/systemSettings/registry/components/SettingsTable.js +0 -765
  315. package/es/components/systemSettings/registry/components/index.d.ts +0 -4
  316. package/es/components/systemSettings/registry/components/index.js +0 -4
  317. package/es/components/systemSettings/registry/index.d.ts +0 -5
  318. package/es/components/systemSettings/registry/index.js +0 -1059
  319. package/es/components/systemSettings/registry/index.less +0 -410
  320. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  321. package/es/components/systemSettings/registry/locales.js +0 -300
  322. package/es/components/systemSettings/registry/services.d.ts +0 -77
  323. package/es/components/systemSettings/registry/services.js +0 -472
  324. package/es/components/systemSettings/registry/types.d.ts +0 -126
  325. package/es/components/systemSettings/registry/types.js +0 -1
  326. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  327. package/es/components/systemSettings/registry/utils/typeValidation.js +0 -284
  328. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  329. package/es/components/systemSettings/registry/utils/validators.js +0 -44
  330. package/es/components/wallet/utils.d.ts +0 -48
  331. package/es/components/wallet/utils.js +0 -342
  332. package/lib/components/checkout/plugin.d.ts +0 -2
  333. package/lib/components/checkout/plugin.js +0 -263
  334. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  335. package/lib/components/eftposPay/payo/payment.js +0 -357
  336. package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
  337. package/lib/components/eftposPay/utils/log/index.js +0 -294
  338. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  339. package/lib/components/systemSettings/registry/components/GroupModal.js +0 -177
  340. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  341. package/lib/components/systemSettings/registry/components/ItemModal.js +0 -508
  342. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  343. package/lib/components/systemSettings/registry/components/ModuleList.js +0 -71
  344. package/lib/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  345. package/lib/components/systemSettings/registry/components/SectionList.js +0 -181
  346. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  347. package/lib/components/systemSettings/registry/components/SettingsTable.js +0 -575
  348. package/lib/components/systemSettings/registry/components/index.d.ts +0 -4
  349. package/lib/components/systemSettings/registry/components/index.js +0 -48
  350. package/lib/components/systemSettings/registry/index.d.ts +0 -5
  351. package/lib/components/systemSettings/registry/index.js +0 -529
  352. package/lib/components/systemSettings/registry/index.less +0 -410
  353. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  354. package/lib/components/systemSettings/registry/locales.js +0 -324
  355. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  356. package/lib/components/systemSettings/registry/services.js +0 -290
  357. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  358. package/lib/components/systemSettings/registry/types.js +0 -17
  359. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  360. package/lib/components/systemSettings/registry/utils/typeValidation.js +0 -228
  361. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  362. package/lib/components/systemSettings/registry/utils/validators.js +0 -54
  363. package/lib/components/wallet/utils.d.ts +0 -48
  364. package/lib/components/wallet/utils.js +0 -287
  365. package/lowcode/payment-modal/meta.ts +0 -135
  366. package/lowcode/settings-registry/meta.ts +0 -29
  367. package/lowcode/wallet-pass-detail/meta.ts +0 -89
@@ -42,7 +42,6 @@ var import_helper = require("../helper");
42
42
  var import_hooks = require("../hooks");
43
43
  var import_store = require("../store");
44
44
  var import_hooks2 = require("./hooks");
45
- var import_payment = require("./payment");
46
45
  var POS = ({
47
46
  api,
48
47
  onChange
@@ -69,13 +68,6 @@ var POS = ({
69
68
  const initRef = (0, import_react.useRef)(false);
70
69
  const unloadRef = (0, import_react.useRef)(false);
71
70
  const [check] = (0, import_hooks2.useValidate)(1e3 * 60);
72
- const { run: paymentRun, clean: paymentClean } = (0, import_payment.usePayment)({
73
- payApi: api.pay,
74
- checkApi: api.check,
75
- shouldContinue: () => {
76
- return !(unloadRef.current || !netRef.current);
77
- }
78
- });
79
71
  (0, import_react.useEffect)(() => {
80
72
  failRef.current = fail;
81
73
  }, [fail]);
@@ -134,7 +126,7 @@ var POS = ({
134
126
  );
135
127
  };
136
128
  (0, import_react.useEffect)(() => {
137
- var _a, _b, _c;
129
+ var _a, _b;
138
130
  if (statusRef.current === import_const.StatusEnum.Success || statusRef.current === import_const.StatusEnum.Fail) {
139
131
  return;
140
132
  }
@@ -153,98 +145,82 @@ var POS = ({
153
145
  })
154
146
  );
155
147
  controllerRef.current = new AbortController();
156
- const isPay = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay;
157
- const apiParams = isPay ? {
158
- ...(custom == null ? void 0 : custom.platform) ? {
159
- operator_id: custom.operator_id,
160
- operator_type: custom.operator_type,
161
- platform: custom.platform,
162
- custom_payment_id: custom.custom_payment_id
163
- } : {},
164
- original_amount: payRef.current.amount,
165
- service_charge: {
166
- amount: payRef.current.surMoney,
167
- percentage: payRef.current.surPercentRate
168
- },
169
- order_id: orderIdRef.current,
170
- amount: payRef.current.total,
171
- card_reader_type: eftposRef.current,
172
- card_reader_id: (_a = deviceRef.current) == null ? void 0 : _a.id,
173
- number: numRef.current,
174
- pay_param_base64: encodeURIComponent(
175
- btoa(
176
- encodeURIComponent(
177
- JSON.stringify({
178
- ...dataRef.current,
179
- number: numRef.current
180
- })
148
+ const resultPromise = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay ? api.pay(
149
+ {
150
+ ...(custom == null ? void 0 : custom.platform) ? {
151
+ operator_id: custom.operator_id,
152
+ operator_type: custom.operator_type,
153
+ platform: custom.platform,
154
+ custom_payment_id: custom.custom_payment_id,
155
+ service_charge: {
156
+ amount: payRef.current.surMoney,
157
+ percentage: payRef.current.surPercentRate
158
+ },
159
+ original_amount: payRef.current.amount
160
+ } : {},
161
+ order_id: orderIdRef.current,
162
+ amount: payRef.current.total,
163
+ card_reader_type: eftposRef.current,
164
+ card_reader_id: (_a = deviceRef.current) == null ? void 0 : _a.id,
165
+ number: numRef.current,
166
+ pay_param_base64: encodeURIComponent(
167
+ btoa(
168
+ encodeURIComponent(
169
+ JSON.stringify({
170
+ ...dataRef.current,
171
+ number: numRef.current
172
+ })
173
+ )
181
174
  )
182
175
  )
183
- )
184
- } : {
185
- order_id: orderIdRef.current,
186
- amount: amountRef.current,
187
- card_reader_type: eftposRef.current,
188
- card_reader_id: (_b = deviceRef.current) == null ? void 0 : _b.id,
189
- number: numRef.current,
190
- pay_param_base64: encodeURIComponent(
191
- btoa(
192
- encodeURIComponent(
193
- JSON.stringify({
194
- ...dataRef.current,
195
- number: numRef.current
196
- })
176
+ },
177
+ { signal: controllerRef.current.signal }
178
+ ) : api.refund(
179
+ {
180
+ order_id: orderIdRef.current,
181
+ amount: amountRef.current,
182
+ card_reader_type: eftposRef.current,
183
+ card_reader_id: (_b = deviceRef.current) == null ? void 0 : _b.id,
184
+ number: numRef.current,
185
+ pay_param_base64: encodeURIComponent(
186
+ btoa(
187
+ encodeURIComponent(
188
+ JSON.stringify({
189
+ ...dataRef.current,
190
+ number: numRef.current
191
+ })
192
+ )
197
193
  )
198
194
  )
199
- )
200
- };
201
- if (isPay) {
202
- paymentRun({
203
- paymentType: import_payment.ActionType.Pay,
204
- paymentNum: numRef.current,
205
- orderId: orderIdRef.current,
206
- deviceId: (_c = deviceRef.current) == null ? void 0 : _c.id,
207
- params: apiParams,
208
- callbacks: {
209
- onSuccess: (res) => {
210
- success(res);
211
- },
212
- onError: (err) => {
213
- console.log("err = >>>>>", err);
214
- failRef.current(err, true);
215
- }
216
- }
217
- });
218
- return;
219
- } else {
220
- const resultPromise = api.refund(apiParams, { signal: controllerRef.current.signal });
221
- resultPromise.then((res) => {
222
- console.log("netRef.current111 = ", netRef.current);
223
- if (unloadRef.current || !netRef.current) {
224
- return;
225
- }
226
- if (res && `${res.code}` === "200") {
227
- success(res);
228
- return;
229
- }
230
- return Promise.reject(res);
231
- }).catch((err) => {
232
- console.log(
233
- "netRef.current222 = ",
234
- netRef.current,
235
- unloadRef.current,
236
- err
237
- );
238
- if (unloadRef.current || !netRef.current) {
239
- return;
240
- }
241
- if (!(err == null ? void 0 : err.code) || `${err.code}` === import_const.PayStatus.Timeout) {
242
- checkApi();
243
- return;
244
- }
245
- failRef.current(err, true);
246
- });
247
- }
195
+ },
196
+ { signal: controllerRef.current.signal }
197
+ );
198
+ resultPromise.then((res) => {
199
+ console.log("netRef.current111 = ", netRef.current);
200
+ if (unloadRef.current || !netRef.current) {
201
+ return;
202
+ }
203
+ if (res && `${res.code}` === "200") {
204
+ success(res);
205
+ return;
206
+ }
207
+ return Promise.reject(res);
208
+ }).catch((err) => {
209
+ console.log(
210
+ "netRef.current222 = ",
211
+ netRef.current,
212
+ unloadRef.current,
213
+ err
214
+ );
215
+ if (unloadRef.current || !netRef.current) {
216
+ return;
217
+ }
218
+ if (!(err == null ? void 0 : err.code) || `${err.code}` === import_const.PayStatus.Timeout) {
219
+ checkApi();
220
+ return;
221
+ }
222
+ failRef.current(err, true);
223
+ });
248
224
  }, [api, check, dispatch, onChange]);
249
225
  (0, import_react.useEffect)(
250
226
  () => () => {
@@ -254,7 +230,6 @@ var POS = ({
254
230
  if (clearRef.current) {
255
231
  clearTimeout(clearRef.current);
256
232
  }
257
- paymentClean();
258
233
  },
259
234
  []
260
235
  );
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "loading" | "warn" | "success" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "deviceList" | "amount" | "pay" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -158,12 +158,6 @@ var tyro_default = ({
158
158
  response: {},
159
159
  metadata: {
160
160
  receipt: []
161
- },
162
- _config: {
163
- retry: {
164
- count: 10,
165
- delay: 500
166
- }
167
161
  }
168
162
  }).then((res) => {
169
163
  requestIdRef.current = res.data.id;
@@ -235,12 +229,6 @@ var tyro_default = ({
235
229
  response: {},
236
230
  metadata: {
237
231
  receipt: []
238
- },
239
- _config: {
240
- retry: {
241
- count: 10,
242
- delay: 500
243
- }
244
232
  }
245
233
  }).then((res) => {
246
234
  requestIdRef.current = res.data.id;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => import("react").JSX.Element;
3
4
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CallToBookProps = {
3
4
  show: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => import("react").JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -20,5 +20,4 @@ import StepController from './stepController';
20
20
  import PinModal from './pinModal';
21
21
  import PinVerifyModal from './pinVerifyModal';
22
22
  import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
23
- import Registry from './systemSettings/registry';
24
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, };
23
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, };
@@ -47,7 +47,6 @@ __export(components_exports, {
47
47
  PinVerifyModal: () => import_pinVerifyModal.default,
48
48
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
49
49
  ProductExtension: () => import_productExtension.default,
50
- Registry: () => import_registry.default,
51
50
  RuleSetting: () => import_ruleSetting.default,
52
51
  SaaSAdminAuth: () => import_admin.SaaSAdminAuth,
53
52
  SaaSManagermentAuth: () => import_admin.SaaSManagermentAuth,
@@ -84,7 +83,6 @@ var import_stepController = __toESM(require("./stepController"));
84
83
  var import_pinModal = __toESM(require("./pinModal"));
85
84
  var import_pinVerifyModal = __toESM(require("./pinVerifyModal"));
86
85
  var import_admin = require("./authentication/admin");
87
- var import_registry = __toESM(require("./systemSettings/registry"));
88
86
  // Annotate the CommonJS export names for ESM import in node:
89
87
  0 && (module.exports = {
90
88
  Booking,
@@ -105,7 +103,6 @@ var import_registry = __toESM(require("./systemSettings/registry"));
105
103
  PinVerifyModal,
106
104
  PisellSelectCustomerModal,
107
105
  ProductExtension,
108
- Registry,
109
106
  RuleSetting,
110
107
  SaaSAdminAuth,
111
108
  SaaSManagermentAuth,
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(List_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_classnames = __toESM(require("classnames"));
38
+ var import_Tab = __toESM(require("./components/Tab"));
38
39
  var import_Pagination = __toESM(require("./components/Pagination"));
39
40
  var import_EmptyState = __toESM(require("./components/EmptyState"));
40
41
  var import_ScrollLoader = __toESM(require("./components/ScrollLoader"));
@@ -47,7 +48,6 @@ var import_locales = __toESM(require("./locales"));
47
48
  var import_useWaterfall = __toESM(require("./hooks/useWaterfall"));
48
49
  var import_useListState = require("./hooks/useListState");
49
50
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
50
- var import_utils = require("./utils");
51
51
  var MOCK_LIST_DATA = (() => {
52
52
  const mockData = [];
53
53
  for (let i = 0; i < 8; i++) {
@@ -131,7 +131,6 @@ var List = (props) => {
131
131
  externalCurrentPage: pagination == null ? void 0 : pagination.current,
132
132
  tabItems,
133
133
  defaultPageSize,
134
- tabStyle,
135
134
  onLoadData
136
135
  });
137
136
  const { activeTab, isStickyActive } = listState;
@@ -144,14 +143,6 @@ var List = (props) => {
144
143
  }
145
144
  return fieldValue === targetValue;
146
145
  };
147
- const dataIdMap = (0, import_react.useMemo)(() => {
148
- return data.reduce((pre, cur) => {
149
- return {
150
- ...pre,
151
- [cur.id]: cur
152
- };
153
- }, {});
154
- }, [data]);
155
146
  const processedData = (0, import_react.useMemo)(() => {
156
147
  const sourceData = loading ? MOCK_LIST_DATA : data || [];
157
148
  if (tabStyle === "anchor" && tabItems.length > 0) {
@@ -201,30 +192,20 @@ var List = (props) => {
201
192
  if (!activeTab || activeTab === "all") {
202
193
  return [{ tabKey: "all", tabLabel: "", items: filteredData }];
203
194
  }
204
- if (Array.isArray(activeTab)) {
205
- const productIds = (0, import_utils.findProductIdsByPath)(tabItems, activeTab, 0);
206
- const items = productIds.map((id) => dataIdMap[id]);
207
- return [{
208
- tabKey: activeTab,
209
- tabLabel: "",
210
- items
211
- }];
212
- } else {
213
- const currentTab = tabItems.find((tab) => tab.key === activeTab);
214
- if (currentTab && currentTab.group) {
215
- const filterField = "category";
216
- filteredData = filteredData.filter((item) => matchesFieldValue(item[filterField], currentTab.group));
217
- } else if (currentTab) {
218
- const possibleFields = ["category", "status", "type", tabGroup];
219
- for (const field of possibleFields) {
220
- if (field && field !== "字段" && filteredData.some((item) => matchesFieldValue(item[field], activeTab))) {
221
- filteredData = filteredData.filter((item) => matchesFieldValue(item[field], activeTab));
222
- break;
223
- }
195
+ const currentTab = tabItems.find((tab) => tab.key === activeTab);
196
+ if (currentTab && currentTab.group) {
197
+ const filterField = "category";
198
+ filteredData = filteredData.filter((item) => matchesFieldValue(item[filterField], currentTab.group));
199
+ } else if (currentTab) {
200
+ const possibleFields = ["category", "status", "type", tabGroup];
201
+ for (const field of possibleFields) {
202
+ if (field && field !== "字段" && filteredData.some((item) => matchesFieldValue(item[field], activeTab))) {
203
+ filteredData = filteredData.filter((item) => matchesFieldValue(item[field], activeTab));
204
+ break;
224
205
  }
225
206
  }
226
- return [{ tabKey: activeTab, tabLabel: (currentTab == null ? void 0 : currentTab.label) || "", items: filteredData }];
227
207
  }
208
+ return [{ tabKey: activeTab, tabLabel: (currentTab == null ? void 0 : currentTab.label) || "", items: filteredData }];
228
209
  }
229
210
  }, [data, activeTab, tabItems, tabGroup, tabStyle, loading]);
230
211
  const totalDataLength = (0, import_react.useMemo)(() => {
@@ -521,10 +502,11 @@ var List = (props) => {
521
502
  className: headerClasses
522
503
  },
523
504
  /* @__PURE__ */ import_react.default.createElement(
524
- import_materials.PisellTabbar,
505
+ import_Tab.default,
525
506
  {
526
- dataSource: tabItems,
527
- value: activeTab,
507
+ className: (0, import_classnames.default)("pisell-list-tabs", `pisell-list-tabs-${tabStyle}`),
508
+ activeKey: activeTab,
509
+ items: tabItems,
528
510
  onChange: handleTabChangeWithScroll
529
511
  }
530
512
  )
@@ -6,7 +6,7 @@ export interface ListState {
6
6
  }
7
7
  export declare type ListAction = {
8
8
  type: 'SET_ACTIVE_TAB';
9
- payload: string[] | string;
9
+ payload: string;
10
10
  } | {
11
11
  type: 'SET_CURRENT_PAGE';
12
12
  payload: number;
@@ -25,8 +25,6 @@ export interface UseListStateProps {
25
25
  defaultPageSize: number;
26
26
  /** 数据加载回调 */
27
27
  onLoadData?: (params: LoadDataParams) => void;
28
- /** tab样式 */
29
- tabStyle: 'anchor' | 'switch' | 'none';
30
28
  }
31
29
  export interface UseListStateReturn {
32
30
  state: ListState;
@@ -34,7 +32,7 @@ export interface UseListStateReturn {
34
32
  setCurrentPage: (page: number) => void;
35
33
  setStickyActive: (active: boolean) => void;
36
34
  resetPage: () => void;
37
- handleTabChange: (key: string[] | string) => void;
35
+ handleTabChange: (key: string) => void;
38
36
  handlePageChange: (page: number, size?: number) => void;
39
37
  handleShowSizeChange: (current: number, size: number) => void;
40
38
  handleLoadMore: () => void;
@@ -42,4 +40,4 @@ export interface UseListStateReturn {
42
40
  handleScrollLoad: () => void;
43
41
  actualCurrentPage: number;
44
42
  }
45
- export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, tabStyle, }: UseListStateProps) => UseListStateReturn;
43
+ export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
@@ -41,27 +41,14 @@ var useListState = ({
41
41
  externalCurrentPage,
42
42
  tabItems,
43
43
  defaultPageSize,
44
- onLoadData,
45
- tabStyle
44
+ onLoadData
46
45
  }) => {
47
46
  const initialState = {
48
47
  activeTab: tabItems.length > 0 ? tabItems[0].key : "all",
49
48
  currentPage: 1,
50
49
  isStickyActive: false
51
50
  };
52
- const isSetDefaultTabRef = (0, import_react.useRef)(false);
53
51
  const [state, dispatch] = (0, import_react.useReducer)(listStateReducer, initialState);
54
- (0, import_react.useEffect)(() => {
55
- var _a, _b;
56
- if (tabStyle === "switch" && tabItems.length > 0 && !isSetDefaultTabRef.current) {
57
- isSetDefaultTabRef.current = true;
58
- const defaultTab = [tabItems[0].key];
59
- if (((_b = (_a = tabItems[0]) == null ? void 0 : _a.children) == null ? void 0 : _b.length) > 0) {
60
- defaultTab.push("0");
61
- }
62
- setActiveTab(defaultTab);
63
- }
64
- }, [tabItems, tabStyle]);
65
52
  const actualCurrentPage = externalCurrentPage || state.currentPage;
66
53
  const setActiveTab = (0, import_react.useCallback)((tab) => {
67
54
  dispatch({ type: "SET_ACTIVE_TAB", payload: tab });
@@ -58,12 +58,12 @@
58
58
  top: 0;
59
59
  z-index: 10;
60
60
  /* 毛玻璃效果 */
61
- background: transparent;
61
+ background: rgba(255, 255, 255, 0.80);
62
62
  backdrop-filter: blur(12px);
63
- padding: 0;
63
+ border-bottom: 1px solid #D0D5DD;
64
+ padding-bottom: 12px;
64
65
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
65
66
  transition: box-shadow 0.2s ease, backdrop-filter 0.2s ease, background 0.2s ease;
66
- border: none;
67
67
  }
68
68
 
69
69
  }
@@ -1,16 +1,4 @@
1
1
  /**
2
2
  * List 组件工具函数导出
3
3
  */
4
- export { useGetText, createGetText, default as createGetTextDefault, type SupportedLanguage, type LocalesObject, type GetTextFunctions, } from './getText';
5
- /**
6
- * 根据层级路径数组递归查找对应节点的 productIds
7
- * @param nodes 当前层级的节点列表
8
- * @param levelPath 层级路径数组,每个元素是对应层级的分类 ID
9
- * @param currentLevel 当前遍历的层级索引
10
- * @returns 找到的节点的 productIds,找不到返回空数组
11
- *
12
- * @description
13
- * 特殊逻辑:如果 levelPath 最后一位是 0,则取倒数第二层节点的 productIds
14
- * 例如:[1, 2, 0] -> 取 id=2 节点的 productIds
15
- */
16
- export declare const findProductIdsByPath: (nodes: any[], levelPath: (string | number)[], currentLevel?: number) => number[];
4
+ export { useGetText, createGetText, default as createGetTextDefault, type SupportedLanguage, type LocalesObject, type GetTextFunctions } from './getText';
@@ -31,40 +31,13 @@ var utils_exports = {};
31
31
  __export(utils_exports, {
32
32
  createGetText: () => import_getText.createGetText,
33
33
  createGetTextDefault: () => import_getText.default,
34
- findProductIdsByPath: () => findProductIdsByPath,
35
34
  useGetText: () => import_getText.useGetText
36
35
  });
37
36
  module.exports = __toCommonJS(utils_exports);
38
37
  var import_getText = __toESM(require("./getText"));
39
- var findProductIdsByPath = (nodes, levelPath, currentLevel = 0) => {
40
- const lastItem = levelPath[levelPath.length - 1];
41
- const effectivePath = (lastItem === 0 || lastItem === "0") && levelPath.length > 1 ? levelPath.slice(0, -1) : levelPath;
42
- if (!nodes || nodes.length === 0 || currentLevel >= effectivePath.length) {
43
- return [];
44
- }
45
- const targetId = effectivePath[currentLevel];
46
- const targetNode = nodes.find(
47
- (node) => String(node.id) === String(targetId) || String(node.key) === String(targetId)
48
- );
49
- if (!targetNode) {
50
- return [];
51
- }
52
- if (currentLevel === effectivePath.length - 1) {
53
- return targetNode.productIds || [];
54
- }
55
- if (targetNode.children && targetNode.children.length > 0) {
56
- return findProductIdsByPath(
57
- targetNode.children,
58
- effectivePath,
59
- currentLevel + 1
60
- );
61
- }
62
- return targetNode.productIds || [];
63
- };
64
38
  // Annotate the CommonJS export names for ESM import in node:
65
39
  0 && (module.exports = {
66
40
  createGetText,
67
41
  createGetTextDefault,
68
- findProductIdsByPath,
69
42
  useGetText
70
43
  });
@@ -258,7 +258,7 @@ var checkTDSAuth = async (step2, step3, callback) => {
258
258
  billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
259
259
  billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
260
260
  billAddrState: paymentInfo.billingAddress.billAddrState,
261
- threeDSCompInd: isPre ? "" : threeDSCompInd || "N",
261
+ threeDSCompInd: isPre ? "" : threeDSCompInd,
262
262
  threeDSServerTransID: isPre ? "" : threeDSServerTransID,
263
263
  threeDSRequestorAuthenticationInd: "01",
264
264
  threeDSRequestorURL: window.location.href,
@@ -311,28 +311,26 @@ var createChallengeIframe = (challengeData, callback) => {
311
311
  };
312
312
  return new Promise((res, rej) => {
313
313
  let timer = null;
314
- const handleMessage = (event) => {
315
- if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf("securesuite") !== -1) {
316
- if (typeof event.data.cres == "string") {
317
- if (timer) {
318
- clearTimeout(timer);
319
- }
320
- res(event.data.cres);
321
- closeIframe();
322
- }
323
- }
324
- };
325
314
  timer = setTimeout(() => {
326
315
  log({
327
316
  msg: "第五步: 60秒超时则走N逻辑",
328
317
  data: challengeData
329
318
  });
330
- window.removeEventListener("message", handleMessage);
331
319
  rej("time out");
332
320
  }, 2 * 60 * 1e3);
333
321
  window.addEventListener(
334
322
  "message",
335
- handleMessage,
323
+ (event) => {
324
+ if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf("securesuite") !== -1) {
325
+ if (typeof event.data.cres == "string") {
326
+ if (timer) {
327
+ clearTimeout(timer);
328
+ }
329
+ res(event.data.cres);
330
+ closeIframe();
331
+ }
332
+ }
333
+ },
336
334
  false
337
335
  );
338
336
  });
@@ -50,12 +50,6 @@ export declare type WalletPassDataType = {
50
50
  shop: Shop;
51
51
  wallet_pass_usage?: any;
52
52
  balance_par_value: string;
53
- custom_schedule_snapshot?: {
54
- data: any[];
55
- };
56
- metadata?: {
57
- validity_type: string;
58
- };
59
53
  };
60
54
  declare type Shop = {
61
55
  id: number;
@@ -39,7 +39,7 @@ var voucherTime = (data) => {
39
39
  };
40
40
  var formatMachineCodeServer2CardList = (data, selectId = []) => {
41
41
  return (data || []).map((item) => {
42
- var _a, _b, _c, _d, _e;
42
+ var _a, _b, _c;
43
43
  return {
44
44
  id: item.id,
45
45
  name: item.product_name,
@@ -58,9 +58,7 @@ var formatMachineCodeServer2CardList = (data, selectId = []) => {
58
58
  cover: (_c = item.product) == null ? void 0 : _c.cover,
59
59
  qrCode: item.code,
60
60
  validDate: voucherTime(item),
61
- originData: item,
62
- scheduleList: ((_d = item.custom_schedule_snapshot) == null ? void 0 : _d.data) || [],
63
- validDateBySchedule: ((_e = item.metadata) == null ? void 0 : _e.validity_type) === "custom_schedule_validity"
61
+ originData: item
64
62
  };
65
63
  });
66
64
  };
@@ -83,6 +83,6 @@ var PaymentReturnContent = ({
83
83
  });
84
84
  }
85
85
  };
86
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-img" }, /* @__PURE__ */ import_react.default.createElement("img", { src: `${prefix}/payment-content.png`, alt: "success" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-text" }, import_utils.locales.getText("tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater")), /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-buttons" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, className: "payment-return-content-order-button", onClick: handleViewOrder }, import_utils.locales.getText("tocPay.text.paymentCompletedAndViewOrder")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, onClick: handleGoBack }, import_utils.locales.getText("tocPay.text.returnAndSelectOtherPaymentMethod"))));
86
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-img" }, /* @__PURE__ */ import_react.default.createElement("img", { src: `${prefix}/payment-content.png`, alt: "success" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-buttons" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, className: "payment-return-content-order-button", onClick: handleViewOrder }, import_utils.locales.getText("tocPay.text.paymentCompletedAndViewOrder")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, onClick: handleGoBack }, import_utils.locales.getText("tocPay.text.returnAndSelectOtherPaymentMethod"))));
87
87
  };
88
88
  var PaymentReturnContent_default = PaymentReturnContent;