@pisell/private-materials 6.3.10 → 6.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
- package/es/components/appointmentBooking/components/Content/index.js +3 -3
- package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
- package/es/components/appointmentBooking/hooks.js +4 -2
- package/es/components/appointmentBooking/index.js +10 -0
- package/es/components/booking/addons/index.js +12 -8
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.js +19 -9
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +8 -5
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.js +16 -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/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/progressBar/index.js +0 -20
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -20
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -12
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +24 -31
- package/es/components/pay/toC/utils.d.ts +1 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -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/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- 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.js +3 -3
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/wallet/Detail/index.js +250 -64
- package/es/components/wallet/Detail/locales.d.ts +51 -0
- package/es/components/wallet/Detail/locales.js +57 -3
- package/es/components/wallet/Detail/serve.js +5 -1
- package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
- package/es/components/wallet/components/UsageRules/index.js +147 -0
- package/es/components/wallet/components/UsageRules/index.less +157 -0
- package/es/components/wallet/components/WalletCard.js +2 -3
- package/es/components/wallet/components/index.d.ts +1 -0
- package/es/components/wallet/components/index.js +2 -1
- package/es/hooks/useComponents.js +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/plus/productSelect/ProductCard/index.less +5 -22
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +3 -0
- package/es/plus/saasCreateOrganization/components/Header.js +62 -0
- package/es/plus/saasCreateOrganization/index.d.ts +4 -0
- package/es/plus/saasCreateOrganization/index.js +15 -0
- package/es/plus/saasCreateOrganization/index.less +55 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/es/plus/saasCreateOrganization/locales.js +14 -0
- package/es/plus/saasCreateOrganization/types.d.ts +69 -0
- package/es/plus/saasCreateOrganization/types.js +1 -0
- package/es/plus/saasLogin/index.d.ts +5 -0
- package/es/plus/saasLogin/index.js +165 -0
- package/es/plus/saasLogin/index.less +136 -0
- package/es/plus/saasLogin/locales.d.ts +51 -0
- package/es/plus/saasLogin/locales.js +50 -0
- package/es/plus/saasLogin/types.d.ts +62 -0
- package/es/plus/saasLogin/types.js +1 -0
- package/es/plus/saasLogin/utils.d.ts +35 -0
- package/es/plus/saasLogin/utils.js +31 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +9 -0
- package/es/plus/saasRegister/components/EntryEmail.js +92 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +9 -0
- package/es/plus/saasRegister/components/EntryInfo.js +145 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +4 -0
- package/es/plus/saasRegister/components/GoLogin.js +27 -0
- package/es/plus/saasRegister/components/Header.d.ts +3 -0
- package/es/plus/saasRegister/components/Header.js +62 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +8 -0
- package/es/plus/saasRegister/components/VerifyError.js +68 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
- package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
- package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
- package/es/plus/saasRegister/index.d.ts +5 -0
- package/es/plus/saasRegister/index.js +246 -0
- package/es/plus/saasRegister/index.less +218 -0
- package/es/plus/saasRegister/locales.d.ts +117 -0
- package/es/plus/saasRegister/locales.js +116 -0
- package/es/plus/saasRegister/types.d.ts +114 -0
- package/es/plus/saasRegister/types.js +24 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
- package/lib/components/appointmentBooking/components/Content/index.js +2 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/appointmentBooking/hooks.js +4 -2
- package/lib/components/appointmentBooking/index.js +6 -0
- package/lib/components/booking/addons/index.js +1 -11
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +15 -8
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +3 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.js +15 -3
- 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/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/progressBar/index.js +0 -18
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -9
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -6
- package/lib/components/pay/toC/utils.d.ts +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/wallet/Detail/index.js +128 -9
- package/lib/components/wallet/Detail/locales.d.ts +51 -0
- package/lib/components/wallet/Detail/locales.js +57 -3
- package/lib/components/wallet/Detail/serve.js +6 -1
- package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
- package/lib/components/wallet/components/UsageRules/index.js +113 -0
- package/lib/components/wallet/components/UsageRules/index.less +157 -0
- package/lib/components/wallet/components/WalletCard.js +1 -1
- package/lib/components/wallet/components/index.d.ts +1 -0
- package/lib/components/wallet/components/index.js +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -0
- package/lib/plus/productSelect/ProductCard/index.less +5 -22
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +3 -0
- package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +4 -0
- package/lib/plus/saasCreateOrganization/index.js +47 -0
- package/lib/plus/saasCreateOrganization/index.less +55 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/lib/plus/saasCreateOrganization/locales.js +38 -0
- package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
- package/lib/plus/saasCreateOrganization/types.js +17 -0
- package/lib/plus/saasLogin/index.d.ts +5 -0
- package/lib/plus/saasLogin/index.js +171 -0
- package/lib/plus/saasLogin/index.less +136 -0
- package/lib/plus/saasLogin/locales.d.ts +51 -0
- package/lib/plus/saasLogin/locales.js +74 -0
- package/lib/plus/saasLogin/types.d.ts +62 -0
- package/lib/plus/saasLogin/types.js +17 -0
- package/lib/plus/saasLogin/utils.d.ts +35 -0
- package/lib/plus/saasLogin/utils.js +50 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +9 -0
- package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +9 -0
- package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +4 -0
- package/lib/plus/saasRegister/components/GoLogin.js +58 -0
- package/lib/plus/saasRegister/components/Header.d.ts +3 -0
- package/lib/plus/saasRegister/components/Header.js +99 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +8 -0
- package/lib/plus/saasRegister/components/VerifyError.js +123 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
- package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
- package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
- package/lib/plus/saasRegister/index.d.ts +5 -0
- package/lib/plus/saasRegister/index.js +205 -0
- package/lib/plus/saasRegister/index.less +218 -0
- package/lib/plus/saasRegister/locales.d.ts +117 -0
- package/lib/plus/saasRegister/locales.js +140 -0
- package/lib/plus/saasRegister/types.d.ts +114 -0
- package/lib/plus/saasRegister/types.js +54 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/saas-create-organization/meta.ts +214 -0
- package/lowcode/saas-create-organization/snippets.ts +25 -0
- package/lowcode/saas-login/meta.ts +370 -0
- package/lowcode/saas-login/snippets.ts +38 -0
- package/lowcode/saas-register/meta.ts +386 -0
- package/lowcode/saas-register/snippets.ts +31 -0
- package/package.json +5 -5
@@ -232,9 +232,21 @@ var setDefaultResource = ({ cacheItem, resources }) => {
|
|
232
232
|
const serviceParams = (0, import_utils.getCacheParams)();
|
233
233
|
let resourceId = Number(serviceParams == null ? void 0 : serviceParams.resource_id);
|
234
234
|
for (let item of resources) {
|
235
|
-
const
|
236
|
-
|
237
|
-
|
235
|
+
const {
|
236
|
+
select_type = {},
|
237
|
+
optional_resource = [],
|
238
|
+
default_resource = []
|
239
|
+
} = item;
|
240
|
+
const renderList = item.renderList.filter((d) => {
|
241
|
+
if ((select_type == null ? void 0 : select_type.type) === "single") {
|
242
|
+
if (resourceId && (optional_resource.includes(resourceId) || default_resource.includes(resourceId))) {
|
243
|
+
return d.id === resourceId;
|
244
|
+
}
|
245
|
+
return d.is_default === 1;
|
246
|
+
} else {
|
247
|
+
return d.is_default === 1 || d.id === resourceId;
|
248
|
+
}
|
249
|
+
});
|
238
250
|
let defaultOriginalResource = [];
|
239
251
|
if (renderList.length === 0) {
|
240
252
|
defaultOriginalResource = getResourceMaxFreeTime(item);
|
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
165
165
|
export declare const getDuration: (duration: number | {
|
166
166
|
type: string;
|
167
167
|
value: number;
|
168
|
-
}) => number | {
|
168
|
+
}) => number | "flexible" | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
}
|
171
|
+
};
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
8
8
|
*/
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
10
10
|
className?: string | undefined;
|
11
|
-
onChange?: ((status: "
|
11
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
12
12
|
[keys: string]: unknown;
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
14
14
|
onClose: () => void;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { PosProps, RouteType } from './const';
|
3
2
|
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
4
3
|
action: RouteType;
|
@@ -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<"
|
18
|
+
readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "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: "
|
177
|
+
status: "success" | "loading" | "warn" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
297
297
|
amount?: string | number | undefined;
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "
|
300
|
+
eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | 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?: "
|
311
|
+
status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|
@@ -45,7 +45,8 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
|
|
45
45
|
var import_index = require("./index.less");
|
46
46
|
var import_utils3 = require("../../../../../appointmentBooking/utils");
|
47
47
|
var ContinueButton = () => {
|
48
|
-
var _a, _b;
|
48
|
+
var _a, _b, _c, _d, _e;
|
49
|
+
const hasSubscribedRef = (0, import_react.useRef)(false);
|
49
50
|
const { data } = (0, import_Sales.useSales)();
|
50
51
|
const { onHolderOpen } = (0, import_Sales.useHolder)();
|
51
52
|
const { checkHolder, onCloseCart, cartData, getWithoutCartItemsHolderNames } = (0, import_Sales.useCart)();
|
@@ -64,14 +65,17 @@ var ContinueButton = () => {
|
|
64
65
|
const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
|
65
66
|
const { setData, removeSessionStorage } = (0, import_Sales.useSales)();
|
66
67
|
const context = (0, import_useEngineContext.default)();
|
67
|
-
const
|
68
|
+
const config = ((_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.constants) == null ? void 0 : _b.config) || {};
|
69
|
+
const utils = ((_c = context == null ? void 0 : context.appHelper) == null ? void 0 : _c.utils) || {};
|
70
|
+
const { pubsub } = context.appHelper.utils;
|
71
|
+
const { store, action, getStore } = ((_d = context.appHelper) == null ? void 0 : _d.utils) || {};
|
68
72
|
const handleCheckout = async () => {
|
69
73
|
const params = (0, import_utils2.getFormParams)(data);
|
70
74
|
action == null ? void 0 : action({
|
71
75
|
type: "pisell1.goProductForm",
|
72
76
|
data: params,
|
73
77
|
callback: async (e) => {
|
74
|
-
var _a2, _b2,
|
78
|
+
var _a2, _b2, _c2;
|
75
79
|
if ((e == null ? void 0 : e.type) === "close") {
|
76
80
|
return;
|
77
81
|
}
|
@@ -88,7 +92,7 @@ var ContinueButton = () => {
|
|
88
92
|
removeSessionStorage();
|
89
93
|
} else {
|
90
94
|
(0, import_materials.PisellToast)({
|
91
|
-
content: ((
|
95
|
+
content: ((_c2 = result == null ? void 0 : result.err) == null ? void 0 : _c2.message) || ""
|
92
96
|
});
|
93
97
|
}
|
94
98
|
}
|
@@ -234,13 +238,13 @@ var ContinueButton = () => {
|
|
234
238
|
handleNextStep();
|
235
239
|
};
|
236
240
|
const handleContinue = async () => {
|
237
|
-
var _a2, _b2,
|
241
|
+
var _a2, _b2, _c2;
|
238
242
|
if (isLastStep) {
|
239
243
|
const value = (0, import_utils2.formatValues)({
|
240
244
|
state: data,
|
241
245
|
platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform
|
242
246
|
});
|
243
|
-
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((
|
247
|
+
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_c2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _c2.length) > 0 && !isAgreeDepositPolicy) {
|
244
248
|
(0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
|
245
249
|
return;
|
246
250
|
}
|
@@ -270,6 +274,24 @@ var ContinueButton = () => {
|
|
270
274
|
}
|
271
275
|
handleHolder();
|
272
276
|
};
|
277
|
+
const handleSubmit = () => {
|
278
|
+
var _a2, _b2, _c2, _d2;
|
279
|
+
if ((_b2 = (_a2 = utils == null ? void 0 : utils.businessUtils) == null ? void 0 : _a2.isGuestUser) == null ? void 0 : _b2.call(_a2)) {
|
280
|
+
if (!hasSubscribedRef.current) {
|
281
|
+
pubsub.subscribe("bind.guest.user", handleContinue);
|
282
|
+
hasSubscribedRef.current = true;
|
283
|
+
}
|
284
|
+
(_d2 = (_c2 = utils == null ? void 0 : utils.businessUtils) == null ? void 0 : _c2.openRegisterModal) == null ? void 0 : _d2.call(_c2, true);
|
285
|
+
return;
|
286
|
+
}
|
287
|
+
handleContinue();
|
288
|
+
};
|
289
|
+
(0, import_react.useEffect)(() => {
|
290
|
+
return () => {
|
291
|
+
pubsub.unsubscribe("bind.guest.user", handleContinue);
|
292
|
+
hasSubscribedRef.current = false;
|
293
|
+
};
|
294
|
+
}, []);
|
273
295
|
const continueText = (0, import_react.useMemo)(() => {
|
274
296
|
if (isLastStep) {
|
275
297
|
return import_utils.locales.getText("pisell2.event.checkout");
|
@@ -289,10 +311,10 @@ var ContinueButton = () => {
|
|
289
311
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
290
312
|
import_materials.Button,
|
291
313
|
{
|
292
|
-
disabled: !((
|
314
|
+
disabled: !((_e = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _e.length),
|
293
315
|
size: "large",
|
294
316
|
type: "primary",
|
295
|
-
onClick: () => handleContinue(),
|
317
|
+
onClick: () => isLastStep ? handleSubmit() : handleContinue(),
|
296
318
|
loading: confirmLoading
|
297
319
|
},
|
298
320
|
continueText
|
@@ -64,24 +64,6 @@ var ProgressBar = ({
|
|
64
64
|
const handleOk = () => {
|
65
65
|
var _a2, _b;
|
66
66
|
if ((_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b.call(_a2)) {
|
67
|
-
const url = window.location.href;
|
68
|
-
if (url.includes("isByTabbar")) {
|
69
|
-
removeSessionStorage == null ? void 0 : removeSessionStorage();
|
70
|
-
const urlParams = new URLSearchParams(window.location.search);
|
71
|
-
urlParams.delete("cacheId");
|
72
|
-
setOpen(false);
|
73
|
-
interaction.utils.postMessageToApp({
|
74
|
-
module: "global",
|
75
|
-
key: "openNative",
|
76
|
-
data: {
|
77
|
-
link: {
|
78
|
-
page: "home"
|
79
|
-
}
|
80
|
-
}
|
81
|
-
});
|
82
|
-
window.location.href = window.location.pathname + "?" + urlParams.toString();
|
83
|
-
return;
|
84
|
-
}
|
85
67
|
interaction.utils.postMessageToApp({
|
86
68
|
module: "global",
|
87
69
|
key: "paymentResultAction",
|
@@ -41,34 +41,30 @@ var import_payGroup = require("../../payGroup");
|
|
41
41
|
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
42
42
|
var import_utils2 = require("../../utils");
|
43
43
|
var GooglePay = (props, ref) => {
|
44
|
-
var _a
|
44
|
+
var _a;
|
45
45
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
46
46
|
const [open, setOpen] = (0, import_react.useState)(false);
|
47
47
|
const context = (0, import_useEngineContext.default)();
|
48
48
|
const { config } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
|
49
|
-
const { interaction } = (_b = context.appHelper) == null ? void 0 : _b.utils;
|
50
49
|
const init = async ({ payGroup }) => {
|
51
|
-
var _a2,
|
50
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
51
|
+
setOpen(true);
|
52
52
|
const utils = context.appHelper.utils || {};
|
53
|
-
const dvaStore = (
|
53
|
+
const dvaStore = (_b = (_a2 = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a2.call(utils)) == null ? void 0 : _b.getState();
|
54
54
|
const values = (0, import_payGroup.getPayGroupParamsFromStorage)(payGroup.order_id);
|
55
|
-
if (((_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.isAppEnv) == null ? void 0 : _d.call(_c)) && ((_f = (_e = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e.isAndroid_ios) == null ? void 0 : _f.call(_e)) === "android") {
|
56
|
-
return (0, import_utils2.clientPayment)({ order_id: payGroup.order_id, type: "google_pay", values, interaction });
|
57
|
-
}
|
58
|
-
setOpen(true);
|
59
55
|
if (!values) {
|
60
56
|
setOpen(false);
|
61
57
|
return;
|
62
58
|
}
|
63
59
|
try {
|
64
|
-
const locale = ((
|
65
|
-
const shopId = (
|
60
|
+
const locale = ((_c = dvaStore.core) == null ? void 0 : _c.translateLocale) || "en";
|
61
|
+
const shopId = (_f = (_e = (_d = dvaStore.core) == null ? void 0 : _d.core) == null ? void 0 : _e.shop) == null ? void 0 : _f.id;
|
66
62
|
const currentURL = window.location.href;
|
67
63
|
const linkElement = document.createElement("a");
|
68
64
|
linkElement.href = currentURL;
|
69
65
|
const shop_domain = linkElement.hostname;
|
70
66
|
const _href = `${config.pay}${(0, import_utils2.formatFranchiseeRoute)(
|
71
|
-
`/google-pay?order_id=${(
|
67
|
+
`/google-pay?order_id=${(_g = state.payGroup) == null ? void 0 : _g.order_id}&shop_id=${shopId}&locale=${locale}&shop_domain=${shop_domain}&total_amount=${values.amount}&payment_group_id=${values.payment_group_id}`,
|
72
68
|
state.history
|
73
69
|
)}`;
|
74
70
|
window.location.href = _href;
|
@@ -10,7 +10,6 @@ export interface WalletPassListProps {
|
|
10
10
|
walletSetting: {
|
11
11
|
name: string;
|
12
12
|
};
|
13
|
-
onChangeDebounce?: boolean;
|
14
13
|
}
|
15
14
|
export declare type WalletPassListRef = {
|
16
15
|
init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
|
@@ -41,7 +41,7 @@ var import_utils2 = require("../utils");
|
|
41
41
|
var import_index = require("./index.less");
|
42
42
|
var WalletPassList = (0, import_react.forwardRef)(
|
43
43
|
(props, ref) => {
|
44
|
-
const { title, onChange, data: propsData, value, walletSetting
|
44
|
+
const { title, onChange, data: propsData, value, walletSetting } = props;
|
45
45
|
const [data, setData] = (0, import_react.useState)(
|
46
46
|
propsData || []
|
47
47
|
);
|
@@ -51,9 +51,6 @@ var WalletPassList = (0, import_react.forwardRef)(
|
|
51
51
|
setData(propsData);
|
52
52
|
}
|
53
53
|
}, [propsData]);
|
54
|
-
(0, import_react.useEffect)(() => {
|
55
|
-
setLoading(!!propsLoading);
|
56
|
-
}, [propsLoading]);
|
57
54
|
const getList = async (params, formatList) => {
|
58
55
|
setLoading(true);
|
59
56
|
try {
|
@@ -73,9 +70,6 @@ var WalletPassList = (0, import_react.forwardRef)(
|
|
73
70
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
74
71
|
init
|
75
72
|
}));
|
76
|
-
(0, import_react.useEffect)(() => {
|
77
|
-
onLoadingChange == null ? void 0 : onLoadingChange(loading);
|
78
|
-
}, [loading]);
|
79
73
|
const { availableList, disabledList } = (0, import_react.useMemo)(() => {
|
80
74
|
const _disabledList = [];
|
81
75
|
const _availableList = [];
|
@@ -117,8 +111,7 @@ var WalletPassList = (0, import_react.forwardRef)(
|
|
117
111
|
value,
|
118
112
|
onChange: handleChange,
|
119
113
|
showEmpty: data.length === 0,
|
120
|
-
empty
|
121
|
-
onChangeDebounce
|
114
|
+
empty
|
122
115
|
}
|
123
116
|
), !!disabledList.length && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-walletPass-list-disabled" }, import_utils.locales.getText("tocPay.text.walletPassDisabled")), /* @__PURE__ */ import_react.default.createElement(
|
124
117
|
import_materials.PisellCardList,
|
@@ -48,7 +48,6 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
|
|
48
48
|
var _a;
|
49
49
|
const { onWalletPassChange, walletPass, walletSetting } = props;
|
50
50
|
const [currentWalletPass, setCurrentWalletPass] = (0, import_react.useState)(walletPass);
|
51
|
-
const [loading, setLoading] = (0, import_react.useState)(false);
|
52
51
|
const [open, setOpen] = (0, import_react.useState)(false);
|
53
52
|
const [searchOpen, setSearchOpen] = (0, import_react.useState)(false);
|
54
53
|
const [addList, setAddList] = (0, import_react.useState)([]);
|
@@ -282,9 +281,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
|
|
282
281
|
data: otherCustomerWalletPassList,
|
283
282
|
title: import_utils.locales.getText("tocPay.text.couponCodesAdded"),
|
284
283
|
onChange: handleOtherChange,
|
285
|
-
value: selectValue
|
286
|
-
loading,
|
287
|
-
onChangeDebounce: true
|
284
|
+
value: selectValue
|
288
285
|
}
|
289
286
|
), /* @__PURE__ */ import_react.default.createElement(
|
290
287
|
import_List.default,
|
@@ -293,8 +290,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
|
|
293
290
|
title: walletSetting.name,
|
294
291
|
onChange: handleCurrentChange,
|
295
292
|
ref: listRef,
|
296
|
-
value: selectValue
|
297
|
-
onLoadingChange: setLoading
|
293
|
+
value: selectValue
|
298
294
|
}
|
299
295
|
))
|
300
296
|
), /* @__PURE__ */ import_react.default.createElement(
|
@@ -51,7 +51,7 @@ export declare const formatFranchiseeRoute: (url: string, history?: any) => stri
|
|
51
51
|
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
52
52
|
export declare const clientPayment: (params: {
|
53
53
|
order_id: number;
|
54
|
-
type: "aliPay" | "wxPay"
|
54
|
+
type: "aliPay" | "wxPay";
|
55
55
|
values: any;
|
56
56
|
interaction?: any;
|
57
57
|
}) => void;
|
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
17
17
|
export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
|
18
18
|
export declare const saveConfirm: () => Promise<{
|
19
19
|
destroy: () => void;
|
20
|
-
update: (configUpdate: import("antd
|
20
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
21
21
|
}>;
|
22
22
|
export { modal };
|