@pisell/private-materials 6.5.12 → 6.5.14

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 (492) 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 +164 -148
  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 +7 -7
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/booking/addons/model.d.ts +10 -1
  13. package/es/components/booking/components/actionButtons/index.js +15 -9
  14. package/es/components/booking/components/footer/index.js +2 -2
  15. package/es/components/booking/components/voucher/index.js +23 -19
  16. package/es/components/booking/forms/footer.js +4 -13
  17. package/es/components/booking/forms/model.d.ts +10 -1
  18. package/es/components/booking/info/model.d.ts +10 -1
  19. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  20. package/es/components/booking/info2/cartClientCard/index.js +7 -3
  21. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  22. package/es/components/booking/model.d.ts +9 -1
  23. package/es/components/booking/notes/model.d.ts +10 -1
  24. package/es/components/booking/payments/model.d.ts +10 -1
  25. package/es/components/booking/utils.d.ts +2 -2
  26. package/es/components/checkout/PaymentModal.js +17 -12
  27. package/es/components/checkout/components/CashPaymentModule/index.js +9 -9
  28. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  29. package/es/components/checkout/hooks/useWalletPass.js +40 -22
  30. package/es/components/eftposPay/hooks.d.ts +2 -2
  31. package/es/components/eftposPay/store/index.d.ts +4 -4
  32. package/es/components/list/List.d.ts +5 -0
  33. package/es/components/list/List.js +957 -0
  34. package/es/components/list/List.less +2 -0
  35. package/es/components/list/ResponsiveWrapper.d.ts +16 -0
  36. package/es/components/list/ResponsiveWrapper.js +130 -0
  37. package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
  38. package/es/components/list/TestResponsiveWrapper.js +816 -0
  39. package/es/components/list/TestResponsiveWrapper.less +968 -0
  40. package/es/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  41. package/es/components/list/components/EmptyState/EmptyState.js +75 -0
  42. package/es/components/list/components/EmptyState/EmptyState.less +121 -0
  43. package/es/components/list/components/EmptyState/index.d.ts +2 -0
  44. package/es/components/list/components/EmptyState/index.js +1 -0
  45. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  46. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
  47. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  48. package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  49. package/es/components/list/components/ListItemSkeleton/index.js +2 -0
  50. package/es/components/list/components/Pagination/Pagination.d.ts +30 -0
  51. package/es/components/list/components/Pagination/Pagination.js +240 -0
  52. package/es/components/list/components/Pagination/Pagination.less +439 -0
  53. package/es/components/list/components/Pagination/index.d.ts +1 -0
  54. package/es/components/list/components/Pagination/index.js +1 -0
  55. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  56. package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
  57. package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  58. package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
  59. package/es/components/list/components/ScrollLoader/index.js +1 -0
  60. package/es/components/list/components/Tab/Tab.d.ts +5 -0
  61. package/es/components/list/components/Tab/Tab.js +43 -0
  62. package/es/components/list/components/Tab/Tab.less +139 -0
  63. package/es/components/list/components/Tab/index.d.ts +2 -0
  64. package/es/components/list/components/Tab/index.js +1 -0
  65. package/es/components/list/components/Tab/types.d.ts +14 -0
  66. package/es/components/list/components/Tab/types.js +1 -0
  67. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  68. package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
  69. package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  70. package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
  71. package/es/components/list/components/TabSkeleton/index.js +2 -0
  72. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  73. package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
  74. package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
  75. package/es/components/list/components/WaterfallList/index.d.ts +2 -0
  76. package/es/components/list/components/WaterfallList/index.js +1 -0
  77. package/es/components/list/examples/GroupedListExample.d.ts +3 -0
  78. package/es/components/list/examples/GroupedListExample.js +207 -0
  79. package/es/components/list/hooks/index.d.ts +5 -0
  80. package/es/components/list/hooks/index.js +3 -0
  81. package/es/components/list/hooks/useDevice.d.ts +24 -0
  82. package/es/components/list/hooks/useDevice.js +102 -0
  83. package/es/components/list/hooks/useListState.d.ts +43 -0
  84. package/es/components/list/hooks/useListState.js +176 -0
  85. package/es/components/list/hooks/useWaterfall.d.ts +34 -0
  86. package/es/components/list/hooks/useWaterfall.js +161 -0
  87. package/es/components/list/index.d.ts +10 -0
  88. package/es/components/list/index.js +7 -0
  89. package/es/components/list/locales.d.ts +66 -0
  90. package/es/components/list/locales.js +107 -0
  91. package/es/components/list/styles/base.less +39 -0
  92. package/es/components/list/styles/content.less +415 -0
  93. package/es/components/list/styles/floatButton.less +107 -0
  94. package/es/components/list/styles/footer.less +49 -0
  95. package/es/components/list/styles/header.less +69 -0
  96. package/es/components/list/styles/responsive.less +166 -0
  97. package/es/components/list/types.d.ts +177 -0
  98. package/es/components/list/types.js +1 -0
  99. package/es/components/list/utils/getText.d.ts +53 -0
  100. package/es/components/list/utils/getText.js +150 -0
  101. package/es/components/list/utils/index.d.ts +4 -0
  102. package/es/components/list/utils/index.js +5 -0
  103. package/es/components/pay/toB/store/hooks.js +19 -5
  104. package/es/components/pay/toC/model.d.ts +9 -1
  105. package/es/components/schedules/model.d.ts +9 -1
  106. package/es/components/schedules/utils.d.ts +1 -1
  107. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  108. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
  109. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  110. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
  111. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  112. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  113. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
  114. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  115. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
  116. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  117. package/es/components/ticketBooking/components/addServiceVariant/addService.js +32 -10
  118. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
  119. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
  120. package/es/components/ticketBooking/components/menuBar/index.d.ts +5 -1
  121. package/es/components/ticketBooking/components/menuBar/index.js +40 -17
  122. package/es/components/ticketBooking/components/menuBar/index.less +27 -1
  123. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  124. package/es/components/ticketBooking/components/ticketBooking/index.js +20 -10
  125. package/es/components/ticketBooking/components/timeBar/index.less +1 -0
  126. package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  127. package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
  128. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  129. package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
  130. package/es/components/ticketBooking/context/index.d.ts +2 -0
  131. package/es/components/ticketBooking/context/index.js +2 -0
  132. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
  133. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
  134. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
  135. package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
  136. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  137. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
  138. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
  139. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
  140. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
  141. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  142. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
  143. package/es/components/ticketBooking/index.d.ts +6 -0
  144. package/es/components/ticketBooking/index.js +86 -12
  145. package/es/components/ticketBooking/utils/index.d.ts +28 -1
  146. package/es/components/ticketBooking/utils/index.js +40 -0
  147. package/es/components/wallet/Detail/model.d.ts +13 -1
  148. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  149. package/es/components/wallet/PointCard/model.d.ts +13 -1
  150. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  151. package/es/components/wallet/Voucher/model.d.ts +13 -1
  152. package/es/components/wallet/model.d.ts +9 -1
  153. package/es/index.d.ts +2 -0
  154. package/es/index.js +3 -1
  155. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
  156. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
  157. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  158. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
  159. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
  160. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  161. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
  162. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
  163. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  164. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
  165. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
  166. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  167. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
  168. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
  169. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  170. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
  171. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
  172. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  173. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  174. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
  175. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  176. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
  177. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
  178. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  179. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  180. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
  181. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  182. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
  183. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
  186. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
  187. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
  188. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  189. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
  190. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  191. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
  192. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
  193. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  194. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  195. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
  196. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  197. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
  198. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
  199. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  200. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
  201. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
  202. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  203. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
  204. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
  205. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  206. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
  207. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
  208. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  209. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  210. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
  211. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  212. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  213. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
  214. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  215. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  216. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
  217. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  218. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
  219. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
  220. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  221. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  222. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
  223. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  224. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  225. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
  226. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  227. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  228. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
  229. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  230. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  231. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
  232. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  233. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
  234. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
  235. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
  236. package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
  237. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  238. package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
  239. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  240. package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
  241. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  242. package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
  243. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  244. package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
  245. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
  246. package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
  247. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +20 -10
  248. package/es/pro/priceKeyboard/components/cashKeyboard/index.less +1 -2
  249. package/es/utils/index.d.ts +1 -1
  250. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  251. package/lib/components/booking/addons/model.d.ts +10 -1
  252. package/lib/components/booking/components/actionButtons/index.js +22 -17
  253. package/lib/components/booking/components/footer/index.js +2 -2
  254. package/lib/components/booking/components/voucher/index.js +33 -40
  255. package/lib/components/booking/forms/footer.js +7 -13
  256. package/lib/components/booking/forms/model.d.ts +10 -1
  257. package/lib/components/booking/info/model.d.ts +10 -1
  258. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  259. package/lib/components/booking/info2/cartClientCard/index.js +7 -3
  260. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  261. package/lib/components/booking/model.d.ts +9 -1
  262. package/lib/components/booking/notes/model.d.ts +10 -1
  263. package/lib/components/booking/payments/model.d.ts +10 -1
  264. package/lib/components/booking/utils.d.ts +2 -2
  265. package/lib/components/checkout/PaymentModal.js +15 -12
  266. package/lib/components/checkout/components/CashPaymentModule/index.js +0 -1
  267. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  268. package/lib/components/checkout/hooks/useWalletPass.js +61 -46
  269. package/lib/components/eftposPay/hooks.d.ts +2 -2
  270. package/lib/components/eftposPay/store/index.d.ts +4 -4
  271. package/lib/components/list/List.d.ts +5 -0
  272. package/lib/components/list/List.js +771 -0
  273. package/lib/components/list/List.less +2 -0
  274. package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
  275. package/lib/components/list/ResponsiveWrapper.js +145 -0
  276. package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
  277. package/lib/components/list/TestResponsiveWrapper.js +493 -0
  278. package/lib/components/list/TestResponsiveWrapper.less +968 -0
  279. package/lib/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  280. package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
  281. package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
  282. package/lib/components/list/components/EmptyState/index.d.ts +2 -0
  283. package/lib/components/list/components/EmptyState/index.js +35 -0
  284. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  285. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
  286. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  287. package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  288. package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
  289. package/lib/components/list/components/Pagination/Pagination.d.ts +30 -0
  290. package/lib/components/list/components/Pagination/Pagination.js +205 -0
  291. package/lib/components/list/components/Pagination/Pagination.less +439 -0
  292. package/lib/components/list/components/Pagination/index.d.ts +1 -0
  293. package/lib/components/list/components/Pagination/index.js +35 -0
  294. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  295. package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
  296. package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  297. package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
  298. package/lib/components/list/components/ScrollLoader/index.js +35 -0
  299. package/lib/components/list/components/Tab/Tab.d.ts +5 -0
  300. package/lib/components/list/components/Tab/Tab.js +72 -0
  301. package/lib/components/list/components/Tab/Tab.less +139 -0
  302. package/lib/components/list/components/Tab/index.d.ts +2 -0
  303. package/lib/components/list/components/Tab/index.js +35 -0
  304. package/lib/components/list/components/Tab/types.d.ts +14 -0
  305. package/lib/components/list/components/Tab/types.js +17 -0
  306. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  307. package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
  308. package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  309. package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
  310. package/lib/components/list/components/TabSkeleton/index.js +41 -0
  311. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  312. package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
  313. package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
  314. package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
  315. package/lib/components/list/components/WaterfallList/index.js +35 -0
  316. package/lib/components/list/examples/GroupedListExample.d.ts +3 -0
  317. package/lib/components/list/examples/GroupedListExample.js +210 -0
  318. package/lib/components/list/hooks/index.d.ts +5 -0
  319. package/lib/components/list/hooks/index.js +47 -0
  320. package/lib/components/list/hooks/useDevice.d.ts +24 -0
  321. package/lib/components/list/hooks/useDevice.js +96 -0
  322. package/lib/components/list/hooks/useListState.d.ts +43 -0
  323. package/lib/components/list/hooks/useListState.js +149 -0
  324. package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
  325. package/lib/components/list/hooks/useWaterfall.js +124 -0
  326. package/lib/components/list/index.d.ts +10 -0
  327. package/lib/components/list/index.js +60 -0
  328. package/lib/components/list/locales.d.ts +66 -0
  329. package/lib/components/list/locales.js +113 -0
  330. package/lib/components/list/styles/base.less +39 -0
  331. package/lib/components/list/styles/content.less +415 -0
  332. package/lib/components/list/styles/floatButton.less +107 -0
  333. package/lib/components/list/styles/footer.less +49 -0
  334. package/lib/components/list/styles/header.less +69 -0
  335. package/lib/components/list/styles/responsive.less +166 -0
  336. package/lib/components/list/types.d.ts +177 -0
  337. package/lib/components/list/types.js +17 -0
  338. package/lib/components/list/utils/getText.d.ts +53 -0
  339. package/lib/components/list/utils/getText.js +95 -0
  340. package/lib/components/list/utils/index.d.ts +4 -0
  341. package/lib/components/list/utils/index.js +43 -0
  342. package/lib/components/pay/toB/store/hooks.js +16 -8
  343. package/lib/components/pay/toC/model.d.ts +9 -1
  344. package/lib/components/schedules/model.d.ts +9 -1
  345. package/lib/components/schedules/utils.d.ts +1 -1
  346. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  347. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
  348. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  349. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
  350. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  351. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  352. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
  353. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  354. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
  355. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  356. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +36 -10
  357. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
  358. package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
  359. package/lib/components/ticketBooking/components/menuBar/index.d.ts +5 -1
  360. package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
  361. package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
  362. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  363. package/lib/components/ticketBooking/components/ticketBooking/index.js +14 -9
  364. package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
  365. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  366. package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
  367. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  368. package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
  369. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  370. package/lib/components/ticketBooking/context/index.js +44 -0
  371. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
  372. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
  373. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
  374. package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
  375. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  376. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
  377. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
  378. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
  379. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
  380. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  381. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
  382. package/lib/components/ticketBooking/index.d.ts +6 -0
  383. package/lib/components/ticketBooking/index.js +69 -7
  384. package/lib/components/ticketBooking/utils/index.d.ts +28 -1
  385. package/lib/components/ticketBooking/utils/index.js +45 -2
  386. package/lib/components/wallet/Detail/model.d.ts +13 -1
  387. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  388. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  389. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  390. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  391. package/lib/components/wallet/model.d.ts +9 -1
  392. package/lib/index.d.ts +2 -0
  393. package/lib/index.js +6 -0
  394. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
  395. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
  396. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  397. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
  398. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
  399. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  400. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
  401. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
  402. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  403. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
  404. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
  405. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  406. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
  407. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
  408. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  409. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
  410. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
  411. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  412. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  413. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
  414. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  415. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
  416. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
  417. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  418. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  419. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
  420. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  421. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
  422. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
  423. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
  424. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
  425. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
  426. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
  427. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  428. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
  429. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  430. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
  431. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
  432. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  433. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  434. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
  435. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  436. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
  437. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
  438. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  439. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
  440. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
  441. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  442. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
  443. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
  444. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  445. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
  446. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
  447. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  448. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  449. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
  450. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  451. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  452. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
  453. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  454. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  455. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
  456. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  457. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
  458. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
  459. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  460. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  461. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
  462. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  463. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  464. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
  465. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  466. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  467. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
  468. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  469. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  470. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
  471. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  472. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
  473. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
  474. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
  475. package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
  476. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  477. package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
  478. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  479. package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
  480. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  481. package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
  482. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  483. package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
  484. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
  485. package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
  486. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +61 -27
  487. package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +1 -2
  488. package/lib/utils/index.d.ts +1 -1
  489. package/lowcode/sku-card/meta.ts +1812 -0
  490. package/lowcode/sku-card/snippets.ts +372 -0
  491. package/lowcode/sku-list/meta.ts +410 -0
  492. package/package.json +1 -1
@@ -45,16 +45,7 @@ var import_ahooks = require("ahooks");
45
45
  var import_utils2 = require("./utils");
46
46
  var import_pisellos = require("../../../ticketBooking/hooks/pisellos");
47
47
  var import_utils3 = require("../../info/clientVariant/utils");
48
- var ShopDiscountHooks = {
49
- onInited: "shopDiscount:onInited",
50
- onDestroy: "shopDiscount:onDestroy",
51
- onLoadDiscountList: "shopDiscount:onLoadDiscountList",
52
- onCustomerChange: "shopDiscount:onCustomerChange",
53
- onScanCustomerChange: "shopDiscount:onScanCustomerChange",
54
- onDiscountListChange: "shopDiscount:onDiscountListChange",
55
- onRulesListChange: "shopDiscount:onRulesListChange",
56
- onLoadPrepareCalcResult: "shopDiscount:onLoadPrepareCalcResult"
57
- };
48
+ var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
58
49
  var services = {};
59
50
  var VoucherCard = (props) => {
60
51
  var _a, _b, _c, _d;
@@ -67,7 +58,8 @@ var VoucherCard = (props) => {
67
58
  const serviceValueRef = (0, import_react.useRef)(state.service.value);
68
59
  const addonsValueRef = (0, import_react.useRef)(state.addons.value);
69
60
  const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
70
- const shopDiscount = pisellos.getModule("shopDiscount");
61
+ const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
62
+ const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
71
63
  services = state.service;
72
64
  const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
73
65
  dispatch({
@@ -93,7 +85,7 @@ var VoucherCard = (props) => {
93
85
  }
94
86
  );
95
87
  (0, import_react.useEffect)(() => {
96
- if (isBooking4Shop) {
88
+ if (isBooking4Shop && shopDiscount) {
97
89
  shopDiscount.setProductList([
98
90
  ...state.service.value,
99
91
  ...state.addons.value
@@ -123,9 +115,10 @@ var VoucherCard = (props) => {
123
115
  onScanCode(e.detail.code);
124
116
  });
125
117
  (0, import_react.useEffect)(() => {
126
- window.addEventListener("onScanWallPassCode", onScanWallPassCode);
118
+ const wrappedOnScanWallPassCode = executeIfActive(onScanWallPassCode);
119
+ window.addEventListener("onScanWallPassCode", wrappedOnScanWallPassCode);
127
120
  return () => {
128
- window.removeEventListener("onScanWallPassCode", onScanWallPassCode);
121
+ window.removeEventListener("onScanWallPassCode", wrappedOnScanWallPassCode);
129
122
  };
130
123
  }, []);
131
124
  const addonsMemo = (0, import_react.useMemo)(() => {
@@ -176,14 +169,13 @@ var VoucherCard = (props) => {
176
169
  run();
177
170
  }, [JSON.stringify(serviceMemo), JSON.stringify(addonsMemo), isBooking4Shop]);
178
171
  (0, import_react.useEffect)(() => {
179
- var _a2;
180
- if (pisellos) {
181
- (_a2 = pisellos == null ? void 0 : pisellos.effects) == null ? void 0 : _a2.on("shopDiscount:onSelectedDiscountListChange", fn);
172
+ if (shopDiscount) {
173
+ const wrappedHandler = executeIfActive(fn);
174
+ shopDiscount == null ? void 0 : shopDiscount.effectsOn("onSelectedDiscountListChange", wrappedHandler);
182
175
  return () => {
183
- var _a3;
184
- (_a3 = pisellos == null ? void 0 : pisellos.effects) == null ? void 0 : _a3.off(
185
- "shopDiscount:onSelectedDiscountListChange",
186
- fn
176
+ shopDiscount == null ? void 0 : shopDiscount.effectsOff(
177
+ "onSelectedDiscountListChange",
178
+ wrappedHandler
187
179
  );
188
180
  };
189
181
  }
@@ -196,7 +188,7 @@ var VoucherCard = (props) => {
196
188
  productListToValue(result.productList);
197
189
  });
198
190
  (0, import_react.useEffect)(() => {
199
- if (!isBooking4Shop) return;
191
+ if (!isBooking4Shop || !shopDiscount) return;
200
192
  const onScanCustomerChange = (customer) => {
201
193
  const clientVariantClose = (0, import_utils3.getClientVariantClose)();
202
194
  if (clientVariantClose) {
@@ -207,25 +199,28 @@ var VoucherCard = (props) => {
207
199
  const onDiscountListChange = (discount) => {
208
200
  setDisCountList(discount);
209
201
  };
210
- pisellos.effects.on(
211
- ShopDiscountHooks.onScanCustomerChange,
212
- onScanCustomerChange
202
+ const wrappedOnScanCustomerChangeHandler = executeIfActive(onScanCustomerChange);
203
+ const wrappedOnDiscountListChangeHandler = executeIfActive(onDiscountListChange);
204
+ const wrappedFn = executeIfActive(fn);
205
+ shopDiscount.effectsOn(
206
+ "onScanCustomerChange",
207
+ wrappedOnScanCustomerChangeHandler
213
208
  );
214
- pisellos.effects.on(ShopDiscountHooks.onLoadPrepareCalcResult, fn);
215
- pisellos.effects.on(
216
- ShopDiscountHooks.onDiscountListChange,
217
- onDiscountListChange
209
+ shopDiscount.effectsOn("onLoadPrepareCalcResult", wrappedFn);
210
+ shopDiscount.effectsOn(
211
+ "onDiscountListChange",
212
+ wrappedOnDiscountListChangeHandler
218
213
  );
219
214
  return () => {
220
215
  shopDiscount.clear();
221
- pisellos.effects.off(
222
- ShopDiscountHooks.onScanCustomerChange,
223
- onScanCustomerChange
216
+ shopDiscount.effectsOff(
217
+ "onScanCustomerChange",
218
+ wrappedOnScanCustomerChangeHandler
224
219
  );
225
- pisellos.effects.off(ShopDiscountHooks.onLoadPrepareCalcResult, fn);
226
- pisellos.effects.off(
227
- ShopDiscountHooks.onDiscountListChange,
228
- onDiscountListChange
220
+ shopDiscount.effectsOff("onLoadPrepareCalcResult", wrappedFn);
221
+ shopDiscount.effectsOff(
222
+ "onDiscountListChange",
223
+ wrappedOnDiscountListChangeHandler
229
224
  );
230
225
  };
231
226
  }, [state.bookingId, isBooking4Shop, fn]);
@@ -273,12 +268,11 @@ var VoucherCard = (props) => {
273
268
  };
274
269
  const availableData = (0, import_react.useMemo)(() => {
275
270
  if (!isBooking4Shop) return [];
276
- const shopDiscount2 = pisellos.getModule("shopDiscount");
277
271
  return discountList.filter((item) => !!item.isAvailable).map((discount) => {
278
272
  return {
279
273
  ...discount,
280
274
  isDisabled: discount.isDisabled || discount.isDisabledForProductUsed || disabled,
281
- savedAmount: shopDiscount2.calcDiscountApplicableProductTotalPrice(discount)
275
+ savedAmount: shopDiscount.calcDiscountApplicableProductTotalPrice(discount)
282
276
  };
283
277
  });
284
278
  }, [discountList, isBooking4Shop, disabled]);
@@ -321,8 +315,7 @@ var VoucherCard = (props) => {
321
315
  dataSource: ((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length) ? availableData : [],
322
316
  mixedSort,
323
317
  onChange: (val) => {
324
- const shopDiscount2 = pisellos.getModule("shopDiscount");
325
- const detail = shopDiscount2.setDiscountSelected({
318
+ const detail = shopDiscount.setDiscountSelected({
326
319
  discountId: val.id,
327
320
  isSelected: val.isSelected
328
321
  });
@@ -39,37 +39,31 @@ var import_useSendModal = __toESM(require("./sendModal/useSendModal"));
39
39
  var import_sendModal = __toESM(require("./sendModal"));
40
40
  var import_utils = require("@pisell/utils");
41
41
  var Footer = ({ state, reload }) => {
42
- var _a, _b, _c, _d, _e;
42
+ var _a, _b, _c, _d;
43
43
  const { open, setOpen, handleOpen, handleValuesChange, handleOk } = (0, import_useSendModal.default)(state == null ? void 0 : state.bookingId);
44
44
  const handleReload = async () => {
45
45
  await reload();
46
46
  import_materials.message.success(import_utils.locales.getText("pisell2.text.send-form-reminder-refresh"));
47
47
  };
48
- const isAllCompleted = (0, import_react.useMemo)(() => {
49
- var _a2;
50
- return Object.values(((_a2 = state == null ? void 0 : state.form) == null ? void 0 : _a2.value) || {}).every(
51
- (item) => item.length > 0
52
- );
53
- }, [(_a = state == null ? void 0 : state.form) == null ? void 0 : _a.value]);
54
48
  const defaultValues = (0, import_react.useMemo)(() => {
55
- var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i, _j;
49
+ var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j;
56
50
  return {
57
51
  sendSms: !!((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.phone),
58
52
  sendEmail: !!((_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.email),
59
- email: (_f = (_e2 = state.client) == null ? void 0 : _e2.value) == null ? void 0 : _f.email,
53
+ email: (_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.email,
60
54
  phone: {
61
55
  code: (_h = (_g = state.client) == null ? void 0 : _g.value) == null ? void 0 : _h.country_calling_code,
62
56
  phone: (_j = (_i = state.client) == null ? void 0 : _i.value) == null ? void 0 : _j.phone
63
57
  }
64
58
  };
65
- }, [(_b = state.client) == null ? void 0 : _b.value]);
66
- if (!state.bookingId || !((_c = state == null ? void 0 : state.form) == null ? void 0 : _c.forms.length)) {
59
+ }, [(_a = state.client) == null ? void 0 : _a.value]);
60
+ if (!state.bookingId || !((_b = state == null ? void 0 : state.form) == null ? void 0 : _b.forms.length)) {
67
61
  return null;
68
62
  }
69
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-form-footer" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Tooltip, { title: import_utils.locales.getText("pisell2.text.send-form-reminder-tooltip") }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null), onClick: handleReload })), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", block: true, type: "primary", onClick: handleOpen, disabled: isAllCompleted }, !isAllCompleted ? import_utils.locales.getText("pisell2.text.send-form-reminder") : import_utils.locales.getText("pisell2.text.send-form-reminder-completed")), /* @__PURE__ */ import_react.default.createElement(
63
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-form-footer" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Tooltip, { title: import_utils.locales.getText("pisell2.text.send-form-reminder-tooltip") }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null), onClick: handleReload })), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", block: true, type: "primary", onClick: handleOpen }, import_utils.locales.getText("pisell2.text.send-form-reminder")), /* @__PURE__ */ import_react.default.createElement(
70
64
  import_sendModal.default,
71
65
  {
72
- refreshKey: (_e = (_d = state.client) == null ? void 0 : _d.value) == null ? void 0 : _e.id,
66
+ refreshKey: (_d = (_c = state.client) == null ? void 0 : _c.value) == null ? void 0 : _d.id,
73
67
  open,
74
68
  onCancel: () => setOpen(false),
75
69
  onOk: handleOk,
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -48,6 +48,7 @@ var import_useTranslationOriginal = __toESM(require("../../../../hooks/useTransl
48
48
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
49
49
  var import_model = require("../../info/model");
50
50
  var import_index = require("./index.less");
51
+ var import_IsActiveContext = require("../../../ticketBooking/context/IsActiveContext");
51
52
  var CartClientCard = (0, import_react.forwardRef)(({
52
53
  clientCardProps = {},
53
54
  beforeSwitchModalOpen,
@@ -64,6 +65,7 @@ var CartClientCard = (0, import_react.forwardRef)(({
64
65
  const translationOriginal = (0, import_useTranslationOriginal.default)();
65
66
  const [keyword, setKeyword] = (0, import_react.useState)("");
66
67
  const keywordRef = (0, import_react.useRef)("");
68
+ const isActive = (0, import_IsActiveContext.useIsActive)();
67
69
  keywordRef.current = keyword;
68
70
  const Toast = (0, import_materials.useToast)();
69
71
  const { openScan, closeScan } = (0, import_useScanCustomer.default)();
@@ -231,13 +233,15 @@ var CartClientCard = (0, import_react.forwardRef)(({
231
233
  setPendingCustomer(null);
232
234
  };
233
235
  (0, import_react.useMemo)(() => {
234
- (0, import_utils3.setHandleSetClient)(handleSetClient);
235
- }, []);
236
+ if (isActive) {
237
+ (0, import_utils3.setHandleSetClient)(handleSetClient);
238
+ }
239
+ }, [isActive]);
236
240
  (0, import_react.useEffect)(() => {
237
241
  return () => {
238
242
  (0, import_utils3.setHandleSetClient)(null);
239
243
  };
240
- }, []);
244
+ }, [isActive]);
241
245
  const tags = (0, import_react.useMemo)(() => {
242
246
  var _a2;
243
247
  if (!selectedCustomer) return;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -105,4 +106,11 @@ export declare const walkInData: {
105
106
  id: number;
106
107
  nickname: string;
107
108
  };
108
- export declare const Provider: any, Context: any;
109
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
+ state: FormState;
111
+ } & {
112
+ dispatch: (params: {
113
+ type: string;
114
+ payload: any;
115
+ }) => void;
116
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -65,6 +65,7 @@ var import_usePaymentLogger = __toESM(require("./hooks/usePaymentLogger"));
65
65
  var import_antd = require("antd");
66
66
  var import_printer = __toESM(require("../../hooks/printer"));
67
67
  var import_priceKeyboard = require("../../pro/priceKeyboard");
68
+ var import_pisellos = require("../ticketBooking/hooks/pisellos");
68
69
  var CheckoutHooks = {
69
70
  OnStateAmountChanged: "checkout:onStateAmountChanged",
70
71
  OnBalanceDueAmountChanged: "checkout:onBalanceDueAmountChanged",
@@ -105,6 +106,7 @@ var PaymentContent = (0, import_react.forwardRef)(
105
106
  const utils = context.appHelper.utils || {};
106
107
  const { pisellos, getData, pisellosAllModule, interaction } = utils;
107
108
  const Toast = (0, import_materials.useToast)();
109
+ const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
108
110
  const checkoutRef = (0, import_react.useRef)(null);
109
111
  const savePayLaterHandlerRef = (0, import_react.useRef)(null);
110
112
  const [customAmount, setCustomAmount] = (0, import_react.useState)("");
@@ -379,7 +381,7 @@ var PaymentContent = (0, import_react.forwardRef)(
379
381
  if (core.effects && typeof core.effects.on === "function") {
380
382
  const unsubscribe = core.effects.on(
381
383
  CheckoutHooks.OnStateAmountChanged,
382
- async (data) => {
384
+ executeIfActive(async (data) => {
383
385
  var _a2, _b2;
384
386
  console.log(
385
387
  `Amount changed from ${data.oldAmount} to ${data.newAmount}`
@@ -405,26 +407,26 @@ var PaymentContent = (0, import_react.forwardRef)(
405
407
  setCustomAmount(data.newAmount);
406
408
  const items = await checkoutModule.getCurrentOrderPaymentItemsAsync();
407
409
  setPaymentItems(items);
408
- }
410
+ })
409
411
  );
410
412
  const amountChangedUnsubscribe = core.effects.on(
411
413
  CheckoutHooks.OnBalanceDueAmountChanged,
412
- (data) => {
414
+ executeIfActive((data) => {
413
415
  setBalanceDueAmount(data.newAmount);
414
416
  setBalanceDueTotalAmount(data.totalAmount || "0");
415
- }
417
+ })
416
418
  );
417
419
  const orderSubmitStartUnsubscribe = core.effects.on(
418
420
  CheckoutHooks.OnOrderSubmitStart,
419
- () => {
421
+ executeIfActive(() => {
420
422
  var _a2;
421
423
  setSyncingLock(true);
422
424
  (_a2 = Toast == null ? void 0 : Toast.loading) == null ? void 0 : _a2.call(Toast);
423
- }
425
+ })
424
426
  );
425
427
  const orderSubmitEndUnsubscribe = core.effects.on(
426
428
  CheckoutHooks.OnOrderSubmitEnd,
427
- (res) => {
429
+ executeIfActive((res) => {
428
430
  var _a2, _b2;
429
431
  setSyncingLock(false);
430
432
  if (res.success) {
@@ -439,11 +441,11 @@ var PaymentContent = (0, import_react.forwardRef)(
439
441
  );
440
442
  }
441
443
  }
442
- }
444
+ })
443
445
  );
444
446
  const orderPaymentAddedUnsubscribe = core.effects.on(
445
447
  CheckoutHooks.OnOrderPaymentAdded,
446
- async (data) => {
448
+ executeIfActive(async (data) => {
447
449
  var _a2, _b2;
448
450
  console.log("orderPaymentAddedUnsubscribe>>>>", data);
449
451
  const orderInfo2 = checkoutModule.getCurrentOrderInfo();
@@ -506,7 +508,7 @@ var PaymentContent = (0, import_react.forwardRef)(
506
508
  }
507
509
  });
508
510
  }
509
- }
511
+ })
510
512
  );
511
513
  return () => {
512
514
  if (unsubscribe && typeof unsubscribe === "function") {
@@ -1063,6 +1065,7 @@ var PaymentModal = ({
1063
1065
  const [windowHeight, setWindowHeight] = (0, import_react.useState)(0);
1064
1066
  const [showRetryModal, setShowRetryModal] = (0, import_react.useState)(false);
1065
1067
  const [currentEditOrderId, setCurrentEditOrderId] = (0, import_react.useState)(editOrderId || 0);
1068
+ const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
1066
1069
  const Toast = (0, import_materials.useToast)();
1067
1070
  const { nativePrint } = (0, import_printer.default)();
1068
1071
  const handleRetry = async () => {
@@ -1466,7 +1469,7 @@ var PaymentModal = ({
1466
1469
  }
1467
1470
  unsubscribeRef.current = checkout.core.effects.on(
1468
1471
  "checkout:onOrderSynced",
1469
- async (data2) => {
1472
+ executeIfActive(async (data2) => {
1470
1473
  var _a3, _b3, _c3, _d3, _e2;
1471
1474
  const currentOrderId = checkout.getCurrentOrderId();
1472
1475
  setCurrentEditOrderId(currentOrderId);
@@ -1573,7 +1576,7 @@ var PaymentModal = ({
1573
1576
  } else {
1574
1577
  handlePaymentComplete(data2);
1575
1578
  }
1576
- }
1579
+ })
1577
1580
  );
1578
1581
  } else if (isLocalOrderCreated.current) {
1579
1582
  console.log(
@@ -128,7 +128,6 @@ function CashPaymentModule({
128
128
  } else {
129
129
  const cleanValue = finalValue.replace(/[$\s]/g, "");
130
130
  const numValue = parseFloat(cleanValue);
131
- debugger;
132
131
  const balanceDue = parseFloat((orderInfo == null ? void 0 : orderInfo.isDeposit) ? balanceDueTotalAmount || "0" : balanceDueAmount);
133
132
  const shouldApplyRounding = Math.abs(numValue - balanceDue) < 0.01;
134
133
  let finalAmount = numValue;
@@ -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;
@@ -41,9 +41,12 @@ var import_useEngineContext = require("../../../hooks/useEngineContext");
41
41
  var import_utils2 = require("../components/WalletPassModule/utils");
42
42
  var import_usePaymentLogger = __toESM(require("./usePaymentLogger"));
43
43
  var import_utils3 = require("../../booking/utils");
44
+ var import_pisellos = require("../../ticketBooking/hooks/pisellos");
45
+ var import_useShopDiscountModule = require("../../ticketBooking/hooks/pisellos/useShopDiscountModule");
44
46
  var useWalletPass = (props) => {
45
47
  const { onSelectChange, customAmount, clientId } = props;
46
48
  const logger = (0, import_usePaymentLogger.default)();
49
+ const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
47
50
  const [walletRecommendList, setWalletRecommendList] = (0, import_react.useState)([]);
48
51
  const [userIdentificationCodes, setUserIdentificationCodes] = (0, import_react.useState)(
49
52
  []
@@ -68,7 +71,7 @@ var useWalletPass = (props) => {
68
71
  const [error, setError] = (0, import_react.useState)(null);
69
72
  const [discountList, setDiscountList] = (0, import_react.useState)([]);
70
73
  const checkoutModule = pisellos.getModule("checkout");
71
- const shopDiscount = pisellos.getModule("shopDiscount");
74
+ const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
72
75
  const paymentModule = checkoutModule == null ? void 0 : checkoutModule.payment;
73
76
  const setWalletSelect = (0, import_ahooks.useMemoizedFn)((data2) => {
74
77
  setSelectedWallet(data2);
@@ -242,7 +245,10 @@ var useWalletPass = (props) => {
242
245
  });
243
246
  }
244
247
  setDisabledWalletData(isDisabledData);
245
- const newValues = [...selectedWalletRef.current, ...isAvailableData];
248
+ let newValues = [...selectedWalletRef.current];
249
+ if (isAvailableData.length === 1) {
250
+ newValues = [...selectedWalletRef.current, ...isAvailableData];
251
+ }
246
252
  setSearchIdentificationCodeList(cachedSearchResults);
247
253
  setWalletSelect(newValues);
248
254
  handleFetchUserIdentificationCodes(newValues.map((item) => item.id));
@@ -322,62 +328,71 @@ var useWalletPass = (props) => {
322
328
  (0, import_react.useEffect)(() => {
323
329
  if (!paymentModule) return;
324
330
  const core = pisellos;
325
- core.effects.on(
326
- "wallet:onWalletRecommendListUpdated",
327
- handleWalletRecommendListUpdated
331
+ const wrappedHandlePaymentStarted = executeIfActive(handlePaymentStarted);
332
+ const wrappedOnOrderCreated = executeIfActive(onOrderCreated);
333
+ const wrappedHandleWalletRecommendListUpdated = executeIfActive(handleWalletRecommendListUpdated);
334
+ const wrappedHandleUserIdentificationCodesUpdated = executeIfActive(handleUserIdentificationCodesUpdated);
335
+ const wrappedHandleWalletCacheCleared = executeIfActive(handleWalletCacheCleared);
336
+ const wrappedHandleSearchIdentificationCodeCompleted = executeIfActive(handleSearchIdentificationCodeCompleted);
337
+ const wrappedHandleWalletInitializationStarted = executeIfActive(handleWalletInitializationStarted);
338
+ const wrappedHandleWalletInitializationCompleted = executeIfActive(handleWalletInitializationCompleted);
339
+ const wrappedHandleWalletInitializationFailed = executeIfActive(handleWalletInitializationFailed);
340
+ paymentModule.effectsOn(
341
+ "onWalletRecommendListUpdated",
342
+ wrappedHandleWalletRecommendListUpdated
328
343
  );
329
- core.effects.on("checkout:onPaymentStarted", handlePaymentStarted);
330
- core.effects.on("checkout:onPaymentItemAdded", handlePaymentStarted);
331
- core.effects.on(
332
- "wallet:onUserIdentificationCodesUpdated",
333
- handleUserIdentificationCodesUpdated
344
+ checkoutModule.effectsOn("onPaymentStarted", wrappedHandlePaymentStarted);
345
+ checkoutModule.effectsOn("onPaymentItemAdded", wrappedHandlePaymentStarted);
346
+ paymentModule.effectsOn(
347
+ "onUserIdentificationCodesUpdated",
348
+ wrappedHandleUserIdentificationCodesUpdated
334
349
  );
335
- core.effects.on("wallet:onWalletCacheCleared", handleWalletCacheCleared);
336
- core.effects.on(
337
- "wallet:onSearchIdentificationCodeCompleted",
338
- handleSearchIdentificationCodeCompleted
350
+ paymentModule.effectsOn("onWalletCacheCleared", wrappedHandleWalletCacheCleared);
351
+ paymentModule.effectsOn(
352
+ "onSearchIdentificationCodeCompleted",
353
+ wrappedHandleSearchIdentificationCodeCompleted
339
354
  );
340
- core.effects.on("checkout:onWalletDataInitialized", onOrderCreated);
341
- core.effects.on(
342
- "wallet:onWalletInitializationStarted",
343
- handleWalletInitializationStarted
355
+ checkoutModule.effectsOn("onWalletDataInitialized", wrappedOnOrderCreated);
356
+ paymentModule.effectsOn(
357
+ "onWalletInitializationStarted",
358
+ wrappedHandleWalletInitializationStarted
344
359
  );
345
- core.effects.on(
346
- "wallet:onWalletInitializationCompleted",
347
- handleWalletInitializationCompleted
360
+ paymentModule.effectsOn(
361
+ "onWalletInitializationCompleted",
362
+ wrappedHandleWalletInitializationCompleted
348
363
  );
349
- core.effects.on(
350
- "wallet:onWalletInitializationFailed",
351
- handleWalletInitializationFailed
364
+ paymentModule.effectsOn(
365
+ "onWalletInitializationFailed",
366
+ wrappedHandleWalletInitializationFailed
352
367
  );
353
368
  return () => {
354
- core.effects.off(
355
- "wallet:onWalletRecommendListUpdated",
356
- handleWalletRecommendListUpdated
369
+ paymentModule.effectsOff(
370
+ "onWalletRecommendListUpdated",
371
+ wrappedHandleWalletRecommendListUpdated
357
372
  );
358
- core.effects.off("checkout:onPaymentStarted", handlePaymentStarted);
359
- core.effects.off("checkout:onPaymentItemAdded", handlePaymentStarted);
360
- core.effects.off(
361
- "wallet:onUserIdentificationCodesUpdated",
362
- handleUserIdentificationCodesUpdated
373
+ checkoutModule.effectsOff("onPaymentStarted", wrappedHandlePaymentStarted);
374
+ checkoutModule.effectsOff("onPaymentItemAdded", wrappedHandlePaymentStarted);
375
+ paymentModule.effectsOff(
376
+ "onUserIdentificationCodesUpdated",
377
+ wrappedHandleUserIdentificationCodesUpdated
363
378
  );
364
- core.effects.off("wallet:onWalletCacheCleared", handleWalletCacheCleared);
365
- core.effects.off(
366
- "wallet:onSearchIdentificationCodeCompleted",
367
- handleSearchIdentificationCodeCompleted
379
+ paymentModule.effectsOff("onWalletCacheCleared", wrappedHandleWalletCacheCleared);
380
+ paymentModule.effectsOff(
381
+ "onSearchIdentificationCodeCompleted",
382
+ wrappedHandleSearchIdentificationCodeCompleted
368
383
  );
369
- core.effects.off("checkout:onWalletDataInitialized", onOrderCreated);
370
- core.effects.off(
371
- "wallet:onWalletInitializationStarted",
372
- handleWalletInitializationStarted
384
+ checkoutModule.effectsOff("onWalletDataInitialized", wrappedOnOrderCreated);
385
+ paymentModule.effectsOff(
386
+ "onWalletInitializationStarted",
387
+ wrappedHandleWalletInitializationStarted
373
388
  );
374
- core.effects.off(
375
- "wallet:onWalletInitializationCompleted",
376
- handleWalletInitializationCompleted
389
+ paymentModule.effectsOff(
390
+ "onWalletInitializationCompleted",
391
+ wrappedHandleWalletInitializationCompleted
377
392
  );
378
- core.effects.off(
379
- "wallet:onWalletInitializationFailed",
380
- handleWalletInitializationFailed
393
+ paymentModule.effectsOff(
394
+ "onWalletInitializationFailed",
395
+ wrappedHandleWalletInitializationFailed
381
396
  );
382
397
  };
383
398
  }, [paymentModule]);
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };