@pisell/private-materials 3.2.9 → 3.2.11
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 +1 -1
- package/build/lowcode/preview.js +34 -14
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.js +6 -6
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +77 -0
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/es/components/parallelResourcBooking/assets/calendar-heart.svg +5 -0
- package/es/components/parallelResourcBooking/assets/compass.svg +13 -0
- package/es/components/parallelResourcBooking/assets/image.svg +5 -0
- package/es/components/parallelResourcBooking/assets/phone.svg +5 -0
- package/es/components/parallelResourcBooking/assets/shopping-cart.svg +10 -0
- package/es/components/parallelResourcBooking/components/ErrorTip/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/ErrorTip/index.js +14 -0
- package/es/components/parallelResourcBooking/components/ErrorTip/index.less +51 -0
- package/es/components/parallelResourcBooking/components/OpenCard/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/OpenCard/index.js +65 -0
- package/es/components/parallelResourcBooking/components/OpenCard/index.less +52 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +274 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +46 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +63 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +87 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.js +30 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.less +2 -0
- package/es/components/parallelResourcBooking/components/Provider/Content/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Content/index.js +65 -0
- package/es/components/parallelResourcBooking/components/Provider/Content/index.less +31 -0
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +34 -0
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/es/components/parallelResourcBooking/components/Provider/Event/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Event/index.js +93 -0
- package/es/components/parallelResourcBooking/components/Provider/Event/index.less +20 -0
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.js +76 -0
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.less +64 -0
- package/es/components/parallelResourcBooking/components/Provider/Header/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Header/index.js +75 -0
- package/es/components/parallelResourcBooking/components/Provider/Header/index.less +2 -0
- package/es/components/parallelResourcBooking/components/Provider/Information/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Information/index.js +178 -0
- package/es/components/parallelResourcBooking/components/Provider/Information/index.less +92 -0
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +34 -0
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +27 -0
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.js +79 -0
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.less +46 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +90 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +77 -0
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +131 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +13 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +36 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +38 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +33 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +30 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.js +337 -0
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.less +82 -0
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +17 -0
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.js +52 -0
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.less +6 -0
- package/es/components/parallelResourcBooking/components/eventCard/index.d.ts +14 -0
- package/es/components/parallelResourcBooking/components/eventCard/index.js +116 -0
- package/es/components/parallelResourcBooking/components/eventCard/index.less +81 -0
- package/es/components/parallelResourcBooking/components/productCard/index.d.ts +16 -0
- package/es/components/parallelResourcBooking/components/productCard/index.js +79 -0
- package/es/components/parallelResourcBooking/components/productCard/index.less +60 -0
- package/es/components/parallelResourcBooking/components/progressBar/index.d.ts +16 -0
- package/es/components/parallelResourcBooking/components/progressBar/index.js +93 -0
- package/es/components/parallelResourcBooking/components/progressBar/index.less +15 -0
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +23 -0
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.js +148 -0
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.less +95 -0
- package/es/components/parallelResourcBooking/components/resourceUsability/index.d.ts +12 -0
- package/es/components/parallelResourcBooking/components/resourceUsability/index.js +44 -0
- package/es/components/parallelResourcBooking/components/resourceUsability/index.less +40 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +127 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.js +142 -0
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.less +222 -0
- package/es/components/parallelResourcBooking/components/selectHolder/index.d.ts +22 -0
- package/es/components/parallelResourcBooking/components/selectHolder/index.js +118 -0
- package/es/components/parallelResourcBooking/components/selectHolder/index.less +70 -0
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.js +168 -0
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.less +74 -0
- package/es/components/parallelResourcBooking/index.d.ts +4 -0
- package/es/components/parallelResourcBooking/index.js +58 -0
- package/es/components/parallelResourcBooking/index.less +22 -0
- package/es/components/parallelResourcBooking/locales.d.ts +216 -0
- package/es/components/parallelResourcBooking/locales.js +251 -0
- package/es/components/parallelResourcBooking/mock.d.ts +627 -0
- package/es/components/parallelResourcBooking/mock.js +1172 -0
- package/es/components/parallelResourcBooking/status.d.ts +21 -0
- package/es/components/parallelResourcBooking/status.js +51 -0
- package/es/components/parallelResourcBooking/type.d.ts +17 -0
- package/es/components/parallelResourcBooking/type.js +1 -0
- package/es/components/parallelResourcBooking/utils.d.ts +45 -0
- package/es/components/parallelResourcBooking/utils.js +99 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +69 -0
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/lib/components/parallelResourcBooking/assets/calendar-heart.svg +5 -0
- package/lib/components/parallelResourcBooking/assets/compass.svg +13 -0
- package/lib/components/parallelResourcBooking/assets/image.svg +5 -0
- package/lib/components/parallelResourcBooking/assets/phone.svg +5 -0
- package/lib/components/parallelResourcBooking/assets/shopping-cart.svg +10 -0
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.js +30 -0
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.less +51 -0
- package/lib/components/parallelResourcBooking/components/OpenCard/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/OpenCard/index.js +90 -0
- package/lib/components/parallelResourcBooking/components/OpenCard/index.less +52 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +158 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +82 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +92 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +87 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.js +59 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.less +2 -0
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.js +90 -0
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.less +31 -0
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +60 -0
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.js +100 -0
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.less +20 -0
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.js +87 -0
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.less +64 -0
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.js +80 -0
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.less +2 -0
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.js +151 -0
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.less +92 -0
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +67 -0
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +57 -0
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.js +90 -0
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.less +46 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +97 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +69 -0
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +131 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +13 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +70 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +75 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +66 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +69 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.js +248 -0
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.less +82 -0
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +17 -0
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.js +79 -0
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.less +6 -0
- package/lib/components/parallelResourcBooking/components/eventCard/index.d.ts +14 -0
- package/lib/components/parallelResourcBooking/components/eventCard/index.js +124 -0
- package/lib/components/parallelResourcBooking/components/eventCard/index.less +81 -0
- package/lib/components/parallelResourcBooking/components/productCard/index.d.ts +16 -0
- package/lib/components/parallelResourcBooking/components/productCard/index.js +77 -0
- package/lib/components/parallelResourcBooking/components/productCard/index.less +60 -0
- package/lib/components/parallelResourcBooking/components/progressBar/index.d.ts +16 -0
- package/lib/components/parallelResourcBooking/components/progressBar/index.js +100 -0
- package/lib/components/parallelResourcBooking/components/progressBar/index.less +15 -0
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +23 -0
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.js +116 -0
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.less +95 -0
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.d.ts +12 -0
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.js +76 -0
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.less +40 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +135 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.js +125 -0
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.less +222 -0
- package/lib/components/parallelResourcBooking/components/selectHolder/index.d.ts +22 -0
- package/lib/components/parallelResourcBooking/components/selectHolder/index.js +106 -0
- package/lib/components/parallelResourcBooking/components/selectHolder/index.less +70 -0
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.js +146 -0
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.less +74 -0
- package/lib/components/parallelResourcBooking/index.d.ts +4 -0
- package/lib/components/parallelResourcBooking/index.js +78 -0
- package/lib/components/parallelResourcBooking/index.less +22 -0
- package/lib/components/parallelResourcBooking/locales.d.ts +216 -0
- package/lib/components/parallelResourcBooking/locales.js +239 -0
- package/lib/components/parallelResourcBooking/mock.d.ts +627 -0
- package/lib/components/parallelResourcBooking/mock.js +1352 -0
- package/lib/components/parallelResourcBooking/status.d.ts +21 -0
- package/lib/components/parallelResourcBooking/status.js +70 -0
- package/lib/components/parallelResourcBooking/type.d.ts +17 -0
- package/lib/components/parallelResourcBooking/type.js +17 -0
- package/lib/components/parallelResourcBooking/utils.d.ts +45 -0
- package/lib/components/parallelResourcBooking/utils.js +90 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useCart, useSales } from "../../../Sales";
|
|
3
|
+
import { locales } from '@pisell/utils';
|
|
4
|
+
import { PisellCard } from '@pisell/materials';
|
|
5
|
+
import "./index.less";
|
|
6
|
+
var SelectProduct = function SelectProduct() {
|
|
7
|
+
var _cartData$cartItems2;
|
|
8
|
+
var _useSales = useSales(),
|
|
9
|
+
data = _useSales.data;
|
|
10
|
+
var _useCart = useCart(),
|
|
11
|
+
addToCart = _useCart.addToCart,
|
|
12
|
+
cartData = _useCart.cartData;
|
|
13
|
+
var handleAddToCart = function handleAddToCart(product) {
|
|
14
|
+
addToCart(product);
|
|
15
|
+
};
|
|
16
|
+
var renderProductCard = function renderProductCard(product) {
|
|
17
|
+
var _cartData$cartItems;
|
|
18
|
+
var isSelected = cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.some(function (item) {
|
|
19
|
+
return item.id === product.id;
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
key: product.id,
|
|
23
|
+
className: "product-card ".concat(isSelected ? 'product-card-selected' : ''),
|
|
24
|
+
onClick: function onClick() {
|
|
25
|
+
return handleAddToCart(product);
|
|
26
|
+
}
|
|
27
|
+
}, /*#__PURE__*/React.createElement(PisellCard, {
|
|
28
|
+
bodyStyle: {
|
|
29
|
+
padding: '16px'
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "product-content"
|
|
33
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: "product-title"
|
|
35
|
+
}, product.title), /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: "product-price"
|
|
37
|
+
}, product.price, " ", product.currency))));
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "select-product-container"
|
|
41
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: "step-header"
|
|
43
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: "step-number"
|
|
45
|
+
}, "Step 1"), /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: "step-title"
|
|
47
|
+
}, "Select Product")), /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: "category-section"
|
|
49
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: "category-title"
|
|
51
|
+
}, "Other"), /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: "product-list"
|
|
53
|
+
}, renderProductCard({
|
|
54
|
+
id: '1',
|
|
55
|
+
title: 'appointment',
|
|
56
|
+
price: '1.00',
|
|
57
|
+
currency: 'AUD'
|
|
58
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "cart-section"
|
|
60
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "cart-title"
|
|
62
|
+
}, "Your cart"), cartData !== null && cartData !== void 0 && (_cartData$cartItems2 = cartData.cartItems) !== null && _cartData$cartItems2 !== void 0 && _cartData$cartItems2.length ? /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "cart-items"
|
|
64
|
+
}, cartData.cartItems.map(function (item) {
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
key: item.id,
|
|
67
|
+
className: "cart-item"
|
|
68
|
+
}, item.title);
|
|
69
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: "cart-empty"
|
|
71
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: "cart-empty-icon"
|
|
73
|
+
}, "\uD83D\uDED2"), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "cart-empty-text"
|
|
75
|
+
}, locales.getText('pisell2.event.cart.empty')))));
|
|
76
|
+
};
|
|
77
|
+
export default SelectProduct;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.select-product-container {
|
|
2
|
+
padding: 24px;
|
|
3
|
+
background: #fff;
|
|
4
|
+
|
|
5
|
+
.step-header {
|
|
6
|
+
margin-bottom: 24px;
|
|
7
|
+
|
|
8
|
+
.step-number {
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
color: #666;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.step-title {
|
|
15
|
+
font-size: 24px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
color: #333;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.category-section {
|
|
22
|
+
margin-bottom: 24px;
|
|
23
|
+
|
|
24
|
+
.category-title {
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
color: #333;
|
|
28
|
+
margin-bottom: 16px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.product-list {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
34
|
+
gap: 16px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.product-card {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition: all 0.3s;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
transform: translateY(-2px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.product-card-selected {
|
|
47
|
+
.pisell-card {
|
|
48
|
+
border-color: #1890ff;
|
|
49
|
+
background: rgba(24, 144, 255, 0.05);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.product-content {
|
|
54
|
+
text-align: center;
|
|
55
|
+
|
|
56
|
+
.product-title {
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
color: #333;
|
|
59
|
+
margin-bottom: 8px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.product-price {
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
color: #666;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cart-section {
|
|
70
|
+
background: #f5f5f5;
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
padding: 24px;
|
|
73
|
+
|
|
74
|
+
.cart-title {
|
|
75
|
+
font-size: 18px;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
color: #333;
|
|
78
|
+
margin-bottom: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.cart-empty {
|
|
82
|
+
text-align: center;
|
|
83
|
+
padding: 32px 0;
|
|
84
|
+
|
|
85
|
+
.cart-empty-icon {
|
|
86
|
+
font-size: 24px;
|
|
87
|
+
margin-bottom: 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cart-empty-text {
|
|
91
|
+
color: #999;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cart-items {
|
|
96
|
+
.cart-item {
|
|
97
|
+
padding: 12px;
|
|
98
|
+
background: #fff;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
margin-bottom: 8px;
|
|
101
|
+
|
|
102
|
+
&:last-child {
|
|
103
|
+
margin-bottom: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// 移动端适配
|
|
111
|
+
@media screen and (max-width: 768px) {
|
|
112
|
+
.select-product-container {
|
|
113
|
+
padding: 16px;
|
|
114
|
+
|
|
115
|
+
.step-header {
|
|
116
|
+
margin-bottom: 16px;
|
|
117
|
+
|
|
118
|
+
.step-title {
|
|
119
|
+
font-size: 20px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.product-list {
|
|
124
|
+
grid-template-columns: 1fr !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.cart-section {
|
|
128
|
+
padding: 16px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
3
|
+
import { statusList, statusMessage } from "../../../../../status";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
dayjs.extend(isSameOrBefore);
|
|
6
|
+
var Status = function Status(props) {
|
|
7
|
+
var _props$type = props.type,
|
|
8
|
+
type = _props$type === void 0 ? 'call_to_book' : _props$type;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "event-calendar-status"
|
|
11
|
+
}, statusList.map(function (i) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: "item",
|
|
14
|
+
key: i.status
|
|
15
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
style: {
|
|
17
|
+
height: i.status == 0 ? '28px' : '4px',
|
|
18
|
+
background: i.color
|
|
19
|
+
},
|
|
20
|
+
className: "item-icon"
|
|
21
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
22
|
+
className: "item-text"
|
|
23
|
+
}, i.status === 2 ? statusMessage(type) : i.text));
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
export default Status;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.event-calendar-status {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
|
|
5
|
+
.item {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
flex-shrink: 1;
|
|
9
|
+
width: 50%;
|
|
10
|
+
margin-bottom: 12px;
|
|
11
|
+
.item-icon {
|
|
12
|
+
margin-right: 10px;
|
|
13
|
+
width: 28px;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.item-text {
|
|
18
|
+
color: #344054;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
line-height: 20px; /* 142.857% */
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type CallToBookProps = {
|
|
3
|
+
show: boolean;
|
|
4
|
+
type: string;
|
|
5
|
+
shop: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const defaultBookingConfig: {
|
|
8
|
+
booking_mode_after_cut_off: string;
|
|
9
|
+
};
|
|
10
|
+
declare const CallToBook: (props: CallToBookProps) => JSX.Element | null;
|
|
11
|
+
export default CallToBook;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { Iconfont } from '@pisell/materials';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
// import { useShallowEqualSelector } from '@/hooks';
|
|
5
|
+
// import { getText } from '@/utils/formatMessage';
|
|
6
|
+
import styles from "./index.less";
|
|
7
|
+
// import { callPhone, sendEmail } from '@/utils/index';
|
|
8
|
+
|
|
9
|
+
export var defaultBookingConfig = {
|
|
10
|
+
booking_mode_after_cut_off: 'booking_closed'
|
|
11
|
+
};
|
|
12
|
+
var CallToBook = function CallToBook(props) {
|
|
13
|
+
var show = props.show,
|
|
14
|
+
type = props.type,
|
|
15
|
+
shop = props.shop;
|
|
16
|
+
// const { shop }: any = useShallowEqualSelector(({ global }: any) => global);
|
|
17
|
+
// const { customPageData }: any = useShallowEqualSelector(
|
|
18
|
+
// ({ bookingOrder }: any) => bookingOrder
|
|
19
|
+
// );
|
|
20
|
+
|
|
21
|
+
// const type = useMemo(() => {
|
|
22
|
+
// let _setting = customPageData?.block?.find((d) => d.type === 'product_list')
|
|
23
|
+
// ?.setting?.bookingConfig;
|
|
24
|
+
// _setting = {
|
|
25
|
+
// ...defaultBookingConfig,
|
|
26
|
+
// ..._setting,
|
|
27
|
+
// };
|
|
28
|
+
// return _setting.booking_mode_after_cut_off;
|
|
29
|
+
// }, [customPageData]);
|
|
30
|
+
|
|
31
|
+
var message = useMemo(function () {
|
|
32
|
+
if (type === 'booking_closed') {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
if (type === 'call_to_book' && shop.phone) {
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: styles['sales-close-tip']
|
|
38
|
+
}, "\u5173\u95ED", /*#__PURE__*/React.createElement("a", {
|
|
39
|
+
className: styles['sales-close-tel']
|
|
40
|
+
// onClick={() => {
|
|
41
|
+
// callPhone(`+${shop.country_calling_code}${shop.phone}`);
|
|
42
|
+
// }}
|
|
43
|
+
}, "+", shop.country_calling_code, " ", shop.phone));
|
|
44
|
+
}
|
|
45
|
+
if (type === 'email_to_book' && shop.contact_email) {
|
|
46
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: styles['sales-close-tip']
|
|
48
|
+
}, "4", /*#__PURE__*/React.createElement("a", {
|
|
49
|
+
className: styles['sales-close-tel']
|
|
50
|
+
// onClick={() => {
|
|
51
|
+
// sendEmail(shop.contact_email);
|
|
52
|
+
// }}
|
|
53
|
+
}, shop.contact_email));
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}, [type]);
|
|
57
|
+
return show ? /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: styles['sales-close']
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
60
|
+
className: classNames('iconshangjia', styles['sales-icon'])
|
|
61
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: styles['sales-close-tip']
|
|
63
|
+
}, "6"), message) : null;
|
|
64
|
+
};
|
|
65
|
+
export default CallToBook;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.sales-close {
|
|
2
|
+
width: 100%;
|
|
3
|
+
margin-bottom: 12px;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
background: #fafafa;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
height: 92px;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
user-select: text;
|
|
12
|
+
|
|
13
|
+
.sales-icon {
|
|
14
|
+
font-size: 22px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sales-close-tip {
|
|
18
|
+
color: #1b1b1b;
|
|
19
|
+
font-family: Inter;
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
line-height: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sales-close-tel {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
color: #0b5fdb;
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
user-select: text;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useState, useEffect } from 'react';
|
|
8
|
+
import { Iconfont } from '@pisell/materials';
|
|
9
|
+
import { Space } from 'antd';
|
|
10
|
+
import { weekListText } from "../../state";
|
|
11
|
+
import Item from "../../Item";
|
|
12
|
+
import { getMonthIndex, getCurrentStatus, formatDate } from "../../../../utils";
|
|
13
|
+
import "./index.less";
|
|
14
|
+
var WeekItem = function WeekItem(props) {
|
|
15
|
+
var weekList = props.weekList,
|
|
16
|
+
currentDate = props.currentDate,
|
|
17
|
+
setCurrentDate = props.setCurrentDate,
|
|
18
|
+
isActive = props.isActive,
|
|
19
|
+
productId = props.productId,
|
|
20
|
+
dateLimitData = props.dateLimitData,
|
|
21
|
+
getLimitData = props.getLimitData,
|
|
22
|
+
cutTime = props.cutTime;
|
|
23
|
+
|
|
24
|
+
// 显示月份的位置
|
|
25
|
+
var _useState = useState([]),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
monthIndex = _useState2[0],
|
|
28
|
+
setMonthIndex = _useState2[1];
|
|
29
|
+
useEffect(function () {
|
|
30
|
+
if (isActive && productId) {
|
|
31
|
+
// getLimitData(weekList[0], weekList[6]);
|
|
32
|
+
}
|
|
33
|
+
}, [isActive, productId, weekList]);
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
var arr = getMonthIndex(weekList);
|
|
36
|
+
setMonthIndex(arr);
|
|
37
|
+
}, [weekList]);
|
|
38
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
className: "week-item-wrap"
|
|
40
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: "week-item-content"
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
43
|
+
type: "pisell2-arrow-left",
|
|
44
|
+
className: "week-item__icon"
|
|
45
|
+
}), /*#__PURE__*/React.createElement(Space, {
|
|
46
|
+
size: 8
|
|
47
|
+
}, weekList === null || weekList === void 0 ? void 0 : weekList.map(function (item, index) {
|
|
48
|
+
var _getCurrentStatus = getCurrentStatus(dateLimitData, item, cutTime),
|
|
49
|
+
disabled = _getCurrentStatus.disabled,
|
|
50
|
+
currentStatus = _getCurrentStatus.currentStatus;
|
|
51
|
+
return /*#__PURE__*/React.createElement(Item, {
|
|
52
|
+
key: index,
|
|
53
|
+
date: formatDate(item, 'DD'),
|
|
54
|
+
week: weekListText[index],
|
|
55
|
+
dateText: item,
|
|
56
|
+
disabled: disabled,
|
|
57
|
+
status: currentStatus,
|
|
58
|
+
select: currentDate === item,
|
|
59
|
+
showMonth: monthIndex.includes(index),
|
|
60
|
+
onClick: function onClick(e) {
|
|
61
|
+
setCurrentDate(item);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
})), /*#__PURE__*/React.createElement(Iconfont, {
|
|
65
|
+
type: "pisell2-arrow-right",
|
|
66
|
+
className: "week-item__icon"
|
|
67
|
+
})));
|
|
68
|
+
};
|
|
69
|
+
export default WeekItem;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare type CalenDateWeekProps = {
|
|
4
|
+
currentDate: string;
|
|
5
|
+
dateChange: (date: string) => void;
|
|
6
|
+
productId: string;
|
|
7
|
+
timeList: any;
|
|
8
|
+
getLimitData: (start_date: string, end_date: string) => void;
|
|
9
|
+
dateLimitData: any;
|
|
10
|
+
cutTime: any;
|
|
11
|
+
};
|
|
12
|
+
declare const CalenDateWeek: (props: CalenDateWeekProps) => JSX.Element;
|
|
13
|
+
export default CalenDateWeek;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useState, useRef, useEffect } from 'react';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import { Iconfont } from '@pisell/materials';
|
|
10
|
+
import classNames from 'classnames';
|
|
11
|
+
import WeekItem from "./WeekItem/index";
|
|
12
|
+
import { getCallToBookStatus, getStatus } from "../state";
|
|
13
|
+
import CallToBook from "./CallToBook";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
var CalenDateWeek = function CalenDateWeek(props) {
|
|
16
|
+
var currentDate = props.currentDate,
|
|
17
|
+
dateChange = props.dateChange,
|
|
18
|
+
productId = props.productId,
|
|
19
|
+
timeList = props.timeList,
|
|
20
|
+
dateLimitData = props.dateLimitData,
|
|
21
|
+
getLimitData = props.getLimitData,
|
|
22
|
+
cutTime = props.cutTime;
|
|
23
|
+
var _useState = useState([]),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
weekList = _useState2[0],
|
|
26
|
+
setWeekList = _useState2[1];
|
|
27
|
+
var _useState3 = useState(false),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
showCallToBook = _useState4[0],
|
|
30
|
+
setShowCallToBook = _useState4[1];
|
|
31
|
+
// const { shop }: any = useShallowEqualSelector(({ global }: any) => global);
|
|
32
|
+
var weekListRef = useRef(null);
|
|
33
|
+
var _useState5 = useState(''),
|
|
34
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
35
|
+
selectStatus = _useState6[0],
|
|
36
|
+
setSelectStatus = _useState6[1];
|
|
37
|
+
var _useState7 = useState(false),
|
|
38
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
39
|
+
selectDisabled = _useState8[0],
|
|
40
|
+
setSelectDisabled = _useState8[1];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @title: 根据时间生成本周数据
|
|
44
|
+
* @description:
|
|
45
|
+
* @return {*}
|
|
46
|
+
* @Author: xiangxiang.shao
|
|
47
|
+
* @Date: 2024-02-07 15:13
|
|
48
|
+
*/
|
|
49
|
+
var initCurrentWeekData = function initCurrentWeekData(dateText) {
|
|
50
|
+
// 设置周日为一周的开始
|
|
51
|
+
// dayjs.locale('en', {
|
|
52
|
+
// weekStartsOn: 0, // 周日为0,周一为1,以此类推
|
|
53
|
+
// });
|
|
54
|
+
|
|
55
|
+
// 获取当前日期的moment对象
|
|
56
|
+
var currentMoment = dayjs(dateText);
|
|
57
|
+
|
|
58
|
+
// 调整当前日期,使其为本周的周日
|
|
59
|
+
var startOfWeek = currentMoment.startOf('week');
|
|
60
|
+
|
|
61
|
+
// 如果当前日期不是周日,则向前调整到本周的周日
|
|
62
|
+
if (startOfWeek.day() !== 0) {
|
|
63
|
+
startOfWeek.subtract(startOfWeek.day(), 'days');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// 创建一个数组来存储本周的所有日期
|
|
67
|
+
var weekDates = [];
|
|
68
|
+
|
|
69
|
+
// 循环7天,获取本周的所有日期
|
|
70
|
+
for (var i = 0; i < 7; i++) {
|
|
71
|
+
var _date = startOfWeek.clone().add(i, 'days');
|
|
72
|
+
weekDates.push(_date.format('YYYY-MM-DD'));
|
|
73
|
+
}
|
|
74
|
+
return weekDates;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @title: 构造初始化周数据
|
|
79
|
+
* @description:
|
|
80
|
+
* @return {*}
|
|
81
|
+
* @Author: xiangxiang.shao
|
|
82
|
+
* @Date: 2024-02-07 15:13
|
|
83
|
+
*/
|
|
84
|
+
var initWeekData = function initWeekData() {
|
|
85
|
+
var list = initCurrentWeekData(currentDate);
|
|
86
|
+
setWeekList(list);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @title: 判断是否重新生成还是滚动到指定位置
|
|
91
|
+
* @description:
|
|
92
|
+
* @return {*}
|
|
93
|
+
* @Author: xiangxiang.shao
|
|
94
|
+
* @Date: 2024-02-07 15:13
|
|
95
|
+
*/
|
|
96
|
+
var init = function init() {
|
|
97
|
+
initWeekData();
|
|
98
|
+
};
|
|
99
|
+
useEffect(function () {
|
|
100
|
+
init();
|
|
101
|
+
}, [currentDate]);
|
|
102
|
+
|
|
103
|
+
// 判断是否显示电话预定
|
|
104
|
+
useEffect(function () {
|
|
105
|
+
var _getStatus = getStatus(dateLimitData, currentDate, cutTime),
|
|
106
|
+
status = _getStatus.status,
|
|
107
|
+
disabled = _getStatus.disabled;
|
|
108
|
+
var isShow = getCallToBookStatus(currentDate, dateLimitData, cutTime);
|
|
109
|
+
if (isShow && (status === 'lots_of_space' || status === 'filling_up_fast')) {
|
|
110
|
+
setShowCallToBook(true);
|
|
111
|
+
} else {
|
|
112
|
+
setShowCallToBook(false);
|
|
113
|
+
}
|
|
114
|
+
setSelectStatus(status);
|
|
115
|
+
setSelectDisabled(disabled);
|
|
116
|
+
}, [currentDate, timeList, cutTime]);
|
|
117
|
+
useEffect(function () {
|
|
118
|
+
var index = weekList.findIndex(function (date) {
|
|
119
|
+
return date === currentDate;
|
|
120
|
+
});
|
|
121
|
+
if (weekListRef !== null && weekListRef !== void 0 && weekListRef.current && index !== -1) {
|
|
122
|
+
weekListRef.current.scrollLeft = (index - 1) * 50;
|
|
123
|
+
}
|
|
124
|
+
}, [currentDate, weekList]);
|
|
125
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: "calendar-week-wrap"
|
|
127
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
ref: weekListRef,
|
|
129
|
+
className: "calendar-week-list"
|
|
130
|
+
}, /*#__PURE__*/React.createElement(WeekItem, {
|
|
131
|
+
weekList: weekList,
|
|
132
|
+
currentDate: currentDate,
|
|
133
|
+
dateChange: dateChange,
|
|
134
|
+
isActive: true,
|
|
135
|
+
productId: productId,
|
|
136
|
+
setCurrentDate: dateChange,
|
|
137
|
+
timeList: timeList,
|
|
138
|
+
dateLimitData: dateLimitData
|
|
139
|
+
// getLimitData={getLimitData}
|
|
140
|
+
,
|
|
141
|
+
cutTime: cutTime
|
|
142
|
+
})), selectStatus === 'sold_out' || selectDisabled ? /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: 'disabled-status'
|
|
144
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
145
|
+
className: classNames('disabled-icon', 'iconhourglass_disabled_wght300_24px')
|
|
146
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
147
|
+
className: 'disabled-status-text'
|
|
148
|
+
}, selectDisabled ? 2 : 5)) : null, /*#__PURE__*/React.createElement(CallToBook, {
|
|
149
|
+
show: showCallToBook
|
|
150
|
+
}));
|
|
151
|
+
};
|
|
152
|
+
export default CalenDateWeek;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.calendar-week-wrap {
|
|
2
|
+
.calendar-week-list {
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: 6px 8px 16px;
|
|
5
|
+
overflow-x: auto;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.calendar-icon {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.disabled-status {
|
|
14
|
+
display: flex;
|
|
15
|
+
padding: 14px 0px;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
align-self: stretch;
|
|
20
|
+
border-radius: 8px;
|
|
21
|
+
background: #fafafa;
|
|
22
|
+
margin-bottom: 10px;
|
|
23
|
+
.disabled-icon {
|
|
24
|
+
font-size: 24px;
|
|
25
|
+
color: #919191;
|
|
26
|
+
}
|
|
27
|
+
.disabled-status-text {
|
|
28
|
+
color: #1b1b1b;
|
|
29
|
+
text-align: center;
|
|
30
|
+
|
|
31
|
+
/* Text sm/Regular */
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
}
|
|
35
|
+
}
|