@pisell/private-materials 6.4.56 → 6.4.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -12
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/booking/components/actionButtons/index.js +15 -7
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/footer/utils.js +7 -2
- package/es/components/booking/components/voucher/index.js +23 -19
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/index.js +7 -3
- package/es/components/checkout/PaymentModal.js +17 -12
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +36 -21
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/list/List.d.ts +5 -0
- package/es/components/list/List.js +957 -0
- package/es/components/list/List.less +2 -0
- package/es/components/list/ResponsiveWrapper.d.ts +16 -0
- package/es/components/list/ResponsiveWrapper.js +130 -0
- package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/es/components/list/TestResponsiveWrapper.js +816 -0
- package/es/components/list/TestResponsiveWrapper.less +968 -0
- package/es/components/list/components/EmptyState/EmptyState.d.ts +20 -0
- package/es/components/list/components/EmptyState/EmptyState.js +75 -0
- package/es/components/list/components/EmptyState/EmptyState.less +121 -0
- package/es/components/list/components/EmptyState/index.d.ts +2 -0
- package/es/components/list/components/EmptyState/index.js +1 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/es/components/list/components/ListItemSkeleton/index.js +2 -0
- package/es/components/list/components/Pagination/Pagination.d.ts +30 -0
- package/es/components/list/components/Pagination/Pagination.js +240 -0
- package/es/components/list/components/Pagination/Pagination.less +439 -0
- package/es/components/list/components/Pagination/index.d.ts +1 -0
- package/es/components/list/components/Pagination/index.js +1 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/es/components/list/components/ScrollLoader/index.js +1 -0
- package/es/components/list/components/Tab/Tab.d.ts +5 -0
- package/es/components/list/components/Tab/Tab.js +43 -0
- package/es/components/list/components/Tab/Tab.less +139 -0
- package/es/components/list/components/Tab/index.d.ts +2 -0
- package/es/components/list/components/Tab/index.js +1 -0
- package/es/components/list/components/Tab/types.d.ts +14 -0
- package/es/components/list/components/Tab/types.js +1 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/es/components/list/components/TabSkeleton/index.js +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
- package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/es/components/list/components/WaterfallList/index.d.ts +2 -0
- package/es/components/list/components/WaterfallList/index.js +1 -0
- package/es/components/list/examples/GroupedListExample.d.ts +3 -0
- package/es/components/list/examples/GroupedListExample.js +207 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/list/hooks/index.js +3 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useDevice.js +102 -0
- package/es/components/list/hooks/useListState.d.ts +43 -0
- package/es/components/list/hooks/useListState.js +176 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/hooks/useWaterfall.js +161 -0
- package/es/components/list/index.d.ts +10 -0
- package/es/components/list/index.js +7 -0
- package/es/components/list/locales.d.ts +66 -0
- package/es/components/list/locales.js +107 -0
- package/es/components/list/styles/base.less +39 -0
- package/es/components/list/styles/content.less +416 -0
- package/es/components/list/styles/floatButton.less +107 -0
- package/es/components/list/styles/footer.less +49 -0
- package/es/components/list/styles/header.less +69 -0
- package/es/components/list/styles/responsive.less +166 -0
- package/es/components/list/types.d.ts +177 -0
- package/es/components/list/types.js +1 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/getText.js +150 -0
- package/es/components/list/utils/index.d.ts +4 -0
- package/es/components/list/utils/index.js +5 -0
- package/es/components/pay/toB/store/hooks.js +19 -5
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- package/es/components/ticketBooking/components/menuBar/index.d.ts +5 -1
- package/es/components/ticketBooking/components/menuBar/index.js +40 -17
- package/es/components/ticketBooking/components/menuBar/index.less +27 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
- package/es/components/ticketBooking/components/timeBar/index.less +1 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/context/index.js +2 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
- package/es/components/ticketBooking/index.d.ts +6 -0
- package/es/components/ticketBooking/index.js +86 -11
- package/es/components/ticketBooking/utils/index.d.ts +30 -2
- package/es/components/ticketBooking/utils/index.js +50 -1
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/ticketBooking/utils/productCache.js +184 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/lib/components/booking/components/actionButtons/index.js +22 -15
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/footer/utils.js +7 -2
- package/lib/components/booking/components/voucher/index.js +33 -40
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/index.js +7 -3
- package/lib/components/checkout/PaymentModal.js +15 -12
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +57 -45
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/list/List.d.ts +5 -0
- package/lib/components/list/List.js +771 -0
- package/lib/components/list/List.less +2 -0
- package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
- package/lib/components/list/ResponsiveWrapper.js +145 -0
- package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/lib/components/list/TestResponsiveWrapper.js +493 -0
- package/lib/components/list/TestResponsiveWrapper.less +968 -0
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +20 -0
- package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
- package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
- package/lib/components/list/components/EmptyState/index.d.ts +2 -0
- package/lib/components/list/components/EmptyState/index.js +35 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
- package/lib/components/list/components/Pagination/Pagination.d.ts +30 -0
- package/lib/components/list/components/Pagination/Pagination.js +205 -0
- package/lib/components/list/components/Pagination/Pagination.less +439 -0
- package/lib/components/list/components/Pagination/index.d.ts +1 -0
- package/lib/components/list/components/Pagination/index.js +35 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/lib/components/list/components/ScrollLoader/index.js +35 -0
- package/lib/components/list/components/Tab/Tab.d.ts +5 -0
- package/lib/components/list/components/Tab/Tab.js +72 -0
- package/lib/components/list/components/Tab/Tab.less +139 -0
- package/lib/components/list/components/Tab/index.d.ts +2 -0
- package/lib/components/list/components/Tab/index.js +35 -0
- package/lib/components/list/components/Tab/types.d.ts +14 -0
- package/lib/components/list/components/Tab/types.js +17 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/TabSkeleton/index.js +41 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
- package/lib/components/list/components/WaterfallList/index.js +35 -0
- package/lib/components/list/examples/GroupedListExample.d.ts +3 -0
- package/lib/components/list/examples/GroupedListExample.js +210 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/list/hooks/index.js +47 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useDevice.js +96 -0
- package/lib/components/list/hooks/useListState.d.ts +43 -0
- package/lib/components/list/hooks/useListState.js +149 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/hooks/useWaterfall.js +124 -0
- package/lib/components/list/index.d.ts +10 -0
- package/lib/components/list/index.js +60 -0
- package/lib/components/list/locales.d.ts +66 -0
- package/lib/components/list/locales.js +113 -0
- package/lib/components/list/styles/base.less +39 -0
- package/lib/components/list/styles/content.less +416 -0
- package/lib/components/list/styles/floatButton.less +107 -0
- package/lib/components/list/styles/footer.less +49 -0
- package/lib/components/list/styles/header.less +69 -0
- package/lib/components/list/styles/responsive.less +166 -0
- package/lib/components/list/types.d.ts +177 -0
- package/lib/components/list/types.js +17 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/getText.js +95 -0
- package/lib/components/list/utils/index.d.ts +4 -0
- package/lib/components/list/utils/index.js +43 -0
- package/lib/components/pay/toB/store/hooks.js +16 -8
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +5 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
- package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
- package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/context/index.js +44 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
- package/lib/components/ticketBooking/index.d.ts +6 -0
- package/lib/components/ticketBooking/index.js +64 -8
- package/lib/components/ticketBooking/utils/index.d.ts +30 -2
- package/lib/components/ticketBooking/utils/index.js +70 -2
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/ticketBooking/utils/productCache.js +144 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +2 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lowcode/sku-card/meta.ts +1812 -0
- package/lowcode/sku-card/snippets.ts +372 -0
- package/lowcode/sku-list/meta.ts +410 -0
- package/package.json +12 -12
|
@@ -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
|
|
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 =
|
|
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
|
-
|
|
118
|
+
const wrappedOnScanWallPassCode = executeIfActive(onScanWallPassCode);
|
|
119
|
+
window.addEventListener("onScanWallPassCode", wrappedOnScanWallPassCode);
|
|
127
120
|
return () => {
|
|
128
|
-
window.removeEventListener("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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
172
|
+
if (shopDiscount) {
|
|
173
|
+
const wrappedHandler = executeIfActive(fn);
|
|
174
|
+
shopDiscount == null ? void 0 : shopDiscount.effectsOn("onSelectedDiscountListChange", wrappedHandler);
|
|
182
175
|
return () => {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
209
|
+
shopDiscount.effectsOn("onLoadPrepareCalcResult", wrappedFn);
|
|
210
|
+
shopDiscount.effectsOn(
|
|
211
|
+
"onDiscountListChange",
|
|
212
|
+
wrappedOnDiscountListChangeHandler
|
|
218
213
|
);
|
|
219
214
|
return () => {
|
|
220
215
|
shopDiscount.clear();
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
216
|
+
shopDiscount.effectsOff(
|
|
217
|
+
"onScanCustomerChange",
|
|
218
|
+
wrappedOnScanCustomerChangeHandler
|
|
224
219
|
);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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:
|
|
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
|
|
325
|
-
const detail = shopDiscount2.setDiscountSelected({
|
|
318
|
+
const detail = shopDiscount.setDiscountSelected({
|
|
326
319
|
discountId: val.id,
|
|
327
320
|
isSelected: val.isSelected
|
|
328
321
|
});
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<any>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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)("");
|
|
@@ -378,7 +380,7 @@ var PaymentContent = (0, import_react.forwardRef)(
|
|
|
378
380
|
if (core.effects && typeof core.effects.on === "function") {
|
|
379
381
|
const unsubscribe = core.effects.on(
|
|
380
382
|
CheckoutHooks.OnStateAmountChanged,
|
|
381
|
-
async (data) => {
|
|
383
|
+
executeIfActive(async (data) => {
|
|
382
384
|
var _a2, _b2;
|
|
383
385
|
console.log(
|
|
384
386
|
`Amount changed from ${data.oldAmount} to ${data.newAmount}`
|
|
@@ -404,26 +406,26 @@ var PaymentContent = (0, import_react.forwardRef)(
|
|
|
404
406
|
setCustomAmount(data.newAmount);
|
|
405
407
|
const items = await checkoutModule.getCurrentOrderPaymentItemsAsync();
|
|
406
408
|
setPaymentItems(items);
|
|
407
|
-
}
|
|
409
|
+
})
|
|
408
410
|
);
|
|
409
411
|
const amountChangedUnsubscribe = core.effects.on(
|
|
410
412
|
CheckoutHooks.OnBalanceDueAmountChanged,
|
|
411
|
-
(data) => {
|
|
413
|
+
executeIfActive((data) => {
|
|
412
414
|
setBalanceDueAmount(data.newAmount);
|
|
413
415
|
setBalanceDueTotalAmount(data.totalAmount || "0");
|
|
414
|
-
}
|
|
416
|
+
})
|
|
415
417
|
);
|
|
416
418
|
const orderSubmitStartUnsubscribe = core.effects.on(
|
|
417
419
|
CheckoutHooks.OnOrderSubmitStart,
|
|
418
|
-
() => {
|
|
420
|
+
executeIfActive(() => {
|
|
419
421
|
var _a2;
|
|
420
422
|
setSyncingLock(true);
|
|
421
423
|
(_a2 = Toast == null ? void 0 : Toast.loading) == null ? void 0 : _a2.call(Toast);
|
|
422
|
-
}
|
|
424
|
+
})
|
|
423
425
|
);
|
|
424
426
|
const orderSubmitEndUnsubscribe = core.effects.on(
|
|
425
427
|
CheckoutHooks.OnOrderSubmitEnd,
|
|
426
|
-
(res) => {
|
|
428
|
+
executeIfActive((res) => {
|
|
427
429
|
var _a2, _b2;
|
|
428
430
|
setSyncingLock(false);
|
|
429
431
|
if (res.success) {
|
|
@@ -438,11 +440,11 @@ var PaymentContent = (0, import_react.forwardRef)(
|
|
|
438
440
|
);
|
|
439
441
|
}
|
|
440
442
|
}
|
|
441
|
-
}
|
|
443
|
+
})
|
|
442
444
|
);
|
|
443
445
|
const orderPaymentAddedUnsubscribe = core.effects.on(
|
|
444
446
|
CheckoutHooks.OnOrderPaymentAdded,
|
|
445
|
-
async (data) => {
|
|
447
|
+
executeIfActive(async (data) => {
|
|
446
448
|
var _a2, _b2;
|
|
447
449
|
console.log("orderPaymentAddedUnsubscribe>>>>", data);
|
|
448
450
|
const orderInfo2 = checkoutModule.getCurrentOrderInfo();
|
|
@@ -505,7 +507,7 @@ var PaymentContent = (0, import_react.forwardRef)(
|
|
|
505
507
|
}
|
|
506
508
|
});
|
|
507
509
|
}
|
|
508
|
-
}
|
|
510
|
+
})
|
|
509
511
|
);
|
|
510
512
|
return () => {
|
|
511
513
|
if (unsubscribe && typeof unsubscribe === "function") {
|
|
@@ -1061,6 +1063,7 @@ var PaymentModal = ({
|
|
|
1061
1063
|
const [windowHeight, setWindowHeight] = (0, import_react.useState)(0);
|
|
1062
1064
|
const [showRetryModal, setShowRetryModal] = (0, import_react.useState)(false);
|
|
1063
1065
|
const [currentEditOrderId, setCurrentEditOrderId] = (0, import_react.useState)(editOrderId || 0);
|
|
1066
|
+
const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
|
|
1064
1067
|
const Toast = (0, import_materials.useToast)();
|
|
1065
1068
|
const handleRetry = async () => {
|
|
1066
1069
|
const checkoutModule = pisellos == null ? void 0 : pisellos.getModule("checkout");
|
|
@@ -1463,7 +1466,7 @@ var PaymentModal = ({
|
|
|
1463
1466
|
}
|
|
1464
1467
|
unsubscribeRef.current = checkout.core.effects.on(
|
|
1465
1468
|
"checkout:onOrderSynced",
|
|
1466
|
-
async (data2) => {
|
|
1469
|
+
executeIfActive(async (data2) => {
|
|
1467
1470
|
var _a3, _b3, _c3, _d3, _e2;
|
|
1468
1471
|
const currentOrderId = checkout.getCurrentOrderId();
|
|
1469
1472
|
setCurrentEditOrderId(currentOrderId);
|
|
@@ -1569,7 +1572,7 @@ var PaymentModal = ({
|
|
|
1569
1572
|
} else {
|
|
1570
1573
|
handlePaymentComplete(data2);
|
|
1571
1574
|
}
|
|
1572
|
-
}
|
|
1575
|
+
})
|
|
1573
1576
|
);
|
|
1574
1577
|
} else if (isLocalOrderCreated.current) {
|
|
1575
1578
|
console.log(
|
|
@@ -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 =
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
"
|
|
336
|
-
|
|
344
|
+
checkoutModule.effectsOn("onPaymentStarted", wrappedHandlePaymentStarted);
|
|
345
|
+
checkoutModule.effectsOn("onPaymentItemAdded", wrappedHandlePaymentStarted);
|
|
346
|
+
paymentModule.effectsOn(
|
|
347
|
+
"onUserIdentificationCodesUpdated",
|
|
348
|
+
wrappedHandleUserIdentificationCodesUpdated
|
|
337
349
|
);
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
"
|
|
341
|
-
|
|
350
|
+
paymentModule.effectsOn("onWalletCacheCleared", wrappedHandleWalletCacheCleared);
|
|
351
|
+
paymentModule.effectsOn(
|
|
352
|
+
"onSearchIdentificationCodeCompleted",
|
|
353
|
+
wrappedHandleSearchIdentificationCodeCompleted
|
|
342
354
|
);
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
"
|
|
346
|
-
|
|
355
|
+
checkoutModule.effectsOn("onWalletDataInitialized", wrappedOnOrderCreated);
|
|
356
|
+
paymentModule.effectsOn(
|
|
357
|
+
"onWalletInitializationStarted",
|
|
358
|
+
wrappedHandleWalletInitializationStarted
|
|
347
359
|
);
|
|
348
|
-
|
|
349
|
-
"
|
|
350
|
-
|
|
360
|
+
paymentModule.effectsOn(
|
|
361
|
+
"onWalletInitializationCompleted",
|
|
362
|
+
wrappedHandleWalletInitializationCompleted
|
|
351
363
|
);
|
|
352
|
-
|
|
353
|
-
"
|
|
354
|
-
|
|
364
|
+
paymentModule.effectsOn(
|
|
365
|
+
"onWalletInitializationFailed",
|
|
366
|
+
wrappedHandleWalletInitializationFailed
|
|
355
367
|
);
|
|
356
368
|
return () => {
|
|
357
|
-
|
|
358
|
-
"
|
|
359
|
-
|
|
369
|
+
paymentModule.effectsOff(
|
|
370
|
+
"onWalletRecommendListUpdated",
|
|
371
|
+
wrappedHandleWalletRecommendListUpdated
|
|
360
372
|
);
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
"
|
|
365
|
-
|
|
373
|
+
checkoutModule.effectsOff("onPaymentStarted", wrappedHandlePaymentStarted);
|
|
374
|
+
checkoutModule.effectsOff("onPaymentItemAdded", wrappedHandlePaymentStarted);
|
|
375
|
+
paymentModule.effectsOff(
|
|
376
|
+
"onUserIdentificationCodesUpdated",
|
|
377
|
+
wrappedHandleUserIdentificationCodesUpdated
|
|
366
378
|
);
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
"
|
|
370
|
-
|
|
379
|
+
paymentModule.effectsOff("onWalletCacheCleared", wrappedHandleWalletCacheCleared);
|
|
380
|
+
paymentModule.effectsOff(
|
|
381
|
+
"onSearchIdentificationCodeCompleted",
|
|
382
|
+
wrappedHandleSearchIdentificationCodeCompleted
|
|
371
383
|
);
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
"
|
|
375
|
-
|
|
384
|
+
checkoutModule.effectsOff("onWalletDataInitialized", wrappedOnOrderCreated);
|
|
385
|
+
paymentModule.effectsOff(
|
|
386
|
+
"onWalletInitializationStarted",
|
|
387
|
+
wrappedHandleWalletInitializationStarted
|
|
376
388
|
);
|
|
377
|
-
|
|
378
|
-
"
|
|
379
|
-
|
|
389
|
+
paymentModule.effectsOff(
|
|
390
|
+
"onWalletInitializationCompleted",
|
|
391
|
+
wrappedHandleWalletInitializationCompleted
|
|
380
392
|
);
|
|
381
|
-
|
|
382
|
-
"
|
|
383
|
-
|
|
393
|
+
paymentModule.effectsOff(
|
|
394
|
+
"onWalletInitializationFailed",
|
|
395
|
+
wrappedHandleWalletInitializationFailed
|
|
384
396
|
);
|
|
385
397
|
};
|
|
386
398
|
}, [paymentModule]);
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "success" | "page" | "
|
|
11
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "success" | "page" | "
|
|
14
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -295,15 +295,15 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "
|
|
298
|
+
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
subTitle?: string | undefined;
|
|
306
|
-
type?: "
|
|
306
|
+
type?: "unset" | "step" | undefined;
|
|
307
307
|
render?: boolean | undefined;
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|