@pisell/private-materials 3.3.90 → 3.3.91
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 +13 -13
- 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 +4 -37
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +1 -5
- package/es/components/Sales/Cart/utils.d.ts +0 -40
- package/es/components/Sales/Cart/utils.js +0 -167
- package/es/components/Sales/Checkout/index.d.ts +0 -4
- package/es/components/Sales/Checkout/index.js +8 -52
- package/es/components/Sales/Checkout/serve.d.ts +0 -13
- package/es/components/Sales/Checkout/serve.js +2 -16
- package/es/components/Sales/Checkout/utils.js +1 -7
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +0 -7
- package/es/components/Sales/Resource/serve.js +0 -10
- package/es/components/Sales/Summary/index.d.ts +0 -10
- package/es/components/Sales/Summary/index.js +2 -17
- package/es/components/Sales/Summary/serve.d.ts +0 -1
- package/es/components/Sales/Summary/serve.js +0 -6
- package/es/components/Sales/Summary/utils.d.ts +1 -16
- package/es/components/Sales/Summary/utils.js +1 -43
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
- package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Services/index.js +27 -23
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
- package/es/components/appointmentBooking/deposit/index.js +2 -4
- package/es/components/appointmentBooking/index.js +0 -14
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/utils.d.ts +0 -1
- package/es/components/booking/components/footer/utils.js +1 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +2 -2
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +2 -3
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
- package/es/components/booking/info2/service/addService/utils.js +14 -48
- package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
- package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
- package/es/components/booking/info2/utilsByBooking.js +0 -9
- package/es/components/booking/locales.d.ts +0 -3
- package/es/components/booking/locales.js +0 -3
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- 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/amount.d.ts +1 -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 +1 -4
- package/es/components/eftposPay/const.js +1 -3
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/hooks.js +1 -3
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -4
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +2 -6
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
- package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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 +4 -22
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.js +7 -21
- package/es/components/eventBooking/locales.d.ts +0 -24
- package/es/components/eventBooking/locales.js +6 -30
- package/es/components/index.d.ts +1 -3
- package/es/components/index.js +1 -3
- 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/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/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/productExtension/fields/Forms/index.d.ts +0 -1
- 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/schedules/utils.d.ts +1 -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/ticketBooking/components/addServiceVariant/addService.js +1 -1
- 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 +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/Sales/index.js +8 -22
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +0 -40
- package/lib/components/Sales/Cart/utils.js +0 -117
- package/lib/components/Sales/Checkout/index.d.ts +0 -4
- package/lib/components/Sales/Checkout/index.js +7 -39
- package/lib/components/Sales/Checkout/serve.d.ts +0 -13
- package/lib/components/Sales/Checkout/serve.js +2 -7
- package/lib/components/Sales/Checkout/utils.js +0 -2
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +0 -7
- package/lib/components/Sales/Resource/serve.js +2 -9
- package/lib/components/Sales/Summary/index.d.ts +0 -10
- package/lib/components/Sales/Summary/index.js +1 -7
- package/lib/components/Sales/Summary/serve.d.ts +0 -1
- package/lib/components/Sales/Summary/serve.js +0 -32
- package/lib/components/Sales/Summary/utils.d.ts +1 -16
- package/lib/components/Sales/Summary/utils.js +1 -30
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
- package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Services/index.js +11 -6
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
- package/lib/components/appointmentBooking/deposit/index.js +2 -4
- package/lib/components/appointmentBooking/index.js +0 -11
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.js +0 -2
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +2 -2
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +2 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
- package/lib/components/booking/info2/service/addService/utils.js +5 -32
- package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
- package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
- package/lib/components/booking/info2/utilsByBooking.js +0 -6
- package/lib/components/booking/locales.d.ts +0 -3
- package/lib/components/booking/locales.js +0 -3
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- 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/amount.d.ts +1 -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 +1 -4
- package/lib/components/eftposPay/const.js +0 -2
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/hooks.js +4 -11
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -6
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +2 -13
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
- package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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 +4 -10
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.js +7 -11
- package/lib/components/eventBooking/locales.d.ts +0 -24
- package/lib/components/eventBooking/locales.js +6 -30
- package/lib/components/index.d.ts +1 -3
- package/lib/components/index.js +0 -6
- 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/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/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/productExtension/fields/Forms/index.d.ts +0 -1
- 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/schedules/utils.d.ts +1 -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/ticketBooking/components/addServiceVariant/addService.js +1 -1
- 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 +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
- package/es/components/booking/editBookingModal/index.d.ts +0 -5
- package/es/components/booking/editBookingModal/index.js +0 -386
- package/es/components/booking/editBookingModal/index.less +0 -8
- package/es/components/booking/editBookingModal/locales.d.ts +0 -21
- package/es/components/booking/editBookingModal/locales.js +0 -20
- package/es/components/booking/editBookingModal/mock.d.ts +0 -807
- package/es/components/booking/editBookingModal/mock.js +0 -2993
- package/es/components/booking/editBookingModal/serve.d.ts +0 -51
- package/es/components/booking/editBookingModal/serve.js +0 -288
- package/es/components/booking/editBookingModal/type.d.ts +0 -12
- package/es/components/booking/editBookingModal/type.js +0 -1
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/editBookingModal/utils.js +0 -157
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
- package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/linkly/const.js +0 -82
- package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/hooks/index.js +0 -2
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/normal.js +0 -318
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/index.js +0 -197
- package/es/components/eftposPay/linkly/service.d.ts +0 -32
- package/es/components/eftposPay/linkly/service.js +0 -73
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
- package/es/components/stepController/components/Content/index.d.ts +0 -7
- package/es/components/stepController/components/Content/index.js +0 -9
- package/es/components/stepController/components/Content/index.less +0 -8
- package/es/components/stepController/components/Footer/index.d.ts +0 -8
- package/es/components/stepController/components/Footer/index.js +0 -15
- package/es/components/stepController/components/Footer/index.less +0 -39
- package/es/components/stepController/components/Header/index.d.ts +0 -20
- package/es/components/stepController/components/Header/index.js +0 -97
- package/es/components/stepController/components/Header/index.less +0 -21
- package/es/components/stepController/index.d.ts +0 -5
- package/es/components/stepController/index.js +0 -64
- package/es/components/stepController/index.less +0 -11
- package/es/components/stepController/locales.d.ts +0 -27
- package/es/components/stepController/locales.js +0 -32
- package/es/components/stepController/types.d.ts +0 -23
- package/es/components/stepController/types.js +0 -1
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/hooks/useWindowSize.js +0 -26
- package/lib/components/booking/editBookingModal/index.d.ts +0 -5
- package/lib/components/booking/editBookingModal/index.js +0 -363
- package/lib/components/booking/editBookingModal/index.less +0 -8
- package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
- package/lib/components/booking/editBookingModal/locales.js +0 -44
- package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
- package/lib/components/booking/editBookingModal/mock.js +0 -3314
- package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
- package/lib/components/booking/editBookingModal/serve.js +0 -178
- package/lib/components/booking/editBookingModal/type.d.ts +0 -12
- package/lib/components/booking/editBookingModal/type.js +0 -17
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/editBookingModal/utils.js +0 -158
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/linkly/const.js +0 -102
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/normal.js +0 -239
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/index.js +0 -208
- package/lib/components/eftposPay/linkly/service.d.ts +0 -32
- package/lib/components/eftposPay/linkly/service.js +0 -55
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
- package/lib/components/stepController/components/Content/index.d.ts +0 -7
- package/lib/components/stepController/components/Content/index.js +0 -40
- package/lib/components/stepController/components/Content/index.less +0 -8
- package/lib/components/stepController/components/Footer/index.d.ts +0 -8
- package/lib/components/stepController/components/Footer/index.js +0 -49
- package/lib/components/stepController/components/Footer/index.less +0 -39
- package/lib/components/stepController/components/Header/index.d.ts +0 -20
- package/lib/components/stepController/components/Header/index.js +0 -104
- package/lib/components/stepController/components/Header/index.less +0 -21
- package/lib/components/stepController/index.d.ts +0 -5
- package/lib/components/stepController/index.js +0 -89
- package/lib/components/stepController/index.less +0 -11
- package/lib/components/stepController/locales.d.ts +0 -27
- package/lib/components/stepController/locales.js +0 -50
- package/lib/components/stepController/types.d.ts +0 -23
- package/lib/components/stepController/types.js +0 -17
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/hooks/useWindowSize.js +0 -51
- package/lowcode/edit-booking-modal/meta.ts +0 -53
- package/lowcode/step-controller/meta.ts +0 -88
|
@@ -5,8 +5,7 @@ export declare enum EftposEnum {
|
|
|
5
5
|
Tyro = "tyro",
|
|
6
6
|
/** 后端支付 - 支付 + 退款 */
|
|
7
7
|
Windcave = "windcave",
|
|
8
|
-
Stripe = "stripe"
|
|
9
|
-
Linkly = "linkly"
|
|
8
|
+
Stripe = "stripe"
|
|
10
9
|
}
|
|
11
10
|
export declare enum StatusEnum {
|
|
12
11
|
Loading = "loading",
|
|
@@ -148,8 +147,6 @@ export declare enum PayStatus {
|
|
|
148
147
|
'Success' = "200",
|
|
149
148
|
/** 未生成交易记录 */
|
|
150
149
|
'NoPay' = "4004",
|
|
151
|
-
/** 配对失效 */
|
|
152
|
-
'PairingFailure' = "606020",
|
|
153
150
|
/** 支付失败 */
|
|
154
151
|
'Unknown' = "701000",
|
|
155
152
|
/** 交易请求超时 */
|
|
@@ -35,7 +35,6 @@ var EftposEnum = /* @__PURE__ */ ((EftposEnum2) => {
|
|
|
35
35
|
EftposEnum2["Tyro"] = "tyro";
|
|
36
36
|
EftposEnum2["Windcave"] = "windcave";
|
|
37
37
|
EftposEnum2["Stripe"] = "stripe";
|
|
38
|
-
EftposEnum2["Linkly"] = "linkly";
|
|
39
38
|
return EftposEnum2;
|
|
40
39
|
})(EftposEnum || {});
|
|
41
40
|
var StatusEnum = /* @__PURE__ */ ((StatusEnum2) => {
|
|
@@ -89,7 +88,6 @@ var PayRouteEnum = /* @__PURE__ */ ((PayRouteEnum2) => {
|
|
|
89
88
|
var PayStatus = /* @__PURE__ */ ((PayStatus2) => {
|
|
90
89
|
PayStatus2["Success"] = "200";
|
|
91
90
|
PayStatus2["NoPay"] = "4004";
|
|
92
|
-
PayStatus2["PairingFailure"] = "606020";
|
|
93
91
|
PayStatus2["Unknown"] = "701000";
|
|
94
92
|
PayStatus2["Timeout"] = "701001";
|
|
95
93
|
PayStatus2["PayOtherEftposFailed"] = "701003";
|
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
11
11
|
api: PayProps['api'];
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
onChange?: ((status: "
|
|
13
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
14
14
|
[keys: string]: unknown;
|
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
|
16
16
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -128,7 +128,6 @@ var useFail = (index) => {
|
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
const [code] = [`${res.code}`];
|
|
131
|
-
console.log("code---->>>>>>>", code);
|
|
132
131
|
if (code === import_const.PayStatus.Unknown) {
|
|
133
132
|
steps[index].title = import_utils.locales.getText("page.eftpos-pay.text.failed")(
|
|
134
133
|
modeRef.current
|
|
@@ -169,12 +168,8 @@ var useFail = (index) => {
|
|
|
169
168
|
if (isMark) {
|
|
170
169
|
if (clientRef.current === import_const2.ClientEnum.User) {
|
|
171
170
|
steps[index].status = "fail";
|
|
172
|
-
steps[index].title = import_utils.locales.getText(
|
|
173
|
-
|
|
174
|
-
);
|
|
175
|
-
steps[index].fail = import_utils.locales.getText(
|
|
176
|
-
"page.eftpos-pay.text.transaction.eftpos.fail.other"
|
|
177
|
-
);
|
|
171
|
+
steps[index].title = import_utils.locales.getText("page.eftpos-pay.text.timedout.title");
|
|
172
|
+
steps[index].fail = import_utils.locales.getText("page.eftpos-pay.text.transaction.eftpos.fail.other");
|
|
178
173
|
steps[index].custom = steps[index].custom ? { ...steps[index].custom, isPosNetworkError: true } : { isPosNetworkError: true };
|
|
179
174
|
dispatch((0, import_store.updateSteps)(steps));
|
|
180
175
|
dispatch((0, import_store.updateComponent)("Fail"));
|
|
@@ -315,9 +310,7 @@ ${import_utils.locales.getText(
|
|
|
315
310
|
)}
|
|
316
311
|
${import_utils.locales.getText(
|
|
317
312
|
"page.eftpos-pay.text.transaction.eftpos.fail.if"
|
|
318
|
-
)(modeRef.current)}` : import_utils.locales.getText(
|
|
319
|
-
"page.eftpos-pay.text.transaction.eftpos.fail.other"
|
|
320
|
-
);
|
|
313
|
+
)(modeRef.current)}` : import_utils.locales.getText("page.eftpos-pay.text.transaction.eftpos.fail.other");
|
|
321
314
|
steps[index].status = "warn";
|
|
322
315
|
steps[index].custom = steps[index].custom ? { ...steps[index].custom, isPosNetworkError: true } : { isPosNetworkError: true };
|
|
323
316
|
dispatch((0, import_store.updateSteps)(steps));
|
|
@@ -366,7 +359,7 @@ ${import_utils.locales.getText(
|
|
|
366
359
|
);
|
|
367
360
|
return;
|
|
368
361
|
}
|
|
369
|
-
if (code === import_const.PayStatus.UserConfigError
|
|
362
|
+
if (code === import_const.PayStatus.UserConfigError) {
|
|
370
363
|
steps[index].title = import_utils.locales.getText(
|
|
371
364
|
"page.eftpos-pay.text.transaction.user.config.title"
|
|
372
365
|
);
|
|
@@ -139,7 +139,7 @@ var eftposPay_default = (props) => {
|
|
|
139
139
|
}, [mode, state]);
|
|
140
140
|
(0, import_react.useEffect)(() => {
|
|
141
141
|
document.body.id = "body";
|
|
142
|
-
console.log("初始化 ........
|
|
142
|
+
console.log("初始化 ........11221801");
|
|
143
143
|
}, []);
|
|
144
144
|
console.log("props?.params?.device_number = ", (_e = props == null ? void 0 : props.params) == null ? void 0 : _e.device_number);
|
|
145
145
|
const api = (0, import_react.useMemo)(() => {
|
|
@@ -3,5 +3,4 @@ export { getAmonunt } from './helper';
|
|
|
3
3
|
export { default as Payo } from './payo';
|
|
4
4
|
export { default as Windcave } from './windcave/windcave';
|
|
5
5
|
export { default as Tyro } from './tyro';
|
|
6
|
-
export { default as Linkly } from './linkly';
|
|
7
6
|
export declare const getInitState: (type: string, params?: any) => State;
|
|
@@ -29,7 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/eftposPay/manufacturer.tsx
|
|
30
30
|
var manufacturer_exports = {};
|
|
31
31
|
__export(manufacturer_exports, {
|
|
32
|
-
Linkly: () => import_linkly.default,
|
|
33
32
|
Payo: () => import_payo.default,
|
|
34
33
|
Tyro: () => import_tyro.default,
|
|
35
34
|
Windcave: () => import_windcave.default,
|
|
@@ -41,12 +40,10 @@ var import_const = require("./const");
|
|
|
41
40
|
var import_const2 = __toESM(require("./payo/const"));
|
|
42
41
|
var import_const3 = __toESM(require("./tyro/const"));
|
|
43
42
|
var import_const4 = __toESM(require("./windcave/const"));
|
|
44
|
-
var import_const5 = __toESM(require("./linkly/const"));
|
|
45
43
|
var import_helper = require("./helper");
|
|
46
44
|
var import_payo = __toESM(require("./payo"));
|
|
47
45
|
var import_windcave = __toESM(require("./windcave/windcave"));
|
|
48
46
|
var import_tyro = __toESM(require("./tyro"));
|
|
49
|
-
var import_linkly = __toESM(require("./linkly"));
|
|
50
47
|
var getInitState = (type, params) => {
|
|
51
48
|
switch (type) {
|
|
52
49
|
case import_const.EftposEnum.Payo:
|
|
@@ -55,15 +52,12 @@ var getInitState = (type, params) => {
|
|
|
55
52
|
return (0, import_const4.default)(params);
|
|
56
53
|
case import_const.EftposEnum.Tyro:
|
|
57
54
|
return (0, import_const3.default)(params);
|
|
58
|
-
case import_const.EftposEnum.Linkly:
|
|
59
|
-
return (0, import_const5.default)(params);
|
|
60
55
|
default:
|
|
61
56
|
throw new Error("未知的厂商类型");
|
|
62
57
|
}
|
|
63
58
|
};
|
|
64
59
|
// Annotate the CommonJS export names for ESM import in node:
|
|
65
60
|
0 && (module.exports = {
|
|
66
|
-
Linkly,
|
|
67
61
|
Payo,
|
|
68
62
|
Tyro,
|
|
69
63
|
Windcave,
|
|
@@ -6,7 +6,7 @@ import './index.less';
|
|
|
6
6
|
* @Author: hongbing.wang
|
|
7
7
|
* @Date: 2024-08-20 14:59
|
|
8
8
|
*/
|
|
9
|
-
declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client
|
|
9
|
+
declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client }: PayProps & {
|
|
10
10
|
terminal: {
|
|
11
11
|
network: boolean;
|
|
12
12
|
};
|
|
@@ -145,7 +145,6 @@ var Pay = ({
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
}, []);
|
|
148
|
-
console.log("data =>>>>>> ", data);
|
|
149
148
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.render ? /* @__PURE__ */ import_react.default.createElement(
|
|
150
149
|
"div",
|
|
151
150
|
{
|
|
@@ -161,16 +160,7 @@ var Pay = ({
|
|
|
161
160
|
}
|
|
162
161
|
),
|
|
163
162
|
data.eftpos === "payo" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Payo, { api, onChange }, data.warn && data.status !== import_const.StatusEnum.Success && client === import_const.ClientEnum.Merchant ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn" }, data.warn) : null, data.status === import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, import_utils.locales.getText("page.eftpos-pay.text.transaction.end")) : null) : null,
|
|
164
|
-
data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(
|
|
165
|
-
import_manufacturer.Tyro,
|
|
166
|
-
{
|
|
167
|
-
api,
|
|
168
|
-
onChange,
|
|
169
|
-
key: data.key,
|
|
170
|
-
url: tyroUrl,
|
|
171
|
-
version: tyroVersion
|
|
172
|
-
}
|
|
173
|
-
) : null,
|
|
163
|
+
data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Tyro, { api, onChange, key: data.key, url: tyroUrl, version: tyroVersion }) : null,
|
|
174
164
|
data.eftpos === "windcave" ? /* @__PURE__ */ import_react.default.createElement(
|
|
175
165
|
import_manufacturer.Windcave,
|
|
176
166
|
{
|
|
@@ -179,8 +169,7 @@ var Pay = ({
|
|
|
179
169
|
key: data.key,
|
|
180
170
|
formatAmount
|
|
181
171
|
}
|
|
182
|
-
) : null
|
|
183
|
-
data.eftpos === "linkly" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Linkly, { key: data.key, api, onChange }) : null
|
|
172
|
+
) : null
|
|
184
173
|
) : null, data.type === import_const.PayRouteEnum.Unset && Comm ? /* @__PURE__ */ import_react.default.createElement(
|
|
185
174
|
Comm,
|
|
186
175
|
{
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -297,18 +297,18 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "stripe" | "tyro" | "windcave" | "payo" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
subTitle?: string | undefined;
|
|
306
|
-
type?: "
|
|
306
|
+
type?: "step" | "unset" | undefined;
|
|
307
307
|
render?: boolean | undefined;
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -43,7 +43,6 @@ var import_serve = require("../../../../../Sales/Event/serve");
|
|
|
43
43
|
var import_ahooks = require("ahooks");
|
|
44
44
|
var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
|
|
45
45
|
var import_index = require("./index.less");
|
|
46
|
-
var import_utils3 = require("../../../../../appointmentBooking/utils");
|
|
47
46
|
var ContinueButton = () => {
|
|
48
47
|
var _a, _b;
|
|
49
48
|
const { data } = (0, import_Sales.useSales)();
|
|
@@ -54,11 +53,9 @@ var ContinueButton = () => {
|
|
|
54
53
|
onCheckout,
|
|
55
54
|
createBooking,
|
|
56
55
|
onCheckBeforeBooking,
|
|
57
|
-
checkBeforeBooking
|
|
58
|
-
freePay
|
|
56
|
+
checkBeforeBooking
|
|
59
57
|
} = (0, import_Sales.useCheckout)();
|
|
60
58
|
const { openLoginModal, isLogin } = (0, import_Sales.useCustomer)();
|
|
61
|
-
const { deposit, isAgreeDepositPolicy } = (0, import_Sales.useSummary)();
|
|
62
59
|
const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
|
|
63
60
|
const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
|
|
64
61
|
const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
|
|
@@ -229,13 +226,8 @@ var ContinueButton = () => {
|
|
|
229
226
|
handleNextStep();
|
|
230
227
|
};
|
|
231
228
|
const handleContinue = async () => {
|
|
232
|
-
var _a2;
|
|
233
229
|
if (isLastStep) {
|
|
234
230
|
const value = (0, import_utils2.formatValues)(data);
|
|
235
|
-
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
|
|
236
|
-
(0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
231
|
const checkRes = await onCheckBeforeBooking(value);
|
|
240
232
|
if ((checkRes == null ? void 0 : checkRes.result) === false) {
|
|
241
233
|
setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
|
|
@@ -271,13 +263,8 @@ var ContinueButton = () => {
|
|
|
271
263
|
}, [currentStepData == null ? void 0 : currentStepData.key]);
|
|
272
264
|
const confirmLoading = (0, import_react.useMemo)(() => {
|
|
273
265
|
if (!isLastStep) return false;
|
|
274
|
-
return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading)
|
|
275
|
-
}, [
|
|
276
|
-
isLastStep,
|
|
277
|
-
createBooking == null ? void 0 : createBooking.loading,
|
|
278
|
-
checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
|
|
279
|
-
freePay == null ? void 0 : freePay.loading
|
|
280
|
-
]);
|
|
266
|
+
return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
|
|
267
|
+
}, [isLastStep, createBooking == null ? void 0 : createBooking.loading, checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading]);
|
|
281
268
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
282
269
|
import_materials.Button,
|
|
283
270
|
{
|
|
@@ -40,9 +40,8 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
|
|
|
40
40
|
var import_index = require("./index.less");
|
|
41
41
|
var import_classnames = __toESM(require("classnames"));
|
|
42
42
|
var Total = ({ className, isFooter }) => {
|
|
43
|
-
var _a, _b, _c, _d, _e, _f
|
|
44
|
-
const {
|
|
45
|
-
const { taxTitle, totalTaxFee, isPriceIncludeTax, total, deposit } = (0, import_Sales.useSummary)();
|
|
43
|
+
var _a, _b, _c, _d, _e, _f;
|
|
44
|
+
const { taxTitle, totalTaxFee, isPriceIncludeTax, total } = (0, import_Sales.useSummary)();
|
|
46
45
|
const context = (0, import_useEngineContext.default)();
|
|
47
46
|
console.log(
|
|
48
47
|
taxTitle,
|
|
@@ -50,10 +49,8 @@ var Total = ({ className, isFooter }) => {
|
|
|
50
49
|
totalTaxFee,
|
|
51
50
|
total,
|
|
52
51
|
(_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getSymbolic) == null ? void 0 : _c.call(_b),
|
|
53
|
-
deposit,
|
|
54
52
|
"wh97978"
|
|
55
53
|
);
|
|
56
|
-
const showDeposit = ((_d = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _d.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit);
|
|
57
54
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `event-total-wrap ${className}` }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "gst-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", null, taxTitle, isFooter ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: totalTaxFee, showCurrencySymbol: true })) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
58
55
|
"div",
|
|
59
56
|
{
|
|
@@ -61,16 +58,16 @@ var Total = ({ className, isFooter }) => {
|
|
|
61
58
|
[["total-gst-wrap"]]: !isPriceIncludeTax && Number(totalTaxFee) > 0
|
|
62
59
|
})
|
|
63
60
|
},
|
|
64
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null,
|
|
61
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
|
65
62
|
import_materials.PisellText.Amount,
|
|
66
63
|
{
|
|
67
|
-
value:
|
|
64
|
+
value: total,
|
|
68
65
|
showCurrencySymbol: true,
|
|
69
66
|
className: "event-amount"
|
|
70
67
|
}
|
|
71
68
|
) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("span", { className: "gst" }, import_utils.locales.getText("pisell2.event.total.gst")(
|
|
72
69
|
`${isFooter ? `${taxTitle}: ` : taxTitle}`,
|
|
73
|
-
`${(
|
|
70
|
+
`${(_f = (_e = (_d = context == null ? void 0 : context.appHelper) == null ? void 0 : _d.utils) == null ? void 0 : _e.getSymbolic) == null ? void 0 : _f.call(_e)}${totalTaxFee}`
|
|
74
71
|
)) : null),
|
|
75
72
|
!isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
|
76
73
|
import_materials.PisellText.Amount,
|
|
@@ -39,10 +39,8 @@ var import_Sales = require("../../../../../Sales");
|
|
|
39
39
|
var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
|
|
40
40
|
var import_ContinueButton = __toESM(require("../ContinueButton"));
|
|
41
41
|
var import_Total = __toESM(require("./Total"));
|
|
42
|
-
var import_Deposit = __toESM(require("../Deposit"));
|
|
43
42
|
var import_index = require("./index.less");
|
|
44
43
|
var CartItem = () => {
|
|
45
|
-
var _a;
|
|
46
44
|
const { open, holderData, selectedHolderIds } = (0, import_Sales.useHolder)();
|
|
47
45
|
const {
|
|
48
46
|
deleteCartItem,
|
|
@@ -50,7 +48,7 @@ var CartItem = () => {
|
|
|
50
48
|
cartData,
|
|
51
49
|
addNoteToCartItem
|
|
52
50
|
} = (0, import_Sales.useCart)();
|
|
53
|
-
const {
|
|
51
|
+
const { subtotal } = (0, import_Sales.useSummary)();
|
|
54
52
|
const { isLastStep } = (0, import_Sales.useStep)();
|
|
55
53
|
const handleClickCard = (e, type, key) => {
|
|
56
54
|
if (type === "note") {
|
|
@@ -88,7 +86,7 @@ var CartItem = () => {
|
|
|
88
86
|
onChange: (e, type, key) => handleClickCard(e, type, key)
|
|
89
87
|
}
|
|
90
88
|
)),
|
|
91
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null),
|
|
89
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
|
92
90
|
), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
|
|
93
91
|
};
|
|
94
92
|
var Item_default = CartItem;
|
|
@@ -48,7 +48,6 @@ var Event = () => {
|
|
|
48
48
|
const { onOpenEventDetail, open } = (0, import_Sales.useEventDetail)();
|
|
49
49
|
const [lists, setLists] = (0, import_react.useState)();
|
|
50
50
|
const customer = (0, import_useLoginUser.default)();
|
|
51
|
-
const { appUtils } = (0, import_Sales.useCustomer)();
|
|
52
51
|
(0, import_react.useEffect)(() => {
|
|
53
52
|
var _a2;
|
|
54
53
|
const eventList = (eventData == null ? void 0 : eventData.eventList) || [];
|
|
@@ -60,22 +59,16 @@ var Event = () => {
|
|
|
60
59
|
}
|
|
61
60
|
}, [eventData == null ? void 0 : eventData.eventList]);
|
|
62
61
|
(0, import_react.useEffect)(() => {
|
|
63
|
-
var _a2, _b2
|
|
62
|
+
var _a2, _b2;
|
|
64
63
|
const id = (_b2 = (_a2 = data == null ? void 0 : data.resourceData) == null ? void 0 : _a2.currentResourceItem) == null ? void 0 : _b2.id;
|
|
65
64
|
if (!id) return;
|
|
66
|
-
|
|
67
|
-
const query = (_d = history == null ? void 0 : history.location) == null ? void 0 : _d.query;
|
|
68
|
-
const params = {
|
|
65
|
+
getEventList.run({
|
|
69
66
|
event_item_resource_id: id,
|
|
70
67
|
skip: 1,
|
|
71
68
|
num: 100,
|
|
72
69
|
customer_id: customer == null ? void 0 : customer.id,
|
|
73
70
|
open_quotation: 1
|
|
74
|
-
};
|
|
75
|
-
if (query == null ? void 0 : query.ids) {
|
|
76
|
-
params.ids = (_e = query == null ? void 0 : query.ids) == null ? void 0 : _e.split(",");
|
|
77
|
-
}
|
|
78
|
-
getEventList.run(params);
|
|
71
|
+
});
|
|
79
72
|
}, [(_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.currentResourceItem) == null ? void 0 : _b.id, customer == null ? void 0 : customer.id]);
|
|
80
73
|
const handleClick = (item) => {
|
|
81
74
|
selectEvent(item);
|
|
@@ -44,7 +44,7 @@ var import_OrderProductModal = __toESM(require("../Provider/OrderProductModal/in
|
|
|
44
44
|
var import_index = require("./index.less");
|
|
45
45
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
46
46
|
var BookingDetailModal = (props) => {
|
|
47
|
-
var _a
|
|
47
|
+
var _a;
|
|
48
48
|
const modalContentRef = (0, import_react.useRef)(null);
|
|
49
49
|
const context = (0, import_useEngineContext.default)();
|
|
50
50
|
const { utils } = context.appHelper || {};
|
|
@@ -58,17 +58,11 @@ var BookingDetailModal = (props) => {
|
|
|
58
58
|
checkBeforeSelectEventDetail
|
|
59
59
|
} = (0, import_Sales.useEventDetail)();
|
|
60
60
|
const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
|
|
61
|
-
const { initData } = (0, import_Sales.useInit)();
|
|
62
61
|
const [activeTab, setActiveTab] = (0, import_react.useState)("introduction");
|
|
63
62
|
const [isScrolling, setIsScrolling] = (0, import_react.useState)(false);
|
|
64
63
|
const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
|
|
65
64
|
const isUserClickRef = (0, import_react.useRef)(false);
|
|
66
65
|
const scrollTimeoutRef = (0, import_react.useRef)(null);
|
|
67
|
-
const buttonText = (0, import_react.useMemo)(() => {
|
|
68
|
-
var _a2, _b2, _c2;
|
|
69
|
-
const config = ((_b2 = (_a2 = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a2.config) == null ? void 0 : _b2.product_display_setting) || {};
|
|
70
|
-
return ((_c2 = utils == null ? void 0 : utils.translation) == null ? void 0 : _c2.call(utils, config == null ? void 0 : config.booking_event_v2_product_detail_button)) || import_utils.locales.getText("pisell2.event.add.to.cart");
|
|
71
|
-
}, [(_b = (_a = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a.config) == null ? void 0 : _b.product_display_setting]);
|
|
72
66
|
const anchorOptions = (0, import_react.useMemo)(
|
|
73
67
|
() => [
|
|
74
68
|
{
|
|
@@ -97,7 +91,7 @@ var BookingDetailModal = (props) => {
|
|
|
97
91
|
const images = (0, import_react.useMemo)(() => {
|
|
98
92
|
var _a2;
|
|
99
93
|
return ((_a2 = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a2.images) || [];
|
|
100
|
-
}, [(
|
|
94
|
+
}, [(_a = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a.images]);
|
|
101
95
|
(0, import_react.useEffect)(() => {
|
|
102
96
|
if (!modalContentRef.current) return;
|
|
103
97
|
let isCurrentlyScrolling = false;
|
|
@@ -239,7 +233,7 @@ var BookingDetailModal = (props) => {
|
|
|
239
233
|
utils == null ? void 0 : utils.action({
|
|
240
234
|
type: "pisell1.productDetail",
|
|
241
235
|
data: {
|
|
242
|
-
detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}
|
|
236
|
+
detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
|
|
243
237
|
isOS: false
|
|
244
238
|
},
|
|
245
239
|
callback: (data) => {
|
|
@@ -289,7 +283,7 @@ var BookingDetailModal = (props) => {
|
|
|
289
283
|
destroyOnClose: true,
|
|
290
284
|
className: "booking-detail-modal",
|
|
291
285
|
onCancel: onCloseEventDetail,
|
|
292
|
-
okText:
|
|
286
|
+
okText: import_utils.locales.getText("pisell2.event.add.to.cart"),
|
|
293
287
|
cancelVisible: false,
|
|
294
288
|
onOk: handleOk,
|
|
295
289
|
width: (0, import_utils.isMobile)() ? "100%" : 600,
|
|
@@ -55,17 +55,13 @@ var Content = () => {
|
|
|
55
55
|
getBoardSetting.run({ item_type: "event_booking_v2" });
|
|
56
56
|
}, []);
|
|
57
57
|
(0, import_react.useEffect)(() => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
params.event_item_ids = (_c = query == null ? void 0 : query.ids) == null ? void 0 : _c.split(",");
|
|
66
|
-
}
|
|
67
|
-
getResourceList.run(params);
|
|
68
|
-
}, []);
|
|
58
|
+
if (!form_id) return;
|
|
59
|
+
getResourceList.run({
|
|
60
|
+
form_id,
|
|
61
|
+
shop_id,
|
|
62
|
+
form_data_status: "active"
|
|
63
|
+
});
|
|
64
|
+
}, [form_id]);
|
|
69
65
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
70
66
|
"div",
|
|
71
67
|
{
|
|
@@ -71,14 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
72
72
|
'pisell2.event.schedule.item.expand': string;
|
|
73
73
|
'pisell2.event.schedule.item.collapse': string;
|
|
74
|
-
'pisell2.appointment.deposit': string;
|
|
75
|
-
'pisell2.appointment.deposit.agreed': string;
|
|
76
|
-
'pisell2.appointment.deposit.agree.policy': string;
|
|
77
|
-
'pisell2.appointment.deposit.and': string;
|
|
78
|
-
'pisell2.appointment.deposit.amount.tip1': string;
|
|
79
|
-
'pisell2.appointment.deposit.amount.tip2': string;
|
|
80
|
-
'pisell2.appointment.deposit.close': string;
|
|
81
|
-
'pisell2.appointment.booking.empty.data': string;
|
|
82
74
|
};
|
|
83
75
|
'zh-CN': {
|
|
84
76
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -152,14 +144,6 @@ declare const _default: {
|
|
|
152
144
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
153
145
|
'pisell2.event.schedule.item.expand': string;
|
|
154
146
|
'pisell2.event.schedule.item.collapse': string;
|
|
155
|
-
'pisell2.appointment.deposit': string;
|
|
156
|
-
'pisell2.appointment.deposit.agreed': string;
|
|
157
|
-
'pisell2.appointment.deposit.agree.policy': string;
|
|
158
|
-
'pisell2.appointment.deposit.and': string;
|
|
159
|
-
'pisell2.appointment.deposit.amount.tip1': string;
|
|
160
|
-
'pisell2.appointment.deposit.amount.tip2': string;
|
|
161
|
-
'pisell2.appointment.deposit.close': string;
|
|
162
|
-
'pisell2.appointment.booking.empty.data': string;
|
|
163
147
|
};
|
|
164
148
|
'zh-HK': {
|
|
165
149
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -233,14 +217,6 @@ declare const _default: {
|
|
|
233
217
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
234
218
|
'pisell2.event.schedule.item.expand': string;
|
|
235
219
|
'pisell2.event.schedule.item.collapse': string;
|
|
236
|
-
'pisell2.appointment.deposit': string;
|
|
237
|
-
'pisell2.appointment.deposit.agreed': string;
|
|
238
|
-
'pisell2.appointment.deposit.agree.policy': string;
|
|
239
|
-
'pisell2.appointment.deposit.and': string;
|
|
240
|
-
'pisell2.appointment.deposit.amount.tip1': string;
|
|
241
|
-
'pisell2.appointment.deposit.amount.tip2': string;
|
|
242
|
-
'pisell2.appointment.deposit.close': string;
|
|
243
|
-
'pisell2.appointment.booking.empty.data': string;
|
|
244
220
|
};
|
|
245
221
|
};
|
|
246
222
|
export default _default;
|