@pisell/private-materials 3.3.21 → 3.3.23
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/render/default/view.js +4 -4
- package/build/lowcode/view.js +4 -4
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.js +19 -7
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +2 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Content/index.js +0 -1
- package/es/components/appointmentBooking/components/Date/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Date/index.js +1 -5
- package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/index.js +4 -3
- package/es/components/appointmentBooking/components/Guest/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.js +21 -11
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
- package/es/components/appointmentBooking/context.d.ts +35 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +106 -0
- package/es/components/appointmentBooking/hooks.js +12 -18
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.js +3 -5
- package/es/components/appointmentBooking/locales.d.ts +354 -0
- package/es/components/appointmentBooking/utils.d.ts +114 -0
- package/es/components/appointmentBooking/utils.js +15 -15
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/addons/model.js +5 -5
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/voucher/index.js +4 -2
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.js +14 -16
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/service/addService/index.js +30 -17
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- 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 +6 -6
- 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/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/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- 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/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/wallet/model.d.ts +1 -9
- package/es/hooks/useComponents.js +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +12 -9
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +7 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Content/index.js +1 -1
- package/lib/components/appointmentBooking/components/Date/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Date/index.js +1 -1
- package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/index.js +3 -2
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.js +8 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
- package/lib/components/appointmentBooking/context.d.ts +35 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +106 -0
- package/lib/components/appointmentBooking/hooks.js +2 -6
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.js +2 -2
- package/lib/components/appointmentBooking/locales.d.ts +354 -0
- package/lib/components/appointmentBooking/utils.d.ts +114 -0
- package/lib/components/appointmentBooking/utils.js +14 -23
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/voucher/index.js +4 -2
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.js +14 -14
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/service/addService/index.js +27 -15
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- 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 +6 -6
- 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/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/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- 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/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/schedules/model.d.ts +1 -9
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/wallet/model.d.ts +1 -9
- package/package.json +3 -3
|
@@ -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,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 格式化holder表数据
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {any} data
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2025-05-07 21:22
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatHolder: (data: any[]) => any[];
|
|
10
|
+
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
11
|
+
/**
|
|
12
|
+
* @title: 格式化购物车中资源上挂接的表单数据
|
|
13
|
+
* @description:
|
|
14
|
+
* @param {any} data
|
|
15
|
+
* @param {any} resources
|
|
16
|
+
* @return {*}
|
|
17
|
+
* @Author: WangHan
|
|
18
|
+
* @Date: 2025-05-06 22:22
|
|
19
|
+
*/
|
|
20
|
+
export declare const formatCartsResources: (carts: any[], resources: any[], setPolicyIds: any) => any[];
|
|
21
|
+
/**
|
|
22
|
+
* @title: 格式化购物车数据
|
|
23
|
+
* @description:
|
|
24
|
+
* @param {any} data
|
|
25
|
+
* @param {any} resources
|
|
26
|
+
* @param {any} accountLists
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @Author: WangHan
|
|
29
|
+
* @Date: 2025-05-07 21:22
|
|
30
|
+
*/
|
|
31
|
+
export declare const formatCarts: (data: any[], resources: any[], utils: any, accountLists?: any) => any[];
|
|
32
|
+
/**
|
|
33
|
+
* @title: 对资源进行排序
|
|
34
|
+
* @description:
|
|
35
|
+
* @param {any} currentResourcesMap
|
|
36
|
+
* @param {any} resourceSort
|
|
37
|
+
* @return {*}
|
|
38
|
+
* @Author: WangHan
|
|
39
|
+
* @Date: 2025-04-14 11:16
|
|
40
|
+
*/
|
|
41
|
+
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
42
|
+
export declare const getMeAccount: (val: any[]) => any;
|
|
43
|
+
export declare const getCustomer: (utils: any) => any;
|
|
44
|
+
export declare const formatCustomer: (val: any) => {
|
|
45
|
+
id: any;
|
|
46
|
+
username: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const formatCurrentUser: (utils: any) => {
|
|
49
|
+
id: any;
|
|
50
|
+
username: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @title: 定金合并的标点符号
|
|
54
|
+
* @description:
|
|
55
|
+
* @return {*}
|
|
56
|
+
* @Author: WangHan
|
|
57
|
+
* @Date: 2025-04-21 17:52
|
|
58
|
+
*/
|
|
59
|
+
export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any;
|
|
60
|
+
/**
|
|
61
|
+
* @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单
|
|
62
|
+
* @description:
|
|
63
|
+
* @param {any} array
|
|
64
|
+
* @param {any} resources
|
|
65
|
+
* @return {*}
|
|
66
|
+
* @Author: WangHan
|
|
67
|
+
* @Date: 2025-04-25 19:05
|
|
68
|
+
*/
|
|
69
|
+
export declare const hasResourceFormId: (array: any[]) => boolean | undefined;
|
|
70
|
+
export declare const formatForms: (array: any[]) => ({
|
|
71
|
+
form_id: any;
|
|
72
|
+
policy_id: any;
|
|
73
|
+
id: any;
|
|
74
|
+
cart_id: any;
|
|
75
|
+
} | null)[];
|
|
76
|
+
/**
|
|
77
|
+
* @title: 打开表单
|
|
78
|
+
* @description:
|
|
79
|
+
* @param {string} title
|
|
80
|
+
* @param {any} callback
|
|
81
|
+
* @return {*}
|
|
82
|
+
* @Author: WangHan
|
|
83
|
+
* @Date: 2025-04-26 15:26
|
|
84
|
+
*/
|
|
85
|
+
export declare const openForm: ({ form_id, title, callback, utils }: any) => void;
|
|
86
|
+
/**
|
|
87
|
+
* @title: 更新数组
|
|
88
|
+
* @description:
|
|
89
|
+
* @return {*}
|
|
90
|
+
* @Author: WangHan
|
|
91
|
+
* @Date: 2025-04-26 18:13
|
|
92
|
+
*/
|
|
93
|
+
export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
|
|
94
|
+
/**
|
|
95
|
+
* @title: 更新表单存储
|
|
96
|
+
* @description:
|
|
97
|
+
* @param {any} bookingForm
|
|
98
|
+
* @param {number} id
|
|
99
|
+
* @param {any} newData
|
|
100
|
+
* @return {*}
|
|
101
|
+
* @Author: WangHan
|
|
102
|
+
* @Date: 2025-04-27 17:27
|
|
103
|
+
*/
|
|
104
|
+
export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
|
|
105
|
+
export declare const Toast: (text: string) => void;
|
|
106
|
+
/**
|
|
107
|
+
* @title: 添加或移除表单步骤
|
|
108
|
+
* @description:
|
|
109
|
+
* @param {any} param1
|
|
110
|
+
* @return {*}
|
|
111
|
+
* @Author: WangHan
|
|
112
|
+
* @Date: 2025-05-06 21:51
|
|
113
|
+
*/
|
|
114
|
+
export declare const checkHasFormStep: ({ nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
|
|
29
19
|
// src/components/appointmentBooking/utils.ts
|
|
@@ -50,7 +40,6 @@ __export(utils_exports, {
|
|
|
50
40
|
module.exports = __toCommonJS(utils_exports);
|
|
51
41
|
var import_utils = require("@pisell/utils");
|
|
52
42
|
var import_materials = require("@pisell/materials");
|
|
53
|
-
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
54
43
|
var formatHolder = (data) => {
|
|
55
44
|
return data == null ? void 0 : data.map((d) => {
|
|
56
45
|
return {
|
|
@@ -102,11 +91,10 @@ var formatCartsResources = (carts, resources, setPolicyIds) => {
|
|
|
102
91
|
return [];
|
|
103
92
|
}
|
|
104
93
|
};
|
|
105
|
-
var formatCarts = (data, resources, accountLists) => {
|
|
94
|
+
var formatCarts = (data, resources, utils, accountLists) => {
|
|
106
95
|
var _a;
|
|
107
96
|
try {
|
|
108
|
-
|
|
109
|
-
const utils = context.appHelper.utils || {};
|
|
97
|
+
if (!utils || !(data == null ? void 0 : data.length)) return [];
|
|
110
98
|
const locale = ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
111
99
|
const symbol = (utils == null ? void 0 : utils.getSymbolic()) || "$";
|
|
112
100
|
const newCarts = data == null ? void 0 : data.map((d) => {
|
|
@@ -170,14 +158,17 @@ var sortResources = (resources, resourceSort) => {
|
|
|
170
158
|
var getMeAccount = (val) => {
|
|
171
159
|
return val == null ? void 0 : val.find((d) => !(d == null ? void 0 : d.isGuest));
|
|
172
160
|
};
|
|
173
|
-
var getCustomer = () => {
|
|
161
|
+
var getCustomer = (utils) => {
|
|
174
162
|
var _a, _b;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
163
|
+
try {
|
|
164
|
+
if (!utils) return;
|
|
165
|
+
let userInfo = (_b = (_a = utils.getStore().getState()) == null ? void 0 : _a.global) == null ? void 0 : _b.userInfo;
|
|
166
|
+
const localUserInfo = JSON.parse(utils.storage.get("customer") || "{}");
|
|
167
|
+
userInfo = (userInfo == null ? void 0 : userInfo.id) ? userInfo : localUserInfo;
|
|
168
|
+
return userInfo;
|
|
169
|
+
} catch (error) {
|
|
170
|
+
console.log(`getCustomer ${error}`);
|
|
171
|
+
}
|
|
181
172
|
};
|
|
182
173
|
var formatCustomer = (val) => {
|
|
183
174
|
let currentUserName = `${(val == null ? void 0 : val.first_name) || ""}${(val == null ? void 0 : val.last_name) ? ` ${val == null ? void 0 : val.last_name}` : ""}`;
|
|
@@ -187,8 +178,8 @@ var formatCustomer = (val) => {
|
|
|
187
178
|
username: currentUserName
|
|
188
179
|
};
|
|
189
180
|
};
|
|
190
|
-
var formatCurrentUser = () => {
|
|
191
|
-
let userInfo = getCustomer();
|
|
181
|
+
var formatCurrentUser = (utils) => {
|
|
182
|
+
let userInfo = getCustomer(utils);
|
|
192
183
|
const customer = formatCustomer(userInfo);
|
|
193
184
|
return customer;
|
|
194
185
|
};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -57,7 +57,7 @@ var VoucherCard = (props) => {
|
|
|
57
57
|
var _a, _b;
|
|
58
58
|
const context = (0, import_useEngineContext.default)();
|
|
59
59
|
const { state, dispatch } = props;
|
|
60
|
-
const [showDetail, setShowDetail] = (0, import_react.useState)(
|
|
60
|
+
const [showDetail, setShowDetail] = (0, import_react.useState)(false);
|
|
61
61
|
const { pisellos } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
62
62
|
const [code, setCode] = (0, import_react.useState)("");
|
|
63
63
|
const [discountList, setDisCountList] = (0, import_react.useState)([]);
|
|
@@ -163,10 +163,12 @@ var VoucherCard = (props) => {
|
|
|
163
163
|
const val = await shopDiscount.scanCode(code);
|
|
164
164
|
console.log(val);
|
|
165
165
|
if (val == null ? void 0 : val.isAvailable) {
|
|
166
|
+
productRef.current = val.productList;
|
|
166
167
|
dispatch({
|
|
167
168
|
type: "setService",
|
|
168
169
|
payload: {
|
|
169
|
-
value: val.productList
|
|
170
|
+
value: val.productList,
|
|
171
|
+
edit: true
|
|
170
172
|
}
|
|
171
173
|
});
|
|
172
174
|
setCode("");
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -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;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|