@pisell/private-materials 6.3.70 → 6.3.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/Sales/Cart/index.js +20 -3
- package/es/components/Sales/Cart/utils.d.ts +5 -0
- package/es/components/Sales/Cart/utils.js +16 -0
- package/es/components/Sales/Summary/utils.js +5 -4
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +8 -7
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
- package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/es/components/eventBooking/components/Voucher/index.js +266 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/index.js +531 -0
- package/es/components/kioskSkuDetail/index.less +196 -0
- package/es/components/kioskSkuDetail/locales.d.ts +27 -0
- package/es/components/kioskSkuDetail/locales.js +26 -0
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/walletList/index.js +7 -2
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/es/plus/saasRegister/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/store/actions.js +17 -2
- package/es/plus/skuOptionsSelection/types.d.ts +5 -0
- package/es/plus/skuOptionsSelection/types.js +2 -1
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/serve.d.ts +8 -0
- package/es/plus/walletPassGallery/serve.js +78 -52
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/index.js +155 -0
- package/es/pro/numberKeyboard/index.less +25 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/numberKeyboard/locales.js +11 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellNumberSelector/index.d.ts +29 -0
- package/es/pro/pisellNumberSelector/index.js +257 -0
- package/es/pro/pisellNumberSelector/index.less +235 -0
- package/es/pro/skuDetailModal/index.d.ts +4 -0
- package/es/pro/skuDetailModal/index.js +1031 -0
- package/lib/components/Sales/Cart/index.js +25 -7
- package/lib/components/Sales/Cart/utils.d.ts +5 -0
- package/lib/components/Sales/Cart/utils.js +13 -1
- package/lib/components/Sales/Summary/utils.js +2 -4
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
- package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Voucher/index.js +197 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/index.js +393 -0
- package/lib/components/kioskSkuDetail/index.less +196 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
- package/lib/components/kioskSkuDetail/locales.js +50 -0
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/walletList/index.js +5 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +7 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/lib/plus/saasRegister/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
- package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/types.js +2 -1
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/serve.d.ts +8 -0
- package/lib/plus/walletPassGallery/serve.js +23 -10
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/index.js +182 -0
- package/lib/pro/numberKeyboard/index.less +25 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/numberKeyboard/locales.js +35 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
- package/lib/pro/pisellNumberSelector/index.js +275 -0
- package/lib/pro/pisellNumberSelector/index.less +235 -0
- package/lib/pro/skuDetailModal/index.d.ts +4 -0
- package/lib/pro/skuDetailModal/index.js +736 -0
- package/lowcode/kiosk-sku-detail/meta.ts +264 -0
- package/package.json +3 -3
|
@@ -225,7 +225,7 @@ var CartProvider = ({ children }) => {
|
|
|
225
225
|
});
|
|
226
226
|
};
|
|
227
227
|
const createCartItemData = () => {
|
|
228
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
228
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
229
229
|
const _cartData = getCurrentData().cartData;
|
|
230
230
|
if (_cartData.currentCartItem) {
|
|
231
231
|
const {
|
|
@@ -241,16 +241,24 @@ var CartProvider = ({ children }) => {
|
|
|
241
241
|
const endDateInfo = (_g = (_f = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _f.selectDate) == null ? void 0 : _g.endDateInfo;
|
|
242
242
|
const endTime = (_j = (_i = (_h = endDateInfo == null ? void 0 : endDateInfo.times) == null ? void 0 : _h.slice(-1)) == null ? void 0 : _i[0]) == null ? void 0 : _j.end_at;
|
|
243
243
|
const num = 1;
|
|
244
|
-
const { totalPrice, originTotal, is_charge_tax } = (0, import_utils3.handleProductInfo)(
|
|
244
|
+
const { price, totalPrice, originTotal, is_charge_tax } = (0, import_utils3.handleProductInfo)(
|
|
245
245
|
eventDetail,
|
|
246
246
|
num
|
|
247
247
|
);
|
|
248
|
+
const transformProduct = (_temp) => {
|
|
249
|
+
var _a2;
|
|
250
|
+
if (!((_a2 = _temp == null ? void 0 : _temp.variant) == null ? void 0 : _a2.length)) {
|
|
251
|
+
return { ..._temp || {}, variant: [] };
|
|
252
|
+
}
|
|
253
|
+
return _temp;
|
|
254
|
+
};
|
|
248
255
|
const newCartItem = {
|
|
249
256
|
_id,
|
|
250
257
|
id: eventItem.id,
|
|
251
258
|
name: eventItem.title,
|
|
252
|
-
price
|
|
259
|
+
price,
|
|
253
260
|
// eventBooking中售价和总价保持一致,因为数量为1
|
|
261
|
+
origin_price: price,
|
|
254
262
|
total: totalPrice,
|
|
255
263
|
// 排除原始价格为0的场景
|
|
256
264
|
origin_total: isNaN(originTotal) || originTotal === 0 ? void 0 : originTotal,
|
|
@@ -271,6 +279,10 @@ var CartProvider = ({ children }) => {
|
|
|
271
279
|
end_time: endTime ? (0, import_dayjs.default)(endTime || "").format("HH:mm") : "",
|
|
272
280
|
custom_day_count: ((_m = (_l = (_k = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _k.selectDate) == null ? void 0 : _l.dates) == null ? void 0 : _m.length) || 0,
|
|
273
281
|
is_charge_tax,
|
|
282
|
+
selectedBundle: (_n = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _n.bundle,
|
|
283
|
+
selectedOptions: (_o = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _o.options,
|
|
284
|
+
isNormalProduct: true,
|
|
285
|
+
// 是否是普通商品,eventBooking中接入的都是普通商品
|
|
274
286
|
_originData: {
|
|
275
287
|
..._cartData.currentCartItem._originData,
|
|
276
288
|
product: {
|
|
@@ -293,16 +305,22 @@ var CartProvider = ({ children }) => {
|
|
|
293
305
|
event_unique_identifier: _id
|
|
294
306
|
// 传递给接口用于商品可用性检测的比对
|
|
295
307
|
},
|
|
296
|
-
_productDetail: eventDetail.productDetail
|
|
308
|
+
_productDetail: eventDetail.productDetail,
|
|
309
|
+
_productOrigin: transformProduct(
|
|
310
|
+
((_p = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _p.origin) || bookingOptionData
|
|
311
|
+
),
|
|
312
|
+
_productInit: transformProduct(
|
|
313
|
+
((_q = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _q.origin) || bookingOptionData
|
|
314
|
+
)
|
|
297
315
|
};
|
|
298
316
|
newCartItem.deposit = (0, import_utils3.handleProductDeposit)(newCartItem, eventDetail, num);
|
|
299
317
|
const originData = (0, import_utils3.handleCartItemOrigin)(newCartItem, eventDetail);
|
|
300
318
|
newCartItem._originData = originData;
|
|
301
319
|
if (holderItem == null ? void 0 : holderItem._originData) {
|
|
302
320
|
newCartItem._originData.holder = {
|
|
303
|
-
customer_id: (
|
|
304
|
-
form_id: (
|
|
305
|
-
form_record: ((
|
|
321
|
+
customer_id: (_r = getUserInfo()) == null ? void 0 : _r.id,
|
|
322
|
+
form_id: (_s = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _s.form_id,
|
|
323
|
+
form_record: ((_t = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _t.form_record_id) ? [(_u = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _u.form_record_id] : null
|
|
306
324
|
};
|
|
307
325
|
}
|
|
308
326
|
return newCartItem;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import Decimal from 'decimal.js';
|
|
2
2
|
import { ICalculatePriceParams } from './types';
|
|
3
3
|
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
|
4
|
+
price: number;
|
|
4
5
|
totalPrice: number;
|
|
5
6
|
originTotal: any;
|
|
6
7
|
is_charge_tax: any;
|
|
7
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* 获取商品价格
|
|
11
|
+
*/
|
|
12
|
+
export declare const getPrice: (params: ICalculatePriceParams) => number;
|
|
8
13
|
/**
|
|
9
14
|
* 获取商品总价
|
|
10
15
|
* @description 当前总价计算基于商品数量为1
|
|
@@ -33,6 +33,7 @@ __export(utils_exports, {
|
|
|
33
33
|
formatBundleToOrigin: () => formatBundleToOrigin,
|
|
34
34
|
formatOptionsToOrigin: () => formatOptionsToOrigin,
|
|
35
35
|
getOriginTotalPrice: () => getOriginTotalPrice,
|
|
36
|
+
getPrice: () => getPrice,
|
|
36
37
|
getProductDeposit: () => getProductDeposit,
|
|
37
38
|
getTotalPrice: () => getTotalPrice,
|
|
38
39
|
handleCartItemOrigin: () => handleCartItemOrigin,
|
|
@@ -45,6 +46,7 @@ var handleProductInfo = (eventDetail, num) => {
|
|
|
45
46
|
var _a;
|
|
46
47
|
const { productDetail, bookingOptionItem } = eventDetail;
|
|
47
48
|
const normalProduct = bookingOptionItem == null ? void 0 : bookingOptionItem._originData;
|
|
49
|
+
let price = Number((normalProduct == null ? void 0 : normalProduct.price) || 0);
|
|
48
50
|
let totalPrice = Number((normalProduct == null ? void 0 : normalProduct.price) || "");
|
|
49
51
|
let originTotal = Number((normalProduct == null ? void 0 : normalProduct.original_price) || "");
|
|
50
52
|
let is_charge_tax = normalProduct == null ? void 0 : normalProduct.is_charge_tax;
|
|
@@ -58,10 +60,19 @@ var handleProductInfo = (eventDetail, num) => {
|
|
|
58
60
|
is_charge_tax = variant == null ? void 0 : variant.is_charge_tax;
|
|
59
61
|
}
|
|
60
62
|
const params = { product: origin, variant, bundle, options, num };
|
|
63
|
+
price = getPrice(params);
|
|
61
64
|
totalPrice = getTotalPrice(params);
|
|
62
65
|
originTotal = getOriginTotalPrice(params);
|
|
63
66
|
}
|
|
64
|
-
return { totalPrice, originTotal, is_charge_tax };
|
|
67
|
+
return { price, totalPrice, originTotal, is_charge_tax };
|
|
68
|
+
};
|
|
69
|
+
var getPrice = (params) => {
|
|
70
|
+
const { product, variant } = params;
|
|
71
|
+
let price = Number(product.price);
|
|
72
|
+
if (variant) {
|
|
73
|
+
price = Number(variant == null ? void 0 : variant.price);
|
|
74
|
+
}
|
|
75
|
+
return price;
|
|
65
76
|
};
|
|
66
77
|
var getTotalPrice = (params) => {
|
|
67
78
|
const { product, bundle, options, variant } = params;
|
|
@@ -270,6 +281,7 @@ var calculateProductDeposit = (params) => {
|
|
|
270
281
|
formatBundleToOrigin,
|
|
271
282
|
formatOptionsToOrigin,
|
|
272
283
|
getOriginTotalPrice,
|
|
284
|
+
getPrice,
|
|
273
285
|
getProductDeposit,
|
|
274
286
|
getTotalPrice,
|
|
275
287
|
handleCartItemOrigin,
|
|
@@ -41,9 +41,7 @@ var calculateSubtotal = (items) => {
|
|
|
41
41
|
return "0.00";
|
|
42
42
|
}
|
|
43
43
|
const subtotal = items.reduce((sum, item) => {
|
|
44
|
-
|
|
45
|
-
const quantity = new import_decimal.default(item.quantity || 1);
|
|
46
|
-
return sum.plus(price.times(quantity));
|
|
44
|
+
return sum.plus(item.total || 0);
|
|
47
45
|
}, new import_decimal.default(0));
|
|
48
46
|
return subtotal.toFixed(2);
|
|
49
47
|
};
|
|
@@ -54,7 +52,7 @@ var calculateTaxFee = (shopInfo, items) => {
|
|
|
54
52
|
const { is_price_include_tax, tax_rate } = shopInfo || {};
|
|
55
53
|
console.log("shopInfo>>>", is_price_include_tax, tax_rate);
|
|
56
54
|
const totalTaxFee = items.reduce((sum, item) => {
|
|
57
|
-
const price = new import_decimal.default(item.
|
|
55
|
+
const price = new import_decimal.default(item.total || 0);
|
|
58
56
|
const taxRate = new import_decimal.default(tax_rate || 0).div(100);
|
|
59
57
|
const productTaxRate = price.times(taxRate).times((item == null ? void 0 : item.is_charge_tax) || 0).div(taxRate.times(is_price_include_tax || 0).plus(1));
|
|
60
58
|
return sum.plus(productTaxRate);
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -100,7 +100,6 @@ var VoucherCard = (props) => {
|
|
|
100
100
|
origin_total: (_b2 = value == null ? void 0 : value._extend) == null ? void 0 : _b2.origin_total,
|
|
101
101
|
quantity: value._extend.quantity,
|
|
102
102
|
startDate: value._extend.startDate,
|
|
103
|
-
quantity: value._extend.quantity,
|
|
104
103
|
holder_id: (_c2 = value == null ? void 0 : value._extend) == null ? void 0 : _c2.holder_id
|
|
105
104
|
};
|
|
106
105
|
});
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -110,11 +109,4 @@ export declare const walkInData: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
nickname: string;
|
|
112
111
|
};
|
|
113
|
-
export declare const Provider:
|
|
114
|
-
state: FormState;
|
|
115
|
-
} & {
|
|
116
|
-
dispatch: (params: {
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}) => void;
|
|
120
|
-
}>;
|
|
112
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
166
166
|
export declare const getDuration: (duration: number | {
|
|
167
167
|
type: string;
|
|
168
168
|
value: number;
|
|
169
|
-
}) => number |
|
|
169
|
+
}) => number | {
|
|
170
170
|
type: string;
|
|
171
171
|
value: number;
|
|
172
|
-
};
|
|
172
|
+
} | "flexible";
|
|
173
173
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
174
174
|
export declare const getIsEdit: (state: any) => boolean;
|
|
175
175
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PosProps } from './const';
|
|
3
2
|
/**
|
|
4
3
|
* @title: 支付金额信息配置页
|
|
@@ -9,7 +8,7 @@ import { PosProps } from './const';
|
|
|
9
8
|
*/
|
|
10
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
10
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
11
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
12
|
[keys: string]: unknown;
|
|
14
13
|
} | undefined, other?: any) => void) | undefined;
|
|
15
14
|
onClose: () => void;
|
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
11
11
|
api: PayProps['api'];
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
onChange?: ((status: "
|
|
13
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
14
14
|
[keys: string]: unknown;
|
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
|
16
16
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "loading" | "
|
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -297,8 +297,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
301
|
-
action?: "
|
|
300
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
|
301
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "loading" | "
|
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -40,6 +40,7 @@ var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
|
|
|
40
40
|
var import_ContinueButton = __toESM(require("../ContinueButton"));
|
|
41
41
|
var import_Total = __toESM(require("./Total"));
|
|
42
42
|
var import_Deposit = __toESM(require("../Deposit"));
|
|
43
|
+
var import_Voucher = __toESM(require("../../../Voucher"));
|
|
43
44
|
var import_index = require("./index.less");
|
|
44
45
|
var CartItem = () => {
|
|
45
46
|
var _a;
|
|
@@ -88,7 +89,7 @@ var CartItem = () => {
|
|
|
88
89
|
onChange: (e, type, key) => handleClickCard(e, type, key)
|
|
89
90
|
}
|
|
90
91
|
)),
|
|
91
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
|
92
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Voucher.default, null), /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
|
92
93
|
), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
|
|
93
94
|
};
|
|
94
95
|
var Item_default = CartItem;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface VoucherUIProps {
|
|
4
|
+
showDetail: boolean;
|
|
5
|
+
onToggleDetail: () => void;
|
|
6
|
+
isLogin: boolean;
|
|
7
|
+
onLoginClick: () => void;
|
|
8
|
+
availableData: any[];
|
|
9
|
+
onDiscountChange: (val: {
|
|
10
|
+
id: any;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
}) => void;
|
|
13
|
+
mixedSort: (val: any[]) => any[];
|
|
14
|
+
code: string;
|
|
15
|
+
onCodeChange: (value: string) => void;
|
|
16
|
+
onApplyCode: () => void;
|
|
17
|
+
codeDisabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const VoucherUI: React.FC<VoucherUIProps>;
|
|
20
|
+
export default VoucherUI;
|