@pisell/private-materials 6.6.5 → 6.6.6
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 +7 -7
- 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/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Services/index.js +25 -22
- package/es/components/appointmentBooking/components/Voucher/index.js +15 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/components/actionButtons/index.js +3 -1
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +548 -84
- package/es/components/booking/components/footer/index.js +36 -33
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +166 -67
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +53 -15
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +4 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +5 -3
- package/es/components/booking/info2/service/addService/index.js +9 -9
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +27 -17
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +66 -0
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +15 -2
- package/es/components/checkout/components/AmountSummary/index.less +4 -5
- 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/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/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/payo/config.js +70 -32
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/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/index.d.ts +2 -2
- package/es/components/index.js +2 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/index.js +7 -4
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/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/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{wallet/serve.js → systemSettings/registry/components/GroupModal.js} +145 -190
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -5
- package/es/components/ticketBooking/utils/index.d.ts +5 -1
- package/es/components/ticketBooking/utils/index.js +37 -17
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +173 -41
- package/es/components/walletList/locales.d.ts +9 -0
- package/es/components/walletList/locales.js +12 -3
- package/es/components/walletList/serve.d.ts +19 -0
- package/es/components/walletList/serve.js +94 -5
- package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/es/components/walletList/tempHolderSelector/index.js +196 -0
- package/es/components/walletList/tempHolderSelector/index.less +63 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +3 -2
- package/es/index.js +4 -3
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/walletEditor/WalletEditor.js +60 -2
- package/es/plus/walletEditor/locales.d.ts +9 -0
- package/es/plus/walletEditor/locales.js +12 -3
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.js +17 -5
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +226 -42
- package/es/plus/walletPassGallery/locales.d.ts +15 -0
- package/es/plus/walletPassGallery/locales.js +29 -5
- package/es/plus/walletPassGallery/serve.d.ts +15 -1
- package/es/plus/walletPassGallery/serve.js +59 -2
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/plus/walletPassGallery/utils.js +342 -0
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Services/index.js +5 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +13 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/components/actionButtons/index.js +4 -2
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +293 -41
- package/lib/components/booking/components/footer/index.js +5 -2
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +111 -35
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +56 -16
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +2 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +4 -2
- package/lib/components/booking/info2/service/addService/index.js +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +30 -8
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +40 -3
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/components/AmountSummary/index.less +4 -5
- 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/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/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/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/index.d.ts +2 -2
- package/lib/components/index.js +3 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/index.js +4 -1
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- 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/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/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/{wallet → systemSettings/registry}/components/index.js +13 -10
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/{wallet/RechargeableCard/serve.js → systemSettings/registry/types.js} +3 -19
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +9 -7
- package/lib/components/ticketBooking/utils/index.d.ts +5 -1
- package/lib/components/ticketBooking/utils/index.js +21 -6
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +100 -4
- package/lib/components/walletList/locales.d.ts +9 -0
- package/lib/components/walletList/locales.js +12 -3
- package/lib/components/walletList/serve.d.ts +19 -0
- package/lib/components/walletList/serve.js +26 -3
- package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/lib/components/walletList/tempHolderSelector/index.js +166 -0
- package/lib/components/walletList/tempHolderSelector/index.less +63 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +5 -2
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/walletEditor/WalletEditor.js +53 -0
- package/lib/plus/walletEditor/locales.d.ts +9 -0
- package/lib/plus/walletEditor/locales.js +12 -3
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +157 -28
- package/lib/plus/walletPassGallery/locales.d.ts +15 -0
- package/lib/plus/walletPassGallery/locales.js +32 -5
- package/lib/plus/walletPassGallery/serve.d.ts +15 -1
- package/lib/plus/walletPassGallery/serve.js +17 -5
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/plus/walletPassGallery/utils.js +287 -0
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
- package/lowcode/settings-registry/meta.ts +29 -0
- package/package.json +3 -3
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/index.js +0 -1182
- package/es/components/wallet/Detail/index.less +0 -386
- package/es/components/wallet/Detail/locales.d.ts +0 -153
- package/es/components/wallet/Detail/locales.js +0 -170
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/model.js +0 -22
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/Detail/serve.js +0 -64
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DetailContext.js +0 -162
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/index.js +0 -218
- package/es/components/wallet/DiscountCard/index.less +0 -9
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/DiscountCard/model.js +0 -22
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/index.js +0 -169
- package/es/components/wallet/PointCard/index.less +0 -9
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/PointCard/model.js +0 -22
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.js +0 -463
- package/es/components/wallet/RechargeableCard/index.less +0 -108
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/model.js +0 -28
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/RechargeableCard/serve.js +0 -32
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/index.js +0 -131
- package/es/components/wallet/Voucher/index.less +0 -9
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/locales.js +0 -20
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/Voucher/model.js +0 -22
- package/es/components/wallet/carouselArrow.png +0 -0
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/FooterButtons/index.js +0 -81
- package/es/components/wallet/components/FooterButtons/index.less +0 -91
- package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/es/components/wallet/components/UsageRules/index.js +0 -147
- package/es/components/wallet/components/UsageRules/index.less +0 -157
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletBar/index.js +0 -19
- package/es/components/wallet/components/WalletBar/index.less +0 -36
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/WalletCard.js +0 -91
- package/es/components/wallet/components/index.d.ts +0 -3
- package/es/components/wallet/components/index.js +0 -4
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/es/components/wallet/hooks/useWalletCard.js +0 -147
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/index.js +0 -807
- package/es/components/wallet/index.less +0 -151
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/locales.js +0 -139
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/model.js +0 -86
- package/es/components/wallet/serve.d.ts +0 -150
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/wallet/utils/formatUtils.js +0 -73
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/index.js +0 -874
- package/lib/components/wallet/Detail/index.less +0 -386
- package/lib/components/wallet/Detail/locales.d.ts +0 -153
- package/lib/components/wallet/Detail/locales.js +0 -194
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/model.js +0 -43
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/Detail/serve.js +0 -44
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DetailContext.js +0 -118
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/index.js +0 -209
- package/lib/components/wallet/DiscountCard/index.less +0 -9
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/DiscountCard/model.js +0 -43
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/index.js +0 -190
- package/lib/components/wallet/PointCard/index.less +0 -9
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/PointCard/model.js +0 -43
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.js +0 -380
- package/lib/components/wallet/RechargeableCard/index.less +0 -108
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/model.js +0 -49
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/index.js +0 -146
- package/lib/components/wallet/Voucher/index.less +0 -9
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/locales.js +0 -44
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/Voucher/model.js +0 -43
- package/lib/components/wallet/carouselArrow.png +0 -0
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/FooterButtons/index.js +0 -109
- package/lib/components/wallet/components/FooterButtons/index.less +0 -91
- package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/lib/components/wallet/components/UsageRules/index.js +0 -113
- package/lib/components/wallet/components/UsageRules/index.less +0 -157
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletBar/index.js +0 -49
- package/lib/components/wallet/components/WalletBar/index.less +0 -36
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/WalletCard.js +0 -97
- package/lib/components/wallet/components/index.d.ts +0 -3
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/lib/components/wallet/hooks/useWalletCard.js +0 -111
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/index.js +0 -580
- package/lib/components/wallet/index.less +0 -151
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/locales.js +0 -163
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/model.js +0 -91
- package/lib/components/wallet/serve.d.ts +0 -150
- package/lib/components/wallet/serve.js +0 -85
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/wallet/utils/formatUtils.js +0 -73
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/systemSettings/registry/utils/validators.ts
|
|
20
|
+
var validators_exports = {};
|
|
21
|
+
__export(validators_exports, {
|
|
22
|
+
createPrefixedAppIdentifierValidator: () => createPrefixedAppIdentifierValidator
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(validators_exports);
|
|
25
|
+
var createPrefixedAppIdentifierValidator = (sectionCode) => {
|
|
26
|
+
return (_, value) => {
|
|
27
|
+
if (!value) {
|
|
28
|
+
return Promise.resolve();
|
|
29
|
+
}
|
|
30
|
+
const expectedPrefix = `${sectionCode}.`;
|
|
31
|
+
if (!value.startsWith(expectedPrefix)) {
|
|
32
|
+
return Promise.reject(new Error(`键必须以 "${expectedPrefix}" 开头`));
|
|
33
|
+
}
|
|
34
|
+
const remainingPart = value.substring(expectedPrefix.length);
|
|
35
|
+
if (!remainingPart) {
|
|
36
|
+
return Promise.reject(new Error("键不能只包含前缀"));
|
|
37
|
+
}
|
|
38
|
+
const validPattern = /^[a-z0-9._]+$/;
|
|
39
|
+
if (!validPattern.test(remainingPart)) {
|
|
40
|
+
return Promise.reject(new Error("键只能包含小写字母、数字、点、下划线"));
|
|
41
|
+
}
|
|
42
|
+
if (remainingPart.startsWith(".") || remainingPart.startsWith("_") || remainingPart.endsWith(".") || remainingPart.endsWith("_")) {
|
|
43
|
+
return Promise.reject(new Error("键不能以点或下划线开头或结尾"));
|
|
44
|
+
}
|
|
45
|
+
if (remainingPart.includes("..") || remainingPart.includes("__") || remainingPart.includes("._") || remainingPart.includes("_.")) {
|
|
46
|
+
return Promise.reject(new Error("键不能包含连续的点或下划线"));
|
|
47
|
+
}
|
|
48
|
+
return Promise.resolve();
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
createPrefixedAppIdentifierValidator
|
|
54
|
+
});
|
|
@@ -202,7 +202,7 @@ var AddSerivce = (props) => {
|
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
204
|
const processAddService = (0, import_ahooks.useMemoizedFn)(async (item, _detail, e, notShowToast, startDate, endDate) => {
|
|
205
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p;
|
|
205
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
206
206
|
const other = JSON.parse(JSON.stringify(e));
|
|
207
207
|
other.session = e.session;
|
|
208
208
|
let cacheItem = {
|
|
@@ -216,7 +216,9 @@ var AddSerivce = (props) => {
|
|
|
216
216
|
price: _detail.price,
|
|
217
217
|
product_name: item.title,
|
|
218
218
|
other,
|
|
219
|
-
end_date: endDate
|
|
219
|
+
end_date: endDate,
|
|
220
|
+
isFormSubject: ((_d2 = (_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.appointment_subject) == null ? void 0 : _d2.type) === "form",
|
|
221
|
+
isNormalProduct: (0, import_utils4.isNormalProductByDurationSchedule)(item)
|
|
220
222
|
},
|
|
221
223
|
new: 1
|
|
222
224
|
};
|
|
@@ -225,7 +227,7 @@ var AddSerivce = (props) => {
|
|
|
225
227
|
cacheItem._extend.origin_total = _total;
|
|
226
228
|
const _isEdit = !!stateRef.current.service.cacheItem;
|
|
227
229
|
if (_isEdit) {
|
|
228
|
-
cacheItem._id = (
|
|
230
|
+
cacheItem._id = (_e2 = stateRef.current.service.cacheItem) == null ? void 0 : _e2._id;
|
|
229
231
|
cacheItem.new = 0;
|
|
230
232
|
}
|
|
231
233
|
if (renderMode === "current") {
|
|
@@ -249,12 +251,12 @@ var AddSerivce = (props) => {
|
|
|
249
251
|
cacheItem = (0, import_utils8.concatBookings)(cacheItem);
|
|
250
252
|
}
|
|
251
253
|
};
|
|
252
|
-
if (!(0, import_utils4.isNormalProductByDurationSchedule)(cacheItem) && (!cacheItem._extend.holder_id || !cacheItem._extend.holder_id.length) && !(0, import_utils2.isWalkIn)((
|
|
254
|
+
if (!(0, import_utils4.isNormalProductByDurationSchedule)(cacheItem) && (!cacheItem._extend.holder_id || !cacheItem._extend.holder_id.length) && !(0, import_utils2.isWalkIn)((_g2 = (_f2 = state.client) == null ? void 0 : _f2.value) == null ? void 0 : _g2.id) && ((_k2 = (_j2 = (_i2 = (_h2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _h2.config) == null ? void 0 : _i2.basic) == null ? void 0 : _j2.appointment_subject) == null ? void 0 : _k2.show_hold_on_add_cart) !== 0) {
|
|
253
255
|
const res = await handleAddHolder(cacheItem);
|
|
254
256
|
if (res && res.length > 0) {
|
|
255
257
|
cacheItem._extend.holder_id = res;
|
|
256
258
|
} else {
|
|
257
|
-
if (((
|
|
259
|
+
if (((_n = (_m = (_l2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _l2.config) == null ? void 0 : _m.basic) == null ? void 0 : _n.subject_require) === "require") {
|
|
258
260
|
return;
|
|
259
261
|
}
|
|
260
262
|
}
|
|
@@ -286,7 +288,7 @@ var AddSerivce = (props) => {
|
|
|
286
288
|
})
|
|
287
289
|
);
|
|
288
290
|
try {
|
|
289
|
-
if (((
|
|
291
|
+
if (((_s = (_r = (_q = (_p = (_o = context.appHelper.utils.store) == null ? void 0 : _o.getState) == null ? void 0 : _p.call(_o)) == null ? void 0 : _q.global) == null ? void 0 : _r.globalConfig) == null ? void 0 : _s.id) === 2155) {
|
|
290
292
|
const val = _list == null ? void 0 : _list.map((s) => {
|
|
291
293
|
return {
|
|
292
294
|
product_id: s == null ? void 0 : s.product_id,
|
|
@@ -331,7 +333,7 @@ var AddSerivce = (props) => {
|
|
|
331
333
|
}
|
|
332
334
|
});
|
|
333
335
|
} else {
|
|
334
|
-
(
|
|
336
|
+
(_t = window.openBookingEditModal) == null ? void 0 : _t.call(window);
|
|
335
337
|
if (isMultiDay) {
|
|
336
338
|
await getMultiDayCacheItem(true);
|
|
337
339
|
}
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -79,7 +79,11 @@ export declare const rulesHooks: {
|
|
|
79
79
|
num: any;
|
|
80
80
|
quantity: any;
|
|
81
81
|
vouchersApplicable: any;
|
|
82
|
+
holder_id: any;
|
|
83
|
+
isNeedHolder: any;
|
|
82
84
|
startDate: any;
|
|
85
|
+
bundle: any;
|
|
86
|
+
options: any;
|
|
83
87
|
};
|
|
84
88
|
setProduct(product: Record<string, any>, values: {
|
|
85
89
|
total: number;
|
|
@@ -188,12 +188,17 @@ var addService = (list, addItem, state, isMultiDay) => {
|
|
|
188
188
|
let isNotSame = true;
|
|
189
189
|
let isSetCount = false;
|
|
190
190
|
value = list.map((item) => {
|
|
191
|
-
var _a, _b, _c;
|
|
191
|
+
var _a, _b, _c, _d, _e;
|
|
192
192
|
const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
|
|
193
193
|
const isEdit = item == null ? void 0 : item.edit;
|
|
194
|
-
|
|
194
|
+
const bundleDiscountList = [];
|
|
195
|
+
(((_b = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []).forEach((item2) => {
|
|
196
|
+
bundleDiscountList.push(...(item2 == null ? void 0 : item2.discount_list) || []);
|
|
197
|
+
});
|
|
198
|
+
const isGoodPassBundleProduct = bundleDiscountList.some((item2) => item2.type === "good_pass");
|
|
199
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
|
|
195
200
|
isNotSame = false;
|
|
196
|
-
const quantity = (((
|
|
201
|
+
const quantity = (((_c = item == null ? void 0 : item._extend) == null ? void 0 : _c.quantity) || 1) + (((_d = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _d.quantity) || 1);
|
|
197
202
|
count = quantity;
|
|
198
203
|
isSetCount = true;
|
|
199
204
|
return {
|
|
@@ -202,7 +207,7 @@ var addService = (list, addItem, state, isMultiDay) => {
|
|
|
202
207
|
...item._extend,
|
|
203
208
|
quantity,
|
|
204
209
|
other: {
|
|
205
|
-
...((
|
|
210
|
+
...((_e = item._extend) == null ? void 0 : _e.other) || {},
|
|
206
211
|
quantity
|
|
207
212
|
}
|
|
208
213
|
}
|
|
@@ -346,18 +351,23 @@ var getShopDiscountKey = (osKey) => {
|
|
|
346
351
|
var rulesHooks = {
|
|
347
352
|
// 获取商品关键信息
|
|
348
353
|
getProduct(product) {
|
|
354
|
+
var _a, _b, _c, _d, _e, _f;
|
|
349
355
|
const detail = {
|
|
350
356
|
booking_id: product.booking_id,
|
|
351
357
|
id: product.id,
|
|
352
358
|
_id: product._id,
|
|
353
|
-
price: product.price,
|
|
359
|
+
price: product._extend.price,
|
|
354
360
|
total: product._extend.total,
|
|
355
361
|
discount_list: product.discount_list,
|
|
356
362
|
origin_total: product._extend.origin_total,
|
|
357
363
|
num: product._extend.quantity,
|
|
358
364
|
quantity: product._extend.quantity || 1,
|
|
359
365
|
vouchersApplicable: product.vouchersApplicable,
|
|
360
|
-
|
|
366
|
+
holder_id: (_a = product._extend) == null ? void 0 : _a.holder_id,
|
|
367
|
+
isNeedHolder: product._extend.isFormSubject && !product._extend.isNormalProduct,
|
|
368
|
+
startDate: (_b = product._extend) == null ? void 0 : _b.startDate,
|
|
369
|
+
bundle: ((_d = (_c = product._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.bundle) || [],
|
|
370
|
+
options: ((_f = (_e = product._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.option) || []
|
|
361
371
|
};
|
|
362
372
|
return detail;
|
|
363
373
|
},
|
|
@@ -368,7 +378,12 @@ var rulesHooks = {
|
|
|
368
378
|
discount_list: values.discount_list,
|
|
369
379
|
_extend: {
|
|
370
380
|
...product._extend,
|
|
381
|
+
other: {
|
|
382
|
+
...product._extend.other,
|
|
383
|
+
..."bundle" in values ? { bundle: values.bundle } : {}
|
|
384
|
+
},
|
|
371
385
|
..."total" in values ? { total: values.total } : {},
|
|
386
|
+
..."main_product_selling_price" in values ? { main_product_selling_price: values.main_product_selling_price } : {},
|
|
372
387
|
..."quantity" in values ? { quantity: values.quantity } : {}
|
|
373
388
|
}
|
|
374
389
|
};
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
|
-
declare module 'react' {
|
|
4
|
-
interface HTMLAttributes<T> {
|
|
5
|
-
role?: string;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
namespace JSX {
|
|
10
|
-
interface IntrinsicElements {
|
|
11
|
-
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
14
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
|
15
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
|
|
16
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
|
17
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
|
|
18
|
-
role?: string;
|
|
19
|
-
};
|
|
20
|
-
img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
|
21
|
-
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
2
|
declare const WalletList: (props: any) => JSX.Element;
|
|
28
3
|
export default WalletList;
|
|
@@ -44,6 +44,7 @@ var import_status = require("./status");
|
|
|
44
44
|
var import_locales = __toESM(require("./locales"));
|
|
45
45
|
var import_index = require("./index.less");
|
|
46
46
|
var import_classnames = __toESM(require("classnames"));
|
|
47
|
+
var import_tempHolderSelector = __toESM(require("./tempHolderSelector"));
|
|
47
48
|
var import_types = require("./types");
|
|
48
49
|
var import_pinModal = __toESM(require("../pinModal"));
|
|
49
50
|
var STORAGE_KEY = "pisell_wallet_list_data";
|
|
@@ -173,6 +174,9 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
173
174
|
const nextButtonRef = (0, import_react.useRef)(null);
|
|
174
175
|
const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
|
|
175
176
|
const [walletShopList, setWalletShopList] = (0, import_react.useState)([]);
|
|
177
|
+
const [editHolderVisible, setEditHolderVisible] = (0, import_react.useState)(false);
|
|
178
|
+
const [editHolderData, setEditHolderData] = (0, import_react.useState)(null);
|
|
179
|
+
const [updateHolderLoading, setUpdateHolderLoading] = (0, import_react.useState)(false);
|
|
176
180
|
const requestIdRef = (0, import_react.useRef)("");
|
|
177
181
|
const pubsub = utils == null ? void 0 : utils.pubsub;
|
|
178
182
|
const pinModalRef = (0, import_react.useRef)(null);
|
|
@@ -303,7 +307,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
303
307
|
}
|
|
304
308
|
};
|
|
305
309
|
const initData = async (requestId) => {
|
|
306
|
-
var _a2, _b2;
|
|
310
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h;
|
|
307
311
|
if (!isMountedRef.current) return;
|
|
308
312
|
if (requestIdRef.current !== requestId) return;
|
|
309
313
|
if (!isUserLoggedIn) {
|
|
@@ -339,6 +343,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
339
343
|
hasAttempted: false
|
|
340
344
|
});
|
|
341
345
|
}
|
|
346
|
+
let tempList = [];
|
|
342
347
|
try {
|
|
343
348
|
if (!isMountedRef.current) return;
|
|
344
349
|
const walletListData = await (0, import_serve.getWalletList)();
|
|
@@ -397,12 +402,14 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
397
402
|
balance: retryBalanceData,
|
|
398
403
|
hasAttempted: true
|
|
399
404
|
});
|
|
405
|
+
tempList = retryListData || [];
|
|
400
406
|
} catch (retryErr) {
|
|
401
407
|
setState({
|
|
402
408
|
list: walletListData || [],
|
|
403
409
|
balance: walletBalanceData,
|
|
404
410
|
hasAttempted: true
|
|
405
411
|
});
|
|
412
|
+
tempList = walletListData || [];
|
|
406
413
|
}
|
|
407
414
|
}, 2e3);
|
|
408
415
|
} else {
|
|
@@ -411,6 +418,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
411
418
|
balance: walletBalanceData,
|
|
412
419
|
hasAttempted: true
|
|
413
420
|
});
|
|
421
|
+
tempList = walletListData || [];
|
|
414
422
|
}
|
|
415
423
|
} catch (err) {
|
|
416
424
|
if (!isMountedRef.current || requestIdRef.current !== requestId) return;
|
|
@@ -421,6 +429,70 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
421
429
|
hasAttempted: true
|
|
422
430
|
});
|
|
423
431
|
}
|
|
432
|
+
const walletDetailId = new URLSearchParams(window.location.search).get(
|
|
433
|
+
"wallet_detail_id"
|
|
434
|
+
);
|
|
435
|
+
if (walletDetailId) {
|
|
436
|
+
const found = tempList.find((item) => String(item.id) === walletDetailId);
|
|
437
|
+
if (found) {
|
|
438
|
+
setCurrentIndex(tempList.indexOf(found));
|
|
439
|
+
(_c2 = carouselRef.current) == null ? void 0 : _c2.goTo(tempList.indexOf(found), true);
|
|
440
|
+
if (((_d2 = found.holder) == null ? void 0 : _d2.holder_type) === "form" && !((_e2 = found.holder) == null ? void 0 : _e2.holder_id)) {
|
|
441
|
+
setEditHolderData({
|
|
442
|
+
wallet_record_id: found.id,
|
|
443
|
+
customer_id: (_f2 = found.holder) == null ? void 0 : _f2.customer_id,
|
|
444
|
+
form_id: ((_h = (_g2 = found.holder) == null ? void 0 : _g2.metadata) == null ? void 0 : _h.custom_id) || ""
|
|
445
|
+
});
|
|
446
|
+
setEditHolderVisible(true);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
const onBindHolder = async (holderId) => {
|
|
452
|
+
if (!(editHolderData == null ? void 0 : editHolderData.wallet_record_id)) {
|
|
453
|
+
console.error("wallet_record_id is required");
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
setUpdateHolderLoading(true);
|
|
457
|
+
try {
|
|
458
|
+
const res = await (0, import_serve.updateWalletHolder)(editHolderData == null ? void 0 : editHolderData.wallet_record_id, {
|
|
459
|
+
holder_id: holderId,
|
|
460
|
+
holder_type: "form"
|
|
461
|
+
});
|
|
462
|
+
setEditHolderVisible(false);
|
|
463
|
+
setEditHolderData(null);
|
|
464
|
+
let newList = list;
|
|
465
|
+
if (holderId) {
|
|
466
|
+
if (res) {
|
|
467
|
+
newList = newList.map((item) => {
|
|
468
|
+
if (item.id === (editHolderData == null ? void 0 : editHolderData.wallet_record_id)) {
|
|
469
|
+
return {
|
|
470
|
+
...item,
|
|
471
|
+
holder: res
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
return item;
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
} else {
|
|
478
|
+
newList = newList.map((item) => {
|
|
479
|
+
if (item.id === (editHolderData == null ? void 0 : editHolderData.wallet_record_id)) {
|
|
480
|
+
return {
|
|
481
|
+
...item,
|
|
482
|
+
holder: null
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
return item;
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
setState({
|
|
489
|
+
list: newList
|
|
490
|
+
});
|
|
491
|
+
} catch (error2) {
|
|
492
|
+
console.error("Error updating wallet holder:", error2);
|
|
493
|
+
} finally {
|
|
494
|
+
setUpdateHolderLoading(false);
|
|
495
|
+
}
|
|
424
496
|
};
|
|
425
497
|
const onViewPinClick = (card) => {
|
|
426
498
|
var _a2;
|
|
@@ -432,7 +504,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
432
504
|
};
|
|
433
505
|
const renderWalletCard = (item) => {
|
|
434
506
|
var _a2;
|
|
435
|
-
const { code, shop, wallet, id } = item;
|
|
507
|
+
const { code, shop, wallet, id, customer_id, holder } = item;
|
|
436
508
|
const { metadata, name } = wallet || {};
|
|
437
509
|
const {
|
|
438
510
|
showcaseWalletPassNew = [],
|
|
@@ -471,8 +543,18 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
471
543
|
// codeType: barcodetype,
|
|
472
544
|
items: cardItems.slice(0, 4),
|
|
473
545
|
customBackgroundImage: coverImage,
|
|
474
|
-
isLogin: isUserLoggedIn
|
|
546
|
+
isLogin: isUserLoggedIn,
|
|
475
547
|
// 添加登录状态
|
|
548
|
+
holder,
|
|
549
|
+
onSetHolder: () => {
|
|
550
|
+
var _a3;
|
|
551
|
+
setEditHolderData({
|
|
552
|
+
wallet_record_id: id,
|
|
553
|
+
customer_id: holder == null ? void 0 : holder.customer_id,
|
|
554
|
+
form_id: (_a3 = holder == null ? void 0 : holder.metadata) == null ? void 0 : _a3.custom_id
|
|
555
|
+
});
|
|
556
|
+
setEditHolderVisible(true);
|
|
557
|
+
}
|
|
476
558
|
};
|
|
477
559
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
478
560
|
import_materials.WalletCard,
|
|
@@ -605,6 +687,20 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
605
687
|
)
|
|
606
688
|
)), /* @__PURE__ */ import_react.default.createElement(import_pinModal.default, { ref: pinModalRef }));
|
|
607
689
|
};
|
|
608
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-list-wrapper" }, renderContent())
|
|
690
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-list-wrapper" }, renderContent()), editHolderVisible && /* @__PURE__ */ import_react.default.createElement(
|
|
691
|
+
import_tempHolderSelector.default,
|
|
692
|
+
{
|
|
693
|
+
visible: true,
|
|
694
|
+
value: editHolderData == null ? void 0 : editHolderData.holder_id,
|
|
695
|
+
formId: editHolderData == null ? void 0 : editHolderData.form_id,
|
|
696
|
+
customerId: editHolderData == null ? void 0 : editHolderData.customer_id,
|
|
697
|
+
onConfirm: onBindHolder,
|
|
698
|
+
onCancel: () => {
|
|
699
|
+
setEditHolderVisible(false);
|
|
700
|
+
setEditHolderData(null);
|
|
701
|
+
},
|
|
702
|
+
confirmLoading: updateHolderLoading
|
|
703
|
+
}
|
|
704
|
+
));
|
|
609
705
|
});
|
|
610
706
|
var walletList_default = WalletList;
|
|
@@ -3,16 +3,25 @@ declare const _default: {
|
|
|
3
3
|
'page.wallet.guide.title': string;
|
|
4
4
|
'page.wallet.guide.subtitle': string;
|
|
5
5
|
'page.wallet.guide.button': string;
|
|
6
|
+
'page.wallet.tempHolderSelector.title': string;
|
|
7
|
+
'page.wallet.tempHolderSelector.create': string;
|
|
8
|
+
'page.wallet.tempHolderSelector.confirm': string;
|
|
6
9
|
};
|
|
7
10
|
'zh-CN': {
|
|
8
11
|
'page.wallet.guide.title': string;
|
|
9
12
|
'page.wallet.guide.subtitle': string;
|
|
10
13
|
'page.wallet.guide.button': string;
|
|
14
|
+
'page.wallet.tempHolderSelector.title': string;
|
|
15
|
+
'page.wallet.tempHolderSelector.create': string;
|
|
16
|
+
'page.wallet.tempHolderSelector.confirm': string;
|
|
11
17
|
};
|
|
12
18
|
'zh-HK': {
|
|
13
19
|
'page.wallet.guide.title': string;
|
|
14
20
|
'page.wallet.guide.subtitle': string;
|
|
15
21
|
'page.wallet.guide.button': string;
|
|
22
|
+
'page.wallet.tempHolderSelector.title': string;
|
|
23
|
+
'page.wallet.tempHolderSelector.create': string;
|
|
24
|
+
'page.wallet.tempHolderSelector.confirm': string;
|
|
16
25
|
};
|
|
17
26
|
};
|
|
18
27
|
export default _default;
|
|
@@ -26,16 +26,25 @@ var locales_default = {
|
|
|
26
26
|
"en": {
|
|
27
27
|
"page.wallet.guide.title": "Activate Now!",
|
|
28
28
|
"page.wallet.guide.subtitle": "Unlock membership benefits now",
|
|
29
|
-
"page.wallet.guide.button": "Get Your Reward"
|
|
29
|
+
"page.wallet.guide.button": "Get Your Reward",
|
|
30
|
+
"page.wallet.tempHolderSelector.title": "Set Holder",
|
|
31
|
+
"page.wallet.tempHolderSelector.create": "Create New",
|
|
32
|
+
"page.wallet.tempHolderSelector.confirm": "Confirm"
|
|
30
33
|
},
|
|
31
34
|
"zh-CN": {
|
|
32
35
|
"page.wallet.guide.title": "待解锁权益",
|
|
33
36
|
"page.wallet.guide.subtitle": "成为专属会员,即可享受更多权益",
|
|
34
|
-
"page.wallet.guide.button": "点击获取"
|
|
37
|
+
"page.wallet.guide.button": "点击获取",
|
|
38
|
+
"page.wallet.tempHolderSelector.title": "添加持有人",
|
|
39
|
+
"page.wallet.tempHolderSelector.create": "创建新持有人",
|
|
40
|
+
"page.wallet.tempHolderSelector.confirm": "确定"
|
|
35
41
|
},
|
|
36
42
|
"zh-HK": {
|
|
37
43
|
"page.wallet.guide.title": "待解鎖權益",
|
|
38
44
|
"page.wallet.guide.subtitle": "成為專屬會員,即可享受更多權益",
|
|
39
|
-
"page.wallet.guide.button": "點擊獲取"
|
|
45
|
+
"page.wallet.guide.button": "點擊獲取",
|
|
46
|
+
"page.wallet.tempHolderSelector.title": "添加持有人",
|
|
47
|
+
"page.wallet.tempHolderSelector.create": "創建新持有人",
|
|
48
|
+
"page.wallet.tempHolderSelector.confirm": "確定"
|
|
40
49
|
}
|
|
41
50
|
};
|
|
@@ -22,3 +22,22 @@ export declare const batchGetWalletBalance: (walletIds: string[]) => Promise<Rec
|
|
|
22
22
|
* @Date: 2025-06-09 11:12
|
|
23
23
|
*/
|
|
24
24
|
export declare const getWalletShopList: (params: any) => Promise<any>;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 获取持有人列表
|
|
27
|
+
* @description: 获取持有人列表
|
|
28
|
+
* @param params 查询参数
|
|
29
|
+
* @returns 持有人列表
|
|
30
|
+
*/
|
|
31
|
+
export declare const getHolderList: (params: any) => Promise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* 更新持有人
|
|
34
|
+
* @param params 更新参数
|
|
35
|
+
* @returns 更新结果
|
|
36
|
+
*/
|
|
37
|
+
export declare const updateWalletHolder: (id: string, params: any) => Promise<any>;
|
|
38
|
+
/**
|
|
39
|
+
* 获取表单配置
|
|
40
|
+
* @param formId 表单ID
|
|
41
|
+
* @returns 表单配置
|
|
42
|
+
*/
|
|
43
|
+
export declare const getFormConfig: (formId: string) => Promise<any>;
|
|
@@ -20,15 +20,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
batchGetWalletBalance: () => batchGetWalletBalance,
|
|
23
|
+
getFormConfig: () => getFormConfig,
|
|
24
|
+
getHolderList: () => getHolderList,
|
|
23
25
|
getWalletBalance: () => getWalletBalance,
|
|
24
26
|
getWalletList: () => getWalletList,
|
|
25
|
-
getWalletShopList: () => getWalletShopList
|
|
27
|
+
getWalletShopList: () => getWalletShopList,
|
|
28
|
+
updateWalletHolder: () => updateWalletHolder
|
|
26
29
|
});
|
|
27
30
|
module.exports = __toCommonJS(serve_exports);
|
|
28
31
|
var import_utils = require("./../../utils");
|
|
29
32
|
var getWalletList = async () => {
|
|
30
33
|
try {
|
|
31
|
-
const { data } = await import_utils.request.getRequest().get("/h5/wallet", {
|
|
34
|
+
const { data } = await import_utils.request.getRequest().get("/h5/wallet", {
|
|
35
|
+
with: ["holder.detail"]
|
|
36
|
+
});
|
|
32
37
|
return data || [];
|
|
33
38
|
} catch (error) {
|
|
34
39
|
return [];
|
|
@@ -63,10 +68,28 @@ var getWalletShopList = async (params) => {
|
|
|
63
68
|
return null;
|
|
64
69
|
}
|
|
65
70
|
};
|
|
71
|
+
var getHolderList = async (params) => {
|
|
72
|
+
try {
|
|
73
|
+
const { data } = await import_utils.request.getRequest().get("/h5/form/data/v1", params || {});
|
|
74
|
+
return data || null;
|
|
75
|
+
} catch (error) {
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var updateWalletHolder = async (id, params) => {
|
|
79
|
+
try {
|
|
80
|
+
const { data } = await import_utils.request.getRequest().post(`/h5/wallet/detail/${id}/bind-holder`, params || {});
|
|
81
|
+
return data || null;
|
|
82
|
+
} catch (error) {
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var getFormConfig = async (formId) => import_utils.request.getRequest().get(`/h5/form/${formId}`, {});
|
|
66
86
|
// Annotate the CommonJS export names for ESM import in node:
|
|
67
87
|
0 && (module.exports = {
|
|
68
88
|
batchGetWalletBalance,
|
|
89
|
+
getFormConfig,
|
|
90
|
+
getHolderList,
|
|
69
91
|
getWalletBalance,
|
|
70
92
|
getWalletList,
|
|
71
|
-
getWalletShopList
|
|
93
|
+
getWalletShopList,
|
|
94
|
+
updateWalletHolder
|
|
72
95
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare const getAvatarText: (name: string) => string;
|
|
4
|
+
interface ITempHolderSelectorProps {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
value: any;
|
|
7
|
+
formId: string;
|
|
8
|
+
customerId: string;
|
|
9
|
+
onConfirm: (value: any) => void;
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
confirmLoading: boolean;
|
|
12
|
+
}
|
|
13
|
+
export default function TempHolderSelector(props: ITempHolderSelectorProps): JSX.Element;
|
|
14
|
+
export {};
|