@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
@@ -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
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => import("react").JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => import("react").JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => import("react").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => import("react").JSX.Element;
4
3
  export default Status;
@@ -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
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const StripePayment: () => import("react").JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PageLoading: () => import("react").JSX.Element;
4
3
  export default PageLoading;
@@ -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;