@pisell/private-materials 3.3.46 → 3.3.47
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/render/default/view.js +5 -5
- package/build/lowcode/view.js +5 -5
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -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 +1 -0
- package/es/components/appointmentBooking/context.js +7 -3
- package/es/components/appointmentBooking/hooks.js +126 -67
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/utils.js +6 -1
- package/es/components/booking/addons/index.js +31 -26
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/addons/model.js +5 -5
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +2 -2
- package/es/components/booking/components/footer/index.d.ts +1 -0
- 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/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +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/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +9 -6
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/editService/index.js +56 -18
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +5 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +75 -26
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
- package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -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/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/wallet/model.d.ts +1 -9
- package/es/hooks/useComponents.js +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -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 +1 -0
- package/lib/components/appointmentBooking/context.js +7 -3
- package/lib/components/appointmentBooking/hooks.js +70 -11
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/utils.js +2 -0
- package/lib/components/booking/addons/index.js +27 -21
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- 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/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +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/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +8 -5
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editService/index.js +59 -23
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +6 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +74 -20
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
- package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -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/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/wallet/model.d.ts +1 -9
- package/package.json +4 -4
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
selectedGiftOptionId: string | null;
|
|
4
|
-
cardList: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
price: number;
|
|
8
|
-
}>;
|
|
9
|
-
selectedItem: {
|
|
10
|
-
id?: string;
|
|
11
|
-
gift_price?: number;
|
|
12
|
-
price?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
variant_id?: string;
|
|
15
|
-
};
|
|
16
|
-
productId?: string;
|
|
17
|
-
detailId?: string;
|
|
18
|
-
total: string | number;
|
|
19
|
-
rechargeModalOpen: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
-
state: RechargeState;
|
|
23
|
-
} & {
|
|
24
|
-
dispatch: (params: {
|
|
25
|
-
type: string;
|
|
26
|
-
payload: any;
|
|
27
|
-
}) => void;
|
|
28
|
-
}>;
|
|
29
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: 0;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IWalletListItemProps } from './serve';
|
|
3
2
|
export interface WalletCardItemProps {
|
|
4
3
|
id: string;
|
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
|
27
26
|
currentSearchListItemCode?: string;
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}
|
|
30
|
-
export declare const Provider:
|
|
31
|
-
global_wallet: WalletListProps;
|
|
32
|
-
} & {
|
|
33
|
-
dispatch: (params: {
|
|
34
|
-
type: string;
|
|
35
|
-
payload: any;
|
|
36
|
-
}) => void;
|
|
37
|
-
}>;
|
|
29
|
+
export declare const Provider: any, Context: any;
|
|
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
|
|
|
8
8
|
var _utils$getComponents;
|
|
9
9
|
var _ref = appHelper || {},
|
|
10
10
|
utils = _ref.utils;
|
|
11
|
-
return (utils === null || utils === void 0
|
|
11
|
+
return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
|
|
12
12
|
}, [components]);
|
|
13
13
|
return Cpt;
|
|
14
14
|
};
|
|
@@ -149,6 +149,9 @@ var CartItem = ({ onNext }) => {
|
|
|
149
149
|
};
|
|
150
150
|
const products = (0, import_react.useMemo)(() => {
|
|
151
151
|
if (!(carts == null ? void 0 : carts.length)) return [];
|
|
152
|
+
carts.forEach((item) => {
|
|
153
|
+
item.isShowChangeHolder = !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id);
|
|
154
|
+
});
|
|
152
155
|
if ((currentSelectedResources == null ? void 0 : currentSelectedResources.length) > 0) {
|
|
153
156
|
const newCarts = carts.map((item) => {
|
|
154
157
|
const currentResourceData = currentSelectedResources.find(
|
|
@@ -104,7 +104,8 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
|
|
|
104
104
|
);
|
|
105
105
|
}, [currentStepParams.key, resources]);
|
|
106
106
|
const renderLists = (0, import_react.useMemo)(() => {
|
|
107
|
-
|
|
107
|
+
const appointmentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
|
|
108
|
+
if (appointmentCarts.length > 1 || !(appointmentCarts == null ? void 0 : appointmentCarts.length)) {
|
|
108
109
|
return [];
|
|
109
110
|
}
|
|
110
111
|
return (0, import_utils.currentRenderLists)(resources, appointmentBoard == null ? void 0 : appointmentBoard.form_code);
|
|
@@ -141,15 +142,17 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
|
|
|
141
142
|
var _a;
|
|
142
143
|
setSelectedResource(e.id);
|
|
143
144
|
if (e.id) {
|
|
145
|
+
const index = carts.findIndex((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
|
|
144
146
|
return appointmentBooking.updateCart({
|
|
145
|
-
_id: (_a = carts == null ? void 0 : carts[
|
|
146
|
-
resources: (0, import_utils.updateCartResources)(carts == null ? void 0 : carts[
|
|
147
|
+
_id: (_a = carts == null ? void 0 : carts[index]) == null ? void 0 : _a._id,
|
|
148
|
+
resources: (0, import_utils.updateCartResources)(carts == null ? void 0 : carts[index], e)
|
|
147
149
|
});
|
|
148
150
|
}
|
|
149
151
|
};
|
|
150
152
|
(0, import_react.useEffect)(() => {
|
|
151
153
|
var _a, _b, _c;
|
|
152
|
-
const
|
|
154
|
+
const index = carts.findIndex((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
|
|
155
|
+
const selectedResource2 = (_c = (_b = (_a = carts == null ? void 0 : carts[index]) == null ? void 0 : _a._origin) == null ? void 0 : _b.resources) == null ? void 0 : _c.find(
|
|
153
156
|
(item) => (item == null ? void 0 : item.form_id) === (appointmentBoard == null ? void 0 : appointmentBoard.form_id)
|
|
154
157
|
);
|
|
155
158
|
setSelectedResource((selectedResource2 == null ? void 0 : selectedResource2.id) || 0);
|
|
@@ -122,7 +122,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
122
122
|
} else {
|
|
123
123
|
const resources = ((_b = (_a = data == null ? void 0 : data.origin) == null ? void 0 : _a.product_resource) == null ? void 0 : _b.resources) || [];
|
|
124
124
|
const activeStatus = resources.find((item2) => item2.status === 1);
|
|
125
|
-
if (!activeStatus) {
|
|
125
|
+
if (!activeStatus && !appointmentBooking.isTargetNormalProduct(data == null ? void 0 : data.origin)) {
|
|
126
126
|
return (0, import_utils2.Toast)(
|
|
127
127
|
import_utils.locales.getText("pisell2.appointment.no.available.service")
|
|
128
128
|
);
|
|
@@ -69,10 +69,11 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
|
|
|
69
69
|
};
|
|
70
70
|
(0, import_react.useEffect)(() => {
|
|
71
71
|
var _a, _b, _c;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
let appoimentBookingProductCart = carts.filter((item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id));
|
|
73
|
+
if ((times == null ? void 0 : times.length) > 0 && (appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart.length) > 0) {
|
|
74
|
+
const startTime = ((_a = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _a.start_time) || ((_b = times == null ? void 0 : times[0]) == null ? void 0 : _b.start_time);
|
|
74
75
|
setSelectedResource(startTime);
|
|
75
|
-
if ((_c =
|
|
76
|
+
if ((_c = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _c.start_time) return;
|
|
76
77
|
getAutoSelect(times == null ? void 0 : times[0]);
|
|
77
78
|
}
|
|
78
79
|
}, [times, carts]);
|
|
@@ -105,15 +105,19 @@ var AppointmentBookingProvider = ({
|
|
|
105
105
|
if (!(carts == null ? void 0 : carts.length) || !(resources == null ? void 0 : resources.length)) {
|
|
106
106
|
return setCurrentSelectedResources(null);
|
|
107
107
|
}
|
|
108
|
-
const currentSelectedResources2 =
|
|
109
|
-
|
|
108
|
+
const currentSelectedResources2 = [];
|
|
109
|
+
carts.forEach((item) => {
|
|
110
|
+
if (appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id)) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
currentSelectedResources2.push({
|
|
110
114
|
_id: item == null ? void 0 : item._id,
|
|
111
115
|
currentSelectedResource: (0, import_utils.getCartCurrentResourceData)(
|
|
112
116
|
item,
|
|
113
117
|
currentStepParams == null ? void 0 : currentStepParams.key,
|
|
114
118
|
resources
|
|
115
119
|
)
|
|
116
|
-
};
|
|
120
|
+
});
|
|
117
121
|
});
|
|
118
122
|
setCurrentSelectedResources(currentSelectedResources2);
|
|
119
123
|
appointmentBooking.setOtherData(
|
|
@@ -119,20 +119,78 @@ var useAppointmentBookingStep = () => {
|
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
121
|
const nextStep = () => {
|
|
122
|
-
var _a2, _b2, _c2, _d, _e;
|
|
122
|
+
var _a2, _b2, _c2, _d, _e, _f, _g;
|
|
123
123
|
let stepList2 = appointmentBooking.getStepList() || [];
|
|
124
124
|
const currentKey = currentStepParams == null ? void 0 : currentStepParams.key;
|
|
125
|
-
let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
|
|
126
125
|
const currentSelectedResources = appointmentBooking.getOtherData(
|
|
127
126
|
"current_selected_resources"
|
|
128
127
|
);
|
|
129
|
-
if (
|
|
128
|
+
if (!isRetailTemplate && currentKey === "select-service") {
|
|
129
|
+
const { bookingProcess } = ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) || {};
|
|
130
|
+
const isDateSelectedFirst = bookingProcess === "date_first";
|
|
131
|
+
const hasResourceStep = stepList2 == null ? void 0 : stepList2.find(
|
|
132
|
+
(item) => (item == null ? void 0 : item.key) === "select-resource"
|
|
133
|
+
);
|
|
134
|
+
const hasSelectGuestStep = (_b2 = stepList2 == null ? void 0 : stepList2.find(
|
|
135
|
+
(item) => (item == null ? void 0 : item.key) === "select-guest"
|
|
136
|
+
)) == null ? void 0 : _b2.key;
|
|
137
|
+
const isAllNormalProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts();
|
|
138
|
+
if (isAllNormalProduct) {
|
|
139
|
+
removeStep("select-resource");
|
|
140
|
+
removeStep("select-time");
|
|
141
|
+
removeStep("fill-form");
|
|
142
|
+
if (!isDateSelectedFirst) {
|
|
143
|
+
removeStep("select-date");
|
|
144
|
+
}
|
|
145
|
+
} else if (!hasResourceStep) {
|
|
146
|
+
let targetKey = hasSelectGuestStep ? hasSelectGuestStep : "select-service";
|
|
147
|
+
const isHasDurationProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartHasDurationProduct();
|
|
148
|
+
if (isHasDurationProduct) {
|
|
149
|
+
if (!isDateSelectedFirst) {
|
|
150
|
+
appointmentBooking.addStep(
|
|
151
|
+
{
|
|
152
|
+
key: "select-date",
|
|
153
|
+
description: import_utils.locales.getText("pisell2.appointment.select.date")
|
|
154
|
+
},
|
|
155
|
+
targetKey
|
|
156
|
+
);
|
|
157
|
+
targetKey = "select-date";
|
|
158
|
+
}
|
|
159
|
+
appointmentBooking.addStep(
|
|
160
|
+
{
|
|
161
|
+
key: "select-resource",
|
|
162
|
+
description: import_utils.locales.getText("pisell2.appointment.select.resource")
|
|
163
|
+
},
|
|
164
|
+
targetKey
|
|
165
|
+
);
|
|
166
|
+
targetKey = "select-resource";
|
|
167
|
+
appointmentBooking.addStep(
|
|
168
|
+
{
|
|
169
|
+
key: "select-time",
|
|
170
|
+
description: import_utils.locales.getText("pisell2.appointment.select.time")
|
|
171
|
+
},
|
|
172
|
+
targetKey
|
|
173
|
+
);
|
|
174
|
+
} else {
|
|
175
|
+
appointmentBooking.addStep(
|
|
176
|
+
{
|
|
177
|
+
key: "select-resource",
|
|
178
|
+
description: import_utils.locales.getText("pisell2.appointment.select.resource")
|
|
179
|
+
},
|
|
180
|
+
targetKey
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
stepList2 = (appointmentBooking == null ? void 0 : appointmentBooking.getStepList()) || [];
|
|
185
|
+
}
|
|
186
|
+
let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
|
|
187
|
+
if (!isRetailTemplate && (nextStep2 == null ? void 0 : nextStep2.key) === "select-resource") {
|
|
130
188
|
const result = appointmentBooking.checkResourceListForDate();
|
|
131
189
|
if (!result) {
|
|
132
190
|
return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.date"));
|
|
133
191
|
}
|
|
134
192
|
}
|
|
135
|
-
if (currentKey == null ? void 0 : currentKey.startsWith("select-resource")) {
|
|
193
|
+
if (!isRetailTemplate && (currentKey == null ? void 0 : currentKey.startsWith("select-resource"))) {
|
|
136
194
|
const { hasError, updatedCartList } = (0, import_utils2.checkAndMarkCartRenderError)(currentSelectedResources, appointmentBooking, utils);
|
|
137
195
|
if (hasError) {
|
|
138
196
|
setCurrentSelectedResources(updatedCartList);
|
|
@@ -155,9 +213,9 @@ var useAppointmentBookingStep = () => {
|
|
|
155
213
|
}
|
|
156
214
|
});
|
|
157
215
|
stepList2 = appointmentBooking.getStepList();
|
|
158
|
-
const selectedResource = (
|
|
216
|
+
const selectedResource = (_c2 = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _c2.currentSelectedResource;
|
|
159
217
|
if (selectedResource) {
|
|
160
|
-
const originRenderLists = ((
|
|
218
|
+
const originRenderLists = ((_d = selectedResource == null ? void 0 : selectedResource.resourceItem) == null ? void 0 : _d.originRenderLists) || [];
|
|
161
219
|
const currentResourceIndex = originRenderLists == null ? void 0 : originRenderLists.findIndex((item) => {
|
|
162
220
|
var _a3;
|
|
163
221
|
return item.id === ((_a3 = selectedResource == null ? void 0 : selectedResource.renderItem) == null ? void 0 : _a3.form_id);
|
|
@@ -165,7 +223,7 @@ var useAppointmentBookingStep = () => {
|
|
|
165
223
|
const nextResource = originRenderLists == null ? void 0 : originRenderLists[currentResourceIndex + 1];
|
|
166
224
|
const resourceKey = `select-resource_@${nextResource == null ? void 0 : nextResource.form_id}-${nextResource == null ? void 0 : nextResource.code}`;
|
|
167
225
|
if (nextResource) {
|
|
168
|
-
const beforeKey = (
|
|
226
|
+
const beforeKey = (_e = stepList2[stepList2.length - 2]) == null ? void 0 : _e.key;
|
|
169
227
|
appointmentBooking.addStep({ key: resourceKey, description: "" }, beforeKey);
|
|
170
228
|
} else {
|
|
171
229
|
appointmentBooking.removeStep(resourceKey);
|
|
@@ -174,15 +232,16 @@ var useAppointmentBookingStep = () => {
|
|
|
174
232
|
}
|
|
175
233
|
stepList2 = appointmentBooking.getStepList();
|
|
176
234
|
nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
|
|
177
|
-
if (((
|
|
178
|
-
const selectedResource = ((
|
|
235
|
+
if (((_f = nextStep2 == null ? void 0 : nextStep2.key) == null ? void 0 : _f.startsWith("select-resource_")) || (nextStep2 == null ? void 0 : nextStep2.key) === "confirm-information") {
|
|
236
|
+
const selectedResource = ((_g = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _g.currentSelectedResource) || {};
|
|
179
237
|
const renderItem = (selectedResource == null ? void 0 : selectedResource.renderItem) || {};
|
|
180
238
|
const checkHolder = () => {
|
|
181
239
|
setLoading(false);
|
|
182
|
-
if (isRetailTemplate) {
|
|
240
|
+
if (isRetailTemplate || (appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts())) {
|
|
183
241
|
return appointmentBooking.next();
|
|
184
242
|
}
|
|
185
|
-
const
|
|
243
|
+
const appoimentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
|
|
244
|
+
const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, appoimentCarts);
|
|
186
245
|
setIsErrorHolder(hasError);
|
|
187
246
|
if (hasError) {
|
|
188
247
|
return;
|
|
@@ -370,6 +370,7 @@ var getResourceTitle = (appointmentBooking, code, utils, originResource) => {
|
|
|
370
370
|
var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
|
|
371
371
|
try {
|
|
372
372
|
let hasError = false;
|
|
373
|
+
carts = carts.filter((n) => !appointmentBooking.isTargetCartIdNormalProduct(n._id));
|
|
373
374
|
const updatedCartList = carts == null ? void 0 : carts.map((cart) => {
|
|
374
375
|
const currentResource = cart == null ? void 0 : cart.currentSelectedResource;
|
|
375
376
|
if (!(currentResource == null ? void 0 : currentResource.renderItem)) {
|
|
@@ -394,6 +395,7 @@ var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
|
|
|
394
395
|
updatedCartList
|
|
395
396
|
};
|
|
396
397
|
} catch (error) {
|
|
398
|
+
console.error(error);
|
|
397
399
|
return {};
|
|
398
400
|
}
|
|
399
401
|
};
|
|
@@ -51,12 +51,13 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
51
51
|
var formatProducts = (values) => {
|
|
52
52
|
let arr = [];
|
|
53
53
|
arr = values.map((item) => {
|
|
54
|
-
var _a, _b, _c;
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
55
|
return {
|
|
56
56
|
order_detail_id: item.order_detail_id || 0,
|
|
57
57
|
num: item._extend.quantity,
|
|
58
|
-
price: item
|
|
58
|
+
price: (0, import_utils.formatProductPrice)(item),
|
|
59
59
|
product_id: item.id,
|
|
60
|
+
discount_list: (item == null ? void 0 : item.discount_list) || [],
|
|
60
61
|
discount_amount: 0,
|
|
61
62
|
product_discount_reason: "",
|
|
62
63
|
is_charge_tax: item.is_charge_tax,
|
|
@@ -64,7 +65,9 @@ var formatProducts = (values) => {
|
|
|
64
65
|
discountway: "num",
|
|
65
66
|
discount_type: "discount",
|
|
66
67
|
bundle_edit: (_a = item._extend) == null ? void 0 : _a.bundle_edit,
|
|
67
|
-
product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle)
|
|
68
|
+
product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
|
|
69
|
+
"product_option_item": (0, import_utils.formatProductOption)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
|
|
70
|
+
"product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0
|
|
68
71
|
};
|
|
69
72
|
});
|
|
70
73
|
return arr;
|
|
@@ -93,7 +96,7 @@ var restoreProductOtherData = (data) => {
|
|
|
93
96
|
})
|
|
94
97
|
};
|
|
95
98
|
}),
|
|
96
|
-
product_variant_id: 0,
|
|
99
|
+
product_variant_id: detail.product_variant_id || 0,
|
|
97
100
|
quantity: Number(detail.product_quantity)
|
|
98
101
|
};
|
|
99
102
|
};
|
|
@@ -210,23 +213,23 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
210
213
|
const handleAddProduct = (item, type) => {
|
|
211
214
|
let _list = [...state.addons.value];
|
|
212
215
|
const isSession = (0, import_utils2.isSessionProduct)(item);
|
|
213
|
-
const isEject =
|
|
216
|
+
const isEject = (0, import_utils2.getIsEject)(item, type);
|
|
214
217
|
state.action({
|
|
215
218
|
type: "pisell1.handleOpenProductModal",
|
|
216
219
|
data: {
|
|
217
220
|
id: item.id,
|
|
218
221
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
219
222
|
showConfig: {
|
|
220
|
-
option:
|
|
223
|
+
option: true,
|
|
221
224
|
session: isSession,
|
|
222
|
-
variant:
|
|
223
|
-
package: true
|
|
225
|
+
variant: true,
|
|
226
|
+
package: true,
|
|
227
|
+
number: true
|
|
224
228
|
},
|
|
225
229
|
is_eject: isEject ? 1 : 0,
|
|
226
230
|
isOS: isSession
|
|
227
231
|
},
|
|
228
232
|
callback: (e, extension_type, detail) => {
|
|
229
|
-
console.log("e", e);
|
|
230
233
|
const _detail = detail || item;
|
|
231
234
|
let product = {
|
|
232
235
|
..._detail,
|
|
@@ -235,15 +238,15 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
235
238
|
_extend: {
|
|
236
239
|
price: _detail.price,
|
|
237
240
|
other: e,
|
|
238
|
-
quantity: 1
|
|
241
|
+
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
239
242
|
},
|
|
240
|
-
quantity: 1
|
|
243
|
+
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
241
244
|
};
|
|
242
245
|
let _total = (0, import_utils2.getProductTotalPrice)(product);
|
|
243
246
|
product._extend.total = _total;
|
|
244
|
-
let _item = _list.find((d) => d._extend.other.
|
|
247
|
+
let _item = _list.find((d) => d._extend.other.rowKey === e.rowKey);
|
|
245
248
|
if (_item) {
|
|
246
|
-
_item._extend.quantity = _item.quantity +
|
|
249
|
+
_item._extend.quantity = _item._extend.quantity + product.quantity;
|
|
247
250
|
} else {
|
|
248
251
|
_list.push(product);
|
|
249
252
|
}
|
|
@@ -264,7 +267,7 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
264
267
|
let quantity = e.target.value;
|
|
265
268
|
let _list = [...state.addons.value];
|
|
266
269
|
if (quantity == 0) {
|
|
267
|
-
_list = _list.filter((d) => d.
|
|
270
|
+
_list = _list.filter((d) => d._id !== item._id);
|
|
268
271
|
} else {
|
|
269
272
|
let _item = {
|
|
270
273
|
...item,
|
|
@@ -273,12 +276,10 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
273
276
|
quantity: Number(e.target.value)
|
|
274
277
|
}
|
|
275
278
|
};
|
|
276
|
-
let _total = (0, import_utils2.getProductTotalPrice)(_item);
|
|
277
|
-
_item._extend.total = _total;
|
|
278
279
|
if (((_a2 = _item._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
|
|
279
280
|
_item._extend.bundle_edit = 1;
|
|
280
281
|
}
|
|
281
|
-
_list = _list.map((d) => d.
|
|
282
|
+
_list = _list.map((d) => d._id === item._id ? _item : d);
|
|
282
283
|
}
|
|
283
284
|
dispatch({
|
|
284
285
|
type: "setAddons",
|
|
@@ -374,10 +375,11 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
374
375
|
id: item.id,
|
|
375
376
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
376
377
|
showConfig: {
|
|
377
|
-
option:
|
|
378
|
+
option: true,
|
|
378
379
|
session: isSession,
|
|
379
|
-
variant:
|
|
380
|
-
package: true
|
|
380
|
+
variant: true,
|
|
381
|
+
package: true,
|
|
382
|
+
number: true
|
|
381
383
|
},
|
|
382
384
|
value: item._extend.other,
|
|
383
385
|
isOS: isSession
|
|
@@ -386,10 +388,14 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
386
388
|
var _a2;
|
|
387
389
|
const _detail = detail || item;
|
|
388
390
|
let product = {
|
|
391
|
+
...item,
|
|
389
392
|
..._detail,
|
|
393
|
+
// 编辑商品时清除折扣信息
|
|
394
|
+
discount_list: [],
|
|
390
395
|
_extend: {
|
|
391
396
|
...item._extend,
|
|
392
|
-
other: e
|
|
397
|
+
other: e,
|
|
398
|
+
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
393
399
|
}
|
|
394
400
|
};
|
|
395
401
|
if (((_a2 = product._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -44,7 +44,7 @@ var getProductAmount = (state, isEdit) => {
|
|
|
44
44
|
if (isEdit) {
|
|
45
45
|
if ((state == null ? void 0 : state.service) || (state == null ? void 0 : state.addons)) {
|
|
46
46
|
for (let item of state == null ? void 0 : state.service.value) {
|
|
47
|
-
if (isDay) {
|
|
47
|
+
if (isDay || (0, import_utils3.isNormalProductByDurationSchedule)(item)) {
|
|
48
48
|
const quantity = item._extend.quantity || 1;
|
|
49
49
|
price += Number(item._extend.total) * Number(quantity);
|
|
50
50
|
const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? item._extend.duration : 0;
|
|
@@ -27,5 +27,14 @@ export interface ResourceItem {
|
|
|
27
27
|
* @Author: jinglin.tan
|
|
28
28
|
*/
|
|
29
29
|
export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
|
|
30
|
+
/**
|
|
31
|
+
* @title: 格式化商品单价
|
|
32
|
+
* @description:
|
|
33
|
+
* @param {any} item
|
|
34
|
+
* @return {*}
|
|
35
|
+
* @Author: WangHan
|
|
36
|
+
* @Date: 2024-12-23 12:05
|
|
37
|
+
*/
|
|
38
|
+
export declare const formatProductPrice: (item: any) => number;
|
|
30
39
|
export declare const formatValues: (state: any) => any;
|
|
31
40
|
export declare const checkHolderIsError: (state: any) => any;
|