@pisell/private-materials 6.4.56 → 6.4.58

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 (462) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -12
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/booking/components/actionButtons/index.js +15 -7
  12. package/es/components/booking/components/footer/amount.js +1 -1
  13. package/es/components/booking/components/footer/index.js +2 -2
  14. package/es/components/booking/components/footer/utils.js +7 -2
  15. package/es/components/booking/components/voucher/index.js +23 -19
  16. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  17. package/es/components/booking/info2/cartClientCard/index.js +7 -3
  18. package/es/components/checkout/PaymentModal.js +17 -12
  19. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  20. package/es/components/checkout/hooks/useWalletPass.js +36 -21
  21. package/es/components/eftposPay/amount.d.ts +1 -1
  22. package/es/components/eftposPay/device.d.ts +1 -1
  23. package/es/components/eftposPay/hooks.d.ts +1 -1
  24. package/es/components/eftposPay/store/index.d.ts +3 -3
  25. package/es/components/list/List.d.ts +5 -0
  26. package/es/components/list/List.js +957 -0
  27. package/es/components/list/List.less +2 -0
  28. package/es/components/list/ResponsiveWrapper.d.ts +16 -0
  29. package/es/components/list/ResponsiveWrapper.js +130 -0
  30. package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
  31. package/es/components/list/TestResponsiveWrapper.js +816 -0
  32. package/es/components/list/TestResponsiveWrapper.less +968 -0
  33. package/es/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  34. package/es/components/list/components/EmptyState/EmptyState.js +75 -0
  35. package/es/components/list/components/EmptyState/EmptyState.less +121 -0
  36. package/es/components/list/components/EmptyState/index.d.ts +2 -0
  37. package/es/components/list/components/EmptyState/index.js +1 -0
  38. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  39. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
  40. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  41. package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  42. package/es/components/list/components/ListItemSkeleton/index.js +2 -0
  43. package/es/components/list/components/Pagination/Pagination.d.ts +30 -0
  44. package/es/components/list/components/Pagination/Pagination.js +240 -0
  45. package/es/components/list/components/Pagination/Pagination.less +439 -0
  46. package/es/components/list/components/Pagination/index.d.ts +1 -0
  47. package/es/components/list/components/Pagination/index.js +1 -0
  48. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  49. package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
  50. package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  51. package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
  52. package/es/components/list/components/ScrollLoader/index.js +1 -0
  53. package/es/components/list/components/Tab/Tab.d.ts +5 -0
  54. package/es/components/list/components/Tab/Tab.js +43 -0
  55. package/es/components/list/components/Tab/Tab.less +139 -0
  56. package/es/components/list/components/Tab/index.d.ts +2 -0
  57. package/es/components/list/components/Tab/index.js +1 -0
  58. package/es/components/list/components/Tab/types.d.ts +14 -0
  59. package/es/components/list/components/Tab/types.js +1 -0
  60. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  61. package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
  62. package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  63. package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
  64. package/es/components/list/components/TabSkeleton/index.js +2 -0
  65. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  66. package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
  67. package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
  68. package/es/components/list/components/WaterfallList/index.d.ts +2 -0
  69. package/es/components/list/components/WaterfallList/index.js +1 -0
  70. package/es/components/list/examples/GroupedListExample.d.ts +3 -0
  71. package/es/components/list/examples/GroupedListExample.js +207 -0
  72. package/es/components/list/hooks/index.d.ts +5 -0
  73. package/es/components/list/hooks/index.js +3 -0
  74. package/es/components/list/hooks/useDevice.d.ts +24 -0
  75. package/es/components/list/hooks/useDevice.js +102 -0
  76. package/es/components/list/hooks/useListState.d.ts +43 -0
  77. package/es/components/list/hooks/useListState.js +176 -0
  78. package/es/components/list/hooks/useWaterfall.d.ts +34 -0
  79. package/es/components/list/hooks/useWaterfall.js +161 -0
  80. package/es/components/list/index.d.ts +10 -0
  81. package/es/components/list/index.js +7 -0
  82. package/es/components/list/locales.d.ts +66 -0
  83. package/es/components/list/locales.js +107 -0
  84. package/es/components/list/styles/base.less +39 -0
  85. package/es/components/list/styles/content.less +416 -0
  86. package/es/components/list/styles/floatButton.less +107 -0
  87. package/es/components/list/styles/footer.less +49 -0
  88. package/es/components/list/styles/header.less +69 -0
  89. package/es/components/list/styles/responsive.less +166 -0
  90. package/es/components/list/types.d.ts +177 -0
  91. package/es/components/list/types.js +1 -0
  92. package/es/components/list/utils/getText.d.ts +53 -0
  93. package/es/components/list/utils/getText.js +150 -0
  94. package/es/components/list/utils/index.d.ts +4 -0
  95. package/es/components/list/utils/index.js +5 -0
  96. package/es/components/pay/toB/store/hooks.js +19 -5
  97. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  98. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
  99. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  100. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
  101. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  102. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  103. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
  104. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  105. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
  106. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  107. package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
  108. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
  109. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
  110. package/es/components/ticketBooking/components/menuBar/index.d.ts +5 -1
  111. package/es/components/ticketBooking/components/menuBar/index.js +40 -17
  112. package/es/components/ticketBooking/components/menuBar/index.less +27 -1
  113. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
  114. package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
  115. package/es/components/ticketBooking/components/timeBar/index.less +1 -0
  116. package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  117. package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
  118. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  119. package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
  120. package/es/components/ticketBooking/context/index.d.ts +2 -0
  121. package/es/components/ticketBooking/context/index.js +2 -0
  122. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
  123. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
  124. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
  125. package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
  126. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  127. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
  128. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
  129. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
  130. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
  131. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
  132. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  133. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
  134. package/es/components/ticketBooking/index.d.ts +6 -0
  135. package/es/components/ticketBooking/index.js +86 -11
  136. package/es/components/ticketBooking/utils/index.d.ts +30 -2
  137. package/es/components/ticketBooking/utils/index.js +50 -1
  138. package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
  139. package/es/components/ticketBooking/utils/productCache.js +184 -0
  140. package/es/index.d.ts +2 -0
  141. package/es/index.js +3 -1
  142. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
  143. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
  144. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  145. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
  146. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
  147. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  148. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
  149. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
  150. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  151. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
  152. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
  153. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  154. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
  155. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
  156. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  157. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
  158. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
  159. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  160. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  161. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
  162. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  163. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
  164. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
  165. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  166. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  167. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
  168. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  169. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
  170. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
  171. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
  172. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
  173. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
  174. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
  175. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  176. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
  177. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  178. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
  179. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
  180. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  181. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  182. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
  183. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
  186. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  187. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
  188. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
  189. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  190. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
  191. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
  192. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  193. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
  194. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
  195. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  196. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  197. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
  198. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  199. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  200. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
  201. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  202. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  203. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
  204. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  205. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
  206. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
  207. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  208. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  209. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
  210. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  211. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  212. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
  213. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  214. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  215. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
  216. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  217. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  218. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
  219. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  220. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
  221. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
  222. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
  223. package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
  224. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  225. package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
  226. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  227. package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
  228. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  229. package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
  230. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  231. package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
  232. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
  233. package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
  234. package/es/plus/saasLogin/utils.d.ts +5 -5
  235. package/lib/components/booking/components/actionButtons/index.js +22 -15
  236. package/lib/components/booking/components/footer/amount.js +1 -1
  237. package/lib/components/booking/components/footer/index.js +2 -2
  238. package/lib/components/booking/components/footer/utils.js +7 -2
  239. package/lib/components/booking/components/voucher/index.js +33 -40
  240. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  241. package/lib/components/booking/info2/cartClientCard/index.js +7 -3
  242. package/lib/components/checkout/PaymentModal.js +15 -12
  243. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  244. package/lib/components/checkout/hooks/useWalletPass.js +57 -45
  245. package/lib/components/eftposPay/amount.d.ts +1 -1
  246. package/lib/components/eftposPay/device.d.ts +1 -1
  247. package/lib/components/eftposPay/hooks.d.ts +1 -1
  248. package/lib/components/eftposPay/store/index.d.ts +3 -3
  249. package/lib/components/list/List.d.ts +5 -0
  250. package/lib/components/list/List.js +771 -0
  251. package/lib/components/list/List.less +2 -0
  252. package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
  253. package/lib/components/list/ResponsiveWrapper.js +145 -0
  254. package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
  255. package/lib/components/list/TestResponsiveWrapper.js +493 -0
  256. package/lib/components/list/TestResponsiveWrapper.less +968 -0
  257. package/lib/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  258. package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
  259. package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
  260. package/lib/components/list/components/EmptyState/index.d.ts +2 -0
  261. package/lib/components/list/components/EmptyState/index.js +35 -0
  262. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  263. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
  264. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  265. package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  266. package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
  267. package/lib/components/list/components/Pagination/Pagination.d.ts +30 -0
  268. package/lib/components/list/components/Pagination/Pagination.js +205 -0
  269. package/lib/components/list/components/Pagination/Pagination.less +439 -0
  270. package/lib/components/list/components/Pagination/index.d.ts +1 -0
  271. package/lib/components/list/components/Pagination/index.js +35 -0
  272. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  273. package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
  274. package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  275. package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
  276. package/lib/components/list/components/ScrollLoader/index.js +35 -0
  277. package/lib/components/list/components/Tab/Tab.d.ts +5 -0
  278. package/lib/components/list/components/Tab/Tab.js +72 -0
  279. package/lib/components/list/components/Tab/Tab.less +139 -0
  280. package/lib/components/list/components/Tab/index.d.ts +2 -0
  281. package/lib/components/list/components/Tab/index.js +35 -0
  282. package/lib/components/list/components/Tab/types.d.ts +14 -0
  283. package/lib/components/list/components/Tab/types.js +17 -0
  284. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  285. package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
  286. package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  287. package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
  288. package/lib/components/list/components/TabSkeleton/index.js +41 -0
  289. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  290. package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
  291. package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
  292. package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
  293. package/lib/components/list/components/WaterfallList/index.js +35 -0
  294. package/lib/components/list/examples/GroupedListExample.d.ts +3 -0
  295. package/lib/components/list/examples/GroupedListExample.js +210 -0
  296. package/lib/components/list/hooks/index.d.ts +5 -0
  297. package/lib/components/list/hooks/index.js +47 -0
  298. package/lib/components/list/hooks/useDevice.d.ts +24 -0
  299. package/lib/components/list/hooks/useDevice.js +96 -0
  300. package/lib/components/list/hooks/useListState.d.ts +43 -0
  301. package/lib/components/list/hooks/useListState.js +149 -0
  302. package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
  303. package/lib/components/list/hooks/useWaterfall.js +124 -0
  304. package/lib/components/list/index.d.ts +10 -0
  305. package/lib/components/list/index.js +60 -0
  306. package/lib/components/list/locales.d.ts +66 -0
  307. package/lib/components/list/locales.js +113 -0
  308. package/lib/components/list/styles/base.less +39 -0
  309. package/lib/components/list/styles/content.less +416 -0
  310. package/lib/components/list/styles/floatButton.less +107 -0
  311. package/lib/components/list/styles/footer.less +49 -0
  312. package/lib/components/list/styles/header.less +69 -0
  313. package/lib/components/list/styles/responsive.less +166 -0
  314. package/lib/components/list/types.d.ts +177 -0
  315. package/lib/components/list/types.js +17 -0
  316. package/lib/components/list/utils/getText.d.ts +53 -0
  317. package/lib/components/list/utils/getText.js +95 -0
  318. package/lib/components/list/utils/index.d.ts +4 -0
  319. package/lib/components/list/utils/index.js +43 -0
  320. package/lib/components/pay/toB/store/hooks.js +16 -8
  321. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  322. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
  323. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  324. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
  325. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  326. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  327. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
  328. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  329. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
  330. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  331. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
  332. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
  333. package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
  334. package/lib/components/ticketBooking/components/menuBar/index.d.ts +5 -1
  335. package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
  336. package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
  337. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
  338. package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
  339. package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
  340. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  341. package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
  342. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  343. package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
  344. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  345. package/lib/components/ticketBooking/context/index.js +44 -0
  346. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
  347. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
  348. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
  349. package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
  350. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  351. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
  352. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
  353. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
  354. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
  355. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
  356. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  357. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
  358. package/lib/components/ticketBooking/index.d.ts +6 -0
  359. package/lib/components/ticketBooking/index.js +64 -8
  360. package/lib/components/ticketBooking/utils/index.d.ts +30 -2
  361. package/lib/components/ticketBooking/utils/index.js +70 -2
  362. package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
  363. package/lib/components/ticketBooking/utils/productCache.js +144 -0
  364. package/lib/index.d.ts +2 -0
  365. package/lib/index.js +6 -0
  366. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
  367. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
  368. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  369. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
  370. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
  371. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  372. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
  373. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
  374. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  375. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
  376. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
  377. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  378. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
  379. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
  380. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  381. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
  382. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
  383. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  384. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  385. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
  386. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  387. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
  388. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
  389. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  390. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  391. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
  392. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  393. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
  394. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
  395. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
  396. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
  397. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
  398. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
  399. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  400. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
  401. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  402. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
  403. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
  404. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  405. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  406. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
  407. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  408. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
  409. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
  410. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  411. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
  412. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
  413. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  414. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
  415. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
  416. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  417. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
  418. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
  419. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  420. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  421. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
  422. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  423. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  424. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
  425. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  426. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  427. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
  428. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  429. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
  430. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
  431. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  432. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  433. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
  434. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  435. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  436. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
  437. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  438. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  439. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
  440. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  441. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  442. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
  443. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  444. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
  445. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
  446. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
  447. package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
  448. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  449. package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
  450. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  451. package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
  452. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  453. package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
  454. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  455. package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
  456. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
  457. package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
  458. package/lib/plus/saasLogin/utils.d.ts +5 -5
  459. package/lowcode/sku-card/meta.ts +1812 -0
  460. package/lowcode/sku-card/snippets.ts +372 -0
  461. package/lowcode/sku-list/meta.ts +410 -0
  462. package/package.json +12 -12
@@ -32,6 +32,8 @@ import { useMemoizedFn } from 'ahooks';
32
32
  import useEngineContext, { usePisellOS } from "../../../../hooks/useEngineContext";
33
33
  import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager";
34
34
  import { DiscountKeyboard } from "../../../../pro/priceKeyboard";
35
+ import { useActiveExecute, useBookingTicket } from "../../../ticketBooking/hooks/pisellos";
36
+ import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
35
37
  // Toast 内容包装器,统一设置行高
36
38
  var createToastContent = function createToastContent(text) {
37
39
  return /*#__PURE__*/React.createElement("div", {
@@ -61,13 +63,17 @@ var ActionButtons = function ActionButtons(_ref) {
61
63
  _useState8 = _slicedToArray(_useState7, 2),
62
64
  showVoucherModal = _useState8[0],
63
65
  setShowVoucherModal = _useState8[1];
66
+ var _useActiveExecute = useActiveExecute(),
67
+ executeIfActive = _useActiveExecute.executeIfActive;
64
68
  var context = useEngineContext();
65
69
  var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
66
70
  getData = _context$appHelper$ut.getData,
67
71
  pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
68
72
  var Toast = useToast();
69
73
  var pisellOS = usePisellOS();
74
+ var bookingTicket = useBookingTicket();
70
75
  var ScheduleModule = pisellosAllModule.ScheduleModule;
76
+ var shopDiscount = useShopDiscountModule();
71
77
 
72
78
  // 将选中的客户数据传递给状态管理
73
79
  var changeCustomerToGlobalState = useMemoizedFn(function (value) {
@@ -88,7 +94,7 @@ var ActionButtons = function ActionButtons(_ref) {
88
94
 
89
95
  // 监听客户选择变化,清空手动折扣
90
96
  useEffect(function () {
91
- if (!pisellOS) return;
97
+ if (!bookingTicket) return;
92
98
  var handleCustomerSelected = function handleCustomerSelected() {
93
99
  // 当客户选择改变时,清空 shop_discount
94
100
  dispatch({
@@ -98,15 +104,16 @@ var ActionButtons = function ActionButtons(_ref) {
98
104
  }
99
105
  });
100
106
  };
107
+ var wrappedHandleCustomerSelected = executeIfActive(handleCustomerSelected);
101
108
 
102
109
  // 监听客户选择事件
103
- pisellOS.effects.on('bookingTicket:onCustomerSelected', handleCustomerSelected);
110
+ bookingTicket.effectsOn('onCustomerSelected', wrappedHandleCustomerSelected);
104
111
 
105
112
  // 清理函数
106
113
  return function () {
107
- pisellOS.effects.off('bookingTicket:onCustomerSelected', handleCustomerSelected);
114
+ bookingTicket.effectsOff('onCustomerSelected', wrappedHandleCustomerSelected);
108
115
  };
109
- }, [dispatch, pisellOS]);
116
+ }, [dispatch, bookingTicket]);
110
117
 
111
118
  // 同步获取金额计算所需配置
112
119
  var getDataFromHost = function getDataFromHost() {
@@ -222,13 +229,14 @@ var ActionButtons = function ActionButtons(_ref) {
222
229
  var _context$appHelper2;
223
230
  var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {},
224
231
  pisellos = _ref2.pisellos;
225
- if (!pisellos) return;
232
+ if (!pisellos || !shopDiscount) return;
226
233
  var onDiscountListChange = function onDiscountListChange(discount) {
227
234
  setDiscountList(discount);
228
235
  };
229
- pisellos.effects.on('shopDiscount:onDiscountListChange', onDiscountListChange);
236
+ var wrappedHandler = executeIfActive(onDiscountListChange);
237
+ shopDiscount.effectsOn('onDiscountListChange', wrappedHandler);
230
238
  return function () {
231
- pisellos.effects.off('shopDiscount:onDiscountListChange', onDiscountListChange);
239
+ shopDiscount.effectsOff('onDiscountListChange', wrappedHandler);
232
240
  };
233
241
  }, [(_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.utils]);
234
242
 
@@ -285,7 +285,7 @@ var getTax = function getTax(state, options) {
285
285
  if (!isEdit) {
286
286
  var _state$bookingDetail2;
287
287
  return {
288
- tax: Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.tax_fee)
288
+ tax: Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.tax_fee) || 0
289
289
  };
290
290
  }
291
291
  var totalOriginTax = new Decimal(0);
@@ -46,7 +46,7 @@ import { Iconfont } from '@pisell/materials';
46
46
  import { useCustomer } from "../../../ticketBooking/hooks/pisellos/useCustomer";
47
47
  import { useDebounceEffect, useDebounceFn, useMemoizedFn } from 'ahooks';
48
48
  import { cloneDeep } from 'lodash';
49
- import { useShopDiscount } from "../../../appointmentBooking/hooks";
49
+ import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
50
50
 
51
51
  /**
52
52
  * @title: 底部
@@ -1734,7 +1734,7 @@ var Footer = function Footer(props) {
1734
1734
  changeCustomerToGlobalState: changeCustomerToGlobalState
1735
1735
  }),
1736
1736
  selectCustomer = _useCustomer.selectCustomer;
1737
- var shopDiscount = useShopDiscount();
1737
+ var shopDiscount = useShopDiscountModule();
1738
1738
  var _useScanManager2 = useScanManager(),
1739
1739
  clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
1740
1740
  // 清空所有内容并重置购物车
@@ -15,6 +15,7 @@ import { isArr, locales, sendWarningLog, getUniqueId } from '@pisell/utils';
15
15
  import { PisellToast } from "@pisell/materials";
16
16
  import { getClientName } from "../../../../plus/clientName/utils";
17
17
  import { cloneDeep } from 'lodash';
18
+ import Decimal from 'decimal.js';
18
19
  var formatNote = function formatNote(data) {
19
20
  var _data$notes;
20
21
  return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) || "";
@@ -100,6 +101,10 @@ export var formatProductBundle = function formatProductBundle(bundle) {
100
101
  }
101
102
  } catch (error) {}
102
103
  return bundle.map(function (d) {
104
+ var option = formatProductOption(d.option);
105
+ var option_price = option.reduce(function (temp, item) {
106
+ return temp + Number(item.num) * item.custom_add_price;
107
+ }, 0);
103
108
  return {
104
109
  "bundle_group_id": d.group_id,
105
110
  "bundle_id": d.id,
@@ -112,9 +117,9 @@ export var formatProductBundle = function formatProductBundle(bundle) {
112
117
  // checkout 2.0 新增
113
118
  "price_type": d === null || d === void 0 ? void 0 : d.price_type,
114
119
  // checkout 2.0 新增
115
- "custom_price": d === null || d === void 0 ? void 0 : d.price,
120
+ "custom_price": new Decimal(d === null || d === void 0 ? void 0 : d.price).sub(option_price).toNumber().toFixed(2),
116
121
  "custom_price_type": d === null || d === void 0 ? void 0 : d.price_type,
117
- "option": formatProductOption(d.option)
122
+ "option": option
118
123
  };
119
124
  });
120
125
  };
@@ -28,8 +28,9 @@ import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
28
28
  import "./index.less";
29
29
  import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
30
30
  import { getServiceAddons } from "./utils";
31
- import { useCustomer } from "../../../ticketBooking/hooks/pisellos";
31
+ import { useActiveExecute, useCustomer } from "../../../ticketBooking/hooks/pisellos";
32
32
  import { getClientVariantClose } from "../../info/clientVariant/utils";
33
+ import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
33
34
  var ShopDiscountHooks = {
34
35
  onInited: 'shopDiscount:onInited',
35
36
  onDestroy: 'shopDiscount:onDestroy',
@@ -66,7 +67,9 @@ var VoucherCard = function VoucherCard(props) {
66
67
  var serviceValueRef = useRef(state.service.value);
67
68
  var addonsValueRef = useRef(state.addons.value);
68
69
  var isBooking4Shop = useIsBooking4Shop(state);
69
- var shopDiscount = pisellos.getModule('shopDiscount');
70
+ var shopDiscount = useShopDiscountModule();
71
+ var _useActiveExecute = useActiveExecute(),
72
+ executeIfActive = _useActiveExecute.executeIfActive;
70
73
  services = state.service;
71
74
 
72
75
  // 将选中的客户数据传递给状态管理
@@ -95,7 +98,7 @@ var VoucherCard = function VoucherCard(props) {
95
98
 
96
99
  // 设置productList
97
100
  useEffect(function () {
98
- if (isBooking4Shop) {
101
+ if (isBooking4Shop && shopDiscount) {
99
102
  shopDiscount.setProductList([].concat(_toConsumableArray(state.service.value), _toConsumableArray(state.addons.value)));
100
103
  }
101
104
  }, [state.service.value, state.addons.value, isBooking4Shop]);
@@ -122,9 +125,10 @@ var VoucherCard = function VoucherCard(props) {
122
125
  onScanCode(e.detail.code);
123
126
  });
124
127
  useEffect(function () {
125
- window.addEventListener('onScanWallPassCode', onScanWallPassCode);
128
+ var wrappedOnScanWallPassCode = executeIfActive(onScanWallPassCode);
129
+ window.addEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
126
130
  return function () {
127
- window.removeEventListener('onScanWallPassCode', onScanWallPassCode);
131
+ window.removeEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
128
132
  };
129
133
  }, []);
130
134
  var addonsMemo = useMemo(function () {
@@ -174,12 +178,11 @@ var VoucherCard = function VoucherCard(props) {
174
178
  run();
175
179
  }, [JSON.stringify(serviceMemo), JSON.stringify(addonsMemo), isBooking4Shop]);
176
180
  useEffect(function () {
177
- if (pisellos) {
178
- var _pisellos$effects;
179
- pisellos === null || pisellos === void 0 || (_pisellos$effects = pisellos.effects) === null || _pisellos$effects === void 0 || _pisellos$effects.on("shopDiscount:onSelectedDiscountListChange", fn);
181
+ if (shopDiscount) {
182
+ var wrappedHandler = executeIfActive(fn);
183
+ shopDiscount === null || shopDiscount === void 0 || shopDiscount.effectsOn("onSelectedDiscountListChange", wrappedHandler);
180
184
  return function () {
181
- var _pisellos$effects2;
182
- pisellos === null || pisellos === void 0 || (_pisellos$effects2 = pisellos.effects) === null || _pisellos$effects2 === void 0 || _pisellos$effects2.off("shopDiscount:onSelectedDiscountListChange", fn);
185
+ shopDiscount === null || shopDiscount === void 0 || shopDiscount.effectsOff("onSelectedDiscountListChange", wrappedHandler);
183
186
  };
184
187
  }
185
188
  }, []);
@@ -195,7 +198,7 @@ var VoucherCard = function VoucherCard(props) {
195
198
 
196
199
  // 监听customer变化
197
200
  useEffect(function () {
198
- if (!isBooking4Shop) return;
201
+ if (!isBooking4Shop || !shopDiscount) return;
199
202
  var onScanCustomerChange = function onScanCustomerChange(customer) {
200
203
  var clientVariantClose = getClientVariantClose();
201
204
  if (clientVariantClose) {
@@ -206,14 +209,17 @@ var VoucherCard = function VoucherCard(props) {
206
209
  var onDiscountListChange = function onDiscountListChange(discount) {
207
210
  setDisCountList(discount);
208
211
  };
209
- pisellos.effects.on(ShopDiscountHooks.onScanCustomerChange, onScanCustomerChange);
210
- pisellos.effects.on(ShopDiscountHooks.onLoadPrepareCalcResult, fn);
211
- pisellos.effects.on(ShopDiscountHooks.onDiscountListChange, onDiscountListChange);
212
+ var wrappedOnScanCustomerChangeHandler = executeIfActive(onScanCustomerChange);
213
+ var wrappedOnDiscountListChangeHandler = executeIfActive(onDiscountListChange);
214
+ var wrappedFn = executeIfActive(fn);
215
+ shopDiscount.effectsOn('onScanCustomerChange', wrappedOnScanCustomerChangeHandler);
216
+ shopDiscount.effectsOn('onLoadPrepareCalcResult', wrappedFn);
217
+ shopDiscount.effectsOn('onDiscountListChange', wrappedOnDiscountListChangeHandler);
212
218
  return function () {
213
219
  shopDiscount.clear();
214
- pisellos.effects.off(ShopDiscountHooks.onScanCustomerChange, onScanCustomerChange);
215
- pisellos.effects.off(ShopDiscountHooks.onLoadPrepareCalcResult, fn);
216
- pisellos.effects.off(ShopDiscountHooks.onDiscountListChange, onDiscountListChange);
220
+ shopDiscount.effectsOff('onScanCustomerChange', wrappedOnScanCustomerChangeHandler);
221
+ shopDiscount.effectsOff('onLoadPrepareCalcResult', wrappedFn);
222
+ shopDiscount.effectsOff('onDiscountListChange', wrappedOnDiscountListChangeHandler);
217
223
  };
218
224
  }, [state.bookingId, isBooking4Shop, fn]);
219
225
  var productListToValue = useMemoizedFn(function (list, edit) {
@@ -282,7 +288,6 @@ var VoucherCard = function VoucherCard(props) {
282
288
  }();
283
289
  var availableData = useMemo(function () {
284
290
  if (!isBooking4Shop) return [];
285
- var shopDiscount = pisellos.getModule('shopDiscount');
286
291
  return discountList.filter(function (item) {
287
292
  return !!item.isAvailable;
288
293
  }).map(function (discount) {
@@ -325,7 +330,6 @@ var VoucherCard = function VoucherCard(props) {
325
330
  dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
326
331
  mixedSort: mixedSort,
327
332
  onChange: function onChange(val) {
328
- var shopDiscount = pisellos.getModule('shopDiscount');
329
333
  var detail = shopDiscount.setDiscountSelected({
330
334
  discountId: val.id,
331
335
  isSelected: val.isSelected
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -29,6 +29,7 @@ import useTranslationOriginal from "../../../../hooks/useTranslationOriginal";
29
29
  import useEngineContext from "../../../../hooks/useEngineContext";
30
30
  import { Context } from "../../info/model";
31
31
  import "./index.less";
32
+ import { useIsActive } from "../../../ticketBooking/context/IsActiveContext";
32
33
 
33
34
  // 导出类型
34
35
 
@@ -60,6 +61,7 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
60
61
  keyword = _useState8[0],
61
62
  setKeyword = _useState8[1];
62
63
  var keywordRef = useRef('');
64
+ var isActive = useIsActive();
63
65
  keywordRef.current = keyword;
64
66
  var Toast = useToast();
65
67
  var _useScanCustomer = useScanCustomer(),
@@ -315,13 +317,15 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
315
317
  setPendingCustomer(null);
316
318
  };
317
319
  useMemo(function () {
318
- setHandleSetClient(handleSetClient);
319
- }, []);
320
+ if (isActive) {
321
+ setHandleSetClient(handleSetClient);
322
+ }
323
+ }, [isActive]);
320
324
  useEffect(function () {
321
325
  return function () {
322
326
  setHandleSetClient(null);
323
327
  };
324
- }, []);
328
+ }, [isActive]);
325
329
  var tags = useMemo(function () {
326
330
  var _latest_wallet_detail;
327
331
  if (!selectedCustomer) return;
@@ -47,6 +47,7 @@ import { getShopWalletPassId, reorderPaymentMethodList } from "./utils";
47
47
  import usePaymentLogger from "./hooks/usePaymentLogger";
48
48
  import { Button } from 'antd';
49
49
  import { DiscountKeyboard } from "../../pro/priceKeyboard";
50
+ import { useActiveExecute } from "../ticketBooking/hooks/pisellos";
50
51
 
51
52
  // Checkout 模块的事件常量
52
53
  var CheckoutHooks = {
@@ -98,6 +99,8 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
98
99
  pisellosAllModule = utils.pisellosAllModule,
99
100
  interaction = utils.interaction;
100
101
  var Toast = useToast();
102
+ var _useActiveExecute = useActiveExecute(),
103
+ executeIfActive = _useActiveExecute.executeIfActive;
101
104
  // const paymentResultToast = usePaymentResultToast();
102
105
 
103
106
  var checkoutRef = useRef(null);
@@ -491,7 +494,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
491
494
  try {
492
495
  var core = checkoutModule.core;
493
496
  if (core.effects && typeof core.effects.on === 'function') {
494
- var unsubscribe = core.effects.on(CheckoutHooks.OnStateAmountChanged, /*#__PURE__*/function () {
497
+ var unsubscribe = core.effects.on(CheckoutHooks.OnStateAmountChanged, executeIfActive( /*#__PURE__*/function () {
495
498
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
496
499
  var _Toast$success, _Toast$success2, items;
497
500
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
@@ -521,17 +524,17 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
521
524
  return function (_x4) {
522
525
  return _ref7.apply(this, arguments);
523
526
  };
524
- }());
525
- var amountChangedUnsubscribe = core.effects.on(CheckoutHooks.OnBalanceDueAmountChanged, function (data) {
527
+ }()));
528
+ var amountChangedUnsubscribe = core.effects.on(CheckoutHooks.OnBalanceDueAmountChanged, executeIfActive(function (data) {
526
529
  setBalanceDueAmount(data.newAmount);
527
530
  setBalanceDueTotalAmount(data.totalAmount || '0');
528
- });
529
- var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, function () {
531
+ }));
532
+ var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, executeIfActive(function () {
530
533
  var _Toast$loading2;
531
534
  setSyncingLock(true);
532
535
  Toast === null || Toast === void 0 || (_Toast$loading2 = Toast.loading) === null || _Toast$loading2 === void 0 || _Toast$loading2.call(Toast);
533
- });
534
- var orderSubmitEndUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitEnd, function (res) {
536
+ }));
537
+ var orderSubmitEndUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitEnd, executeIfActive(function (res) {
535
538
  setSyncingLock(false);
536
539
  if (res.success) {
537
540
  var _Toast$hide;
@@ -547,7 +550,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
547
550
  Toast === null || Toast === void 0 || Toast.fail(locales.getText('pisell2.checkout.order-sync-failed') || 'Order sync failed');
548
551
  }
549
552
  }
550
- });
553
+ }));
551
554
 
552
555
  // const orderSyncFailedUnsubscribe = core.effects.on(
553
556
  // CheckoutHooks.OnOrderSyncFailed,
@@ -556,7 +559,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
556
559
  // Toast?.fail(locales.getText('pisell2.checkout.order-sync-failed') || 'Order sync failed');
557
560
  // }
558
561
  // );
559
- var orderPaymentAddedUnsubscribe = core.effects.on(CheckoutHooks.OnOrderPaymentAdded, /*#__PURE__*/function () {
562
+ var orderPaymentAddedUnsubscribe = core.effects.on(CheckoutHooks.OnOrderPaymentAdded, executeIfActive( /*#__PURE__*/function () {
560
563
  var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(data) {
561
564
  var orderInfo, balanceDueAmount, autoCloseConfig, _paymentItems, _totalAmount, serviceChargeTotal, paymentMethodName, isCashPayment, _interaction$utils3, _interaction$utils3$p;
562
565
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
@@ -646,7 +649,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
646
649
  return function (_x5) {
647
650
  return _ref8.apply(this, arguments);
648
651
  };
649
- }());
652
+ }()));
650
653
  return function () {
651
654
  if (unsubscribe && typeof unsubscribe === 'function') {
652
655
  unsubscribe();
@@ -1405,6 +1408,8 @@ var PaymentModal = function PaymentModal(_ref18) {
1405
1408
  _useState36 = _slicedToArray(_useState35, 2),
1406
1409
  currentEditOrderId = _useState36[0],
1407
1410
  _setCurrentEditOrderId = _useState36[1];
1411
+ var _useActiveExecute2 = useActiveExecute(),
1412
+ executeIfActive = _useActiveExecute2.executeIfActive;
1408
1413
  var Toast = useToast();
1409
1414
 
1410
1415
  // 重试处理函数(逻辑由用户自己实现)
@@ -2079,7 +2084,7 @@ var PaymentModal = function PaymentModal(_ref18) {
2079
2084
  unsubscribeRef.current = undefined;
2080
2085
  }
2081
2086
  // 监听订单同步完成,同步完成后显示订单完成 toast,关闭当前弹窗
2082
- unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', /*#__PURE__*/function () {
2087
+ unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', executeIfActive( /*#__PURE__*/function () {
2083
2088
  var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(data) {
2084
2089
  var _data$response, _responseData$payment2;
2085
2090
  var currentOrderId, responseData, paymentStatus, orderTotalAmount, gapAmount, currentChangeGivenAmount, failureReason, _responseData$payment3, params, statusClassName, autoCloseConfig, enabledAutoPrint, _interaction$utils6, _interaction$utils6$a, _orderInfo3, paymentResult;
@@ -2224,7 +2229,7 @@ var PaymentModal = function PaymentModal(_ref18) {
2224
2229
  return function (_x17) {
2225
2230
  return _ref29.apply(this, arguments);
2226
2231
  };
2227
- }());
2232
+ }()));
2228
2233
  _context23.next = 42;
2229
2234
  break;
2230
2235
  case 25:
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -27,6 +27,8 @@ import { usePisellOS } from "../../../hooks/useEngineContext";
27
27
  import { formatDiscountWalletData, formatMachineCodeServer2CardList, isSameContent } from "../components/WalletPassModule/utils";
28
28
  import usePaymentLogger from "./usePaymentLogger";
29
29
  import { isWalkIn } from "../../booking/utils";
30
+ import { useActiveExecute } from "../../ticketBooking/hooks/pisellos";
31
+ import { useShopDiscountModule } from "../../ticketBooking/hooks/pisellos/useShopDiscountModule";
30
32
 
31
33
  /**
32
34
  * 自定义Hook:使用WalletPass功能
@@ -36,6 +38,8 @@ export var useWalletPass = function useWalletPass(props) {
36
38
  customAmount = props.customAmount,
37
39
  clientId = props.clientId;
38
40
  var logger = usePaymentLogger();
41
+ var _useActiveExecute = useActiveExecute(),
42
+ executeIfActive = _useActiveExecute.executeIfActive;
39
43
 
40
44
  // 钱包推荐列表
41
45
  var _useState = useState([]),
@@ -114,7 +118,7 @@ export var useWalletPass = function useWalletPass(props) {
114
118
 
115
119
  // 获取checkout模块
116
120
  var checkoutModule = pisellos.getModule('checkout');
117
- var shopDiscount = pisellos.getModule('shopDiscount');
121
+ var shopDiscount = useShopDiscountModule();
118
122
  var paymentModule = checkoutModule === null || checkoutModule === void 0 ? void 0 : checkoutModule.payment;
119
123
  var setWalletSelect = useMemoizedFn(function (data) {
120
124
  setSelectedWallet(data);
@@ -515,30 +519,41 @@ export var useWalletPass = function useWalletPass(props) {
515
519
  if (!paymentModule) return;
516
520
  var core = pisellos; // 获取core实例
517
521
 
522
+ // checkout 单实例,执行时判断是否active
523
+ var wrappedHandlePaymentStarted = executeIfActive(handlePaymentStarted);
524
+ var wrappedOnOrderCreated = executeIfActive(onOrderCreated);
525
+ var wrappedHandleWalletRecommendListUpdated = executeIfActive(handleWalletRecommendListUpdated);
526
+ var wrappedHandleUserIdentificationCodesUpdated = executeIfActive(handleUserIdentificationCodesUpdated);
527
+ var wrappedHandleWalletCacheCleared = executeIfActive(handleWalletCacheCleared);
528
+ var wrappedHandleSearchIdentificationCodeCompleted = executeIfActive(handleSearchIdentificationCodeCompleted);
529
+ var wrappedHandleWalletInitializationStarted = executeIfActive(handleWalletInitializationStarted);
530
+ var wrappedHandleWalletInitializationCompleted = executeIfActive(handleWalletInitializationCompleted);
531
+ var wrappedHandleWalletInitializationFailed = executeIfActive(handleWalletInitializationFailed);
518
532
  // 注册事件监听器
519
- core.effects.on('wallet:onWalletRecommendListUpdated', handleWalletRecommendListUpdated);
520
- core.effects.on('checkout:onPaymentStarted', handlePaymentStarted);
521
- core.effects.on('checkout:onPaymentItemAdded', handlePaymentStarted);
522
- core.effects.on('wallet:onUserIdentificationCodesUpdated', handleUserIdentificationCodesUpdated);
523
- core.effects.on('wallet:onWalletCacheCleared', handleWalletCacheCleared);
524
- core.effects.on('wallet:onSearchIdentificationCodeCompleted', handleSearchIdentificationCodeCompleted);
525
- core.effects.on('checkout:onWalletDataInitialized', onOrderCreated);
526
- core.effects.on('wallet:onWalletInitializationStarted', handleWalletInitializationStarted);
527
- core.effects.on('wallet:onWalletInitializationCompleted', handleWalletInitializationCompleted);
528
- core.effects.on('wallet:onWalletInitializationFailed', handleWalletInitializationFailed);
533
+ paymentModule.effectsOn('onWalletRecommendListUpdated', wrappedHandleWalletRecommendListUpdated);
534
+ // checkout 单实例,执行时判断是否active
535
+ checkoutModule.effectsOn('onPaymentStarted', wrappedHandlePaymentStarted);
536
+ checkoutModule.effectsOn('onPaymentItemAdded', wrappedHandlePaymentStarted);
537
+ paymentModule.effectsOn('onUserIdentificationCodesUpdated', wrappedHandleUserIdentificationCodesUpdated);
538
+ paymentModule.effectsOn('onWalletCacheCleared', wrappedHandleWalletCacheCleared);
539
+ paymentModule.effectsOn('onSearchIdentificationCodeCompleted', wrappedHandleSearchIdentificationCodeCompleted);
540
+ checkoutModule.effectsOn('onWalletDataInitialized', wrappedOnOrderCreated);
541
+ paymentModule.effectsOn('onWalletInitializationStarted', wrappedHandleWalletInitializationStarted);
542
+ paymentModule.effectsOn('onWalletInitializationCompleted', wrappedHandleWalletInitializationCompleted);
543
+ paymentModule.effectsOn('onWalletInitializationFailed', wrappedHandleWalletInitializationFailed);
529
544
 
530
545
  // 清理事件监听器
531
546
  return function () {
532
- core.effects.off('wallet:onWalletRecommendListUpdated', handleWalletRecommendListUpdated);
533
- core.effects.off('checkout:onPaymentStarted', handlePaymentStarted);
534
- core.effects.off('checkout:onPaymentItemAdded', handlePaymentStarted);
535
- core.effects.off('wallet:onUserIdentificationCodesUpdated', handleUserIdentificationCodesUpdated);
536
- core.effects.off('wallet:onWalletCacheCleared', handleWalletCacheCleared);
537
- core.effects.off('wallet:onSearchIdentificationCodeCompleted', handleSearchIdentificationCodeCompleted);
538
- core.effects.off('checkout:onWalletDataInitialized', onOrderCreated);
539
- core.effects.off('wallet:onWalletInitializationStarted', handleWalletInitializationStarted);
540
- core.effects.off('wallet:onWalletInitializationCompleted', handleWalletInitializationCompleted);
541
- core.effects.off('wallet:onWalletInitializationFailed', handleWalletInitializationFailed);
547
+ paymentModule.effectsOff('onWalletRecommendListUpdated', wrappedHandleWalletRecommendListUpdated);
548
+ checkoutModule.effectsOff('onPaymentStarted', wrappedHandlePaymentStarted);
549
+ checkoutModule.effectsOff('onPaymentItemAdded', wrappedHandlePaymentStarted);
550
+ paymentModule.effectsOff('onUserIdentificationCodesUpdated', wrappedHandleUserIdentificationCodesUpdated);
551
+ paymentModule.effectsOff('onWalletCacheCleared', wrappedHandleWalletCacheCleared);
552
+ paymentModule.effectsOff('onSearchIdentificationCodeCompleted', wrappedHandleSearchIdentificationCodeCompleted);
553
+ checkoutModule.effectsOff('onWalletDataInitialized', wrappedOnOrderCreated);
554
+ paymentModule.effectsOff('onWalletInitializationStarted', wrappedHandleWalletInitializationStarted);
555
+ paymentModule.effectsOff('onWalletInitializationCompleted', wrappedHandleWalletInitializationCompleted);
556
+ paymentModule.effectsOff('onWalletInitializationFailed', wrappedHandleWalletInitializationFailed);
542
557
  };
543
558
  }, [paymentModule]);
544
559
 
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -295,15 +295,15 @@ 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
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './List.less';
3
+ import { ListProps, BaseListItem } from './types';
4
+ declare const List: <TItem extends BaseListItem = BaseListItem>(props: ListProps<TItem>) => React.ReactElement;
5
+ export default List;