@pisell/private-materials 6.1.1 → 6.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/Sales/index.js +37 -4
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +13 -4
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +171 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +6 -1
- package/es/components/Sales/Checkout/utils.js +15 -4
- package/es/components/Sales/Customer/index.d.ts +1 -0
- package/es/components/Sales/Customer/index.js +1 -0
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +7 -0
- package/es/components/Sales/Resource/serve.js +10 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +15 -0
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Form/index.js +1 -1
- package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Form/utils.js +17 -15
- package/es/components/appointmentBooking/components/Header/index.js +2 -1
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +9 -33
- package/es/components/booking/components/footer/utils.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +47 -18
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/{pay/toB/store/provider.js → booking/components/reloadResourceModal/index.js} +48 -52
- package/es/components/booking/components/reloadResourceModal/index.less +6 -0
- package/es/components/booking/components/voucher/index.js +2 -2
- package/es/components/booking/editBookingModal/index.d.ts +5 -0
- package/es/components/booking/editBookingModal/index.js +386 -0
- package/es/components/booking/editBookingModal/index.less +8 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/locales.js +20 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/mock.js +2993 -0
- package/es/components/booking/editBookingModal/serve.d.ts +51 -0
- package/es/components/booking/editBookingModal/serve.js +288 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/type.js +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.js +157 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/client/index.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +8 -1
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/index.js +4 -5
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.js +1 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceManager/index.js +4 -4
- package/es/components/booking/info/service2/utils.js +6 -4
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/index.js +45 -13
- package/es/components/booking/info2/service/addService/index.js +22 -9
- package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/es/components/booking/info2/service/addService/utils.js +48 -14
- package/es/components/booking/info2/service/addTimeModal/index.js +32 -9
- package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
- package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/es/components/booking/info2/service/editService/index.js +12 -15
- package/es/components/booking/info2/utils.js +13 -16
- package/es/components/booking/info2/utilsByBooking.js +10 -1
- package/es/components/booking/locales.d.ts +12 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/hooks.js +3 -1
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/const.js +82 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/index.js +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/{pay/toB/store/hooks.js → eftposPay/linkly/hooks/useTimeQuery.js} +252 -59
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/index.js +197 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/linkly/service.js +81 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/payo/config.js +30 -3
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/index.js +22 -4
- package/es/components/eventBooking/index.js +21 -7
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +30 -6
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productSelect/components/pisellPriceText/index.js +2 -3
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Content/index.js +9 -0
- package/es/components/stepController/components/Content/index.less +8 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Footer/index.js +15 -0
- package/es/components/stepController/components/Footer/index.less +39 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/components/Header/index.js +97 -0
- package/es/components/stepController/components/Header/index.less +21 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/index.js +64 -0
- package/es/components/stepController/index.less +11 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/locales.js +32 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/stepController/types.js +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +19 -9
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +141 -142
- package/es/components/ticketBooking/index.js +4 -3
- package/es/components/ticketBooking/serve.d.ts +0 -1
- package/es/components/ticketBooking/serve.js +0 -26
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/hooks/useWindowSize.js +26 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/lib/businessModel/SalesModel/Sales/index.js +22 -8
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +9 -4
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +120 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +6 -1
- package/lib/components/Sales/Checkout/utils.js +7 -3
- package/lib/components/Sales/Customer/index.d.ts +1 -0
- package/lib/components/Sales/Customer/index.js +1 -0
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +7 -0
- package/lib/components/Sales/Resource/serve.js +9 -2
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +15 -0
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Form/index.js +6 -1
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
- package/lib/components/appointmentBooking/components/Header/index.js +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +4 -23
- package/lib/components/booking/components/footer/utils.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +27 -7
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
- package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
- package/lib/components/booking/components/voucher/index.js +2 -2
- package/lib/components/booking/editBookingModal/index.d.ts +5 -0
- package/lib/components/booking/editBookingModal/index.js +363 -0
- package/lib/components/booking/editBookingModal/index.less +8 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/locales.js +44 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/mock.js +3314 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
- package/lib/components/booking/editBookingModal/serve.js +178 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/{pay/toB/store/context.js → booking/editBookingModal/type.js} +3 -18
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.js +158 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.js +3 -3
- package/lib/components/booking/info/client/index.js +19 -57
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -1
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/index.js +6 -4
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +3 -3
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.js +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceManager/index.js +3 -3
- package/lib/components/booking/info/service2/utils.js +5 -4
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/index.js +64 -25
- package/lib/components/booking/info2/service/addService/index.js +20 -7
- package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/lib/components/booking/info2/service/addService/utils.js +32 -5
- package/lib/components/booking/info2/service/addTimeModal/index.js +26 -10
- package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
- package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/lib/components/booking/info2/service/editService/index.js +25 -28
- package/lib/components/booking/info2/utils.js +0 -15
- package/lib/components/booking/info2/utilsByBooking.js +7 -1
- package/lib/components/booking/locales.d.ts +12 -0
- package/lib/components/booking/locales.js +12 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/hooks.js +11 -4
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/const.js +102 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/{pay/toB/types → eftposPay/linkly/hooks}/index.js +7 -5
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/index.js +208 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/linkly/service.js +55 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +13 -2
- package/lib/components/eftposPay/payo/config.js +22 -2
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/{pay/toB/components → eventBooking/components/Provider/Cart/Deposit}/index.js +26 -22
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +10 -4
- package/lib/components/eventBooking/index.js +11 -7
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +30 -6
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productSelect/components/pisellPriceText/index.js +2 -8
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/{pay/toB/components/Content/Header.js → stepController/components/Content/index.js} +9 -9
- package/lib/components/stepController/components/Content/index.less +8 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/{pay/toB/components/CardGroup → stepController/components/Footer}/index.js +17 -11
- package/lib/components/stepController/components/Footer/index.less +39 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/components/Header/index.js +104 -0
- package/lib/components/stepController/components/Header/index.less +21 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/index.js +89 -0
- package/lib/components/stepController/index.less +11 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/locales.js +50 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/{pay/toB/store/index.js → stepController/types.js} +3 -13
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +22 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +147 -143
- package/lib/components/ticketBooking/index.js +5 -16
- package/lib/components/ticketBooking/serve.d.ts +0 -1
- package/lib/components/ticketBooking/serve.js +0 -11
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.js +51 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lowcode/edit-booking-modal/meta.ts +53 -0
- package/lowcode/step-controller/meta.ts +88 -0
- package/package.json +3 -3
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/es/components/pay/toB/components/Cache/index.js +0 -94
- package/es/components/pay/toB/components/Cache/index.less +0 -41
- package/es/components/pay/toB/components/Card/index.d.ts +0 -7
- package/es/components/pay/toB/components/Card/index.js +0 -32
- package/es/components/pay/toB/components/Card/index.less +0 -26
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/es/components/pay/toB/components/CardGroup/index.js +0 -22
- package/es/components/pay/toB/components/CardGroup/index.less +0 -18
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/es/components/pay/toB/components/ConfirmedPayment/index.js +0 -67
- package/es/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/es/components/pay/toB/components/Content/Footer.js +0 -36
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/Header.js +0 -12
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/index.js +0 -277
- package/es/components/pay/toB/components/Content/index.less +0 -9
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/Content/utils.js +0 -76
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/components/index.js +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/hooks.js +0 -30
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/index.js +0 -24
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/locales.js +0 -65
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/context.js +0 -2
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/index.js +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/store/utils.js +0 -66
- package/es/components/pay/toB/types/index.d.ts +0 -1
- package/es/components/pay/toB/types/index.js +0 -1
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/es/components/pay/toB/types/storeTypes.js +0 -24
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/lib/components/pay/toB/components/Cache/index.js +0 -108
- package/lib/components/pay/toB/components/Cache/index.less +0 -41
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
- package/lib/components/pay/toB/components/Card/index.js +0 -66
- package/lib/components/pay/toB/components/Card/index.less +0 -26
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/lib/components/pay/toB/components/CardGroup/index.less +0 -18
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/lib/components/pay/toB/components/ConfirmedPayment/index.js +0 -77
- package/lib/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/lib/components/pay/toB/components/Content/Footer.js +0 -63
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.js +0 -209
- package/lib/components/pay/toB/components/Content/index.less +0 -9
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/Content/utils.js +0 -91
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/hooks.js +0 -60
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/index.js +0 -54
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/locales.js +0 -77
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/hooks.js +0 -85
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/provider.js +0 -70
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/store/utils.js +0 -72
- package/lib/components/pay/toB/types/index.d.ts +0 -1
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/lib/components/pay/toB/types/storeTypes.js +0 -36
- package/lowcode/tob-pay/meta.ts +0 -44
@@ -0,0 +1,27 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'pisell2.step.controller.step': (step: number) => string;
|
4
|
+
'pisell2.step.controller.sendEmail': string;
|
5
|
+
'pisell2.step.controller.copy': string;
|
6
|
+
'pisell2.step.controller.download': string;
|
7
|
+
'pisell2.step.controller.preview': string;
|
8
|
+
'pisell2.step.controller.continue': string;
|
9
|
+
};
|
10
|
+
'zh-CN': {
|
11
|
+
'pisell2.step.controller.step': (step: number) => string;
|
12
|
+
'pisell2.step.controller.sendEmail': string;
|
13
|
+
'pisell2.step.controller.copy': string;
|
14
|
+
'pisell2.step.controller.download': string;
|
15
|
+
'pisell2.step.controller.preview': string;
|
16
|
+
'pisell2.step.controller.continue': string;
|
17
|
+
};
|
18
|
+
'zh-HK': {
|
19
|
+
'pisell2.step.controller.step': (step: number) => string;
|
20
|
+
'pisell2.step.controller.sendEmail': string;
|
21
|
+
'pisell2.step.controller.copy': string;
|
22
|
+
'pisell2.step.controller.download': string;
|
23
|
+
'pisell2.step.controller.preview': string;
|
24
|
+
'pisell2.step.controller.continue': string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export default _default;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
|
19
|
+
// src/components/stepController/locales.ts
|
20
|
+
var locales_exports = {};
|
21
|
+
__export(locales_exports, {
|
22
|
+
default: () => locales_default
|
23
|
+
});
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
25
|
+
var locales_default = {
|
26
|
+
en: {
|
27
|
+
"pisell2.step.controller.step": (step) => `Step ${step || 1}`,
|
28
|
+
"pisell2.step.controller.sendEmail": "Send Email",
|
29
|
+
"pisell2.step.controller.copy": "Copy",
|
30
|
+
"pisell2.step.controller.download": "Download",
|
31
|
+
"pisell2.step.controller.preview": "Preview",
|
32
|
+
"pisell2.step.controller.continue": "Continue"
|
33
|
+
},
|
34
|
+
"zh-CN": {
|
35
|
+
"pisell2.step.controller.step": (step) => `步骤 ${step || 1}`,
|
36
|
+
"pisell2.step.controller.sendEmail": "发送邮件",
|
37
|
+
"pisell2.step.controller.copy": "复制",
|
38
|
+
"pisell2.step.controller.download": "下载",
|
39
|
+
"pisell2.step.controller.preview": "预览",
|
40
|
+
"pisell2.step.controller.continue": "继续"
|
41
|
+
},
|
42
|
+
"zh-HK": {
|
43
|
+
"pisell2.step.controller.step": (step) => `步驟 ${step || 1}`,
|
44
|
+
"pisell2.step.controller.sendEmail": "發送郵件",
|
45
|
+
"pisell2.step.controller.copy": "複製",
|
46
|
+
"pisell2.step.controller.download": "下載",
|
47
|
+
"pisell2.step.controller.preview": "預覽",
|
48
|
+
"pisell2.step.controller.continue": "繼續"
|
49
|
+
}
|
50
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface Step {
|
3
|
+
key: string;
|
4
|
+
description: string;
|
5
|
+
}
|
6
|
+
export interface StepControllerProps extends Step {
|
7
|
+
steps: Step[];
|
8
|
+
currentStep: string;
|
9
|
+
isLastStep?: boolean;
|
10
|
+
isMobile?: boolean;
|
11
|
+
children?: React.ReactNode;
|
12
|
+
onBack?: (key: string) => void;
|
13
|
+
onClose?: () => void;
|
14
|
+
confirmCloseProps?: {
|
15
|
+
isConfirmClose?: boolean;
|
16
|
+
title?: string;
|
17
|
+
content?: string;
|
18
|
+
okText?: string;
|
19
|
+
cancelText?: string;
|
20
|
+
};
|
21
|
+
showFooter?: boolean;
|
22
|
+
footerContent?: React.ReactNode;
|
23
|
+
}
|
@@ -10,18 +10,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
10
10
|
}
|
11
11
|
return to;
|
12
12
|
};
|
13
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
14
13
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
14
|
|
16
|
-
// src/components/
|
17
|
-
var
|
18
|
-
module.exports = __toCommonJS(
|
19
|
-
__reExport(store_exports, require("./context"), module.exports);
|
20
|
-
__reExport(store_exports, require("./provider"), module.exports);
|
21
|
-
__reExport(store_exports, require("./hooks"), module.exports);
|
22
|
-
// Annotate the CommonJS export names for ESM import in node:
|
23
|
-
0 && (module.exports = {
|
24
|
-
...require("./context"),
|
25
|
-
...require("./provider"),
|
26
|
-
...require("./hooks")
|
27
|
-
});
|
15
|
+
// src/components/stepController/types.ts
|
16
|
+
var types_exports = {};
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
@@ -45,11 +45,10 @@ var import_serviceManager = require("../../../booking/info/service/serviceManage
|
|
45
45
|
var import_productSelect = __toESM(require("../../../productSelect"));
|
46
46
|
var import_index = require("./index.less");
|
47
47
|
var import_utils6 = require("../../utils");
|
48
|
-
var import_serve2 = require("../../serve");
|
49
48
|
var import_notAvailable = __toESM(require("../notAvailable"));
|
50
49
|
var import_dayjs = __toESM(require("dayjs"));
|
51
50
|
var AddSerivce = (props) => {
|
52
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
53
52
|
const { onEdit, state, dispatch, renderMode = "current" } = props;
|
54
53
|
const [loading, setLoading] = (0, import_react.useState)(true);
|
55
54
|
const context = (0, import_useEngineContext.default)();
|
@@ -57,7 +56,6 @@ var AddSerivce = (props) => {
|
|
57
56
|
const isLoadedServiceRef = (0, import_react.useRef)(false);
|
58
57
|
import_utils2.request.setRequest(context.appHelper.utils.request);
|
59
58
|
const Toast = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.Toast;
|
60
|
-
console.log("ToastToast", Toast);
|
61
59
|
const { createBookingData, createBooking } = (0, import_serviceManager.useService)({
|
62
60
|
renderMode,
|
63
61
|
onEdit,
|
@@ -65,7 +63,7 @@ var AddSerivce = (props) => {
|
|
65
63
|
dispatch
|
66
64
|
});
|
67
65
|
const isBooking4 = (0, import_utils5.isBooking4Shop)(
|
68
|
-
(
|
66
|
+
(_g = (_f = (_e = (_d = (_c = context.appHelper.utils.store) == null ? void 0 : _c.getState) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.global) == null ? void 0 : _f.globalConfig) == null ? void 0 : _g.id,
|
69
67
|
state == null ? void 0 : state.renderType
|
70
68
|
);
|
71
69
|
const [currentProduct, setCurrentProduct] = (0, import_react.useState)(null);
|
@@ -74,11 +72,11 @@ var AddSerivce = (props) => {
|
|
74
72
|
const menuList = (0, import_react.useMemo)(() => {
|
75
73
|
var _a2, _b2, _c2;
|
76
74
|
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) || [];
|
77
|
-
}, [(
|
75
|
+
}, [(_h = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _h.config]);
|
78
76
|
const customerId = (0, import_react.useMemo)(() => {
|
79
77
|
var _a2, _b2;
|
80
78
|
return ((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) || void 0;
|
81
|
-
}, [(
|
79
|
+
}, [(_j = (_i = state.client) == null ? void 0 : _i.value) == null ? void 0 : _j.id]);
|
82
80
|
const setDefaultService = async (list) => {
|
83
81
|
if (state.renderType !== "eventBooking") {
|
84
82
|
return;
|
@@ -158,7 +156,7 @@ var AddSerivce = (props) => {
|
|
158
156
|
setLoading(false);
|
159
157
|
return;
|
160
158
|
}
|
161
|
-
let data = await
|
159
|
+
let data = await state.apis.getServices({
|
162
160
|
skip: 1,
|
163
161
|
num: 500,
|
164
162
|
// extension_type: state.productExtensionType,
|
@@ -205,6 +203,19 @@ var AddSerivce = (props) => {
|
|
205
203
|
};
|
206
204
|
const handleSelectProduct = (0, import_ahooks.useMemoizedFn)(
|
207
205
|
(item, type = "select") => {
|
206
|
+
var _a2;
|
207
|
+
if (!(0, import_utils4.isNormalProductByDurationSchedule)(item)) {
|
208
|
+
if (!Array.isArray((_a2 = state.service) == null ? void 0 : _a2.resourcesOrigin) || !state.service.resourcesOrigin.length) {
|
209
|
+
dispatch({
|
210
|
+
type: "setService",
|
211
|
+
payload: {
|
212
|
+
...stateRef.current.service,
|
213
|
+
reloadResourceModal: true
|
214
|
+
}
|
215
|
+
});
|
216
|
+
return;
|
217
|
+
}
|
218
|
+
}
|
208
219
|
const isSession = (0, import_utils2.isSessionProduct)(item);
|
209
220
|
const isEject = (0, import_utils2.getIsEject)(item, type);
|
210
221
|
const isOnlySession = (0, import_utils2.getIsOnlySession)(item);
|
@@ -235,7 +246,7 @@ var AddSerivce = (props) => {
|
|
235
246
|
setCurrentProduct(null);
|
236
247
|
},
|
237
248
|
callback: async (e, extension_type, detail) => {
|
238
|
-
var
|
249
|
+
var _a3, _b2, _c2, _d2, _e2, _f2, _g2;
|
239
250
|
setCurrentProduct(null);
|
240
251
|
if (lock) {
|
241
252
|
return;
|
@@ -273,7 +284,7 @@ var AddSerivce = (props) => {
|
|
273
284
|
cacheItem._extend.origin_total = _total;
|
274
285
|
const _isEdit = !!state.service.cacheItem;
|
275
286
|
if (_isEdit) {
|
276
|
-
cacheItem._id = (
|
287
|
+
cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
|
277
288
|
cacheItem.new = 0;
|
278
289
|
}
|
279
290
|
if (renderMode === "current") {
|
@@ -373,7 +384,7 @@ var AddSerivce = (props) => {
|
|
373
384
|
}
|
374
385
|
}
|
375
386
|
return _list;
|
376
|
-
}, [(
|
387
|
+
}, [(_k = state.service) == null ? void 0 : _k.services, state == null ? void 0 : state.activeCartId]);
|
377
388
|
const currentDate = (0, import_react.useMemo)(() => {
|
378
389
|
return state.date.value.format("YYYY-MM-DD");
|
379
390
|
}, [state.date.value]);
|
@@ -416,7 +427,7 @@ var AddSerivce = (props) => {
|
|
416
427
|
}
|
417
428
|
return null;
|
418
429
|
}, [
|
419
|
-
(
|
430
|
+
(_m = (_l = state.service) == null ? void 0 : _l.cacheItem) == null ? void 0 : _m.autoClose,
|
420
431
|
state.service.addModal,
|
421
432
|
import_utils.locales,
|
422
433
|
renderList,
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
29
29
|
// src/components/ticketBooking/components/ticketBooking/index.tsx
|
30
30
|
var ticketBooking_exports = {};
|
31
31
|
__export(ticketBooking_exports, {
|
32
|
+
_formatBookingDetail: () => _formatBookingDetail,
|
32
33
|
default: () => ticketBooking_default
|
33
34
|
});
|
34
35
|
module.exports = __toCommonJS(ticketBooking_exports);
|
@@ -48,6 +49,144 @@ var import_index = require("./index.less");
|
|
48
49
|
var import_utils3 = require("../../../booking/info/service2/utils");
|
49
50
|
var import_amount = require("../../../booking/components/footer/amount");
|
50
51
|
var import_formatProductMessage = __toESM(require("../../utils/formatProductMessage"));
|
52
|
+
var _formatBookingDetail = (data, modalState) => {
|
53
|
+
var _a, _b, _c, _d;
|
54
|
+
let {
|
55
|
+
customer_id,
|
56
|
+
holder,
|
57
|
+
customer_name,
|
58
|
+
email,
|
59
|
+
phone,
|
60
|
+
country_calling_code,
|
61
|
+
bookings,
|
62
|
+
customer,
|
63
|
+
note,
|
64
|
+
payment_status,
|
65
|
+
is_other_entrance_edited,
|
66
|
+
shop_discount
|
67
|
+
} = data;
|
68
|
+
const clientValue = {
|
69
|
+
name: ((customer == null ? void 0 : customer.display_name) || "").trim() || ((customer == null ? void 0 : customer.nickname) || "").trim() || "",
|
70
|
+
id: customer_id || (customer == null ? void 0 : customer.id) || (customer == null ? void 0 : customer.customer_id) || 1,
|
71
|
+
email: customer == null ? void 0 : customer.email,
|
72
|
+
phone: (customer == null ? void 0 : customer.phone) || "",
|
73
|
+
country_calling_code: (customer == null ? void 0 : customer.country_calling_code) || "",
|
74
|
+
cover: (customer == null ? void 0 : customer.cover) || ""
|
75
|
+
};
|
76
|
+
const start_date = (_b = (_a = bookings == null ? void 0 : bookings.list) == null ? void 0 : _a[0]) == null ? void 0 : _b.start_date;
|
77
|
+
const dateValue = (0, import_dayjs.default)(
|
78
|
+
start_date ? start_date + " " + ((_d = (_c = bookings == null ? void 0 : bookings.list) == null ? void 0 : _c[0]) == null ? void 0 : _d.start_time) : /* @__PURE__ */ new Date()
|
79
|
+
);
|
80
|
+
const petsValue = holder;
|
81
|
+
const getCapacity = (resetD) => {
|
82
|
+
var _a2;
|
83
|
+
return (_a2 = resetD.metadata) == null ? void 0 : _a2.capacity;
|
84
|
+
};
|
85
|
+
const getResource = (resetD) => {
|
86
|
+
var _a2;
|
87
|
+
if (!bookings.relation_type) {
|
88
|
+
try {
|
89
|
+
if ((resetD == null ? void 0 : resetD.event_resources) && ((_a2 = resetD == null ? void 0 : resetD.event_resources) == null ? void 0 : _a2.length)) {
|
90
|
+
return resetD.event_resources.reduce((pre, cur) => {
|
91
|
+
if (pre[cur.form_id]) {
|
92
|
+
pre[cur.form_id].push(cur);
|
93
|
+
} else {
|
94
|
+
pre[cur.form_id] = [cur];
|
95
|
+
}
|
96
|
+
return pre;
|
97
|
+
}, {});
|
98
|
+
}
|
99
|
+
} catch (err) {
|
100
|
+
console.error(err);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
return resetD.relation_id;
|
104
|
+
};
|
105
|
+
const serviceValue = bookings.list.map((d) => {
|
106
|
+
let { detail, product, ...resetD } = d;
|
107
|
+
let _detail = detail || mockProduct;
|
108
|
+
let start_date2 = (0, import_dayjs.default)(resetD.start_date + " " + resetD.start_time);
|
109
|
+
let end_date = (0, import_dayjs.default)(resetD.end_date + " " + resetD.end_time);
|
110
|
+
return {
|
111
|
+
_id: (Math.random() + "").replace(/\D/g, "").substring(0, 11),
|
112
|
+
..._detail,
|
113
|
+
booking_id: resetD.id,
|
114
|
+
id: _detail.product_id,
|
115
|
+
title: _detail.product_title,
|
116
|
+
quantity: Number(_detail.product_quantity),
|
117
|
+
cover: _detail.product_cover,
|
118
|
+
// 商品本身的价格
|
119
|
+
price: Number(_detail.source_product_price),
|
120
|
+
relation_form_name: resetD.relation_form_name,
|
121
|
+
product_resource: product == null ? void 0 : product.product_resource,
|
122
|
+
capacity: product == null ? void 0 : product.capacity,
|
123
|
+
_extend: {
|
124
|
+
...resetD,
|
125
|
+
quantity: Number(_detail.product_quantity),
|
126
|
+
startDate: start_date2,
|
127
|
+
start_date: start_date2,
|
128
|
+
endDate: end_date,
|
129
|
+
end_date,
|
130
|
+
// 商品本身的价格
|
131
|
+
price: Number(_detail.source_product_price),
|
132
|
+
product_name: _detail.product_title,
|
133
|
+
discount_reason: _detail.product_discount_reason,
|
134
|
+
// resource: resetD.relation_id,
|
135
|
+
order_detail_id: _detail.order_detail_id,
|
136
|
+
// 总价: 商品本身价格 + 套餐价格 + 单规格价格 包含折扣
|
137
|
+
total: Number(_detail.selling_price),
|
138
|
+
// 原总价: 商品本身价格 + 套餐价格 + 单规格价格 不包含折扣
|
139
|
+
origin_total: Number(_detail.original_price),
|
140
|
+
payment_price: Number(_detail.payment_price),
|
141
|
+
other: (0, import_utils2.restoreProductOtherData)(d),
|
142
|
+
// 是否编辑了套餐 默认为0 如果编辑之后为1
|
143
|
+
bundle_edit: 0,
|
144
|
+
discount_per: _detail.discount_per,
|
145
|
+
discount_type: _detail.discount_type,
|
146
|
+
discountway: _detail.discountway,
|
147
|
+
capacity: getCapacity(resetD),
|
148
|
+
resource: getResource(resetD)
|
149
|
+
}
|
150
|
+
};
|
151
|
+
});
|
152
|
+
let disabledEdit = (0, import_utils2.getDisabledEdit)(data);
|
153
|
+
let channelDisabledEdit = !!is_other_entrance_edited;
|
154
|
+
return {
|
155
|
+
...modalState,
|
156
|
+
client: {
|
157
|
+
...modalState.client,
|
158
|
+
value: clientValue,
|
159
|
+
edit: false,
|
160
|
+
showModal: false
|
161
|
+
},
|
162
|
+
date: {
|
163
|
+
...modalState.date,
|
164
|
+
value: dateValue,
|
165
|
+
edit: false,
|
166
|
+
showModal: false
|
167
|
+
},
|
168
|
+
pet: {
|
169
|
+
...modalState.pet,
|
170
|
+
showModal: false,
|
171
|
+
edit: false
|
172
|
+
},
|
173
|
+
service: {
|
174
|
+
...modalState.service,
|
175
|
+
value: serviceValue,
|
176
|
+
addModal: false,
|
177
|
+
editModal: false,
|
178
|
+
edit: false
|
179
|
+
},
|
180
|
+
notes: {
|
181
|
+
...modalState.notes,
|
182
|
+
orderNote: note,
|
183
|
+
edit: false
|
184
|
+
},
|
185
|
+
disabledEdit,
|
186
|
+
channelDisabledEdit,
|
187
|
+
appointment_status: bookings == null ? void 0 : bookings.appointment_status
|
188
|
+
};
|
189
|
+
};
|
51
190
|
var TicketBooking = () => {
|
52
191
|
var _a;
|
53
192
|
const [state, setState] = (0, import_miniRedux.useStore)();
|
@@ -62,8 +201,7 @@ var TicketBooking = () => {
|
|
62
201
|
storage,
|
63
202
|
Toast,
|
64
203
|
getSymbolic,
|
65
|
-
translation
|
66
|
-
getData
|
204
|
+
translation
|
67
205
|
} = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
|
68
206
|
const _persistentRef = (0, import_react.useRef)(false);
|
69
207
|
const _initStateRef = (0, import_react.useRef)({});
|
@@ -96,7 +234,7 @@ var TicketBooking = () => {
|
|
96
234
|
});
|
97
235
|
setState(
|
98
236
|
{
|
99
|
-
amountSymbol: (
|
237
|
+
amountSymbol: ((_d = (_c = (_b = store == null ? void 0 : store.getState) == null ? void 0 : _b.call(store)) == null ? void 0 : _c.global) == null ? void 0 : _d.symbol) || "$"
|
100
238
|
},
|
101
239
|
() => {
|
102
240
|
_initStateRef.current = JSON.parse(JSON.stringify(state));
|
@@ -310,8 +448,8 @@ var TicketBooking = () => {
|
|
310
448
|
}, 100);
|
311
449
|
};
|
312
450
|
const _setShopOpeningHours = () => {
|
313
|
-
var _a2, _b, _c, _d, _e
|
314
|
-
let time = (
|
451
|
+
var _a2, _b, _c, _d, _e;
|
452
|
+
let time = (_e = (_d = (_c = (_b = (_a2 = store == null ? void 0 : store.getState) == null ? void 0 : _a2.call(store)) == null ? void 0 : _b.global) == null ? void 0 : _c.shopDetail) == null ? void 0 : _d.operating_day_boundary) == null ? void 0 : _e.time;
|
315
453
|
if (time) {
|
316
454
|
localStorage.setItem("shopOpeningHours", time);
|
317
455
|
}
|
@@ -426,144 +564,6 @@ var TicketBooking = () => {
|
|
426
564
|
(_a2 = dom == null ? void 0 : dom.scrollIntoView) == null ? void 0 : _a2.call(dom, { block: "center", behavior: "smooth" });
|
427
565
|
}
|
428
566
|
};
|
429
|
-
const _formatBookingDetail = (data, modalState) => {
|
430
|
-
var _a2, _b, _c, _d;
|
431
|
-
let {
|
432
|
-
customer_id,
|
433
|
-
holder,
|
434
|
-
customer_name,
|
435
|
-
email,
|
436
|
-
phone,
|
437
|
-
country_calling_code,
|
438
|
-
bookings,
|
439
|
-
customer,
|
440
|
-
note,
|
441
|
-
payment_status,
|
442
|
-
is_other_entrance_edited,
|
443
|
-
shop_discount
|
444
|
-
} = data;
|
445
|
-
const clientValue = {
|
446
|
-
name: ((customer == null ? void 0 : customer.display_name) || "").trim() || ((customer == null ? void 0 : customer.nickname) || "").trim() || "",
|
447
|
-
id: customer_id || (customer == null ? void 0 : customer.id) || (customer == null ? void 0 : customer.customer_id) || 1,
|
448
|
-
email: customer == null ? void 0 : customer.email,
|
449
|
-
phone: (customer == null ? void 0 : customer.phone) || "",
|
450
|
-
country_calling_code: (customer == null ? void 0 : customer.country_calling_code) || "",
|
451
|
-
cover: (customer == null ? void 0 : customer.cover) || ""
|
452
|
-
};
|
453
|
-
const start_date = (_b = (_a2 = bookings == null ? void 0 : bookings.list) == null ? void 0 : _a2[0]) == null ? void 0 : _b.start_date;
|
454
|
-
const dateValue = (0, import_dayjs.default)(
|
455
|
-
start_date ? start_date + " " + ((_d = (_c = bookings == null ? void 0 : bookings.list) == null ? void 0 : _c[0]) == null ? void 0 : _d.start_time) : /* @__PURE__ */ new Date()
|
456
|
-
);
|
457
|
-
const petsValue = holder;
|
458
|
-
const getCapacity = (resetD) => {
|
459
|
-
var _a3;
|
460
|
-
return (_a3 = resetD.metadata) == null ? void 0 : _a3.capacity;
|
461
|
-
};
|
462
|
-
const getResource = (resetD) => {
|
463
|
-
var _a3;
|
464
|
-
if (!bookings.relation_type) {
|
465
|
-
try {
|
466
|
-
if ((resetD == null ? void 0 : resetD.event_resources) && ((_a3 = resetD == null ? void 0 : resetD.event_resources) == null ? void 0 : _a3.length)) {
|
467
|
-
return resetD.event_resources.reduce((pre, cur) => {
|
468
|
-
if (pre[cur.form_id]) {
|
469
|
-
pre[cur.form_id].push(cur);
|
470
|
-
} else {
|
471
|
-
pre[cur.form_id] = [cur];
|
472
|
-
}
|
473
|
-
return pre;
|
474
|
-
}, {});
|
475
|
-
}
|
476
|
-
} catch (err) {
|
477
|
-
console.error(err);
|
478
|
-
}
|
479
|
-
}
|
480
|
-
return resetD.relation_id;
|
481
|
-
};
|
482
|
-
const serviceValue = bookings.list.map((d) => {
|
483
|
-
let { detail, product, ...resetD } = d;
|
484
|
-
let _detail = detail || mockProduct;
|
485
|
-
let start_date2 = (0, import_dayjs.default)(resetD.start_date + " " + resetD.start_time);
|
486
|
-
let end_date = (0, import_dayjs.default)(resetD.end_date + " " + resetD.end_time);
|
487
|
-
return {
|
488
|
-
_id: (Math.random() + "").replace(/\D/g, "").substring(0, 11),
|
489
|
-
..._detail,
|
490
|
-
booking_id: resetD.id,
|
491
|
-
id: _detail.product_id,
|
492
|
-
title: _detail.product_title,
|
493
|
-
quantity: Number(_detail.product_quantity),
|
494
|
-
cover: _detail.product_cover,
|
495
|
-
// 商品本身的价格
|
496
|
-
price: Number(_detail.source_product_price),
|
497
|
-
relation_form_name: resetD.relation_form_name,
|
498
|
-
product_resource: product == null ? void 0 : product.product_resource,
|
499
|
-
capacity: product == null ? void 0 : product.capacity,
|
500
|
-
_extend: {
|
501
|
-
...resetD,
|
502
|
-
quantity: Number(_detail.product_quantity),
|
503
|
-
startDate: start_date2,
|
504
|
-
start_date: start_date2,
|
505
|
-
endDate: end_date,
|
506
|
-
end_date,
|
507
|
-
// 商品本身的价格
|
508
|
-
price: Number(_detail.source_product_price),
|
509
|
-
product_name: _detail.product_title,
|
510
|
-
discount_reason: _detail.product_discount_reason,
|
511
|
-
// resource: resetD.relation_id,
|
512
|
-
order_detail_id: _detail.order_detail_id,
|
513
|
-
// 总价: 商品本身价格 + 套餐价格 + 单规格价格 包含折扣
|
514
|
-
total: Number(_detail.selling_price),
|
515
|
-
// 原总价: 商品本身价格 + 套餐价格 + 单规格价格 不包含折扣
|
516
|
-
origin_total: Number(_detail.original_price),
|
517
|
-
payment_price: Number(_detail.payment_price),
|
518
|
-
other: (0, import_utils2.restoreProductOtherData)(d),
|
519
|
-
// 是否编辑了套餐 默认为0 如果编辑之后为1
|
520
|
-
bundle_edit: 0,
|
521
|
-
discount_per: _detail.discount_per,
|
522
|
-
discount_type: _detail.discount_type,
|
523
|
-
discountway: _detail.discountway,
|
524
|
-
capacity: getCapacity(resetD),
|
525
|
-
resource: getResource(resetD)
|
526
|
-
}
|
527
|
-
};
|
528
|
-
});
|
529
|
-
let disabledEdit = (0, import_utils2.getDisabledEdit)(data);
|
530
|
-
let channelDisabledEdit = !!is_other_entrance_edited;
|
531
|
-
return {
|
532
|
-
...modalState,
|
533
|
-
client: {
|
534
|
-
...modalState.client,
|
535
|
-
value: clientValue,
|
536
|
-
edit: false,
|
537
|
-
showModal: false
|
538
|
-
},
|
539
|
-
date: {
|
540
|
-
...modalState.date,
|
541
|
-
value: dateValue,
|
542
|
-
edit: false,
|
543
|
-
showModal: false
|
544
|
-
},
|
545
|
-
pet: {
|
546
|
-
...modalState.pet,
|
547
|
-
showModal: false,
|
548
|
-
edit: false
|
549
|
-
},
|
550
|
-
service: {
|
551
|
-
...modalState.service,
|
552
|
-
value: serviceValue,
|
553
|
-
addModal: false,
|
554
|
-
editModal: false,
|
555
|
-
edit: false
|
556
|
-
},
|
557
|
-
notes: {
|
558
|
-
...modalState.notes,
|
559
|
-
orderNote: note,
|
560
|
-
edit: false
|
561
|
-
},
|
562
|
-
disabledEdit,
|
563
|
-
channelDisabledEdit,
|
564
|
-
appointment_status: bookings == null ? void 0 : bookings.appointment_status
|
565
|
-
};
|
566
|
-
};
|
567
567
|
const _initBookingData = (type, data) => {
|
568
568
|
var _a2, _b, _c, _d, _e, _f, _g;
|
569
569
|
let initState = _getInitState({
|
@@ -908,3 +908,7 @@ var TicketBooking = () => {
|
|
908
908
|
));
|
909
909
|
};
|
910
910
|
var ticketBooking_default = TicketBooking;
|
911
|
+
// Annotate the CommonJS export names for ESM import in node:
|
912
|
+
0 && (module.exports = {
|
913
|
+
_formatBookingDetail
|
914
|
+
});
|
@@ -68,6 +68,7 @@ var initialState = {
|
|
68
68
|
service: {
|
69
69
|
addModal: false,
|
70
70
|
editModal: false,
|
71
|
+
reloadResourceModal: false,
|
71
72
|
services: [],
|
72
73
|
resources: [],
|
73
74
|
value: [],
|
@@ -172,34 +173,22 @@ var initialState = {
|
|
172
173
|
bookingConfigParams: {
|
173
174
|
item_type: "appointment_booking"
|
174
175
|
},
|
175
|
-
productExtensionType: [
|
176
|
-
"appointment_ticket",
|
177
|
-
"session_ticket",
|
178
|
-
"product_appointment",
|
179
|
-
"service_product",
|
180
|
-
"session_product",
|
181
|
-
"normal",
|
182
|
-
"product_appointment"
|
183
|
-
]
|
176
|
+
productExtensionType: ["appointment_ticket", "session_ticket", "product_appointment", "service_product", "session_product", "normal", "product_appointment"]
|
184
177
|
};
|
185
178
|
var ticketBooking_default = (props) => {
|
186
|
-
var _a, _b
|
179
|
+
var _a, _b;
|
187
180
|
const { productExtensionType, bookingConfigParams } = props;
|
188
181
|
const storeRef = (0, import_react.useRef)(null);
|
189
182
|
const context = (0, import_useEngineContext.default)();
|
190
183
|
import_utils.locales.init(
|
191
184
|
import_locales.default,
|
192
|
-
((
|
185
|
+
((_b = (_a = context.appHelper.utils) == null ? void 0 : _a.storage) == null ? void 0 : _b.get("umi_locale")) || "en"
|
193
186
|
);
|
194
187
|
(0, import_react.useLayoutEffect)(() => {
|
195
188
|
import_utils2.request.setRequest(context.appHelper.utils.request);
|
196
189
|
}, []);
|
197
190
|
(0, import_react.useMemo)(() => {
|
198
|
-
const store = (0, import_miniRedux.createStore)({
|
199
|
-
...(0, import_lodash.cloneDeep)(initialState),
|
200
|
-
bookingConfigParams,
|
201
|
-
productExtensionType
|
202
|
-
});
|
191
|
+
const store = (0, import_miniRedux.createStore)({ ...(0, import_lodash.cloneDeep)(initialState), bookingConfigParams, productExtensionType });
|
203
192
|
storeRef.current = store;
|
204
193
|
}, []);
|
205
194
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, null), /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current }, /* @__PURE__ */ import_react.default.createElement(import_ticketBooking.default, null)));
|
@@ -42,7 +42,6 @@ __export(serve_exports, {
|
|
42
42
|
getPaymentList: () => getPaymentList,
|
43
43
|
getPets: () => getPets,
|
44
44
|
getPetsData: () => getPetsData,
|
45
|
-
getProductList: () => getProductList,
|
46
45
|
getProducts: () => getProducts,
|
47
46
|
getRefundInfo: () => getRefundInfo,
|
48
47
|
getResources: () => getResources,
|
@@ -189,15 +188,6 @@ var voidAppointment = async (order_id) => {
|
|
189
188
|
let { data } = await import_utils.request.getRequest().put(prefix + `/order/void/appointment/${order_id}`, {});
|
190
189
|
return data;
|
191
190
|
};
|
192
|
-
var getProductList = async (params) => {
|
193
|
-
let data = await import_utils.request.getRequest().post(prefix + "/product/query", params, {
|
194
|
-
// cache: {
|
195
|
-
// type: "indexDB",
|
196
|
-
// updateCache: true,
|
197
|
-
// }
|
198
|
-
});
|
199
|
-
return data;
|
200
|
-
};
|
201
191
|
// Annotate the CommonJS export names for ESM import in node:
|
202
192
|
0 && (module.exports = {
|
203
193
|
addNotesByOrder,
|
@@ -223,7 +213,6 @@ var getProductList = async (params) => {
|
|
223
213
|
getPaymentList,
|
224
214
|
getPets,
|
225
215
|
getPetsData,
|
226
|
-
getProductList,
|
227
216
|
getProducts,
|
228
217
|
getRefundInfo,
|
229
218
|
getResources,
|