@pisell/private-materials 3.2.12 → 3.2.18
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/ContinueButton/index.js +84 -107
- package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/Total.js +10 -10
- package/es/components/appointmentBooking/components/Cart/Item/index.js +73 -0
- package/es/components/appointmentBooking/components/Content/index.js +92 -0
- package/es/components/appointmentBooking/components/Content/index.less +51 -0
- package/es/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/es/components/{parallelResourceBooking/components/bookingDetailModal → appointmentBooking/components/Date}/index.js +188 -292
- package/es/components/{parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/index.less +28 -16
- package/{lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate → es/components/appointmentBooking/components/Date}/state.d.ts +0 -1
- package/es/components/{parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/state.js +4 -42
- package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Footer/index.js +17 -36
- package/es/components/appointmentBooking/components/Guest/index.d.ts +3 -0
- package/es/components/{parallelResourceBooking/components/Provider/Information → appointmentBooking/components/Guest}/index.js +50 -59
- package/es/components/appointmentBooking/components/Header/index.js +46 -0
- package/es/components/appointmentBooking/components/Resource/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Resource/index.js +101 -0
- package/es/components/appointmentBooking/components/Resource/index.less +6 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Services/index.js +95 -0
- package/es/components/appointmentBooking/components/Services/index.less +17 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +69 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.less +23 -0
- package/es/components/appointmentBooking/context.d.ts +23 -0
- package/es/components/appointmentBooking/context.js +71 -0
- package/es/components/appointmentBooking/hooks.d.ts +23 -0
- package/es/components/appointmentBooking/hooks.js +248 -0
- package/es/components/appointmentBooking/index.d.ts +3 -0
- package/es/components/appointmentBooking/index.js +24 -0
- package/{lib/components/parallelResourceBooking → es/components/appointmentBooking}/index.less +5 -4
- package/es/components/{parallelResourceBooking → appointmentBooking}/locales.d.ts +15 -0
- package/es/components/{parallelResourceBooking → appointmentBooking}/locales.js +24 -3
- package/es/components/{parallelResourceBooking → appointmentBooking}/utils.d.ts +12 -0
- package/es/components/appointmentBooking/utils.js +169 -0
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- 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/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.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/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.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/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/resourceDisplay/index.js +2 -2
- package/es/components/eventBooking/components/resourceDisplay/index.less +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- 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/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/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/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/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/taxSelect/index.d.ts +0 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/ContinueButton/index.js +35 -74
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.less +0 -0
- package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/Total.js +7 -14
- package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/index.js +24 -22
- package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/index.js +1 -1
- package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Content/index.js +39 -23
- package/lib/components/appointmentBooking/components/Content/index.less +51 -0
- package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Date/index.js +178 -0
- package/lib/components/{parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/index.less +28 -16
- package/{es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate → lib/components/appointmentBooking/components/Date}/state.d.ts +0 -1
- package/lib/components/{parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate → appointmentBooking/components/Date}/state.js +5 -8
- package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Footer/index.js +12 -30
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +3 -0
- package/lib/components/{parallelResourceBooking/components/Provider/Information → appointmentBooking/components/Guest}/index.js +43 -52
- package/lib/components/{parallelResourceBooking/components/Provider/OrderProductModal → appointmentBooking/components/Header}/index.js +23 -21
- package/lib/components/appointmentBooking/components/Header/index.less +0 -0
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +113 -0
- package/lib/components/appointmentBooking/components/Resource/index.less +6 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Services/index.js +115 -0
- package/lib/components/appointmentBooking/components/Services/index.less +17 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
- package/lib/components/{parallelResourceBooking/components/bookingServiceList → appointmentBooking/components/TimeSlicing}/index.js +30 -43
- package/lib/components/appointmentBooking/components/TimeSlicing/index.less +23 -0
- package/lib/components/appointmentBooking/context.d.ts +23 -0
- package/lib/components/appointmentBooking/context.js +85 -0
- package/lib/components/appointmentBooking/hooks.d.ts +23 -0
- package/lib/components/appointmentBooking/hooks.js +178 -0
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/{parallelResourceBooking/components/Provider/EmptyHolderModal → appointmentBooking}/index.js +26 -24
- package/{es/components/parallelResourceBooking → lib/components/appointmentBooking}/index.less +5 -4
- package/lib/components/{parallelResourceBooking → appointmentBooking}/locales.d.ts +15 -0
- package/lib/components/{parallelResourceBooking → appointmentBooking}/locales.js +19 -4
- package/lib/components/{parallelResourceBooking → appointmentBooking}/mock.js +1 -1
- package/lib/components/{parallelResourceBooking → appointmentBooking}/status.js +1 -1
- package/lib/components/{parallelResourceBooking → appointmentBooking}/type.js +1 -1
- package/lib/components/{parallelResourceBooking → appointmentBooking}/utils.d.ts +12 -0
- package/lib/components/{parallelResourceBooking → appointmentBooking}/utils.js +63 -3
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- 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/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.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/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.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/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/resourceDisplay/index.js +2 -2
- package/lib/components/eventBooking/components/resourceDisplay/index.less +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- 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/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/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/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/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/taxSelect/index.d.ts +0 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +14 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -3
- package/lowcode/parallel-resource-booking/meta.ts +5 -5
- package/package.json +2 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -240
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/ErrorTip/index.js +0 -14
- package/es/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
- package/es/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/OpenCard/index.js +0 -65
- package/es/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/parallelResourceBooking/components/Provider/Content/index.js +0 -65
- package/es/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Event/index.js +0 -93
- package/es/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
- package/es/components/parallelResourceBooking/components/Provider/Header/index.js +0 -75
- package/es/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
- package/es/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/parallelResourceBooking/components/eventCard/index.js +0 -116
- package/es/components/parallelResourceBooking/components/eventCard/index.less +0 -81
- package/es/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
- package/es/components/parallelResourceBooking/components/productCard/index.js +0 -79
- package/es/components/parallelResourceBooking/components/productCard/index.less +0 -60
- package/es/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/parallelResourceBooking/components/progressBar/index.js +0 -93
- package/es/components/parallelResourceBooking/components/progressBar/index.less +0 -15
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/parallelResourceBooking/components/resourceUsability/index.js +0 -44
- package/es/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/parallelResourceBooking/components/selectHolder/index.js +0 -118
- package/es/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/parallelResourceBooking/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/index.js +0 -58
- package/es/components/parallelResourceBooking/utils.js +0 -99
- package/lib/components/booking/info/service2/utils.d.ts +0 -240
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/OpenCard/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.js +0 -100
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -69
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -248
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/parallelResourceBooking/components/eventCard/index.js +0 -124
- package/lib/components/parallelResourceBooking/components/eventCard/index.less +0 -81
- package/lib/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/parallelResourceBooking/components/productCard/index.js +0 -77
- package/lib/components/parallelResourceBooking/components/productCard/index.less +0 -60
- package/lib/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/parallelResourceBooking/components/progressBar/index.js +0 -100
- package/lib/components/parallelResourceBooking/components/progressBar/index.less +0 -15
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -116
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/parallelResourceBooking/components/selectHolder/index.js +0 -106
- package/lib/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/parallelResourceBooking/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/index.js +0 -78
- /package/es/components/{parallelResourceBooking → appointmentBooking}/assets/alert-circle.png +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/assets/calendar-heart.svg +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/assets/compass.svg +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/assets/image.svg +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/assets/phone.svg +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/assets/shopping-cart.svg +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/ContinueButton/index.d.ts +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/ContinueButton/index.less +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/Total.d.ts +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/index.d.ts +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/index.less +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/index.d.ts +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/index.js +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/index.less +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Content/index.d.ts +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Footer/index.d.ts +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Footer/index.less +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider/Information → appointmentBooking/components/Guest}/index.less +0 -0
- /package/es/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Header/index.d.ts +0 -0
- /package/{lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton → es/components/appointmentBooking/components/Header}/index.less +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/mock.d.ts +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/mock.js +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/status.d.ts +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/status.js +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/type.d.ts +0 -0
- /package/es/components/{parallelResourceBooking → appointmentBooking}/type.js +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/assets/alert-circle.png +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/assets/calendar-heart.svg +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/assets/compass.svg +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/assets/image.svg +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/assets/phone.svg +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/assets/shopping-cart.svg +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/ContinueButton/index.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/Total.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/index.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/Item/index.less +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/index.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Cart/index.less +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Content/index.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Footer/index.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Footer/index.less +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider/Information → appointmentBooking/components/Guest}/index.less +0 -0
- /package/lib/components/{parallelResourceBooking/components/Provider → appointmentBooking/components}/Header/index.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/mock.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/status.d.ts +0 -0
- /package/lib/components/{parallelResourceBooking → appointmentBooking}/type.d.ts +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
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/components/appointmentBooking/components/Date/index.tsx
|
|
30
|
+
var Date_exports = {};
|
|
31
|
+
__export(Date_exports, {
|
|
32
|
+
default: () => Date_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Date_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
38
|
+
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
|
39
|
+
var import_state = require("./state");
|
|
40
|
+
var import_classnames = __toESM(require("classnames"));
|
|
41
|
+
var import_icons = require("@ant-design/icons");
|
|
42
|
+
var import_context = require("../../context");
|
|
43
|
+
var import_index = require("./index.less");
|
|
44
|
+
import_dayjs.default.extend(import_isSameOrBefore.default);
|
|
45
|
+
var CalendarDate = (props) => {
|
|
46
|
+
const [currentDate, setCurrentDate] = (0, import_react.useState)();
|
|
47
|
+
const [dateMonthList, setDateMonthList] = (0, import_react.useState)([]);
|
|
48
|
+
const [currentMonth, setCurrentMonth] = (0, import_react.useState)(() => {
|
|
49
|
+
return (0, import_dayjs.default)();
|
|
50
|
+
});
|
|
51
|
+
const { appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
|
|
52
|
+
const startingColumn = 0 % 7;
|
|
53
|
+
const columns = Array.from(
|
|
54
|
+
{ length: 7 },
|
|
55
|
+
(_, index) => (index + 7 - startingColumn) % 7
|
|
56
|
+
);
|
|
57
|
+
const getMonthData = (date) => {
|
|
58
|
+
const firstDay = (0, import_dayjs.default)(`${date}-01`);
|
|
59
|
+
const startDay = firstDay.day();
|
|
60
|
+
const daysInMonth = firstDay.daysInMonth();
|
|
61
|
+
const monthData = [];
|
|
62
|
+
for (let i = 0; i < startDay; i++) {
|
|
63
|
+
monthData.push({
|
|
64
|
+
day: -1,
|
|
65
|
+
// 表示前一个月的日期
|
|
66
|
+
date: (0, import_dayjs.default)(firstDay).subtract(startDay - i, "day").toDate()
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
70
|
+
monthData.push({
|
|
71
|
+
day: i,
|
|
72
|
+
date: firstDay.date(i).format("YYYY-MM-DD")
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return monthData;
|
|
76
|
+
};
|
|
77
|
+
const lastMonthDisable = () => {
|
|
78
|
+
let newCurrentMonth = currentMonth.format("YYYY-MM");
|
|
79
|
+
let lastDate = (0, import_dayjs.default)(newCurrentMonth).subtract(1, "month");
|
|
80
|
+
return lastDate.isBefore((0, import_dayjs.default)(), "month");
|
|
81
|
+
};
|
|
82
|
+
const getDates = async (date) => {
|
|
83
|
+
const startDate = (0, import_dayjs.default)(date).startOf("month").format("YYYY-MM-DD");
|
|
84
|
+
const endDate = (0, import_dayjs.default)(date).endOf("month").format("YYYY-MM-DD");
|
|
85
|
+
const params = {
|
|
86
|
+
startDate,
|
|
87
|
+
endDate
|
|
88
|
+
};
|
|
89
|
+
const data = await appointmentBooking.getAvailableDate(params);
|
|
90
|
+
console.log(
|
|
91
|
+
data,
|
|
92
|
+
params,
|
|
93
|
+
date,
|
|
94
|
+
date.format("YYYY-MM") === (0, import_dayjs.default)().format("YYYY-MM"),
|
|
95
|
+
"wh78968"
|
|
96
|
+
);
|
|
97
|
+
if (date.format("YYYY-MM") === (0, import_dayjs.default)().format("YYYY-MM")) {
|
|
98
|
+
const firstAvailableDate = data.find(
|
|
99
|
+
(d) => d.status === "available"
|
|
100
|
+
);
|
|
101
|
+
setCurrentDate(firstAvailableDate == null ? void 0 : firstAvailableDate.date);
|
|
102
|
+
appointmentBooking.setDateRange([firstAvailableDate]);
|
|
103
|
+
}
|
|
104
|
+
const baseMonthData = getMonthData(date.format("YYYY-MM"));
|
|
105
|
+
const updatedDates = baseMonthData.map((day) => {
|
|
106
|
+
const matchedDay = data.find((d) => d.date === day.date);
|
|
107
|
+
if (matchedDay) {
|
|
108
|
+
return {
|
|
109
|
+
...day,
|
|
110
|
+
...matchedDay,
|
|
111
|
+
disabled: matchedDay.status === "unavailable"
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
return day;
|
|
115
|
+
});
|
|
116
|
+
setDateMonthList(updatedDates);
|
|
117
|
+
};
|
|
118
|
+
(0, import_react.useEffect)(() => {
|
|
119
|
+
getDates(currentMonth);
|
|
120
|
+
}, [currentMonth]);
|
|
121
|
+
const lastMonth = () => {
|
|
122
|
+
let currentLastText = currentMonth.format("YYYY-MM");
|
|
123
|
+
let newLastMonth = (0, import_dayjs.default)(currentLastText).subtract(1, "month");
|
|
124
|
+
setCurrentMonth(newLastMonth);
|
|
125
|
+
};
|
|
126
|
+
const nextMonth = () => {
|
|
127
|
+
let currentMonthText = currentMonth.format("YYYY-MM");
|
|
128
|
+
let newNextMonth = (0, import_dayjs.default)(currentMonthText).add(1, "month");
|
|
129
|
+
setCurrentMonth(newNextMonth);
|
|
130
|
+
};
|
|
131
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-date-box" }, !dateMonthList.length ? /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, style: { paddingTop: "16px" } }) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-header" }, /* @__PURE__ */ import_react.default.createElement(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
className: (0, import_classnames.default)("calendar-last-month", {
|
|
135
|
+
["last-month-disabled"]: lastMonthDisable()
|
|
136
|
+
}),
|
|
137
|
+
onClick: () => {
|
|
138
|
+
if (lastMonthDisable()) return;
|
|
139
|
+
lastMonth();
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
/* @__PURE__ */ import_react.default.createElement(import_icons.CaretLeftOutlined, null)
|
|
143
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-current-month" }, currentMonth.format("MMMM YYYY")), /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-next-month", onClick: nextMonth }, /* @__PURE__ */ import_react.default.createElement(import_icons.CaretRightOutlined, null))), /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-weeks" }, columns.map((col) => /* @__PURE__ */ import_react.default.createElement("div", { key: col, className: "calendar-weeks-items" }, import_state.weekListText[Number(col)]))), /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-days" }, dateMonthList.map((day, index) => {
|
|
144
|
+
const date = (0, import_dayjs.default)(day.date).format("YYYY-MM-DD");
|
|
145
|
+
const isCurrentMonth = (0, import_dayjs.default)(day.date).isSame(
|
|
146
|
+
currentMonth,
|
|
147
|
+
"month"
|
|
148
|
+
);
|
|
149
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
key: index,
|
|
153
|
+
className: (0, import_classnames.default)("calendar-days-items", {
|
|
154
|
+
["disabledDate"]: day == null ? void 0 : day.disabled,
|
|
155
|
+
// ['disabledSelect']: status === 'sold_out',
|
|
156
|
+
["selectDate"]: currentDate === date,
|
|
157
|
+
["other-month-days"]: !isCurrentMonth
|
|
158
|
+
}),
|
|
159
|
+
onClick: () => {
|
|
160
|
+
if (day == null ? void 0 : day.disabled) return;
|
|
161
|
+
console.log(day, "wh987976");
|
|
162
|
+
setCurrentDate(date);
|
|
163
|
+
appointmentBooking.setDateRange([day]);
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
isCurrentMonth && /* @__PURE__ */ import_react.default.createElement(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
className: (0, import_classnames.default)("day-text", {
|
|
170
|
+
// ['day-line']: !disabled,
|
|
171
|
+
})
|
|
172
|
+
},
|
|
173
|
+
(0, import_dayjs.default)(day.date).format("D")
|
|
174
|
+
)
|
|
175
|
+
);
|
|
176
|
+
})))));
|
|
177
|
+
};
|
|
178
|
+
var Date_default = CalendarDate;
|
|
@@ -1,34 +1,46 @@
|
|
|
1
|
-
.calendar-box {
|
|
1
|
+
.calendar-date-box {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
+
gap: 32px;
|
|
5
|
+
user-select: none;
|
|
6
|
+
margin-top: 16px;
|
|
4
7
|
|
|
5
8
|
.calendar-header {
|
|
6
9
|
display: flex;
|
|
7
10
|
align-items: center;
|
|
8
|
-
justify-content: space-
|
|
11
|
+
justify-content: space-evenly;
|
|
9
12
|
|
|
10
13
|
.calendar-last-month,
|
|
11
14
|
.calendar-next-month {
|
|
12
15
|
display: flex;
|
|
16
|
+
padding: 6px;
|
|
13
17
|
justify-content: center;
|
|
14
18
|
align-items: center;
|
|
15
|
-
|
|
19
|
+
gap: 8px;
|
|
20
|
+
border-radius: 8px;
|
|
21
|
+
border: 1px solid #d0d5dd;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.last-month-disabled {
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
background: #eaecf0;
|
|
16
28
|
cursor: pointer;
|
|
17
29
|
}
|
|
18
30
|
|
|
19
31
|
.calendar-current-month {
|
|
32
|
+
width: 250px;
|
|
20
33
|
text-align: center;
|
|
21
34
|
color: #101828;
|
|
35
|
+
font-size: 30px;
|
|
36
|
+
font-style: normal;
|
|
22
37
|
font-weight: 600;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
font-weight: 600;
|
|
26
|
-
line-height: 24px;
|
|
38
|
+
line-height: 38px;
|
|
39
|
+
/* 126.667% */
|
|
27
40
|
}
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
.calendar-content {
|
|
31
|
-
margin: 10px 0 20px;
|
|
32
44
|
display: flex;
|
|
33
45
|
flex-direction: column;
|
|
34
46
|
gap: 16px;
|
|
@@ -52,7 +64,7 @@
|
|
|
52
64
|
.calendar-days {
|
|
53
65
|
display: grid;
|
|
54
66
|
grid-template-columns: repeat(7, 1fr);
|
|
55
|
-
gap:
|
|
67
|
+
gap: 8px;
|
|
56
68
|
}
|
|
57
69
|
}
|
|
58
70
|
}
|
|
@@ -80,16 +92,18 @@
|
|
|
80
92
|
justify-content: center;
|
|
81
93
|
color: #101828;
|
|
82
94
|
text-align: center;
|
|
95
|
+
/* Text md/Medium */
|
|
83
96
|
font-size: 16px;
|
|
84
97
|
font-style: normal;
|
|
85
|
-
font-weight:
|
|
98
|
+
font-weight: bold;
|
|
86
99
|
line-height: 24px;
|
|
100
|
+
/* 150% */
|
|
87
101
|
|
|
88
102
|
&.day-line::before {
|
|
89
103
|
position: absolute;
|
|
90
104
|
bottom: 12px;
|
|
91
105
|
content: '';
|
|
92
|
-
width:
|
|
106
|
+
width: 28px;
|
|
93
107
|
height: 4px;
|
|
94
108
|
flex-shrink: 0;
|
|
95
109
|
border-radius: 2px;
|
|
@@ -98,10 +112,8 @@
|
|
|
98
112
|
}
|
|
99
113
|
|
|
100
114
|
&.disabledDate {
|
|
101
|
-
|
|
102
|
-
cursor:
|
|
103
|
-
background: var(--Gray-100, #f2f4f7);
|
|
104
|
-
border: none;
|
|
115
|
+
background: #eaecf0;
|
|
116
|
+
cursor: not-allowed;
|
|
105
117
|
}
|
|
106
118
|
|
|
107
119
|
&.disabledSelect {
|
|
@@ -109,7 +121,7 @@
|
|
|
109
121
|
}
|
|
110
122
|
|
|
111
123
|
&.selectDate {
|
|
112
|
-
border: 2px solid
|
|
124
|
+
border: 2px solid #7f56d9;
|
|
113
125
|
}
|
|
114
126
|
|
|
115
127
|
&.other-month-days {
|
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// src/components/
|
|
29
|
+
// src/components/appointmentBooking/components/Date/state.ts
|
|
30
30
|
var state_exports = {};
|
|
31
31
|
__export(state_exports, {
|
|
32
32
|
ShowDayOnly: () => ShowDayOnly,
|
|
@@ -58,21 +58,18 @@ var weekListText = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
|
58
58
|
var statusColor = {
|
|
59
59
|
call_to_book: "#444CE7",
|
|
60
60
|
// 请致电预订
|
|
61
|
-
lots_of_space: "#
|
|
61
|
+
lots_of_space: "#079455",
|
|
62
62
|
// 库存充足
|
|
63
|
-
filling_up_fast: "#
|
|
63
|
+
filling_up_fast: "#CA8504",
|
|
64
64
|
// 库存紧张
|
|
65
|
-
sold_out: "#D92D20"
|
|
65
|
+
sold_out: "#D92D20"
|
|
66
66
|
// 无库存
|
|
67
|
-
unavailable: "rgba(68, 76, 231, 0.00)"
|
|
68
|
-
// 不可用
|
|
69
67
|
};
|
|
70
68
|
var getStatus = (dateLimit, currentDate, cutTime) => {
|
|
71
69
|
var _a, _b;
|
|
72
70
|
let status = "";
|
|
73
71
|
let disabled = false;
|
|
74
72
|
const dataItem = dateLimit[currentDate];
|
|
75
|
-
console.log(currentDate);
|
|
76
73
|
const startTime = (0, import_dayjs.default)(cutTime == null ? void 0 : cutTime.shop_time).format("YYYY-MM-DD HH:mm");
|
|
77
74
|
const startDate = (0, import_dayjs.default)(cutTime == null ? void 0 : cutTime.shop_time).format("YYYY-MM-DD");
|
|
78
75
|
const endTime = (0, import_dayjs.default)(startTime).add(cutTime == null ? void 0 : cutTime.unit, cutTime == null ? void 0 : cutTime.unit_type);
|
|
@@ -163,7 +160,7 @@ var getCallToBookStatus = (currentDate, dateLimitData, cutTime) => {
|
|
|
163
160
|
return isShowCallToBook;
|
|
164
161
|
}
|
|
165
162
|
if ((cutTime == null ? void 0 : cutTime.unit_type) === "hours" || (cutTime == null ? void 0 : cutTime.unit_type) === "minutes" || (cutTime == null ? void 0 : cutTime.unit_type) === "days") {
|
|
166
|
-
const startTime = (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
|
|
163
|
+
const startTime = (0, import_dayjs.default)(cutTime.shop_time).format("YYYY-MM-DD HH:mm:ss");
|
|
167
164
|
const endTime = (0, import_dayjs.default)(startTime).add(cutTime == null ? void 0 : cutTime.unit, cutTime == null ? void 0 : cutTime.unit_type).format("YYYY-MM-DD HH:mm:ss");
|
|
168
165
|
if ((0, import_dayjs.default)(currentDate).isBefore((0, import_dayjs.default)(endTime.split(" ")[0]))) {
|
|
169
166
|
isShowCallToBook = true;
|
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// src/components/
|
|
29
|
+
// src/components/appointmentBooking/components/Footer/index.tsx
|
|
30
30
|
var Footer_exports = {};
|
|
31
31
|
__export(Footer_exports, {
|
|
32
32
|
default: () => Footer_default
|
|
@@ -35,53 +35,35 @@ module.exports = __toCommonJS(Footer_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_materials = require("@pisell/materials");
|
|
37
37
|
var import_react2 = require("react");
|
|
38
|
-
var import_Sales = require("../../../../Sales");
|
|
39
|
-
var import_SelectHolderModal = __toESM(require("../SelectHolderModal"));
|
|
40
38
|
var import_ContinueButton = __toESM(require("../Cart/ContinueButton"));
|
|
41
|
-
var import_shopping_cart = __toESM(require("
|
|
39
|
+
var import_shopping_cart = __toESM(require("../../assets/shopping-cart.svg"));
|
|
40
|
+
var import_hooks = require("../../hooks");
|
|
42
41
|
var import_Cart = __toESM(require("../Cart"));
|
|
43
42
|
var import_Total = __toESM(require("../Cart/Item/Total"));
|
|
44
43
|
var import_index = require("./index.less");
|
|
45
44
|
var Footer = () => {
|
|
46
45
|
var _a;
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
46
|
+
const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
|
|
47
|
+
const appointmentBookingCart = (0, import_hooks.useAppointmentBookingCart)();
|
|
48
|
+
const [open, setOpen] = (0, import_react2.useState)(false);
|
|
49
|
+
const cartData = {
|
|
50
|
+
cartItems: [1, 2]
|
|
51
|
+
};
|
|
51
52
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
52
53
|
import_materials.SectionFooters,
|
|
53
54
|
{
|
|
54
55
|
className: "section-footer-wrap",
|
|
55
|
-
left: (
|
|
56
|
-
// <div className="section-footer-left">
|
|
57
|
-
// {/* <PisellText>{locales.getText('pisell2.event.total')}: </PisellText>
|
|
58
|
-
// <PisellText.Amount
|
|
59
|
-
// value={total}
|
|
60
|
-
// showCurrencySymbol={true}
|
|
61
|
-
// className="amount"
|
|
62
|
-
// /> */}
|
|
63
|
-
// </div>
|
|
64
|
-
/* @__PURE__ */ import_react.default.createElement(import_Total.default, { className: "section-footer-left", isFooter: true })
|
|
65
|
-
),
|
|
56
|
+
left: /* @__PURE__ */ import_react.default.createElement(import_Total.default, { className: "section-footer-left", isFooter: true }),
|
|
66
57
|
right: /* @__PURE__ */ import_react.default.createElement("div", { className: "section-footer-right" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Badge, { count: ((_a = cartData.cartItems) == null ? void 0 : _a.length) || 0 }, /* @__PURE__ */ import_react.default.createElement(
|
|
67
58
|
import_materials.Button,
|
|
68
59
|
{
|
|
69
60
|
size: "large",
|
|
70
|
-
onClick: () =>
|
|
61
|
+
onClick: () => setOpen(true),
|
|
71
62
|
className: "section-footer-btn"
|
|
72
63
|
},
|
|
73
64
|
/* @__PURE__ */ import_react.default.createElement(import_materials.Image, { src: import_shopping_cart.default, preview: false })
|
|
74
65
|
)), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
|
75
66
|
}
|
|
76
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
77
|
-
import_SelectHolderModal.default,
|
|
78
|
-
{
|
|
79
|
-
open,
|
|
80
|
-
selectedItem,
|
|
81
|
-
onSelect: (e) => {
|
|
82
|
-
setSelectedItem(e);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
), /* @__PURE__ */ import_react.default.createElement(import_Cart.default, { open: openCart, onCancel: () => onCloseCart() }));
|
|
67
|
+
), /* @__PURE__ */ import_react.default.createElement(import_Cart.default, { open, onCancel: () => setOpen(false) }));
|
|
86
68
|
};
|
|
87
69
|
var Footer_default = Footer;
|
|
@@ -26,33 +26,34 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// src/components/
|
|
30
|
-
var
|
|
31
|
-
__export(
|
|
32
|
-
default: () =>
|
|
29
|
+
// src/components/appointmentBooking/components/Guest/index.tsx
|
|
30
|
+
var Guest_exports = {};
|
|
31
|
+
__export(Guest_exports, {
|
|
32
|
+
default: () => Guest_default
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(Guest_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_materials = require("@pisell/materials");
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var import_RemoveOptionConfirmModal = __toESM(require("../RemoveOptionConfirmModal"));
|
|
39
|
+
var import_hooks = require("../../hooks");
|
|
40
|
+
var import_context = require("../../context");
|
|
41
|
+
var import_utils2 = require("../../utils");
|
|
43
42
|
var import_index = require("./index.less");
|
|
44
|
-
var
|
|
45
|
-
const { onHolderOpen, open } = (0, import_Sales.useHolder)();
|
|
46
|
-
const { cartDataHolderList } = (0, import_Sales.useCart)();
|
|
47
|
-
const { selectHolder, deleteHolderById } = (0, import_Sales.useHolder)();
|
|
48
|
-
const { prevStep } = (0, import_Sales.useStep)();
|
|
43
|
+
var Guest = () => {
|
|
49
44
|
const [openOption, setOpenOption] = (0, import_react.useState)(false);
|
|
50
45
|
const [holderItem, setHolderItem] = (0, import_react.useState)(null);
|
|
51
46
|
const [removeOpen, setRemoveOpen] = (0, import_react.useState)(false);
|
|
47
|
+
const { carts, appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
|
|
48
|
+
const { accountLists } = (0, import_hooks.useAppointmentBookingAccount)();
|
|
49
|
+
const lists = (0, import_react.useMemo)(() => {
|
|
50
|
+
const _lists = (0, import_utils2.formatGuest)(accountLists, carts);
|
|
51
|
+
return _lists;
|
|
52
|
+
}, [accountLists, carts]);
|
|
52
53
|
const options = [
|
|
53
54
|
{
|
|
54
55
|
key: "edit",
|
|
55
|
-
label: /* @__PURE__ */ import_react.default.createElement("span", { className: "dropdown-menu-item" }, import_utils.locales.getText("pisell2.
|
|
56
|
+
label: /* @__PURE__ */ import_react.default.createElement("span", { className: "dropdown-menu-item" }, import_utils.locales.getText("pisell2.appointment.edit.service"))
|
|
56
57
|
},
|
|
57
58
|
{
|
|
58
59
|
key: "remove",
|
|
@@ -61,13 +62,18 @@ var Information = () => {
|
|
|
61
62
|
];
|
|
62
63
|
const handleClick = ({ key }, item) => {
|
|
63
64
|
if (key === "edit") {
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
appointmentBooking.setActiveAccount(item.id);
|
|
66
|
+
appointmentBooking.back();
|
|
66
67
|
return;
|
|
67
68
|
}
|
|
68
|
-
|
|
69
|
+
appointmentBooking.removeAccount(item.id);
|
|
69
70
|
};
|
|
70
71
|
const renderOptionButton = (item) => {
|
|
72
|
+
console.log(item, options, "wh978776");
|
|
73
|
+
let _options = [...options];
|
|
74
|
+
if (!item.isGuest) {
|
|
75
|
+
_options = _options.filter((option) => option.key !== "remove");
|
|
76
|
+
}
|
|
71
77
|
if ((0, import_utils.isMobile)()) {
|
|
72
78
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
73
79
|
import_materials.Button,
|
|
@@ -85,7 +91,7 @@ var Information = () => {
|
|
|
85
91
|
import_antd.Dropdown,
|
|
86
92
|
{
|
|
87
93
|
menu: {
|
|
88
|
-
items:
|
|
94
|
+
items: _options,
|
|
89
95
|
onClick: (e) => {
|
|
90
96
|
setHolderItem(item);
|
|
91
97
|
handleClick(e, item);
|
|
@@ -97,7 +103,17 @@ var Information = () => {
|
|
|
97
103
|
/* @__PURE__ */ import_react.default.createElement(import_materials.Button, null, import_utils.locales.getText("pisell2.event.option"))
|
|
98
104
|
);
|
|
99
105
|
};
|
|
100
|
-
|
|
106
|
+
const handleAddGuest = () => {
|
|
107
|
+
const guest = {
|
|
108
|
+
id: (0, import_utils.getUniqueId)(),
|
|
109
|
+
username: `Guest${accountLists.length + 1}`,
|
|
110
|
+
isGuest: true
|
|
111
|
+
};
|
|
112
|
+
appointmentBooking.addAccount([guest]);
|
|
113
|
+
appointmentBooking.setActiveAccount(guest.id);
|
|
114
|
+
appointmentBooking.back();
|
|
115
|
+
};
|
|
116
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "provider-information-wrap" }, lists == null ? void 0 : lists.map((item) => {
|
|
101
117
|
var _a;
|
|
102
118
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
103
119
|
import_materials.PisellCard,
|
|
@@ -108,44 +124,19 @@ var Information = () => {
|
|
|
108
124
|
isClickable: false
|
|
109
125
|
},
|
|
110
126
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "information-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "information-left" }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellAvatar, { src: item.avatar, size: "md" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "information-title" }, /* @__PURE__ */ import_react.default.createElement("span", null, item.name), /* @__PURE__ */ import_react.default.createElement("span", { className: "subtitle" }, `${import_utils.locales.getText(
|
|
111
|
-
"pisell2.
|
|
112
|
-
)((_a = item.children) == null ? void 0 : _a.length)}`))), renderOptionButton(item))
|
|
113
|
-
item.children.map((child) => {
|
|
114
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "child-wrap" }, child.name);
|
|
115
|
-
})
|
|
127
|
+
"pisell2.appointment.service.title"
|
|
128
|
+
)((_a = item.children) == null ? void 0 : _a.length)}`))), renderOptionButton(item))
|
|
116
129
|
);
|
|
117
|
-
}), /* @__PURE__ */ import_react.default.createElement(
|
|
130
|
+
}), /* @__PURE__ */ import_react.default.createElement(
|
|
118
131
|
import_materials.Button,
|
|
119
132
|
{
|
|
120
133
|
size: "large",
|
|
121
134
|
style: { width: "max-content" },
|
|
122
|
-
onClick:
|
|
123
|
-
onHolderOpen();
|
|
124
|
-
},
|
|
135
|
+
onClick: handleAddGuest,
|
|
125
136
|
className: "provider-information-add-button"
|
|
126
137
|
},
|
|
127
138
|
/* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-plus", style: { fontSize: "20px" } }),
|
|
128
|
-
import_utils.locales.getText("pisell2.
|
|
129
|
-
))
|
|
130
|
-
import_InformationOptionsModal.default,
|
|
131
|
-
{
|
|
132
|
-
options,
|
|
133
|
-
open: openOption,
|
|
134
|
-
holderItem,
|
|
135
|
-
onCancel: () => setOpenOption(false),
|
|
136
|
-
onClick: handleClick
|
|
137
|
-
}
|
|
138
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
139
|
-
import_RemoveOptionConfirmModal.default,
|
|
140
|
-
{
|
|
141
|
-
removeOpen,
|
|
142
|
-
onCancel: () => setRemoveOpen(false),
|
|
143
|
-
onOk: () => {
|
|
144
|
-
deleteHolderById(holderItem.id);
|
|
145
|
-
setRemoveOpen(false);
|
|
146
|
-
setOpenOption(false);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
));
|
|
139
|
+
import_utils.locales.getText("pisell2.appointment.add.guest")
|
|
140
|
+
)));
|
|
150
141
|
};
|
|
151
|
-
var
|
|
142
|
+
var Guest_default = Guest;
|
|
@@ -26,32 +26,34 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// src/components/
|
|
30
|
-
var
|
|
31
|
-
__export(
|
|
32
|
-
default: () =>
|
|
29
|
+
// src/components/appointmentBooking/components/Header/index.tsx
|
|
30
|
+
var Header_exports = {};
|
|
31
|
+
__export(Header_exports, {
|
|
32
|
+
default: () => Header_default
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(Header_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var import_progressBar = __toESM(require("../../../eventBooking/components/progressBar"));
|
|
37
|
+
var import_context = require("../../context");
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
|
-
var
|
|
40
|
-
|
|
39
|
+
var Header = () => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
const { currentStep, appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
|
|
42
|
+
const handleBack = () => {
|
|
43
|
+
appointmentBooking.back();
|
|
44
|
+
};
|
|
45
|
+
const handleClose = () => {
|
|
46
|
+
appointmentBooking.close();
|
|
47
|
+
};
|
|
41
48
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
-
|
|
49
|
+
import_progressBar.default,
|
|
43
50
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
cancelVisible: false,
|
|
50
|
-
closable: true,
|
|
51
|
-
onCancel: () => onCancel(),
|
|
52
|
-
onOk: () => onCancel(),
|
|
53
|
-
zIndex: 1001
|
|
51
|
+
title: (_a = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a.title,
|
|
52
|
+
description: (_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.description,
|
|
53
|
+
showBack: (currentStep == null ? void 0 : currentStep.index) > 0,
|
|
54
|
+
onBack: () => handleBack(),
|
|
55
|
+
onClose: () => handleClose()
|
|
54
56
|
}
|
|
55
57
|
);
|
|
56
58
|
};
|
|
57
|
-
var
|
|
59
|
+
var Header_default = Header;
|
|
File without changes
|