@pisell/private-materials 6.7.4 → 6.7.5
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- 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/Voucher/index.js +2 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +529 -79
- package/es/components/booking/components/footer/index.js +77 -56
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +151 -52
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +20 -6
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +30 -6
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +2 -3
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.js +16 -3
- package/es/components/checkout/PaymentModal.d.ts +7 -5
- package/es/components/checkout/PaymentModal.js +257 -213
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +52 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +5 -6
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.js +6 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.js +70 -32
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- 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/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/index.js +2 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/index.js +7 -4
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/utils/index.js +36 -13
- package/es/components/wallet/Detail/index.js +34 -2
- package/es/components/wallet/Detail/index.less +11 -0
- package/es/components/wallet/Detail/locales.js +14 -2
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/index.js +11 -10
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/components/WalletCard.js +5 -1
- package/es/components/wallet/index.js +4 -2
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/wallet/utils.js +342 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +4 -0
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +7 -3
- package/es/plus/walletPassGallery/serve.js +4 -2
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- 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/Voucher/index.js +2 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +276 -38
- package/lib/components/booking/components/footer/index.js +30 -11
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +97 -21
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +21 -7
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +25 -5
- package/lib/components/booking/info2/index.js +7 -2
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +1 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/PaymentModal.d.ts +7 -5
- package/lib/components/checkout/PaymentModal.js +171 -135
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +5 -6
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.js +6 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- 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/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/index.js +3 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/index.js +4 -1
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.js +48 -0
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.js +17 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/utils/index.js +20 -6
- package/lib/components/wallet/Detail/index.js +31 -3
- package/lib/components/wallet/Detail/index.less +11 -0
- package/lib/components/wallet/Detail/locales.js +14 -2
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/components/WalletCard.js +4 -0
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/wallet/utils.js +287 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +7 -3
- package/lib/plus/walletPassGallery/serve.js +3 -2
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lowcode/settings-registry/meta.ts +29 -0
- package/lowcode/wallet-pass-detail/meta.ts +89 -0
- package/package.json +4 -4
- package/es/components/booking/components/footer/amount.d.ts +0 -36
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/service2/utils.d.ts +0 -251
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/utils.d.ts +0 -173
- package/es/components/checkout/PaymentPlugin.d.ts +0 -2
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
- package/es/components/checkout/locales.d.ts +0 -507
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/index.d.ts +0 -23
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
- package/es/components/pay/toC/locales.d.ts +0 -298
- package/es/components/pay/toC/status.d.ts +0 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/es/components/ticketBooking/locales.d.ts +0 -192
- package/es/components/ticketBooking/utils/index.d.ts +0 -90
- package/es/components/wallet/Detail/locales.d.ts +0 -147
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clinetSearch/index.d.ts +0 -17
- package/es/plus/clinetSearch/locales.d.ts +0 -102
- package/es/plus/clinetSearch/types.d.ts +0 -49
- package/es/plus/walletPassGallery/serve.d.ts +0 -218
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
- package/lib/components/booking/components/footer/amount.d.ts +0 -36
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/service2/utils.d.ts +0 -251
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/utils.d.ts +0 -173
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
- package/lib/components/checkout/PaymentPlugin.js +0 -181
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
- package/lib/components/checkout/locales.d.ts +0 -507
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/index.d.ts +0 -23
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
- package/lib/components/pay/toC/locales.d.ts +0 -298
- package/lib/components/pay/toC/status.d.ts +0 -12
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/lib/components/ticketBooking/locales.d.ts +0 -192
- package/lib/components/ticketBooking/utils/index.d.ts +0 -90
- package/lib/components/wallet/Detail/locales.d.ts +0 -147
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clinetSearch/index.d.ts +0 -17
- package/lib/plus/clinetSearch/locales.d.ts +0 -102
- package/lib/plus/clinetSearch/types.d.ts +0 -49
- package/lib/plus/walletPassGallery/serve.d.ts +0 -218
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useMemo } from 'react';
|
|
7
|
+
import React, { useMemo, useState, useEffect } from 'react';
|
|
8
8
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
9
9
|
import { DatePicker, SelectTime } from '@pisell/materials';
|
|
10
10
|
import { useMemoizedFn } from 'ahooks';
|
|
@@ -13,13 +13,66 @@ import dayjs from 'dayjs';
|
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { locales } from '@pisell/utils';
|
|
15
15
|
import "./index.less";
|
|
16
|
+
import { Iconfont } from '@pisell/materials';
|
|
16
17
|
var TimeBar = function TimeBar(props) {
|
|
17
|
-
var _state$
|
|
18
|
+
var _state$modalState7;
|
|
18
19
|
var state = props.globalState,
|
|
19
20
|
setGlobalState = props.setGlobalState,
|
|
20
21
|
locale = props.locale,
|
|
21
22
|
onCreateClick = props.onCreateClick,
|
|
22
23
|
setNowTime = props.setNowTime;
|
|
24
|
+
var _useState = useState(true),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
collapsed = _useState2[0],
|
|
27
|
+
setCollapsed = _useState2[1];
|
|
28
|
+
var _useState3 = useState(1),
|
|
29
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
30
|
+
scaleCompensation = _useState4[0],
|
|
31
|
+
setScaleCompensation = _useState4[1];
|
|
32
|
+
|
|
33
|
+
// 获取 body 的 scale 值并计算补偿
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
var getBodyScale = function getBodyScale() {
|
|
36
|
+
var body = document.body;
|
|
37
|
+
var computedStyle = window.getComputedStyle(body);
|
|
38
|
+
var transform = computedStyle.transform;
|
|
39
|
+
if (transform && transform !== 'none') {
|
|
40
|
+
// 解析 transform matrix 获取 scale 值
|
|
41
|
+
// matrix(scaleX, skewY, skewX, scaleY, translateX, translateY)
|
|
42
|
+
var matrix = transform.match(/matrix\(([^)]+)\)/);
|
|
43
|
+
if (matrix) {
|
|
44
|
+
var values = matrix[1].split(',').map(function (v) {
|
|
45
|
+
return parseFloat(v.trim());
|
|
46
|
+
});
|
|
47
|
+
// scaleX 通常是 matrix 的第一个值
|
|
48
|
+
var scale = values[0] || 1;
|
|
49
|
+
return scale;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return 1;
|
|
53
|
+
};
|
|
54
|
+
var updateScale = function updateScale() {
|
|
55
|
+
var scale = getBodyScale();
|
|
56
|
+
// 目标高度是 40px,需要补偿 scale 的影响
|
|
57
|
+
// 实际设置高度 = 目标高度 / scale
|
|
58
|
+
setScaleCompensation(scale);
|
|
59
|
+
};
|
|
60
|
+
updateScale();
|
|
61
|
+
|
|
62
|
+
// 监听 body 的 transform 变化(使用 MutationObserver)
|
|
63
|
+
var observer = new MutationObserver(updateScale);
|
|
64
|
+
observer.observe(document.body, {
|
|
65
|
+
attributes: true,
|
|
66
|
+
attributeFilter: ['style', 'class']
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// 也监听窗口大小变化(某些情况下 scale 可能随窗口变化)
|
|
70
|
+
window.addEventListener('resize', updateScale);
|
|
71
|
+
return function () {
|
|
72
|
+
observer.disconnect();
|
|
73
|
+
window.removeEventListener('resize', updateScale);
|
|
74
|
+
};
|
|
75
|
+
}, []);
|
|
23
76
|
var _onClickNext = useMemoizedFn(function () {
|
|
24
77
|
var _state$modalState, _props$onDateChange, _props$setIntervalTim;
|
|
25
78
|
var currentTime = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.date) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
|
|
@@ -60,8 +113,52 @@ var TimeBar = function TimeBar(props) {
|
|
|
60
113
|
});
|
|
61
114
|
(_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, timeString === dayjs().format('HH:mm'));
|
|
62
115
|
});
|
|
116
|
+
var _onToggleCollapse = useMemoizedFn(function () {
|
|
117
|
+
setCollapsed(!collapsed);
|
|
118
|
+
});
|
|
63
119
|
return useMemo(function () {
|
|
64
|
-
var _state$
|
|
120
|
+
var _state$modalState5, _state$modalState6;
|
|
121
|
+
// 收起状态
|
|
122
|
+
if (collapsed) {
|
|
123
|
+
var _state$modalState4;
|
|
124
|
+
var currentDate = state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value;
|
|
125
|
+
var isToday = currentDate && currentDate.isSame(dayjs(), 'day');
|
|
126
|
+
var displayText = isToday ? locales.getText('pisell2.ticket-booking.today') : (currentDate === null || currentDate === void 0 ? void 0 : currentDate.format('YYYY-MM-DD')) || '';
|
|
127
|
+
|
|
128
|
+
// 计算补偿后的高度:目标高度 / scale
|
|
129
|
+
var targetHeight = 40;
|
|
130
|
+
var compensatedHeight = targetHeight / scaleCompensation;
|
|
131
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
className: classNames('pisell-ticket-booking-time-bar', 'collapsed'),
|
|
133
|
+
style: {
|
|
134
|
+
height: "".concat(compensatedHeight, "px"),
|
|
135
|
+
minHeight: "".concat(compensatedHeight, "px"),
|
|
136
|
+
maxHeight: "".concat(compensatedHeight, "px")
|
|
137
|
+
}
|
|
138
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
139
|
+
className: "pisell-ticket-booking-time-bar-collapsed-content",
|
|
140
|
+
style: {
|
|
141
|
+
height: "".concat(compensatedHeight, "px")
|
|
142
|
+
}
|
|
143
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
144
|
+
className: "pisell-ticket-booking-time-bar-collapsed-today",
|
|
145
|
+
style: {
|
|
146
|
+
lineHeight: "".concat(compensatedHeight, "px")
|
|
147
|
+
}
|
|
148
|
+
}, displayText), /*#__PURE__*/React.createElement(Button, {
|
|
149
|
+
type: "link",
|
|
150
|
+
size: "small",
|
|
151
|
+
className: "pisell-ticket-booking-time-bar-collapsed-expand",
|
|
152
|
+
onClick: _onToggleCollapse,
|
|
153
|
+
style: {
|
|
154
|
+
lineHeight: "".concat(compensatedHeight, "px")
|
|
155
|
+
}
|
|
156
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.expand')), /*#__PURE__*/React.createElement(Iconfont, {
|
|
157
|
+
type: "pisell2-chevron-right-double"
|
|
158
|
+
}))));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// 展开状态
|
|
65
162
|
return /*#__PURE__*/React.createElement("div", {
|
|
66
163
|
className: "pisell-ticket-booking-time-bar",
|
|
67
164
|
style: {
|
|
@@ -88,7 +185,7 @@ var TimeBar = function TimeBar(props) {
|
|
|
88
185
|
}
|
|
89
186
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
90
187
|
inputReadOnly: true,
|
|
91
|
-
value: state === null || state === void 0 || (_state$
|
|
188
|
+
value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value,
|
|
92
189
|
format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
|
|
93
190
|
onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
|
|
94
191
|
size: "large",
|
|
@@ -104,7 +201,7 @@ var TimeBar = function TimeBar(props) {
|
|
|
104
201
|
'booking-page-date-picker-select': state.isTimeChange
|
|
105
202
|
})
|
|
106
203
|
}, /*#__PURE__*/React.createElement(SelectTime, {
|
|
107
|
-
value: state === null || state === void 0 || (_state$
|
|
204
|
+
value: state === null || state === void 0 || (_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value.format('HH:mm'),
|
|
108
205
|
onChange: _onDateTimeChange,
|
|
109
206
|
popoverProps: {
|
|
110
207
|
style: {
|
|
@@ -127,7 +224,15 @@ var TimeBar = function TimeBar(props) {
|
|
|
127
224
|
},
|
|
128
225
|
size: "large",
|
|
129
226
|
type: "primary"
|
|
130
|
-
}, locales.getText('pisell2.ticket-booking.create-new'))
|
|
131
|
-
|
|
227
|
+
}, locales.getText('pisell2.ticket-booking.create-new')), /*#__PURE__*/React.createElement(Button, {
|
|
228
|
+
type: "link",
|
|
229
|
+
style: {
|
|
230
|
+
marginLeft: 'auto'
|
|
231
|
+
},
|
|
232
|
+
onClick: _onToggleCollapse
|
|
233
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.collapse')), /*#__PURE__*/React.createElement(Iconfont, {
|
|
234
|
+
type: "pisell2-chevron-left-double"
|
|
235
|
+
})));
|
|
236
|
+
}, [collapsed, (_state$modalState7 = state.modalState) === null || _state$modalState7 === void 0 || (_state$modalState7 = _state$modalState7.date) === null || _state$modalState7 === void 0 ? void 0 : _state$modalState7.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale, _onToggleCollapse, scaleCompensation]);
|
|
132
237
|
};
|
|
133
238
|
export default TimeBar;
|
|
@@ -20,4 +20,63 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
// 收起状态
|
|
25
|
+
&.collapsed {
|
|
26
|
+
position: fixed;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
left: 86px;
|
|
29
|
+
padding: 0;
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
display: block;
|
|
32
|
+
// 高度通过内联样式动态设置以补偿 body 的 scale
|
|
33
|
+
|
|
34
|
+
.pisell-ticket-booking-time-bar-collapsed-content {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
width: 100%;
|
|
39
|
+
// 高度通过内联样式动态设置以补偿 body 的 scale
|
|
40
|
+
padding: 0 16px;
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
border-radius: 0 8px 8px 0;
|
|
43
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
|
|
47
|
+
.pisell-ticket-booking-time-bar-collapsed-today {
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
font-size: 18px;
|
|
50
|
+
color: #000;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
margin-right: 16px;
|
|
53
|
+
// line-height 通过内联样式动态设置
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pisell-ticket-booking-time-bar-collapsed-expand {
|
|
57
|
+
color: #7F56DA;
|
|
58
|
+
padding: 0;
|
|
59
|
+
margin: 0;
|
|
60
|
+
height: auto;
|
|
61
|
+
font-size: 18px;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
// line-height 通过内联样式动态设置
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
color: #6941c6;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
span {
|
|
73
|
+
margin-right: 2px;
|
|
74
|
+
}
|
|
75
|
+
.anticon {
|
|
76
|
+
margin-left: 0px;
|
|
77
|
+
margin-right: 0px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
23
82
|
}
|
|
@@ -18,7 +18,14 @@ import { useBookingTicket } from "./bookingTicket";
|
|
|
18
18
|
import { useState, useEffect, useRef } from 'react';
|
|
19
19
|
import useEngineContext, { usePlatform } from "../../../../hooks/useEngineContext";
|
|
20
20
|
import dayjs from 'dayjs';
|
|
21
|
+
// 等待函数
|
|
22
|
+
var sleep = function sleep(ms) {
|
|
23
|
+
return new Promise(function (resolve) {
|
|
24
|
+
return setTimeout(resolve, ms);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
21
27
|
export var useProducts = function useProducts(notAvailableRef) {
|
|
28
|
+
var _context$appHelper;
|
|
22
29
|
var bookingTicket = useBookingTicket();
|
|
23
30
|
var context = useEngineContext();
|
|
24
31
|
var platform = usePlatform();
|
|
@@ -31,6 +38,10 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
31
38
|
loading = _useState4[0],
|
|
32
39
|
setLoading = _useState4[1];
|
|
33
40
|
var isFirstLoadRef = useRef(true);
|
|
41
|
+
var isFirstLoadDataRef = useRef(true);
|
|
42
|
+
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
43
|
+
getApp = _ref.getApp;
|
|
44
|
+
var app = getApp();
|
|
34
45
|
|
|
35
46
|
// 日程时间段列表 HH:mm格式
|
|
36
47
|
var _useState5 = useState([]),
|
|
@@ -40,7 +51,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
40
51
|
var scheduledTaskQueueIdRef = useRef('booking-schedule-products');
|
|
41
52
|
var paramsRef = useRef(undefined);
|
|
42
53
|
var getProducts = useMemoizedFn( /*#__PURE__*/function () {
|
|
43
|
-
var
|
|
54
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
44
55
|
var _products, _notAvailableRef$curr;
|
|
45
56
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46
57
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -73,7 +84,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
73
84
|
}, _callee, null, [[1, 11]]);
|
|
74
85
|
}));
|
|
75
86
|
return function (_x) {
|
|
76
|
-
return
|
|
87
|
+
return _ref2.apply(this, arguments);
|
|
77
88
|
};
|
|
78
89
|
}());
|
|
79
90
|
|
|
@@ -83,21 +94,21 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
83
94
|
return;
|
|
84
95
|
}
|
|
85
96
|
try {
|
|
86
|
-
var _context$
|
|
87
|
-
var
|
|
88
|
-
if (!
|
|
97
|
+
var _context$appHelper2, _context$appHelper2$g;
|
|
98
|
+
var _app = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getApp) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.call(_context$appHelper2);
|
|
99
|
+
if (!_app || !_app.tasksManager) {
|
|
89
100
|
console.warn('App 或 tasksManager 不可用');
|
|
90
101
|
return;
|
|
91
102
|
}
|
|
92
103
|
|
|
93
104
|
// 注册 getProducts 任务函数
|
|
94
|
-
|
|
95
|
-
var
|
|
105
|
+
_app.tasksManager.addTaskFunction('getProducts', /*#__PURE__*/function () {
|
|
106
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
96
107
|
var task;
|
|
97
108
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
98
109
|
while (1) switch (_context2.prev = _context2.next) {
|
|
99
110
|
case 0:
|
|
100
|
-
task =
|
|
111
|
+
task = _ref3.task;
|
|
101
112
|
console.log('定时执行 getProducts,参数:', task.payload);
|
|
102
113
|
_context2.next = 4;
|
|
103
114
|
return getProducts(task.payload);
|
|
@@ -112,14 +123,14 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
112
123
|
}, _callee2);
|
|
113
124
|
}));
|
|
114
125
|
return function (_x2) {
|
|
115
|
-
return
|
|
126
|
+
return _ref4.apply(this, arguments);
|
|
116
127
|
};
|
|
117
128
|
}());
|
|
118
129
|
|
|
119
130
|
// 如果有 scheduleTimePoints,创建定时任务
|
|
120
131
|
if (scheduleTimePoints && scheduleTimePoints.length > 0) {
|
|
121
132
|
// 先清除之前的定时任务
|
|
122
|
-
|
|
133
|
+
_app.tasksManager.clearTasks({
|
|
123
134
|
module: 'scheduledTasks',
|
|
124
135
|
queueId: scheduledTaskQueueIdRef.current
|
|
125
136
|
});
|
|
@@ -147,14 +158,14 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
147
158
|
});
|
|
148
159
|
|
|
149
160
|
// 添加定时任务到 scheduledTasks 模块
|
|
150
|
-
|
|
161
|
+
_app.tasksManager.addTask({
|
|
151
162
|
module: 'scheduledTasks',
|
|
152
163
|
queueId: scheduledTaskQueueIdRef.current,
|
|
153
164
|
tasks: tasks
|
|
154
165
|
});
|
|
155
166
|
|
|
156
167
|
// 开始执行定时任务队列
|
|
157
|
-
|
|
168
|
+
_app.tasksManager.run({
|
|
158
169
|
module: 'scheduledTasks',
|
|
159
170
|
queueId: scheduledTaskQueueIdRef.current
|
|
160
171
|
});
|
|
@@ -167,10 +178,10 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
167
178
|
// 清理函数:组件卸载时清除定时任务
|
|
168
179
|
return function () {
|
|
169
180
|
try {
|
|
170
|
-
var _context$
|
|
171
|
-
var
|
|
172
|
-
if (
|
|
173
|
-
|
|
181
|
+
var _context$appHelper3, _context$appHelper3$g;
|
|
182
|
+
var _app2 = context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.utils) === null || _context$appHelper3 === void 0 || (_context$appHelper3$g = _context$appHelper3.getApp) === null || _context$appHelper3$g === void 0 ? void 0 : _context$appHelper3$g.call(_context$appHelper3);
|
|
183
|
+
if (_app2 && _app2.tasksManager) {
|
|
184
|
+
_app2.tasksManager.clearTasks({
|
|
174
185
|
module: 'scheduledTasks',
|
|
175
186
|
queueId: scheduledTaskQueueIdRef.current
|
|
176
187
|
});
|
|
@@ -181,7 +192,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
181
192
|
};
|
|
182
193
|
}, [scheduleTimePoints]);
|
|
183
194
|
var getScheduleTimePoints = useMemoizedFn( /*#__PURE__*/function () {
|
|
184
|
-
var
|
|
195
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
185
196
|
var scheduleTimePoints;
|
|
186
197
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
187
198
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -204,7 +215,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
204
215
|
}, _callee3);
|
|
205
216
|
}));
|
|
206
217
|
return function (_x3) {
|
|
207
|
-
return
|
|
218
|
+
return _ref5.apply(this, arguments);
|
|
208
219
|
};
|
|
209
220
|
}());
|
|
210
221
|
return {
|
|
@@ -73,7 +73,9 @@ export default {
|
|
|
73
73
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal Version Reminder',
|
|
74
74
|
'pisell2.ticket-booking.terminal-upgrade-description': 'Your Terminal version is outdated. Please upgrade Terminal to use all features.',
|
|
75
75
|
'pisell2.ticket-booking.terminal-upgrade-ok': 'I understand',
|
|
76
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel'
|
|
76
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel',
|
|
77
|
+
'pisell2.ticket-booking.collapse': 'Collapse',
|
|
78
|
+
'pisell2.ticket-booking.expand': 'Expand'
|
|
77
79
|
},
|
|
78
80
|
'zh-CN': {
|
|
79
81
|
'pisell2.ticket-booking.info': '信息',
|
|
@@ -149,7 +151,9 @@ export default {
|
|
|
149
151
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
|
|
150
152
|
'pisell2.ticket-booking.terminal-upgrade-description': '检测到您的Terminal版本较低,请升级Terminal以使用完整功能',
|
|
151
153
|
'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
|
|
152
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
154
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消',
|
|
155
|
+
'pisell2.ticket-booking.collapse': '收起',
|
|
156
|
+
'pisell2.ticket-booking.expand': '展开'
|
|
153
157
|
},
|
|
154
158
|
'zh-HK': {
|
|
155
159
|
'pisell2.ticket-booking.info': '資訊',
|
|
@@ -225,6 +229,8 @@ export default {
|
|
|
225
229
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
|
|
226
230
|
'pisell2.ticket-booking.terminal-upgrade-description': '檢測到您的Terminal版本較低,請升級Terminal以使用完整功能',
|
|
227
231
|
'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
|
|
228
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
232
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消',
|
|
233
|
+
'pisell2.ticket-booking.collapse': '收起',
|
|
234
|
+
'pisell2.ticket-booking.expand': '展開'
|
|
229
235
|
}
|
|
230
236
|
};
|
|
@@ -2,10 +2,14 @@ var _excluded = ["detail"];
|
|
|
2
2
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -162,21 +166,30 @@ export var addService = function addService(list, addItem, state) {
|
|
|
162
166
|
// 是否设置过 只追加到第一个中
|
|
163
167
|
var isSetCount = false;
|
|
164
168
|
value = list.map(function (item) {
|
|
169
|
+
var _item$_extend;
|
|
165
170
|
// 是否商品券折扣的商品
|
|
166
171
|
var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
|
|
167
172
|
return item.type === 'good_pass';
|
|
168
173
|
});
|
|
169
174
|
var isEdit = item === null || item === void 0 ? void 0 : item.edit;
|
|
170
|
-
|
|
171
|
-
|
|
175
|
+
// 子商品是否有商品券折扣的商品
|
|
176
|
+
var bundleDiscountList = [];
|
|
177
|
+
((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).forEach(function (item) {
|
|
178
|
+
bundleDiscountList.push.apply(bundleDiscountList, _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []));
|
|
179
|
+
});
|
|
180
|
+
var isGoodPassBundleProduct = bundleDiscountList.some(function (item) {
|
|
181
|
+
return item.type === 'good_pass';
|
|
182
|
+
});
|
|
183
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
|
|
184
|
+
var _item$_extend2, _addItem$_extend2, _item$_extend3;
|
|
172
185
|
isNotSame = false;
|
|
173
|
-
var _quantity = ((item === null || item === void 0 || (_item$
|
|
186
|
+
var _quantity = ((item === null || item === void 0 || (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend2 = addItem._extend) === null || _addItem$_extend2 === void 0 ? void 0 : _addItem$_extend2.quantity) || 1);
|
|
174
187
|
count = _quantity;
|
|
175
188
|
isSetCount = true;
|
|
176
189
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
177
190
|
_extend: _objectSpread(_objectSpread({}, item._extend), {}, {
|
|
178
191
|
quantity: _quantity,
|
|
179
|
-
other: _objectSpread(_objectSpread({}, ((_item$
|
|
192
|
+
other: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), {}, {
|
|
180
193
|
quantity: _quantity
|
|
181
194
|
})
|
|
182
195
|
})
|
|
@@ -253,11 +266,11 @@ export var getIsShowNumber = function getIsShowNumber(item, state) {
|
|
|
253
266
|
|
|
254
267
|
// 生成服务key
|
|
255
268
|
export var genServiceKey = function genServiceKey(item) {
|
|
256
|
-
var _item$
|
|
269
|
+
var _item$_extend4, _item$_extend5, _item$_extend6;
|
|
257
270
|
var product_id = item.product_id;
|
|
258
|
-
var durationKey = (_item$
|
|
259
|
-
var start_time = (_item$
|
|
260
|
-
var total = (_item$
|
|
271
|
+
var durationKey = (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.duration;
|
|
272
|
+
var start_time = (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.start_time;
|
|
273
|
+
var total = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.total;
|
|
261
274
|
var resourceKey = '';
|
|
262
275
|
Object.values(item._extend.resource || []).forEach(function (resources) {
|
|
263
276
|
resources.forEach(function (resource) {
|
|
@@ -362,17 +375,21 @@ export var getShopDiscountKey = function getShopDiscountKey(osKey) {
|
|
|
362
375
|
export var rulesHooks = {
|
|
363
376
|
// 获取商品关键信息
|
|
364
377
|
getProduct: function getProduct(product) {
|
|
378
|
+
var _product$_extend, _product$_extend2, _product$_extend3;
|
|
365
379
|
var detail = {
|
|
366
380
|
booking_id: product.booking_id,
|
|
367
381
|
id: product.id,
|
|
368
382
|
_id: product._id,
|
|
369
|
-
price: product.price,
|
|
383
|
+
price: product._extend.price,
|
|
370
384
|
total: product._extend.total,
|
|
371
385
|
discount_list: product.discount_list,
|
|
372
386
|
origin_total: product._extend.origin_total,
|
|
373
387
|
num: product._extend.quantity,
|
|
374
388
|
quantity: product._extend.quantity || 1,
|
|
375
|
-
vouchersApplicable: product.vouchersApplicable
|
|
389
|
+
vouchersApplicable: product.vouchersApplicable,
|
|
390
|
+
startDate: (_product$_extend = product._extend) === null || _product$_extend === void 0 ? void 0 : _product$_extend.startDate,
|
|
391
|
+
bundle: ((_product$_extend2 = product._extend) === null || _product$_extend2 === void 0 || (_product$_extend2 = _product$_extend2.other) === null || _product$_extend2 === void 0 ? void 0 : _product$_extend2.bundle) || [],
|
|
392
|
+
options: ((_product$_extend3 = product._extend) === null || _product$_extend3 === void 0 || (_product$_extend3 = _product$_extend3.other) === null || _product$_extend3 === void 0 ? void 0 : _product$_extend3.option) || []
|
|
376
393
|
};
|
|
377
394
|
return detail;
|
|
378
395
|
},
|
|
@@ -380,8 +397,14 @@ export var rulesHooks = {
|
|
|
380
397
|
var detail = _objectSpread(_objectSpread({}, product), {}, {
|
|
381
398
|
_id: values._id || product._id,
|
|
382
399
|
discount_list: values.discount_list,
|
|
383
|
-
_extend: _objectSpread(_objectSpread(_objectSpread({}, product._extend),
|
|
400
|
+
_extend: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, product._extend), {}, {
|
|
401
|
+
other: _objectSpread(_objectSpread({}, product._extend.other), 'bundle' in values ? {
|
|
402
|
+
bundle: values.bundle
|
|
403
|
+
} : {})
|
|
404
|
+
}, 'total' in values ? {
|
|
384
405
|
total: values.total
|
|
406
|
+
} : {}), 'main_product_selling_price' in values ? {
|
|
407
|
+
main_product_selling_price: values.main_product_selling_price
|
|
385
408
|
} : {}), 'quantity' in values ? {
|
|
386
409
|
quantity: values.quantity
|
|
387
410
|
} : {})
|
|
@@ -22,6 +22,7 @@ import localeTexts from "./locales";
|
|
|
22
22
|
import { getAssetList, getDetailApi } from "./serve";
|
|
23
23
|
import { request } from "./../../../utils";
|
|
24
24
|
import { WalletBar, FooterButtons, UsageRules } from "../components";
|
|
25
|
+
import { formatScheduleText } from "../utils";
|
|
25
26
|
import "./index.less";
|
|
26
27
|
var Text = Typography.Text;
|
|
27
28
|
|
|
@@ -54,7 +55,9 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
54
55
|
_detail$expire_date = detail.expire_date,
|
|
55
56
|
expire_date = _detail$expire_date === void 0 ? '' : _detail$expire_date,
|
|
56
57
|
_detail$product = detail.product,
|
|
57
|
-
product = _detail$product === void 0 ? {} : _detail$product
|
|
58
|
+
product = _detail$product === void 0 ? {} : _detail$product,
|
|
59
|
+
custom_schedule_snapshot = detail.custom_schedule_snapshot;
|
|
60
|
+
console.log(detail, 'detail22');
|
|
58
61
|
var _ref = product || {},
|
|
59
62
|
_ref$description = _ref.description,
|
|
60
63
|
description = _ref$description === void 0 ? '' : _ref$description,
|
|
@@ -298,7 +301,36 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
298
301
|
onGoogleClick();
|
|
299
302
|
}
|
|
300
303
|
};
|
|
304
|
+
var scheduleList = useMemo(function () {
|
|
305
|
+
return (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [];
|
|
306
|
+
}, [custom_schedule_snapshot]);
|
|
301
307
|
useEffect(function () {
|
|
308
|
+
var detail = formatScheduleText(scheduleList, 'zh-CN');
|
|
309
|
+
var expireText = expire_date ? expire_date : locales.getText('page.wallet.expireDate');
|
|
310
|
+
if (scheduleList.length > 0) {
|
|
311
|
+
// 换行展示
|
|
312
|
+
var validityTexts = "";
|
|
313
|
+
var excludedText = "";
|
|
314
|
+
var includedText = "";
|
|
315
|
+
detail.forEach(function (item) {
|
|
316
|
+
if (item.validityTexts.length > 0) {
|
|
317
|
+
validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
|
|
318
|
+
}
|
|
319
|
+
if (item.excluded_date.length > 0) {
|
|
320
|
+
excludedText = "".concat(excludedText).concat(item.excluded_date.join('\n'), "\n");
|
|
321
|
+
}
|
|
322
|
+
if (item.included_date.length > 0) {
|
|
323
|
+
includedText = "".concat(includedText).concat(item.included_date.join('\n'), "\n");
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
expireText = /*#__PURE__*/React.createElement("span", {
|
|
327
|
+
className: "wallet-detail-expire-text"
|
|
328
|
+
}, validityTexts, excludedText && /*#__PURE__*/React.createElement("div", {
|
|
329
|
+
className: "wallet-detail-expire-text-title"
|
|
330
|
+
}, locales.getText('page.wallet.notValidDate')), excludedText, includedText && /*#__PURE__*/React.createElement("div", {
|
|
331
|
+
className: "wallet-detail-expire-text-title"
|
|
332
|
+
}, locales.getText('page.wallet.includedDate')), includedText);
|
|
333
|
+
}
|
|
302
334
|
var data = [{
|
|
303
335
|
label: locales.getText('page.wallet.cardName'),
|
|
304
336
|
value: product_title
|
|
@@ -308,7 +340,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
308
340
|
isLink: false
|
|
309
341
|
}, {
|
|
310
342
|
label: locales.getText('page.wallet.validDate'),
|
|
311
|
-
value:
|
|
343
|
+
value: expireText
|
|
312
344
|
}];
|
|
313
345
|
//折扣卡显示折扣字段 其他显示余额字段
|
|
314
346
|
if (tag === 'product_discount_card') {
|
|
@@ -373,3 +373,14 @@
|
|
|
373
373
|
font-weight: 500;
|
|
374
374
|
line-height: 24px;
|
|
375
375
|
}
|
|
376
|
+
|
|
377
|
+
.wallet-detail-expire-text {
|
|
378
|
+
white-space: pre-wrap;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.wallet-detail-expire-text-title {
|
|
382
|
+
font-size: 14px;
|
|
383
|
+
font-weight: 500;
|
|
384
|
+
line-height: 20px;
|
|
385
|
+
color: #667085;
|
|
386
|
+
}
|
|
@@ -24,6 +24,10 @@ export default {
|
|
|
24
24
|
'page.wallet.addGoogle': 'Add to Google Wallet',
|
|
25
25
|
'page.wallet.viewDetails': 'See details',
|
|
26
26
|
'page.wallet.expireDate': 'Long term',
|
|
27
|
+
'page.wallet.notValidDate': 'Not valid on',
|
|
28
|
+
// 不可用日期
|
|
29
|
+
'page.wallet.includedDate': 'Included dates',
|
|
30
|
+
// 包含日期
|
|
27
31
|
'page.wallet.urlEmpty': 'Wallet link is empty',
|
|
28
32
|
'page.wallet.notIOS': 'Apple Wallet is not supported on non-iOS devices',
|
|
29
33
|
'page.wallet.addSuccess': 'Successfully added to wallet',
|
|
@@ -76,6 +80,10 @@ export default {
|
|
|
76
80
|
'page.wallet.addGoogle': '添加到谷歌钱包',
|
|
77
81
|
'page.wallet.viewDetails': '查看详情',
|
|
78
82
|
'page.wallet.expireDate': '长期',
|
|
83
|
+
'page.wallet.notValidDate': '不可用日期',
|
|
84
|
+
// 不可用日期
|
|
85
|
+
'page.wallet.includedDate': '包含日期',
|
|
86
|
+
// 包含日期
|
|
79
87
|
'page.wallet.urlEmpty': '钱包链接为空',
|
|
80
88
|
'page.wallet.notIOS': '非iOS设备不支持Apple Wallet',
|
|
81
89
|
'page.wallet.addSuccess': '已成功添加到钱包',
|
|
@@ -87,7 +95,7 @@ export default {
|
|
|
87
95
|
// Usage Rules
|
|
88
96
|
'page.wallet.usageRules': '使用规则',
|
|
89
97
|
'page.wallet.usageRulesSubtitle': '请仔细阅读以下使用条件',
|
|
90
|
-
'page.wallet.timeUsageLimits': '
|
|
98
|
+
'page.wallet.timeUsageLimits': '使用频次限制',
|
|
91
99
|
'page.wallet.totalQuantityControl': '总量控制',
|
|
92
100
|
'page.wallet.dailyLimit': '每日限制:',
|
|
93
101
|
'page.wallet.weeklyLimit': '每周限制:',
|
|
@@ -128,6 +136,10 @@ export default {
|
|
|
128
136
|
'page.wallet.addGoogle': '添加到谷歌錢包',
|
|
129
137
|
'page.wallet.viewDetails': '查看詳情',
|
|
130
138
|
'page.wallet.expireDate': '長期',
|
|
139
|
+
'page.wallet.notValidDate': '不可用日期',
|
|
140
|
+
// 不可用日期
|
|
141
|
+
'page.wallet.includedDate': '包含日期',
|
|
142
|
+
// 包含日期
|
|
131
143
|
'page.wallet.urlEmpty': '錢包連結為空',
|
|
132
144
|
'page.wallet.notIOS': '非iOS設備不支持Apple Wallet',
|
|
133
145
|
'page.wallet.addSuccess': '已成功添加到錢包',
|
|
@@ -139,7 +151,7 @@ export default {
|
|
|
139
151
|
// Usage Rules
|
|
140
152
|
'page.wallet.usageRules': '使用規則',
|
|
141
153
|
'page.wallet.usageRulesSubtitle': '請仔細閱讀以下使用條件',
|
|
142
|
-
'page.wallet.timeUsageLimits': '
|
|
154
|
+
'page.wallet.timeUsageLimits': '使用頻次限制',
|
|
143
155
|
'page.wallet.totalQuantityControl': '總量控制',
|
|
144
156
|
'page.wallet.dailyLimit': '每日限制:',
|
|
145
157
|
'page.wallet.weeklyLimit': '每週限制:',
|