@pisell/private-materials 6.4.55 → 6.4.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/actionButtons/index.js +15 -7
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/footer/utils.js +8 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +23 -19
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info2/cartClientCard/index.js +7 -3
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/checkout/PaymentModal.js +34 -28
- package/es/components/checkout/hooks/useWalletPass.js +36 -21
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/list/List.js +957 -0
- package/es/components/list/List.less +2 -0
- package/es/components/list/ResponsiveWrapper.js +130 -0
- package/es/components/list/TestResponsiveWrapper.js +816 -0
- package/es/components/list/TestResponsiveWrapper.less +968 -0
- package/es/components/list/components/EmptyState/EmptyState.js +75 -0
- package/es/components/list/components/EmptyState/EmptyState.less +121 -0
- package/es/components/list/components/EmptyState/index.js +1 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/es/components/list/components/ListItemSkeleton/index.js +2 -0
- package/es/components/list/components/Pagination/Pagination.js +240 -0
- package/es/components/list/components/Pagination/Pagination.less +439 -0
- package/es/components/list/components/Pagination/index.js +1 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/es/components/list/components/ScrollLoader/index.js +1 -0
- package/es/components/list/components/Tab/Tab.js +43 -0
- package/es/components/list/components/Tab/Tab.less +139 -0
- package/es/components/list/components/Tab/index.js +1 -0
- package/es/components/list/components/Tab/types.js +1 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/es/components/list/components/TabSkeleton/index.js +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
- package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/es/components/list/components/WaterfallList/index.js +1 -0
- package/es/components/list/examples/GroupedListExample.js +207 -0
- package/es/components/list/hooks/index.js +3 -0
- package/es/components/list/hooks/useDevice.js +102 -0
- package/es/components/list/hooks/useListState.js +176 -0
- package/es/components/list/hooks/useWaterfall.js +161 -0
- package/es/components/list/index.js +7 -0
- package/es/components/list/locales.js +107 -0
- package/es/components/list/styles/base.less +39 -0
- package/es/components/list/styles/content.less +416 -0
- package/es/components/list/styles/floatButton.less +107 -0
- package/es/components/list/styles/footer.less +49 -0
- package/es/components/list/styles/header.less +69 -0
- package/es/components/list/styles/responsive.less +166 -0
- package/es/components/list/types.js +1 -0
- package/es/components/list/utils/getText.js +150 -0
- package/es/components/list/utils/index.js +5 -0
- package/es/components/pay/toB/store/hooks.js +19 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- package/es/components/ticketBooking/components/menuBar/index.js +40 -17
- package/es/components/ticketBooking/components/menuBar/index.less +27 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
- package/es/components/ticketBooking/components/timeBar/index.less +1 -0
- package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
- package/es/components/ticketBooking/context/index.js +2 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
- package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
- package/es/components/ticketBooking/index.d.ts +6 -0
- package/es/components/ticketBooking/index.js +86 -11
- package/es/components/ticketBooking/utils/index.js +50 -1
- package/es/components/ticketBooking/utils/productCache.js +184 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/index.js +3 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/actionButtons/index.js +22 -15
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/footer/utils.js +8 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +33 -40
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info2/cartClientCard/index.js +7 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/checkout/PaymentModal.js +20 -16
- package/lib/components/checkout/hooks/useWalletPass.js +57 -45
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/list/List.js +771 -0
- package/lib/components/list/List.less +2 -0
- package/lib/components/list/ResponsiveWrapper.js +145 -0
- package/lib/components/list/TestResponsiveWrapper.js +493 -0
- package/lib/components/list/TestResponsiveWrapper.less +968 -0
- package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
- package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
- package/lib/components/list/components/EmptyState/index.js +35 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
- package/lib/components/list/components/Pagination/Pagination.js +205 -0
- package/lib/components/list/components/Pagination/Pagination.less +439 -0
- package/lib/components/list/components/Pagination/index.js +35 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/lib/components/list/components/ScrollLoader/index.js +35 -0
- package/lib/components/list/components/Tab/Tab.js +72 -0
- package/lib/components/list/components/Tab/Tab.less +139 -0
- package/lib/components/list/components/Tab/index.js +35 -0
- package/lib/components/list/components/Tab/types.js +17 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/lib/components/list/components/TabSkeleton/index.js +41 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/lib/components/list/components/WaterfallList/index.js +35 -0
- package/lib/components/list/examples/GroupedListExample.js +210 -0
- package/lib/components/list/hooks/index.js +47 -0
- package/lib/components/list/hooks/useDevice.js +96 -0
- package/lib/components/list/hooks/useListState.js +149 -0
- package/lib/components/list/hooks/useWaterfall.js +124 -0
- package/lib/components/list/index.js +60 -0
- package/lib/components/list/locales.js +113 -0
- package/lib/components/list/styles/base.less +39 -0
- package/lib/components/list/styles/content.less +416 -0
- package/lib/components/list/styles/floatButton.less +107 -0
- package/lib/components/list/styles/footer.less +49 -0
- package/lib/components/list/styles/header.less +69 -0
- package/lib/components/list/styles/responsive.less +166 -0
- package/lib/components/list/types.js +17 -0
- package/lib/components/list/utils/getText.js +95 -0
- package/lib/components/list/utils/index.js +43 -0
- package/lib/components/pay/toB/store/hooks.js +16 -8
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +45 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
- package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
- package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
- package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
- package/lib/components/ticketBooking/context/index.js +44 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
- package/lib/components/ticketBooking/index.d.ts +6 -0
- package/lib/components/ticketBooking/index.js +64 -8
- package/lib/components/ticketBooking/utils/index.js +70 -2
- package/lib/components/ticketBooking/utils/productCache.js +144 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/index.js +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lowcode/sku-card/meta.ts +1812 -0
- package/lowcode/sku-card/snippets.ts +372 -0
- package/lowcode/sku-list/meta.ts +410 -0
- package/package.json +1 -1
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/utils/index.d.ts +0 -62
- package/es/index.d.ts +0 -63
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/utils/index.d.ts +0 -62
- package/lib/index.d.ts +0 -63
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/productSelect/ProductCard/SkuCard/components/Price/index.tsx
|
|
30
|
+
var Price_exports = {};
|
|
31
|
+
__export(Price_exports, {
|
|
32
|
+
default: () => Price_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Price_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_pisellPriceText = __toESM(require("../../../../components/pisellPriceText"));
|
|
38
|
+
var import_status = require("../../status");
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
var Price = ({ props }) => {
|
|
41
|
+
const { dataSource, skuTextConfig } = props;
|
|
42
|
+
const {
|
|
43
|
+
isOpen,
|
|
44
|
+
isOriginPrice,
|
|
45
|
+
isPrice,
|
|
46
|
+
isTaxPrice,
|
|
47
|
+
originPriceFontSize,
|
|
48
|
+
originPriceFontWeight,
|
|
49
|
+
originPriceColor,
|
|
50
|
+
priceFontSize,
|
|
51
|
+
priceFontWeight,
|
|
52
|
+
priceColor,
|
|
53
|
+
isCustomText,
|
|
54
|
+
customTextType,
|
|
55
|
+
customTextValue,
|
|
56
|
+
customTextMinValue,
|
|
57
|
+
customTextMaxValue,
|
|
58
|
+
isShowZeroPrice,
|
|
59
|
+
isShowFreePrice,
|
|
60
|
+
isMiniPrice
|
|
61
|
+
} = (skuTextConfig == null ? void 0 : skuTextConfig.skuPriceConfig) || {};
|
|
62
|
+
if (!isOpen) return null;
|
|
63
|
+
const isShowPrice = (0, import_react.useMemo)(() => {
|
|
64
|
+
if (!isPrice) return false;
|
|
65
|
+
if (Number(dataSource == null ? void 0 : dataSource.price) === 0 && !isShowZeroPrice) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}, [isPrice, isShowZeroPrice, dataSource == null ? void 0 : dataSource.price]);
|
|
68
|
+
const priceText = (0, import_react.useMemo)(() => {
|
|
69
|
+
if (!isShowPrice) return null;
|
|
70
|
+
if (Number(dataSource == null ? void 0 : dataSource.price) === 0 && isShowFreePrice) {
|
|
71
|
+
return import_utils.locales.getText("pisell2.sku-card.free");
|
|
72
|
+
}
|
|
73
|
+
if (isCustomText) {
|
|
74
|
+
if (customTextType === "from") {
|
|
75
|
+
return /* @__PURE__ */ import_react.default.createElement(import_pisellPriceText.default, { value: customTextValue || 0, isMini: true });
|
|
76
|
+
}
|
|
77
|
+
if (customTextType === "end") {
|
|
78
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
79
|
+
import_pisellPriceText.default,
|
|
80
|
+
{
|
|
81
|
+
value: customTextValue || 0,
|
|
82
|
+
isMini: true,
|
|
83
|
+
customPrefixText: import_utils.locales.getText("pisell2.sku-card.max"),
|
|
84
|
+
customSuffixText: import_utils.locales.getText("pisell2.sku-card.max")
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
if (customTextType === "range") {
|
|
89
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-price-range` }, /* @__PURE__ */ import_react.default.createElement(import_pisellPriceText.default, { value: customTextMinValue || 0 }), "~", /* @__PURE__ */ import_react.default.createElement(import_pisellPriceText.default, { value: customTextMaxValue || 0 }));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return /* @__PURE__ */ import_react.default.createElement(import_pisellPriceText.default, { value: (dataSource == null ? void 0 : dataSource.price) || 0 });
|
|
93
|
+
}, [
|
|
94
|
+
isShowPrice,
|
|
95
|
+
dataSource == null ? void 0 : dataSource.price,
|
|
96
|
+
isShowFreePrice,
|
|
97
|
+
isCustomText,
|
|
98
|
+
customTextType,
|
|
99
|
+
customTextValue,
|
|
100
|
+
customTextMinValue,
|
|
101
|
+
customTextMaxValue
|
|
102
|
+
]);
|
|
103
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-price-wrap` }, isShowPrice ? /* @__PURE__ */ import_react.default.createElement(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: `${import_status.PREFIX}__card-price`,
|
|
107
|
+
style: {
|
|
108
|
+
fontSize: priceFontSize,
|
|
109
|
+
fontWeight: priceFontWeight,
|
|
110
|
+
color: priceColor
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
priceText
|
|
114
|
+
) : null, isTaxPrice && parseFloat(String((dataSource == null ? void 0 : dataSource.tax_fee) || 0)) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-tax-price` }, `(${import_utils.locales.getText("pisell2.sku-card.gst")} : `, /* @__PURE__ */ import_react.default.createElement(
|
|
115
|
+
import_pisellPriceText.default,
|
|
116
|
+
{
|
|
117
|
+
value: (dataSource == null ? void 0 : dataSource.tax_fee) || 0,
|
|
118
|
+
isMini: isMiniPrice
|
|
119
|
+
}
|
|
120
|
+
), `)`) : null, isOriginPrice && parseFloat(String((dataSource == null ? void 0 : dataSource.original_price) || 0)) ? /* @__PURE__ */ import_react.default.createElement(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
className: `${import_status.PREFIX}__card-original-price`,
|
|
124
|
+
style: {
|
|
125
|
+
fontSize: originPriceFontSize,
|
|
126
|
+
fontWeight: originPriceFontWeight,
|
|
127
|
+
color: originPriceColor
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
131
|
+
import_pisellPriceText.default,
|
|
132
|
+
{
|
|
133
|
+
value: (dataSource == null ? void 0 : dataSource.original_price) || 0,
|
|
134
|
+
isMini: isMiniPrice
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
) : null);
|
|
138
|
+
};
|
|
139
|
+
var Price_default = Price;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.pisell-product-sku__card-price-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
gap: unset;
|
|
6
|
+
gap: 4px;
|
|
7
|
+
|
|
8
|
+
.pisell-product-sku__card-price {
|
|
9
|
+
color: var(--ps-color-text, #1b1b1b);
|
|
10
|
+
font-size: 18px;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
line-height: 28px;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-product-sku__card-price-range {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pisell-product-sku__card-original-price {
|
|
23
|
+
color: var(--ps-color-text-secondary, #4e4e4e);
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
line-height: 24px;
|
|
28
|
+
position: relative;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
|
|
31
|
+
&::before {
|
|
32
|
+
content: '';
|
|
33
|
+
display: block;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 50%;
|
|
36
|
+
left: 0;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 1px;
|
|
39
|
+
background-color: #4e4e4e;
|
|
40
|
+
transform: translateY(-50%);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
> span {
|
|
44
|
+
vertical-align: middle;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pisell-product-sku__card-tax-price {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
color: #667085;
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
line-height: 24px;
|
|
55
|
+
word-wrap: break-word;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.tsx
|
|
30
|
+
var Promotions_exports = {};
|
|
31
|
+
__export(Promotions_exports, {
|
|
32
|
+
default: () => Promotions_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Promotions_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_status = require("../../status");
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var Promotions = ({ props }) => {
|
|
40
|
+
const { dataSource, skuTextConfig } = props;
|
|
41
|
+
const { isOpen, marginX, isShowAll, maxCount, lists } = (skuTextConfig == null ? void 0 : skuTextConfig.skuPromotionsConfig) || {};
|
|
42
|
+
if (!isOpen) return null;
|
|
43
|
+
const listsData = (0, import_react.useMemo)(() => {
|
|
44
|
+
var _a;
|
|
45
|
+
const _lists = ((_a = dataSource == null ? void 0 : dataSource.promotions) == null ? void 0 : _a.length) ? dataSource == null ? void 0 : dataSource.promotions : lists;
|
|
46
|
+
return _lists || [];
|
|
47
|
+
}, [dataSource == null ? void 0 : dataSource.promotions, lists]);
|
|
48
|
+
const textStyle = (0, import_react.useCallback)((tag) => {
|
|
49
|
+
return {
|
|
50
|
+
fontSize: tag.fontSize,
|
|
51
|
+
fontWeight: tag.fontWeight,
|
|
52
|
+
color: tag.color
|
|
53
|
+
};
|
|
54
|
+
}, []);
|
|
55
|
+
const tagStyle = (0, import_react.useCallback)(
|
|
56
|
+
(tag) => {
|
|
57
|
+
return {
|
|
58
|
+
background: tag.background,
|
|
59
|
+
padding: `${tag.paddingY}px ${tag.paddingX}px`,
|
|
60
|
+
borderRadius: tag.radius,
|
|
61
|
+
border: tag.isBorder ? `${tag.borderWidth}px solid ${tag.borderColor}` : "none",
|
|
62
|
+
margin: 0,
|
|
63
|
+
lineHeight: "18px"
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
[marginX]
|
|
67
|
+
);
|
|
68
|
+
const listsResult = (0, import_react.useMemo)(() => {
|
|
69
|
+
if (isShowAll) {
|
|
70
|
+
return listsData;
|
|
71
|
+
}
|
|
72
|
+
return listsData.slice(0, maxCount);
|
|
73
|
+
}, [listsData, isShowAll, maxCount]);
|
|
74
|
+
if (listsData.length === 0) return null;
|
|
75
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: `${import_status.PREFIX}__card-promotions`,
|
|
79
|
+
style: {
|
|
80
|
+
gap: `${marginX}px`
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
listsResult.map((tag, tagIndex) => /* @__PURE__ */ import_react.default.createElement(
|
|
84
|
+
import_materials.PisellTags,
|
|
85
|
+
{
|
|
86
|
+
key: tagIndex,
|
|
87
|
+
style: {
|
|
88
|
+
...tagStyle(tag)
|
|
89
|
+
},
|
|
90
|
+
...tag.props
|
|
91
|
+
},
|
|
92
|
+
/* @__PURE__ */ import_react.default.createElement("span", { style: textStyle(tag) }, tag == null ? void 0 : tag.title)
|
|
93
|
+
)),
|
|
94
|
+
(listsData == null ? void 0 : listsData.length) > listsResult.length && /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-tags-remaining` }, "+", (listsData == null ? void 0 : listsData.length) - listsResult.length)
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
var Promotions_default = Promotions;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.pisell-product-sku__card-promotions {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: center;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
flex-shrink: 1;
|
|
9
|
+
|
|
10
|
+
&-remaining {
|
|
11
|
+
color: #b42318;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
line-height: 18px;
|
|
15
|
+
word-wrap: break-word;
|
|
16
|
+
margin-left: 4px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/productSelect/ProductCard/SkuCard/components/Resource/index.tsx
|
|
30
|
+
var Resource_exports = {};
|
|
31
|
+
__export(Resource_exports, {
|
|
32
|
+
default: () => Resource_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Resource_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_status = require("../../status");
|
|
37
|
+
var Resource = ({ props }) => {
|
|
38
|
+
const { dataSource, skuTextConfig } = props;
|
|
39
|
+
const { isOpen, fontSize, fontWeight, color, customText } = (skuTextConfig == null ? void 0 : skuTextConfig.skuResourceConfig) || {};
|
|
40
|
+
if (!isOpen) return null;
|
|
41
|
+
if (customText) return customText;
|
|
42
|
+
const finalStyle = (0, import_react.useMemo)(() => {
|
|
43
|
+
return {
|
|
44
|
+
fontSize,
|
|
45
|
+
fontWeight,
|
|
46
|
+
color
|
|
47
|
+
};
|
|
48
|
+
}, [fontSize, fontWeight, color]);
|
|
49
|
+
return (dataSource == null ? void 0 : dataSource.resources) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-resource`, style: finalStyle }, dataSource == null ? void 0 : dataSource.resources) : null;
|
|
50
|
+
};
|
|
51
|
+
var Resource_default = Resource;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/productSelect/ProductCard/SkuCard/components/Stock/index.tsx
|
|
30
|
+
var Stock_exports = {};
|
|
31
|
+
__export(Stock_exports, {
|
|
32
|
+
default: () => Stock_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Stock_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_status = require("../../status");
|
|
38
|
+
var Stock = ({ props }) => {
|
|
39
|
+
const { dataSource, skuTextConfig } = props;
|
|
40
|
+
const { isOpen, fontSize, fontWeight, color, customText } = (skuTextConfig == null ? void 0 : skuTextConfig.skuStockConfig) || {};
|
|
41
|
+
if (!isOpen) return null;
|
|
42
|
+
if (customText) return customText;
|
|
43
|
+
const finalStyle = (0, import_react.useMemo)(() => {
|
|
44
|
+
return {
|
|
45
|
+
fontSize,
|
|
46
|
+
fontWeight,
|
|
47
|
+
color
|
|
48
|
+
};
|
|
49
|
+
}, [fontSize, fontWeight, color]);
|
|
50
|
+
const stockText = (0, import_react.useMemo)(() => {
|
|
51
|
+
if ((dataSource == null ? void 0 : dataSource.is_track) === 0) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return `${import_utils.locales.getText("pisell2.sku-card.stock")}: ${dataSource == null ? void 0 : dataSource.stock_quantity}`;
|
|
55
|
+
}, [dataSource == null ? void 0 : dataSource.stock_quantity, dataSource == null ? void 0 : dataSource.is_track]);
|
|
56
|
+
return !!(dataSource == null ? void 0 : dataSource.is_track) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-stock`, style: finalStyle }, stockText) : null;
|
|
57
|
+
};
|
|
58
|
+
var Stock_default = Stock;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.tsx
|
|
30
|
+
var SubTitle_exports = {};
|
|
31
|
+
__export(SubTitle_exports, {
|
|
32
|
+
default: () => SubTitle_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(SubTitle_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
|
|
37
|
+
var import_status = require("../../status");
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var SubTitle = ({ props }) => {
|
|
40
|
+
var _a;
|
|
41
|
+
const { dataSource, skuTextConfig } = props;
|
|
42
|
+
const engineContext = (0, import_useEngineContext.default)();
|
|
43
|
+
const { translation } = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
|
|
44
|
+
const { isOpen, value, fontSize, fontWeight, color, ellipsisCount } = (skuTextConfig == null ? void 0 : skuTextConfig.skuSubtitleConfig) || {};
|
|
45
|
+
if (!isOpen) return null;
|
|
46
|
+
const finalStyle = (0, import_react.useMemo)(() => {
|
|
47
|
+
return {
|
|
48
|
+
fontSize,
|
|
49
|
+
fontWeight,
|
|
50
|
+
color,
|
|
51
|
+
lineClamp: ellipsisCount
|
|
52
|
+
};
|
|
53
|
+
}, [fontSize, fontWeight, color, ellipsisCount]);
|
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-subtitle`, style: finalStyle }, translation(value || (dataSource == null ? void 0 : dataSource.subtitle)));
|
|
55
|
+
};
|
|
56
|
+
var SubTitle_default = SubTitle;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.pisell-product-sku__card-subtitle {
|
|
2
|
+
color: var(--ps-color-text, #1b1b1b);
|
|
3
|
+
font-size: 16px;
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 500;
|
|
6
|
+
line-height: 24px;
|
|
7
|
+
display: -webkit-box;
|
|
8
|
+
line-clamp: 2;
|
|
9
|
+
-webkit-line-clamp: 2;
|
|
10
|
+
-webkit-box-orient: vertical;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/productSelect/ProductCard/SkuCard/components/Tags/index.tsx
|
|
30
|
+
var Tags_exports = {};
|
|
31
|
+
__export(Tags_exports, {
|
|
32
|
+
default: () => Tags_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Tags_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_status = require("../../status");
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var Tags = ({ props }) => {
|
|
40
|
+
const { dataSource, skuTextConfig } = props;
|
|
41
|
+
const { isOpen, marginX, isShowAll, maxCount, lists } = (skuTextConfig == null ? void 0 : skuTextConfig.skuTagsConfig) || {};
|
|
42
|
+
if (!isOpen) return null;
|
|
43
|
+
const listsData = (0, import_react.useMemo)(() => {
|
|
44
|
+
var _a;
|
|
45
|
+
const _lists = ((_a = dataSource == null ? void 0 : dataSource.tags) == null ? void 0 : _a.length) ? dataSource == null ? void 0 : dataSource.tags : lists;
|
|
46
|
+
return _lists || [];
|
|
47
|
+
}, [dataSource == null ? void 0 : dataSource.tags, lists]);
|
|
48
|
+
const textStyle = (0, import_react.useCallback)((tag) => {
|
|
49
|
+
return {
|
|
50
|
+
fontSize: tag.fontSize,
|
|
51
|
+
fontWeight: tag.fontWeight,
|
|
52
|
+
color: tag.color
|
|
53
|
+
};
|
|
54
|
+
}, []);
|
|
55
|
+
const tagStyle = (0, import_react.useCallback)(
|
|
56
|
+
(tag) => {
|
|
57
|
+
return {
|
|
58
|
+
background: tag.background,
|
|
59
|
+
padding: `${tag.paddingY}px ${tag.paddingX}px`,
|
|
60
|
+
borderRadius: tag.radius,
|
|
61
|
+
border: tag.isBorder ? `${tag.borderWidth}px solid ${tag.borderColor}` : "none",
|
|
62
|
+
margin: 0,
|
|
63
|
+
lineHeight: "18px"
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
[marginX]
|
|
67
|
+
);
|
|
68
|
+
const listsResult = (0, import_react.useMemo)(() => {
|
|
69
|
+
if (isShowAll) {
|
|
70
|
+
return listsData;
|
|
71
|
+
}
|
|
72
|
+
return listsData.slice(0, maxCount);
|
|
73
|
+
}, [listsData, isShowAll, maxCount]);
|
|
74
|
+
if (listsData.length === 0) return null;
|
|
75
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: `${import_status.PREFIX}__card-tags`,
|
|
79
|
+
style: {
|
|
80
|
+
gap: `${marginX}px`
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
listsResult.map((tag, tagIndex) => /* @__PURE__ */ import_react.default.createElement(
|
|
84
|
+
import_materials.PisellTags,
|
|
85
|
+
{
|
|
86
|
+
key: tagIndex,
|
|
87
|
+
style: {
|
|
88
|
+
...tagStyle(tag)
|
|
89
|
+
},
|
|
90
|
+
...tag.props
|
|
91
|
+
},
|
|
92
|
+
/* @__PURE__ */ import_react.default.createElement("span", { style: textStyle(tag) }, tag == null ? void 0 : tag.title)
|
|
93
|
+
)),
|
|
94
|
+
(listsData == null ? void 0 : listsData.length) > listsResult.length && /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-tags-remaining` }, "+", (listsData == null ? void 0 : listsData.length) - listsResult.length)
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
var Tags_default = Tags;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.pisell-product-sku__card-tags {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: center;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
flex-shrink: 1;
|
|
9
|
+
|
|
10
|
+
&-remaining {
|
|
11
|
+
color: #b42318;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
line-height: 18px;
|
|
15
|
+
word-wrap: break-word;
|
|
16
|
+
margin-left: 4px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/productSelect/ProductCard/SkuCard/components/Time/index.tsx
|
|
30
|
+
var Time_exports = {};
|
|
31
|
+
__export(Time_exports, {
|
|
32
|
+
default: () => Time_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Time_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_status = require("../../status");
|
|
37
|
+
var Time = ({ props }) => {
|
|
38
|
+
const { dataSource, skuTextConfig } = props;
|
|
39
|
+
const { isOpen, fontSize, fontWeight, color, customText } = (skuTextConfig == null ? void 0 : skuTextConfig.skuTimeConfig) || {};
|
|
40
|
+
if (!isOpen) return null;
|
|
41
|
+
if (customText) return customText;
|
|
42
|
+
const finalStyle = (0, import_react.useMemo)(() => {
|
|
43
|
+
return {
|
|
44
|
+
fontSize,
|
|
45
|
+
fontWeight,
|
|
46
|
+
color
|
|
47
|
+
};
|
|
48
|
+
}, [fontSize, fontWeight, color]);
|
|
49
|
+
return (dataSource == null ? void 0 : dataSource.time) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_status.PREFIX}__card-time`, style: finalStyle }, dataSource == null ? void 0 : dataSource.time) : null;
|
|
50
|
+
};
|
|
51
|
+
var Time_default = Time;
|