@pisell/private-materials 6.4.55 → 6.4.57

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 (448) 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 -7
  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/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  17. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  18. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  19. package/es/components/booking/components/actionButtons/index.js +15 -7
  20. package/es/components/booking/components/footer/amount.js +1 -1
  21. package/es/components/booking/components/footer/index.js +2 -2
  22. package/es/components/booking/components/footer/utils.js +8 -1
  23. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  24. package/es/components/booking/components/voucher/index.js +23 -19
  25. package/es/components/booking/forms/footer.d.ts +0 -1
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  27. package/es/components/booking/forms/single/index.d.ts +0 -1
  28. package/es/components/booking/info2/cartClientCard/index.js +7 -3
  29. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  30. package/es/components/checkout/PaymentModal.js +34 -28
  31. package/es/components/checkout/hooks/useWalletPass.js +36 -21
  32. package/es/components/eftpos/form/index.d.ts +0 -1
  33. package/es/components/eftpos/hooks.d.ts +0 -1
  34. package/es/components/eftpos/index.d.ts +0 -1
  35. package/es/components/eftpos/pos.d.ts +0 -1
  36. package/es/components/eftposPay/amount.d.ts +0 -1
  37. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  38. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  39. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  40. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  41. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  42. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  43. package/es/components/eftposPay/hooks.d.ts +1 -1
  44. package/es/components/eftposPay/pay.d.ts +0 -1
  45. package/es/components/eftposPay/store/index.d.ts +2 -2
  46. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  51. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  52. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  53. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  55. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  56. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  57. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  58. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  59. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  60. package/es/components/list/List.js +957 -0
  61. package/es/components/list/List.less +2 -0
  62. package/es/components/list/ResponsiveWrapper.js +130 -0
  63. package/es/components/list/TestResponsiveWrapper.js +816 -0
  64. package/es/components/list/TestResponsiveWrapper.less +968 -0
  65. package/es/components/list/components/EmptyState/EmptyState.js +75 -0
  66. package/es/components/list/components/EmptyState/EmptyState.less +121 -0
  67. package/es/components/list/components/EmptyState/index.js +1 -0
  68. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
  69. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  70. package/es/components/list/components/ListItemSkeleton/index.js +2 -0
  71. package/es/components/list/components/Pagination/Pagination.js +240 -0
  72. package/es/components/list/components/Pagination/Pagination.less +439 -0
  73. package/es/components/list/components/Pagination/index.js +1 -0
  74. package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
  75. package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  76. package/es/components/list/components/ScrollLoader/index.js +1 -0
  77. package/es/components/list/components/Tab/Tab.js +43 -0
  78. package/es/components/list/components/Tab/Tab.less +139 -0
  79. package/es/components/list/components/Tab/index.js +1 -0
  80. package/es/components/list/components/Tab/types.js +1 -0
  81. package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
  82. package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  83. package/es/components/list/components/TabSkeleton/index.js +2 -0
  84. package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
  85. package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
  86. package/es/components/list/components/WaterfallList/index.js +1 -0
  87. package/es/components/list/examples/GroupedListExample.js +207 -0
  88. package/es/components/list/hooks/index.js +3 -0
  89. package/es/components/list/hooks/useDevice.js +102 -0
  90. package/es/components/list/hooks/useListState.js +176 -0
  91. package/es/components/list/hooks/useWaterfall.js +161 -0
  92. package/es/components/list/index.js +7 -0
  93. package/es/components/list/locales.js +107 -0
  94. package/es/components/list/styles/base.less +39 -0
  95. package/es/components/list/styles/content.less +416 -0
  96. package/es/components/list/styles/floatButton.less +107 -0
  97. package/es/components/list/styles/footer.less +49 -0
  98. package/es/components/list/styles/header.less +69 -0
  99. package/es/components/list/styles/responsive.less +166 -0
  100. package/es/components/list/types.js +1 -0
  101. package/es/components/list/utils/getText.js +150 -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/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  105. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  106. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  107. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  108. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  109. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  110. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  111. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  112. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  113. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  114. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  115. package/es/components/schedules/products/index.d.ts +0 -1
  116. package/es/components/schedules/resources/index.d.ts +0 -1
  117. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  118. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  119. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  120. package/es/components/schedules/schedules/index.d.ts +0 -1
  121. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  122. package/es/components/shoppingCart/index.d.ts +0 -1
  123. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
  124. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
  125. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  126. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
  127. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
  128. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  129. package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
  130. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
  131. package/es/components/ticketBooking/components/menuBar/index.js +40 -17
  132. package/es/components/ticketBooking/components/menuBar/index.less +27 -1
  133. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
  134. package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
  135. package/es/components/ticketBooking/components/timeBar/index.less +1 -0
  136. package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
  137. package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
  138. package/es/components/ticketBooking/context/index.js +2 -0
  139. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
  140. package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
  141. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
  142. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
  143. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
  144. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
  145. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
  146. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
  147. package/es/components/ticketBooking/index.d.ts +6 -0
  148. package/es/components/ticketBooking/index.js +86 -11
  149. package/es/components/ticketBooking/utils/index.js +50 -1
  150. package/es/components/ticketBooking/utils/productCache.js +184 -0
  151. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  152. package/es/index.js +3 -1
  153. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
  154. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  155. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
  156. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  157. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
  158. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  159. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
  160. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  161. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
  162. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  163. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
  164. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  165. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
  166. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  167. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
  168. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  169. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
  170. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  171. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
  172. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -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.js +39 -0
  176. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  177. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
  178. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  179. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
  180. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  181. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
  182. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  183. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
  186. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  187. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
  188. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  189. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
  190. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  191. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
  192. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  193. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
  194. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  195. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
  196. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  197. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
  198. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  199. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
  200. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  201. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
  202. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  203. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
  204. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  205. package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
  206. package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
  207. package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
  208. package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
  209. package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
  210. package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
  211. package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
  212. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  213. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  214. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  215. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  216. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  217. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  218. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  219. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  220. package/lib/components/booking/components/actionButtons/index.js +22 -15
  221. package/lib/components/booking/components/footer/amount.js +1 -1
  222. package/lib/components/booking/components/footer/index.js +2 -2
  223. package/lib/components/booking/components/footer/utils.js +8 -1
  224. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  225. package/lib/components/booking/components/voucher/index.js +33 -40
  226. package/lib/components/booking/forms/footer.d.ts +0 -1
  227. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  228. package/lib/components/booking/forms/single/index.d.ts +0 -1
  229. package/lib/components/booking/info2/cartClientCard/index.js +7 -3
  230. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  231. package/lib/components/checkout/PaymentModal.js +20 -16
  232. package/lib/components/checkout/hooks/useWalletPass.js +57 -45
  233. package/lib/components/eftpos/form/index.d.ts +0 -1
  234. package/lib/components/eftpos/hooks.d.ts +0 -1
  235. package/lib/components/eftpos/index.d.ts +0 -1
  236. package/lib/components/eftpos/pos.d.ts +0 -1
  237. package/lib/components/eftposPay/amount.d.ts +0 -1
  238. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  239. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  240. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  241. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  242. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  243. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  244. package/lib/components/eftposPay/hooks.d.ts +1 -1
  245. package/lib/components/eftposPay/pay.d.ts +0 -1
  246. package/lib/components/eftposPay/store/index.d.ts +2 -2
  247. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  248. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  249. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  250. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  251. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  252. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  253. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  254. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  255. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  256. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  257. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  258. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  259. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  260. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  261. package/lib/components/list/List.js +771 -0
  262. package/lib/components/list/List.less +2 -0
  263. package/lib/components/list/ResponsiveWrapper.js +145 -0
  264. package/lib/components/list/TestResponsiveWrapper.js +493 -0
  265. package/lib/components/list/TestResponsiveWrapper.less +968 -0
  266. package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
  267. package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
  268. package/lib/components/list/components/EmptyState/index.js +35 -0
  269. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
  270. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
  271. package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
  272. package/lib/components/list/components/Pagination/Pagination.js +205 -0
  273. package/lib/components/list/components/Pagination/Pagination.less +439 -0
  274. package/lib/components/list/components/Pagination/index.js +35 -0
  275. package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
  276. package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
  277. package/lib/components/list/components/ScrollLoader/index.js +35 -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.js +35 -0
  281. package/lib/components/list/components/Tab/types.js +17 -0
  282. package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
  283. package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
  284. package/lib/components/list/components/TabSkeleton/index.js +41 -0
  285. package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
  286. package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
  287. package/lib/components/list/components/WaterfallList/index.js +35 -0
  288. package/lib/components/list/examples/GroupedListExample.js +210 -0
  289. package/lib/components/list/hooks/index.js +47 -0
  290. package/lib/components/list/hooks/useDevice.js +96 -0
  291. package/lib/components/list/hooks/useListState.js +149 -0
  292. package/lib/components/list/hooks/useWaterfall.js +124 -0
  293. package/lib/components/list/index.js +60 -0
  294. package/lib/components/list/locales.js +113 -0
  295. package/lib/components/list/styles/base.less +39 -0
  296. package/lib/components/list/styles/content.less +416 -0
  297. package/lib/components/list/styles/floatButton.less +107 -0
  298. package/lib/components/list/styles/footer.less +49 -0
  299. package/lib/components/list/styles/header.less +69 -0
  300. package/lib/components/list/styles/responsive.less +166 -0
  301. package/lib/components/list/types.js +17 -0
  302. package/lib/components/list/utils/getText.js +95 -0
  303. package/lib/components/list/utils/index.js +43 -0
  304. package/lib/components/pay/toB/store/hooks.js +16 -8
  305. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  306. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  307. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  308. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  309. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  310. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  311. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  312. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  313. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  314. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  315. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  316. package/lib/components/schedules/products/index.d.ts +0 -1
  317. package/lib/components/schedules/resources/index.d.ts +0 -1
  318. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  319. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  320. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  321. package/lib/components/schedules/schedules/index.d.ts +0 -1
  322. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  323. package/lib/components/shoppingCart/index.d.ts +0 -1
  324. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
  325. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
  326. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
  327. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
  328. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
  329. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
  330. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +45 -11
  331. package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
  332. package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
  333. package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
  334. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
  335. package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
  336. package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
  337. package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
  338. package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
  339. package/lib/components/ticketBooking/context/index.js +44 -0
  340. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
  341. package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
  342. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
  343. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
  344. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
  345. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
  346. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
  347. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
  348. package/lib/components/ticketBooking/index.d.ts +6 -0
  349. package/lib/components/ticketBooking/index.js +64 -8
  350. package/lib/components/ticketBooking/utils/index.js +70 -2
  351. package/lib/components/ticketBooking/utils/productCache.js +144 -0
  352. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  353. package/lib/index.js +6 -0
  354. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
  355. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
  356. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
  357. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
  358. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
  359. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
  360. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
  361. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
  362. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
  363. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
  364. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
  365. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
  366. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
  367. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
  368. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
  369. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
  370. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
  371. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
  372. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
  373. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
  374. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
  375. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
  376. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
  377. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
  378. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
  379. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
  380. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
  381. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
  382. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
  383. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
  384. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
  385. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
  386. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
  387. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
  388. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
  389. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
  390. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
  391. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
  392. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
  393. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
  394. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
  395. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
  396. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
  397. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
  398. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
  399. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
  400. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
  401. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
  402. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
  403. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
  404. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
  405. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
  406. package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
  407. package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
  408. package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
  409. package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
  410. package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
  411. package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
  412. package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
  413. package/lowcode/sku-card/meta.ts +1812 -0
  414. package/lowcode/sku-card/snippets.ts +372 -0
  415. package/lowcode/sku-list/meta.ts +410 -0
  416. package/package.json +1 -1
  417. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  418. package/es/components/booking/components/footer/index.d.ts +0 -11
  419. package/es/components/booking/components/voucher/index.d.ts +0 -3
  420. package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
  421. package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
  422. package/es/components/pay/toB/store/hooks.d.ts +0 -15
  423. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  424. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  425. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  426. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  427. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  428. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
  429. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
  430. package/es/components/ticketBooking/utils/index.d.ts +0 -62
  431. package/es/index.d.ts +0 -63
  432. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
  433. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  434. package/lib/components/booking/components/footer/index.d.ts +0 -11
  435. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  436. package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
  437. package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
  438. package/lib/components/pay/toB/store/hooks.d.ts +0 -15
  439. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  440. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  441. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  442. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  443. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  444. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
  445. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
  446. package/lib/components/ticketBooking/utils/index.d.ts +0 -62
  447. package/lib/index.d.ts +0 -63
  448. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
@@ -60,7 +60,7 @@ var import_materials = require("@pisell/materials");
60
60
  var import_useCustomer = require("../../../ticketBooking/hooks/pisellos/useCustomer");
61
61
  var import_ahooks = require("ahooks");
62
62
  var import_lodash = require("lodash");
63
- var import_hooks = require("../../../appointmentBooking/hooks");
63
+ var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
64
64
  var Footer = (props) => {
65
65
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
66
66
  const { state, buttons, dispatch, source } = props;
@@ -1252,7 +1252,7 @@ var Footer = (props) => {
1252
1252
  const { selectCustomer } = (0, import_useCustomer.useCustomer)({
1253
1253
  changeCustomerToGlobalState
1254
1254
  });
1255
- const shopDiscount = (0, import_hooks.useShopDiscount)();
1255
+ const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
1256
1256
  const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
1257
1257
  const handleClearAllAndReset = () => {
1258
1258
  var _a2;
@@ -49,6 +49,7 @@ var import_utils5 = require("@pisell/utils");
49
49
  var import_materials = require("@pisell/materials");
50
50
  var import_utils6 = require("../../../../plus/clientName/utils");
51
51
  var import_lodash = require("lodash");
52
+ var import_decimal = __toESM(require("decimal.js"));
52
53
  var formatNote = (data) => {
53
54
  var _a;
54
55
  return ((_a = data.notes) == null ? void 0 : _a.orderNote) || "";
@@ -101,6 +102,10 @@ var formatProductBundle = (bundle) => {
101
102
  } catch (error) {
102
103
  }
103
104
  return bundle.map((d) => {
105
+ const option = formatProductOption(d.option);
106
+ const option_price = option.reduce((temp, item) => {
107
+ return temp + Number(item.num) * item.custom_add_price;
108
+ }, 0);
104
109
  return {
105
110
  "bundle_group_id": d.group_id,
106
111
  "bundle_id": d.id,
@@ -113,7 +118,9 @@ var formatProductBundle = (bundle) => {
113
118
  // checkout 2.0 新增
114
119
  "price_type": d == null ? void 0 : d.price_type,
115
120
  // checkout 2.0 新增
116
- "option": formatProductOption(d.option)
121
+ "custom_price": new import_decimal.default(d == null ? void 0 : d.price).sub(option_price).toNumber().toFixed(2),
122
+ "custom_price_type": d == null ? void 0 : d.price_type,
123
+ "option": option
117
124
  };
118
125
  });
119
126
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -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
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FooterProps {
3
2
  state: any;
4
3
  reload: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 表单选择器
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -64,6 +64,7 @@ var import_utils2 = require("./utils");
64
64
  var import_usePaymentLogger = __toESM(require("./hooks/usePaymentLogger"));
65
65
  var import_antd = require("antd");
66
66
  var import_priceKeyboard = require("../../pro/priceKeyboard");
67
+ var import_pisellos = require("../ticketBooking/hooks/pisellos");
67
68
  var CheckoutHooks = {
68
69
  OnStateAmountChanged: "checkout:onStateAmountChanged",
69
70
  OnBalanceDueAmountChanged: "checkout:onBalanceDueAmountChanged",
@@ -104,6 +105,7 @@ var PaymentContent = (0, import_react.forwardRef)(
104
105
  const utils = context.appHelper.utils || {};
105
106
  const { pisellos, getData, pisellosAllModule, interaction } = utils;
106
107
  const Toast = (0, import_materials.useToast)();
108
+ const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
107
109
  const checkoutRef = (0, import_react.useRef)(null);
108
110
  const savePayLaterHandlerRef = (0, import_react.useRef)(null);
109
111
  const [customAmount, setCustomAmount] = (0, import_react.useState)("");
@@ -191,7 +193,7 @@ var PaymentContent = (0, import_react.forwardRef)(
191
193
  return surcharge;
192
194
  };
193
195
  const onPaymentOptionClick = async (method) => {
194
- var _a2, _b2, _c2, _d;
196
+ var _a2, _b2, _c2, _d, _e;
195
197
  const { id, code, name, type } = method || {};
196
198
  const finalAmount = method.totalAmount ?? customAmount;
197
199
  const eftposCodes = [
@@ -211,6 +213,7 @@ var PaymentContent = (0, import_react.forwardRef)(
211
213
  let data;
212
214
  const isSynced = await checkoutModule.isCurrentOrderSynced();
213
215
  if (!isSynced) {
216
+ (_a2 = Toast == null ? void 0 : Toast.loading) == null ? void 0 : _a2.call(Toast);
214
217
  data = await checkoutModule.manualSyncOrderAsync();
215
218
  } else {
216
219
  const orderId = await checkoutModule.getCurrentOrderId();
@@ -218,7 +221,7 @@ var PaymentContent = (0, import_react.forwardRef)(
218
221
  orderId
219
222
  };
220
223
  }
221
- (_a2 = paymentMethodsRef.current) == null ? void 0 : _a2.onPay(payType, {
224
+ (_b2 = paymentMethodsRef.current) == null ? void 0 : _b2.onPay(payType, {
222
225
  source: "normal",
223
226
  data: {
224
227
  payMethod: { id, code, name, type },
@@ -280,13 +283,13 @@ var PaymentContent = (0, import_react.forwardRef)(
280
283
  percentage: (method == null ? void 0 : method.percentage) || "0"
281
284
  };
282
285
  }
283
- if (method.type === "custom" && ((_b2 = method.metadata) == null ? void 0 : _b2.order_open_cash_drawer)) {
286
+ if (method.type === "custom" && ((_c2 = method.metadata) == null ? void 0 : _c2.order_open_cash_drawer)) {
284
287
  logger == null ? void 0 : logger.addLog({
285
288
  type: "info",
286
289
  title: "open_till",
287
290
  metadata: {}
288
291
  });
289
- (_d = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.postMessageToApp) == null ? void 0 : _d.call(_c2, {
292
+ (_e = (_d = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _d.postMessageToApp) == null ? void 0 : _e.call(_d, {
290
293
  module: "till",
291
294
  key: "open_till",
292
295
  data: {
@@ -377,7 +380,7 @@ var PaymentContent = (0, import_react.forwardRef)(
377
380
  if (core.effects && typeof core.effects.on === "function") {
378
381
  const unsubscribe = core.effects.on(
379
382
  CheckoutHooks.OnStateAmountChanged,
380
- async (data) => {
383
+ executeIfActive(async (data) => {
381
384
  var _a2, _b2;
382
385
  console.log(
383
386
  `Amount changed from ${data.oldAmount} to ${data.newAmount}`
@@ -403,26 +406,26 @@ var PaymentContent = (0, import_react.forwardRef)(
403
406
  setCustomAmount(data.newAmount);
404
407
  const items = await checkoutModule.getCurrentOrderPaymentItemsAsync();
405
408
  setPaymentItems(items);
406
- }
409
+ })
407
410
  );
408
411
  const amountChangedUnsubscribe = core.effects.on(
409
412
  CheckoutHooks.OnBalanceDueAmountChanged,
410
- (data) => {
413
+ executeIfActive((data) => {
411
414
  setBalanceDueAmount(data.newAmount);
412
415
  setBalanceDueTotalAmount(data.totalAmount || "0");
413
- }
416
+ })
414
417
  );
415
418
  const orderSubmitStartUnsubscribe = core.effects.on(
416
419
  CheckoutHooks.OnOrderSubmitStart,
417
- () => {
420
+ executeIfActive(() => {
418
421
  var _a2;
419
422
  setSyncingLock(true);
420
423
  (_a2 = Toast == null ? void 0 : Toast.loading) == null ? void 0 : _a2.call(Toast);
421
- }
424
+ })
422
425
  );
423
426
  const orderSubmitEndUnsubscribe = core.effects.on(
424
427
  CheckoutHooks.OnOrderSubmitEnd,
425
- (res) => {
428
+ executeIfActive((res) => {
426
429
  var _a2, _b2;
427
430
  setSyncingLock(false);
428
431
  if (res.success) {
@@ -437,11 +440,11 @@ var PaymentContent = (0, import_react.forwardRef)(
437
440
  );
438
441
  }
439
442
  }
440
- }
443
+ })
441
444
  );
442
445
  const orderPaymentAddedUnsubscribe = core.effects.on(
443
446
  CheckoutHooks.OnOrderPaymentAdded,
444
- async (data) => {
447
+ executeIfActive(async (data) => {
445
448
  var _a2, _b2;
446
449
  console.log("orderPaymentAddedUnsubscribe>>>>", data);
447
450
  const orderInfo2 = checkoutModule.getCurrentOrderInfo();
@@ -504,7 +507,7 @@ var PaymentContent = (0, import_react.forwardRef)(
504
507
  }
505
508
  });
506
509
  }
507
- }
510
+ })
508
511
  );
509
512
  return () => {
510
513
  if (unsubscribe && typeof unsubscribe === "function") {
@@ -1060,6 +1063,7 @@ var PaymentModal = ({
1060
1063
  const [windowHeight, setWindowHeight] = (0, import_react.useState)(0);
1061
1064
  const [showRetryModal, setShowRetryModal] = (0, import_react.useState)(false);
1062
1065
  const [currentEditOrderId, setCurrentEditOrderId] = (0, import_react.useState)(editOrderId || 0);
1066
+ const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
1063
1067
  const Toast = (0, import_materials.useToast)();
1064
1068
  const handleRetry = async () => {
1065
1069
  const checkoutModule = pisellos == null ? void 0 : pisellos.getModule("checkout");
@@ -1462,7 +1466,7 @@ var PaymentModal = ({
1462
1466
  }
1463
1467
  unsubscribeRef.current = checkout.core.effects.on(
1464
1468
  "checkout:onOrderSynced",
1465
- async (data2) => {
1469
+ executeIfActive(async (data2) => {
1466
1470
  var _a3, _b3, _c3, _d3, _e2;
1467
1471
  const currentOrderId = checkout.getCurrentOrderId();
1468
1472
  setCurrentEditOrderId(currentOrderId);
@@ -1568,7 +1572,7 @@ var PaymentModal = ({
1568
1572
  } else {
1569
1573
  handlePaymentComplete(data2);
1570
1574
  }
1571
- }
1575
+ })
1572
1576
  );
1573
1577
  } else if (isLocalOrderCreated.current) {
1574
1578
  console.log(
@@ -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);
@@ -325,62 +328,71 @@ var useWalletPass = (props) => {
325
328
  (0, import_react.useEffect)(() => {
326
329
  if (!paymentModule) return;
327
330
  const core = pisellos;
328
- core.effects.on(
329
- "wallet:onWalletRecommendListUpdated",
330
- 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
331
343
  );
332
- core.effects.on("checkout:onPaymentStarted", handlePaymentStarted);
333
- core.effects.on("checkout:onPaymentItemAdded", handlePaymentStarted);
334
- core.effects.on(
335
- "wallet:onUserIdentificationCodesUpdated",
336
- handleUserIdentificationCodesUpdated
344
+ checkoutModule.effectsOn("onPaymentStarted", wrappedHandlePaymentStarted);
345
+ checkoutModule.effectsOn("onPaymentItemAdded", wrappedHandlePaymentStarted);
346
+ paymentModule.effectsOn(
347
+ "onUserIdentificationCodesUpdated",
348
+ wrappedHandleUserIdentificationCodesUpdated
337
349
  );
338
- core.effects.on("wallet:onWalletCacheCleared", handleWalletCacheCleared);
339
- core.effects.on(
340
- "wallet:onSearchIdentificationCodeCompleted",
341
- handleSearchIdentificationCodeCompleted
350
+ paymentModule.effectsOn("onWalletCacheCleared", wrappedHandleWalletCacheCleared);
351
+ paymentModule.effectsOn(
352
+ "onSearchIdentificationCodeCompleted",
353
+ wrappedHandleSearchIdentificationCodeCompleted
342
354
  );
343
- core.effects.on("checkout:onWalletDataInitialized", onOrderCreated);
344
- core.effects.on(
345
- "wallet:onWalletInitializationStarted",
346
- handleWalletInitializationStarted
355
+ checkoutModule.effectsOn("onWalletDataInitialized", wrappedOnOrderCreated);
356
+ paymentModule.effectsOn(
357
+ "onWalletInitializationStarted",
358
+ wrappedHandleWalletInitializationStarted
347
359
  );
348
- core.effects.on(
349
- "wallet:onWalletInitializationCompleted",
350
- handleWalletInitializationCompleted
360
+ paymentModule.effectsOn(
361
+ "onWalletInitializationCompleted",
362
+ wrappedHandleWalletInitializationCompleted
351
363
  );
352
- core.effects.on(
353
- "wallet:onWalletInitializationFailed",
354
- handleWalletInitializationFailed
364
+ paymentModule.effectsOn(
365
+ "onWalletInitializationFailed",
366
+ wrappedHandleWalletInitializationFailed
355
367
  );
356
368
  return () => {
357
- core.effects.off(
358
- "wallet:onWalletRecommendListUpdated",
359
- handleWalletRecommendListUpdated
369
+ paymentModule.effectsOff(
370
+ "onWalletRecommendListUpdated",
371
+ wrappedHandleWalletRecommendListUpdated
360
372
  );
361
- core.effects.off("checkout:onPaymentStarted", handlePaymentStarted);
362
- core.effects.off("checkout:onPaymentItemAdded", handlePaymentStarted);
363
- core.effects.off(
364
- "wallet:onUserIdentificationCodesUpdated",
365
- handleUserIdentificationCodesUpdated
373
+ checkoutModule.effectsOff("onPaymentStarted", wrappedHandlePaymentStarted);
374
+ checkoutModule.effectsOff("onPaymentItemAdded", wrappedHandlePaymentStarted);
375
+ paymentModule.effectsOff(
376
+ "onUserIdentificationCodesUpdated",
377
+ wrappedHandleUserIdentificationCodesUpdated
366
378
  );
367
- core.effects.off("wallet:onWalletCacheCleared", handleWalletCacheCleared);
368
- core.effects.off(
369
- "wallet:onSearchIdentificationCodeCompleted",
370
- handleSearchIdentificationCodeCompleted
379
+ paymentModule.effectsOff("onWalletCacheCleared", wrappedHandleWalletCacheCleared);
380
+ paymentModule.effectsOff(
381
+ "onSearchIdentificationCodeCompleted",
382
+ wrappedHandleSearchIdentificationCodeCompleted
371
383
  );
372
- core.effects.off("checkout:onWalletDataInitialized", onOrderCreated);
373
- core.effects.off(
374
- "wallet:onWalletInitializationStarted",
375
- handleWalletInitializationStarted
384
+ checkoutModule.effectsOff("onWalletDataInitialized", wrappedOnOrderCreated);
385
+ paymentModule.effectsOff(
386
+ "onWalletInitializationStarted",
387
+ wrappedHandleWalletInitializationStarted
376
388
  );
377
- core.effects.off(
378
- "wallet:onWalletInitializationCompleted",
379
- handleWalletInitializationCompleted
389
+ paymentModule.effectsOff(
390
+ "onWalletInitializationCompleted",
391
+ wrappedHandleWalletInitializationCompleted
380
392
  );
381
- core.effects.off(
382
- "wallet:onWalletInitializationFailed",
383
- handleWalletInitializationFailed
393
+ paymentModule.effectsOff(
394
+ "onWalletInitializationFailed",
395
+ wrappedHandleWalletInitializationFailed
384
396
  );
385
397
  };
386
398
  }, [paymentModule]);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -297,8 +297,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "pay" | "amount" | "deviceList" | undefined;
300
+ eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;