@pisell/private-materials 6.8.11 → 6.8.13
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/df14b0a48455e9836fb9b14034da0243.png +0 -0
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +164 -159
- package/build/lowcode/render/default/assets/df14b0a48455e9836fb9b14034da0243.png +0 -0
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +19 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +19 -12
- package/es/businessModel/SalesModel/index.d.ts +2 -2
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- 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/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +2 -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 +2 -2
- package/es/components/booking/components/drawer/index.d.ts +1 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +2 -2
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +2 -2
- package/es/components/booking/components/footer/index.d.ts +1 -2
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +2 -2
- package/es/components/booking/components/menuButton/index.d.ts +1 -1
- package/es/components/booking/components/voucher/index.d.ts +1 -2
- 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 +2 -2
- package/es/components/booking/forms/footer.d.ts +1 -2
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +2 -2
- package/es/components/booking/forms/table/index.d.ts +2 -2
- package/es/components/booking/hooks/useClearCart.d.ts +1 -2
- 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/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- 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 +2 -2
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +3 -2
- package/es/components/booking/info/hooks/useInfoHolder.js +2 -0
- package/es/components/booking/info/index.d.ts +2 -2
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +2 -2
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/service/Lists.d.ts +2 -2
- 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/addService/utils.d.ts +1 -1
- 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/editService/index.js +3 -4
- package/es/components/booking/info/service/index.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +2 -2
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -2
- package/es/components/booking/info/service/serviceList/index.d.ts +2 -2
- package/es/components/booking/info/service2/Lists.d.ts +2 -2
- package/es/components/booking/info/service2/index.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/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -2
- package/es/components/booking/info2/service/editNormalService/index.js +80 -9
- package/es/components/booking/info2/service/editService/index.js +85 -72
- package/es/components/booking/info2/service/index.d.ts +1 -1
- package/es/components/booking/info2/service/index.js +12 -0
- package/es/components/booking/info2/service/openNormalService.js +15 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -2
- package/es/components/booking/info2/service/serviceList/index.d.ts +2 -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 +2 -2
- package/es/components/booking/notes/NoteBlock/index.d.ts +2 -2
- package/es/components/booking/notes/addNote/index.d.ts +2 -2
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- 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 +16 -16
- package/es/components/eftpos/device.d.ts +1 -1
- package/es/components/eftpos/deviceList/index.d.ts +2 -2
- package/es/components/eftpos/form/index.d.ts +2 -2
- package/es/components/eftpos/group/index.d.ts +3 -3
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +2 -2
- package/es/components/eftpos/icon/device.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +2 -2
- package/es/components/eftpos/log.d.ts +2 -2
- package/es/components/eftpos/pos.d.ts +2 -2
- package/es/components/eftpos/receipt/index.d.ts +2 -2
- package/es/components/eftpos/surcharge/index.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -2
- 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 +2 -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 +2 -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 +2 -2
- package/es/components/eftposPay/device.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -2
- package/es/components/eftposPay/linkly/index.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 +2 -2
- package/es/components/eftposPay/tip.d.ts +1 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- 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 +2 -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 +2 -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 +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +2 -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 +2 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +2 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +2 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -2
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +2 -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/kioskSkuDetail/assets/kiosk-launchpad-bg-773705.png +0 -0
- package/es/components/kioskSkuDetail/assets/kiosk-launchpad-hero-c14ba2.png +0 -0
- package/es/components/kioskSkuDetail/index.d.ts +33 -0
- package/es/components/kioskSkuDetail/index.js +282 -0
- package/es/components/kioskSkuDetail/index.less +152 -0
- package/es/components/login/index.d.ts +2 -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 +2 -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/store/provider.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +2 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +2 -1
- 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 +2 -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/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/es/components/productExtension/fields/Actor/index.d.ts +2 -2
- package/es/components/productExtension/fields/Forms/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +2 -2
- package/es/components/productExtension/index.d.ts +2 -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 +3 -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 +2 -2
- package/es/components/schedules/calendar/calendarItem.d.ts +2 -2
- package/es/components/schedules/calendar/index.d.ts +2 -2
- package/es/components/schedules/components/Card/index.d.ts +1 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +2 -2
- package/es/components/schedules/components/ResourceList/index.d.ts +1 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +2 -2
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +2 -2
- package/es/components/schedules/components/ScheduleList/index.d.ts +2 -2
- package/es/components/schedules/components/Search/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +2 -2
- package/es/components/schedules/products/index.d.ts +2 -2
- package/es/components/schedules/products/list/ProductItem/index.d.ts +2 -2
- package/es/components/schedules/products/list/index.d.ts +2 -2
- package/es/components/schedules/resources/index.d.ts +2 -2
- package/es/components/schedules/resources/list/index.d.ts +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +2 -2
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +2 -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 +2 -2
- package/es/components/shoppingCart/Provider.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -2
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +2 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +2 -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 +2 -2
- 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 +2 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +84 -44
- 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/useCustomer.d.ts +9 -9
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +2 -2
- 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 +3 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -2
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
- package/es/plus/noteModal/AddTempModal.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +2 -2
- 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/Cover/index.d.ts +2 -2
- 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 +2 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -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/TabsStructure/TabsStructure.js +2 -7
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +6 -0
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/es/plus/productSelect/index.d.ts +1 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +2 -2
- package/es/plus/saasCreateOrganization/index.d.ts +2 -2
- package/es/plus/saasRegister/components/EntryEmail.d.ts +2 -2
- package/es/plus/saasRegister/components/EntryInfo.d.ts +2 -2
- package/es/plus/saasRegister/components/GoLogin.d.ts +2 -2
- package/es/plus/saasRegister/components/Header.d.ts +2 -2
- package/es/plus/saasRegister/components/VerifyError.d.ts +2 -2
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +2 -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/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +131 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +108 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +10 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +247 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +113 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +166 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.js +46 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.less +23 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +29 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.less +9 -0
- package/es/plus/skuOptionsSelection/hooks/index.js +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.js +7 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.js +3 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.js +8 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/index.js +125 -0
- package/es/plus/skuOptionsSelection/index.less +4 -0
- package/es/plus/skuOptionsSelection/locales.js +29 -0
- package/es/plus/skuOptionsSelection/store/actions.js +56 -0
- package/es/plus/skuOptionsSelection/store/createStore.js +117 -0
- package/es/plus/skuOptionsSelection/store/index.js +2 -0
- package/es/plus/skuOptionsSelection/store/store.js +18 -0
- package/es/plus/skuOptionsSelection/types.js +69 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.js +80 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.js +147 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/index.js +7 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +90 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +85 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +157 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +226 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +90 -0
- 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/plus/webPosLogin/WebPosLogin.d.ts +1 -1
- package/es/pro/Cards/components/SKUCard/index.d.ts +60 -0
- package/es/pro/Cards/components/SKUCard/index.js +193 -0
- package/es/pro/Cards/components/SKUCard/index.less +102 -0
- package/es/pro/Cards/index.d.ts +1 -0
- package/es/pro/Cards/index.js +1 -0
- 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/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/{Selector/components/NumericStepper → NumericStepper}/index.js +46 -19
- package/{lib/pro/Selector/components → es/pro}/NumericStepper/index.less +7 -8
- package/es/pro/Selector/BatchSelectorDemo.js +452 -38
- package/es/pro/Selector/Item.js +88 -0
- package/es/pro/Selector/Selector.js +188 -140
- package/es/pro/Selector/Selector.stories.js +1105 -0
- package/es/pro/Selector/SelectorGroup.js +189 -155
- package/es/pro/Selector/components/Card/index.js +92 -75
- package/es/pro/Selector/components/Card/index.less +113 -83
- package/es/pro/Selector/components/Card/types.js +1 -0
- package/es/pro/Selector/components/Indicator/index.js +101 -0
- package/es/pro/Selector/components/Indicator/index.less +114 -0
- package/es/pro/Selector/components/LayoutContainer/index.js +60 -0
- package/es/pro/Selector/components/Media/index.js +222 -0
- package/es/pro/Selector/components/Media/index.less +124 -0
- package/es/pro/Selector/components/Media/types.js +1 -0
- package/es/pro/Selector/components/index.js +3 -1
- package/es/pro/Selector/demo.js +1031 -101
- package/es/pro/Selector/hooks/usePresetItemProps.js +185 -0
- package/es/pro/Selector/hooks/usePresetProps.js +132 -0
- package/es/pro/Selector/hooks/useSelectionController.js +124 -98
- package/es/pro/Selector/index.js +3 -0
- package/es/pro/Selector/locales.js +69 -48
- package/es/pro/Selector/selector.less +108 -2
- package/es/pro/Selector/selectorGroup.less +8 -0
- package/es/pro/numberKeyboard/index.d.ts +1 -1
- package/es/pro/pisellNumberSelector/index.less +18 -2
- 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 +2 -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/es/pro/skuDetailModal/index.js +827 -179
- package/es/pro/skuDetailModal/index.less +136 -28
- package/es/pro/skuDetailModal/locales.js +62 -3
- package/es/pro/skuDetailModal/utils.js +21 -0
- package/es/test/setup.d.ts +1 -0
- package/es/test/setup.js +177 -0
- package/lib/businessModel/SalesModel/index.d.ts +2 -2
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- 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/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +2 -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 +2 -2
- package/lib/components/booking/components/drawer/index.d.ts +1 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +2 -2
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +2 -2
- package/lib/components/booking/components/footer/index.d.ts +1 -2
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +2 -2
- package/lib/components/booking/components/menuButton/index.d.ts +1 -1
- package/lib/components/booking/components/voucher/index.d.ts +1 -2
- 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 +2 -2
- package/lib/components/booking/forms/footer.d.ts +1 -2
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +2 -2
- package/lib/components/booking/forms/table/index.d.ts +2 -2
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -2
- 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/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- 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 +2 -2
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +3 -2
- package/lib/components/booking/info/hooks/useInfoHolder.js +1 -0
- package/lib/components/booking/info/index.d.ts +2 -2
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +2 -2
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.d.ts +2 -2
- 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/addService/utils.d.ts +1 -1
- 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/editService/index.js +0 -2
- package/lib/components/booking/info/service/index.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +2 -2
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -2
- package/lib/components/booking/info/service/serviceList/index.d.ts +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +2 -2
- package/lib/components/booking/info/service2/index.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/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -2
- package/lib/components/booking/info2/service/editNormalService/index.js +59 -4
- package/lib/components/booking/info2/service/editService/index.js +82 -68
- package/lib/components/booking/info2/service/index.d.ts +1 -1
- package/lib/components/booking/info2/service/index.js +10 -0
- package/lib/components/booking/info2/service/openNormalService.js +37 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -2
- package/lib/components/booking/info2/service/serviceList/index.d.ts +2 -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 +2 -2
- package/lib/components/booking/notes/NoteBlock/index.d.ts +2 -2
- package/lib/components/booking/notes/addNote/index.d.ts +2 -2
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- 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 +16 -16
- package/lib/components/eftpos/device.d.ts +1 -1
- package/lib/components/eftpos/deviceList/index.d.ts +2 -2
- package/lib/components/eftpos/form/index.d.ts +2 -2
- package/lib/components/eftpos/group/index.d.ts +3 -3
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +2 -2
- package/lib/components/eftpos/icon/device.d.ts +2 -2
- package/lib/components/eftpos/index.d.ts +2 -2
- package/lib/components/eftpos/log.d.ts +2 -2
- package/lib/components/eftpos/pos.d.ts +2 -2
- package/lib/components/eftpos/receipt/index.d.ts +2 -2
- package/lib/components/eftpos/surcharge/index.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -2
- 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 +2 -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 +2 -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 +2 -2
- package/lib/components/eftposPay/device.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -2
- package/lib/components/eftposPay/linkly/index.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 +2 -2
- package/lib/components/eftposPay/tip.d.ts +1 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- 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 +2 -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 +2 -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 +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +2 -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 +2 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +2 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +2 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -2
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +2 -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/kioskSkuDetail/assets/kiosk-launchpad-bg-773705.png +0 -0
- package/lib/components/kioskSkuDetail/assets/kiosk-launchpad-hero-c14ba2.png +0 -0
- package/lib/components/kioskSkuDetail/index.d.ts +33 -0
- package/lib/components/kioskSkuDetail/index.js +206 -0
- package/lib/components/kioskSkuDetail/index.less +152 -0
- package/lib/components/login/index.d.ts +2 -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 +2 -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/store/provider.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +2 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +2 -1
- 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 +2 -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/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/lib/components/productExtension/fields/Actor/index.d.ts +2 -2
- package/lib/components/productExtension/fields/Forms/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +2 -2
- package/lib/components/productExtension/index.d.ts +2 -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 +3 -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 +2 -2
- package/lib/components/schedules/calendar/calendarItem.d.ts +2 -2
- package/lib/components/schedules/calendar/index.d.ts +2 -2
- package/lib/components/schedules/components/Card/index.d.ts +1 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +2 -2
- package/lib/components/schedules/components/ResourceList/index.d.ts +1 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +2 -2
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +2 -2
- package/lib/components/schedules/components/ScheduleList/index.d.ts +2 -2
- package/lib/components/schedules/components/Search/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +2 -2
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +2 -2
- package/lib/components/schedules/products/index.d.ts +2 -2
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +2 -2
- package/lib/components/schedules/products/list/index.d.ts +2 -2
- package/lib/components/schedules/resources/index.d.ts +2 -2
- package/lib/components/schedules/resources/list/index.d.ts +2 -2
- package/lib/components/schedules/resources/relationProduct/index.d.ts +2 -2
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +2 -2
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +2 -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 +2 -2
- package/lib/components/shoppingCart/Provider.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -2
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -2
- package/lib/components/shoppingCart/components/Empty/index.d.ts +2 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +2 -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 +2 -2
- 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 +2 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -25
- 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/useCustomer.d.ts +9 -9
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +2 -2
- 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 +3 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -2
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
- package/lib/plus/noteModal/AddTempModal.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +2 -2
- 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/Cover/index.d.ts +2 -2
- 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 +2 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -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/TabsStructure/TabsStructure.js +38 -29
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +6 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
- package/lib/plus/productSelect/index.d.ts +1 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +2 -2
- package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +2 -2
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +2 -2
- package/lib/plus/saasRegister/components/GoLogin.d.ts +2 -2
- package/lib/plus/saasRegister/components/Header.d.ts +2 -2
- package/lib/plus/saasRegister/components/VerifyError.d.ts +2 -2
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +2 -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/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +142 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +153 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +10 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +229 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +113 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +140 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.js +78 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.less +23 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +66 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +9 -0
- package/lib/plus/skuOptionsSelection/hooks/index.js +45 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.js +41 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.js +36 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.js +42 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/index.js +141 -0
- package/lib/plus/skuOptionsSelection/index.less +4 -0
- package/lib/plus/skuOptionsSelection/locales.js +53 -0
- package/lib/plus/skuOptionsSelection/store/actions.js +74 -0
- package/lib/plus/skuOptionsSelection/store/createStore.js +87 -0
- package/lib/plus/skuOptionsSelection/store/index.js +42 -0
- package/lib/plus/skuOptionsSelection/store/store.js +57 -0
- package/lib/plus/skuOptionsSelection/types.js +44 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.js +106 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.js +125 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/index.js +35 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +115 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +113 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +171 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +212 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +118 -0
- 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/plus/webPosLogin/WebPosLogin.d.ts +1 -1
- package/lib/pro/Cards/components/SKUCard/index.d.ts +60 -0
- package/lib/pro/Cards/components/SKUCard/index.js +192 -0
- package/lib/pro/Cards/components/SKUCard/index.less +102 -0
- package/lib/pro/Cards/index.d.ts +1 -0
- package/lib/pro/Cards/index.js +39 -0
- 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/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/{Selector/components/NumericStepper → NumericStepper}/index.js +31 -13
- package/{es/pro/Selector/components → lib/pro}/NumericStepper/index.less +7 -8
- package/lib/pro/Selector/BatchSelectorDemo.js +449 -137
- package/lib/pro/Selector/Item.js +109 -0
- package/lib/pro/Selector/Selector.js +194 -114
- package/lib/pro/Selector/Selector.stories.js +740 -0
- package/lib/pro/Selector/SelectorGroup.js +212 -141
- package/lib/pro/Selector/components/Card/index.js +72 -57
- package/lib/pro/Selector/components/Card/index.less +113 -83
- package/lib/pro/Selector/components/Card/types.js +17 -0
- package/lib/pro/Selector/components/Indicator/index.js +129 -0
- package/lib/pro/Selector/components/Indicator/index.less +114 -0
- package/lib/pro/Selector/components/LayoutContainer/index.js +64 -0
- package/lib/pro/Selector/components/Media/index.js +238 -0
- package/lib/pro/Selector/components/Media/index.less +124 -0
- package/lib/pro/Selector/components/Media/types.js +17 -0
- package/lib/pro/Selector/components/index.js +3 -3
- package/lib/pro/Selector/demo.js +808 -55
- package/lib/pro/Selector/hooks/usePresetItemProps.js +156 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +133 -0
- package/lib/pro/Selector/hooks/useSelectionController.js +108 -67
- package/lib/pro/Selector/index.js +8 -0
- package/lib/pro/Selector/locales.js +51 -30
- package/lib/pro/Selector/selector.less +108 -2
- package/lib/pro/Selector/selectorGroup.less +8 -0
- package/lib/pro/numberKeyboard/index.d.ts +1 -1
- package/lib/pro/pisellNumberSelector/index.less +18 -2
- 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 +2 -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/lib/pro/skuDetailModal/index.js +540 -126
- package/lib/pro/skuDetailModal/index.less +136 -28
- package/lib/pro/skuDetailModal/locales.js +62 -3
- package/lib/pro/skuDetailModal/utils.js +42 -0
- package/lib/test/setup.d.ts +1 -0
- package/lib/test/setup.js +94 -0
- package/lowcode/kiosk-sku-detail/meta.ts +129 -0
- package/lowcode/selector/meta.ts +320 -285
- package/lowcode/selector/utils.ts +118 -0
- package/lowcode/selector.group/meta.ts +95 -10
- package/lowcode/selector.item/meta.ts +31 -0
- package/lowcode/sku-options-selection/default.ts +1215 -0
- package/lowcode/sku-options-selection/meta.ts +509 -0
- package/package.json +29 -8
- package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
- package/es/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
- package/es/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/es/components/authentication/admin/AuthMethods/types.d.ts +0 -76
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/es/components/booking/model.d.ts +0 -120
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/es/components/checkout/constants.d.ts +0 -2
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/es/components/checkout/locales.d.ts +0 -513
- package/es/components/checkout/styles.d.ts +0 -67
- package/es/components/eftposPay/utils/log/index.d.ts +0 -110
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/types.d.ts +0 -178
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -19
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/es/components/pay/toC/locales.d.ts +0 -301
- package/es/components/pay/toC/status.d.ts +0 -13
- package/es/components/shoppingCart/locales.d.ts +0 -36
- package/es/components/shoppingCart/type.d.ts +0 -50
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -83
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/locales.d.ts +0 -201
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/walletList/locales.d.ts +0 -27
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/useEngineContext.d.ts +0 -4
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useTranslationOriginal.d.ts +0 -1
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clientCard/types.d.ts +0 -134
- package/es/plus/clientCard/utils.d.ts +0 -8
- package/es/plus/clientName/index.d.ts +0 -5
- package/es/plus/clientName/type.d.ts +0 -13
- package/es/plus/clientName/utils.d.ts +0 -2
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/es/plus/contactInfo/locales.d.ts +0 -15
- package/es/plus/contactInfo/types.d.ts +0 -91
- package/es/plus/contactInfo/utils.d.ts +0 -7
- package/es/plus/contactInfoModal/locales.d.ts +0 -66
- package/es/plus/noteModal/locales.d.ts +0 -33
- package/es/plus/noteModal/types.d.ts +0 -19
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/es/plus/productSelect/utils.d.ts +0 -39
- package/es/plus/selectHolder/locales.d.ts +0 -24
- package/es/plus/selectHolder/types.d.ts +0 -104
- package/es/plus/selectHolder/utils.d.ts +0 -9
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
- package/es/plus/walletEditor/locales.d.ts +0 -135
- package/es/plus/walletEditor/types.d.ts +0 -52
- package/es/plus/walletPassGallery/locales.d.ts +0 -285
- package/es/plus/walletPassGallery/utils.d.ts +0 -48
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/es/pro/Login2.0/locales.d.ts +0 -543
- package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -16
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -11
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -10
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -21
- package/es/pro/Login2.0/types.d.ts +0 -167
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/es/pro/Selector/Selector.d.ts +0 -5
- package/es/pro/Selector/SelectorGroup.d.ts +0 -11
- package/es/pro/Selector/components/Card/index.d.ts +0 -27
- package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/es/pro/Selector/components/NumericStepper/index.d.ts +0 -41
- package/es/pro/Selector/components/index.d.ts +0 -2
- package/es/pro/Selector/demo.d.ts +0 -3
- package/es/pro/Selector/hooks/useSelectionController.d.ts +0 -42
- package/es/pro/Selector/index.d.ts +0 -8
- package/es/pro/Selector/locales.d.ts +0 -42
- package/es/pro/Selector/types.d.ts +0 -114
- package/es/pro/Selector/utils/index.d.ts +0 -49
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/types.d.ts +0 -32
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/es/pro/priceKeyboard/utils.d.ts +0 -31
- package/es/pro/skuDetailModal/locales.d.ts +0 -48
- package/es/pro/skuDetailModal/types.d.ts +0 -348
- package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
- package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
- package/lib/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +0 -76
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -28
- package/lib/components/booking/model.d.ts +0 -120
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/lib/components/checkout/constants.d.ts +0 -2
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/lib/components/checkout/locales.d.ts +0 -513
- package/lib/components/checkout/styles.d.ts +0 -67
- package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/types.d.ts +0 -178
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -19
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/lib/components/pay/toC/locales.d.ts +0 -301
- package/lib/components/pay/toC/status.d.ts +0 -13
- package/lib/components/shoppingCart/locales.d.ts +0 -36
- package/lib/components/shoppingCart/type.d.ts +0 -50
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -83
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/locales.d.ts +0 -201
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/walletList/locales.d.ts +0 -27
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/hooks/useEngineContext.d.ts +0 -4
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useTranslationOriginal.d.ts +0 -1
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clientCard/types.d.ts +0 -134
- package/lib/plus/clientCard/utils.d.ts +0 -8
- package/lib/plus/clientName/index.d.ts +0 -5
- package/lib/plus/clientName/type.d.ts +0 -13
- package/lib/plus/clientName/utils.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/lib/plus/contactInfo/locales.d.ts +0 -15
- package/lib/plus/contactInfo/types.d.ts +0 -91
- package/lib/plus/contactInfo/utils.d.ts +0 -7
- package/lib/plus/contactInfoModal/locales.d.ts +0 -66
- package/lib/plus/noteModal/locales.d.ts +0 -33
- package/lib/plus/noteModal/types.d.ts +0 -19
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/lib/plus/productSelect/utils.d.ts +0 -39
- package/lib/plus/selectHolder/locales.d.ts +0 -24
- package/lib/plus/selectHolder/types.d.ts +0 -104
- package/lib/plus/selectHolder/utils.d.ts +0 -9
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
- package/lib/plus/walletEditor/locales.d.ts +0 -135
- package/lib/plus/walletEditor/types.d.ts +0 -52
- package/lib/plus/walletPassGallery/locales.d.ts +0 -285
- package/lib/plus/walletPassGallery/utils.d.ts +0 -48
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/lib/pro/Login2.0/locales.d.ts +0 -543
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -16
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -11
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -10
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -21
- package/lib/pro/Login2.0/types.d.ts +0 -167
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/lib/pro/Selector/Selector.d.ts +0 -5
- package/lib/pro/Selector/SelectorGroup.d.ts +0 -11
- package/lib/pro/Selector/components/Card/index.d.ts +0 -27
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/lib/pro/Selector/components/NumericStepper/index.d.ts +0 -41
- package/lib/pro/Selector/components/index.d.ts +0 -2
- package/lib/pro/Selector/demo.d.ts +0 -3
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +0 -42
- package/lib/pro/Selector/index.d.ts +0 -8
- package/lib/pro/Selector/locales.d.ts +0 -42
- package/lib/pro/Selector/types.d.ts +0 -114
- package/lib/pro/Selector/utils/index.d.ts +0 -49
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/lib/pro/priceKeyboard/utils.d.ts +0 -31
- package/lib/pro/skuDetailModal/locales.d.ts +0 -48
- package/lib/pro/skuDetailModal/types.d.ts +0 -348
|
@@ -1,19 +1,21 @@
|
|
|
1
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; }
|
|
2
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
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); } }
|
|
9
|
+
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); }); }; }
|
|
7
10
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
11
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
12
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
13
|
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; }
|
|
11
14
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import React, { forwardRef, useImperativeHandle, useState, useMemo } from 'react';
|
|
14
|
-
import { PisellModal, Button } from '@pisell/materials';
|
|
16
|
+
import React, { forwardRef, useContext, useImperativeHandle, useState, useMemo, useRef } from 'react';
|
|
17
|
+
import { PisellModal, Button, Iconfont, PisellProcedure, Checkbox } from '@pisell/materials';
|
|
15
18
|
import Decimal from 'decimal.js';
|
|
16
|
-
import cloneDeep from 'lodash/cloneDeep';
|
|
17
19
|
import { locales } from '@pisell/utils';
|
|
18
20
|
import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
|
|
19
21
|
import localeTexts from "./locales";
|
|
@@ -22,8 +24,13 @@ import PisellNumberSelector from "../pisellNumberSelector";
|
|
|
22
24
|
import NoteModal from "../../plus/noteModal";
|
|
23
25
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
24
26
|
import { DiscountKeyboard } from "../priceKeyboard";
|
|
27
|
+
import SKUOptionsSelection from "../../plus/skuOptionsSelection";
|
|
28
|
+
import { getProductDetail } from "../../components/booking/info/service/serve";
|
|
29
|
+
import { checkSkuStockCanSell } from "./utils";
|
|
30
|
+
import { Context as BookingContext } from "../../components/booking/info/model";
|
|
31
|
+
import useToast from "../../hooks/useToast";
|
|
25
32
|
var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
26
|
-
var _context$appHelper, _store$getState, _context$engine, _productData$_extend2,
|
|
33
|
+
var _context$appHelper, _store$getState, _context$engine, _productData$_extend2, _bookingState$booking10, _bookingState$booking11;
|
|
27
34
|
var onConfirm = _ref.onConfirm,
|
|
28
35
|
onRemove = _ref.onRemove,
|
|
29
36
|
onClose = _ref.onClose;
|
|
@@ -43,41 +50,204 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
43
50
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
44
51
|
quantity = _useState8[0],
|
|
45
52
|
setQuantity = _useState8[1];
|
|
46
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @description 手动改价(单价维度)
|
|
55
|
+
* - null 表示未设置过手动改价
|
|
56
|
+
* - 只要设置过,右侧总价展示始终以该单价为准
|
|
57
|
+
*/
|
|
58
|
+
var _useState9 = useState(null),
|
|
47
59
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
48
60
|
priceOverride = _useState10[0],
|
|
49
61
|
setPriceOverride = _useState10[1];
|
|
50
|
-
var _useState11 = useState(
|
|
62
|
+
var _useState11 = useState(false),
|
|
51
63
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var _useState13 = useState(
|
|
64
|
+
showPriceAdjustModal = _useState12[0],
|
|
65
|
+
setShowPriceAdjustModal = _useState12[1];
|
|
66
|
+
var _useState13 = useState([]),
|
|
55
67
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
discounts = _useState14[0],
|
|
69
|
+
setDiscounts = _useState14[1];
|
|
58
70
|
var _useState15 = useState(false),
|
|
59
71
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
60
|
-
|
|
61
|
-
|
|
72
|
+
noteModalOpen = _useState16[0],
|
|
73
|
+
setNoteModalOpen = _useState16[1];
|
|
74
|
+
var _useState17 = useState({
|
|
75
|
+
price: 0,
|
|
76
|
+
product_id: 0,
|
|
77
|
+
product_variant_id: 0,
|
|
78
|
+
bundle: [],
|
|
79
|
+
option: []
|
|
80
|
+
}),
|
|
81
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
82
|
+
skuValue = _useState18[0],
|
|
83
|
+
setSkuValue = _useState18[1];
|
|
84
|
+
var _useState19 = useState({
|
|
85
|
+
product_id: 0,
|
|
86
|
+
price: 0,
|
|
87
|
+
product_variant_id: 0,
|
|
88
|
+
bundle: [],
|
|
89
|
+
option: []
|
|
90
|
+
}),
|
|
91
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
92
|
+
skuDefaultValue = _useState20[0],
|
|
93
|
+
setSkuDefaultValue = _useState20[1];
|
|
94
|
+
var openParamsRef = useRef(null);
|
|
95
|
+
var Toast = useToast();
|
|
96
|
+
/**
|
|
97
|
+
* @description SKUOptionsSelection ref,用于触发内部校验与读取最终值
|
|
98
|
+
*/
|
|
99
|
+
var skuOptionsSelectionRef = useRef(null);
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @description 库存提醒弹窗(允许缺货加入购物车时触发)
|
|
103
|
+
*/
|
|
104
|
+
var _useState21 = useState(false),
|
|
105
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
106
|
+
stockAlertOpen = _useState22[0],
|
|
107
|
+
setStockAlertOpen = _useState22[1];
|
|
108
|
+
var _useState23 = useState(false),
|
|
109
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
110
|
+
stockAlertDontShowAgainChecked = _useState24[0],
|
|
111
|
+
setStockAlertDontShowAgainChecked = _useState24[1];
|
|
112
|
+
var pendingConfirmDataRef = useRef(null);
|
|
113
|
+
var _useState25 = useState(0),
|
|
114
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
115
|
+
currentStep = _useState26[0],
|
|
116
|
+
setCurrentStep = _useState26[1];
|
|
117
|
+
var procedureRef = useRef(null);
|
|
62
118
|
var context = useEngineContext();
|
|
63
119
|
var _ref2 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
64
|
-
store = _ref2.store
|
|
120
|
+
store = _ref2.store,
|
|
121
|
+
getData = _ref2.getData;
|
|
122
|
+
/**
|
|
123
|
+
* @description
|
|
124
|
+
* booking state 需要从 Booking 的 Context 读取(与 editService 保持一致),不要用 store.getState()
|
|
125
|
+
*/
|
|
126
|
+
var _ref3 = useContext(BookingContext) || {},
|
|
127
|
+
bookingState = _ref3.state;
|
|
65
128
|
var symbol = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 ? void 0 : _store$getState.symbol) || '$';
|
|
66
129
|
locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
|
|
67
130
|
useImperativeHandle(ref, function () {
|
|
68
131
|
return {
|
|
69
|
-
open: function
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
132
|
+
open: function () {
|
|
133
|
+
var _open = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
134
|
+
var _data$_extend, _data$_extend2, _data$_extend3, _data$_extend4, _data$_extend5, _data$_extend6, _data$_extend7, _data$_extend8, _data$_extend9;
|
|
135
|
+
var _ref4, _is_eject, _hydratedData$_extend, open_deposit, productDetail, apiData, basePrice, hydratedData, isEject, _data;
|
|
136
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
137
|
+
while (1) switch (_context.prev = _context.next) {
|
|
138
|
+
case 0:
|
|
139
|
+
setCurrentStep(1);
|
|
140
|
+
// create 模式:只有 id/date/is_eject,先请求详情再打开
|
|
141
|
+
if (!('date' in data && !('_extend' in data))) {
|
|
142
|
+
_context.next = 25;
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
openParamsRef.current = data;
|
|
146
|
+
open_deposit = (getData === null || getData === void 0 ? void 0 : getData('bookingv2_deposit')) || 0;
|
|
147
|
+
_context.next = 6;
|
|
148
|
+
return getProductDetail(String(data.id), {
|
|
149
|
+
schedule_date: data.date,
|
|
150
|
+
is_eject: data.is_eject,
|
|
151
|
+
open_deposit: open_deposit
|
|
152
|
+
});
|
|
153
|
+
case 6:
|
|
154
|
+
productDetail = _context.sent;
|
|
155
|
+
apiData = (productDetail === null || productDetail === void 0 ? void 0 : productDetail.data) || {};
|
|
156
|
+
basePrice = Number((apiData === null || apiData === void 0 ? void 0 : apiData.price) || 0);
|
|
157
|
+
hydratedData = _objectSpread(_objectSpread({}, apiData), {}, {
|
|
158
|
+
id: (apiData === null || apiData === void 0 ? void 0 : apiData.id) || data.id,
|
|
159
|
+
product_id: (apiData === null || apiData === void 0 ? void 0 : apiData.product_id) || data.id,
|
|
160
|
+
_extend: _objectSpread(_objectSpread({}, (apiData === null || apiData === void 0 ? void 0 : apiData._extend) || {}), {}, {
|
|
161
|
+
product_name: (apiData === null || apiData === void 0 ? void 0 : apiData.title) || (apiData === null || apiData === void 0 ? void 0 : apiData.product_name) || '',
|
|
162
|
+
quantity: 1,
|
|
163
|
+
price: basePrice,
|
|
164
|
+
total: basePrice,
|
|
165
|
+
origin_total: basePrice,
|
|
166
|
+
note: '',
|
|
167
|
+
skuValue: {
|
|
168
|
+
product_id: (apiData === null || apiData === void 0 ? void 0 : apiData.id) || data.id,
|
|
169
|
+
product_variant_id: 0,
|
|
170
|
+
bundle: [],
|
|
171
|
+
option: []
|
|
172
|
+
}
|
|
173
|
+
})
|
|
174
|
+
}); // 如果该商品不需要弹窗(is_eject !== 1),则直接走确认回调,不再展示弹窗
|
|
175
|
+
isEject = Number((_ref4 = (_is_eject = apiData === null || apiData === void 0 ? void 0 : apiData.is_eject) !== null && _is_eject !== void 0 ? _is_eject : data.is_eject) !== null && _ref4 !== void 0 ? _ref4 : 0) === 1;
|
|
176
|
+
if (isEject) {
|
|
177
|
+
_context.next = 15;
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
onConfirm === null || onConfirm === void 0 || onConfirm(hydratedData);
|
|
181
|
+
modalCloseAction();
|
|
182
|
+
return _context.abrupt("return");
|
|
183
|
+
case 15:
|
|
184
|
+
setProductData(hydratedData);
|
|
185
|
+
setNote('');
|
|
186
|
+
setQuantity((apiData === null || apiData === void 0 ? void 0 : apiData.min_num_unit) || 1);
|
|
187
|
+
setDiscounts([]);
|
|
188
|
+
setSkuValue({
|
|
189
|
+
product_id: hydratedData.id,
|
|
190
|
+
product_variant_id: 0,
|
|
191
|
+
bundle: [],
|
|
192
|
+
option: []
|
|
193
|
+
});
|
|
194
|
+
setSkuDefaultValue({
|
|
195
|
+
product_id: hydratedData.id,
|
|
196
|
+
product_variant_id: 0,
|
|
197
|
+
bundle: [],
|
|
198
|
+
option: [],
|
|
199
|
+
price: (hydratedData === null || hydratedData === void 0 || (_hydratedData$_extend = hydratedData._extend) === null || _hydratedData$_extend === void 0 ? void 0 : _hydratedData$_extend.price) || 0
|
|
200
|
+
});
|
|
201
|
+
setPriceOverride(null);
|
|
202
|
+
setShowPriceAdjustModal(false);
|
|
203
|
+
setOpen(true);
|
|
204
|
+
return _context.abrupt("return");
|
|
205
|
+
case 25:
|
|
206
|
+
// edit 模式:直接使用传入的 ProductData
|
|
207
|
+
openParamsRef.current = null;
|
|
208
|
+
_data = safeClone(data);
|
|
209
|
+
setProductData(_data);
|
|
210
|
+
console.log(_data, '_data');
|
|
211
|
+
setNote((_data === null || _data === void 0 || (_data$_extend = _data._extend) === null || _data$_extend === void 0 ? void 0 : _data$_extend.note) || '');
|
|
212
|
+
setQuantity((_data === null || _data === void 0 || (_data$_extend2 = _data._extend) === null || _data$_extend2 === void 0 ? void 0 : _data$_extend2.quantity) || 1);
|
|
213
|
+
setDiscounts((_data === null || _data === void 0 ? void 0 : _data.discount_list) || []);
|
|
214
|
+
console.log({
|
|
215
|
+
product_id: _data === null || _data === void 0 ? void 0 : _data.product_id,
|
|
216
|
+
product_variant_id: (_data === null || _data === void 0 || (_data$_extend3 = _data._extend) === null || _data$_extend3 === void 0 || (_data$_extend3 = _data$_extend3.other) === null || _data$_extend3 === void 0 ? void 0 : _data$_extend3.product_variant_id) || 0,
|
|
217
|
+
bundle: (_data === null || _data === void 0 || (_data$_extend4 = _data._extend) === null || _data$_extend4 === void 0 || (_data$_extend4 = _data$_extend4.other) === null || _data$_extend4 === void 0 ? void 0 : _data$_extend4.bundle) || [],
|
|
218
|
+
option: (_data === null || _data === void 0 || (_data$_extend5 = _data._extend) === null || _data$_extend5 === void 0 || (_data$_extend5 = _data$_extend5.other) === null || _data$_extend5 === void 0 ? void 0 : _data$_extend5.option) || []
|
|
219
|
+
}, 'skuValue');
|
|
220
|
+
// setSkuValue({
|
|
221
|
+
// product_id: _data?.product_id,
|
|
222
|
+
// product_variant_id: _data?._extend?.other?.product_variant_id || 0,
|
|
223
|
+
// bundle: _data?._extend?.other?.bundle || [],
|
|
224
|
+
// option: _data?._extend?.other?.option || [],
|
|
225
|
+
// });
|
|
226
|
+
setSkuDefaultValue({
|
|
227
|
+
product_id: _data === null || _data === void 0 ? void 0 : _data.product_id,
|
|
228
|
+
product_variant_id: (_data === null || _data === void 0 || (_data$_extend6 = _data._extend) === null || _data$_extend6 === void 0 || (_data$_extend6 = _data$_extend6.other) === null || _data$_extend6 === void 0 ? void 0 : _data$_extend6.product_variant_id) || 0,
|
|
229
|
+
price: (_data === null || _data === void 0 || (_data$_extend7 = _data._extend) === null || _data$_extend7 === void 0 ? void 0 : _data$_extend7.price) || 0,
|
|
230
|
+
bundle: (_data === null || _data === void 0 || (_data$_extend8 = _data._extend) === null || _data$_extend8 === void 0 || (_data$_extend8 = _data$_extend8.other) === null || _data$_extend8 === void 0 ? void 0 : _data$_extend8.bundle) || [],
|
|
231
|
+
option: (_data === null || _data === void 0 || (_data$_extend9 = _data._extend) === null || _data$_extend9 === void 0 || (_data$_extend9 = _data$_extend9.other) === null || _data$_extend9 === void 0 ? void 0 : _data$_extend9.option) || []
|
|
232
|
+
});
|
|
233
|
+
setPriceOverride(getInitialPriceOverrideFromProductData({
|
|
234
|
+
productData: _data
|
|
235
|
+
}));
|
|
236
|
+
setShowPriceAdjustModal(false);
|
|
237
|
+
setTimeout(function () {
|
|
238
|
+
setOpen(true);
|
|
239
|
+
}, 0);
|
|
240
|
+
case 37:
|
|
241
|
+
case "end":
|
|
242
|
+
return _context.stop();
|
|
243
|
+
}
|
|
244
|
+
}, _callee);
|
|
245
|
+
}));
|
|
246
|
+
function open(_x) {
|
|
247
|
+
return _open.apply(this, arguments);
|
|
248
|
+
}
|
|
249
|
+
return open;
|
|
250
|
+
}()
|
|
81
251
|
};
|
|
82
252
|
});
|
|
83
253
|
var priceText = useMemo(function () {
|
|
@@ -87,16 +257,41 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
87
257
|
return "".concat(priceSign).concat(symbol).concat(Math.abs(Number(price)));
|
|
88
258
|
}, [productData === null || productData === void 0 || (_productData$_extend2 = productData._extend) === null || _productData$_extend2 === void 0 ? void 0 : _productData$_extend2.price, symbol]);
|
|
89
259
|
|
|
260
|
+
/**
|
|
261
|
+
* @title 商品单价(含套餐/单规格/组合规格)
|
|
262
|
+
* @description
|
|
263
|
+
* - 套餐:主商品价格 + 选择的套餐子商品(含其单规格)的总价
|
|
264
|
+
* - 单规格:主商品价格 + 单规格加价
|
|
265
|
+
* - 组合规格:使用选中变体价格作为主商品价格,再叠加 bundle/option
|
|
266
|
+
*
|
|
267
|
+
* @note 计算规则对齐 booking/utils.ts 的 getProductTotalPrice
|
|
268
|
+
*/
|
|
269
|
+
var unitPrice = useMemo(function () {
|
|
270
|
+
var activeSkuValue = skuValue !== null && skuValue !== void 0 && skuValue.product_id ? skuValue : skuDefaultValue;
|
|
271
|
+
return getSelectedUnitPrice({
|
|
272
|
+
productData: productData,
|
|
273
|
+
skuValue: activeSkuValue
|
|
274
|
+
});
|
|
275
|
+
}, [productData, skuValue, skuDefaultValue]);
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @description 最终用于展示总价的单价
|
|
279
|
+
* - 若设置过手动改价,则始终使用手动改价单价
|
|
280
|
+
* - 否则使用 sku 计算出来的单价
|
|
281
|
+
*/
|
|
282
|
+
var displayUnitPrice = useMemo(function () {
|
|
283
|
+
if (priceOverride === null || typeof priceOverride === 'undefined') return unitPrice;
|
|
284
|
+
return priceOverride;
|
|
285
|
+
}, [priceOverride, unitPrice]);
|
|
286
|
+
|
|
90
287
|
/**
|
|
91
288
|
* @title 售价小计
|
|
92
|
-
* @description
|
|
289
|
+
* @description
|
|
290
|
+
* 小计展示的是「商品单价」(即主商品 + 套餐子商品 + 单规格/组合规格加价的合计)
|
|
93
291
|
*/
|
|
94
292
|
var subtotal = useMemo(function () {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
var deQuantity = new Decimal(quantity || '1');
|
|
98
|
-
return dePrice.mul(deQuantity);
|
|
99
|
-
}, [productData === null || productData === void 0 || (_productData$_extend4 = productData._extend) === null || _productData$_extend4 === void 0 ? void 0 : _productData$_extend4.price, quantity]);
|
|
293
|
+
return new Decimal(unitPrice || 0);
|
|
294
|
+
}, [unitPrice]);
|
|
100
295
|
var subtotalText = useMemo(function () {
|
|
101
296
|
var priceSign = subtotal.toNumber() < 0 ? '-' : '';
|
|
102
297
|
return "".concat(priceSign).concat(symbol).concat(subtotal.abs().toNumber().toFixed(2));
|
|
@@ -121,69 +316,241 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
121
316
|
|
|
122
317
|
/**
|
|
123
318
|
* @title 最终价格
|
|
124
|
-
* @description
|
|
319
|
+
* @description 商品总价 = 商品单价 * 商品数量
|
|
125
320
|
*/
|
|
126
321
|
var finalTotal = useMemo(function () {
|
|
127
|
-
var deTotal = new Decimal(
|
|
322
|
+
var deTotal = new Decimal(displayUnitPrice || '0');
|
|
128
323
|
var deQuantity = new Decimal(quantity || '1');
|
|
129
324
|
return deTotal.mul(deQuantity);
|
|
130
|
-
}, [
|
|
325
|
+
}, [displayUnitPrice, quantity]);
|
|
131
326
|
var totalText = useMemo(function () {
|
|
132
327
|
var priceSign = finalTotal.toNumber() < 0 ? '-' : '';
|
|
133
328
|
return "".concat(priceSign).concat(symbol).concat(finalTotal.abs().toNumber().toFixed(2));
|
|
134
329
|
}, [finalTotal, symbol]);
|
|
135
330
|
|
|
136
331
|
/**
|
|
137
|
-
* @
|
|
138
|
-
*
|
|
332
|
+
* @description 价格变动展示(仅当设置过手动改价时展示)
|
|
333
|
+
* - 展示手动改价的单价
|
|
334
|
+
* - 展示相对 sku 单价的变动额: (priceOverride - unitPrice) * quantity
|
|
139
335
|
*/
|
|
140
|
-
var priceChange = useMemo(function () {
|
|
141
|
-
var _productData$_extend5;
|
|
142
|
-
var dePrice = new Decimal((productData === null || productData === void 0 || (_productData$_extend5 = productData._extend) === null || _productData$_extend5 === void 0 ? void 0 : _productData$_extend5.price) || '0');
|
|
143
|
-
var dePriceOverride = new Decimal(priceOverride || '0');
|
|
144
|
-
var deQuantity = new Decimal(quantity || '1');
|
|
145
|
-
return dePriceOverride.minus(dePrice).mul(deQuantity);
|
|
146
|
-
}, [priceOverride, quantity, productData === null || productData === void 0 || (_productData$_extend6 = productData._extend) === null || _productData$_extend6 === void 0 ? void 0 : _productData$_extend6.price]);
|
|
147
|
-
var priceChangeText = useMemo(function () {
|
|
148
|
-
var priceChangeNumber = priceChange.toNumber();
|
|
149
|
-
var priceChangeSign = priceChangeNumber > 0 ? '+' : priceChangeNumber < 0 ? '-' : '';
|
|
150
|
-
var absPriceChange = priceChange.abs().toNumber().toFixed(2);
|
|
151
|
-
return "".concat(priceChangeSign).concat(symbol).concat(absPriceChange);
|
|
152
|
-
}, [priceChange, symbol]);
|
|
153
336
|
var priceOverrideText = useMemo(function () {
|
|
337
|
+
if (priceOverride === null || typeof priceOverride === 'undefined') return '';
|
|
154
338
|
var prefix = "(".concat(locales.getText('pisell2.text.sku.detail.modal.price.override'), " ");
|
|
155
|
-
var
|
|
156
|
-
var
|
|
157
|
-
var
|
|
158
|
-
return "".concat(prefix).concat(
|
|
339
|
+
var overrideNumber = new Decimal(priceOverride || 0);
|
|
340
|
+
var sign = overrideNumber.toNumber() < 0 ? '-' : '';
|
|
341
|
+
var absValue = overrideNumber.abs().toNumber().toFixed(2);
|
|
342
|
+
return "".concat(prefix).concat(sign).concat(symbol).concat(absValue, ")");
|
|
159
343
|
}, [priceOverride, symbol]);
|
|
344
|
+
var priceChangeText = useMemo(function () {
|
|
345
|
+
if (priceOverride === null || typeof priceOverride === 'undefined') return '';
|
|
346
|
+
var diff = new Decimal(priceOverride || 0).minus(new Decimal(unitPrice || 0)).mul(new Decimal(quantity || 1));
|
|
347
|
+
var diffNumber = diff.toNumber();
|
|
348
|
+
var diffSign = diffNumber > 0 ? '+' : diffNumber < 0 ? '-' : '';
|
|
349
|
+
var absDiff = diff.abs().toNumber().toFixed(2);
|
|
350
|
+
return "".concat(diffSign).concat(symbol).concat(absDiff);
|
|
351
|
+
}, [priceOverride, unitPrice, quantity, symbol]);
|
|
160
352
|
var modalCloseAction = function modalCloseAction() {
|
|
161
353
|
setOpen(false);
|
|
162
354
|
setProductData(null);
|
|
163
355
|
setNote('');
|
|
164
356
|
setQuantity(1);
|
|
165
|
-
setPriceOverride(0);
|
|
166
357
|
setNoteModalOpen(false);
|
|
358
|
+
setPriceOverride(null);
|
|
167
359
|
setShowPriceAdjustModal(false);
|
|
168
360
|
setDiscounts([]);
|
|
361
|
+
openParamsRef.current = null;
|
|
169
362
|
};
|
|
170
363
|
var handleCancel = function handleCancel() {
|
|
171
364
|
modalCloseAction();
|
|
172
365
|
onClose === null || onClose === void 0 || onClose();
|
|
173
366
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @description 检查当前选择下的库存是否充足
|
|
370
|
+
*/
|
|
371
|
+
var handleCheckStock = function handleCheckStock(params) {
|
|
372
|
+
var _value$bundle;
|
|
373
|
+
var value = (params === null || params === void 0 ? void 0 : params.value) || skuValue;
|
|
374
|
+
var data = (params === null || params === void 0 ? void 0 : params.data) || productData;
|
|
375
|
+
if (!data) return true;
|
|
376
|
+
// 检测 variant 库存
|
|
377
|
+
if (value !== null && value !== void 0 && value.product_variant_id && data) {
|
|
378
|
+
var _variant;
|
|
379
|
+
var variantItem = data === null || data === void 0 || (_variant = data.variant) === null || _variant === void 0 ? void 0 : _variant.find(function (item) {
|
|
380
|
+
return item.id === value.product_variant_id;
|
|
183
381
|
});
|
|
184
|
-
|
|
185
|
-
|
|
382
|
+
var variantCanSell = checkSkuStockCanSell(variantItem);
|
|
383
|
+
if (!variantCanSell.hasStock) {
|
|
384
|
+
return false;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
// 检测 bundle 库存
|
|
388
|
+
if ((value === null || value === void 0 || (_value$bundle = value.bundle) === null || _value$bundle === void 0 ? void 0 : _value$bundle.length) > 0 && data) {
|
|
389
|
+
var bundleCanSell = value === null || value === void 0 ? void 0 : value.bundle.every(function (item) {
|
|
390
|
+
var data = checkSkuStockCanSell(item);
|
|
391
|
+
return data.hasStock;
|
|
392
|
+
});
|
|
393
|
+
if (!bundleCanSell) {
|
|
394
|
+
return false;
|
|
395
|
+
}
|
|
186
396
|
}
|
|
397
|
+
// 检测商品本身库存
|
|
398
|
+
var productCanSell = checkSkuStockCanSell(data);
|
|
399
|
+
if (!productCanSell.hasStock) {
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
return true;
|
|
403
|
+
};
|
|
404
|
+
var handleConfirm = /*#__PURE__*/function () {
|
|
405
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
406
|
+
var _bookingState$booking;
|
|
407
|
+
var _procedureRef$current, _procedureRef$current2, requiredOptionValidation, shouldValidate, _skuOptionsSelectionR, _skuOptionsSelectionR2, isValid, _skuOptionsSelectionR3, _skuOptionsSelectionR4, _bookingState$booking2, _bookingState$booking3, _bookingState$booking4, _bookingState$booking5, _bookingState$booking6, _bookingState$booking7, latestSkuValue, updatedData, stockValidation, allowAddToCartWhenOutStock, enableDontShowAgainToday, hasStock, productId, shouldSkipAlert;
|
|
408
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
409
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
410
|
+
case 0:
|
|
411
|
+
if (!(currentStep === 0)) {
|
|
412
|
+
_context2.next = 4;
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
(_procedureRef$current = procedureRef.current) === null || _procedureRef$current === void 0 || (_procedureRef$current2 = _procedureRef$current.goToStep) === null || _procedureRef$current2 === void 0 || _procedureRef$current2.call(_procedureRef$current, 1);
|
|
416
|
+
setCurrentStep(1);
|
|
417
|
+
return _context2.abrupt("return");
|
|
418
|
+
case 4:
|
|
419
|
+
/**
|
|
420
|
+
* @description Confirm 前是否需要触发 SKU 选择校验
|
|
421
|
+
* - required_option_validation 不为 0:需要校验(失败阻断)
|
|
422
|
+
* - required_option_validation 为 0:不校验(无论成功/失败都允许提交)
|
|
423
|
+
*
|
|
424
|
+
* @note 配置缺失时默认走“需要校验”,保持更安全的默认行为
|
|
425
|
+
*/
|
|
426
|
+
requiredOptionValidation = bookingState === null || bookingState === void 0 || (_bookingState$booking = bookingState.bookingConfig) === null || _bookingState$booking === void 0 || (_bookingState$booking = _bookingState$booking.config) === null || _bookingState$booking === void 0 || (_bookingState$booking = _bookingState$booking.product_setting_tab) === null || _bookingState$booking === void 0 ? void 0 : _bookingState$booking.required_option_validation;
|
|
427
|
+
shouldValidate = Number(requiredOptionValidation !== null && requiredOptionValidation !== void 0 ? requiredOptionValidation : 1) !== 0;
|
|
428
|
+
if (!shouldValidate) {
|
|
429
|
+
_context2.next = 19;
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
_context2.prev = 7;
|
|
433
|
+
_context2.next = 10;
|
|
434
|
+
return (_skuOptionsSelectionR = skuOptionsSelectionRef.current) === null || _skuOptionsSelectionR === void 0 || (_skuOptionsSelectionR2 = _skuOptionsSelectionR.validate) === null || _skuOptionsSelectionR2 === void 0 ? void 0 : _skuOptionsSelectionR2.call(_skuOptionsSelectionR);
|
|
435
|
+
case 10:
|
|
436
|
+
isValid = _context2.sent;
|
|
437
|
+
if (isValid) {
|
|
438
|
+
_context2.next = 13;
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
return _context2.abrupt("return");
|
|
442
|
+
case 13:
|
|
443
|
+
_context2.next = 19;
|
|
444
|
+
break;
|
|
445
|
+
case 15:
|
|
446
|
+
_context2.prev = 15;
|
|
447
|
+
_context2.t0 = _context2["catch"](7);
|
|
448
|
+
// 预期外错误:阻断提交,避免提交不合法数据
|
|
449
|
+
console.log('sku_detail_modal_validate_error>>>>>', _context2.t0);
|
|
450
|
+
return _context2.abrupt("return");
|
|
451
|
+
case 19:
|
|
452
|
+
if (!(productData && onConfirm)) {
|
|
453
|
+
_context2.next = 40;
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* @description 优先从 SKUOptionsSelection ref 读取最新转换后的值
|
|
458
|
+
*/
|
|
459
|
+
latestSkuValue = ((_skuOptionsSelectionR3 = skuOptionsSelectionRef.current) === null || _skuOptionsSelectionR3 === void 0 || (_skuOptionsSelectionR4 = _skuOptionsSelectionR3.getTransformValues) === null || _skuOptionsSelectionR4 === void 0 ? void 0 : _skuOptionsSelectionR4.call(_skuOptionsSelectionR3)) || skuValue || skuDefaultValue;
|
|
460
|
+
updatedData = _objectSpread(_objectSpread({}, productData), {}, {
|
|
461
|
+
discount_list: discounts || [],
|
|
462
|
+
_extend: _objectSpread(_objectSpread({}, (productData === null || productData === void 0 ? void 0 : productData._extend) || {}), {}, {
|
|
463
|
+
quantity: quantity,
|
|
464
|
+
note: note,
|
|
465
|
+
// 上层 getProductTotalPrice 依赖 other 来计算(组合规格/套餐/单规格)
|
|
466
|
+
other: getOtherFromSkuValue({
|
|
467
|
+
productData: productData,
|
|
468
|
+
skuValue: latestSkuValue
|
|
469
|
+
}),
|
|
470
|
+
skuValue: getOtherFromSkuValue({
|
|
471
|
+
productData: productData,
|
|
472
|
+
skuValue: latestSkuValue
|
|
473
|
+
})
|
|
474
|
+
}, priceOverride !== null && typeof priceOverride !== 'undefined' ? {
|
|
475
|
+
total: priceOverride
|
|
476
|
+
} : {})
|
|
477
|
+
});
|
|
478
|
+
/**
|
|
479
|
+
* @description 库存校验(受全局配置控制)
|
|
480
|
+
* - stock_validation === 1:启用库存校验
|
|
481
|
+
* - allow_add_to_cart_when_out_stock === 1:缺货允许加入购物车(弹窗提示)
|
|
482
|
+
*/
|
|
483
|
+
stockValidation = Number((_bookingState$booking2 = bookingState === null || bookingState === void 0 || (_bookingState$booking3 = bookingState.bookingConfig) === null || _bookingState$booking3 === void 0 || (_bookingState$booking3 = _bookingState$booking3.config) === null || _bookingState$booking3 === void 0 || (_bookingState$booking3 = _bookingState$booking3.stock_setting) === null || _bookingState$booking3 === void 0 ? void 0 : _bookingState$booking3.stock_validation) !== null && _bookingState$booking2 !== void 0 ? _bookingState$booking2 : 0);
|
|
484
|
+
allowAddToCartWhenOutStock = Number((_bookingState$booking4 = bookingState === null || bookingState === void 0 || (_bookingState$booking5 = bookingState.bookingConfig) === null || _bookingState$booking5 === void 0 || (_bookingState$booking5 = _bookingState$booking5.config) === null || _bookingState$booking5 === void 0 || (_bookingState$booking5 = _bookingState$booking5.stock_setting) === null || _bookingState$booking5 === void 0 ? void 0 : _bookingState$booking5.allow_add_to_cart_when_out_stock) !== null && _bookingState$booking4 !== void 0 ? _bookingState$booking4 : 0);
|
|
485
|
+
enableDontShowAgainToday = Number((_bookingState$booking6 = bookingState === null || bookingState === void 0 || (_bookingState$booking7 = bookingState.bookingConfig) === null || _bookingState$booking7 === void 0 || (_bookingState$booking7 = _bookingState$booking7.config) === null || _bookingState$booking7 === void 0 || (_bookingState$booking7 = _bookingState$booking7.stock_setting) === null || _bookingState$booking7 === void 0 ? void 0 : _bookingState$booking7.do_not_show_again_today) !== null && _bookingState$booking6 !== void 0 ? _bookingState$booking6 : 0);
|
|
486
|
+
if (!(stockValidation === 1)) {
|
|
487
|
+
_context2.next = 38;
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
hasStock = handleCheckStock({
|
|
491
|
+
value: latestSkuValue,
|
|
492
|
+
data: productData
|
|
493
|
+
});
|
|
494
|
+
if (hasStock) {
|
|
495
|
+
_context2.next = 38;
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
if (!(allowAddToCartWhenOutStock !== 1)) {
|
|
499
|
+
_context2.next = 31;
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
Toast === null || Toast === void 0 || Toast.fail(locales.getText('pisell2.skuOptionsSelection.variantItemCard.soldOut'));
|
|
503
|
+
return _context2.abrupt("return");
|
|
504
|
+
case 31:
|
|
505
|
+
// 缺货允许加入购物车:命中「今天不再提示」则直接提交
|
|
506
|
+
productId = Number((productData === null || productData === void 0 ? void 0 : productData.product_id) || 0);
|
|
507
|
+
shouldSkipAlert = enableDontShowAgainToday === 1 && hasHiddenStockAlertForToday({
|
|
508
|
+
productId: productId
|
|
509
|
+
});
|
|
510
|
+
if (shouldSkipAlert) {
|
|
511
|
+
_context2.next = 38;
|
|
512
|
+
break;
|
|
513
|
+
}
|
|
514
|
+
pendingConfirmDataRef.current = updatedData;
|
|
515
|
+
setStockAlertDontShowAgainChecked(false);
|
|
516
|
+
setStockAlertOpen(true);
|
|
517
|
+
return _context2.abrupt("return");
|
|
518
|
+
case 38:
|
|
519
|
+
onConfirm(updatedData);
|
|
520
|
+
modalCloseAction();
|
|
521
|
+
case 40:
|
|
522
|
+
case "end":
|
|
523
|
+
return _context2.stop();
|
|
524
|
+
}
|
|
525
|
+
}, _callee2, null, [[7, 15]]);
|
|
526
|
+
}));
|
|
527
|
+
return function handleConfirm() {
|
|
528
|
+
return _ref5.apply(this, arguments);
|
|
529
|
+
};
|
|
530
|
+
}();
|
|
531
|
+
var handleStockAlertCancel = function handleStockAlertCancel() {
|
|
532
|
+
pendingConfirmDataRef.current = null;
|
|
533
|
+
setStockAlertOpen(false);
|
|
534
|
+
setStockAlertDontShowAgainChecked(false);
|
|
535
|
+
};
|
|
536
|
+
var handleStockAlertContinue = function handleStockAlertContinue() {
|
|
537
|
+
var _bookingState$booking8, _bookingState$booking9;
|
|
538
|
+
var pendingData = pendingConfirmDataRef.current;
|
|
539
|
+
if (!pendingData) {
|
|
540
|
+
setStockAlertOpen(false);
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
var enableDontShowAgainToday = Number((_bookingState$booking8 = bookingState === null || bookingState === void 0 || (_bookingState$booking9 = bookingState.bookingConfig) === null || _bookingState$booking9 === void 0 || (_bookingState$booking9 = _bookingState$booking9.config) === null || _bookingState$booking9 === void 0 || (_bookingState$booking9 = _bookingState$booking9.stock_setting) === null || _bookingState$booking9 === void 0 ? void 0 : _bookingState$booking9.do_not_show_again_today) !== null && _bookingState$booking8 !== void 0 ? _bookingState$booking8 : 0);
|
|
544
|
+
if (enableDontShowAgainToday === 1 && stockAlertDontShowAgainChecked) {
|
|
545
|
+
var productId = Number((productData === null || productData === void 0 ? void 0 : productData.product_id) || 0);
|
|
546
|
+
setHiddenStockAlertForToday({
|
|
547
|
+
productId: productId
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
onConfirm === null || onConfirm === void 0 || onConfirm(pendingData);
|
|
551
|
+
pendingConfirmDataRef.current = null;
|
|
552
|
+
setStockAlertOpen(false);
|
|
553
|
+
modalCloseAction();
|
|
187
554
|
};
|
|
188
555
|
var handleRemove = function handleRemove() {
|
|
189
556
|
if (productData && onRemove) {
|
|
@@ -191,13 +558,6 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
191
558
|
modalCloseAction();
|
|
192
559
|
}
|
|
193
560
|
};
|
|
194
|
-
var handleManualPriceChange = function handleManualPriceChange() {
|
|
195
|
-
if (productData) {
|
|
196
|
-
// 这里可以打开一个价格修改弹窗
|
|
197
|
-
console.log('Manual price change for:', productData.id);
|
|
198
|
-
onOpenPriceAdjust();
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
561
|
var handleQuantityChange = function handleQuantityChange(value) {
|
|
202
562
|
if (value && value > 0) {
|
|
203
563
|
setQuantity(value);
|
|
@@ -214,7 +574,8 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
214
574
|
var onNoteCancel = function onNoteCancel() {
|
|
215
575
|
setNoteModalOpen(false);
|
|
216
576
|
};
|
|
217
|
-
var
|
|
577
|
+
var handleManualPriceChange = function handleManualPriceChange() {
|
|
578
|
+
if (!productData) return;
|
|
218
579
|
setShowPriceAdjustModal(true);
|
|
219
580
|
};
|
|
220
581
|
var handlePriceAdjustConfirm = function handlePriceAdjustConfirm(value) {
|
|
@@ -231,115 +592,220 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
231
592
|
if (!title) return '';
|
|
232
593
|
return Array.from(title).slice(0, 2).join('');
|
|
233
594
|
}, [productData === null || productData === void 0 ? void 0 : productData.title]);
|
|
595
|
+
var isCreateMode = !!openParamsRef.current;
|
|
596
|
+
var leftContent = function leftContent() {
|
|
597
|
+
return (
|
|
598
|
+
/*#__PURE__*/
|
|
599
|
+
/* 左侧商品图片和操作 */
|
|
600
|
+
React.createElement("div", {
|
|
601
|
+
className: "sku-detail-left"
|
|
602
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
603
|
+
className: "sku-detail-left-content"
|
|
604
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
605
|
+
className: "product-image"
|
|
606
|
+
}, productData !== null && productData !== void 0 && productData.cover ? /*#__PURE__*/React.createElement("img", {
|
|
607
|
+
src: (productData === null || productData === void 0 ? void 0 : productData.cover) || ''
|
|
608
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
609
|
+
className: "product-cover-text"
|
|
610
|
+
}, coverText)), /*#__PURE__*/React.createElement("div", {
|
|
611
|
+
className: "product-info"
|
|
612
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
613
|
+
className: "product-info-left"
|
|
614
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
615
|
+
className: "product-name"
|
|
616
|
+
}, (productData === null || productData === void 0 ? void 0 : productData.title) || ''), /*#__PURE__*/React.createElement("div", {
|
|
617
|
+
className: "product-spec"
|
|
618
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
619
|
+
className: "product-actions"
|
|
620
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
621
|
+
size: "large",
|
|
622
|
+
className: "add-note-btn",
|
|
623
|
+
onClick: function onClick() {
|
|
624
|
+
return setNoteModalOpen(true);
|
|
625
|
+
}
|
|
626
|
+
}, locales.getText('pisell2.text.sku.detail.modal.btn.add.note'))), note && /*#__PURE__*/React.createElement("div", {
|
|
627
|
+
className: "note-section"
|
|
628
|
+
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.note')), /*#__PURE__*/React.createElement("div", {
|
|
629
|
+
className: "note-text",
|
|
630
|
+
onClick: function onClick() {
|
|
631
|
+
return setNoteModalOpen(true);
|
|
632
|
+
}
|
|
633
|
+
}, note))), /*#__PURE__*/React.createElement("div", {
|
|
634
|
+
className: "price-summary-section"
|
|
635
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
636
|
+
className: "price-item"
|
|
637
|
+
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.subtotal')), /*#__PURE__*/React.createElement("div", null, subtotalText)), /*#__PURE__*/React.createElement("div", {
|
|
638
|
+
className: "price-item"
|
|
639
|
+
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.discount'), discountsCount > 0 && /*#__PURE__*/React.createElement("span", {
|
|
640
|
+
className: "price-item-danger"
|
|
641
|
+
}, "\xA0(", discountsCount, ")")), /*#__PURE__*/React.createElement("div", {
|
|
642
|
+
className: "price-item-danger"
|
|
643
|
+
}, discountsCount > 0 ? '-' : '', symbol, totalDiscounts)), /*#__PURE__*/React.createElement("div", {
|
|
644
|
+
className: "price-item-total"
|
|
645
|
+
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.total'), /*#__PURE__*/React.createElement("span", {
|
|
646
|
+
className: "price-item-total-gst"
|
|
647
|
+
}, "\uFF08", productData !== null && productData !== void 0 && productData.is_charge_tax ? locales.getText('pisell2.text.sku.detail.modal.gst.incl') : locales.getText('pisell2.text.sku.detail.modal.gst.excl'), "\uFF09")), /*#__PURE__*/React.createElement("div", null, totalText))))
|
|
648
|
+
);
|
|
649
|
+
};
|
|
234
650
|
if (!productData) return null;
|
|
651
|
+
var rightContent = function rightContent() {
|
|
652
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
653
|
+
className: "sku-detail-right-content"
|
|
654
|
+
}, currentStep === 0 && /*#__PURE__*/React.createElement("div", {
|
|
655
|
+
className: "sku-detail-right-content-detail"
|
|
656
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
657
|
+
className: "sku-detail-right-content-detail-title"
|
|
658
|
+
}, (productData === null || productData === void 0 ? void 0 : productData.title) || ''), /*#__PURE__*/React.createElement("div", {
|
|
659
|
+
className: "sku-detail-right-content-detail-description"
|
|
660
|
+
}, (productData === null || productData === void 0 ? void 0 : productData.subtitle) || '')), currentStep === 1 && /*#__PURE__*/React.createElement(SKUOptionsSelection, {
|
|
661
|
+
ref: skuOptionsSelectionRef,
|
|
662
|
+
dataSource: productData,
|
|
663
|
+
value: skuDefaultValue,
|
|
664
|
+
skuCardConfig: {
|
|
665
|
+
title: {
|
|
666
|
+
lineClamp: 1
|
|
667
|
+
},
|
|
668
|
+
subTitle: {
|
|
669
|
+
lineClamp: 1
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
onChange: function onChange(v) {
|
|
673
|
+
setSkuValue(v);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* SelectorGroup 内部会基于 scroll parent 计算滚动位置(切换分类/滚动到错误项等)
|
|
677
|
+
* 这里让右侧内容区域自身成为滚动容器(见 index.less),并把 scroll parent 指向它
|
|
678
|
+
*/,
|
|
679
|
+
customScrollParent: ".pisell-sku-detail-modal .sku-detail-right-content"
|
|
680
|
+
}));
|
|
681
|
+
};
|
|
682
|
+
var leftHeaderClose = function leftHeaderClose() {
|
|
683
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
684
|
+
className: "sku-detail-left-close",
|
|
685
|
+
onClick: handleCancel
|
|
686
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
687
|
+
type: "pisell2-x-close"
|
|
688
|
+
}), locales.getText('pisell2.text.sku.detail.modal.btn.close'));
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* @description Procedure Header:返回按钮(仅在非第一步展示)
|
|
693
|
+
* - 第一页不展示,但必须渲染一个空 div 占位,避免 header 布局抖动
|
|
694
|
+
*/
|
|
695
|
+
var leftHeaderBack = function leftHeaderBack() {
|
|
696
|
+
if (currentStep === 0) {
|
|
697
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
698
|
+
className: "sku-detail-left-back-placeholder"
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
702
|
+
className: "sku-detail-left-back",
|
|
703
|
+
onClick: function onClick() {
|
|
704
|
+
var _procedureRef$current3, _procedureRef$current4;
|
|
705
|
+
(_procedureRef$current3 = procedureRef.current) === null || _procedureRef$current3 === void 0 || (_procedureRef$current4 = _procedureRef$current3.goToStep) === null || _procedureRef$current4 === void 0 || _procedureRef$current4.call(_procedureRef$current3, 0);
|
|
706
|
+
setCurrentStep(0);
|
|
707
|
+
}
|
|
708
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
709
|
+
type: "pisell2-arrow-left"
|
|
710
|
+
}), locales.getText('pisell2.text.sku.detail.modal.btn.back'));
|
|
711
|
+
};
|
|
235
712
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PisellModal, {
|
|
236
713
|
platform: "pc",
|
|
237
714
|
open: open,
|
|
238
|
-
|
|
715
|
+
header: null,
|
|
239
716
|
headerDivider: false,
|
|
240
717
|
footer: null,
|
|
241
718
|
onCancel: handleCancel,
|
|
719
|
+
closable: false,
|
|
242
720
|
destroyOnClose: true,
|
|
243
721
|
width: 880,
|
|
244
722
|
className: "pisell-sku-detail-modal"
|
|
245
|
-
}, /*#__PURE__*/React.createElement(
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
className: "sku-detail-right"
|
|
267
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
268
|
-
className: "product-info"
|
|
269
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
270
|
-
className: "product-info-left"
|
|
271
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
272
|
-
className: "product-name"
|
|
273
|
-
}, (productData === null || productData === void 0 ? void 0 : productData.title) || ''), /*#__PURE__*/React.createElement("div", {
|
|
274
|
-
className: "product-spec"
|
|
275
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
276
|
-
className: "item-price"
|
|
277
|
-
}, priceText)), /*#__PURE__*/React.createElement("div", {
|
|
278
|
-
className: "quantity-section"
|
|
279
|
-
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(PisellNumberSelector, {
|
|
280
|
-
value: quantity,
|
|
281
|
-
onChange: handleQuantityChange,
|
|
282
|
-
min: 1,
|
|
283
|
-
max: 99999,
|
|
284
|
-
step: 1,
|
|
285
|
-
size: "middle",
|
|
286
|
-
enablePriceAdjust: true
|
|
287
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
288
|
-
className: "note-section"
|
|
289
|
-
}, note && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.note')), /*#__PURE__*/React.createElement("div", {
|
|
290
|
-
className: "note-text",
|
|
291
|
-
onClick: function onClick() {
|
|
292
|
-
return setNoteModalOpen(true);
|
|
293
|
-
}
|
|
294
|
-
}, note))), /*#__PURE__*/React.createElement("div", {
|
|
295
|
-
className: "price-summary-section"
|
|
296
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
297
|
-
className: "price-item"
|
|
298
|
-
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.subtotal')), /*#__PURE__*/React.createElement("div", null, subtotalText)), /*#__PURE__*/React.createElement("div", {
|
|
299
|
-
className: "price-item"
|
|
300
|
-
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.discount'), discountsCount > 0 && /*#__PURE__*/React.createElement("span", {
|
|
301
|
-
className: "price-item-danger"
|
|
302
|
-
}, "\xA0(", discountsCount, ")")), /*#__PURE__*/React.createElement("div", {
|
|
303
|
-
className: "price-item-danger"
|
|
304
|
-
}, discountsCount > 0 ? '-' : '', symbol, totalDiscounts)), /*#__PURE__*/React.createElement("div", {
|
|
305
|
-
className: "price-item"
|
|
306
|
-
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.manual.price.change'), /*#__PURE__*/React.createElement("span", {
|
|
307
|
-
className: "price-item-override",
|
|
308
|
-
onClick: onOpenPriceAdjust
|
|
309
|
-
}, priceOverrideText)), /*#__PURE__*/React.createElement("div", {
|
|
310
|
-
className: "price-item-danger"
|
|
311
|
-
}, discountsCount > 0 ? "".concat(symbol, "0.00") : priceChangeText)), /*#__PURE__*/React.createElement("div", {
|
|
312
|
-
className: "price-item-total"
|
|
313
|
-
}, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.sku.detail.modal.total'), /*#__PURE__*/React.createElement("span", {
|
|
314
|
-
className: "price-item-total-gst"
|
|
315
|
-
}, "\uFF08", productData !== null && productData !== void 0 && productData.is_charge_tax ? locales.getText('pisell2.text.sku.detail.modal.gst.incl') : locales.getText('pisell2.text.sku.detail.modal.gst.excl'), "\uFF09")), /*#__PURE__*/React.createElement("div", null, totalText))))), /*#__PURE__*/React.createElement("div", {
|
|
316
|
-
className: "sku-detail-content-footer"
|
|
317
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
318
|
-
type: "primary",
|
|
319
|
-
danger: true,
|
|
320
|
-
size: "large",
|
|
321
|
-
icon: /*#__PURE__*/React.createElement(Delete_wght300_24px, {
|
|
322
|
-
style: {
|
|
323
|
-
fontSize: 20
|
|
723
|
+
}, /*#__PURE__*/React.createElement(PisellProcedure, {
|
|
724
|
+
ref: procedureRef,
|
|
725
|
+
className: "pisell-sku-procedure",
|
|
726
|
+
mode: "modal",
|
|
727
|
+
defaultCurrent: currentStep,
|
|
728
|
+
onStepsChange: function onStepsChange(result) {
|
|
729
|
+
setCurrentStep(result.currentStep);
|
|
730
|
+
},
|
|
731
|
+
headerProps: {
|
|
732
|
+
showBackOnFirstStep: true,
|
|
733
|
+
showSteps: true,
|
|
734
|
+
left: leftHeaderBack(),
|
|
735
|
+
right: leftHeaderClose(),
|
|
736
|
+
stepsProps: {
|
|
737
|
+
items: [{
|
|
738
|
+
title: locales.getText('pisell2.text.sku.detail.modal.step.details'),
|
|
739
|
+
description: ''
|
|
740
|
+
}, {
|
|
741
|
+
title: locales.getText('pisell2.text.sku.detail.modal.step.select.bundle'),
|
|
742
|
+
description: ''
|
|
743
|
+
}]
|
|
324
744
|
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
745
|
+
},
|
|
746
|
+
onFirstStepBack: function onFirstStepBack() {
|
|
747
|
+
handleCancel();
|
|
748
|
+
},
|
|
749
|
+
showSideBar: true,
|
|
750
|
+
showFooter: true,
|
|
751
|
+
bodyProps: {
|
|
752
|
+
direction: 'horizontal',
|
|
753
|
+
contentOrder: 'sidebar-first',
|
|
754
|
+
contentSlot: rightContent(),
|
|
755
|
+
sidebarSlot: leftContent(),
|
|
756
|
+
sidebarContainerSelector: '.pisell-sku-detail-modal'
|
|
757
|
+
},
|
|
758
|
+
footerProps: {
|
|
759
|
+
position: 'fixed-bottom',
|
|
760
|
+
style: {
|
|
761
|
+
height: '72px !important'
|
|
762
|
+
},
|
|
763
|
+
leftSlot: /*#__PURE__*/React.createElement("div", {
|
|
764
|
+
className: "quantity-section"
|
|
765
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
766
|
+
className: "quantity-section-title"
|
|
767
|
+
}, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(PisellNumberSelector, {
|
|
768
|
+
value: quantity,
|
|
769
|
+
width: "120px",
|
|
770
|
+
onChange: handleQuantityChange,
|
|
771
|
+
min: 1,
|
|
772
|
+
max: 99999,
|
|
773
|
+
step: 1,
|
|
774
|
+
size: "middle",
|
|
775
|
+
enablePriceAdjust: true
|
|
776
|
+
})),
|
|
777
|
+
actions: /*#__PURE__*/React.createElement("div", {
|
|
778
|
+
className: "sku-detail-content-footer"
|
|
779
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
780
|
+
className: "modal-actions"
|
|
781
|
+
}, isCreateMode ? /*#__PURE__*/React.createElement(Button, {
|
|
782
|
+
type: "default",
|
|
783
|
+
size: "large",
|
|
784
|
+
className: "sku-detail-content-footer-remove-btn",
|
|
785
|
+
onClick: handleCancel
|
|
786
|
+
}, locales.getText('pisell2.text.cancel') || 'Cancel') : /*#__PURE__*/React.createElement(Button, {
|
|
787
|
+
type: "primary",
|
|
788
|
+
danger: true,
|
|
789
|
+
size: "large",
|
|
790
|
+
icon: /*#__PURE__*/React.createElement(Delete_wght300_24px, {
|
|
791
|
+
style: {
|
|
792
|
+
fontSize: 20
|
|
793
|
+
}
|
|
794
|
+
}),
|
|
795
|
+
className: "sku-detail-content-footer-remove-btn",
|
|
796
|
+
onClick: handleRemove
|
|
797
|
+
}, locales.getText('pisell2.text.sku.detail.modal.btn.remove')), /*#__PURE__*/React.createElement(Button, {
|
|
798
|
+
type: "primary",
|
|
799
|
+
size: "large",
|
|
800
|
+
onClick: handleConfirm,
|
|
801
|
+
className: "sku-detail-content-footer-confirm-btn"
|
|
802
|
+
}, currentStep === 0 ? /*#__PURE__*/React.createElement("span", {
|
|
803
|
+
className: "sku-detail-content-footer-confirm-btn-text"
|
|
804
|
+
}, locales.getText('pisell2.text.sku.detail.modal.btn.next')) : /*#__PURE__*/React.createElement("span", {
|
|
805
|
+
className: "sku-detail-content-footer-confirm-btn-text"
|
|
806
|
+
}, locales.getText('pisell2.text.sku.detail.modal.btn.confirm')))))
|
|
807
|
+
}
|
|
808
|
+
}), noteModalOpen && /*#__PURE__*/React.createElement(NoteModal, {
|
|
343
809
|
open: noteModalOpen,
|
|
344
810
|
value: note,
|
|
345
811
|
onCancel: onNoteCancel,
|
|
@@ -356,14 +822,196 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
356
822
|
// 允许一口价超出原价
|
|
357
823
|
,
|
|
358
824
|
enableExceedMaxAmount: true,
|
|
359
|
-
originalValue:
|
|
360
|
-
defaultValue:
|
|
825
|
+
originalValue: displayUnitPrice || 0,
|
|
826
|
+
defaultValue: displayUnitPrice || 0,
|
|
361
827
|
onEnter: function onEnter(discountAmount) {
|
|
362
|
-
//
|
|
363
|
-
var
|
|
364
|
-
handlePriceAdjustConfirm(
|
|
828
|
+
// 将折扣值转化为最终“单价”
|
|
829
|
+
var nextUnitPrice = new Decimal(displayUnitPrice || 0).minus(discountAmount).toNumber();
|
|
830
|
+
handlePriceAdjustConfirm(nextUnitPrice);
|
|
365
831
|
},
|
|
366
832
|
selectType: "dark"
|
|
367
|
-
}))
|
|
833
|
+
})), /*#__PURE__*/React.createElement(PisellModal, {
|
|
834
|
+
platform: "pc",
|
|
835
|
+
open: stockAlertOpen,
|
|
836
|
+
title: locales.getText('pisell2.text.sku.detail.modal.stock.alert.title'),
|
|
837
|
+
headerDivider: false,
|
|
838
|
+
footer: /*#__PURE__*/React.createElement("div", {
|
|
839
|
+
style: {
|
|
840
|
+
width: '100%',
|
|
841
|
+
display: 'flex',
|
|
842
|
+
justifyContent: 'flex-end',
|
|
843
|
+
gap: 12
|
|
844
|
+
}
|
|
845
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
846
|
+
size: "large",
|
|
847
|
+
onClick: handleStockAlertCancel
|
|
848
|
+
}, locales.getText('pisell2.text.sku.detail.modal.stock.alert.btn.cancel')), /*#__PURE__*/React.createElement(Button, {
|
|
849
|
+
type: "primary",
|
|
850
|
+
size: "large",
|
|
851
|
+
onClick: handleStockAlertContinue
|
|
852
|
+
}, locales.getText('pisell2.text.sku.detail.modal.stock.alert.btn.continue'))),
|
|
853
|
+
width: 520,
|
|
854
|
+
centered: true,
|
|
855
|
+
destroyOnClose: true,
|
|
856
|
+
maskClosable: false,
|
|
857
|
+
zIndex: 2000,
|
|
858
|
+
onCancel: handleStockAlertCancel
|
|
859
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
860
|
+
style: {
|
|
861
|
+
padding: '40px 0 0 0'
|
|
862
|
+
}
|
|
863
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
864
|
+
style: {
|
|
865
|
+
color: '#344054',
|
|
866
|
+
fontSize: 14,
|
|
867
|
+
lineHeight: '22px'
|
|
868
|
+
}
|
|
869
|
+
}, locales.getText('pisell2.text.sku.detail.modal.stock.alert.desc')), Number((_bookingState$booking10 = bookingState === null || bookingState === void 0 || (_bookingState$booking11 = bookingState.bookingConfig) === null || _bookingState$booking11 === void 0 || (_bookingState$booking11 = _bookingState$booking11.config) === null || _bookingState$booking11 === void 0 || (_bookingState$booking11 = _bookingState$booking11.stock_setting) === null || _bookingState$booking11 === void 0 ? void 0 : _bookingState$booking11.do_not_show_again_today) !== null && _bookingState$booking10 !== void 0 ? _bookingState$booking10 : 0) === 1 && /*#__PURE__*/React.createElement("div", {
|
|
870
|
+
style: {
|
|
871
|
+
marginTop: 16
|
|
872
|
+
}
|
|
873
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
874
|
+
checked: stockAlertDontShowAgainChecked,
|
|
875
|
+
onChange: function onChange(e) {
|
|
876
|
+
var _e$target;
|
|
877
|
+
setStockAlertDontShowAgainChecked(!!(e !== null && e !== void 0 && (_e$target = e.target) !== null && _e$target !== void 0 && _e$target.checked));
|
|
878
|
+
}
|
|
879
|
+
}, locales.getText('pisell2.text.sku.detail.modal.stock.alert.checkbox'))))));
|
|
368
880
|
};
|
|
369
|
-
export default /*#__PURE__*/forwardRef(SkuDetailModal);
|
|
881
|
+
export default /*#__PURE__*/forwardRef(SkuDetailModal);
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* @description 获取本地当天日期 key(本地时区)
|
|
885
|
+
*/
|
|
886
|
+
function getLocalDayKey() {
|
|
887
|
+
var now = new Date();
|
|
888
|
+
var yyyy = String(now.getFullYear());
|
|
889
|
+
var mm = String(now.getMonth() + 1).padStart(2, '0');
|
|
890
|
+
var dd = String(now.getDate()).padStart(2, '0');
|
|
891
|
+
return "".concat(yyyy, "-").concat(mm, "-").concat(dd);
|
|
892
|
+
}
|
|
893
|
+
function getStockAlertStorageKey(params) {
|
|
894
|
+
return "pisell2_stock_alert_hidden_".concat(params.productId);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* @description 判断今天是否已对该商品隐藏库存提示
|
|
899
|
+
*/
|
|
900
|
+
function hasHiddenStockAlertForToday(params) {
|
|
901
|
+
try {
|
|
902
|
+
if (!params.productId) return false;
|
|
903
|
+
if (typeof window === 'undefined') return false;
|
|
904
|
+
var key = getStockAlertStorageKey(params);
|
|
905
|
+
var value = window.localStorage.getItem(key);
|
|
906
|
+
return value === getLocalDayKey();
|
|
907
|
+
} catch (error) {
|
|
908
|
+
return false;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* @description 设置今天对该商品隐藏库存提示
|
|
914
|
+
*/
|
|
915
|
+
function setHiddenStockAlertForToday(params) {
|
|
916
|
+
try {
|
|
917
|
+
if (!params.productId) return;
|
|
918
|
+
if (typeof window === 'undefined') return;
|
|
919
|
+
var key = getStockAlertStorageKey(params);
|
|
920
|
+
window.localStorage.setItem(key, getLocalDayKey());
|
|
921
|
+
} catch (error) {}
|
|
922
|
+
}
|
|
923
|
+
function safeClone(value) {
|
|
924
|
+
try {
|
|
925
|
+
// eslint-disable-next-line no-undef
|
|
926
|
+
if (typeof structuredClone === 'function') return structuredClone(value);
|
|
927
|
+
} catch (error) {}
|
|
928
|
+
return JSON.parse(JSON.stringify(value));
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* @description
|
|
933
|
+
* 根据当前 skuValue(组合规格/单规格/套餐)计算“商品单价”
|
|
934
|
+
* 计算规则与 booking/utils.ts 的 getProductTotalPrice 保持一致。
|
|
935
|
+
*/
|
|
936
|
+
function getSelectedUnitPrice(params) {
|
|
937
|
+
var _ref6, _productData$_extend$, _productData$_extend3;
|
|
938
|
+
var productData = params.productData,
|
|
939
|
+
skuValue = params.skuValue;
|
|
940
|
+
if (!productData) return 0;
|
|
941
|
+
|
|
942
|
+
// base price(默认商品基础价;如果选了组合规格则用对应 variant.price/base_price)
|
|
943
|
+
var price = new Decimal((_ref6 = (_productData$_extend$ = productData === null || productData === void 0 || (_productData$_extend3 = productData._extend) === null || _productData$_extend3 === void 0 ? void 0 : _productData$_extend3.price) !== null && _productData$_extend$ !== void 0 ? _productData$_extend$ : productData === null || productData === void 0 ? void 0 : productData.price) !== null && _ref6 !== void 0 ? _ref6 : 0);
|
|
944
|
+
if (skuValue !== null && skuValue !== void 0 && skuValue.product_variant_id) {
|
|
945
|
+
var _variant2;
|
|
946
|
+
var variantItem = productData === null || productData === void 0 || (_variant2 = productData.variant) === null || _variant2 === void 0 ? void 0 : _variant2.find(function (item) {
|
|
947
|
+
return Number(item === null || item === void 0 ? void 0 : item.id) === Number(skuValue.product_variant_id);
|
|
948
|
+
});
|
|
949
|
+
if (variantItem) {
|
|
950
|
+
var _ref7, _variantItem$price;
|
|
951
|
+
price = new Decimal((_ref7 = (_variantItem$price = variantItem === null || variantItem === void 0 ? void 0 : variantItem.price) !== null && _variantItem$price !== void 0 ? _variantItem$price : variantItem === null || variantItem === void 0 ? void 0 : variantItem.base_price) !== null && _ref7 !== void 0 ? _ref7 : 0);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
// bundle(套餐)
|
|
956
|
+
if (Array.isArray(skuValue === null || skuValue === void 0 ? void 0 : skuValue.bundle) && skuValue.bundle.length > 0) {
|
|
957
|
+
price = skuValue.bundle.reduce(function (accumulator, currentValue) {
|
|
958
|
+
var currentPrice = new Decimal((currentValue === null || currentValue === void 0 ? void 0 : currentValue.price) || 0);
|
|
959
|
+
var currentNum = new Decimal((currentValue === null || currentValue === void 0 ? void 0 : currentValue.num) || 0);
|
|
960
|
+
return accumulator.add(currentPrice.mul(currentNum));
|
|
961
|
+
}, price);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
// option(单规格)
|
|
965
|
+
if (Array.isArray(skuValue === null || skuValue === void 0 ? void 0 : skuValue.option) && skuValue.option.length > 0) {
|
|
966
|
+
price = skuValue.option.reduce(function (accumulator, currentValue) {
|
|
967
|
+
var currentPrice = new Decimal((currentValue === null || currentValue === void 0 ? void 0 : currentValue.price) || 0);
|
|
968
|
+
var currentNum = new Decimal((currentValue === null || currentValue === void 0 ? void 0 : currentValue.num) || 0);
|
|
969
|
+
return accumulator.add(currentPrice.mul(currentNum));
|
|
970
|
+
}, price);
|
|
971
|
+
}
|
|
972
|
+
return price.toNumber();
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* @description
|
|
977
|
+
* 生成给 booking 侧使用的 other 字段(用于 getProductTotalPrice 按同规则算价)
|
|
978
|
+
*/
|
|
979
|
+
function getOtherFromSkuValue(params) {
|
|
980
|
+
var productData = params.productData,
|
|
981
|
+
skuValue = params.skuValue;
|
|
982
|
+
var other = {
|
|
983
|
+
product_variant_id: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.product_variant_id) || 0,
|
|
984
|
+
bundle: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.bundle) || [],
|
|
985
|
+
option: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.option) || []
|
|
986
|
+
};
|
|
987
|
+
if (other.product_variant_id && productData) {
|
|
988
|
+
var _variant3;
|
|
989
|
+
var variantItem = productData === null || productData === void 0 || (_variant3 = productData.variant) === null || _variant3 === void 0 ? void 0 : _variant3.find(function (item) {
|
|
990
|
+
return Number(item === null || item === void 0 ? void 0 : item.id) === Number(other.product_variant_id);
|
|
991
|
+
});
|
|
992
|
+
if (variantItem) {
|
|
993
|
+
var _ref8, _variantItem$price2;
|
|
994
|
+
other.price = Number((_ref8 = (_variantItem$price2 = variantItem === null || variantItem === void 0 ? void 0 : variantItem.price) !== null && _variantItem$price2 !== void 0 ? _variantItem$price2 : variantItem === null || variantItem === void 0 ? void 0 : variantItem.base_price) !== null && _ref8 !== void 0 ? _ref8 : 0);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
return other;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* @description
|
|
1002
|
+
* 尝试从旧数据推断“手动改价单价”:
|
|
1003
|
+
* - 若 total 与 origin_total / price 不一致,则认为是手动改价
|
|
1004
|
+
* - 否则返回 null(表示未设置手动改价)
|
|
1005
|
+
*/
|
|
1006
|
+
function getInitialPriceOverrideFromProductData(params) {
|
|
1007
|
+
var _extend, _extend2, _ref9, _extend$price, _extend3;
|
|
1008
|
+
var data = params.productData;
|
|
1009
|
+
if (!data) return null;
|
|
1010
|
+
var total = Number(data === null || data === void 0 || (_extend = data._extend) === null || _extend === void 0 ? void 0 : _extend.total);
|
|
1011
|
+
var originTotal = Number(data === null || data === void 0 || (_extend2 = data._extend) === null || _extend2 === void 0 ? void 0 : _extend2.origin_total);
|
|
1012
|
+
var basePrice = Number((_ref9 = (_extend$price = data === null || data === void 0 || (_extend3 = data._extend) === null || _extend3 === void 0 ? void 0 : _extend3.price) !== null && _extend$price !== void 0 ? _extend$price : data === null || data === void 0 ? void 0 : data.price) !== null && _ref9 !== void 0 ? _ref9 : 0);
|
|
1013
|
+
if (!Number.isFinite(total)) return null;
|
|
1014
|
+
if (Number.isFinite(originTotal) && total !== originTotal) return total;
|
|
1015
|
+
if (Number.isFinite(basePrice) && total !== basePrice) return total;
|
|
1016
|
+
return null;
|
|
1017
|
+
}
|