@pisell/private-materials 3.3.22 → 3.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +5 -5
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/locales.d.ts +354 -0
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.d.ts +38 -0
- package/es/components/booking/components/footer/index.js +5 -4
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +6 -0
- package/es/components/booking/forms/sendModal/index.d.ts +27 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.js +39 -15
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/utils.d.ts +4 -0
- package/es/components/booking/info/utils.js +18 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +16 -2
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/editService/index.js +25 -2
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/locales.d.ts +807 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/booking/utils.js +8 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.d.ts +4 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +5 -0
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/pay.d.ts +21 -0
- package/es/components/eftposPay/payo/config.d.ts +13 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/utils.d.ts +49 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +10 -0
- package/es/components/ruleSetting/server.d.ts +4 -0
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/components/workSpaceList/components/EditableString/index.d.ts +21 -0
- package/es/components/workSpaceList/components/SearchBar/index.d.ts +17 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +3 -0
- package/es/components/workSpaceList/components/Sort/index.d.ts +7 -0
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/locales.d.ts +354 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.d.ts +38 -0
- package/lib/components/booking/components/footer/index.js +6 -9
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +6 -0
- package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.js +32 -10
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/utils.d.ts +4 -0
- package/lib/components/booking/info/utils.js +17 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +12 -2
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editService/index.js +28 -4
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/locales.d.ts +807 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/booking/utils.js +8 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +5 -0
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/pay.d.ts +21 -0
- package/lib/components/eftposPay/payo/config.d.ts +13 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/utils.d.ts +49 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +10 -0
- package/lib/components/ruleSetting/server.d.ts +4 -0
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/components/workSpaceList/components/EditableString/index.d.ts +21 -0
- package/lib/components/workSpaceList/components/SearchBar/index.d.ts +17 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +3 -0
- package/lib/components/workSpaceList/components/Sort/index.d.ts +7 -0
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/package.json +4 -4
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.event.calendar.limit.unavailable': string;
|
|
4
|
+
'pisell2.event.calendar.limit.sold.out': string;
|
|
5
|
+
'pisell2.event.calendar.limit.call.to.book': string;
|
|
6
|
+
'pisell2.event.calendar.limit.filling.up.fast': string;
|
|
7
|
+
'pisell2.event.calendar.limit.lots.of.space': string;
|
|
8
|
+
'pisell2.event.calendar.booking-closed': string;
|
|
9
|
+
'pisell2.event.calendar.call-to-book': string;
|
|
10
|
+
'pisell2.event.calendar.email-to-book': string;
|
|
11
|
+
'pisell2.event.close.title': string;
|
|
12
|
+
'pisell2.event.close.tip': string;
|
|
13
|
+
'pisell2.event.close.continue': string;
|
|
14
|
+
'pisell2.event.close.exit': string;
|
|
15
|
+
'pisell2.appointment.step': (step: number) => string;
|
|
16
|
+
'pisell2.event.select.category': (val: string) => string;
|
|
17
|
+
'pisell2.event.select.campus': (val: string) => string;
|
|
18
|
+
'pisell2.event.select.event': string;
|
|
19
|
+
'pisell2.event.cart': string;
|
|
20
|
+
'pisell2.event.total': string;
|
|
21
|
+
'pisell2.event.total.gst': (val: string, amount: any) => string;
|
|
22
|
+
'pisell2.event.continue': string;
|
|
23
|
+
'pisell2.event.details': string;
|
|
24
|
+
'pisell2.event.introduction': string;
|
|
25
|
+
'pisell2.event.schedule': string;
|
|
26
|
+
'pisell2.event.teacher': string;
|
|
27
|
+
'pisell2.event.campus': string;
|
|
28
|
+
'pisell2.event.resource': string;
|
|
29
|
+
'pisell2.event.booking.options': string;
|
|
30
|
+
'pisell2.event.add.to.cart': string;
|
|
31
|
+
'pisell2.event.description': string;
|
|
32
|
+
'pisell2.event.view.more': string;
|
|
33
|
+
'pisell2.event.view.less': string;
|
|
34
|
+
'pisell2.event.holder.modal.title': string;
|
|
35
|
+
'pisell2.event.confirm': string;
|
|
36
|
+
'pisell2.event.confirm.information': string;
|
|
37
|
+
'pisell2.event.confirm.information.tip': string;
|
|
38
|
+
'pisell2.event.confirm.information.other': string;
|
|
39
|
+
'pisell2.event.add.others': string;
|
|
40
|
+
'pisell2.event.checkout': string;
|
|
41
|
+
'pisell2.event.edit.event': string;
|
|
42
|
+
'pisell2.event.remove': string;
|
|
43
|
+
'pisell2.event.option': string;
|
|
44
|
+
'pisell2.event.order.items.error.title': string;
|
|
45
|
+
'pisell2.event.order.items.error.tip': (val: number) => string;
|
|
46
|
+
'pisell2.event.order.items.error.proceed': string;
|
|
47
|
+
'pisell2.event.order.items.error.return': string;
|
|
48
|
+
'pisell2.event.order.items.error.back': string;
|
|
49
|
+
'pisell2.event.order.items.error.continue': string;
|
|
50
|
+
'pisell2.event.order.items.error.all.tip': string;
|
|
51
|
+
'pisell2.event.remove.title': string;
|
|
52
|
+
'pisell2.event.remove.tip': string;
|
|
53
|
+
'pisell2.event.remove.cancel': string;
|
|
54
|
+
'pisell2.event.create': string;
|
|
55
|
+
'pisell2.event.search': string;
|
|
56
|
+
'pisell2.event.empty.service': string;
|
|
57
|
+
'pisell2.event.title': (val: number) => string;
|
|
58
|
+
'pisell2.event.create.form': string;
|
|
59
|
+
'pisell2.event.empty.event': string;
|
|
60
|
+
'pisell2.event.error.holder': string;
|
|
61
|
+
'pisell2.event.price.from': string;
|
|
62
|
+
'pisell2.event.empty.holder.title': string;
|
|
63
|
+
'pisell2.event.empty.holder.tip': string;
|
|
64
|
+
'pisell2.event.empty.holder.continue.tip': string;
|
|
65
|
+
'pisell2.event.empty.holder.go.back': string;
|
|
66
|
+
'pisell2.event.empty.holder.continue.anyway': string;
|
|
67
|
+
'pisell2.event.event.full.title': string;
|
|
68
|
+
'pisell2.event.event.full.tip': string;
|
|
69
|
+
'pisell2.event.event.full.ok': string;
|
|
70
|
+
'pisell2.event.capacity.limit.reached.title': string;
|
|
71
|
+
'pisell2.event.capacity.limit.reached.tip': string;
|
|
72
|
+
'pisell2.appointment.booking.empty.service': string;
|
|
73
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
74
|
+
'pisell2.appointment.booking.empty.time': string;
|
|
75
|
+
'pisell2.appointment.service.title': (val: number) => string;
|
|
76
|
+
'pisell2.appointment.add.guest': string;
|
|
77
|
+
'pisell2.appointment.edit.service': string;
|
|
78
|
+
'pisell2.appointment.remove.guest': string;
|
|
79
|
+
'pisell2.appointment.no.available.service': string;
|
|
80
|
+
'pisell2.appointment.max.guest': string;
|
|
81
|
+
'pisell2.appointment.no.available.time': string;
|
|
82
|
+
'pisell2.appointment.monday': string;
|
|
83
|
+
'pisell2.appointment.tuesday': string;
|
|
84
|
+
'pisell2.appointment.wednesday': string;
|
|
85
|
+
'pisell2.appointment.thursday': string;
|
|
86
|
+
'pisell2.appointment.friday': string;
|
|
87
|
+
'pisell2.appointment.saturday': string;
|
|
88
|
+
'pisell2.appointment.sunday': string;
|
|
89
|
+
'pisell2.appointment.any.professional': string;
|
|
90
|
+
'pisell2.appointment.for.maximum.availability': string;
|
|
91
|
+
'pisell2.appointment.deposit': string;
|
|
92
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
93
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
94
|
+
'pisell2.appointment.deposit.and': string;
|
|
95
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
96
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
97
|
+
'pisell2.appointment.deposit.close': string;
|
|
98
|
+
'pisell2.appointment.tips': string;
|
|
99
|
+
'pisell2.appointment.tips.content': string;
|
|
100
|
+
'pisell2.appointment.fill-form': string;
|
|
101
|
+
'pisell2.appointment.select.holder': (val: string) => string;
|
|
102
|
+
'pisell2.appointment.select.time': string;
|
|
103
|
+
'pisell2.appointment.unselect.time': string;
|
|
104
|
+
'pisell2.appointment.unselect.date': string;
|
|
105
|
+
'pisell2.appointment.unuse.date': string;
|
|
106
|
+
'pisell2.appointment.add-guests': string;
|
|
107
|
+
'pisell2.appointment.policy': string;
|
|
108
|
+
'pisell2.appointment.policy.confirm': string;
|
|
109
|
+
'pisell2.text.apply': string;
|
|
110
|
+
'pisell2.text.goodpass': string;
|
|
111
|
+
'pisell2.text.goodpass.product-vouchers': string;
|
|
112
|
+
'pisell2.text.goodpass.view-more': string;
|
|
113
|
+
'pisell2.text.goodpass.code': string;
|
|
114
|
+
'pisell2.text.goodpass.enter-code': string;
|
|
115
|
+
'pisell2.text.goodpass.code-invalid': string;
|
|
116
|
+
'pisell2.text.goodpass.login': string;
|
|
117
|
+
'pisell2.text.goodpass.login-tip': string;
|
|
118
|
+
};
|
|
119
|
+
'zh-CN': {
|
|
120
|
+
'pisell2.event.calendar.limit.unavailable': string;
|
|
121
|
+
'pisell2.event.calendar.limit.sold.out': string;
|
|
122
|
+
'pisell2.event.calendar.limit.call.to.book': string;
|
|
123
|
+
'pisell2.event.calendar.limit.filling.up.fast': string;
|
|
124
|
+
'pisell2.event.calendar.limit.lots.of.space': string;
|
|
125
|
+
'pisell2.event.calendar.booking-closed': string;
|
|
126
|
+
'pisell2.event.calendar.call-to-book': string;
|
|
127
|
+
'pisell2.event.calendar.email-to-book': string;
|
|
128
|
+
'pisell2.event.close.title': string;
|
|
129
|
+
'pisell2.event.close.tip': string;
|
|
130
|
+
'pisell2.event.close.continue': string;
|
|
131
|
+
'pisell2.event.close.exit': string;
|
|
132
|
+
'pisell2.appointment.step': (step: number) => string;
|
|
133
|
+
'pisell2.event.select.category': (val: string) => string;
|
|
134
|
+
'pisell2.event.select.event': string;
|
|
135
|
+
'pisell2.event.select.campus': (val: string) => string;
|
|
136
|
+
'pisell2.event.cart': string;
|
|
137
|
+
'pisell2.event.total': string;
|
|
138
|
+
'pisell2.event.total.gst': (val: string, amount: any) => string;
|
|
139
|
+
'pisell2.event.continue': string;
|
|
140
|
+
'pisell2.event.details': string;
|
|
141
|
+
'pisell2.event.introduction': string;
|
|
142
|
+
'pisell2.event.schedule': string;
|
|
143
|
+
'pisell2.event.teacher': string;
|
|
144
|
+
'pisell2.event.campus': string;
|
|
145
|
+
'pisell2.event.resource': string;
|
|
146
|
+
'pisell2.event.booking.options': string;
|
|
147
|
+
'pisell2.event.add.to.cart': string;
|
|
148
|
+
'pisell2.event.description': string;
|
|
149
|
+
'pisell2.event.view.more': string;
|
|
150
|
+
'pisell2.event.view.less': string;
|
|
151
|
+
'pisell2.event.holder.modal.title': string;
|
|
152
|
+
'pisell2.event.confirm': string;
|
|
153
|
+
'pisell2.event.confirm.information': string;
|
|
154
|
+
'pisell2.event.confirm.information.tip': string;
|
|
155
|
+
'pisell2.event.confirm.information.other': string;
|
|
156
|
+
'pisell2.event.add.others': string;
|
|
157
|
+
'pisell2.event.checkout': string;
|
|
158
|
+
'pisell2.event.edit.event': string;
|
|
159
|
+
'pisell2.event.remove': string;
|
|
160
|
+
'pisell2.event.option': string;
|
|
161
|
+
'pisell2.event.order.items.error.title': string;
|
|
162
|
+
'pisell2.event.order.items.error.tip': (val: number) => string;
|
|
163
|
+
'pisell2.event.order.items.error.proceed': string;
|
|
164
|
+
'pisell2.event.order.items.error.return': string;
|
|
165
|
+
'pisell2.event.order.items.error.back': string;
|
|
166
|
+
'pisell2.event.order.items.error.continue': string;
|
|
167
|
+
'pisell2.event.order.items.error.all.tip': string;
|
|
168
|
+
'pisell2.event.remove.title': string;
|
|
169
|
+
'pisell2.event.remove.tip': string;
|
|
170
|
+
'pisell2.event.remove.cancel': string;
|
|
171
|
+
'pisell2.event.create': string;
|
|
172
|
+
'pisell2.event.search': string;
|
|
173
|
+
'pisell2.event.empty.service': string;
|
|
174
|
+
'pisell2.event.title': (val: number) => string;
|
|
175
|
+
'pisell2.event.create.form': string;
|
|
176
|
+
'pisell2.event.empty.event': string;
|
|
177
|
+
'pisell2.event.error.holder': string;
|
|
178
|
+
'pisell2.event.price.from': string;
|
|
179
|
+
'pisell2.event.empty.holder.title': string;
|
|
180
|
+
'pisell2.event.empty.holder.tip': string;
|
|
181
|
+
'pisell2.event.empty.holder.continue.tip': string;
|
|
182
|
+
'pisell2.event.empty.holder.go.back': string;
|
|
183
|
+
'pisell2.event.empty.holder.continue.anyway': string;
|
|
184
|
+
'pisell2.event.event.full.title': string;
|
|
185
|
+
'pisell2.event.event.full.tip': string;
|
|
186
|
+
'pisell2.event.event.full.ok': string;
|
|
187
|
+
'pisell2.event.capacity.limit.reached.title': string;
|
|
188
|
+
'pisell2.event.capacity.limit.reached.tip': string;
|
|
189
|
+
'pisell2.appointment.booking.empty.service': string;
|
|
190
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
191
|
+
'pisell2.appointment.booking.empty.time': string;
|
|
192
|
+
'pisell2.appointment.service.title': (val: number) => string;
|
|
193
|
+
'pisell2.appointment.add.guest': string;
|
|
194
|
+
'pisell2.appointment.edit.service': string;
|
|
195
|
+
'pisell2.appointment.remove.guest': string;
|
|
196
|
+
'pisell2.appointment.no.available.service': string;
|
|
197
|
+
'pisell2.appointment.max.guest': string;
|
|
198
|
+
'pisell2.appointment.no.available.time': string;
|
|
199
|
+
'pisell2.appointment.monday': string;
|
|
200
|
+
'pisell2.appointment.tuesday': string;
|
|
201
|
+
'pisell2.appointment.wednesday': string;
|
|
202
|
+
'pisell2.appointment.thursday': string;
|
|
203
|
+
'pisell2.appointment.friday': string;
|
|
204
|
+
'pisell2.appointment.saturday': string;
|
|
205
|
+
'pisell2.appointment.sunday': string;
|
|
206
|
+
'pisell2.appointment.any.professional': string;
|
|
207
|
+
'pisell2.appointment.for.maximum.availability': string;
|
|
208
|
+
'pisell2.appointment.deposit': string;
|
|
209
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
210
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
211
|
+
'pisell2.appointment.deposit.and': string;
|
|
212
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
213
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
214
|
+
'pisell2.appointment.deposit.close': string;
|
|
215
|
+
'pisell2.appointment.tips': string;
|
|
216
|
+
'pisell2.appointment.tips.content': string;
|
|
217
|
+
'pisell2.appointment.fill-form': string;
|
|
218
|
+
'pisell2.appointment.select.holder': (val: string) => string;
|
|
219
|
+
'pisell2.appointment.select.time': string;
|
|
220
|
+
'pisell2.appointment.unselect.time': string;
|
|
221
|
+
'pisell2.appointment.unselect.date': string;
|
|
222
|
+
'pisell2.appointment.unuse.date': string;
|
|
223
|
+
'pisell2.appointment.add-guests': string;
|
|
224
|
+
'pisell2.appointment.policy': string;
|
|
225
|
+
'pisell2.appointment.policy.confirm': string;
|
|
226
|
+
'pisell2.text.apply': string;
|
|
227
|
+
'pisell2.text.goodpass': string;
|
|
228
|
+
'pisell2.text.goodpass.product-vouchers': string;
|
|
229
|
+
'pisell2.text.goodpass.view-more': string;
|
|
230
|
+
'pisell2.text.goodpass.code': string;
|
|
231
|
+
'pisell2.text.goodpass.enter-code': string;
|
|
232
|
+
'pisell2.text.goodpass.code-invalid': string;
|
|
233
|
+
'pisell2.text.goodpass.login': string;
|
|
234
|
+
'pisell2.text.goodpass.login-tip': string;
|
|
235
|
+
};
|
|
236
|
+
'zh-HK': {
|
|
237
|
+
'pisell2.event.calendar.limit.unavailable': string;
|
|
238
|
+
'pisell2.event.calendar.limit.sold.out': string;
|
|
239
|
+
'pisell2.event.calendar.limit.call.to.book': string;
|
|
240
|
+
'pisell2.event.calendar.limit.filling.up.fast': string;
|
|
241
|
+
'pisell2.event.calendar.limit.lots.of.space': string;
|
|
242
|
+
'pisell2.event.calendar.booking-closed': string;
|
|
243
|
+
'pisell2.event.calendar.call-to-book': string;
|
|
244
|
+
'pisell2.event.calendar.email-to-book': string;
|
|
245
|
+
'pisell2.event.close.title': string;
|
|
246
|
+
'pisell2.event.close.tip': string;
|
|
247
|
+
'pisell2.event.close.continue': string;
|
|
248
|
+
'pisell2.event.close.exit': string;
|
|
249
|
+
'pisell2.appointment.step': (step: number) => string;
|
|
250
|
+
'pisell2.event.select.category': (val: string) => string;
|
|
251
|
+
'pisell2.event.select.event': string;
|
|
252
|
+
'pisell2.event.select.campus': (val: string) => string;
|
|
253
|
+
'pisell2.event.cart': string;
|
|
254
|
+
'pisell2.event.total': string;
|
|
255
|
+
'pisell2.event.total.gst': (val: string, amount: any) => string;
|
|
256
|
+
'pisell2.event.continue': string;
|
|
257
|
+
'pisell2.event.details': string;
|
|
258
|
+
'pisell2.event.introduction': string;
|
|
259
|
+
'pisell2.event.schedule': string;
|
|
260
|
+
'pisell2.event.teacher': string;
|
|
261
|
+
'pisell2.event.campus': string;
|
|
262
|
+
'pisell2.event.resource': string;
|
|
263
|
+
'pisell2.event.booking.options': string;
|
|
264
|
+
'pisell2.event.add.to.cart': string;
|
|
265
|
+
'pisell2.event.description': string;
|
|
266
|
+
'pisell2.event.view.more': string;
|
|
267
|
+
'pisell2.event.view.less': string;
|
|
268
|
+
'pisell2.event.holder.modal.title': string;
|
|
269
|
+
'pisell2.event.confirm': string;
|
|
270
|
+
'pisell2.event.confirm.information': string;
|
|
271
|
+
'pisell2.event.confirm.information.tip': string;
|
|
272
|
+
'pisell2.event.confirm.information.other': string;
|
|
273
|
+
'pisell2.event.add.others': string;
|
|
274
|
+
'pisell2.event.checkout': string;
|
|
275
|
+
'pisell2.event.edit.event': string;
|
|
276
|
+
'pisell2.event.remove': string;
|
|
277
|
+
'pisell2.event.option': string;
|
|
278
|
+
'pisell2.event.order.items.error.title': string;
|
|
279
|
+
'pisell2.event.order.items.error.tip': (val: number) => string;
|
|
280
|
+
'pisell2.event.order.items.error.proceed': string;
|
|
281
|
+
'pisell2.event.order.items.error.return': string;
|
|
282
|
+
'pisell2.event.order.items.error.back': string;
|
|
283
|
+
'pisell2.event.order.items.error.continue': string;
|
|
284
|
+
'pisell2.event.order.items.error.all.tip': string;
|
|
285
|
+
'pisell2.event.remove.title': string;
|
|
286
|
+
'pisell2.event.remove.tip': string;
|
|
287
|
+
'pisell2.event.remove.cancel': string;
|
|
288
|
+
'pisell2.event.create': string;
|
|
289
|
+
'pisell2.event.search': string;
|
|
290
|
+
'pisell2.event.empty.service': string;
|
|
291
|
+
'pisell2.event.title': (val: number) => string;
|
|
292
|
+
'pisell2.event.create.form': string;
|
|
293
|
+
'pisell2.event.empty.event': string;
|
|
294
|
+
'pisell2.event.error.holder': string;
|
|
295
|
+
'pisell2.event.price.from': string;
|
|
296
|
+
'pisell2.event.empty.holder.title': string;
|
|
297
|
+
'pisell2.event.empty.holder.tip': string;
|
|
298
|
+
'pisell2.event.empty.holder.continue.tip': string;
|
|
299
|
+
'pisell2.event.empty.holder.go.back': string;
|
|
300
|
+
'pisell2.event.empty.holder.continue.anyway': string;
|
|
301
|
+
'pisell2.event.event.full.title': string;
|
|
302
|
+
'pisell2.event.event.full.tip': string;
|
|
303
|
+
'pisell2.event.event.full.ok': string;
|
|
304
|
+
'pisell2.event.capacity.limit.reached.title': string;
|
|
305
|
+
'pisell2.event.capacity.limit.reached.tip': string;
|
|
306
|
+
'pisell2.appointment.booking.empty.service': string;
|
|
307
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
308
|
+
'pisell2.appointment.booking.empty.time': string;
|
|
309
|
+
'pisell2.appointment.service.title': (val: number) => string;
|
|
310
|
+
'pisell2.appointment.add.guest': string;
|
|
311
|
+
'pisell2.appointment.edit.service': string;
|
|
312
|
+
'pisell2.appointment.remove.guest': string;
|
|
313
|
+
'pisell2.appointment.no.available.service': string;
|
|
314
|
+
'pisell2.appointment.max.guest': string;
|
|
315
|
+
'pisell2.appointment.no.available.time': string;
|
|
316
|
+
'pisell2.appointment.monday': string;
|
|
317
|
+
'pisell2.appointment.tuesday': string;
|
|
318
|
+
'pisell2.appointment.wednesday': string;
|
|
319
|
+
'pisell2.appointment.thursday': string;
|
|
320
|
+
'pisell2.appointment.friday': string;
|
|
321
|
+
'pisell2.appointment.saturday': string;
|
|
322
|
+
'pisell2.appointment.sunday': string;
|
|
323
|
+
'pisell2.appointment.any.professional': string;
|
|
324
|
+
'pisell2.appointment.for.maximum.availability': string;
|
|
325
|
+
'pisell2.appointment.deposit': string;
|
|
326
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
327
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
328
|
+
'pisell2.appointment.deposit.and': string;
|
|
329
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
330
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
331
|
+
'pisell2.appointment.deposit.close': string;
|
|
332
|
+
'pisell2.appointment.tips': string;
|
|
333
|
+
'pisell2.appointment.tips.content': string;
|
|
334
|
+
'pisell2.appointment.fill-form': string;
|
|
335
|
+
'pisell2.appointment.select.holder': (val: string) => string;
|
|
336
|
+
'pisell2.appointment.select.time': string;
|
|
337
|
+
'pisell2.appointment.unselect.time': string;
|
|
338
|
+
'pisell2.appointment.unselect.date': string;
|
|
339
|
+
'pisell2.appointment.unuse.date': string;
|
|
340
|
+
'pisell2.appointment.add-guests': string;
|
|
341
|
+
'pisell2.appointment.policy': string;
|
|
342
|
+
'pisell2.appointment.policy.confirm': string;
|
|
343
|
+
'pisell2.text.apply': string;
|
|
344
|
+
'pisell2.text.goodpass': string;
|
|
345
|
+
'pisell2.text.goodpass.product-vouchers': string;
|
|
346
|
+
'pisell2.text.goodpass.view-more': string;
|
|
347
|
+
'pisell2.text.goodpass.code': string;
|
|
348
|
+
'pisell2.text.goodpass.enter-code': string;
|
|
349
|
+
'pisell2.text.goodpass.code-invalid': string;
|
|
350
|
+
'pisell2.text.goodpass.login': string;
|
|
351
|
+
'pisell2.text.goodpass.login-tip': string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface CustomSelectProps {
|
|
4
|
+
options: any[];
|
|
5
|
+
onValueChange: (value: any[]) => void;
|
|
6
|
+
value: any[];
|
|
7
|
+
rowKey: string;
|
|
8
|
+
previewItemRender?: (item: any) => React.ReactNode;
|
|
9
|
+
previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
|
|
10
|
+
addButtonRender?: () => React.ReactNode;
|
|
11
|
+
optionRender: (item: any) => React.ReactNode;
|
|
12
|
+
addButtonProps?: any;
|
|
13
|
+
drawerProps?: any;
|
|
14
|
+
createItemText?: string;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
previewItemClassName?: string;
|
|
17
|
+
optionClassName?: string;
|
|
18
|
+
mode?: 'single' | 'multiple' | 'form';
|
|
19
|
+
filterItem?: (item: any, search: string) => boolean;
|
|
20
|
+
isPreview?: boolean;
|
|
21
|
+
name?: string;
|
|
22
|
+
handleCreateItem?: () => void;
|
|
23
|
+
handleViewItem?: (item: any) => void;
|
|
24
|
+
searchChange?: (e: string) => void;
|
|
25
|
+
loadMore?: any;
|
|
26
|
+
virtualListHeight?: number;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
searchValue?: string;
|
|
29
|
+
onVirtualListScroll?: any;
|
|
30
|
+
modalOpen?: boolean;
|
|
31
|
+
closeCallback?: () => any;
|
|
32
|
+
autoFocus?: boolean;
|
|
33
|
+
showDropDown?: boolean;
|
|
34
|
+
handleOpenModal?: () => void;
|
|
35
|
+
handleDayChange?: (value: any) => void;
|
|
36
|
+
}
|
|
37
|
+
declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
|
|
38
|
+
export default _default;
|
|
@@ -41,16 +41,16 @@ var import_react = __toESM(require("react"));
|
|
|
41
41
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
42
42
|
var import_addons = require("../../addons");
|
|
43
43
|
var import_utils2 = require("../../info/service2/utils");
|
|
44
|
-
var import_utils3 = require("../../info/utils");
|
|
45
44
|
var import_serve = require("../../info2/serve");
|
|
46
45
|
var import_AppointmentProductModal = __toESM(require("./AppointmentProductModal"));
|
|
47
46
|
var import_FooterMenus = __toESM(require("./FooterMenus"));
|
|
48
47
|
var import_amount = require("./amount");
|
|
49
48
|
var import_index = require("./index.less");
|
|
50
49
|
var import_serve2 = require("./serve");
|
|
51
|
-
var
|
|
50
|
+
var import_utils3 = require("./utils");
|
|
52
51
|
var import_voucher = __toESM(require("../voucher"));
|
|
53
52
|
var import__ = require("../../../../index");
|
|
53
|
+
var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
|
|
54
54
|
var Footer = (props) => {
|
|
55
55
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
56
56
|
const { state, buttons, dispatch, source } = props;
|
|
@@ -58,6 +58,7 @@ var Footer = (props) => {
|
|
|
58
58
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
59
59
|
const [checkoutLoading, setCheckoutLoading] = (0, import_react.useState)(false);
|
|
60
60
|
const [isShowPaymentLink, setIsShowPaymentLink] = (0, import_react.useState)(false);
|
|
61
|
+
const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
|
|
61
62
|
const appointmentProductRef = (0, import_react.useRef)(null);
|
|
62
63
|
const context = (0, import_useEngineContext.default)();
|
|
63
64
|
const { isTerminal, interaction, store, storage, businessUtils } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
@@ -242,11 +243,7 @@ var Footer = (props) => {
|
|
|
242
243
|
}
|
|
243
244
|
};
|
|
244
245
|
const getApis = () => {
|
|
245
|
-
|
|
246
|
-
if ((0, import_utils3.isBooking4Shop)(
|
|
247
|
-
(_e2 = (_d2 = (_c2 = (_b2 = (_a2 = context.appHelper.utils.store) == null ? void 0 : _a2.getState) == null ? void 0 : _b2.call(_a2)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e2.id,
|
|
248
|
-
state.renderType
|
|
249
|
-
) || state.renderType === "dayBooking") {
|
|
246
|
+
if (isBooking4Shop || state.renderType === "dayBooking") {
|
|
250
247
|
return {
|
|
251
248
|
editBooking: import_serve.editBookings,
|
|
252
249
|
createBooking: import_serve.createBookings
|
|
@@ -274,7 +271,7 @@ var Footer = (props) => {
|
|
|
274
271
|
const isHasDayProducts = handleDaySubmit();
|
|
275
272
|
if (isHasDayProducts) return;
|
|
276
273
|
}
|
|
277
|
-
if ((0, import_utils2.getIsSubjectRequire)(state) && (0,
|
|
274
|
+
if (isBooking4Shop && (0, import_utils2.getIsSubjectRequire)(state) && (0, import_utils3.checkHolderIsError)(state)) {
|
|
278
275
|
return;
|
|
279
276
|
}
|
|
280
277
|
let _setLoading = type === "checkout" ? setCheckoutLoading : setLoading;
|
|
@@ -288,7 +285,7 @@ var Footer = (props) => {
|
|
|
288
285
|
}
|
|
289
286
|
try {
|
|
290
287
|
let callbackData = null;
|
|
291
|
-
let values = (0,
|
|
288
|
+
let values = (0, import_utils3.formatValues)({ ...state, ...saveOtherValue });
|
|
292
289
|
const api = state.bookingId ? editApi : createApi;
|
|
293
290
|
if (addonsEdit) {
|
|
294
291
|
await handleSaveAddons();
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare type SendModalValues = {
|
|
4
|
+
sendSms: boolean;
|
|
5
|
+
sendEmail: boolean;
|
|
6
|
+
phone: {
|
|
7
|
+
code: string;
|
|
8
|
+
phone: string;
|
|
9
|
+
};
|
|
10
|
+
email: string;
|
|
11
|
+
};
|
|
12
|
+
interface SendModalProps {
|
|
13
|
+
open: boolean;
|
|
14
|
+
refreshKey: string;
|
|
15
|
+
onCancel: () => void;
|
|
16
|
+
onOk: (values: SendModalValues) => void;
|
|
17
|
+
defaultValues?: {
|
|
18
|
+
email?: string;
|
|
19
|
+
phone?: {
|
|
20
|
+
code?: string;
|
|
21
|
+
phone?: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
onValuesChange?: (values: any) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const SendModal: React.FC<SendModalProps>;
|
|
27
|
+
export default SendModal;
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getWaiverTitle: (waiverForm: any[]) => string;
|
|
@@ -397,7 +397,7 @@ var Info = (_, ref) => {
|
|
|
397
397
|
isEventBookingMode
|
|
398
398
|
]);
|
|
399
399
|
const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
|
|
400
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
400
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
|
|
401
401
|
const item = state.service.cacheItem;
|
|
402
402
|
let values = form.getFieldsValue();
|
|
403
403
|
let dayValue = {};
|
|
@@ -412,6 +412,14 @@ var Info = (_, ref) => {
|
|
|
412
412
|
dayValue.product_option = option || [];
|
|
413
413
|
}
|
|
414
414
|
const isSession = (0, import_utils3.isSessionProduct)(item);
|
|
415
|
+
const sessionValue = {};
|
|
416
|
+
if (isSession) {
|
|
417
|
+
sessionValue.startEndTime = {
|
|
418
|
+
startDate: (_f2 = item == null ? void 0 : item._extend) == null ? void 0 : _f2.start_date,
|
|
419
|
+
endDate: (_g2 = item == null ? void 0 : item._extend) == null ? void 0 : _g2.end_date,
|
|
420
|
+
duration: (_h2 = item == null ? void 0 : item._extend) == null ? void 0 : _h2.duration
|
|
421
|
+
};
|
|
422
|
+
}
|
|
415
423
|
state.action({
|
|
416
424
|
type: "pisell1.handleOpenProductModal",
|
|
417
425
|
data: {
|
|
@@ -424,15 +432,18 @@ var Info = (_, ref) => {
|
|
|
424
432
|
package: true
|
|
425
433
|
},
|
|
426
434
|
value: {
|
|
427
|
-
...((
|
|
428
|
-
...dayValue
|
|
435
|
+
...((_i2 = item._extend) == null ? void 0 : _i2.other) || {},
|
|
436
|
+
...dayValue,
|
|
437
|
+
...sessionValue
|
|
429
438
|
},
|
|
430
439
|
isOS: isSession,
|
|
431
|
-
customer_id: isDayBookingMode ? ((
|
|
440
|
+
customer_id: isDayBookingMode ? ((_k2 = (_j2 = state.client) == null ? void 0 : _j2.value) == null ? void 0 : _k2.id) || 1 : void 0
|
|
432
441
|
},
|
|
433
442
|
callback: async (e2, extension_type, detail) => {
|
|
434
443
|
var _a3, _b3, _c3, _d3;
|
|
435
444
|
const _detail = detail || item;
|
|
445
|
+
const other = JSON.parse(JSON.stringify(e2));
|
|
446
|
+
other.session = e2.session;
|
|
436
447
|
let cacheItem = {
|
|
437
448
|
..._detail,
|
|
438
449
|
product_id: item.id,
|
|
@@ -443,7 +454,7 @@ var Info = (_, ref) => {
|
|
|
443
454
|
// 将当前表单的值覆盖进去
|
|
444
455
|
...values,
|
|
445
456
|
// 覆盖选择的规格和套餐
|
|
446
|
-
other
|
|
457
|
+
other
|
|
447
458
|
},
|
|
448
459
|
new: 0
|
|
449
460
|
};
|
|
@@ -451,6 +462,7 @@ var Info = (_, ref) => {
|
|
|
451
462
|
if ((_b3 = (_a3 = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _a3.other) == null ? void 0 : _b3.product_variant_id) {
|
|
452
463
|
cacheItem._extend.price = Number((_d3 = (_c3 = cacheItem._extend) == null ? void 0 : _c3.other) == null ? void 0 : _d3.price);
|
|
453
464
|
}
|
|
465
|
+
const sessionDetail = (0, import_utils7.editSessionProduct)(cacheItem, e2.session);
|
|
454
466
|
cacheItem._extend.total = _total;
|
|
455
467
|
cacheItem._extend.origin_total = _total;
|
|
456
468
|
dispatch({
|
|
@@ -459,12 +471,22 @@ var Info = (_, ref) => {
|
|
|
459
471
|
cacheItem
|
|
460
472
|
}
|
|
461
473
|
});
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
474
|
+
if (isDayBookingMode) {
|
|
475
|
+
setTimeout(() => {
|
|
476
|
+
updateMultiDay({
|
|
477
|
+
start_date: values.start_date,
|
|
478
|
+
end_date: values.end_date
|
|
479
|
+
});
|
|
480
|
+
}, 100);
|
|
481
|
+
} else {
|
|
482
|
+
form.setFieldsValue({
|
|
483
|
+
total: _total,
|
|
484
|
+
...(0, import_utils3.isSessionProduct)(cacheItem) && sessionDetail ? {
|
|
485
|
+
start_time: sessionDetail.start_time,
|
|
486
|
+
duration: sessionDetail.duration
|
|
487
|
+
} : {}
|
|
466
488
|
});
|
|
467
|
-
}
|
|
489
|
+
}
|
|
468
490
|
}
|
|
469
491
|
});
|
|
470
492
|
});
|