@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
|
@@ -55,15 +55,21 @@ var { Text } = import_antd.Typography;
|
|
|
55
55
|
var PassDetail = (props) => {
|
|
56
56
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
57
57
|
const { symbol = "$" } = (0, import_materials.usePisellConfig)();
|
|
58
|
-
const {
|
|
58
|
+
const {
|
|
59
|
+
dataSource,
|
|
60
|
+
platform = "pc",
|
|
61
|
+
showTimeLine = true,
|
|
62
|
+
onListRefresh
|
|
63
|
+
} = props;
|
|
59
64
|
const [activeKey, setActiveKey] = (0, import_react.useState)("detail");
|
|
60
65
|
const [rechargeOpen, setRechargeOpen] = (0, import_react.useState)(false);
|
|
61
66
|
const containerRef = (0, import_react.useRef)(null);
|
|
62
67
|
const isIndicatorVisibleRef = (0, import_react.useRef)(false);
|
|
63
68
|
const context = (0, import_useEngineContext.default)();
|
|
64
|
-
const { store } = (
|
|
69
|
+
const { store, isTerminal, interaction, isApp } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
65
70
|
const { apiPrefix } = ((_b = context.appHelper) == null ? void 0 : _b.constants) || { apiPrefix: "/h5" };
|
|
66
71
|
const timezone = ((_g = (_f = (_e = (_d = (_c = store == null ? void 0 : store.getState) == null ? void 0 : _c.call(store)) == null ? void 0 : _d.global) == null ? void 0 : _e.symbol) == null ? void 0 : _f.shop) == null ? void 0 : _g.timezone) || "Asia/Shanghai";
|
|
72
|
+
const isTerminalEnv = (typeof isTerminal === "function" ? isTerminal() : !!isTerminal) || (isApp == null ? void 0 : isApp());
|
|
67
73
|
import_utils.locales.init(import_locales.default, ((_i = (_h = context == null ? void 0 : context.engine) == null ? void 0 : _h.props) == null ? void 0 : _i.locale) || "en");
|
|
68
74
|
if ((_k = (_j = context.appHelper) == null ? void 0 : _j.utils) == null ? void 0 : _k.request) {
|
|
69
75
|
import_utils4.request.setRequest((_m = (_l = context.appHelper) == null ? void 0 : _l.utils) == null ? void 0 : _m.request);
|
|
@@ -85,10 +91,28 @@ var PassDetail = (props) => {
|
|
|
85
91
|
extension_data = [],
|
|
86
92
|
customer_order_behavior_count = 0
|
|
87
93
|
} = product || {};
|
|
88
|
-
const _getDetail = (0, import_ahooks.useRequest)(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
const _getDetail = (0, import_ahooks.useRequest)(
|
|
95
|
+
() => (0, import_serve.getDetailApi)({
|
|
96
|
+
id,
|
|
97
|
+
apiPrefix,
|
|
98
|
+
order_behavior_count_customer_id: customer_id
|
|
99
|
+
}),
|
|
100
|
+
{
|
|
101
|
+
ready: !!id,
|
|
102
|
+
refreshDeps: [id, customer_id]
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
(0, import_react.useEffect)(() => {
|
|
106
|
+
var _a2, _b2;
|
|
107
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.mountFunction) == null ? void 0 : _b2.call(
|
|
108
|
+
_a2,
|
|
109
|
+
"customer",
|
|
110
|
+
"recharge",
|
|
111
|
+
async (strVal) => {
|
|
112
|
+
return onListRefresh == null ? void 0 : onListRefresh();
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}, [id]);
|
|
92
116
|
const scheduleList = (0, import_react.useMemo)(() => {
|
|
93
117
|
return (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [];
|
|
94
118
|
}, [custom_schedule_snapshot]);
|
|
@@ -124,7 +148,10 @@ var PassDetail = (props) => {
|
|
|
124
148
|
}, []);
|
|
125
149
|
const descs = (0, import_react.useMemo)(() => {
|
|
126
150
|
var _a2, _b2, _c2;
|
|
127
|
-
const detail = (0, import_utils3.formatScheduleText)(
|
|
151
|
+
const detail = (0, import_utils3.formatScheduleText)(
|
|
152
|
+
scheduleList,
|
|
153
|
+
(_b2 = (_a2 = context == null ? void 0 : context.engine) == null ? void 0 : _a2.props) == null ? void 0 : _b2.locale
|
|
154
|
+
);
|
|
128
155
|
let expireText = expire_date ? expire_date : import_utils.locales.getText("wallet-pass-gallery.expireDate");
|
|
129
156
|
if (scheduleList.length > 0) {
|
|
130
157
|
let validityTexts = "";
|
|
@@ -190,6 +217,24 @@ var PassDetail = (props) => {
|
|
|
190
217
|
setActiveKey(_key);
|
|
191
218
|
}
|
|
192
219
|
}, []);
|
|
220
|
+
const handleRechargeClick = (0, import_react.useCallback)(() => {
|
|
221
|
+
var _a2, _b2;
|
|
222
|
+
if (isTerminalEnv) {
|
|
223
|
+
const productId = (product == null ? void 0 : product.id) || (dataSource == null ? void 0 : dataSource.product_id) || "";
|
|
224
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
|
|
225
|
+
module: "customer",
|
|
226
|
+
key: "recharge",
|
|
227
|
+
data: {
|
|
228
|
+
product_id: String(productId || ""),
|
|
229
|
+
card_id: String(id || ""),
|
|
230
|
+
card_code: String(code || ""),
|
|
231
|
+
customer_id: String(customer_id || "")
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
setRechargeOpen(true);
|
|
237
|
+
}, [isTerminalEnv, id, code, customer_id, product, dataSource]);
|
|
193
238
|
if (!dataSource) {
|
|
194
239
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, null);
|
|
195
240
|
}
|
|
@@ -230,7 +275,17 @@ var PassDetail = (props) => {
|
|
|
230
275
|
const renderTimeLine = () => {
|
|
231
276
|
if (tag === "product_discount_card") return null;
|
|
232
277
|
if (!showTimeLine) return null;
|
|
233
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
278
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
279
|
+
import_timelineSection.default,
|
|
280
|
+
{
|
|
281
|
+
code,
|
|
282
|
+
tag,
|
|
283
|
+
timezone,
|
|
284
|
+
apiPrefix,
|
|
285
|
+
isTerminalEnv,
|
|
286
|
+
interaction
|
|
287
|
+
}
|
|
288
|
+
);
|
|
234
289
|
};
|
|
235
290
|
if (!props.dataSource) return null;
|
|
236
291
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -281,7 +336,7 @@ var PassDetail = (props) => {
|
|
|
281
336
|
{
|
|
282
337
|
type: "primary",
|
|
283
338
|
size: "large",
|
|
284
|
-
onClick:
|
|
339
|
+
onClick: handleRechargeClick
|
|
285
340
|
},
|
|
286
341
|
import_utils.locales.getText("wallet-pass-gallery.recharge")
|
|
287
342
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -310,7 +365,7 @@ var PassDetail = (props) => {
|
|
|
310
365
|
{
|
|
311
366
|
appleWalletUrl: (_o = _getDetail.data) == null ? void 0 : _o.apple_wallet_url,
|
|
312
367
|
googleWalletUrl: (_p = _getDetail.data) == null ? void 0 : _p.google_wallet_url,
|
|
313
|
-
onRechargeClick: ((_q = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _q.hide_recharge) === 0 ?
|
|
368
|
+
onRechargeClick: ((_q = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _q.hide_recharge) === 0 ? handleRechargeClick : void 0,
|
|
314
369
|
platform
|
|
315
370
|
}
|
|
316
371
|
) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -36,7 +36,9 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_materials = require("@pisell/materials");
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
39
40
|
var PassList = (props) => {
|
|
41
|
+
var _a;
|
|
40
42
|
const {
|
|
41
43
|
dataSource = [],
|
|
42
44
|
value,
|
|
@@ -47,6 +49,10 @@ var PassList = (props) => {
|
|
|
47
49
|
loading,
|
|
48
50
|
onEditHolder
|
|
49
51
|
} = props;
|
|
52
|
+
const context = (0, import_useEngineContext.default)();
|
|
53
|
+
const utils = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
54
|
+
const { isTerminal, isApp } = utils;
|
|
55
|
+
const isTerminalEnv = (typeof isTerminal === "function" ? isTerminal() : !!isTerminal) || (isApp == null ? void 0 : isApp());
|
|
50
56
|
const _loadMore = /* @__PURE__ */ import_react.default.createElement(
|
|
51
57
|
"div",
|
|
52
58
|
{
|
|
@@ -89,6 +95,7 @@ var PassList = (props) => {
|
|
|
89
95
|
limit_status,
|
|
90
96
|
product_cover = "",
|
|
91
97
|
par_value = "",
|
|
98
|
+
unified_available_status,
|
|
92
99
|
unified_messages = {},
|
|
93
100
|
holder,
|
|
94
101
|
metadata,
|
|
@@ -115,8 +122,8 @@ var PassList = (props) => {
|
|
|
115
122
|
showQrCode: true,
|
|
116
123
|
showBalance: !isDiscountCard,
|
|
117
124
|
cover: product_cover,
|
|
118
|
-
disabled:
|
|
119
|
-
showDisabledReason:
|
|
125
|
+
disabled: unified_available_status === 0,
|
|
126
|
+
showDisabledReason: unified_available_status === 0,
|
|
120
127
|
disabledReason,
|
|
121
128
|
style: { marginBottom: 16, width: "100%" },
|
|
122
129
|
showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
|
|
@@ -130,12 +137,12 @@ var PassList = (props) => {
|
|
|
130
137
|
code: encoded,
|
|
131
138
|
validDate: expire_date,
|
|
132
139
|
holder,
|
|
133
|
-
onSetHolder: () => {
|
|
134
|
-
var
|
|
140
|
+
onSetHolder: isTerminalEnv ? void 0 : () => {
|
|
141
|
+
var _a2;
|
|
135
142
|
onEditHolder == null ? void 0 : onEditHolder({
|
|
136
143
|
wallet_pass_detail_id: id,
|
|
137
144
|
customer_id: holder == null ? void 0 : holder.customer_id,
|
|
138
|
-
form_id: (
|
|
145
|
+
form_id: (_a2 = holder == null ? void 0 : holder.metadata) == null ? void 0 : _a2.custom_id
|
|
139
146
|
});
|
|
140
147
|
}
|
|
141
148
|
}
|
|
@@ -4,6 +4,9 @@ interface TimelineSectionProps {
|
|
|
4
4
|
code: string;
|
|
5
5
|
tag: string;
|
|
6
6
|
timezone: string;
|
|
7
|
+
apiPrefix?: '/shop' | '/h5';
|
|
8
|
+
isTerminalEnv?: boolean;
|
|
9
|
+
interaction?: any;
|
|
7
10
|
}
|
|
8
11
|
declare const TimelineSection: (props: TimelineSectionProps) => React.JSX.Element;
|
|
9
12
|
export default TimelineSection;
|
|
@@ -45,7 +45,7 @@ import_dayjs.default.extend(import_timezone.default);
|
|
|
45
45
|
import_dayjs.default.extend(import_utc.default);
|
|
46
46
|
var stateTimeUnix = 1723255863;
|
|
47
47
|
var TimelineSection = (props) => {
|
|
48
|
-
const { code, tag, timezone } = props;
|
|
48
|
+
const { code, tag, timezone, apiPrefix, isTerminalEnv, interaction } = props;
|
|
49
49
|
const { symbol = "$" } = (0, import_materials.usePisellConfig)();
|
|
50
50
|
const [isShowtimeLineDetail, setIsShowtimeLineDetail] = import_react.default.useState(false);
|
|
51
51
|
const [isSpending, setIsSpending] = import_react.default.useState(true);
|
|
@@ -198,7 +198,22 @@ var TimelineSection = (props) => {
|
|
|
198
198
|
label: import_utils.locales.getText("wallet-pass-gallery.viewOrder"),
|
|
199
199
|
value: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_code) ? `#${timeLineDetail == null ? void 0 : timeLineDetail.resource_code}` : (timeLineDetail == null ? void 0 : timeLineDetail.transaction_id) ? `#${timeLineDetail == null ? void 0 : timeLineDetail.transaction_id}` : "",
|
|
200
200
|
isLink: !!(timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id)),
|
|
201
|
-
|
|
201
|
+
onClick: () => {
|
|
202
|
+
var _a, _b;
|
|
203
|
+
if (isTerminalEnv) {
|
|
204
|
+
return (_b = (_a = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a.postMessageToApp) == null ? void 0 : _b.call(_a, {
|
|
205
|
+
module: "booking",
|
|
206
|
+
key: "view_order",
|
|
207
|
+
data: {
|
|
208
|
+
order_id: timeLineDetail == null ? void 0 : timeLineDetail.resource_id
|
|
209
|
+
},
|
|
210
|
+
origin: "/booking"
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
const link = apiPrefix === "/shop" ? `/admin/order/orders/detail?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}` : `/order/details?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}`;
|
|
214
|
+
location.replace(link);
|
|
215
|
+
},
|
|
216
|
+
link: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id) ? true : void 0
|
|
202
217
|
}
|
|
203
218
|
],
|
|
204
219
|
labelColor: "#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;
|
|
@@ -62,6 +62,7 @@ var TAGS = [
|
|
|
62
62
|
];
|
|
63
63
|
var WalletPassGallery = (props) => {
|
|
64
64
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
65
|
+
const { hideAddButton, hideTitle, customer, platform: platformProp } = props;
|
|
65
66
|
const [activeKey, setActiveKey] = (0, import_react.useState)("available");
|
|
66
67
|
const [currentItemId, setCurrentItemId] = (0, import_react.useState)(void 0);
|
|
67
68
|
const [isOpenAddModal, setIsOpenAddModal] = (0, import_react.useState)(false);
|
|
@@ -70,16 +71,20 @@ var WalletPassGallery = (props) => {
|
|
|
70
71
|
const [updateHolderLoading, setUpdateHolderLoading] = (0, import_react.useState)(false);
|
|
71
72
|
const context = (0, import_useEngineContext.default)();
|
|
72
73
|
const utils = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
74
|
+
const { apiPrefix } = ((_b = context.appHelper) == null ? void 0 : _b.constants) || { apiPrefix: "/h5" };
|
|
75
|
+
const { isTerminal, isApp, interaction } = utils;
|
|
76
|
+
const isTerminalEnv = (typeof isTerminal === "function" ? isTerminal() : !!isTerminal) || (isApp == null ? void 0 : isApp());
|
|
73
77
|
const platform = (0, import_react.useMemo)(() => {
|
|
78
|
+
if (platformProp) return platformProp;
|
|
74
79
|
if (utils.isMobile) {
|
|
75
80
|
return utils.isMobile() ? "h5" : "pc";
|
|
76
81
|
}
|
|
77
82
|
if (typeof window !== "undefined") {
|
|
78
83
|
return window.innerWidth <= 768 ? "h5" : "pc";
|
|
79
84
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
import_utils.locales.init(import_locales.default, ((_d =
|
|
85
|
+
return "pc";
|
|
86
|
+
}, [utils, platformProp]);
|
|
87
|
+
import_utils.locales.init(import_locales.default, ((_d = (_c = context == null ? void 0 : context.engine) == null ? void 0 : _c.props) == null ? void 0 : _d.locale) || "en");
|
|
83
88
|
import_utils2.request.setRequest(utils == null ? void 0 : utils.request);
|
|
84
89
|
const _getWalletDetail = (0, import_ahooks.useRequest)(import_serve.getWalletDetail, {
|
|
85
90
|
manual: true
|
|
@@ -89,15 +94,21 @@ var WalletPassGallery = (props) => {
|
|
|
89
94
|
const _searchParams = new URLSearchParams(window.location.search);
|
|
90
95
|
const walletId = _searchParams.get("id");
|
|
91
96
|
const holderId = _searchParams.get("holder_id");
|
|
92
|
-
const res = await (0, import_serve.getWalletPassList)(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
const res = await (0, import_serve.getWalletPassList)(
|
|
98
|
+
{
|
|
99
|
+
available: 1,
|
|
100
|
+
num: 20,
|
|
101
|
+
skip: (d == null ? void 0 : d.nextId) || 1,
|
|
102
|
+
tags: TAGS,
|
|
103
|
+
filter_wallet_id: walletId || void 0,
|
|
104
|
+
filter_holder_id: holderId || void 0,
|
|
105
|
+
with: ["customScheduleSnapshot", "holder.detail"],
|
|
106
|
+
customer_id: customer == null ? void 0 : customer.id
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
apiPrefix
|
|
110
|
+
}
|
|
111
|
+
);
|
|
101
112
|
return {
|
|
102
113
|
list: (res == null ? void 0 : res.list) || [],
|
|
103
114
|
count: (res == null ? void 0 : res.count) || 0,
|
|
@@ -119,15 +130,21 @@ var WalletPassGallery = (props) => {
|
|
|
119
130
|
const _searchParams = new URLSearchParams(window.location.search);
|
|
120
131
|
const walletId = _searchParams.get("id");
|
|
121
132
|
const holderId = _searchParams.get("holder_id");
|
|
122
|
-
const res = await (0, import_serve.getWalletPassList)(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
const res = await (0, import_serve.getWalletPassList)(
|
|
134
|
+
{
|
|
135
|
+
available: 0,
|
|
136
|
+
num: 20,
|
|
137
|
+
skip: (d == null ? void 0 : d.nextId) || 1,
|
|
138
|
+
tags: TAGS,
|
|
139
|
+
filter_wallet_id: walletId || void 0,
|
|
140
|
+
filter_holder_id: holderId || void 0,
|
|
141
|
+
with: ["customScheduleSnapshot", "holder.detail"],
|
|
142
|
+
customer_id: customer == null ? void 0 : customer.id
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
apiPrefix
|
|
146
|
+
}
|
|
147
|
+
);
|
|
131
148
|
return {
|
|
132
149
|
list: (res == null ? void 0 : res.list) || [],
|
|
133
150
|
count: (res == null ? void 0 : res.count) || 0,
|
|
@@ -150,8 +167,8 @@ var WalletPassGallery = (props) => {
|
|
|
150
167
|
if (walletId) {
|
|
151
168
|
_getWalletDetail.runAsync(walletId);
|
|
152
169
|
}
|
|
153
|
-
const req1 = _getAvailableList.
|
|
154
|
-
const req2 = _getUnavailableList.
|
|
170
|
+
const req1 = _getAvailableList.reloadAsync();
|
|
171
|
+
const req2 = _getUnavailableList.reloadAsync();
|
|
155
172
|
let req3 = passId ? (0, import_serve.getWalletPassDetail)(passId, {
|
|
156
173
|
with: ["holder.detail"]
|
|
157
174
|
}) : Promise.resolve();
|
|
@@ -222,7 +239,22 @@ var WalletPassGallery = (props) => {
|
|
|
222
239
|
}
|
|
223
240
|
}
|
|
224
241
|
});
|
|
242
|
+
}, [customer]);
|
|
243
|
+
(0, import_react.useEffect)(() => {
|
|
244
|
+
var _a2, _b2;
|
|
245
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.mountFunction) == null ? void 0 : _b2.call(_a2, "customer", "new", () => {
|
|
246
|
+
try {
|
|
247
|
+
_getAvailableList.reloadAsync();
|
|
248
|
+
_getUnavailableList.reloadAsync();
|
|
249
|
+
} catch (err) {
|
|
250
|
+
console.error(err);
|
|
251
|
+
}
|
|
252
|
+
});
|
|
225
253
|
}, []);
|
|
254
|
+
const listReload = () => {
|
|
255
|
+
_getAvailableList.reloadAsync();
|
|
256
|
+
_getUnavailableList.reloadAsync();
|
|
257
|
+
};
|
|
226
258
|
const _getUnbindList = (0, import_ahooks.useRequest)(import_serve.getUnbindList, {
|
|
227
259
|
manual: true,
|
|
228
260
|
onSuccess: (data) => {
|
|
@@ -266,6 +298,20 @@ var WalletPassGallery = (props) => {
|
|
|
266
298
|
const newId = key === KEYS.unavailable ? (_a2 = _unavailable[0]) == null ? void 0 : _a2.id : (_b2 = _avaliable[0]) == null ? void 0 : _b2.id;
|
|
267
299
|
setCurrentItemId(newId);
|
|
268
300
|
};
|
|
301
|
+
const handleAddClick = () => {
|
|
302
|
+
var _a2, _b2;
|
|
303
|
+
if (isTerminalEnv) {
|
|
304
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
|
|
305
|
+
module: "customer",
|
|
306
|
+
key: "new",
|
|
307
|
+
data: {
|
|
308
|
+
customer_id: String((customer == null ? void 0 : customer.id) || "")
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
setIsOpenAddModal(true);
|
|
314
|
+
};
|
|
269
315
|
const _resetSearchState = () => {
|
|
270
316
|
setCurrentUnbindItem(null);
|
|
271
317
|
_getUnbindList.mutate([]);
|
|
@@ -372,15 +418,7 @@ var WalletPassGallery = (props) => {
|
|
|
372
418
|
);
|
|
373
419
|
return found2;
|
|
374
420
|
}, [currentItemId, _avaliable, _unavailable]);
|
|
375
|
-
const _pcTitle = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_title" }, /* @__PURE__ */ import_react.default.createElement(Title, null, ((_g = utils == null ? void 0 : utils.translation) == null ? void 0 : _g.call(utils, (_f = (_e = _getWalletDetail.data) == null ? void 0 : _e.data) == null ? void 0 : _f.name)) || import_utils.locales.getText("wallet-pass-gallery.wallet"))
|
|
376
|
-
import_antd.Button,
|
|
377
|
-
{
|
|
378
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-plus" }),
|
|
379
|
-
size: "large",
|
|
380
|
-
onClick: () => setIsOpenAddModal(true)
|
|
381
|
-
},
|
|
382
|
-
import_utils.locales.getText("wallet-pass-gallery.add")
|
|
383
|
-
) : null);
|
|
421
|
+
const _pcTitle = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_title" }, hideTitle ? null : /* @__PURE__ */ import_react.default.createElement(Title, null, ((_g = utils == null ? void 0 : utils.translation) == null ? void 0 : _g.call(utils, (_f = (_e = _getWalletDetail.data) == null ? void 0 : _e.data) == null ? void 0 : _f.name)) || import_utils.locales.getText("wallet-pass-gallery.wallet")));
|
|
384
422
|
const renderAvaliableList = () => {
|
|
385
423
|
if (platform === "h5") {
|
|
386
424
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -407,7 +445,14 @@ var WalletPassGallery = (props) => {
|
|
|
407
445
|
onChange: _handleCardClick,
|
|
408
446
|
onEditHolder: setEditHolderData
|
|
409
447
|
}
|
|
410
|
-
)), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(
|
|
448
|
+
)), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(
|
|
449
|
+
import_passDetail.default,
|
|
450
|
+
{
|
|
451
|
+
dataSource: _currentItem,
|
|
452
|
+
platform,
|
|
453
|
+
onListRefresh: listReload
|
|
454
|
+
}
|
|
455
|
+
)));
|
|
411
456
|
};
|
|
412
457
|
const renderUnavailableList = () => {
|
|
413
458
|
if (platform === "h5") {
|
|
@@ -435,9 +480,18 @@ var WalletPassGallery = (props) => {
|
|
|
435
480
|
onChange: _handleCardClick,
|
|
436
481
|
onEditHolder: setEditHolderData
|
|
437
482
|
}
|
|
438
|
-
)), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(
|
|
483
|
+
)), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(
|
|
484
|
+
import_passDetail.default,
|
|
485
|
+
{
|
|
486
|
+
dataSource: _currentItem,
|
|
487
|
+
platform,
|
|
488
|
+
onListRefresh: listReload
|
|
489
|
+
}
|
|
490
|
+
)));
|
|
491
|
+
};
|
|
492
|
+
const renderTabBar = (props2, DefaultTabBar) => {
|
|
493
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { zIndex: 99, position: "sticky", top: 0 } }, /* @__PURE__ */ import_react.default.createElement(DefaultTabBar, { ...props2, style: { background: "white" } }));
|
|
439
494
|
};
|
|
440
|
-
const renderTabBar = (props2, DefaultTabBar) => /* @__PURE__ */ import_react.default.createElement("div", { style: { zIndex: 99, position: "sticky", top: 0 } }, /* @__PURE__ */ import_react.default.createElement(DefaultTabBar, { ...props2, style: { background: "white" } }));
|
|
441
495
|
const renderContent = () => {
|
|
442
496
|
var _a2, _b2;
|
|
443
497
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -461,7 +515,16 @@ var WalletPassGallery = (props) => {
|
|
|
461
515
|
children: renderUnavailableList(),
|
|
462
516
|
badge: ((_b2 = _getUnavailableList.data) == null ? void 0 : _b2.count) || 0
|
|
463
517
|
}
|
|
464
|
-
]
|
|
518
|
+
],
|
|
519
|
+
tabBarExtraContent: platform === "pc" && !hideAddButton ? /* @__PURE__ */ import_react.default.createElement(
|
|
520
|
+
import_antd.Button,
|
|
521
|
+
{
|
|
522
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-plus" }),
|
|
523
|
+
size: "large",
|
|
524
|
+
onClick: handleAddClick
|
|
525
|
+
},
|
|
526
|
+
import_utils.locales.getText("wallet-pass-gallery.add")
|
|
527
|
+
) : null
|
|
465
528
|
}
|
|
466
529
|
));
|
|
467
530
|
};
|
|
@@ -479,6 +542,7 @@ var WalletPassGallery = (props) => {
|
|
|
479
542
|
shop,
|
|
480
543
|
limit_status,
|
|
481
544
|
product_cover = "",
|
|
545
|
+
unified_available_status,
|
|
482
546
|
unified_messages = {},
|
|
483
547
|
par_value = "",
|
|
484
548
|
tag = "",
|
|
@@ -487,7 +551,7 @@ var WalletPassGallery = (props) => {
|
|
|
487
551
|
const { title = "" } = unified_messages;
|
|
488
552
|
const { name = "" } = shop;
|
|
489
553
|
const isActive = id === (currentUnbindItem == null ? void 0 : currentUnbindItem.id) && platform === "pc";
|
|
490
|
-
const
|
|
554
|
+
const isDisabled = unified_available_status === 0;
|
|
491
555
|
const isDiscountCard = tag === "product_discount_card";
|
|
492
556
|
const getBalanceTitle = () => {
|
|
493
557
|
if (tag === "point_card") {
|
|
@@ -509,8 +573,8 @@ var WalletPassGallery = (props) => {
|
|
|
509
573
|
showRedeem: false,
|
|
510
574
|
showQrCode: false,
|
|
511
575
|
cover: product_cover,
|
|
512
|
-
disabled:
|
|
513
|
-
showDisabledReason:
|
|
576
|
+
disabled: isDisabled,
|
|
577
|
+
showDisabledReason: isDisabled,
|
|
514
578
|
disabledReason: title,
|
|
515
579
|
propStyle: { marginBottom: 10 },
|
|
516
580
|
showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
|
|
@@ -534,8 +598,8 @@ var WalletPassGallery = (props) => {
|
|
|
534
598
|
);
|
|
535
599
|
};
|
|
536
600
|
const renderH5Content = () => {
|
|
537
|
-
var _a2, _b2, _c2, _d2
|
|
538
|
-
const _walletBar = !((
|
|
601
|
+
var _a2, _b2, _c2, _d2;
|
|
602
|
+
const _walletBar = !((_a2 = utils == null ? void 0 : utils.isApp) == null ? void 0 : _a2.call(utils)) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery-bar" }, /* @__PURE__ */ import_react.default.createElement(
|
|
539
603
|
"div",
|
|
540
604
|
{
|
|
541
605
|
className: "pisell-wallet-pass-gallery-header-bar-arrow",
|
|
@@ -544,15 +608,15 @@ var WalletPassGallery = (props) => {
|
|
|
544
608
|
}
|
|
545
609
|
},
|
|
546
610
|
/* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-chevron-left" })
|
|
547
|
-
), /* @__PURE__ */ import_react.default.createElement("span", { className: "header-title" }, ((
|
|
548
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, _walletBar, renderContent(), /* @__PURE__ */ import_react.default.createElement(
|
|
611
|
+
), /* @__PURE__ */ import_react.default.createElement("span", { className: "header-title" }, ((_d2 = utils == null ? void 0 : utils.translation) == null ? void 0 : _d2.call(utils, (_c2 = (_b2 = _getWalletDetail.data) == null ? void 0 : _b2.data) == null ? void 0 : _c2.name)) || import_utils.locales.getText("wallet-pass-gallery.wallet")));
|
|
612
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, _walletBar, renderContent(), hideAddButton ? null : /* @__PURE__ */ import_react.default.createElement(
|
|
549
613
|
"div",
|
|
550
614
|
{
|
|
551
615
|
style: {
|
|
552
616
|
padding: 24
|
|
553
617
|
}
|
|
554
618
|
},
|
|
555
|
-
/* @__PURE__ */ import_react.default.createElement(import_antd.Button, { size: "large", onClick:
|
|
619
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Button, { size: "large", onClick: handleAddClick, block: true }, import_utils.locales.getText("wallet-pass-gallery.button.add"))
|
|
556
620
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
557
621
|
import_materials.PisellModal,
|
|
558
622
|
{
|
|
@@ -564,7 +628,14 @@ var WalletPassGallery = (props) => {
|
|
|
564
628
|
footer: null,
|
|
565
629
|
title: import_utils.locales.getText("wallet-pass-gallery.details")
|
|
566
630
|
},
|
|
567
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
631
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
632
|
+
import_passDetail.default,
|
|
633
|
+
{
|
|
634
|
+
dataSource: _currentItem,
|
|
635
|
+
platform,
|
|
636
|
+
onListRefresh: listReload
|
|
637
|
+
}
|
|
638
|
+
)
|
|
568
639
|
));
|
|
569
640
|
};
|
|
570
641
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -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 接口请求参数
|
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
bindCodeToCustomer: () => bindCodeToCustomer,
|
|
23
|
+
getActiveLogs: () => getActiveLogs,
|
|
23
24
|
getAssetList: () => getAssetList,
|
|
24
25
|
getDetailApi: () => getDetailApi,
|
|
25
26
|
getUnbindList: () => getUnbindList,
|
|
@@ -34,9 +35,9 @@ __export(serve_exports, {
|
|
|
34
35
|
module.exports = __toCommonJS(serve_exports);
|
|
35
36
|
var import_utils = require("../../utils");
|
|
36
37
|
var import_utils2 = require("@pisell/utils");
|
|
37
|
-
var getWalletPassList = async (params) => {
|
|
38
|
+
var getWalletPassList = async (params, options) => {
|
|
38
39
|
try {
|
|
39
|
-
const { data } = await import_utils.request.getRequest().get(
|
|
40
|
+
const { data } = await import_utils.request.getRequest().get(`${(options == null ? void 0 : options.apiPrefix) || "/h5"}/machinecode/lowcode/list`, params);
|
|
40
41
|
return data || { list: [], count: 0 };
|
|
41
42
|
} catch (error) {
|
|
42
43
|
console.error(
|
|
@@ -59,7 +60,10 @@ var goOrder = async (params) => {
|
|
|
59
60
|
const { data } = await import_utils.request.getRequest().post(`/h5/store/order/add`, params);
|
|
60
61
|
return data;
|
|
61
62
|
} catch (error) {
|
|
62
|
-
console.error(
|
|
63
|
+
console.error(
|
|
64
|
+
import_utils2.locales.getText("wallet-pass-gallery.log.orderFailed"),
|
|
65
|
+
error
|
|
66
|
+
);
|
|
63
67
|
throw error;
|
|
64
68
|
}
|
|
65
69
|
};
|
|
@@ -70,16 +74,24 @@ var getAssetList = async (params) => {
|
|
|
70
74
|
const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params);
|
|
71
75
|
return data;
|
|
72
76
|
};
|
|
77
|
+
var getActiveLogs = async (params) => {
|
|
78
|
+
const { data } = await import_utils.request.getRequest().get(`/shop/asset`, params);
|
|
79
|
+
return data;
|
|
80
|
+
};
|
|
73
81
|
var getDetailApi = async (params) => {
|
|
74
|
-
const { data } = await import_utils.request.getRequest().get(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
const { data } = await import_utils.request.getRequest().get(
|
|
83
|
+
`${params.apiPrefix || "/h5"}/machinecode/lowcode/detail/${params.id}`,
|
|
84
|
+
{
|
|
85
|
+
order_behavior_count: 1,
|
|
86
|
+
// 订单行为次数
|
|
87
|
+
order_behavior_count_customer: 1,
|
|
88
|
+
// 客户订单行为次数
|
|
89
|
+
order_behavior_count_customer_id: params.apiPrefix === "/shop" ? params.order_behavior_count_customer_id : void 0
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
isOriginHost: true
|
|
93
|
+
}
|
|
94
|
+
);
|
|
83
95
|
return data;
|
|
84
96
|
};
|
|
85
97
|
var orderRechargeProduct = async (params) => {
|
|
@@ -100,6 +112,7 @@ var getWalletPassDetail = async (id, params) => {
|
|
|
100
112
|
// Annotate the CommonJS export names for ESM import in node:
|
|
101
113
|
0 && (module.exports = {
|
|
102
114
|
bindCodeToCustomer,
|
|
115
|
+
getActiveLogs,
|
|
103
116
|
getAssetList,
|
|
104
117
|
getDetailApi,
|
|
105
118
|
getUnbindList,
|
|
@@ -61,7 +61,7 @@ const ClientCardMeta = {
|
|
|
61
61
|
// },
|
|
62
62
|
],
|
|
63
63
|
},
|
|
64
|
-
initialValue: 'b2'
|
|
64
|
+
initialValue: 'b2',
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
67
|
{
|
|
@@ -197,6 +197,12 @@ const ClientCardMeta = {
|
|
|
197
197
|
},
|
|
198
198
|
],
|
|
199
199
|
},
|
|
200
|
+
{
|
|
201
|
+
title: '显示空状态描述',
|
|
202
|
+
name: 'isShowEmptyDescription',
|
|
203
|
+
setter: 'BoolSetter',
|
|
204
|
+
defaultValue: true,
|
|
205
|
+
},
|
|
200
206
|
{
|
|
201
207
|
name: 'extraFields',
|
|
202
208
|
title: { label: '额外字段', tip: '传入类型为Array<string>' },
|
|
@@ -251,8 +257,8 @@ const ClientCardMeta = {
|
|
|
251
257
|
},
|
|
252
258
|
initialValue: {
|
|
253
259
|
isShowLabel: false,
|
|
254
|
-
isShowValue: true
|
|
255
|
-
}
|
|
260
|
+
isShowValue: true,
|
|
261
|
+
},
|
|
256
262
|
},
|
|
257
263
|
},
|
|
258
264
|
},
|