@pisell/private-materials 6.4.59 → 6.4.60
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 -7
- 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 +7 -7
- package/es/components/booking/components/actionButtons/index.js +7 -15
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/voucher/index.js +19 -23
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/index.js +3 -7
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +12 -17
- package/es/components/checkout/hooks/useWalletPass.js +21 -36
- 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/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/pay/toB/store/hooks.js +5 -19
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.js +2 -4
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -5
- package/es/components/ticketBooking/components/menuBar/index.js +21 -45
- package/es/components/ticketBooking/components/menuBar/index.less +1 -32
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
- package/es/components/ticketBooking/components/ticketBooking/index.js +23 -66
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.less +0 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -13
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/index.js +1 -2
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +4 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +10 -52
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -7
- package/es/components/ticketBooking/index.d.ts +0 -6
- package/es/components/ticketBooking/index.js +11 -86
- package/es/components/ticketBooking/utils/index.d.ts +2 -30
- package/es/components/ticketBooking/utils/index.js +1 -50
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
- package/es/plus/productSelect/components/pisellPriceText/index.js +5 -7
- package/lib/components/booking/components/actionButtons/index.js +15 -22
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/voucher/index.js +40 -33
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/index.js +3 -7
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +12 -15
- package/lib/components/checkout/hooks/useWalletPass.js +45 -57
- 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/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/pay/toB/store/hooks.js +8 -16
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +2 -3
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -5
- package/lib/components/ticketBooking/components/menuBar/index.js +22 -29
- package/lib/components/ticketBooking/components/menuBar/index.less +1 -32
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +25 -56
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.less +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -5
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.js +1 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +10 -17
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +5 -35
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -6
- package/lib/components/ticketBooking/index.d.ts +0 -6
- package/lib/components/ticketBooking/index.js +8 -64
- package/lib/components/ticketBooking/utils/index.d.ts +2 -30
- package/lib/components/ticketBooking/utils/index.js +2 -70
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
- package/lib/plus/productSelect/components/pisellPriceText/index.js +5 -6
- package/package.json +1 -1
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/List.js +0 -957
- package/es/components/list/List.less +0 -2
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/ResponsiveWrapper.js +0 -130
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/TestResponsiveWrapper.js +0 -816
- package/es/components/list/TestResponsiveWrapper.less +0 -968
- package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/es/components/list/components/EmptyState/EmptyState.js +0 -75
- package/es/components/list/components/EmptyState/EmptyState.less +0 -121
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/EmptyState/index.js +0 -1
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -39
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/index.js +0 -2
- package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/es/components/list/components/Pagination/Pagination.js +0 -240
- package/es/components/list/components/Pagination/Pagination.less +0 -439
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/Pagination/index.js +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +0 -18
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/index.js +0 -1
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/Tab.js +0 -43
- package/es/components/list/components/Tab/Tab.less +0 -139
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/index.js +0 -1
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/Tab/types.js +0 -1
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +0 -28
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/TabSkeleton/index.js +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/WaterfallList.js +0 -191
- package/es/components/list/components/WaterfallList/WaterfallList.less +0 -201
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/index.js +0 -1
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/examples/GroupedListExample.js +0 -207
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/index.js +0 -3
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useDevice.js +0 -102
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useListState.js +0 -176
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/hooks/useWaterfall.js +0 -161
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/index.js +0 -7
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/locales.js +0 -107
- package/es/components/list/styles/base.less +0 -39
- package/es/components/list/styles/content.less +0 -416
- package/es/components/list/styles/floatButton.less +0 -107
- package/es/components/list/styles/footer.less +0 -49
- package/es/components/list/styles/header.less +0 -69
- package/es/components/list/styles/responsive.less +0 -166
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/types.js +0 -1
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/getText.js +0 -150
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/list/utils/index.js +0 -5
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -143
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -273
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -130
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/IsActiveContext.js +0 -37
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.js +0 -37
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/context/index.js +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -50
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -17
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/ticketBooking/utils/productCache.js +0 -184
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -100
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -32
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -239
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -33
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -75
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -39
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -53
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -58
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -85
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -121
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -95
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -47
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -95
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -39
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -20
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -55
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +0 -38
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +0 -41
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +0 -481
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +0 -21
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/List.js +0 -771
- package/lib/components/list/List.less +0 -2
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/ResponsiveWrapper.js +0 -145
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/TestResponsiveWrapper.js +0 -493
- package/lib/components/list/TestResponsiveWrapper.less +0 -968
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/lib/components/list/components/EmptyState/EmptyState.js +0 -75
- package/lib/components/list/components/EmptyState/EmptyState.less +0 -121
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/EmptyState/index.js +0 -35
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -75
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/index.js +0 -41
- package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/lib/components/list/components/Pagination/Pagination.js +0 -205
- package/lib/components/list/components/Pagination/Pagination.less +0 -439
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/Pagination/index.js +0 -35
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +0 -37
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/index.js +0 -35
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/Tab.js +0 -72
- package/lib/components/list/components/Tab/Tab.less +0 -139
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/index.js +0 -35
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/Tab/types.js +0 -17
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +0 -61
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/TabSkeleton/index.js +0 -41
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/WaterfallList.js +0 -178
- package/lib/components/list/components/WaterfallList/WaterfallList.less +0 -201
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/index.js +0 -35
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/examples/GroupedListExample.js +0 -210
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/index.js +0 -47
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useDevice.js +0 -96
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useListState.js +0 -149
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/hooks/useWaterfall.js +0 -124
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/index.js +0 -60
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/locales.js +0 -113
- package/lib/components/list/styles/base.less +0 -39
- package/lib/components/list/styles/content.less +0 -416
- package/lib/components/list/styles/floatButton.less +0 -107
- package/lib/components/list/styles/footer.less +0 -49
- package/lib/components/list/styles/header.less +0 -69
- package/lib/components/list/styles/responsive.less +0 -166
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/types.js +0 -17
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/getText.js +0 -95
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/list/utils/index.js +0 -43
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -165
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -45
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -247
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -100
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/IsActiveContext.js +0 -56
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.js +0 -56
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/context/index.js +0 -44
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -47
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -37
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/ticketBooking/utils/productCache.js +0 -144
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -129
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -52
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -178
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -52
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -63
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -131
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -62
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -78
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -94
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -115
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -139
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -97
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -58
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -56
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -97
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -56
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -58
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -49
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -83
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +0 -68
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +0 -65
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +0 -501
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +0 -37
- package/lowcode/sku-card/meta.ts +0 -1812
- package/lowcode/sku-card/snippets.ts +0 -372
- package/lowcode/sku-list/meta.ts +0 -410
|
@@ -10,12 +10,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import { useMemoizedFn } from 'ahooks';
|
|
12
12
|
import { useBookingTicket } from "./bookingTicket";
|
|
13
|
-
import { useState
|
|
14
|
-
|
|
15
|
-
import { getProductCache, setProductCache } from "../../utils/productCache";
|
|
16
|
-
export var useProducts = function useProducts(notAvailableRef) {
|
|
13
|
+
import { useState } from 'react';
|
|
14
|
+
export var useProducts = function useProducts() {
|
|
17
15
|
var bookingTicket = useBookingTicket();
|
|
18
|
-
var osKey = useOsKey();
|
|
19
16
|
var _useState = useState([]),
|
|
20
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21
18
|
products = _useState2[0],
|
|
@@ -24,63 +21,24 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
24
21
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
25
22
|
loading = _useState4[0],
|
|
26
23
|
setLoading = _useState4[1];
|
|
27
|
-
var isFirstLoadRef = useRef(true);
|
|
28
|
-
var isFirstLoadDataRef = useRef(true);
|
|
29
24
|
var getProducts = useMemoizedFn( /*#__PURE__*/function () {
|
|
30
25
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31
|
-
var
|
|
26
|
+
var products;
|
|
32
27
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33
28
|
while (1) switch (_context.prev = _context.next) {
|
|
34
29
|
case 0:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
cachedProducts = getProductCache(osKey);
|
|
38
|
-
if (cachedProducts) {
|
|
39
|
-
// 先展示缓存数据
|
|
40
|
-
setProducts(cachedProducts);
|
|
41
|
-
setLoading(false);
|
|
42
|
-
}
|
|
43
|
-
isFirstLoadRef.current = false;
|
|
44
|
-
} else {
|
|
45
|
-
setLoading(true);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// 2. 无论是否有缓存,都调用接口获取最新数据
|
|
49
|
-
_context.prev = 1;
|
|
50
|
-
_context.next = 4;
|
|
30
|
+
setLoading(true);
|
|
31
|
+
_context.next = 3;
|
|
51
32
|
return bookingTicket.loadProducts(params);
|
|
52
|
-
case
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// 3. 更新展示数据
|
|
56
|
-
setProducts(freshProducts);
|
|
57
|
-
|
|
58
|
-
// 4. 将新数据缓存到 storage
|
|
59
|
-
if (osKey) {
|
|
60
|
-
setProductCache(osKey, freshProducts);
|
|
61
|
-
console.log('[ProductCache] 已更新缓存');
|
|
62
|
-
}
|
|
63
|
-
_context.next = 16;
|
|
64
|
-
break;
|
|
65
|
-
case 10:
|
|
66
|
-
_context.prev = 10;
|
|
67
|
-
_context.t0 = _context["catch"](1);
|
|
68
|
-
// 只有在第一次加载或之前有数据时才显示 notAvailable
|
|
69
|
-
if ((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.code) === 607100 && (isFirstLoadDataRef.current || products.length > 0)) {
|
|
70
|
-
(_notAvailableRef$curr = notAvailableRef.current) === null || _notAvailableRef$curr === void 0 || _notAvailableRef$curr.open();
|
|
71
|
-
}
|
|
33
|
+
case 3:
|
|
34
|
+
products = _context.sent;
|
|
35
|
+
setProducts(products);
|
|
72
36
|
setLoading(false);
|
|
73
|
-
|
|
74
|
-
isFirstLoadDataRef.current = false;
|
|
75
|
-
case 16:
|
|
76
|
-
_context.prev = 16;
|
|
77
|
-
setLoading(false);
|
|
78
|
-
return _context.finish(16);
|
|
79
|
-
case 19:
|
|
37
|
+
case 6:
|
|
80
38
|
case "end":
|
|
81
39
|
return _context.stop();
|
|
82
40
|
}
|
|
83
|
-
}, _callee
|
|
41
|
+
}, _callee);
|
|
84
42
|
}));
|
|
85
43
|
return function (_x) {
|
|
86
44
|
return _ref.apply(this, arguments);
|
|
@@ -3,16 +3,13 @@ import { locales } from "@pisell/utils";
|
|
|
3
3
|
import { useBookingTicket } from "./bookingTicket";
|
|
4
4
|
import { formatScanCustomer } from "../../utils";
|
|
5
5
|
import { useToast } from '@pisell/materials';
|
|
6
|
-
import { useActiveExecute } from "./useActiveExecute";
|
|
7
6
|
var useScanCustomer = function useScanCustomer() {
|
|
8
7
|
var bookingTicket = useBookingTicket();
|
|
9
8
|
var scanRef = useRef(null);
|
|
10
9
|
var Toast = useToast();
|
|
11
|
-
var _useActiveExecute = useActiveExecute(),
|
|
12
|
-
executeIfActive = _useActiveExecute.executeIfActive;
|
|
13
10
|
var handleScanCustomer = function handleScanCustomer(callback) {
|
|
14
11
|
console.log('handleScanCustomer>>>>>>>', callback);
|
|
15
|
-
scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanCustomerListener(
|
|
12
|
+
scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanCustomerListener(function (data) {
|
|
16
13
|
console.log('scanCustomerListener>>>>>>>', data);
|
|
17
14
|
if (data.status === 'failed') {
|
|
18
15
|
Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
|
|
@@ -20,7 +17,7 @@ var useScanCustomer = function useScanCustomer() {
|
|
|
20
17
|
}
|
|
21
18
|
var customer = formatScanCustomer(data);
|
|
22
19
|
callback(customer);
|
|
23
|
-
})
|
|
20
|
+
});
|
|
24
21
|
};
|
|
25
22
|
return {
|
|
26
23
|
openScan: handleScanCustomer,
|
|
@@ -3,17 +3,12 @@ import { useBookingTicket } from "./bookingTicket";
|
|
|
3
3
|
import { formatScanGlobal } from "../../utils";
|
|
4
4
|
import { useToast } from '@pisell/materials';
|
|
5
5
|
import { locales } from '@pisell/utils';
|
|
6
|
-
import { useActiveExecute } from "./useActiveExecute";
|
|
7
6
|
var useScanGlobal = function useScanGlobal() {
|
|
8
7
|
var bookingTicket = useBookingTicket();
|
|
9
8
|
var scanRef = useRef(null);
|
|
10
9
|
var Toast = useToast();
|
|
11
|
-
var _useActiveExecute = useActiveExecute(),
|
|
12
|
-
executeIfActive = _useActiveExecute.executeIfActive;
|
|
13
10
|
var handleScanGlobal = function handleScanGlobal(callback) {
|
|
14
|
-
|
|
15
|
-
bookingTicket === null || bookingTicket === void 0 || (_bookingTicket$initPe = bookingTicket.initPeripheralsListener) === null || _bookingTicket$initPe === void 0 || _bookingTicket$initPe.call(bookingTicket);
|
|
16
|
-
scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanGlobalListener(executeIfActive(function (data) {
|
|
11
|
+
scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanGlobalListener(function (data) {
|
|
17
12
|
console.log('scanGlobalListener>>>>>>>', data);
|
|
18
13
|
if (data.status === 'failed') {
|
|
19
14
|
Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
|
|
@@ -21,7 +16,7 @@ var useScanGlobal = function useScanGlobal() {
|
|
|
21
16
|
}
|
|
22
17
|
var result = formatScanGlobal(data);
|
|
23
18
|
callback(result);
|
|
24
|
-
})
|
|
19
|
+
});
|
|
25
20
|
};
|
|
26
21
|
return {
|
|
27
22
|
openScan: handleScanGlobal,
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
|
|
2
1
|
import './index.less';
|
|
3
2
|
interface TicketBookingProps {
|
|
4
3
|
productExtensionType: string[];
|
|
5
4
|
bookingConfigParams: Record<string, any>;
|
|
6
5
|
isShowMenuBar?: boolean;
|
|
7
|
-
isShowTimeBar?: boolean;
|
|
8
|
-
isShowFloatButtons?: boolean;
|
|
9
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
10
|
-
isActive?: boolean;
|
|
11
|
-
rulesHooks?: any;
|
|
12
6
|
}
|
|
13
7
|
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
14
8
|
export default _default;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -18,12 +12,9 @@ import { cloneDeep } from 'lodash';
|
|
|
18
12
|
import TicketBooking from "./components/ticketBooking/index";
|
|
19
13
|
import { request } from "../../utils";
|
|
20
14
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
21
|
-
import {
|
|
15
|
+
import { getDefaultStartParam } from "./utils";
|
|
22
16
|
import localeTexts from "./locales";
|
|
23
17
|
import MenuBar from "./components/menuBar";
|
|
24
|
-
import { useLocalStorageState } from 'ahooks';
|
|
25
|
-
import { OsKeyProvider } from "./context/OsKeyContext";
|
|
26
|
-
import { IsActiveProvider } from "./context/IsActiveContext";
|
|
27
18
|
import "./index.less";
|
|
28
19
|
var initialState = {
|
|
29
20
|
amountSymbol: '$',
|
|
@@ -146,60 +137,16 @@ var initialState = {
|
|
|
146
137
|
export default (function (props) {
|
|
147
138
|
var _context$appHelper, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
|
|
148
139
|
var productExtensionType = props.productExtensionType,
|
|
149
|
-
|
|
140
|
+
bookingConfigParams = props.bookingConfigParams,
|
|
150
141
|
_props$isShowMenuBar = props.isShowMenuBar,
|
|
151
|
-
isShowMenuBar = _props$isShowMenuBar === void 0 ? true : _props$isShowMenuBar
|
|
152
|
-
_props$isShowTimeBar = props.isShowTimeBar,
|
|
153
|
-
propsIsShowTimeBar = _props$isShowTimeBar === void 0 ? true : _props$isShowTimeBar,
|
|
154
|
-
_props$isShowFloatBut = props.isShowFloatButtons,
|
|
155
|
-
propsIsShowFloatButtons = _props$isShowFloatBut === void 0 ? true : _props$isShowFloatBut,
|
|
156
|
-
propsProductDisplayConfig = props.productDisplayConfig,
|
|
157
|
-
_props$isActive = props.isActive,
|
|
158
|
-
isActive = _props$isActive === void 0 ? true : _props$isActive,
|
|
159
|
-
propsRulesHooks = props.rulesHooks;
|
|
160
|
-
var _useLocalStorageState = useLocalStorageState('pisell-ticket-booking-nav-key', {
|
|
161
|
-
defaultValue: 'ticket'
|
|
162
|
-
}),
|
|
163
|
-
_useLocalStorageState2 = _slicedToArray(_useLocalStorageState, 2),
|
|
164
|
-
activeNavKey = _useLocalStorageState2[0],
|
|
165
|
-
setActiveNavKey = _useLocalStorageState2[1];
|
|
166
|
-
|
|
167
|
-
// 根据 activeNavKey 动态配置(仅在显示菜单栏时生效)
|
|
168
|
-
var bookingConfigParams = useMemo(function () {
|
|
169
|
-
if (isShowMenuBar && activeNavKey === 'food') {
|
|
170
|
-
return _objectSpread(_objectSpread({}, propsBookingConfigParams), {}, {
|
|
171
|
-
sub_type: 'food',
|
|
172
|
-
source_type: 'pos'
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
return propsBookingConfigParams;
|
|
176
|
-
}, [isShowMenuBar, activeNavKey, propsBookingConfigParams]);
|
|
177
|
-
var isShowTimeBar = useMemo(function () {
|
|
178
|
-
return isShowMenuBar && activeNavKey === 'food' ? false : propsIsShowTimeBar;
|
|
179
|
-
}, [isShowMenuBar, activeNavKey, propsIsShowTimeBar]);
|
|
180
|
-
var isShowFloatButtons = useMemo(function () {
|
|
181
|
-
return isShowMenuBar && activeNavKey === 'food' ? false : propsIsShowFloatButtons;
|
|
182
|
-
}, [isShowMenuBar, activeNavKey, propsIsShowFloatButtons]);
|
|
183
|
-
|
|
184
|
-
// 根据bookingConfigParams?.sub_type 动态配置osKey
|
|
185
|
-
// 多页面使用同一个组件时,需要根据不同的osKey来区分不同的页面
|
|
186
|
-
var osKey = useMemo(function () {
|
|
187
|
-
return bookingConfigParams === null || bookingConfigParams === void 0 ? void 0 : bookingConfigParams.sub_type;
|
|
188
|
-
}, [bookingConfigParams]);
|
|
189
|
-
var productDisplayConfig = useMemo(function () {
|
|
190
|
-
if (isShowMenuBar && activeNavKey === 'food') {
|
|
191
|
-
return 'sku-list-a5';
|
|
192
|
-
}
|
|
193
|
-
return propsProductDisplayConfig;
|
|
194
|
-
}, [isShowMenuBar, activeNavKey, propsProductDisplayConfig]);
|
|
142
|
+
isShowMenuBar = _props$isShowMenuBar === void 0 ? true : _props$isShowMenuBar;
|
|
195
143
|
var storeRef = useRef(null);
|
|
196
144
|
var context = useEngineContext();
|
|
197
145
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
|
198
146
|
pisellos = _context$appHelper$ut.pisellos,
|
|
199
147
|
pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
|
|
200
148
|
var _ref = pisellosAllModule || {},
|
|
201
|
-
BookingTicket = _ref.BookingTicket
|
|
202
|
-
ShopDiscountImpl = _ref.ShopDiscountImpl;
|
|
149
|
+
BookingTicket = _ref.BookingTicket;
|
|
203
150
|
locales.init(localeTexts, ((_context$appHelper$ut2 = context.appHelper.utils) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getApp) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.locales) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut3.getLocale) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.call(_context$appHelper$ut3)) || ((_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.storage) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.get('umi_locale')) || 'en');
|
|
204
151
|
useLayoutEffect(function () {
|
|
205
152
|
request.setRequest(context.appHelper.utils.request);
|
|
@@ -210,43 +157,21 @@ export default (function (props) {
|
|
|
210
157
|
productExtensionType: productExtensionType
|
|
211
158
|
}));
|
|
212
159
|
storeRef.current = store;
|
|
213
|
-
}, [
|
|
160
|
+
}, []);
|
|
214
161
|
useMemo(function () {
|
|
215
162
|
if (BookingTicket) {
|
|
216
|
-
pisellos === null || pisellos === void 0 || pisellos.registerModule(new BookingTicket(
|
|
163
|
+
pisellos === null || pisellos === void 0 || pisellos.registerModule(new BookingTicket('bookingTicket'), {
|
|
217
164
|
initialState: {},
|
|
218
165
|
otherParams: {
|
|
219
|
-
cacheId:
|
|
166
|
+
cacheId: 'test-cache',
|
|
220
167
|
platform: 'shop'
|
|
221
168
|
}
|
|
222
169
|
});
|
|
223
170
|
}
|
|
224
|
-
|
|
225
|
-
pisellos === null || pisellos === void 0 || pisellos.registerModule(new ShopDiscountImpl(getShopDiscountKey(osKey)), {
|
|
226
|
-
otherParams: {
|
|
227
|
-
platform: "shop",
|
|
228
|
-
rules: {
|
|
229
|
-
hooks: propsRulesHooks || rulesHooks
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
}, [osKey]);
|
|
171
|
+
}, []);
|
|
235
172
|
return /*#__PURE__*/React.createElement("div", {
|
|
236
173
|
className: "pisell-ticket-booking-wrapper"
|
|
237
|
-
}, isShowMenuBar && /*#__PURE__*/React.createElement(MenuBar, {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}), /*#__PURE__*/React.createElement(IsActiveProvider, {
|
|
241
|
-
isActive: isActive
|
|
242
|
-
}, /*#__PURE__*/React.createElement(OsKeyProvider, {
|
|
243
|
-
osKey: osKey
|
|
244
|
-
}, /*#__PURE__*/React.createElement(Provider, {
|
|
245
|
-
store: storeRef.current,
|
|
246
|
-
key: activeNavKey
|
|
247
|
-
}, /*#__PURE__*/React.createElement(TicketBooking, {
|
|
248
|
-
productDisplayConfig: productDisplayConfig,
|
|
249
|
-
isShowTimeBar: isShowTimeBar,
|
|
250
|
-
isShowFloatButtons: isShowFloatButtons
|
|
251
|
-
})))));
|
|
174
|
+
}, isShowMenuBar && /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
|
|
175
|
+
store: storeRef.current
|
|
176
|
+
}, /*#__PURE__*/React.createElement(TicketBooking, null)));
|
|
252
177
|
});
|
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
44
|
-
searchType: "
|
|
44
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
|
45
45
|
data: any;
|
|
46
46
|
scanCode: string;
|
|
47
47
|
} | null;
|
|
@@ -59,32 +59,4 @@ export declare const formatScanGlobal: (data: ScanData) => {
|
|
|
59
59
|
scanCode: string;
|
|
60
60
|
} | null | undefined;
|
|
61
61
|
export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
|
|
62
|
-
export
|
|
63
|
-
export declare const getShopDiscountKey: (osKey: string) => string;
|
|
64
|
-
export declare const rulesHooks: {
|
|
65
|
-
getProduct(product: Record<string, any>): {
|
|
66
|
-
booking_id: any;
|
|
67
|
-
id: any;
|
|
68
|
-
_id: any;
|
|
69
|
-
price: any;
|
|
70
|
-
total: any;
|
|
71
|
-
discount_list: any;
|
|
72
|
-
origin_total: any;
|
|
73
|
-
num: any;
|
|
74
|
-
quantity: any;
|
|
75
|
-
vouchersApplicable: any;
|
|
76
|
-
};
|
|
77
|
-
setProduct(product: Record<string, any>, values: {
|
|
78
|
-
total: number;
|
|
79
|
-
discount_list: any[];
|
|
80
|
-
price: number;
|
|
81
|
-
quantity: number;
|
|
82
|
-
_id?: string;
|
|
83
|
-
}): {
|
|
84
|
-
_id: any;
|
|
85
|
-
discount_list: any[];
|
|
86
|
-
_extend: any;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
|
|
90
|
-
export type { CacheType } from './productCache';
|
|
62
|
+
export {};
|
|
@@ -332,53 +332,4 @@ export var createSimpleCacheItem = function createSimpleCacheItem(item, e, state
|
|
|
332
332
|
new: 1
|
|
333
333
|
});
|
|
334
334
|
return cacheItem;
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
// 获取bookingTicket的key
|
|
338
|
-
export var getBookingTicketKey = function getBookingTicketKey(osKey) {
|
|
339
|
-
return "bookingTicket-".concat(osKey);
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
// 获取shopDiscount的key
|
|
343
|
-
export var getShopDiscountKey = function getShopDiscountKey(osKey) {
|
|
344
|
-
return "shopDiscount-".concat(osKey);
|
|
345
|
-
};
|
|
346
|
-
export var rulesHooks = {
|
|
347
|
-
// 获取商品关键信息
|
|
348
|
-
getProduct: function getProduct(product) {
|
|
349
|
-
var detail = {
|
|
350
|
-
booking_id: product.booking_id,
|
|
351
|
-
id: product.id,
|
|
352
|
-
_id: product._id,
|
|
353
|
-
price: product.price,
|
|
354
|
-
total: product._extend.total,
|
|
355
|
-
discount_list: product.discount_list,
|
|
356
|
-
origin_total: product._extend.origin_total,
|
|
357
|
-
num: product._extend.quantity,
|
|
358
|
-
quantity: product._extend.quantity || 1,
|
|
359
|
-
vouchersApplicable: product.vouchersApplicable
|
|
360
|
-
};
|
|
361
|
-
return detail;
|
|
362
|
-
},
|
|
363
|
-
setProduct: function setProduct(product, values) {
|
|
364
|
-
var detail = _objectSpread(_objectSpread({}, product), {}, {
|
|
365
|
-
_id: values._id || product._id,
|
|
366
|
-
discount_list: values.discount_list,
|
|
367
|
-
_extend: _objectSpread(_objectSpread(_objectSpread({}, product._extend), 'total' in values ? {
|
|
368
|
-
total: values.total
|
|
369
|
-
} : {}), 'quantity' in values ? {
|
|
370
|
-
quantity: values.quantity
|
|
371
|
-
} : {})
|
|
372
|
-
});
|
|
373
|
-
return detail;
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
// 导出缓存工具函数
|
|
378
|
-
export {
|
|
379
|
-
// 通用缓存函数
|
|
380
|
-
getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey,
|
|
381
|
-
// 产品缓存
|
|
382
|
-
getProductCache, setProductCache, clearProductCache, clearAllProductCache,
|
|
383
|
-
// BoardConfig 缓存
|
|
384
|
-
getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache } from "./productCache";
|
|
335
|
+
};
|
package/es/index.d.ts
CHANGED
|
@@ -59,7 +59,5 @@ export { default as ProSkuDetailModal } from './pro/skuDetailModal';
|
|
|
59
59
|
export { default as SaasLogin } from './plus/saasLogin';
|
|
60
60
|
export { default as SaasRegister } from './plus/saasRegister';
|
|
61
61
|
export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
|
|
62
|
-
export { default as SkuCard } from './plus/productSelect/ProductCard/SkuCard';
|
|
63
62
|
export { default as PinModal } from './components/pinModal';
|
|
64
63
|
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
65
|
-
export { ResponsiveList as SkuList } from './components/list';
|
package/es/index.js
CHANGED
|
@@ -63,7 +63,5 @@ export { default as ProSkuDetailModal } from "./pro/skuDetailModal";
|
|
|
63
63
|
export { default as SaasLogin } from "./plus/saasLogin";
|
|
64
64
|
export { default as SaasRegister } from "./plus/saasRegister";
|
|
65
65
|
export { default as SaasCreateOrganization } from "./plus/saasCreateOrganization";
|
|
66
|
-
export { default as SkuCard } from "./plus/productSelect/ProductCard/SkuCard";
|
|
67
66
|
export { default as PinModal } from "./components/pinModal";
|
|
68
|
-
export { default as PinVerifyModal } from "./components/pinVerifyModal";
|
|
69
|
-
export { ResponsiveList as SkuList } from "./components/list";
|
|
67
|
+
export { default as PinVerifyModal } from "./components/pinVerifyModal";
|
|
@@ -12,16 +12,14 @@ import "./index.less";
|
|
|
12
12
|
var index = function index(props) {
|
|
13
13
|
var _context$appHelper$ut;
|
|
14
14
|
var context = useEngineContext();
|
|
15
|
-
var value = props.value
|
|
16
|
-
customPrefixText = props.customPrefixText,
|
|
17
|
-
customSuffixText = props.customSuffixText;
|
|
15
|
+
var value = props.value;
|
|
18
16
|
var locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
|
|
19
17
|
var _useMemo = useMemo(function () {
|
|
20
18
|
if (!props.isMini) return ['', ''];
|
|
21
|
-
if (!locale) return [
|
|
22
|
-
if (locale.toLowerCase().includes('zh')) return ['',
|
|
23
|
-
return [
|
|
24
|
-
}, [locale, props.isMini
|
|
19
|
+
if (!locale) return ['From', ''];
|
|
20
|
+
if (locale.toLowerCase().includes('zh')) return ['', '起'];
|
|
21
|
+
return ['From', ''];
|
|
22
|
+
}, [locale, props.isMini]),
|
|
25
23
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
26
24
|
_prefix = _useMemo2[0],
|
|
27
25
|
_suffix = _useMemo2[1];
|
|
@@ -49,8 +49,6 @@ var import_ahooks = require("ahooks");
|
|
|
49
49
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
50
50
|
var import_useScanManager = __toESM(require("../../../ticketBooking/hooks/pisellos/useScanManager"));
|
|
51
51
|
var import_priceKeyboard = require("../../../../pro/priceKeyboard");
|
|
52
|
-
var import_pisellos = require("../../../ticketBooking/hooks/pisellos");
|
|
53
|
-
var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
|
|
54
52
|
var createToastContent = (text) => /* @__PURE__ */ import_react.default.createElement("div", { className: "action-buttons-toast-content" }, text);
|
|
55
53
|
var ActionButtons = ({
|
|
56
54
|
state,
|
|
@@ -63,14 +61,11 @@ var ActionButtons = ({
|
|
|
63
61
|
const [showPriceAdjustModal, setShowPriceAdjustModal] = (0, import_react.useState)(false);
|
|
64
62
|
const [showCustomiseModal, setShowCustomiseModal] = (0, import_react.useState)(false);
|
|
65
63
|
const [showVoucherModal, setShowVoucherModal] = (0, import_react.useState)(false);
|
|
66
|
-
const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
|
|
67
64
|
const context = (0, import_useEngineContext.default)();
|
|
68
65
|
const { getData, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
69
66
|
const Toast = (0, import_materials.useToast)();
|
|
70
67
|
const pisellOS = (0, import_useEngineContext.usePisellOS)();
|
|
71
|
-
const bookingTicket = (0, import_pisellos.useBookingTicket)();
|
|
72
68
|
const { ScheduleModule } = pisellosAllModule;
|
|
73
|
-
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
74
69
|
const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
75
70
|
dispatch({
|
|
76
71
|
type: "setClient",
|
|
@@ -85,7 +80,7 @@ var ActionButtons = ({
|
|
|
85
80
|
});
|
|
86
81
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
87
82
|
(0, import_react.useEffect)(() => {
|
|
88
|
-
if (!
|
|
83
|
+
if (!pisellOS) return;
|
|
89
84
|
const handleCustomerSelected = () => {
|
|
90
85
|
dispatch({
|
|
91
86
|
type: "setState",
|
|
@@ -94,18 +89,17 @@ var ActionButtons = ({
|
|
|
94
89
|
}
|
|
95
90
|
});
|
|
96
91
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
wrappedHandleCustomerSelected
|
|
92
|
+
pisellOS.effects.on(
|
|
93
|
+
"bookingTicket:onCustomerSelected",
|
|
94
|
+
handleCustomerSelected
|
|
101
95
|
);
|
|
102
96
|
return () => {
|
|
103
|
-
|
|
104
|
-
"onCustomerSelected",
|
|
105
|
-
|
|
97
|
+
pisellOS.effects.off(
|
|
98
|
+
"bookingTicket:onCustomerSelected",
|
|
99
|
+
handleCustomerSelected
|
|
106
100
|
);
|
|
107
101
|
};
|
|
108
|
-
}, [dispatch,
|
|
102
|
+
}, [dispatch, pisellOS]);
|
|
109
103
|
const getDataFromHost = () => {
|
|
110
104
|
try {
|
|
111
105
|
const is_price_include_tax = getData("is_price_include_tax");
|
|
@@ -181,19 +175,18 @@ var ActionButtons = ({
|
|
|
181
175
|
(0, import_react.useEffect)(() => {
|
|
182
176
|
var _a2;
|
|
183
177
|
const { pisellos } = ((_a2 = context.appHelper) == null ? void 0 : _a2.utils) || {};
|
|
184
|
-
if (!pisellos
|
|
178
|
+
if (!pisellos) return;
|
|
185
179
|
const onDiscountListChange = (discount) => {
|
|
186
180
|
setDiscountList(discount);
|
|
187
181
|
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
wrappedHandler
|
|
182
|
+
pisellos.effects.on(
|
|
183
|
+
"shopDiscount:onDiscountListChange",
|
|
184
|
+
onDiscountListChange
|
|
192
185
|
);
|
|
193
186
|
return () => {
|
|
194
|
-
|
|
195
|
-
"onDiscountListChange",
|
|
196
|
-
|
|
187
|
+
pisellos.effects.off(
|
|
188
|
+
"shopDiscount:onDiscountListChange",
|
|
189
|
+
onDiscountListChange
|
|
197
190
|
);
|
|
198
191
|
};
|
|
199
192
|
}, [(_f = context.appHelper) == null ? void 0 : _f.utils]);
|
|
@@ -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
|
|
63
|
+
var import_hooks = require("../../../appointmentBooking/hooks");
|
|
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,
|
|
1255
|
+
const shopDiscount = (0, import_hooks.useShopDiscount)();
|
|
1256
1256
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
1257
1257
|
const handleClearAllAndReset = () => {
|
|
1258
1258
|
var _a2;
|