@pisell/private-materials 6.6.40 → 6.6.41
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/meta.js +2 -2
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- 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 +2 -2
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/ticketBooking/utils/index.d.ts +2 -1
- package/es/components/ticketBooking/utils/index.js +3 -2
- package/es/plus/clientCard/index.js +6 -4
- package/es/plus/clientCard/index.less +6 -2
- package/es/plus/clientCard/types.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +82 -40
- package/es/plus/walletPassGallery/components/passList/index.js +12 -4
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +3 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +20 -2
- package/es/plus/walletPassGallery/index.d.ts +4 -0
- package/es/plus/walletPassGallery/index.js +95 -46
- package/es/plus/walletPassGallery/serve.d.ts +11 -1
- package/es/plus/walletPassGallery/serve.js +85 -59
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- 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 +2 -2
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/ticketBooking/utils/index.d.ts +2 -1
- package/lib/components/ticketBooking/utils/index.js +3 -2
- package/lib/plus/clientCard/index.js +5 -4
- package/lib/plus/clientCard/index.less +6 -2
- package/lib/plus/clientCard/types.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +65 -10
- package/lib/plus/walletPassGallery/components/passList/index.js +12 -5
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +3 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
- package/lib/plus/walletPassGallery/index.d.ts +4 -0
- package/lib/plus/walletPassGallery/index.js +116 -45
- package/lib/plus/walletPassGallery/serve.d.ts +11 -1
- package/lib/plus/walletPassGallery/serve.js +25 -12
- package/lowcode/client-card/meta.ts +9 -3
- package/lowcode/client-search/meta.ts +316 -0
- package/lowcode/wallet-pass-gallery/meta.ts +66 -1
- package/package.json +3 -3
- package/es/components/Sales/Cart/utils.d.ts +0 -63
- package/es/components/Sales/Checkout/utils.d.ts +0 -41
- package/es/components/Sales/Summary/index.d.ts +0 -35
- package/es/components/Sales/Summary/utils.d.ts +0 -51
- package/es/components/appointmentBooking/locales.d.ts +0 -603
- package/es/components/booking/components/voucher/utils.d.ts +0 -5
- package/es/components/booking/dashboard/serve.d.ts +0 -2
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/client/serve.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/es/components/booking/info/index.d.ts +0 -4
- package/es/components/booking/info/pet/serve.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +0 -34
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/locales.d.ts +0 -1619
- package/es/components/checkout/PaymentProvider.d.ts +0 -13
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/es/components/checkout/components/PaymentResultToast/index.d.ts +0 -9
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -11
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +0 -7
- package/es/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +0 -5
- package/es/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/es/components/checkout/constants.d.ts +0 -2
- package/es/components/checkout/export.d.ts +0 -9
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/es/components/checkout/index.d.ts +0 -5
- package/es/components/checkout/locales.d.ts +0 -853
- package/es/components/checkout/styles.d.ts +0 -67
- package/es/components/checkout/types.d.ts +0 -130
- package/es/components/checkout/utils.d.ts +0 -3
- package/es/components/eftpos/const.d.ts +0 -64
- package/es/components/eftpos/hooks.d.ts +0 -33
- package/es/components/eftpos/locales.d.ts +0 -163
- package/es/components/eftposPay/EFTPos.d.ts +0 -14
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/es/components/eftposPay/const.d.ts +0 -195
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/locales.d.ts +0 -608
- package/es/components/eftposPay/manufacturer.d.ts +0 -8
- package/es/components/eftposPay/serve.d.ts +0 -16
- package/es/components/eftposPay/store/index.d.ts +0 -362
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/locales.d.ts +0 -108
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -8
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/EFTPOS/index.d.ts +0 -8
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/locales.d.ts +0 -88
- package/es/components/pay/toB/paymentMethods/index.d.ts +0 -11
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/types/index.d.ts +0 -61
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -155
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
- package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -133
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/es/components/ruleSetting/locales.d.ts +0 -78
- package/es/components/schedules/locales.d.ts +0 -143
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -58
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/type.d.ts +0 -50
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/subTotal/locales.d.ts +0 -68
- package/es/components/systemSettings/registry/locales.d.ts +0 -456
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -128
- package/es/components/taxSelect/locales.d.ts +0 -38
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -9
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/locales.d.ts +0 -328
- package/es/components/ticketBooking/serve.d.ts +0 -288
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/walletList/serve.d.ts +0 -43
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -4
- package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/es/hooks/index.d.ts +0 -10
- package/es/hooks/useEngineContext.d.ts +0 -3
- package/es/hooks/useLocale.d.ts +0 -2
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useModal.d.ts +0 -35
- package/es/hooks/useModal.example.d.ts +0 -12
- package/es/hooks/useModal.integration.example.d.ts +0 -15
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/es/plus/noteModal/locales.d.ts +0 -53
- package/es/plus/noteModal/types.d.ts +0 -19
- package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -20
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -164
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
- package/es/plus/saasAttendance/locales.d.ts +0 -528
- package/es/plus/saasAttendance/settings/types.d.ts +0 -130
- package/es/plus/selectHolder/locales.d.ts +0 -38
- package/es/pro/Login2.0/locales.d.ts +0 -903
- package/es/pro/Login2.0/shared/types.d.ts +0 -234
- package/es/pro/NumberKeyboardPopover/index.d.ts +0 -36
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/pisellPriceRadio/index.d.ts +0 -26
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +0 -2
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -28
- package/es/pro/priceKeyboard/index.d.ts +0 -3
- package/es/pro/skuDetailModal/locales.d.ts +0 -78
- package/es/pro/skuDetailModal/types.d.ts +0 -352
- package/lib/components/Sales/Cart/utils.d.ts +0 -63
- package/lib/components/Sales/Checkout/utils.d.ts +0 -41
- package/lib/components/Sales/Summary/index.d.ts +0 -35
- package/lib/components/Sales/Summary/utils.d.ts +0 -51
- package/lib/components/appointmentBooking/locales.d.ts +0 -603
- package/lib/components/booking/components/voucher/utils.d.ts +0 -5
- package/lib/components/booking/dashboard/serve.d.ts +0 -2
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/client/serve.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/lib/components/booking/info/index.d.ts +0 -4
- package/lib/components/booking/info/pet/serve.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +0 -34
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/locales.d.ts +0 -1619
- package/lib/components/checkout/PaymentProvider.d.ts +0 -13
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/lib/components/checkout/components/PaymentResultToast/index.d.ts +0 -9
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -11
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +0 -7
- package/lib/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +0 -5
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/lib/components/checkout/constants.d.ts +0 -2
- package/lib/components/checkout/export.d.ts +0 -9
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/lib/components/checkout/index.d.ts +0 -5
- package/lib/components/checkout/locales.d.ts +0 -853
- package/lib/components/checkout/styles.d.ts +0 -67
- package/lib/components/checkout/types.d.ts +0 -130
- package/lib/components/checkout/utils.d.ts +0 -3
- package/lib/components/eftpos/const.d.ts +0 -64
- package/lib/components/eftpos/hooks.d.ts +0 -33
- package/lib/components/eftpos/locales.d.ts +0 -163
- package/lib/components/eftposPay/EFTPos.d.ts +0 -14
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/lib/components/eftposPay/const.d.ts +0 -195
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/locales.d.ts +0 -608
- package/lib/components/eftposPay/manufacturer.d.ts +0 -8
- package/lib/components/eftposPay/serve.d.ts +0 -16
- package/lib/components/eftposPay/store/index.d.ts +0 -362
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/locales.d.ts +0 -108
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -8
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/EFTPOS/index.d.ts +0 -8
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/locales.d.ts +0 -88
- package/lib/components/pay/toB/paymentMethods/index.d.ts +0 -11
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/types/index.d.ts +0 -61
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -155
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -133
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/lib/components/ruleSetting/locales.d.ts +0 -78
- package/lib/components/schedules/locales.d.ts +0 -143
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -58
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/type.d.ts +0 -50
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/subTotal/locales.d.ts +0 -68
- package/lib/components/systemSettings/registry/locales.d.ts +0 -456
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -128
- package/lib/components/taxSelect/locales.d.ts +0 -38
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -9
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/locales.d.ts +0 -328
- package/lib/components/ticketBooking/serve.d.ts +0 -288
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/walletList/serve.d.ts +0 -43
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -4
- package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/hooks/index.d.ts +0 -10
- package/lib/hooks/useEngineContext.d.ts +0 -3
- package/lib/hooks/useLocale.d.ts +0 -2
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useModal.d.ts +0 -35
- package/lib/hooks/useModal.example.d.ts +0 -12
- package/lib/hooks/useModal.integration.example.d.ts +0 -15
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/lib/plus/noteModal/locales.d.ts +0 -53
- package/lib/plus/noteModal/types.d.ts +0 -19
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -20
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -164
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
- package/lib/plus/saasAttendance/locales.d.ts +0 -528
- package/lib/plus/saasAttendance/settings/types.d.ts +0 -130
- package/lib/plus/selectHolder/locales.d.ts +0 -38
- package/lib/pro/Login2.0/locales.d.ts +0 -903
- package/lib/pro/Login2.0/shared/types.d.ts +0 -234
- package/lib/pro/NumberKeyboardPopover/index.d.ts +0 -36
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +0 -2
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -28
- package/lib/pro/priceKeyboard/index.d.ts +0 -3
- package/lib/pro/skuDetailModal/locales.d.ts +0 -78
- package/lib/pro/skuDetailModal/types.d.ts +0 -352
|
@@ -19,7 +19,10 @@ var stateTimeUnix = 1723255863; // 2024.8.10 时间戳
|
|
|
19
19
|
var TimelineSection = function TimelineSection(props) {
|
|
20
20
|
var code = props.code,
|
|
21
21
|
tag = props.tag,
|
|
22
|
-
timezone = props.timezone
|
|
22
|
+
timezone = props.timezone,
|
|
23
|
+
apiPrefix = props.apiPrefix,
|
|
24
|
+
isTerminalEnv = props.isTerminalEnv,
|
|
25
|
+
interaction = props.interaction;
|
|
23
26
|
var _usePisellConfig = usePisellConfig(),
|
|
24
27
|
_usePisellConfig$symb = _usePisellConfig.symbol,
|
|
25
28
|
symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
|
|
@@ -165,7 +168,22 @@ var TimelineSection = function TimelineSection(props) {
|
|
|
165
168
|
label: locales.getText('wallet-pass-gallery.viewOrder'),
|
|
166
169
|
value: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_code ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_code) : timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.transaction_id ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.transaction_id) : '',
|
|
167
170
|
isLink: !!(timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id),
|
|
168
|
-
|
|
171
|
+
onClick: function onClick() {
|
|
172
|
+
if (isTerminalEnv) {
|
|
173
|
+
var _interaction$utils, _interaction$utils$po;
|
|
174
|
+
return interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 ? void 0 : _interaction$utils$po.call(_interaction$utils, {
|
|
175
|
+
module: 'booking',
|
|
176
|
+
key: 'view_order',
|
|
177
|
+
data: {
|
|
178
|
+
order_id: timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id
|
|
179
|
+
},
|
|
180
|
+
origin: '/booking'
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
var link = apiPrefix === '/shop' ? "/admin/order/orders/detail?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : "/order/details?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id);
|
|
184
|
+
location.replace(link);
|
|
185
|
+
},
|
|
186
|
+
link: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id ? true : undefined
|
|
169
187
|
}],
|
|
170
188
|
labelColor: "#101828",
|
|
171
189
|
valueColor: "#101828",
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export interface WalletPassGalleryProps {
|
|
4
|
+
hideTitle: boolean;
|
|
5
|
+
hideAddButton: boolean;
|
|
6
|
+
customer?: any;
|
|
7
|
+
platform?: 'pc' | 'h5';
|
|
4
8
|
[key: string]: any;
|
|
5
9
|
}
|
|
6
10
|
declare const WalletPassGallery: (props: WalletPassGalleryProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
var _excluded = ["id", "product_name", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "unified_messages", "par_value", "tag"];
|
|
2
|
+
var _excluded = ["id", "product_name", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "unified_available_status", "unified_messages", "par_value", "tag"];
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -46,7 +46,11 @@ var ARow = Row;
|
|
|
46
46
|
var ACol = Col;
|
|
47
47
|
var TAGS = ['gift_card', 'point_card', 'product_discount_card', 'good_pass', 'product_voucher'];
|
|
48
48
|
var WalletPassGallery = function WalletPassGallery(props) {
|
|
49
|
-
var _context$appHelper,
|
|
49
|
+
var _context$appHelper, _context$appHelper2, _context$engine, _utils$translation, _getWalletDetail$data;
|
|
50
|
+
var hideAddButton = props.hideAddButton,
|
|
51
|
+
hideTitle = props.hideTitle,
|
|
52
|
+
customer = props.customer,
|
|
53
|
+
platformProp = props.platform;
|
|
50
54
|
var _useState = useState('available'),
|
|
51
55
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
56
|
activeKey = _useState2[0],
|
|
@@ -75,22 +79,31 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
75
79
|
setUpdateHolderLoading = _useState12[1];
|
|
76
80
|
var context = useEngineContext();
|
|
77
81
|
var utils = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {};
|
|
82
|
+
var _ref = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {
|
|
83
|
+
apiPrefix: '/h5'
|
|
84
|
+
},
|
|
85
|
+
apiPrefix = _ref.apiPrefix;
|
|
86
|
+
var isTerminal = utils.isTerminal,
|
|
87
|
+
isApp = utils.isApp,
|
|
88
|
+
interaction = utils.interaction;
|
|
89
|
+
var isTerminalEnv = (typeof isTerminal === 'function' ? isTerminal() : !!isTerminal) || (isApp === null || isApp === void 0 ? void 0 : isApp());
|
|
78
90
|
var platform = useMemo(function () {
|
|
91
|
+
if (platformProp) return platformProp;
|
|
79
92
|
if (utils.isMobile) {
|
|
80
93
|
return utils.isMobile() ? 'h5' : 'pc';
|
|
81
94
|
}
|
|
82
95
|
if (typeof window !== 'undefined') {
|
|
83
96
|
return window.innerWidth <= 768 ? 'h5' : 'pc';
|
|
84
97
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
locales.init(localeTexts, (
|
|
98
|
+
return 'pc';
|
|
99
|
+
}, [utils, platformProp]);
|
|
100
|
+
locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
|
|
88
101
|
request.setRequest(utils === null || utils === void 0 ? void 0 : utils.request);
|
|
89
102
|
var _getWalletDetail = useRequest(getWalletDetail, {
|
|
90
103
|
manual: true
|
|
91
104
|
});
|
|
92
105
|
var _getAvailableList = useInfiniteScroll( /*#__PURE__*/function () {
|
|
93
|
-
var
|
|
106
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(d) {
|
|
94
107
|
var _searchParams, walletId, holderId, res;
|
|
95
108
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
96
109
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -106,7 +119,10 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
106
119
|
tags: TAGS,
|
|
107
120
|
filter_wallet_id: walletId || undefined,
|
|
108
121
|
filter_holder_id: holderId || undefined,
|
|
109
|
-
with: ['holder.detail']
|
|
122
|
+
with: ['customScheduleSnapshot', 'holder.detail'],
|
|
123
|
+
customer_id: customer === null || customer === void 0 ? void 0 : customer.id
|
|
124
|
+
}, {
|
|
125
|
+
apiPrefix: apiPrefix
|
|
110
126
|
});
|
|
111
127
|
case 5:
|
|
112
128
|
res = _context.sent;
|
|
@@ -122,7 +138,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
122
138
|
}, _callee);
|
|
123
139
|
}));
|
|
124
140
|
return function (_x) {
|
|
125
|
-
return
|
|
141
|
+
return _ref2.apply(this, arguments);
|
|
126
142
|
};
|
|
127
143
|
}(), {
|
|
128
144
|
manual: true,
|
|
@@ -133,7 +149,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
133
149
|
}
|
|
134
150
|
});
|
|
135
151
|
var _getUnavailableList = useInfiniteScroll( /*#__PURE__*/function () {
|
|
136
|
-
var
|
|
152
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(d) {
|
|
137
153
|
var _searchParams, walletId, holderId, res;
|
|
138
154
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
139
155
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -149,7 +165,10 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
149
165
|
tags: TAGS,
|
|
150
166
|
filter_wallet_id: walletId || undefined,
|
|
151
167
|
filter_holder_id: holderId || undefined,
|
|
152
|
-
with: ['holder.detail']
|
|
168
|
+
with: ['customScheduleSnapshot', 'holder.detail'],
|
|
169
|
+
customer_id: customer === null || customer === void 0 ? void 0 : customer.id
|
|
170
|
+
}, {
|
|
171
|
+
apiPrefix: apiPrefix
|
|
153
172
|
});
|
|
154
173
|
case 5:
|
|
155
174
|
res = _context2.sent;
|
|
@@ -165,7 +184,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
165
184
|
}, _callee2);
|
|
166
185
|
}));
|
|
167
186
|
return function (_x2) {
|
|
168
|
-
return
|
|
187
|
+
return _ref3.apply(this, arguments);
|
|
169
188
|
};
|
|
170
189
|
}(), {
|
|
171
190
|
manual: true,
|
|
@@ -180,16 +199,16 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
180
199
|
if (walletId) {
|
|
181
200
|
_getWalletDetail.runAsync(walletId);
|
|
182
201
|
}
|
|
183
|
-
var req1 = _getAvailableList.
|
|
184
|
-
var req2 = _getUnavailableList.
|
|
202
|
+
var req1 = _getAvailableList.reloadAsync();
|
|
203
|
+
var req2 = _getUnavailableList.reloadAsync();
|
|
185
204
|
var req3 = passId ? getWalletPassDetail(passId, {
|
|
186
205
|
with: ['holder.detail']
|
|
187
206
|
}) : Promise.resolve();
|
|
188
|
-
Promise.all([req1, req2, req3]).then(function (
|
|
189
|
-
var
|
|
190
|
-
data1 =
|
|
191
|
-
data2 =
|
|
192
|
-
data3 =
|
|
207
|
+
Promise.all([req1, req2, req3]).then(function (_ref4) {
|
|
208
|
+
var _ref5 = _slicedToArray(_ref4, 3),
|
|
209
|
+
data1 = _ref5[0],
|
|
210
|
+
data2 = _ref5[1],
|
|
211
|
+
data3 = _ref5[2];
|
|
193
212
|
if (platform !== 'h5') {
|
|
194
213
|
var list1 = (data1 === null || data1 === void 0 ? void 0 : data1.list) || [];
|
|
195
214
|
var list2 = (data2 === null || data2 === void 0 ? void 0 : data2.list) || [];
|
|
@@ -271,7 +290,22 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
271
290
|
}
|
|
272
291
|
}
|
|
273
292
|
});
|
|
293
|
+
}, [customer]);
|
|
294
|
+
useEffect(function () {
|
|
295
|
+
var _interaction$utils, _interaction$utils$mo;
|
|
296
|
+
interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$mo = _interaction$utils.mountFunction) === null || _interaction$utils$mo === void 0 || _interaction$utils$mo.call(_interaction$utils, 'customer', 'new', function () {
|
|
297
|
+
try {
|
|
298
|
+
_getAvailableList.reloadAsync();
|
|
299
|
+
_getUnavailableList.reloadAsync();
|
|
300
|
+
} catch (err) {
|
|
301
|
+
console.error(err);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
274
304
|
}, []);
|
|
305
|
+
var listReload = function listReload() {
|
|
306
|
+
_getAvailableList.reloadAsync();
|
|
307
|
+
_getUnavailableList.reloadAsync();
|
|
308
|
+
};
|
|
275
309
|
var _getUnbindList = useRequest(getUnbindList, {
|
|
276
310
|
manual: true,
|
|
277
311
|
onSuccess: function onSuccess(data) {
|
|
@@ -316,6 +350,20 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
316
350
|
var newId = key === KEYS.unavailable ? (_unavailable$ = _unavailable[0]) === null || _unavailable$ === void 0 ? void 0 : _unavailable$.id : (_avaliable$ = _avaliable[0]) === null || _avaliable$ === void 0 ? void 0 : _avaliable$.id;
|
|
317
351
|
setCurrentItemId(newId);
|
|
318
352
|
};
|
|
353
|
+
var handleAddClick = function handleAddClick() {
|
|
354
|
+
if (isTerminalEnv) {
|
|
355
|
+
var _interaction$utils2, _interaction$utils2$p;
|
|
356
|
+
interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$p = _interaction$utils2.postMessageToApp) === null || _interaction$utils2$p === void 0 || _interaction$utils2$p.call(_interaction$utils2, {
|
|
357
|
+
module: 'customer',
|
|
358
|
+
key: 'new',
|
|
359
|
+
data: {
|
|
360
|
+
customer_id: String((customer === null || customer === void 0 ? void 0 : customer.id) || '')
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
setIsOpenAddModal(true);
|
|
366
|
+
};
|
|
319
367
|
var _resetSearchState = function _resetSearchState() {
|
|
320
368
|
setCurrentUnbindItem(null);
|
|
321
369
|
_getUnbindList.mutate([]);
|
|
@@ -329,7 +377,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
329
377
|
|
|
330
378
|
// 通过code搜索卡券
|
|
331
379
|
var _handleSearchByCode = /*#__PURE__*/function () {
|
|
332
|
-
var
|
|
380
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(code) {
|
|
333
381
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
334
382
|
while (1) switch (_context3.prev = _context3.next) {
|
|
335
383
|
case 0:
|
|
@@ -363,11 +411,11 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
363
411
|
}, _callee3, null, [[3, 8]]);
|
|
364
412
|
}));
|
|
365
413
|
return function _handleSearchByCode(_x3) {
|
|
366
|
-
return
|
|
414
|
+
return _ref6.apply(this, arguments);
|
|
367
415
|
};
|
|
368
416
|
}();
|
|
369
417
|
var _handleBind = /*#__PURE__*/function () {
|
|
370
|
-
var
|
|
418
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
371
419
|
var data;
|
|
372
420
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
373
421
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -415,7 +463,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
415
463
|
}, _callee4, null, [[2, 12]]);
|
|
416
464
|
}));
|
|
417
465
|
return function _handleBind() {
|
|
418
|
-
return
|
|
466
|
+
return _ref7.apply(this, arguments);
|
|
419
467
|
};
|
|
420
468
|
}();
|
|
421
469
|
var _handleHolderChange = function _handleHolderChange(passId, holder) {
|
|
@@ -451,7 +499,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
451
499
|
}
|
|
452
500
|
};
|
|
453
501
|
var _handleBindHolder = /*#__PURE__*/function () {
|
|
454
|
-
var
|
|
502
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(holderId) {
|
|
455
503
|
var passId, res;
|
|
456
504
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
457
505
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -491,7 +539,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
491
539
|
}, _callee5, null, [[2, 10, 13, 16]]);
|
|
492
540
|
}));
|
|
493
541
|
return function _handleBindHolder(_x4) {
|
|
494
|
-
return
|
|
542
|
+
return _ref8.apply(this, arguments);
|
|
495
543
|
};
|
|
496
544
|
}();
|
|
497
545
|
var _currentItem = useMemo(function () {
|
|
@@ -507,15 +555,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
507
555
|
}, [currentItemId, _avaliable, _unavailable]);
|
|
508
556
|
var _pcTitle = /*#__PURE__*/React.createElement("div", {
|
|
509
557
|
className: "pisell-wallet-pass-gallery_title"
|
|
510
|
-
}, /*#__PURE__*/React.createElement(Title, null, (utils === null || utils === void 0 || (_utils$translation = utils.translation) === null || _utils$translation === void 0 ? void 0 : _utils$translation.call(utils, (_getWalletDetail$data = _getWalletDetail.data) === null || _getWalletDetail$data === void 0 || (_getWalletDetail$data = _getWalletDetail$data.data) === null || _getWalletDetail$data === void 0 ? void 0 : _getWalletDetail$data.name)) || locales.getText('wallet-pass-gallery.wallet'))
|
|
511
|
-
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
512
|
-
type: "pisell2-plus"
|
|
513
|
-
}),
|
|
514
|
-
size: "large",
|
|
515
|
-
onClick: function onClick() {
|
|
516
|
-
return setIsOpenAddModal(true);
|
|
517
|
-
}
|
|
518
|
-
}, locales.getText('wallet-pass-gallery.add')) : null);
|
|
558
|
+
}, hideTitle ? null : /*#__PURE__*/React.createElement(Title, null, (utils === null || utils === void 0 || (_utils$translation = utils.translation) === null || _utils$translation === void 0 ? void 0 : _utils$translation.call(utils, (_getWalletDetail$data = _getWalletDetail.data) === null || _getWalletDetail$data === void 0 || (_getWalletDetail$data = _getWalletDetail$data.data) === null || _getWalletDetail$data === void 0 ? void 0 : _getWalletDetail$data.name)) || locales.getText('wallet-pass-gallery.wallet')));
|
|
519
559
|
var renderAvaliableList = function renderAvaliableList() {
|
|
520
560
|
if (platform === 'h5') {
|
|
521
561
|
return /*#__PURE__*/React.createElement(PassList, {
|
|
@@ -549,7 +589,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
549
589
|
flex: "auto"
|
|
550
590
|
}, /*#__PURE__*/React.createElement(PassDetail, {
|
|
551
591
|
dataSource: _currentItem,
|
|
552
|
-
platform: platform
|
|
592
|
+
platform: platform,
|
|
593
|
+
onListRefresh: listReload
|
|
553
594
|
})));
|
|
554
595
|
};
|
|
555
596
|
var renderUnavailableList = function renderUnavailableList() {
|
|
@@ -585,7 +626,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
585
626
|
flex: "auto"
|
|
586
627
|
}, /*#__PURE__*/React.createElement(PassDetail, {
|
|
587
628
|
dataSource: _currentItem,
|
|
588
|
-
platform: platform
|
|
629
|
+
platform: platform,
|
|
630
|
+
onListRefresh: listReload
|
|
589
631
|
})));
|
|
590
632
|
};
|
|
591
633
|
var renderTabBar = function renderTabBar(props, DefaultTabBar) {
|
|
@@ -621,7 +663,14 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
621
663
|
label: locales.getText('wallet-pass-gallery.unavailable'),
|
|
622
664
|
children: renderUnavailableList(),
|
|
623
665
|
badge: ((_getUnavailableList$d2 = _getUnavailableList.data) === null || _getUnavailableList$d2 === void 0 ? void 0 : _getUnavailableList$d2.count) || 0
|
|
624
|
-
}]
|
|
666
|
+
}],
|
|
667
|
+
tabBarExtraContent: platform === 'pc' && !hideAddButton ? /*#__PURE__*/React.createElement(Button, {
|
|
668
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
669
|
+
type: "pisell2-plus"
|
|
670
|
+
}),
|
|
671
|
+
size: "large",
|
|
672
|
+
onClick: handleAddClick
|
|
673
|
+
}, locales.getText('wallet-pass-gallery.add')) : null
|
|
625
674
|
}));
|
|
626
675
|
};
|
|
627
676
|
var renderPcContent = function renderPcContent() {
|
|
@@ -643,6 +692,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
643
692
|
limit_status = item.limit_status,
|
|
644
693
|
_item$product_cover = item.product_cover,
|
|
645
694
|
product_cover = _item$product_cover === void 0 ? '' : _item$product_cover,
|
|
695
|
+
unified_available_status = item.unified_available_status,
|
|
646
696
|
_item$unified_message = item.unified_messages,
|
|
647
697
|
unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
|
|
648
698
|
_item$par_value = item.par_value,
|
|
@@ -655,7 +705,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
655
705
|
var _shop$name = shop.name,
|
|
656
706
|
name = _shop$name === void 0 ? '' : _shop$name;
|
|
657
707
|
var isActive = id === (currentUnbindItem === null || currentUnbindItem === void 0 ? void 0 : currentUnbindItem.id) && platform === 'pc';
|
|
658
|
-
var
|
|
708
|
+
var isDisabled = unified_available_status === 0;
|
|
659
709
|
var isDiscountCard = tag === 'product_discount_card';
|
|
660
710
|
var getBalanceTitle = function getBalanceTitle() {
|
|
661
711
|
if (tag === 'point_card') {
|
|
@@ -674,8 +724,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
674
724
|
showRedeem: false,
|
|
675
725
|
showQrCode: false,
|
|
676
726
|
cover: product_cover,
|
|
677
|
-
disabled:
|
|
678
|
-
showDisabledReason:
|
|
727
|
+
disabled: isDisabled,
|
|
728
|
+
showDisabledReason: isDisabled,
|
|
679
729
|
disabledReason: title,
|
|
680
730
|
propStyle: {
|
|
681
731
|
marginBottom: 10
|
|
@@ -702,8 +752,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
702
752
|
}));
|
|
703
753
|
};
|
|
704
754
|
var renderH5Content = function renderH5Content() {
|
|
705
|
-
var _utils$
|
|
706
|
-
var _walletBar = !(utils !== null && utils !== void 0 && (_utils$
|
|
755
|
+
var _utils$isApp, _utils$translation2, _getWalletDetail$data2;
|
|
756
|
+
var _walletBar = !(utils !== null && utils !== void 0 && (_utils$isApp = utils.isApp) !== null && _utils$isApp !== void 0 && _utils$isApp.call(utils)) && /*#__PURE__*/React.createElement("div", {
|
|
707
757
|
className: "pisell-wallet-pass-gallery-bar"
|
|
708
758
|
}, /*#__PURE__*/React.createElement("div", {
|
|
709
759
|
className: "pisell-wallet-pass-gallery-header-bar-arrow",
|
|
@@ -715,15 +765,13 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
715
765
|
})), /*#__PURE__*/React.createElement("span", {
|
|
716
766
|
className: "header-title"
|
|
717
767
|
}, (utils === null || utils === void 0 || (_utils$translation2 = utils.translation) === null || _utils$translation2 === void 0 ? void 0 : _utils$translation2.call(utils, (_getWalletDetail$data2 = _getWalletDetail.data) === null || _getWalletDetail$data2 === void 0 || (_getWalletDetail$data2 = _getWalletDetail$data2.data) === null || _getWalletDetail$data2 === void 0 ? void 0 : _getWalletDetail$data2.name)) || locales.getText('wallet-pass-gallery.wallet')));
|
|
718
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _walletBar, renderContent(), /*#__PURE__*/React.createElement("div", {
|
|
768
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _walletBar, renderContent(), hideAddButton ? null : /*#__PURE__*/React.createElement("div", {
|
|
719
769
|
style: {
|
|
720
770
|
padding: 24
|
|
721
771
|
}
|
|
722
772
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
723
773
|
size: "large",
|
|
724
|
-
onClick:
|
|
725
|
-
return setIsOpenAddModal(true);
|
|
726
|
-
},
|
|
774
|
+
onClick: handleAddClick,
|
|
727
775
|
block: true
|
|
728
776
|
}, locales.getText('wallet-pass-gallery.button.add'))), /*#__PURE__*/React.createElement(PisellModal, {
|
|
729
777
|
zIndex: 997,
|
|
@@ -737,7 +785,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
737
785
|
title: locales.getText('wallet-pass-gallery.details')
|
|
738
786
|
}, /*#__PURE__*/React.createElement(PassDetail, {
|
|
739
787
|
dataSource: _currentItem,
|
|
740
|
-
platform: platform
|
|
788
|
+
platform: platform,
|
|
789
|
+
onListRefresh: listReload
|
|
741
790
|
})));
|
|
742
791
|
};
|
|
743
792
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -87,7 +87,9 @@ export declare type ErrorCallback = () => void;
|
|
|
87
87
|
* @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
|
|
88
88
|
* @throws 请求失败时抛出错误
|
|
89
89
|
*/
|
|
90
|
-
export declare const getWalletPassList: (params
|
|
90
|
+
export declare const getWalletPassList: (params: IWalletListParmsProps, options?: {
|
|
91
|
+
apiPrefix: string;
|
|
92
|
+
}) => Promise<{
|
|
91
93
|
list: IWalletListItemProps[];
|
|
92
94
|
count: number;
|
|
93
95
|
}>;
|
|
@@ -166,6 +168,14 @@ export interface IAssetItem {
|
|
|
166
168
|
export declare const getAssetList: (params: IAssetListProps) => Promise<{
|
|
167
169
|
list: IAssetItem[];
|
|
168
170
|
}>;
|
|
171
|
+
/**
|
|
172
|
+
* 资产明细(admin)
|
|
173
|
+
*/
|
|
174
|
+
export declare const getActiveLogs: (params: {
|
|
175
|
+
filter_card_id: string;
|
|
176
|
+
}) => Promise<{
|
|
177
|
+
list: IAssetItem[];
|
|
178
|
+
}>;
|
|
169
179
|
/**
|
|
170
180
|
* 获取资产详情
|
|
171
181
|
* @param params 接口请求参数
|