@pisell/private-materials 3.3.46 → 3.3.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/es/components/appointmentBooking/components/Resource/index.js +19 -7
- package/es/components/appointmentBooking/components/Services/index.js +1 -1
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -4
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -0
- package/es/components/appointmentBooking/context.js +7 -3
- package/es/components/appointmentBooking/hooks.js +126 -67
- package/es/components/appointmentBooking/utils.js +6 -1
- package/es/components/booking/addons/index.js +31 -26
- package/es/components/booking/components/footer/amount.js +2 -2
- package/es/components/booking/components/footer/utils.d.ts +9 -0
- package/es/components/booking/components/footer/utils.js +32 -10
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service2/utils.d.ts +4 -1
- package/es/components/booking/info/service2/utils.js +21 -2
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +9 -6
- package/es/components/booking/info2/service/editService/index.js +56 -18
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +5 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +75 -26
- package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
- package/es/components/ticketBooking/index.js +1 -1
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/serve.js +98 -92
- package/es/components/ticketBooking/utils/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.js +33 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +7 -4
- package/lib/components/appointmentBooking/components/Services/index.js +1 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +4 -3
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -0
- package/lib/components/appointmentBooking/context.js +7 -3
- package/lib/components/appointmentBooking/hooks.js +70 -11
- package/lib/components/appointmentBooking/utils.js +2 -0
- package/lib/components/booking/addons/index.js +27 -21
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/utils.d.ts +9 -0
- package/lib/components/booking/components/footer/utils.js +24 -7
- package/lib/components/booking/info/service/addService/index.js +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +4 -1
- package/lib/components/booking/info/service2/utils.js +21 -2
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/service/addService/index.js +8 -5
- package/lib/components/booking/info2/service/editService/index.js +59 -23
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +6 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +74 -20
- package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/serve.js +6 -2
- package/lib/components/ticketBooking/utils/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.js +33 -0
- package/package.json +4 -4
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -3
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/types.d.ts +0 -31
- package/es/components/Sales/Cart/utils.d.ts +0 -23
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/utils.d.ts +0 -35
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Event/Detail.d.ts +0 -29
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/serve.d.ts +0 -39
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Init/index.d.ts +0 -25
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Step/index.d.ts +0 -39
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/utils.d.ts +0 -36
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/appointmentBooking/locales.d.ts +0 -354
- package/es/components/appointmentBooking/mock.d.ts +0 -627
- package/es/components/appointmentBooking/status.d.ts +0 -21
- package/es/components/appointmentBooking/type.d.ts +0 -17
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/forms/sendModal/index.d.ts +0 -27
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
- package/es/components/booking/forms/single/index.d.ts +0 -10
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/index.d.ts +0 -4
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/locales.d.ts +0 -813
- package/es/components/booking/materiels/contacts/index.d.ts +0 -15
- package/es/components/booking/materiels/holder/index.d.ts +0 -6
- package/es/components/booking/model.d.ts +0 -115
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/booking/payments/index.d.ts +0 -9
- package/es/components/eftpos/index.d.ts +0 -46
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/locales.d.ts +0 -330
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
- package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -222
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/index.d.ts +0 -18
- package/es/components/login/index.d.ts +0 -8
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentList/index.d.ts +0 -19
- package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -286
- package/es/components/pay/toC/model.d.ts +0 -39
- package/es/components/pay/toC/serve.d.ts +0 -57
- package/es/components/pay/toC/utils.d.ts +0 -51
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -15
- package/es/components/productExtension/index.d.ts +0 -7
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/es/components/productSelect/hooks/useToken.d.ts +0 -18
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/productSelect/mock.d.ts +0 -134
- package/es/components/productSelect/theme/token.d.ts +0 -17
- package/es/components/ruleSetting/index.d.ts +0 -9
- package/es/components/ruleSetting/server.d.ts +0 -4
- package/es/components/schedules/index.d.ts +0 -3
- package/es/components/schedules/schedules/utils.d.ts +0 -72
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/subTotal/index.d.ts +0 -22
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/taxSelect/index.d.ts +0 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/data.d.ts +0 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/locales.d.ts +0 -96
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/index.d.ts +0 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/walletList/index.d.ts +0 -28
- package/es/components/walletList/model.d.ts +0 -6
- package/es/components/walletList/serve.d.ts +0 -12
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/hooks/useLocale.d.ts +0 -2
- package/es/hooks/useLoginUser.d.ts +0 -2
- package/es/index.d.ts +0 -45
- package/es/utils/date.d.ts +0 -11
- package/es/utils/index.d.ts +0 -23
- package/es/utils/locales.d.ts +0 -1
- package/es/utils/tasks/index.d.ts +0 -16
- package/es/utils/tasks/type.d.ts +0 -4
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -3
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/types.d.ts +0 -31
- package/lib/components/Sales/Cart/utils.d.ts +0 -23
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/utils.d.ts +0 -35
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Event/Detail.d.ts +0 -29
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/serve.d.ts +0 -39
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Init/index.d.ts +0 -25
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Step/index.d.ts +0 -39
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +0 -36
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/appointmentBooking/locales.d.ts +0 -354
- package/lib/components/appointmentBooking/mock.d.ts +0 -627
- package/lib/components/appointmentBooking/status.d.ts +0 -21
- package/lib/components/appointmentBooking/type.d.ts +0 -17
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/forms/sendModal/index.d.ts +0 -27
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
- package/lib/components/booking/forms/single/index.d.ts +0 -10
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/index.d.ts +0 -4
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/locales.d.ts +0 -813
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
- package/lib/components/booking/materiels/holder/index.d.ts +0 -6
- package/lib/components/booking/model.d.ts +0 -115
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/booking/payments/index.d.ts +0 -9
- package/lib/components/eftpos/index.d.ts +0 -46
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/locales.d.ts +0 -330
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -222
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/index.d.ts +0 -18
- package/lib/components/login/index.d.ts +0 -8
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentList/index.d.ts +0 -19
- package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -286
- package/lib/components/pay/toC/model.d.ts +0 -39
- package/lib/components/pay/toC/serve.d.ts +0 -57
- package/lib/components/pay/toC/utils.d.ts +0 -51
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -15
- package/lib/components/productExtension/index.d.ts +0 -7
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/productSelect/mock.d.ts +0 -134
- package/lib/components/productSelect/theme/token.d.ts +0 -17
- package/lib/components/ruleSetting/index.d.ts +0 -9
- package/lib/components/ruleSetting/server.d.ts +0 -4
- package/lib/components/schedules/index.d.ts +0 -3
- package/lib/components/schedules/schedules/utils.d.ts +0 -72
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/subTotal/index.d.ts +0 -22
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/taxSelect/index.d.ts +0 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/data.d.ts +0 -58
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/locales.d.ts +0 -96
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/index.d.ts +0 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/components/walletList/model.d.ts +0 -6
- package/lib/components/walletList/serve.d.ts +0 -12
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/hooks/useLocale.d.ts +0 -2
- package/lib/hooks/useLoginUser.d.ts +0 -2
- package/lib/index.d.ts +0 -45
- package/lib/utils/date.d.ts +0 -11
- package/lib/utils/index.d.ts +0 -23
- package/lib/utils/locales.d.ts +0 -1
- package/lib/utils/tasks/index.d.ts +0 -16
- package/lib/utils/tasks/type.d.ts +0 -4
- /package/es/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
- /package/lib/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
|
@@ -50,9 +50,10 @@ var import_utilsByBooking = require("../../utilsByBooking");
|
|
|
50
50
|
var import_utils4 = require("../addService/utils");
|
|
51
51
|
var import_materials = require("@pisell/materials");
|
|
52
52
|
var import_utils5 = require("../../../info/utils");
|
|
53
|
+
var import_utils6 = require("../../../info/service2/utils");
|
|
53
54
|
var submitLock = false;
|
|
54
55
|
var Info = (_, ref) => {
|
|
55
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E;
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
|
|
56
57
|
const [form] = import_antd.Form.useForm();
|
|
57
58
|
const useTotal = import_antd.Form.useWatch("total", form);
|
|
58
59
|
const useResource = import_antd.Form.useWatch("resource", form);
|
|
@@ -61,6 +62,10 @@ var Info = (_, ref) => {
|
|
|
61
62
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
62
63
|
const resourcesRef = (0, import_react.useRef)(null);
|
|
63
64
|
const isChangeTotal = (0, import_react.useRef)(false);
|
|
65
|
+
const isNormalProduct = (0, import_react.useMemo)(() => {
|
|
66
|
+
var _a2, _b2;
|
|
67
|
+
return ((_a2 = state == null ? void 0 : state.service) == null ? void 0 : _a2.cacheItem) && (0, import_utils6.isNormalProductByDurationSchedule)((_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.cacheItem);
|
|
68
|
+
}, [(_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem]);
|
|
64
69
|
const getCurrentCacheItem = (_cacheItem) => {
|
|
65
70
|
let values = form.getFieldsValue();
|
|
66
71
|
let _item = _cacheItem || state.service.cacheItem;
|
|
@@ -89,7 +94,7 @@ var Info = (_, ref) => {
|
|
|
89
94
|
state.service.cacheItem,
|
|
90
95
|
useStartTime,
|
|
91
96
|
useResource,
|
|
92
|
-
(
|
|
97
|
+
(_d = (_c = (_b = state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.service_time
|
|
93
98
|
]);
|
|
94
99
|
const flexibleOption = (0, import_react.useMemo)(() => {
|
|
95
100
|
return (0, import_utils4.getFlexibleOption)({
|
|
@@ -155,7 +160,7 @@ var Info = (_, ref) => {
|
|
|
155
160
|
const onFinish = (values) => {
|
|
156
161
|
var _a2;
|
|
157
162
|
let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
|
|
158
|
-
if (!isSuccess) {
|
|
163
|
+
if (isShowTimeAndResource && !isSuccess) {
|
|
159
164
|
return;
|
|
160
165
|
}
|
|
161
166
|
if (submitLock) {
|
|
@@ -225,7 +230,7 @@ var Info = (_, ref) => {
|
|
|
225
230
|
let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
|
|
226
231
|
let cPrice = Number(useTotal || 0);
|
|
227
232
|
return cPrice !== oPrice;
|
|
228
|
-
}, [useTotal, (
|
|
233
|
+
}, [useTotal, (_f = (_e = state.service.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.origin_total]);
|
|
229
234
|
const getResources = () => {
|
|
230
235
|
let res = (0, import_utils4.formatResources)({
|
|
231
236
|
cacheItem: getCurrentCacheItem(),
|
|
@@ -288,18 +293,18 @@ var Info = (_, ref) => {
|
|
|
288
293
|
}, [state.service.editModal, state.isBookingCreatePage]);
|
|
289
294
|
(0, import_react.useEffect)(() => {
|
|
290
295
|
getDiscount();
|
|
291
|
-
}, [useTotal, (
|
|
296
|
+
}, [useTotal, (_h = (_g = state.service.cacheItem) == null ? void 0 : _g._extend) == null ? void 0 : _h.origin_total]);
|
|
292
297
|
const isDiscount = (0, import_react.useMemo)(() => {
|
|
293
298
|
var _a2, _b2, _c2;
|
|
294
299
|
if (!((_a2 = state.service) == null ? void 0 : _a2.cacheItem)) {
|
|
295
300
|
return false;
|
|
296
301
|
}
|
|
297
302
|
return useTotal != ((_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend.origin_total);
|
|
298
|
-
}, [useTotal, (
|
|
303
|
+
}, [useTotal, (_j = (_i = state.service) == null ? void 0 : _i.cacheItem) == null ? void 0 : _j._extend.origin_total]);
|
|
299
304
|
const bundles = (0, import_react.useMemo)(() => {
|
|
300
305
|
var _a2, _b2, _c2, _d2;
|
|
301
306
|
return ((_d2 = (_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.bundle) || [];
|
|
302
|
-
}, [(
|
|
307
|
+
}, [(_n = (_m = (_l = (_k = state.service) == null ? void 0 : _k.cacheItem) == null ? void 0 : _l._extend) == null ? void 0 : _m.other) == null ? void 0 : _n.bundle]);
|
|
303
308
|
const handleEdit = (e) => {
|
|
304
309
|
var _a2, _b2, _c2, _d2, _e2;
|
|
305
310
|
const item = state.service.cacheItem;
|
|
@@ -319,14 +324,16 @@ var Info = (_, ref) => {
|
|
|
319
324
|
id: item.id,
|
|
320
325
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
321
326
|
showConfig: {
|
|
322
|
-
option:
|
|
327
|
+
option: true,
|
|
323
328
|
session: isSession,
|
|
324
|
-
variant:
|
|
325
|
-
package: true
|
|
329
|
+
variant: true,
|
|
330
|
+
package: true,
|
|
331
|
+
number: (0, import_utils6.isNormalProductByDurationSchedule)(item)
|
|
326
332
|
},
|
|
327
333
|
isOS: isSession,
|
|
328
334
|
customer_id: (_e2 = (_d2 = state.client) == null ? void 0 : _d2.value) == null ? void 0 : _e2.id,
|
|
329
335
|
value: {
|
|
336
|
+
quantity: item._extend.quantity,
|
|
330
337
|
...item._extend.other,
|
|
331
338
|
...sessionValue
|
|
332
339
|
}
|
|
@@ -346,6 +353,7 @@ var Info = (_, ref) => {
|
|
|
346
353
|
...item._extend,
|
|
347
354
|
// 将当前表单的值覆盖进去
|
|
348
355
|
...values,
|
|
356
|
+
quantity: (e2 == null ? void 0 : e2.quantity) || (values == null ? void 0 : values.quantity) || 1,
|
|
349
357
|
// 覆盖选择的规格和套餐
|
|
350
358
|
other
|
|
351
359
|
},
|
|
@@ -378,7 +386,8 @@ var Info = (_, ref) => {
|
|
|
378
386
|
});
|
|
379
387
|
form.setFieldsValue({
|
|
380
388
|
total: _total,
|
|
381
|
-
capacity: (_a3 = cacheItem._extend) == null ? void 0 : _a3.capacity
|
|
389
|
+
capacity: (_a3 = cacheItem._extend) == null ? void 0 : _a3.capacity,
|
|
390
|
+
quantity: (e2 == null ? void 0 : e2.quantity) || (values == null ? void 0 : values.quantity) || 1
|
|
382
391
|
});
|
|
383
392
|
}
|
|
384
393
|
});
|
|
@@ -406,15 +415,20 @@ var Info = (_, ref) => {
|
|
|
406
415
|
const handleTotalChange = (number) => {
|
|
407
416
|
isChangeTotal.current = true;
|
|
408
417
|
};
|
|
409
|
-
|
|
410
|
-
|
|
418
|
+
const isShowTimeAndResource = (0, import_react.useMemo)(() => {
|
|
419
|
+
if (state.renderType !== "eventBooking" && !isNormalProduct) {
|
|
420
|
+
return true;
|
|
421
|
+
}
|
|
422
|
+
return false;
|
|
423
|
+
}, [state.renderType, isNormalProduct]);
|
|
424
|
+
const SelectTime = (_o = window.BaseMaterials) == null ? void 0 : _o.SelectTime;
|
|
411
425
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
412
426
|
import_drawer.default,
|
|
413
427
|
{
|
|
414
428
|
titleNoWrap: true,
|
|
415
429
|
zIndex: state.service.changeService ? 999 : 1e3,
|
|
416
430
|
forceRender: true,
|
|
417
|
-
open: state.service.editModal && !((
|
|
431
|
+
open: state.service.editModal && !((_p = state.service.cacheItem) == null ? void 0 : _p.autoClose),
|
|
418
432
|
title: import_utils.locales.getText("pisell2.text.edit-service"),
|
|
419
433
|
onClose: () => {
|
|
420
434
|
dispatch({
|
|
@@ -427,7 +441,7 @@ var Info = (_, ref) => {
|
|
|
427
441
|
});
|
|
428
442
|
}
|
|
429
443
|
},
|
|
430
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((
|
|
444
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
|
|
431
445
|
import_collapsibleList.default,
|
|
432
446
|
{
|
|
433
447
|
style: { marginTop: bundles.length ? "8px" : 0 },
|
|
@@ -440,9 +454,9 @@ var Info = (_, ref) => {
|
|
|
440
454
|
label: import_utils.locales.getText("pisell2.text.price"),
|
|
441
455
|
name: "total",
|
|
442
456
|
rules: [{ required: true }],
|
|
443
|
-
extra: useTotal !== ((
|
|
457
|
+
extra: useTotal !== ((_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
|
|
444
458
|
(0, import_utils.formatAmount)(
|
|
445
|
-
(
|
|
459
|
+
(_w = (_v = state.service.cacheItem) == null ? void 0 : _v._extend) == null ? void 0 : _w.origin_total,
|
|
446
460
|
2,
|
|
447
461
|
state.amountSymbol
|
|
448
462
|
),
|
|
@@ -458,8 +472,8 @@ var Info = (_, ref) => {
|
|
|
458
472
|
prefix: state.amountSymbol,
|
|
459
473
|
onChange: handleTotalChange,
|
|
460
474
|
disabled: state.channelDisabledEdit,
|
|
461
|
-
originValue: ((
|
|
462
|
-
placeholder: ((
|
|
475
|
+
originValue: ((_y = (_x = state.service.cacheItem) == null ? void 0 : _x._extend) == null ? void 0 : _y.origin_total) || 0,
|
|
476
|
+
placeholder: ((_A = (_z = state.service.cacheItem) == null ? void 0 : _z._extend) == null ? void 0 : _A.origin_total) || "0"
|
|
463
477
|
}
|
|
464
478
|
)
|
|
465
479
|
)), isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -469,7 +483,7 @@ var Info = (_, ref) => {
|
|
|
469
483
|
name: "discount_reason"
|
|
470
484
|
},
|
|
471
485
|
/* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
|
|
472
|
-
)) : null,
|
|
486
|
+
)) : null, isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
473
487
|
import_antd.Form.Item,
|
|
474
488
|
{
|
|
475
489
|
label: import_utils.locales.getText("pisell2.text.start_time"),
|
|
@@ -479,7 +493,7 @@ var Info = (_, ref) => {
|
|
|
479
493
|
SelectTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
480
494
|
SelectTime,
|
|
481
495
|
{
|
|
482
|
-
slice: (
|
|
496
|
+
slice: (_E = (_D = (_C = (_B = state.bookingConfig) == null ? void 0 : _B.config) == null ? void 0 : _C.basic) == null ? void 0 : _D.service_time) == null ? void 0 : _E.value,
|
|
483
497
|
timePickerProps: {
|
|
484
498
|
style: { width: "100%" }
|
|
485
499
|
},
|
|
@@ -512,7 +526,29 @@ var Info = (_, ref) => {
|
|
|
512
526
|
state,
|
|
513
527
|
cacheItem: state.service.cacheItem
|
|
514
528
|
}
|
|
515
|
-
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null)))
|
|
529
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null))), isNormalProduct && /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
530
|
+
import_antd.Form.Item,
|
|
531
|
+
{
|
|
532
|
+
label: import_utils.locales.getText("pisell2.text.quantity"),
|
|
533
|
+
name: "quantity",
|
|
534
|
+
rules: [{ required: true }]
|
|
535
|
+
},
|
|
536
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
537
|
+
import_antd.InputNumber,
|
|
538
|
+
{
|
|
539
|
+
size: "large",
|
|
540
|
+
style: { width: "100%" },
|
|
541
|
+
min: 1,
|
|
542
|
+
max: 999999,
|
|
543
|
+
formatter: (value) => {
|
|
544
|
+
if (value !== void 0) {
|
|
545
|
+
return Math.floor(value);
|
|
546
|
+
}
|
|
547
|
+
return value;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
)
|
|
551
|
+
)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
|
516
552
|
"div",
|
|
517
553
|
{
|
|
518
554
|
className: "pisell-lowcode__booking-service-delete-wrap",
|
|
@@ -524,7 +560,7 @@ var Info = (_, ref) => {
|
|
|
524
560
|
{
|
|
525
561
|
type: "primary",
|
|
526
562
|
className: "pisell-lowcode__booking-service-body-edit-footer-apple",
|
|
527
|
-
disabled: !((
|
|
563
|
+
disabled: !((_F = state.service.resourcesOrigin) == null ? void 0 : _F.length),
|
|
528
564
|
onClick: () => {
|
|
529
565
|
form.submit();
|
|
530
566
|
}
|
|
@@ -141,6 +141,7 @@ export declare const deleteCacheParams: () => void;
|
|
|
141
141
|
*/
|
|
142
142
|
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
143
143
|
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
144
|
+
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
|
144
145
|
/**
|
|
145
146
|
* @title: 创建一个服务商品
|
|
146
147
|
* @description:
|
|
@@ -43,6 +43,7 @@ __export(utils_exports, {
|
|
|
43
43
|
getEndDate: () => getEndDate,
|
|
44
44
|
getErrorList: () => getErrorList,
|
|
45
45
|
getIsEdit: () => getIsEdit,
|
|
46
|
+
getIsEject: () => getIsEject,
|
|
46
47
|
getLastServer: () => getLastServer,
|
|
47
48
|
getNowTime: () => getNowTime,
|
|
48
49
|
getProductTotalPrice: () => getProductTotalPrice,
|
|
@@ -523,6 +524,10 @@ var getDays = (cacheItem, type) => {
|
|
|
523
524
|
var isSessionProduct = (cacheItem) => {
|
|
524
525
|
return ["session_product", "session_ticket"].includes(cacheItem.extension_type);
|
|
525
526
|
};
|
|
527
|
+
var getIsEject = (item, type) => {
|
|
528
|
+
const isSession = isSessionProduct(item);
|
|
529
|
+
return type === "detail" || item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0 || isSession;
|
|
530
|
+
};
|
|
526
531
|
var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
527
532
|
if (!cacheItem.new && cacheItem._extend.endDate) {
|
|
528
533
|
return cacheItem._extend;
|
|
@@ -681,6 +686,7 @@ var getIsEdit = (state) => {
|
|
|
681
686
|
getEndDate,
|
|
682
687
|
getErrorList,
|
|
683
688
|
getIsEdit,
|
|
689
|
+
getIsEject,
|
|
684
690
|
getLastServer,
|
|
685
691
|
getNowTime,
|
|
686
692
|
getProductTotalPrice,
|
|
@@ -46,11 +46,15 @@ var import_serve = require("../../../booking/info/service/serve");
|
|
|
46
46
|
var import_serviceManager = require("../../../booking/info/service/serviceManager");
|
|
47
47
|
var import_productSelect = __toESM(require("../../../productSelect"));
|
|
48
48
|
var import_index = require("./index.less");
|
|
49
|
+
var import_utils6 = require("../../utils");
|
|
50
|
+
var import_notAvailable = __toESM(require("../notAvailable"));
|
|
49
51
|
var AddSerivce = (props) => {
|
|
50
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
52
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
51
53
|
const { onEdit, state, dispatch, renderMode = "current" } = props;
|
|
52
54
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
53
55
|
const context = (0, import_useEngineContext.default)();
|
|
56
|
+
const notAvailableRef = (0, import_react.useRef)(null);
|
|
57
|
+
const isLoadedServiceRef = (0, import_react.useRef)(false);
|
|
54
58
|
import_utils2.request.setRequest(context.appHelper.utils.request);
|
|
55
59
|
const { createBookingData, createBooking } = (0, import_serviceManager.useService)({
|
|
56
60
|
renderMode,
|
|
@@ -63,10 +67,14 @@ var AddSerivce = (props) => {
|
|
|
63
67
|
state == null ? void 0 : state.renderType
|
|
64
68
|
);
|
|
65
69
|
const [currentProduct, setCurrentProduct] = (0, import_react.useState)(null);
|
|
70
|
+
const menuList = (0, import_react.useMemo)(() => {
|
|
71
|
+
var _a2, _b2, _c2;
|
|
72
|
+
return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.menu_list_tab) == null ? void 0 : _c2.menu_list) || [];
|
|
73
|
+
}, [(_f = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _f.config]);
|
|
66
74
|
const customerId = (0, import_react.useMemo)(() => {
|
|
67
75
|
var _a2, _b2;
|
|
68
76
|
return ((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) || void 0;
|
|
69
|
-
}, [(
|
|
77
|
+
}, [(_h = (_g = state.client) == null ? void 0 : _g.value) == null ? void 0 : _h.id]);
|
|
70
78
|
const setDefaultService = async (list) => {
|
|
71
79
|
if (state.renderType !== "eventBooking") {
|
|
72
80
|
return;
|
|
@@ -115,8 +123,24 @@ var AddSerivce = (props) => {
|
|
|
115
123
|
}
|
|
116
124
|
});
|
|
117
125
|
};
|
|
126
|
+
const removeNotAvailableService = (list) => {
|
|
127
|
+
var _a2, _b2, _c2;
|
|
128
|
+
if (!((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length)) return;
|
|
129
|
+
const listMap = list.reduce((acc, cur) => {
|
|
130
|
+
acc[cur.id] = cur;
|
|
131
|
+
return acc;
|
|
132
|
+
}, {});
|
|
133
|
+
const newValue = (((_c2 = state.service) == null ? void 0 : _c2.value) || []).filter((item) => listMap[item.product_id]);
|
|
134
|
+
dispatch({
|
|
135
|
+
type: "setService",
|
|
136
|
+
payload: {
|
|
137
|
+
value: newValue,
|
|
138
|
+
edit: true
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
};
|
|
118
142
|
const getServices = async (params) => {
|
|
119
|
-
var _a2, _b2;
|
|
143
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
120
144
|
setLoading(true);
|
|
121
145
|
if (state.renderType === "eventBooking" && !((_b2 = (_a2 = state.eventOtherParams) == null ? void 0 : _a2.productIds) == null ? void 0 : _b2.length)) {
|
|
122
146
|
dispatch({
|
|
@@ -131,7 +155,15 @@ var AddSerivce = (props) => {
|
|
|
131
155
|
let data = await state.apis.getServices({
|
|
132
156
|
skip: 1,
|
|
133
157
|
num: 500,
|
|
134
|
-
extension_type: state.productExtensionType,
|
|
158
|
+
// extension_type: state.productExtensionType,
|
|
159
|
+
exclude_extension_type: [
|
|
160
|
+
"product_party",
|
|
161
|
+
"product_event",
|
|
162
|
+
"product_series_event",
|
|
163
|
+
"product_package_ticket",
|
|
164
|
+
"ticket",
|
|
165
|
+
"event_item"
|
|
166
|
+
],
|
|
135
167
|
with: ["category"],
|
|
136
168
|
open_quotation: 1,
|
|
137
169
|
with_schedule: 1,
|
|
@@ -139,23 +171,36 @@ var AddSerivce = (props) => {
|
|
|
139
171
|
order_by_string: "sort:desc",
|
|
140
172
|
status: "published",
|
|
141
173
|
schedule_date: params == null ? void 0 : params.schedule_date,
|
|
142
|
-
|
|
174
|
+
schedule_datetime: params == null ? void 0 : params.schedule_datetime,
|
|
175
|
+
customer_id: params == null ? void 0 : params.customer_id,
|
|
176
|
+
menu_list_ids: params == null ? void 0 : params.menu_list_ids,
|
|
177
|
+
_config: {
|
|
178
|
+
fullResult: true,
|
|
179
|
+
customResponse: true
|
|
180
|
+
}
|
|
143
181
|
});
|
|
144
182
|
setLoading(false);
|
|
183
|
+
if ((data == null ? void 0 : data.code) === 607100) {
|
|
184
|
+
if (!isLoadedServiceRef.current || ((_d2 = (_c2 = state.service) == null ? void 0 : _c2.services) == null ? void 0 : _d2.length)) {
|
|
185
|
+
(_e2 = notAvailableRef.current) == null ? void 0 : _e2.open();
|
|
186
|
+
}
|
|
187
|
+
}
|
|
145
188
|
if (!state.service.addModal) {
|
|
146
|
-
setDefaultService(data == null ? void 0 : data.list);
|
|
189
|
+
setDefaultService((_f2 = data == null ? void 0 : data.data) == null ? void 0 : _f2.list);
|
|
147
190
|
}
|
|
191
|
+
removeNotAvailableService((_g2 = data == null ? void 0 : data.data) == null ? void 0 : _g2.list);
|
|
192
|
+
isLoadedServiceRef.current = true;
|
|
148
193
|
dispatch({
|
|
149
194
|
type: "setService",
|
|
150
195
|
payload: {
|
|
151
|
-
services: (data == null ? void 0 : data.list) || []
|
|
196
|
+
services: ((_h2 = data == null ? void 0 : data.data) == null ? void 0 : _h2.list) || []
|
|
152
197
|
}
|
|
153
198
|
});
|
|
154
199
|
};
|
|
155
200
|
const handleSelectProduct = (0, import_ahooks.useMemoizedFn)(
|
|
156
201
|
(item, type = "select") => {
|
|
157
202
|
const isSession = (0, import_utils2.isSessionProduct)(item);
|
|
158
|
-
const isEject =
|
|
203
|
+
const isEject = (0, import_utils2.getIsEject)(item, type);
|
|
159
204
|
let lock = false;
|
|
160
205
|
if (isEject) {
|
|
161
206
|
setCurrentProduct(item);
|
|
@@ -168,10 +213,11 @@ var AddSerivce = (props) => {
|
|
|
168
213
|
id: item.id,
|
|
169
214
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
170
215
|
showConfig: {
|
|
171
|
-
option:
|
|
216
|
+
option: true,
|
|
172
217
|
session: isSession,
|
|
173
|
-
variant:
|
|
174
|
-
package: true
|
|
218
|
+
variant: true,
|
|
219
|
+
package: true,
|
|
220
|
+
number: (0, import_utils4.isNormalProductByDurationSchedule)(item)
|
|
175
221
|
},
|
|
176
222
|
is_eject: isEject ? 1 : 0,
|
|
177
223
|
customer_id: customerId,
|
|
@@ -207,7 +253,7 @@ var AddSerivce = (props) => {
|
|
|
207
253
|
_key: e.key,
|
|
208
254
|
_extend: {
|
|
209
255
|
start_date: state.date.value,
|
|
210
|
-
quantity: 1,
|
|
256
|
+
quantity: (e == null ? void 0 : e.quantity) || 1,
|
|
211
257
|
price: _detail.price,
|
|
212
258
|
product_name: item.title,
|
|
213
259
|
other
|
|
@@ -231,7 +277,7 @@ var AddSerivce = (props) => {
|
|
|
231
277
|
}
|
|
232
278
|
if (cacheItem.autoClose) {
|
|
233
279
|
cacheItem.autoClose = false;
|
|
234
|
-
let _list =
|
|
280
|
+
let _list = (0, import_utils6.addService)(state.service.value, cacheItem);
|
|
235
281
|
(0, import_materials.PisellToast)({
|
|
236
282
|
content: import_utils.locales.getText("pisell2.ticket-booking.add-to-cart")
|
|
237
283
|
});
|
|
@@ -271,18 +317,26 @@ var AddSerivce = (props) => {
|
|
|
271
317
|
}
|
|
272
318
|
}
|
|
273
319
|
return _list;
|
|
274
|
-
}, [(
|
|
320
|
+
}, [(_i = state.service) == null ? void 0 : _i.services, state == null ? void 0 : state.activeCartId]);
|
|
275
321
|
const currentDate = (0, import_react.useMemo)(() => {
|
|
276
322
|
return state.date.value.format("YYYY-MM-DD");
|
|
277
323
|
}, [state.date.value]);
|
|
324
|
+
const currentDatetime = (0, import_react.useMemo)(() => {
|
|
325
|
+
return state.date.value.format("YYYY-MM-DD HH:mm:ss");
|
|
326
|
+
}, [state.date.value]);
|
|
278
327
|
(0, import_react.useEffect)(() => {
|
|
279
|
-
if (renderMode === "current") {
|
|
280
|
-
getServices({
|
|
328
|
+
if (renderMode === "current" && state.bookingConfig) {
|
|
329
|
+
getServices({
|
|
330
|
+
schedule_date: currentDate,
|
|
331
|
+
customer_id: customerId,
|
|
332
|
+
menu_list_ids: menuList,
|
|
333
|
+
schedule_datetime: currentDatetime
|
|
334
|
+
});
|
|
281
335
|
}
|
|
282
|
-
}, [renderMode, currentDate, customerId]);
|
|
336
|
+
}, [renderMode, currentDate, customerId, menuList, currentDatetime]);
|
|
283
337
|
return (0, import_react.useMemo)(() => {
|
|
284
338
|
if (renderMode === "current") {
|
|
285
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
339
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
286
340
|
import_productSelect.default,
|
|
287
341
|
{
|
|
288
342
|
dataSource: renderList,
|
|
@@ -302,11 +356,11 @@ var AddSerivce = (props) => {
|
|
|
302
356
|
isStock: 1
|
|
303
357
|
}
|
|
304
358
|
}
|
|
305
|
-
);
|
|
359
|
+
), /* @__PURE__ */ import_react.default.createElement(import_notAvailable.default, { ref: notAvailableRef }));
|
|
306
360
|
}
|
|
307
361
|
return null;
|
|
308
362
|
}, [
|
|
309
|
-
(
|
|
363
|
+
(_k = (_j = state.service) == null ? void 0 : _j.cacheItem) == null ? void 0 : _k.autoClose,
|
|
310
364
|
state.service.addModal,
|
|
311
365
|
import_utils.locales,
|
|
312
366
|
renderList,
|
|
@@ -0,0 +1,61 @@
|
|
|
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/ticketBooking/components/notAvailable/index.tsx
|
|
30
|
+
var notAvailable_exports = {};
|
|
31
|
+
__export(notAvailable_exports, {
|
|
32
|
+
default: () => notAvailable_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(notAvailable_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var NotAvailable = (props, ref) => {
|
|
39
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
40
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
41
|
+
open: () => {
|
|
42
|
+
setOpen(true);
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
46
|
+
import_materials.PisellModal.Information,
|
|
47
|
+
{
|
|
48
|
+
open,
|
|
49
|
+
platform: "pc",
|
|
50
|
+
title: import_utils.locales.getText("pisell2.ticket-booking.not-available-title"),
|
|
51
|
+
describe: "",
|
|
52
|
+
cancelText: import_utils.locales.getText("pisell2.text.cancel"),
|
|
53
|
+
okText: import_utils.locales.getText("pisell2.ticket-booking.not-available-ok"),
|
|
54
|
+
cancelVisible: false,
|
|
55
|
+
closable: true,
|
|
56
|
+
onOk: () => setOpen(false),
|
|
57
|
+
onCancel: () => setOpen(false)
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
var notAvailable_default = (0, import_react.forwardRef)(NotAvailable);
|
|
@@ -171,7 +171,7 @@ var initialState = {
|
|
|
171
171
|
bookingConfigParams: {
|
|
172
172
|
item_type: "appointment_booking"
|
|
173
173
|
},
|
|
174
|
-
productExtensionType: ["appointment_ticket", "session_ticket"]
|
|
174
|
+
productExtensionType: ["appointment_ticket", "session_ticket", "product_appointment", "service_product", "session_product", "normal", "product_appointment"]
|
|
175
175
|
};
|
|
176
176
|
var ticketBooking_default = (props) => {
|
|
177
177
|
var _a, _b;
|
|
@@ -45,6 +45,8 @@ declare const _default: {
|
|
|
45
45
|
"pisell2.ticket-booking.scan": string;
|
|
46
46
|
"pisell2.ticket-booking.create-new": string;
|
|
47
47
|
"pisell2.ticket-booking.add-to-cart": string;
|
|
48
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
49
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
48
50
|
};
|
|
49
51
|
"zh-CN": {
|
|
50
52
|
"pisell2.ticket-booking.info": string;
|
|
@@ -92,6 +94,8 @@ declare const _default: {
|
|
|
92
94
|
"pisell2.ticket-booking.scan": string;
|
|
93
95
|
"pisell2.ticket-booking.create-new": string;
|
|
94
96
|
"pisell2.ticket-booking.add-to-cart": string;
|
|
97
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
98
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
95
99
|
};
|
|
96
100
|
"zh-HK": {
|
|
97
101
|
"pisell2.ticket-booking.info": string;
|
|
@@ -139,6 +143,8 @@ declare const _default: {
|
|
|
139
143
|
"pisell2.ticket-booking.scan": string;
|
|
140
144
|
"pisell2.ticket-booking.create-new": string;
|
|
141
145
|
"pisell2.ticket-booking.add-to-cart": string;
|
|
146
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
147
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
142
148
|
};
|
|
143
149
|
};
|
|
144
150
|
export default _default;
|
|
@@ -68,7 +68,9 @@ var locales_default = {
|
|
|
68
68
|
"pisell2.ticket-booking.appointment-not-found": "Appointment not found",
|
|
69
69
|
"pisell2.ticket-booking.scan": "Scan",
|
|
70
70
|
"pisell2.ticket-booking.create-new": "Create new",
|
|
71
|
-
"pisell2.ticket-booking.add-to-cart": "Added to Cart"
|
|
71
|
+
"pisell2.ticket-booking.add-to-cart": "Added to Cart",
|
|
72
|
+
"pisell2.ticket-booking.not-available-title": "Sorry, Not available at current time.",
|
|
73
|
+
"pisell2.ticket-booking.not-available-ok": "OK"
|
|
72
74
|
},
|
|
73
75
|
"zh-CN": {
|
|
74
76
|
"pisell2.ticket-booking.info": "信息",
|
|
@@ -115,7 +117,9 @@ var locales_default = {
|
|
|
115
117
|
"pisell2.ticket-booking.appointment-not-found": "没有发现此预约",
|
|
116
118
|
"pisell2.ticket-booking.scan": "",
|
|
117
119
|
"pisell2.ticket-booking.create-new": "新建",
|
|
118
|
-
"pisell2.ticket-booking.add-to-cart": "已加入购物车"
|
|
120
|
+
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
121
|
+
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售时间。",
|
|
122
|
+
"pisell2.ticket-booking.not-available-ok": "好的"
|
|
119
123
|
},
|
|
120
124
|
"zh-HK": {
|
|
121
125
|
"pisell2.ticket-booking.info": "資訊",
|
|
@@ -162,6 +166,8 @@ var locales_default = {
|
|
|
162
166
|
"pisell2.ticket-booking.appointment-not-found": "没有發現此預約",
|
|
163
167
|
"pisell2.ticket-booking.scan": "扫码",
|
|
164
168
|
"pisell2.ticket-booking.create-new": "新建",
|
|
165
|
-
"pisell2.ticket-booking.add-to-cart": "已加入购物车"
|
|
169
|
+
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
170
|
+
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售時間。",
|
|
171
|
+
"pisell2.ticket-booking.not-available-ok": "好的"
|
|
166
172
|
}
|
|
167
173
|
};
|
|
@@ -58,8 +58,12 @@ var getClients = async (params) => {
|
|
|
58
58
|
return data;
|
|
59
59
|
};
|
|
60
60
|
var getServices = async (params) => {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
const { _config } = params;
|
|
62
|
+
let res = await import_utils.request.getRequest().post(prefix + "/product/query", params, _config);
|
|
63
|
+
if (_config == null ? void 0 : _config.fullResult) {
|
|
64
|
+
return res;
|
|
65
|
+
}
|
|
66
|
+
return res.data;
|
|
63
67
|
};
|
|
64
68
|
var getResources = async (params) => {
|
|
65
69
|
let { data } = await import_utils.request.getRequest().get(prefix + "/form/schedule", params);
|