@pisell/private-materials 6.6.82 → 6.6.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +1 -2
- package/es/components/Sales/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -2
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +2 -3
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -2
- package/es/components/appointmentBooking/context.d.ts +2 -2
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -2
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
- package/es/components/appointmentBooking/index.d.ts +1 -2
- package/es/components/booking/components/TabProduct/index.d.ts +1 -2
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -2
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -2
- package/es/components/booking/components/authWrap/index.d.ts +1 -1
- package/es/components/booking/components/browserSelect/index.d.ts +1 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -2
- package/es/components/booking/components/drawer/index.d.ts +1 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -2
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -2
- package/es/components/booking/components/footer/amount.js +3 -4
- package/es/components/booking/components/footer/index.d.ts +1 -2
- package/es/components/booking/components/footer/index.js +20 -34
- package/es/components/booking/components/footer/utils.js +4 -10
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -2
- package/es/components/booking/components/menuButton/index.d.ts +1 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -2
- package/es/components/booking/components/voucher/index.d.ts +1 -2
- package/es/components/booking/components/voucher/index.js +1 -1
- package/es/components/booking/deposit/ClientItem/index.d.ts +1 -1
- package/es/components/booking/deposit/DepositItem/index.d.ts +1 -1
- package/es/components/booking/deposit/index.d.ts +1 -2
- package/es/components/booking/forms/footer.d.ts +1 -2
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -2
- package/es/components/booking/forms/table/index.d.ts +1 -2
- package/es/components/booking/hooks/useClearCart.d.ts +1 -2
- package/es/components/booking/hooks/useClearCart.js +6 -16
- package/es/components/booking/hooks/useQuotation.d.ts +1 -2
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -2
- package/es/components/booking/info/client/index.d.ts +1 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -2
- package/es/components/booking/info/date/index.d.ts +1 -2
- package/es/components/booking/info/dateRange/index.d.ts +1 -2
- package/es/components/booking/info/header/index.d.ts +1 -2
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +2 -2
- package/es/components/booking/info/index.d.ts +1 -2
- package/es/components/booking/info/notes/index.d.ts +1 -2
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/service/Lists.d.ts +1 -2
- package/es/components/booking/info/service/Lists.js +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +1 -2
- package/es/components/booking/info/service/addService/index.d.ts +1 -2
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -2
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -2
- package/es/components/booking/info/service/index.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -2
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -2
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -2
- package/es/components/booking/info/service2/Lists.d.ts +1 -2
- package/es/components/booking/info/service2/Lists.js +0 -1
- package/es/components/booking/info/service2/index.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -2
- package/es/components/booking/info2/service/addService/index.d.ts +1 -2
- package/es/components/booking/info2/service/addService/index.js +8 -21
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -2
- package/es/components/booking/info2/service/editService/index.js +27 -93
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -1
- package/es/components/booking/info2/service/editService/utils.js +0 -16
- package/es/components/booking/info2/service/index.d.ts +1 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -2
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -2
- package/es/components/booking/materiels/contacts/index.d.ts +1 -2
- package/es/components/booking/materiels/duration/index.d.ts +1 -2
- package/es/components/booking/materiels/holder/index.d.ts +1 -2
- package/es/components/booking/materiels/startTime/index.d.ts +1 -2
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -2
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -2
- package/es/components/booking/notes/addNote/index.d.ts +1 -2
- package/es/components/booking/payments/index.js +1 -1
- package/es/components/checkout/PaymentPlugin.d.ts +1 -2
- package/es/components/checkout/components/AdditionalModule/index.d.ts +2 -2
- package/es/components/checkout/components/AmountSummary/index.d.ts +2 -2
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +2 -2
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -2
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -2
- package/es/components/checkout/components/SendPaymentLinkModal/index.d.ts +2 -2
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +2 -3
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -2
- package/es/components/checkout/hooks/useWalletPass.d.ts +15 -15
- package/es/components/eftpos/SettlementModal/Action.d.ts +1 -2
- package/es/components/eftpos/SettlementModal/index.d.ts +1 -2
- package/es/components/eftpos/device.d.ts +1 -1
- package/es/components/eftpos/deviceList/index.d.ts +1 -2
- package/es/components/eftpos/form/index.d.ts +1 -2
- package/es/components/eftpos/group/index.d.ts +2 -3
- package/es/components/eftpos/icon/apiKey.d.ts +1 -2
- package/es/components/eftpos/icon/device.d.ts +1 -2
- package/es/components/eftpos/index.d.ts +1 -2
- package/es/components/eftpos/log.d.ts +2 -2
- package/es/components/eftpos/pos.d.ts +1 -2
- package/es/components/eftpos/receipt/index.d.ts +1 -2
- package/es/components/eftpos/surcharge/index.d.ts +1 -2
- package/es/components/eftposPay/amount.d.ts +2 -3
- package/es/components/eftposPay/app.d.ts +1 -2
- package/es/components/eftposPay/component/alert/index.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -2
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -2
- package/es/components/eftposPay/component/fail/index.d.ts +1 -2
- package/es/components/eftposPay/component/fail/network.d.ts +1 -2
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -2
- package/es/components/eftposPay/component/header/index.d.ts +1 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -2
- package/es/components/eftposPay/component/manual/index.d.ts +1 -2
- package/es/components/eftposPay/component/signature/index.d.ts +1 -2
- package/es/components/eftposPay/component/step/index.d.ts +1 -2
- package/es/components/eftposPay/component/step/step.d.ts +1 -2
- package/es/components/eftposPay/device.d.ts +3 -3
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/huifu/Action.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -2
- package/es/components/eftposPay/linkly/index.d.ts +1 -2
- package/es/components/eftposPay/mx51/Action.d.ts +1 -2
- package/es/components/eftposPay/pay.d.ts +1 -2
- package/es/components/eftposPay/payo/config.d.ts +2 -3
- package/es/components/eftposPay/payo/index.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +7 -7
- package/es/components/eftposPay/tip.d.ts +1 -2
- package/es/components/eftposPay/tyro/index.d.ts +1 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +2 -3
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -2
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -2
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -2
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -2
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -2
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -2
- package/es/components/eventBooking/index.d.ts +1 -2
- package/es/components/login/index.d.ts +1 -2
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -2
- package/es/components/pay/toB/components/Card/index.d.ts +1 -2
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -2
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -2
- package/es/components/pay/toB/components/Content/Footer.d.ts +1 -2
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -2
- package/es/components/pay/toB/store/provider.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +1 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -2
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -2
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -2
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -2
- package/es/components/productExtension/index.d.ts +1 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -2
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +2 -3
- package/es/components/productSelect/index.d.ts +1 -1
- package/es/components/ruleSetting/index.d.ts +1 -2
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -2
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -2
- package/es/components/schedules/calendar/index.d.ts +1 -2
- package/es/components/schedules/components/Card/index.d.ts +1 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -2
- package/es/components/schedules/components/ResourceList/index.d.ts +1 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -2
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -2
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -2
- package/es/components/schedules/components/Search/index.d.ts +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -2
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -2
- package/es/components/schedules/products/index.d.ts +1 -2
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -2
- package/es/components/schedules/products/list/index.d.ts +1 -2
- package/es/components/schedules/resources/index.d.ts +1 -2
- package/es/components/schedules/resources/list/index.d.ts +1 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -2
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -2
- package/es/components/schedules/schedules/Schedules.d.ts +1 -1
- package/es/components/schedules/schedules/SchedulesForDay/index.d.ts +1 -1
- package/es/components/schedules/schedules/index.d.ts +1 -2
- package/es/components/shoppingCart/Provider.d.ts +1 -1
- package/es/components/shoppingCart/Provider.js +1 -4
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -2
- package/es/components/shoppingCart/components/Cart/Product.js +0 -18
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -2
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -2
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -2
- package/es/components/shoppingCart/index.d.ts +1 -2
- package/es/components/shoppingCart/type.d.ts +0 -1
- package/es/components/subTotal/index.d.ts +1 -1
- package/es/components/tabProduct/index.d.ts +1 -1
- package/es/components/taxSelect/index.d.ts +1 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -2
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +1 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -2
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -2
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +9 -9
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +3 -3
- package/es/components/ticketBooking/index.d.ts +1 -2
- package/es/components/ticketBooking/miniRedux.d.ts +1 -1
- package/es/components/walletList/index.d.ts +1 -2
- package/es/components/walletList/model.d.ts +1 -1
- package/es/components/walletList/tempHolderSelector/index.d.ts +2 -2
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -2
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -2
- package/es/hooks/usePaymentLogger.d.ts +2 -2
- package/es/plus/clientName/index.d.ts +1 -2
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -2
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -2
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -2
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
- package/es/plus/noteModal/AddTempModal.d.ts +1 -2
- package/es/plus/pisellAdyenDashboard/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -2
- 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 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +5 -6
- package/es/plus/productSelect/ProductCard/index.d.ts +2 -2
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -6
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/es/plus/productSelect/index.d.ts +1 -1
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -2
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -2
- package/es/plus/saasCreateOrganization/index.d.ts +1 -2
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -2
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -2
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -2
- package/es/plus/saasRegister/components/Header.d.ts +1 -2
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -2
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -2
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -2
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -2
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -2
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -2
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +1 -1
- package/es/plus/walletPassGallery/index.d.ts +1 -2
- package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +2 -9
- package/es/pro/Login2.0/components/LoginCodeInput.d.ts +2 -6
- package/es/pro/Login2.0/components/PhoneInput.d.ts +1 -1
- package/es/pro/Login2.0/steps/CodeInput.d.ts +2 -6
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +2 -6
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +2 -5
- package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +2 -5
- package/es/pro/Login2.0/steps/SetPassword.d.ts +2 -5
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +2 -5
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +2 -5
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +2 -5
- package/es/pro/keyboards/numberKeyboard/index.d.ts +1 -1
- package/es/pro/numberKeyboard/index.d.ts +1 -1
- package/es/pro/pisellPaymentList/example.d.ts +10 -11
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +1 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -2
- package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +2 -2
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -2
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -2
- package/lib/businessModel/SalesModel/index.d.ts +1 -2
- package/lib/components/Sales/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +2 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -2
- package/lib/components/appointmentBooking/context.d.ts +2 -2
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -2
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -2
- package/lib/components/appointmentBooking/index.d.ts +1 -2
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -2
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -2
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -2
- package/lib/components/booking/components/authWrap/index.d.ts +1 -1
- package/lib/components/booking/components/browserSelect/index.d.ts +1 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -2
- package/lib/components/booking/components/drawer/index.d.ts +1 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -2
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -2
- package/lib/components/booking/components/footer/amount.js +3 -3
- package/lib/components/booking/components/footer/index.d.ts +1 -2
- package/lib/components/booking/components/footer/index.js +0 -19
- package/lib/components/booking/components/footer/utils.js +5 -12
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -2
- package/lib/components/booking/components/menuButton/index.d.ts +1 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -2
- package/lib/components/booking/components/voucher/index.d.ts +1 -2
- package/lib/components/booking/components/voucher/index.js +1 -1
- package/lib/components/booking/deposit/ClientItem/index.d.ts +1 -1
- package/lib/components/booking/deposit/DepositItem/index.d.ts +1 -1
- package/lib/components/booking/deposit/index.d.ts +1 -2
- package/lib/components/booking/forms/footer.d.ts +1 -2
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -2
- package/lib/components/booking/forms/table/index.d.ts +1 -2
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -2
- package/lib/components/booking/hooks/useClearCart.js +5 -19
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -2
- package/lib/components/booking/info/client/index.d.ts +1 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -2
- package/lib/components/booking/info/date/index.d.ts +1 -2
- package/lib/components/booking/info/dateRange/index.d.ts +1 -2
- package/lib/components/booking/info/header/index.d.ts +1 -2
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +2 -2
- package/lib/components/booking/info/index.d.ts +1 -2
- package/lib/components/booking/info/notes/index.d.ts +1 -2
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.d.ts +1 -2
- package/lib/components/booking/info/service/Lists.js +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +1 -2
- package/lib/components/booking/info/service/addService/index.d.ts +1 -2
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -2
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -2
- package/lib/components/booking/info/service/index.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -2
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -2
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -2
- package/lib/components/booking/info/service2/Lists.d.ts +1 -2
- package/lib/components/booking/info/service2/Lists.js +0 -1
- package/lib/components/booking/info/service2/index.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -2
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -2
- package/lib/components/booking/info2/service/addService/index.js +9 -27
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -2
- package/lib/components/booking/info2/service/editService/index.js +29 -92
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/utils.js +0 -16
- package/lib/components/booking/info2/service/index.d.ts +1 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -2
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -2
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -2
- package/lib/components/booking/materiels/duration/index.d.ts +1 -2
- package/lib/components/booking/materiels/holder/index.d.ts +1 -2
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -2
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -2
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -2
- package/lib/components/booking/notes/addNote/index.d.ts +1 -2
- package/lib/components/booking/payments/index.js +1 -1
- package/lib/components/checkout/PaymentPlugin.d.ts +1 -2
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +2 -2
- package/lib/components/checkout/components/AmountSummary/index.d.ts +2 -2
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +2 -2
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -2
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -2
- package/lib/components/checkout/components/SendPaymentLinkModal/index.d.ts +2 -2
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +2 -3
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +15 -15
- package/lib/components/eftpos/SettlementModal/Action.d.ts +1 -2
- package/lib/components/eftpos/SettlementModal/index.d.ts +1 -2
- package/lib/components/eftpos/device.d.ts +1 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -2
- package/lib/components/eftpos/form/index.d.ts +1 -2
- package/lib/components/eftpos/group/index.d.ts +2 -3
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -2
- package/lib/components/eftpos/icon/device.d.ts +1 -2
- package/lib/components/eftpos/index.d.ts +1 -2
- package/lib/components/eftpos/log.d.ts +2 -2
- package/lib/components/eftpos/pos.d.ts +1 -2
- package/lib/components/eftpos/receipt/index.d.ts +1 -2
- package/lib/components/eftpos/surcharge/index.d.ts +1 -2
- package/lib/components/eftposPay/amount.d.ts +2 -3
- package/lib/components/eftposPay/app.d.ts +1 -2
- package/lib/components/eftposPay/component/alert/index.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -2
- package/lib/components/eftposPay/component/header/index.d.ts +1 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -2
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -2
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -2
- package/lib/components/eftposPay/component/step/index.d.ts +1 -2
- package/lib/components/eftposPay/component/step/step.d.ts +1 -2
- package/lib/components/eftposPay/device.d.ts +3 -3
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/huifu/Action.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -2
- package/lib/components/eftposPay/linkly/index.d.ts +1 -2
- package/lib/components/eftposPay/mx51/Action.d.ts +1 -2
- package/lib/components/eftposPay/pay.d.ts +1 -2
- package/lib/components/eftposPay/payo/config.d.ts +2 -3
- package/lib/components/eftposPay/payo/index.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +7 -7
- package/lib/components/eftposPay/tip.d.ts +1 -2
- package/lib/components/eftposPay/tyro/index.d.ts +1 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +2 -3
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -2
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -2
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -2
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -2
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -2
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -2
- package/lib/components/eventBooking/index.d.ts +1 -2
- package/lib/components/login/index.d.ts +1 -2
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -2
- package/lib/components/pay/toB/components/Card/index.d.ts +1 -2
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -2
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -2
- package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -2
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -2
- package/lib/components/pay/toB/store/provider.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +1 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -2
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -2
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -2
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -2
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -2
- package/lib/components/productExtension/index.d.ts +1 -2
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -2
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +2 -3
- package/lib/components/productSelect/index.d.ts +1 -1
- package/lib/components/ruleSetting/index.d.ts +1 -2
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -2
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -2
- package/lib/components/schedules/calendar/index.d.ts +1 -2
- package/lib/components/schedules/components/Card/index.d.ts +1 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -2
- package/lib/components/schedules/components/ResourceList/index.d.ts +1 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -2
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -2
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -2
- package/lib/components/schedules/components/Search/index.d.ts +1 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -2
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -2
- package/lib/components/schedules/products/index.d.ts +1 -2
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -2
- package/lib/components/schedules/products/list/index.d.ts +1 -2
- package/lib/components/schedules/resources/index.d.ts +1 -2
- package/lib/components/schedules/resources/list/index.d.ts +1 -2
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -2
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -2
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -2
- package/lib/components/schedules/schedules/Schedules.d.ts +1 -1
- package/lib/components/schedules/schedules/SchedulesForDay/index.d.ts +1 -1
- package/lib/components/schedules/schedules/index.d.ts +1 -2
- package/lib/components/shoppingCart/Provider.d.ts +1 -1
- package/lib/components/shoppingCart/Provider.js +0 -4
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -2
- package/lib/components/shoppingCart/components/Cart/Product.js +0 -30
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -2
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -2
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -2
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -2
- package/lib/components/shoppingCart/index.d.ts +1 -2
- package/lib/components/shoppingCart/type.d.ts +0 -1
- package/lib/components/subTotal/index.d.ts +1 -1
- package/lib/components/tabProduct/index.d.ts +1 -1
- package/lib/components/taxSelect/index.d.ts +1 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -2
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +1 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -2
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -2
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +9 -9
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +3 -3
- package/lib/components/ticketBooking/index.d.ts +1 -2
- package/lib/components/ticketBooking/miniRedux.d.ts +1 -1
- package/lib/components/walletList/index.d.ts +1 -2
- package/lib/components/walletList/model.d.ts +1 -1
- package/lib/components/walletList/tempHolderSelector/index.d.ts +2 -2
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -2
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -2
- package/lib/hooks/usePaymentLogger.d.ts +2 -2
- package/lib/plus/clientName/index.d.ts +1 -2
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -2
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -2
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -2
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
- package/lib/plus/noteModal/AddTempModal.d.ts +1 -2
- package/lib/plus/pisellAdyenDashboard/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -2
- 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 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +5 -6
- package/lib/plus/productSelect/ProductCard/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -6
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/lib/plus/productSelect/index.d.ts +1 -1
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -2
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -2
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -2
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -2
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -2
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -2
- package/lib/plus/saasRegister/components/Header.d.ts +1 -2
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -2
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -2
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -2
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -2
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -2
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -2
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/index.d.ts +1 -2
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +2 -9
- package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +2 -6
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +1 -1
- package/lib/pro/Login2.0/steps/CodeInput.d.ts +2 -6
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +2 -6
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +2 -5
- package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +2 -5
- package/lib/pro/Login2.0/steps/SetPassword.d.ts +2 -5
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +2 -5
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +2 -5
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +2 -5
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +1 -1
- package/lib/pro/numberKeyboard/index.d.ts +1 -1
- package/lib/pro/pisellPaymentList/example.d.ts +10 -11
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +1 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -2
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +2 -2
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -2
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -2
- package/package.json +2 -2
- package/es/components/booking/utils/productChangeLog.d.ts +0 -27
- package/es/components/booking/utils/productChangeLog.js +0 -126
- package/lib/components/booking/utils/productChangeLog.d.ts +0 -27
- package/lib/components/booking/utils/productChangeLog.js +0 -135
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* 等待邮件链接验证页面(对应图1)
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
1
|
+
/// <reference types="react" />
|
|
5
2
|
import type { RegisterFlowData, VerificationMethod } from '../shared/registerFlow';
|
|
6
3
|
export interface WaitEmailLinkProps {
|
|
7
4
|
/** 流程数据 */
|
|
@@ -17,5 +14,5 @@ export interface WaitEmailLinkProps {
|
|
|
17
14
|
/** 验证方式 */
|
|
18
15
|
verificationMethod?: VerificationMethod;
|
|
19
16
|
}
|
|
20
|
-
declare function WaitEmailLink({ flowData, onResend, onBack, onEditEmail, countdown, verificationMethod, }: WaitEmailLinkProps):
|
|
17
|
+
declare function WaitEmailLink({ flowData, onResend, onBack, onEditEmail, countdown, verificationMethod, }: WaitEmailLinkProps): JSX.Element;
|
|
21
18
|
export default WaitEmailLink;
|
|
@@ -10,7 +10,7 @@ declare const NumberKeyboardBase: React.FC<NumberKeyboardBaseProps>;
|
|
|
10
10
|
* NumberKeyboard - 数字输入键盘
|
|
11
11
|
* 支持基础形式展示、popover 形态或 modal 形态
|
|
12
12
|
*/
|
|
13
|
-
declare const NumberKeyboard: (props: NumberKeyboardProps) =>
|
|
13
|
+
declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element | null;
|
|
14
14
|
export default NumberKeyboard;
|
|
15
15
|
export { NumberKeyboardBase };
|
|
16
16
|
export type { NumberKeyboardProps, NumberKeyboardBaseProps, NumberKeyboardMode, } from './types';
|
|
@@ -24,5 +24,5 @@ interface NumberKeyboardProps {
|
|
|
24
24
|
/** 输入框的样式 */
|
|
25
25
|
inputStyle?: React.CSSProperties;
|
|
26
26
|
}
|
|
27
|
-
declare const NumberKeyboard: (props: NumberKeyboardProps) =>
|
|
27
|
+
declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element;
|
|
28
28
|
export default NumberKeyboard;
|
|
@@ -4,17 +4,16 @@
|
|
|
4
4
|
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
5
|
* 包括如何通过 Context 访问父组件配置
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const FullFeatureExample: () => React.JSX.Element;
|
|
7
|
+
export declare const BasicExample: () => JSX.Element;
|
|
8
|
+
export declare const ChildrenExample: () => JSX.Element;
|
|
9
|
+
export declare const CustomItemExample: () => JSX.Element;
|
|
10
|
+
export declare const MethodConfigExample: () => JSX.Element;
|
|
11
|
+
export declare const FullFeatureExample: () => JSX.Element;
|
|
13
12
|
declare const _default: {
|
|
14
|
-
BasicExample: () =>
|
|
15
|
-
ChildrenExample: () =>
|
|
16
|
-
CustomItemExample: () =>
|
|
17
|
-
MethodConfigExample: () =>
|
|
18
|
-
FullFeatureExample: () =>
|
|
13
|
+
BasicExample: () => JSX.Element;
|
|
14
|
+
ChildrenExample: () => JSX.Element;
|
|
15
|
+
CustomItemExample: () => JSX.Element;
|
|
16
|
+
MethodConfigExample: () => JSX.Element;
|
|
17
|
+
FullFeatureExample: () => JSX.Element;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { PopoverProps } from 'antd';
|
|
3
2
|
import './index.less';
|
|
4
3
|
interface PisellPhoneKeyboardProps {
|
|
@@ -9,5 +8,5 @@ interface PisellPhoneKeyboardProps {
|
|
|
9
8
|
keyboardProps?: any;
|
|
10
9
|
virtualKeyInputProps?: any;
|
|
11
10
|
}
|
|
12
|
-
declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) =>
|
|
11
|
+
declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
|
|
13
12
|
export default PisellPhoneKeyboard;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { CashKeyboardBaseProps } from './types';
|
|
3
2
|
import './index.less';
|
|
4
|
-
declare const CashKeyboardIntact: (props: CashKeyboardBaseProps) =>
|
|
3
|
+
declare const CashKeyboardIntact: (props: CashKeyboardBaseProps) => JSX.Element;
|
|
5
4
|
export default CashKeyboardIntact;
|
|
@@ -9,5 +9,5 @@ export interface CashKeyboardSimpleProps extends CashKeyboardBaseProps {
|
|
|
9
9
|
};
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
declare const CashKeyboardSimple: (props: CashKeyboardSimpleProps) =>
|
|
12
|
+
declare const CashKeyboardSimple: (props: CashKeyboardSimpleProps) => JSX.Element | null;
|
|
13
13
|
export default CashKeyboardSimple;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { CashKeyboardBaseProps } from './types';
|
|
3
2
|
export interface CashKeyboardProps extends CashKeyboardBaseProps {
|
|
4
3
|
containerProps?: {
|
|
@@ -9,5 +8,5 @@ export interface CashKeyboardProps extends CashKeyboardBaseProps {
|
|
|
9
8
|
variant?: 'intact' | 'simple';
|
|
10
9
|
shortcutsSize?: 'default' | 'large';
|
|
11
10
|
}
|
|
12
|
-
declare const CashKeyboard: (props: CashKeyboardProps) =>
|
|
11
|
+
declare const CashKeyboard: (props: CashKeyboardProps) => JSX.Element;
|
|
13
12
|
export default CashKeyboard;
|
|
@@ -10,8 +10,8 @@ export interface DiscountKeyboardProps extends DiscountKeyboardBaseProps {
|
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
12
|
declare const DiscountKeyboard: {
|
|
13
|
-
(props: DiscountKeyboardProps):
|
|
14
|
-
InputNumber: (props: DiscountKeyboardInputNumberProps) =>
|
|
13
|
+
(props: DiscountKeyboardProps): JSX.Element | null;
|
|
14
|
+
InputNumber: (props: DiscountKeyboardInputNumberProps) => JSX.Element;
|
|
15
15
|
};
|
|
16
16
|
interface DiscountKeyboardInputNumberProps {
|
|
17
17
|
value?: number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { PaymentKeyboardBaseProps } from './types';
|
|
3
2
|
import './index.less';
|
|
4
3
|
interface PaymentKeyboardProps extends PaymentKeyboardBaseProps {
|
|
@@ -8,5 +7,5 @@ interface PaymentKeyboardProps extends PaymentKeyboardBaseProps {
|
|
|
8
7
|
[key: string]: any;
|
|
9
8
|
};
|
|
10
9
|
}
|
|
11
|
-
export declare const PaymentKeyboard: (props: PaymentKeyboardProps) =>
|
|
10
|
+
export declare const PaymentKeyboard: (props: PaymentKeyboardProps) => JSX.Element | null;
|
|
12
11
|
export default PaymentKeyboard;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const useRightItems: (props: {
|
|
3
2
|
rightItemsStyle?: any;
|
|
4
3
|
doneText?: string;
|
|
5
4
|
resetText?: string;
|
|
6
5
|
}) => ({
|
|
7
6
|
value: string;
|
|
8
|
-
label:
|
|
7
|
+
label: JSX.Element;
|
|
9
8
|
disabled: boolean;
|
|
10
9
|
type: string;
|
|
11
10
|
style: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.83",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@react-spring/web": "^9.6.1",
|
|
65
65
|
"@use-gesture/react": "^10.3.1",
|
|
66
66
|
"@pisell/utils": "3.0.2",
|
|
67
|
-
"@pisell/materials": "6.6.
|
|
67
|
+
"@pisell/materials": "6.6.20",
|
|
68
68
|
"@pisell/date-picker": "3.0.7",
|
|
69
69
|
"@pisell/icon": "0.0.11"
|
|
70
70
|
},
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const isProductChangeDebugShop: (shopId: unknown) => boolean;
|
|
2
|
-
export declare const getCurrentServiceProductData: (products: any[]) => {
|
|
3
|
-
id: any;
|
|
4
|
-
order_detail_id: any;
|
|
5
|
-
booking_id: any;
|
|
6
|
-
title: any;
|
|
7
|
-
quantity: any;
|
|
8
|
-
product_variant_id: any;
|
|
9
|
-
unique_identification_number: any;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const getOriginalOrderProductData: (bookingDetail: any) => {
|
|
12
|
-
bookings: any;
|
|
13
|
-
booking_relation_products: any;
|
|
14
|
-
relation_products: any;
|
|
15
|
-
};
|
|
16
|
-
export declare const getSubmittedOrderProductData: (values: any) => {
|
|
17
|
-
bookings: any;
|
|
18
|
-
booking_relation_products: any;
|
|
19
|
-
relation_products: any;
|
|
20
|
-
};
|
|
21
|
-
export declare const useProductChangeDebugLog: (orderId?: unknown) => ({ title, content, }: {
|
|
22
|
-
title: string;
|
|
23
|
-
content?: {
|
|
24
|
-
key: string;
|
|
25
|
-
value: unknown;
|
|
26
|
-
}[] | undefined;
|
|
27
|
-
}) => void;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
-
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."); }
|
|
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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
-
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
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
10
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
11
|
-
import { useCallback } from 'react';
|
|
12
|
-
import dayjs from 'dayjs';
|
|
13
|
-
import { sendWarningLog } from '@pisell/utils';
|
|
14
|
-
import useEngineContext from "../../../hooks/useEngineContext";
|
|
15
|
-
var DEBUG_SHOP_ID = '9179';
|
|
16
|
-
export var isProductChangeDebugShop = function isProductChangeDebugShop(shopId) {
|
|
17
|
-
return String(shopId !== null && shopId !== void 0 ? shopId : '') === DEBUG_SHOP_ID;
|
|
18
|
-
};
|
|
19
|
-
var getProductChangeDebugShopId = function getProductChangeDebugShopId(context, state) {
|
|
20
|
-
var _ref, _ref2, _ref3, _context$appHelper$ut, _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g, _state$bookingDetail;
|
|
21
|
-
return (_ref = (_ref2 = (_ref3 = (_context$appHelper$ut = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getData) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper, 'shop_id')) !== null && _context$appHelper$ut !== void 0 ? _context$appHelper$ut : 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 = _context$appHelper2.store) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getState) === null || _context$appHelper2$g === void 0 || (_context$appHelper2$g = _context$appHelper2$g.call(_context$appHelper2)) === null || _context$appHelper2$g === void 0 || (_context$appHelper2$g = _context$appHelper2$g.global) === null || _context$appHelper2$g === void 0 || (_context$appHelper2$g = _context$appHelper2$g.globalConfig) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.id) !== null && _ref3 !== void 0 ? _ref3 : state === null || state === void 0 ? void 0 : state.shopId) !== null && _ref2 !== void 0 ? _ref2 : state === null || state === void 0 ? void 0 : state.shop_id) !== null && _ref !== void 0 ? _ref : state === null || state === void 0 || (_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.shop_id;
|
|
22
|
-
};
|
|
23
|
-
var getProductTitle = function getProductTitle(data) {
|
|
24
|
-
var _ref4, _ref5, _ref6, _ref7, _data$title, _data$_extend, _data$detail, _data$order_detail, _ref8, _ref9, _title$original;
|
|
25
|
-
var title = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_data$title = data === null || data === void 0 ? void 0 : data.title) !== null && _data$title !== void 0 ? _data$title : data === null || data === void 0 ? void 0 : data.product_title) !== null && _ref7 !== void 0 ? _ref7 : data === null || data === void 0 ? void 0 : data.product_name) !== null && _ref6 !== void 0 ? _ref6 : data === null || data === void 0 || (_data$_extend = data._extend) === null || _data$_extend === void 0 ? void 0 : _data$_extend.product_name) !== null && _ref5 !== void 0 ? _ref5 : data === null || data === void 0 || (_data$detail = data.detail) === null || _data$detail === void 0 ? void 0 : _data$detail.product_title) !== null && _ref4 !== void 0 ? _ref4 : data === null || data === void 0 || (_data$order_detail = data.order_detail) === null || _data$order_detail === void 0 ? void 0 : _data$order_detail.product_title;
|
|
26
|
-
if (!title || typeof title === 'string') return title;
|
|
27
|
-
return (_ref8 = (_ref9 = (_title$original = title.original) !== null && _title$original !== void 0 ? _title$original : title.auto) !== null && _ref9 !== void 0 ? _ref9 : title['zh-CN']) !== null && _ref8 !== void 0 ? _ref8 : title.en;
|
|
28
|
-
};
|
|
29
|
-
var getProductData = function getProductData(data) {
|
|
30
|
-
var _ref10, _ref11, _data$product_id, _data$detail2, _data$order_detail2, _ref12, _ref13, _ref14, _data$order_detail_id, _data$_extend2, _data$detail3, _data$order_detail3, _data$order_detail4, _data$booking_id, _data$_extend3, _ref15, _ref16, _ref17, _data$quantity, _data$_extend4, _data$detail4, _data$order_detail5, _ref18, _ref19, _data$product_variant, _data$_extend5, _data$detail5, _data$order_detail6, _ref20, _ref21, _data$metadata$unique, _data$metadata, _data$_extend6, _data$detail6, _data$order_detail7;
|
|
31
|
-
return {
|
|
32
|
-
id: (_ref10 = (_ref11 = (_data$product_id = data === null || data === void 0 ? void 0 : data.product_id) !== null && _data$product_id !== void 0 ? _data$product_id : data === null || data === void 0 || (_data$detail2 = data.detail) === null || _data$detail2 === void 0 ? void 0 : _data$detail2.product_id) !== null && _ref11 !== void 0 ? _ref11 : data === null || data === void 0 || (_data$order_detail2 = data.order_detail) === null || _data$order_detail2 === void 0 ? void 0 : _data$order_detail2.product_id) !== null && _ref10 !== void 0 ? _ref10 : data === null || data === void 0 ? void 0 : data.id,
|
|
33
|
-
order_detail_id: (_ref12 = (_ref13 = (_ref14 = (_data$order_detail_id = data === null || data === void 0 ? void 0 : data.order_detail_id) !== null && _data$order_detail_id !== void 0 ? _data$order_detail_id : data === null || data === void 0 || (_data$_extend2 = data._extend) === null || _data$_extend2 === void 0 ? void 0 : _data$_extend2.order_detail_id) !== null && _ref14 !== void 0 ? _ref14 : data === null || data === void 0 || (_data$detail3 = data.detail) === null || _data$detail3 === void 0 ? void 0 : _data$detail3.order_detail_id) !== null && _ref13 !== void 0 ? _ref13 : data === null || data === void 0 || (_data$order_detail3 = data.order_detail) === null || _data$order_detail3 === void 0 ? void 0 : _data$order_detail3.order_detail_id) !== null && _ref12 !== void 0 ? _ref12 : data === null || data === void 0 || (_data$order_detail4 = data.order_detail) === null || _data$order_detail4 === void 0 ? void 0 : _data$order_detail4.id,
|
|
34
|
-
booking_id: (_data$booking_id = data === null || data === void 0 ? void 0 : data.booking_id) !== null && _data$booking_id !== void 0 ? _data$booking_id : data === null || data === void 0 || (_data$_extend3 = data._extend) === null || _data$_extend3 === void 0 ? void 0 : _data$_extend3.id,
|
|
35
|
-
title: getProductTitle(data),
|
|
36
|
-
quantity: (_ref15 = (_ref16 = (_ref17 = (_data$quantity = data === null || data === void 0 ? void 0 : data.quantity) !== null && _data$quantity !== void 0 ? _data$quantity : data === null || data === void 0 ? void 0 : data.product_quantity) !== null && _ref17 !== void 0 ? _ref17 : data === null || data === void 0 || (_data$_extend4 = data._extend) === null || _data$_extend4 === void 0 ? void 0 : _data$_extend4.quantity) !== null && _ref16 !== void 0 ? _ref16 : data === null || data === void 0 || (_data$detail4 = data.detail) === null || _data$detail4 === void 0 ? void 0 : _data$detail4.product_quantity) !== null && _ref15 !== void 0 ? _ref15 : data === null || data === void 0 || (_data$order_detail5 = data.order_detail) === null || _data$order_detail5 === void 0 ? void 0 : _data$order_detail5.product_quantity,
|
|
37
|
-
product_variant_id: (_ref18 = (_ref19 = (_data$product_variant = data === null || data === void 0 ? void 0 : data.product_variant_id) !== null && _data$product_variant !== void 0 ? _data$product_variant : data === null || data === void 0 || (_data$_extend5 = data._extend) === null || _data$_extend5 === void 0 ? void 0 : _data$_extend5.product_variant_id) !== null && _ref19 !== void 0 ? _ref19 : data === null || data === void 0 || (_data$detail5 = data.detail) === null || _data$detail5 === void 0 ? void 0 : _data$detail5.product_variant_id) !== null && _ref18 !== void 0 ? _ref18 : data === null || data === void 0 || (_data$order_detail6 = data.order_detail) === null || _data$order_detail6 === void 0 ? void 0 : _data$order_detail6.product_variant_id,
|
|
38
|
-
unique_identification_number: (_ref20 = (_ref21 = (_data$metadata$unique = data === null || data === void 0 || (_data$metadata = data.metadata) === null || _data$metadata === void 0 ? void 0 : _data$metadata.unique_identification_number) !== null && _data$metadata$unique !== void 0 ? _data$metadata$unique : data === null || data === void 0 || (_data$_extend6 = data._extend) === null || _data$_extend6 === void 0 || (_data$_extend6 = _data$_extend6.metadata) === null || _data$_extend6 === void 0 ? void 0 : _data$_extend6.unique_identification_number) !== null && _ref21 !== void 0 ? _ref21 : data === null || data === void 0 || (_data$detail6 = data.detail) === null || _data$detail6 === void 0 || (_data$detail6 = _data$detail6.metadata) === null || _data$detail6 === void 0 ? void 0 : _data$detail6.unique_identification_number) !== null && _ref20 !== void 0 ? _ref20 : data === null || data === void 0 || (_data$order_detail7 = data.order_detail) === null || _data$order_detail7 === void 0 || (_data$order_detail7 = _data$order_detail7.metadata) === null || _data$order_detail7 === void 0 ? void 0 : _data$order_detail7.unique_identification_number
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export var getCurrentServiceProductData = function getCurrentServiceProductData(products) {
|
|
42
|
-
return (products || []).map(getProductData);
|
|
43
|
-
};
|
|
44
|
-
export var getOriginalOrderProductData = function getOriginalOrderProductData(bookingDetail) {
|
|
45
|
-
var _bookingDetail$bookin;
|
|
46
|
-
var bookings = (bookingDetail === null || bookingDetail === void 0 || (_bookingDetail$bookin = bookingDetail.bookings) === null || _bookingDetail$bookin === void 0 ? void 0 : _bookingDetail$bookin.list) || [];
|
|
47
|
-
return {
|
|
48
|
-
bookings: bookings.map(getProductData),
|
|
49
|
-
booking_relation_products: bookings.flatMap(function (item) {
|
|
50
|
-
return ((item === null || item === void 0 ? void 0 : item.relation_details) || []).map(getProductData);
|
|
51
|
-
}),
|
|
52
|
-
relation_products: ((bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.relation_details) || []).map(getProductData)
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export var getSubmittedOrderProductData = function getSubmittedOrderProductData(values) {
|
|
56
|
-
return {
|
|
57
|
-
bookings: ((values === null || values === void 0 ? void 0 : values.bookings) || []).map(function (item) {
|
|
58
|
-
return getProductData((item === null || item === void 0 ? void 0 : item.product) || item);
|
|
59
|
-
}),
|
|
60
|
-
booking_relation_products: ((values === null || values === void 0 ? void 0 : values.bookings) || []).flatMap(function (item) {
|
|
61
|
-
return ((item === null || item === void 0 ? void 0 : item.relation_products) || []).map(getProductData);
|
|
62
|
-
}),
|
|
63
|
-
relation_products: ((values === null || values === void 0 ? void 0 : values.relation_products) || []).map(getProductData)
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
var sendProductChangeDebugLog = /*#__PURE__*/function () {
|
|
67
|
-
var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref22) {
|
|
68
|
-
var shopId, title, orderId, _ref22$content, content;
|
|
69
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
70
|
-
while (1) switch (_context.prev = _context.next) {
|
|
71
|
-
case 0:
|
|
72
|
-
shopId = _ref22.shopId, title = _ref22.title, orderId = _ref22.orderId, _ref22$content = _ref22.content, content = _ref22$content === void 0 ? [] : _ref22$content;
|
|
73
|
-
_context.prev = 1;
|
|
74
|
-
if (!(!isProductChangeDebugShop(shopId) || !orderId)) {
|
|
75
|
-
_context.next = 4;
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
return _context.abrupt("return");
|
|
79
|
-
case 4:
|
|
80
|
-
_context.next = 6;
|
|
81
|
-
return sendWarningLog({
|
|
82
|
-
title: "[9179\u9884\u7EA6\u8BA2\u5355\u5546\u54C1\u6392\u67E5] ".concat(title),
|
|
83
|
-
content: [{
|
|
84
|
-
key: '订单id',
|
|
85
|
-
value: String(orderId !== null && orderId !== void 0 ? orderId : '')
|
|
86
|
-
}, {
|
|
87
|
-
key: '日期',
|
|
88
|
-
value: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
89
|
-
}].concat(_toConsumableArray(content.map(function (item) {
|
|
90
|
-
return {
|
|
91
|
-
key: item.key,
|
|
92
|
-
value: typeof item.value === 'string' ? item.value : JSON.stringify(item.value)
|
|
93
|
-
};
|
|
94
|
-
})))
|
|
95
|
-
});
|
|
96
|
-
case 6:
|
|
97
|
-
_context.next = 11;
|
|
98
|
-
break;
|
|
99
|
-
case 8:
|
|
100
|
-
_context.prev = 8;
|
|
101
|
-
_context.t0 = _context["catch"](1);
|
|
102
|
-
console.warn('[9179预约订单商品排查] 日志处理或发送失败', _context.t0);
|
|
103
|
-
case 11:
|
|
104
|
-
case "end":
|
|
105
|
-
return _context.stop();
|
|
106
|
-
}
|
|
107
|
-
}, _callee, null, [[1, 8]]);
|
|
108
|
-
}));
|
|
109
|
-
return function sendProductChangeDebugLog(_x) {
|
|
110
|
-
return _ref23.apply(this, arguments);
|
|
111
|
-
};
|
|
112
|
-
}();
|
|
113
|
-
export var useProductChangeDebugLog = function useProductChangeDebugLog(orderId) {
|
|
114
|
-
var context = useEngineContext();
|
|
115
|
-
return useCallback(function (_ref24) {
|
|
116
|
-
var title = _ref24.title,
|
|
117
|
-
_ref24$content = _ref24.content,
|
|
118
|
-
content = _ref24$content === void 0 ? [] : _ref24$content;
|
|
119
|
-
sendProductChangeDebugLog({
|
|
120
|
-
shopId: getProductChangeDebugShopId(context),
|
|
121
|
-
orderId: orderId,
|
|
122
|
-
title: title,
|
|
123
|
-
content: content
|
|
124
|
-
});
|
|
125
|
-
}, [context, orderId]);
|
|
126
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const isProductChangeDebugShop: (shopId: unknown) => boolean;
|
|
2
|
-
export declare const getCurrentServiceProductData: (products: any[]) => {
|
|
3
|
-
id: any;
|
|
4
|
-
order_detail_id: any;
|
|
5
|
-
booking_id: any;
|
|
6
|
-
title: any;
|
|
7
|
-
quantity: any;
|
|
8
|
-
product_variant_id: any;
|
|
9
|
-
unique_identification_number: any;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const getOriginalOrderProductData: (bookingDetail: any) => {
|
|
12
|
-
bookings: any;
|
|
13
|
-
booking_relation_products: any;
|
|
14
|
-
relation_products: any;
|
|
15
|
-
};
|
|
16
|
-
export declare const getSubmittedOrderProductData: (values: any) => {
|
|
17
|
-
bookings: any;
|
|
18
|
-
booking_relation_products: any;
|
|
19
|
-
relation_products: any;
|
|
20
|
-
};
|
|
21
|
-
export declare const useProductChangeDebugLog: (orderId?: unknown) => ({ title, content, }: {
|
|
22
|
-
title: string;
|
|
23
|
-
content?: {
|
|
24
|
-
key: string;
|
|
25
|
-
value: unknown;
|
|
26
|
-
}[] | undefined;
|
|
27
|
-
}) => void;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/booking/utils/productChangeLog.ts
|
|
30
|
-
var productChangeLog_exports = {};
|
|
31
|
-
__export(productChangeLog_exports, {
|
|
32
|
-
getCurrentServiceProductData: () => getCurrentServiceProductData,
|
|
33
|
-
getOriginalOrderProductData: () => getOriginalOrderProductData,
|
|
34
|
-
getSubmittedOrderProductData: () => getSubmittedOrderProductData,
|
|
35
|
-
isProductChangeDebugShop: () => isProductChangeDebugShop,
|
|
36
|
-
useProductChangeDebugLog: () => useProductChangeDebugLog
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(productChangeLog_exports);
|
|
39
|
-
var import_react = require("react");
|
|
40
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
41
|
-
var import_utils = require("@pisell/utils");
|
|
42
|
-
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
43
|
-
var DEBUG_SHOP_ID = "9179";
|
|
44
|
-
var isProductChangeDebugShop = (shopId) => String(shopId ?? "") === DEBUG_SHOP_ID;
|
|
45
|
-
var getProductChangeDebugShopId = (context, state) => {
|
|
46
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
47
|
-
return ((_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) ?? ((_j = (_i = (_h = (_g = (_f = (_e = (_d = context == null ? void 0 : context.appHelper) == null ? void 0 : _d.utils) == null ? void 0 : _e.store) == null ? void 0 : _f.getState) == null ? void 0 : _g.call(_f)) == null ? void 0 : _h.global) == null ? void 0 : _i.globalConfig) == null ? void 0 : _j.id) ?? (state == null ? void 0 : state.shopId) ?? (state == null ? void 0 : state.shop_id) ?? ((_k = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _k.shop_id);
|
|
48
|
-
};
|
|
49
|
-
var getProductTitle = (data) => {
|
|
50
|
-
var _a, _b, _c;
|
|
51
|
-
const title = (data == null ? void 0 : data.title) ?? (data == null ? void 0 : data.product_title) ?? (data == null ? void 0 : data.product_name) ?? ((_a = data == null ? void 0 : data._extend) == null ? void 0 : _a.product_name) ?? ((_b = data == null ? void 0 : data.detail) == null ? void 0 : _b.product_title) ?? ((_c = data == null ? void 0 : data.order_detail) == null ? void 0 : _c.product_title);
|
|
52
|
-
if (!title || typeof title === "string") return title;
|
|
53
|
-
return title.original ?? title.auto ?? title["zh-CN"] ?? title.en;
|
|
54
|
-
};
|
|
55
|
-
var getProductData = (data) => {
|
|
56
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
57
|
-
return {
|
|
58
|
-
id: (data == null ? void 0 : data.product_id) ?? ((_a = data == null ? void 0 : data.detail) == null ? void 0 : _a.product_id) ?? ((_b = data == null ? void 0 : data.order_detail) == null ? void 0 : _b.product_id) ?? (data == null ? void 0 : data.id),
|
|
59
|
-
order_detail_id: (data == null ? void 0 : data.order_detail_id) ?? ((_c = data == null ? void 0 : data._extend) == null ? void 0 : _c.order_detail_id) ?? ((_d = data == null ? void 0 : data.detail) == null ? void 0 : _d.order_detail_id) ?? ((_e = data == null ? void 0 : data.order_detail) == null ? void 0 : _e.order_detail_id) ?? ((_f = data == null ? void 0 : data.order_detail) == null ? void 0 : _f.id),
|
|
60
|
-
booking_id: (data == null ? void 0 : data.booking_id) ?? ((_g = data == null ? void 0 : data._extend) == null ? void 0 : _g.id),
|
|
61
|
-
title: getProductTitle(data),
|
|
62
|
-
quantity: (data == null ? void 0 : data.quantity) ?? (data == null ? void 0 : data.product_quantity) ?? ((_h = data == null ? void 0 : data._extend) == null ? void 0 : _h.quantity) ?? ((_i = data == null ? void 0 : data.detail) == null ? void 0 : _i.product_quantity) ?? ((_j = data == null ? void 0 : data.order_detail) == null ? void 0 : _j.product_quantity),
|
|
63
|
-
product_variant_id: (data == null ? void 0 : data.product_variant_id) ?? ((_k = data == null ? void 0 : data._extend) == null ? void 0 : _k.product_variant_id) ?? ((_l = data == null ? void 0 : data.detail) == null ? void 0 : _l.product_variant_id) ?? ((_m = data == null ? void 0 : data.order_detail) == null ? void 0 : _m.product_variant_id),
|
|
64
|
-
unique_identification_number: ((_n = data == null ? void 0 : data.metadata) == null ? void 0 : _n.unique_identification_number) ?? ((_p = (_o = data == null ? void 0 : data._extend) == null ? void 0 : _o.metadata) == null ? void 0 : _p.unique_identification_number) ?? ((_r = (_q = data == null ? void 0 : data.detail) == null ? void 0 : _q.metadata) == null ? void 0 : _r.unique_identification_number) ?? ((_t = (_s = data == null ? void 0 : data.order_detail) == null ? void 0 : _s.metadata) == null ? void 0 : _t.unique_identification_number)
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
var getCurrentServiceProductData = (products) => (products || []).map(getProductData);
|
|
68
|
-
var getOriginalOrderProductData = (bookingDetail) => {
|
|
69
|
-
var _a;
|
|
70
|
-
const bookings = ((_a = bookingDetail == null ? void 0 : bookingDetail.bookings) == null ? void 0 : _a.list) || [];
|
|
71
|
-
return {
|
|
72
|
-
bookings: bookings.map(getProductData),
|
|
73
|
-
booking_relation_products: bookings.flatMap(
|
|
74
|
-
(item) => ((item == null ? void 0 : item.relation_details) || []).map(getProductData)
|
|
75
|
-
),
|
|
76
|
-
relation_products: ((bookingDetail == null ? void 0 : bookingDetail.relation_details) || []).map(getProductData)
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
var getSubmittedOrderProductData = (values) => ({
|
|
80
|
-
bookings: ((values == null ? void 0 : values.bookings) || []).map(
|
|
81
|
-
(item) => getProductData((item == null ? void 0 : item.product) || item)
|
|
82
|
-
),
|
|
83
|
-
booking_relation_products: ((values == null ? void 0 : values.bookings) || []).flatMap(
|
|
84
|
-
(item) => ((item == null ? void 0 : item.relation_products) || []).map(getProductData)
|
|
85
|
-
),
|
|
86
|
-
relation_products: ((values == null ? void 0 : values.relation_products) || []).map(getProductData)
|
|
87
|
-
});
|
|
88
|
-
var sendProductChangeDebugLog = async ({
|
|
89
|
-
shopId,
|
|
90
|
-
title,
|
|
91
|
-
orderId,
|
|
92
|
-
content = []
|
|
93
|
-
}) => {
|
|
94
|
-
try {
|
|
95
|
-
if (!isProductChangeDebugShop(shopId) || !orderId) return;
|
|
96
|
-
await (0, import_utils.sendWarningLog)({
|
|
97
|
-
title: `[9179预约订单商品排查] ${title}`,
|
|
98
|
-
content: [
|
|
99
|
-
{ key: "订单id", value: String(orderId ?? "") },
|
|
100
|
-
{ key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss") },
|
|
101
|
-
...content.map((item) => ({
|
|
102
|
-
key: item.key,
|
|
103
|
-
value: typeof item.value === "string" ? item.value : JSON.stringify(item.value)
|
|
104
|
-
}))
|
|
105
|
-
]
|
|
106
|
-
});
|
|
107
|
-
} catch (error) {
|
|
108
|
-
console.warn("[9179预约订单商品排查] 日志处理或发送失败", error);
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
var useProductChangeDebugLog = (orderId) => {
|
|
112
|
-
const context = (0, import_useEngineContext.default)();
|
|
113
|
-
return (0, import_react.useCallback)(
|
|
114
|
-
({
|
|
115
|
-
title,
|
|
116
|
-
content = []
|
|
117
|
-
}) => {
|
|
118
|
-
sendProductChangeDebugLog({
|
|
119
|
-
shopId: getProductChangeDebugShopId(context),
|
|
120
|
-
orderId,
|
|
121
|
-
title,
|
|
122
|
-
content
|
|
123
|
-
});
|
|
124
|
-
},
|
|
125
|
-
[context, orderId]
|
|
126
|
-
);
|
|
127
|
-
};
|
|
128
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
129
|
-
0 && (module.exports = {
|
|
130
|
-
getCurrentServiceProductData,
|
|
131
|
-
getOriginalOrderProductData,
|
|
132
|
-
getSubmittedOrderProductData,
|
|
133
|
-
isProductChangeDebugShop,
|
|
134
|
-
useProductChangeDebugLog
|
|
135
|
-
});
|