@pisell/private-materials 3.3.98 → 3.3.99

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.
Files changed (207) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/Sales/Cart/index.d.ts +53 -0
  12. package/es/components/Sales/Cart/index.js +1 -5
  13. package/es/components/Sales/Cart/utils.d.ts +23 -0
  14. package/es/components/Sales/Cart/utils.js +0 -167
  15. package/es/components/Sales/Checkout/index.d.ts +33 -0
  16. package/es/components/Sales/Checkout/index.js +8 -52
  17. package/es/components/Sales/Checkout/serve.d.ts +2 -0
  18. package/es/components/Sales/Checkout/serve.js +2 -16
  19. package/es/components/Sales/Checkout/utils.d.ts +35 -0
  20. package/es/components/Sales/Checkout/utils.js +1 -7
  21. package/es/components/Sales/Summary/index.d.ts +25 -0
  22. package/es/components/Sales/Summary/index.js +2 -17
  23. package/es/components/Sales/Summary/serve.d.ts +0 -0
  24. package/es/components/Sales/Summary/serve.js +0 -6
  25. package/es/components/Sales/Summary/utils.d.ts +36 -0
  26. package/es/components/Sales/Summary/utils.js +1 -43
  27. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  28. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  29. package/es/components/appointmentBooking/components/Content/index.js +1 -15
  30. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  31. package/es/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  32. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  33. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  34. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  35. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  36. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  37. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  38. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  39. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  40. package/es/components/appointmentBooking/deposit/index.js +2 -4
  41. package/es/components/appointmentBooking/index.d.ts +3 -0
  42. package/es/components/appointmentBooking/index.js +0 -14
  43. package/es/components/appointmentBooking/index.less +1 -1
  44. package/es/components/booking/components/voucher/index.d.ts +3 -0
  45. package/es/components/booking/components/voucher/index.js +2 -2
  46. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  47. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  48. package/es/components/booking/info/index.d.ts +1 -0
  49. package/es/components/booking/info/service/Lists.d.ts +0 -1
  50. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  51. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  52. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  53. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  54. package/es/components/booking/utils.d.ts +2 -2
  55. package/es/components/eftposPay/amount.d.ts +1 -1
  56. package/es/components/eftposPay/app.d.ts +0 -1
  57. package/es/components/eftposPay/const.d.ts +181 -0
  58. package/es/components/eftposPay/const.js +1 -3
  59. package/es/components/eftposPay/device.d.ts +1 -1
  60. package/es/components/eftposPay/hooks.d.ts +35 -0
  61. package/es/components/eftposPay/hooks.js +1 -3
  62. package/es/components/eftposPay/index.d.ts +4 -0
  63. package/es/components/eftposPay/index.js +1 -1
  64. package/es/components/eftposPay/manufacturer.d.ts +6 -0
  65. package/es/components/eftposPay/manufacturer.js +0 -4
  66. package/es/components/eftposPay/pay.d.ts +20 -0
  67. package/es/components/eftposPay/pay.js +2 -6
  68. package/es/components/eftposPay/store/index.d.ts +355 -0
  69. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
  71. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  72. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  73. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  74. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  75. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  76. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  81. package/es/components/eventBooking/components/bookingDetailModal/index.js +1 -3
  82. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  83. package/es/components/eventBooking/locales.d.ts +222 -0
  84. package/es/components/eventBooking/locales.js +3 -27
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  87. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  88. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  89. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  90. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  91. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  92. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  93. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  94. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -120
  95. package/es/components/ticketBooking/locales.d.ts +153 -0
  96. package/es/components/ticketBooking/locales.js +147 -195
  97. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  98. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  99. package/es/utils/index.d.ts +23 -0
  100. package/lib/components/Sales/Cart/index.d.ts +53 -0
  101. package/lib/components/Sales/Cart/index.js +0 -1
  102. package/lib/components/Sales/Cart/utils.d.ts +23 -0
  103. package/lib/components/Sales/Cart/utils.js +0 -117
  104. package/lib/components/Sales/Checkout/index.d.ts +33 -0
  105. package/lib/components/Sales/Checkout/index.js +7 -39
  106. package/lib/components/Sales/Checkout/serve.d.ts +2 -0
  107. package/lib/components/Sales/Checkout/serve.js +2 -7
  108. package/lib/components/Sales/Checkout/utils.d.ts +35 -0
  109. package/lib/components/Sales/Checkout/utils.js +0 -2
  110. package/lib/components/Sales/Summary/index.d.ts +25 -0
  111. package/lib/components/Sales/Summary/index.js +1 -7
  112. package/lib/components/Sales/Summary/serve.d.ts +0 -0
  113. package/lib/components/Sales/Summary/serve.js +0 -32
  114. package/lib/components/Sales/Summary/utils.d.ts +36 -0
  115. package/lib/components/Sales/Summary/utils.js +1 -30
  116. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  117. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  118. package/lib/components/appointmentBooking/components/Content/index.js +1 -6
  119. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  120. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  121. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  122. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  123. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  124. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  125. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  126. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  127. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  128. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  129. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  130. package/lib/components/appointmentBooking/index.d.ts +3 -0
  131. package/lib/components/appointmentBooking/index.js +0 -11
  132. package/lib/components/appointmentBooking/index.less +1 -1
  133. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  134. package/lib/components/booking/components/voucher/index.js +2 -2
  135. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  136. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  137. package/lib/components/booking/info/index.d.ts +1 -0
  138. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  139. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  140. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  141. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  142. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  143. package/lib/components/booking/utils.d.ts +2 -2
  144. package/lib/components/eftposPay/amount.d.ts +1 -1
  145. package/lib/components/eftposPay/app.d.ts +0 -1
  146. package/lib/components/eftposPay/const.d.ts +181 -0
  147. package/lib/components/eftposPay/const.js +0 -2
  148. package/lib/components/eftposPay/device.d.ts +1 -1
  149. package/lib/components/eftposPay/hooks.d.ts +35 -0
  150. package/lib/components/eftposPay/hooks.js +4 -11
  151. package/lib/components/eftposPay/index.d.ts +4 -0
  152. package/lib/components/eftposPay/index.js +1 -1
  153. package/lib/components/eftposPay/manufacturer.d.ts +6 -0
  154. package/lib/components/eftposPay/manufacturer.js +0 -6
  155. package/lib/components/eftposPay/pay.d.ts +20 -0
  156. package/lib/components/eftposPay/pay.js +2 -13
  157. package/lib/components/eftposPay/store/index.d.ts +355 -0
  158. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  159. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
  160. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  161. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  162. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  163. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  164. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  165. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  166. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  167. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  168. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  170. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  171. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  172. package/lib/components/eventBooking/locales.d.ts +222 -0
  173. package/lib/components/eventBooking/locales.js +3 -27
  174. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  175. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  176. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  177. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  178. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  179. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  180. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  181. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  182. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  183. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -120
  184. package/lib/components/ticketBooking/locales.d.ts +153 -0
  185. package/lib/components/ticketBooking/locales.js +4 -22
  186. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  187. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  188. package/lib/utils/index.d.ts +23 -0
  189. package/package.json +4 -4
  190. package/es/components/eftposPay/linkly/const.js +0 -82
  191. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  192. package/es/components/eftposPay/linkly/hooks/normal.js +0 -321
  193. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  194. package/es/components/eftposPay/linkly/index.js +0 -197
  195. package/es/components/eftposPay/linkly/service.js +0 -81
  196. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  197. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  198. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  199. package/lib/components/eftposPay/linkly/const.js +0 -102
  200. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  201. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -242
  202. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  203. package/lib/components/eftposPay/linkly/index.js +0 -208
  204. package/lib/components/eftposPay/linkly/service.js +0 -55
  205. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  206. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  207. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -0,0 +1,355 @@
1
+ import { ReactNode } from 'react';
2
+ import { DeviceStatusType, StatusType, ModeType, RouteType, ClientEnum } from '../const';
3
+ import { ThunkDispatch } from './useThunkReducer';
4
+ export declare enum EActionTypes {
5
+ UPDATE_INIT = "UPDATE_INIT",
6
+ UPDATE_CUSTOM = "UPDATE_CUSTOM",
7
+ UPDATE_KEY = "UPDATE_KEY",
8
+ UPDATE_STEP_KEY = "UPDATE_STEP_KEY",
9
+ UPDATE_DEVICE = "UPDATE_DEVICE",
10
+ UPDATE_NEXT_STEP = "UPDATE_NEXT_STEP",
11
+ UPDATE_STATUS = "UPDATE_STATUS",
12
+ UPDATE_TITLE = "UPDATE_TITLE",
13
+ UPDATE_LOADING = "UPDATE_LOADING",
14
+ UPDATE_COMPONENT = "UPDATE_COMPONENT",
15
+ UPDATE_STEPS = "UPDATE_STEPS",
16
+ UPDATE_STEP_CURRENT_ITEM_CUSTOM = "UPDATE_STEP_CURRENT_ITEM_CUSTOM",
17
+ UPDATE_STEP_ITEM = "UPDATE_STEP_ITEM",
18
+ BACKUP_PRODUCTION = "BACKUP_PRODUCTION",
19
+ BACKUP_FREE = "BACKUP_FREE",
20
+ UPDATE_CLIENT = "UPDATE_CLIENT"
21
+ }
22
+ export declare type State = {
23
+ /** 支付名称 */
24
+ name: string;
25
+ /** 金额单位 */
26
+ symbol: string;
27
+ /** 支付原始金额 */
28
+ amount: string | number;
29
+ /** 模式 */
30
+ mode: ModeType;
31
+ /** 订单号 */
32
+ order_id: string | number;
33
+ /** 厂商 */
34
+ eftpos: DeviceStatusType;
35
+ action?: RouteType;
36
+ /** 用于重置页面特指 =》全部步骤 */
37
+ key: number;
38
+ /** 当前执行到哪一步了 */
39
+ step: number;
40
+ /** 标题 */
41
+ title: string;
42
+ /** 标题 */
43
+ subTitle?: string;
44
+ /** step : 常规步骤页面 ,unset 自定义页面 */
45
+ type: 'step' | 'unset';
46
+ render: boolean;
47
+ /** 网络 */
48
+ net?: boolean;
49
+ /** 上面 unset 自定义页面,这里需要指定到具体页面 */
50
+ component: string;
51
+ form?: string;
52
+ /** 页面状态 */
53
+ status: StatusType;
54
+ /** 警告文案 */
55
+ warn: string;
56
+ steps: {
57
+ /** 用于重置当前步骤 */
58
+ key: number;
59
+ title?: string;
60
+ text?: string;
61
+ warn?: string;
62
+ tip?: string;
63
+ success?: string;
64
+ fail?: string;
65
+ loading?: string;
66
+ /** 步骤状态 */
67
+ status: StatusType;
68
+ custom?: {
69
+ /** 步骤自定义 */
70
+ [key: string]: unknown;
71
+ };
72
+ }[];
73
+ /** 支付流水号 */
74
+ number?: string | number;
75
+ /** 设备信息 */
76
+ device?: {
77
+ [key: string]: unknown;
78
+ };
79
+ /** 支付信息 */
80
+ pay?: {
81
+ [key: string]: unknown;
82
+ };
83
+ custom?: {
84
+ [key: string]: unknown;
85
+ };
86
+ manual?: {
87
+ title: string;
88
+ text: string;
89
+ status?: boolean;
90
+ money?: number;
91
+ };
92
+ backup?: Omit<State, 'backup'>;
93
+ client: ClientEnum;
94
+ };
95
+ export declare type Action = {
96
+ type: EActionTypes;
97
+ payload: Partial<State>;
98
+ };
99
+ /**
100
+ * @title: 刷新 key
101
+ * @description: 用户重置组件生命周期,
102
+ * @param {number} key
103
+ * @Author: hongbing.wang
104
+ * @Date: 2024-08-19 09:56
105
+ */
106
+ export declare const updateKey: (key: number) => {
107
+ type: EActionTypes;
108
+ payload: {
109
+ key: number;
110
+ };
111
+ };
112
+ /**
113
+ * @title: 更新设备信息
114
+ * @description: 用户选择设备将回填到此处
115
+ * @param {object} payload
116
+ * @Author: hongbing.wang
117
+ * @Date: 2024-08-19 09:57
118
+ */
119
+ export declare const updateDevice: (payload: {
120
+ device: State['device'];
121
+ }) => {
122
+ type: EActionTypes;
123
+ payload: {
124
+ device: State['device'];
125
+ };
126
+ };
127
+ /**
128
+ * @title: 刷新 步骤key
129
+ * @description: 重置某一步生命周期
130
+ * @Author: hongbing.wang
131
+ * @Date: 2024-08-19 09:58
132
+ */
133
+ export declare const updateStepKey: () => {
134
+ type: EActionTypes;
135
+ payload: {};
136
+ };
137
+ /**
138
+ * @title: 更新至下一步
139
+ * @description: 更新至下一步
140
+ * @param {string} warn?: 错误信息
141
+ * @Author: hongbing.wang
142
+ * @Date: 2024-08-19 09:58
143
+ */
144
+ export declare const updateNextStep: (warn?: string) => {
145
+ type: EActionTypes;
146
+ payload: {
147
+ warn: string;
148
+ } | {
149
+ warn?: undefined;
150
+ };
151
+ };
152
+ /**
153
+ * @title: 更新自定义信息
154
+ * @description: 更新自定义信息
155
+ * @param {object} payload
156
+ * @Author: hongbing.wang
157
+ * @Date: 2024-08-19 10:03
158
+ */
159
+ export declare const updateCustom: (payload: {
160
+ [key: string]: unknown;
161
+ }) => {
162
+ type: EActionTypes;
163
+ payload: {
164
+ [key: string]: unknown;
165
+ };
166
+ };
167
+ /**
168
+ * @title: 更新 全局状态
169
+ * @description: 更新 全局状态
170
+ * @param {string} status : 状态
171
+ * * @Author: hongbing.wang
172
+ * @Date: 2024-08-19 10:03
173
+ */
174
+ export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
+ type: EActionTypes;
176
+ payload: {
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
+ };
179
+ };
180
+ /**
181
+ * @title: 更新自定义组件
182
+ * @description: 更新自定义组件
183
+ * @param {string} component 组件名称
184
+ * @param {boolean} render : true : 隐藏 原组件(维持原组件内状态) ;false : 卸载
185
+ * @return {*}
186
+ * @Author: hongbing.wang
187
+ * @Date: 2024-08-19 10:04
188
+ */
189
+ export declare const updateComponent: (component: string, render?: boolean) => {
190
+ type: EActionTypes;
191
+ payload: {
192
+ readonly component: string;
193
+ readonly type: "unset";
194
+ readonly render: boolean;
195
+ } | {
196
+ readonly type: "step";
197
+ readonly render: boolean;
198
+ readonly component?: undefined;
199
+ };
200
+ };
201
+ /**
202
+ * @title: 更新步骤信息
203
+ * @description: 更新某一步骤信息
204
+ * @param {State} steps 某一步骤信息
205
+ * @Author: hongbing.wang
206
+ * @Date: 2024-08-19 10:07
207
+ */
208
+ export declare const updateSteps: (steps: State['steps']) => {
209
+ type: EActionTypes;
210
+ payload: {
211
+ steps: {
212
+ /** 用于重置当前步骤 */
213
+ key: number;
214
+ title?: string | undefined;
215
+ text?: string | undefined;
216
+ warn?: string | undefined;
217
+ tip?: string | undefined;
218
+ success?: string | undefined;
219
+ fail?: string | undefined;
220
+ loading?: string | undefined;
221
+ /** 步骤状态 */
222
+ status: StatusType;
223
+ custom?: {
224
+ [key: string]: unknown;
225
+ } | undefined;
226
+ }[];
227
+ };
228
+ };
229
+ /**
230
+ * @title: 更新状态管理信息
231
+ * @description: 更新状态管理信息
232
+ * @param {Partial} payload
233
+ * @return {*}
234
+ * @Author: hongbing.wang
235
+ * @Date: 2024-08-19 10:08
236
+ */
237
+ export declare const updateState: (payload: Partial<State>) => {
238
+ type: EActionTypes;
239
+ payload: Partial<State>;
240
+ };
241
+ /**
242
+ * @title: 更新当前步骤自定义信息
243
+ * @description: 更新当前步骤自定义信息
244
+ * @Author: hongbing.wang
245
+ * @Date: 2024-08-19 10:09
246
+ */
247
+ export declare const updateCurrentCustomStemItem: (payload: NonNullable<Partial<State['steps'][number]['custom']>>) => {
248
+ type: EActionTypes;
249
+ payload: Partial<{
250
+ [key: string]: unknown;
251
+ }>;
252
+ };
253
+ /**
254
+ * @title: 更新当前步骤信息
255
+ * @description: 更新当前步骤信息
256
+ * @Author: hongbing.wang
257
+ * @Date: 2024-08-19 10:09
258
+ */
259
+ export declare const updateCurrentStemItem: (payload: any) => {
260
+ type: EActionTypes;
261
+ payload: any;
262
+ };
263
+ /**
264
+ * @title: 更新当前步骤信息
265
+ * @description: 更新当前步骤信息
266
+ * @Author: hongbing.wang
267
+ * @Date: 2024-08-19 10:09
268
+ */
269
+ export declare const updateClient: (payload: ClientEnum) => {
270
+ type: EActionTypes;
271
+ payload: {
272
+ client: ClientEnum;
273
+ };
274
+ };
275
+ /**
276
+ * @title: 更新备份信息
277
+ * @description: 更新备份信息
278
+ * @Author: hongbing.wang
279
+ * @Date: 2024-08-19 10:25
280
+ */
281
+ export declare const backUpProduction: (payload: Partial<State>) => {
282
+ type: EActionTypes;
283
+ payload: Partial<State>;
284
+ };
285
+ /**
286
+ * @title: 释放备份信息
287
+ * @description: 释放备份信息
288
+ * @param {Partial} payload
289
+ * @Author: hongbing.wang
290
+ * @Date: 2024-08-19 10:27
291
+ */
292
+ export declare const backUpFree: (payload: Partial<State>) => {
293
+ type: EActionTypes;
294
+ payload: {
295
+ name?: string | undefined;
296
+ symbol?: string | undefined;
297
+ amount?: string | number | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
+ order_id?: string | number | undefined;
300
+ eftpos?: "tyro" | "windcave" | "stripe" | "payo" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
+ key?: number | undefined;
303
+ step?: number | undefined;
304
+ title?: string | undefined;
305
+ subTitle?: string | undefined;
306
+ type?: "unset" | "step" | undefined;
307
+ render?: boolean | undefined;
308
+ net?: boolean | undefined;
309
+ component?: string | undefined;
310
+ form?: string | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
+ warn?: string | undefined;
313
+ steps?: {
314
+ /** 用于重置当前步骤 */
315
+ key: number;
316
+ title?: string | undefined;
317
+ text?: string | undefined;
318
+ warn?: string | undefined;
319
+ tip?: string | undefined;
320
+ success?: string | undefined;
321
+ fail?: string | undefined;
322
+ loading?: string | undefined;
323
+ /** 步骤状态 */
324
+ status: StatusType;
325
+ custom?: {
326
+ [key: string]: unknown;
327
+ } | undefined;
328
+ }[] | undefined;
329
+ number?: string | number | undefined;
330
+ device?: {
331
+ [key: string]: unknown;
332
+ } | undefined;
333
+ pay?: {
334
+ [key: string]: unknown;
335
+ } | undefined;
336
+ custom?: {
337
+ [key: string]: unknown;
338
+ } | undefined;
339
+ manual?: {
340
+ title: string;
341
+ text: string;
342
+ status?: boolean | undefined;
343
+ money?: number | undefined;
344
+ } | undefined;
345
+ backup?: Omit<State, "backup"> | undefined;
346
+ client?: ClientEnum | undefined;
347
+ };
348
+ };
349
+ export declare function reducers(state: State, action: Action): State;
350
+ export declare const Provider: ({ children, state: providerState, }: {
351
+ children: ReactNode;
352
+ state?: State | undefined;
353
+ }) => JSX.Element;
354
+ export declare function useContextData(): State;
355
+ export declare function useDispatch(): ThunkDispatch<State, Action>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const ContinueButton: () => JSX.Element;
3
+ export default ContinueButton;
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useMemo, useState } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { Button, PisellToast } from '@pisell/materials';
19
- import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer, useSummary } from "../../../../../Sales";
19
+ import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer } from "../../../../../Sales";
20
20
  import { formatValues, getFormParams } from "../../../../../Sales/Checkout/utils";
21
21
  import OrderProductModal from "../../OrderProductModal/index";
22
22
  import EmptyHolderModal from "../../EmptyHolderModal";
@@ -24,7 +24,6 @@ import { getProductPrice } from "../../../../../Sales/Event/serve";
24
24
  import { useRequest } from 'ahooks';
25
25
  import useEngineContext from "../../../../../../hooks/useEngineContext";
26
26
  import "./index.less";
27
- import { Toast } from "../../../../../appointmentBooking/utils";
28
27
  var ContinueButton = function ContinueButton() {
29
28
  var _context$appHelper, _cartData$cartItems;
30
29
  var _useSales = useSales(),
@@ -44,14 +43,10 @@ var ContinueButton = function ContinueButton() {
44
43
  onCheckout = _useCheckout.onCheckout,
45
44
  createBooking = _useCheckout.createBooking,
46
45
  onCheckBeforeBooking = _useCheckout.onCheckBeforeBooking,
47
- checkBeforeBooking = _useCheckout.checkBeforeBooking,
48
- freePay = _useCheckout.freePay;
46
+ checkBeforeBooking = _useCheckout.checkBeforeBooking;
49
47
  var _useCustomer = useCustomer(),
50
48
  openLoginModal = _useCustomer.openLoginModal,
51
49
  isLogin = _useCustomer.isLogin;
52
- var _useSummary = useSummary(),
53
- deposit = _useSummary.deposit,
54
- isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy;
55
50
 
56
51
  // 下单之前是否检测失败
57
52
  var _useState = useState(false),
@@ -389,48 +384,41 @@ var ContinueButton = function ContinueButton() {
389
384
  */
390
385
  var handleContinue = /*#__PURE__*/function () {
391
386
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
392
- var _deposit$protocols, value, checkRes, emptyHolders;
387
+ var value, checkRes, emptyHolders;
393
388
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
394
389
  while (1) switch (_context6.prev = _context6.next) {
395
390
  case 0:
396
391
  if (!isLastStep) {
397
- _context6.next = 17;
398
- break;
399
- }
400
- value = formatValues(data); // 如果未同意定金政策,则提示
401
- if (!(deposit !== null && deposit !== void 0 && deposit.hasDeposit && (deposit === null || deposit === void 0 || (_deposit$protocols = deposit.protocols) === null || _deposit$protocols === void 0 ? void 0 : _deposit$protocols.length) > 0 && !isAgreeDepositPolicy)) {
402
- _context6.next = 5;
392
+ _context6.next = 14;
403
393
  break;
404
394
  }
405
- Toast(locales.getText('pisell2.appointment.deposit.agree.policy'));
406
- return _context6.abrupt("return");
407
- case 5:
408
- _context6.next = 7;
395
+ value = formatValues(data); // 检测商品是否可以下单
396
+ _context6.next = 4;
409
397
  return onCheckBeforeBooking(value);
410
- case 7:
398
+ case 4:
411
399
  checkRes = _context6.sent;
412
400
  if (!((checkRes === null || checkRes === void 0 ? void 0 : checkRes.result) === false)) {
413
- _context6.next = 12;
401
+ _context6.next = 9;
414
402
  break;
415
403
  }
416
404
  setCheckedNumber(checkRes === null || checkRes === void 0 ? void 0 : checkRes.num);
417
405
  setOpenCheckout(true);
418
406
  return _context6.abrupt("return");
419
- case 12:
407
+ case 9:
420
408
  // 验证holder是否为空
421
409
  emptyHolders = getWithoutCartItemsHolderNames();
422
410
  if (!((emptyHolders === null || emptyHolders === void 0 ? void 0 : emptyHolders.length) > 0)) {
423
- _context6.next = 15;
411
+ _context6.next = 12;
424
412
  break;
425
413
  }
426
414
  return _context6.abrupt("return", setOpenEmptyHolder(true));
427
- case 15:
415
+ case 12:
428
416
  // 关闭购物车弹窗
429
417
  onCloseCart();
430
418
  return _context6.abrupt("return", handleCheckout());
431
- case 17:
419
+ case 14:
432
420
  if (isLogin()) {
433
- _context6.next = 20;
421
+ _context6.next = 17;
434
422
  break;
435
423
  }
436
424
  onCloseCart();
@@ -460,9 +448,9 @@ var ContinueButton = function ContinueButton() {
460
448
  return callback;
461
449
  }()
462
450
  }));
463
- case 20:
451
+ case 17:
464
452
  handleHolder();
465
- case 21:
453
+ case 18:
466
454
  case "end":
467
455
  return _context6.stop();
468
456
  }
@@ -499,8 +487,8 @@ var ContinueButton = function ContinueButton() {
499
487
  */
500
488
  var confirmLoading = useMemo(function () {
501
489
  if (!isLastStep) return false;
502
- return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading) || (freePay === null || freePay === void 0 ? void 0 : freePay.loading);
503
- }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading, freePay === null || freePay === void 0 ? void 0 : freePay.loading]);
490
+ return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading);
491
+ }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading]);
504
492
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
505
493
  disabled: !(cartData !== null && cartData !== void 0 && (_cartData$cartItems = cartData.cartItems) !== null && _cartData$cartItems !== void 0 && _cartData$cartItems.length),
506
494
  size: "large",
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
+ export default Total;
@@ -5,25 +5,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
5
5
  import React from 'react';
6
6
  import { locales } from '@pisell/utils';
7
7
  import { PisellText } from '@pisell/materials';
8
- import { useCart, useSummary } from "../../../../../Sales";
8
+ import { useSummary } from "../../../../../Sales";
9
9
  import useEngineContext from "../../../../../../hooks/useEngineContext";
10
10
  import "./index.less";
11
11
  import classNames from 'classnames';
12
12
  var Total = function Total(_ref) {
13
- var _context$appHelper, _context$appHelper$ge, _cartData$cartItems, _cartData$cartItems2, _context$appHelper2, _context$appHelper2$g;
13
+ var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g;
14
14
  var className = _ref.className,
15
15
  isFooter = _ref.isFooter;
16
- var _useCart = useCart(),
17
- cartData = _useCart.cartData;
18
16
  var _useSummary = useSummary(),
19
17
  taxTitle = _useSummary.taxTitle,
20
18
  totalTaxFee = _useSummary.totalTaxFee,
21
19
  isPriceIncludeTax = _useSummary.isPriceIncludeTax,
22
- total = _useSummary.total,
23
- deposit = _useSummary.deposit;
20
+ total = _useSummary.total;
24
21
  var context = useEngineContext();
25
- console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), deposit, 'wh97978');
26
- var showDeposit = (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && (deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit);
22
+ console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), 'wh97978');
27
23
  return /*#__PURE__*/React.createElement("div", {
28
24
  className: "event-total-wrap ".concat(className)
29
25
  }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("div", {
@@ -35,8 +31,8 @@ var Total = function Total(_ref) {
35
31
  className: classNames('event-total', _defineProperty({}, ['total-gst-wrap'], !isPriceIncludeTax && Number(totalTaxFee) > 0))
36
32
  }, /*#__PURE__*/React.createElement("div", {
37
33
  className: "left"
38
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, isFooter && showDeposit ? locales.getText('pisell2.appointment.deposit') : locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
39
- value: (cartData === null || cartData === void 0 || (_cartData$cartItems2 = cartData.cartItems) === null || _cartData$cartItems2 === void 0 ? void 0 : _cartData$cartItems2.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? deposit === null || deposit === void 0 ? void 0 : deposit.total : total,
34
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
35
+ value: total,
40
36
  showCurrencySymbol: true,
41
37
  className: "event-amount"
42
38
  }) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("span", {
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const CartItem: () => JSX.Element;
3
+ export default CartItem;
@@ -5,10 +5,8 @@ import { useCart, useHolder, useSummary, useStep } from "../../../../../Sales";
5
5
  import SelectHolderModal from "../../SelectHolderModal";
6
6
  import ContinueButton from "../ContinueButton";
7
7
  import Total from "./Total";
8
- import Deposit from "../Deposit";
9
8
  import "./index.less";
10
9
  var CartItem = function CartItem() {
11
- var _cartData$cartItems;
12
10
  var _useHolder = useHolder(),
13
11
  open = _useHolder.open,
14
12
  holderData = _useHolder.holderData,
@@ -19,7 +17,7 @@ var CartItem = function CartItem() {
19
17
  cartData = _useCart.cartData,
20
18
  addNoteToCartItem = _useCart.addNoteToCartItem;
21
19
  var _useSummary = useSummary(),
22
- deposit = _useSummary.deposit;
20
+ subtotal = _useSummary.subtotal;
23
21
  var _useStep = useStep(),
24
22
  isLastStep = _useStep.isLastStep;
25
23
  var handleClickCard = function handleClickCard(e, type, key) {
@@ -58,7 +56,7 @@ var CartItem = function CartItem() {
58
56
  }
59
57
  })), /*#__PURE__*/React.createElement("div", {
60
58
  className: "event-footer"
61
- }, /*#__PURE__*/React.createElement(Total, null), (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? /*#__PURE__*/React.createElement(Deposit, null) : null, /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
59
+ }, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
62
60
  open: open
63
61
  }));
64
62
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type CallToBookProps = {
2
3
  show: boolean;
3
4
  type: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface EventCardProps {
4
+ open?: boolean;
5
+ }
6
+ declare const BookingDetailModal: React.FC<EventCardProps>;
7
+ export default BookingDetailModal;
@@ -304,9 +304,7 @@ var BookingDetailModal = function BookingDetailModal(props) {
304
304
  utils === null || utils === void 0 || utils.action({
305
305
  type: 'pisell1.productDetail',
306
306
  data: {
307
- detail: _objectSpread(_objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}), {}, {
308
- open_deposit: 1
309
- }),
307
+ detail: _objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}),
310
308
  isOS: false
311
309
  },
312
310
  callback: function callback(data) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from '../../type';
2
3
  declare type CalendarItemProps = {
3
4
  month: string;