@pisell/private-materials 3.3.78 → 3.3.80

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 (262) 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 +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/businessModel/SalesModel/Sales/index.js +4 -37
  12. package/es/components/Sales/Resource/index.js +2 -2
  13. package/es/components/Sales/Resource/serve.d.ts +0 -7
  14. package/es/components/Sales/Resource/serve.js +0 -10
  15. package/es/components/Sales/Summary/utils.d.ts +1 -1
  16. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Cart/Item/index.js +2 -4
  18. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  19. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  20. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/components/Header/index.js +14 -8
  22. package/es/components/appointmentBooking/components/Services/index.js +36 -38
  23. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  24. package/es/components/appointmentBooking/components/Voucher/index.js +0 -13
  25. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  26. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +7 -6
  27. package/es/components/appointmentBooking/index.d.ts +0 -1
  28. package/es/components/appointmentBooking/index.js +0 -14
  29. package/es/components/appointmentBooking/index.less +1 -1
  30. package/es/components/appointmentBooking/locales.js +3 -3
  31. package/es/components/booking/addons/index.js +2 -9
  32. package/es/components/booking/addons/model.d.ts +10 -1
  33. package/es/components/booking/addons/model.js +0 -5
  34. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  35. package/es/components/booking/components/TabProduct/selectProductItem/index.js +1 -3
  36. package/es/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
  37. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  38. package/es/components/booking/components/browserSelect/index.js +1 -1
  39. package/es/components/booking/components/footer/amount.js +1 -2
  40. package/es/components/booking/components/footer/index.d.ts +0 -1
  41. package/es/components/booking/components/footer/index.js +3 -9
  42. package/es/components/booking/components/footer/utils.js +36 -74
  43. package/es/components/booking/components/voucher/index.d.ts +0 -1
  44. package/es/components/booking/components/voucher/index.js +66 -110
  45. package/es/components/booking/forms/model.d.ts +10 -1
  46. package/es/components/booking/forms/model.js +5 -5
  47. package/es/components/booking/info/model.d.ts +10 -1
  48. package/es/components/booking/info/service/like/index.js +1 -1
  49. package/es/components/booking/info/service2/utils.js +2 -6
  50. package/es/components/booking/info/utils.js +1 -1
  51. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  52. package/es/components/booking/info2/service/addService/index.js +2 -2
  53. package/es/components/booking/info2/service/editService/index.js +2 -5
  54. package/es/components/booking/info2/utilsByBooking.d.ts +1 -1
  55. package/es/components/booking/info2/utilsByBooking.js +3 -5
  56. package/es/components/booking/locales.d.ts +0 -3
  57. package/es/components/booking/locales.js +3 -6
  58. package/es/components/booking/materiels/startTime/index.js +1 -1
  59. package/es/components/booking/model.d.ts +9 -1
  60. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  61. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  62. package/es/components/booking/notes/model.d.ts +10 -1
  63. package/es/components/booking/notes/model.js +5 -5
  64. package/es/components/booking/payments/model.d.ts +10 -1
  65. package/es/components/booking/payments/model.js +5 -5
  66. package/es/components/eftposPay/amount.d.ts +1 -1
  67. package/es/components/eftposPay/device.d.ts +1 -1
  68. package/es/components/eftposPay/hooks.d.ts +2 -2
  69. package/es/components/eftposPay/store/index.d.ts +4 -4
  70. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
  72. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -19
  73. package/es/components/eventBooking/index.d.ts +0 -1
  74. package/es/components/eventBooking/index.js +7 -21
  75. package/es/components/eventBooking/locales.js +3 -3
  76. package/es/components/index.d.ts +1 -2
  77. package/es/components/index.js +1 -2
  78. package/es/components/listComponent/index.js +5 -5
  79. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  80. package/es/components/pay/toC/model.d.ts +9 -1
  81. package/es/components/productExtension/card/index.js +3 -3
  82. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  83. package/es/components/productExtension/fields/Forms/index.js +12 -12
  84. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  85. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  86. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  87. package/es/components/productExtension/server.js +2 -2
  88. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  89. package/es/components/schedules/calendar/index.js +4 -4
  90. package/es/components/schedules/calendar/serve.js +2 -2
  91. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  92. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  93. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  94. package/es/components/schedules/components/ResourceList/index.js +1 -1
  95. package/es/components/schedules/components/Search/index.js +5 -5
  96. package/es/components/schedules/model.d.ts +9 -1
  97. package/es/components/schedules/model.js +5 -5
  98. package/es/components/schedules/openHours/index.js +1 -1
  99. package/es/components/schedules/openHours/serve.js +2 -2
  100. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  101. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  102. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  103. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  104. package/es/components/schedules/products/serve.js +2 -2
  105. package/es/components/schedules/products/utils.js +5 -5
  106. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  107. package/es/components/schedules/resources/detail/index.js +10 -10
  108. package/es/components/schedules/resources/list/index.js +2 -2
  109. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  110. package/es/components/schedules/resources/serve.js +2 -2
  111. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  112. package/es/components/schedules/utils.d.ts +1 -1
  113. package/es/components/schedules/utils.js +4 -4
  114. package/es/components/selectModal/index.js +2 -2
  115. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  116. package/es/components/ticketBooking/components/addServiceVariant/addService.js +5 -6
  117. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  118. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -124
  119. package/es/components/ticketBooking/locales.d.ts +146 -164
  120. package/es/components/ticketBooking/locales.js +147 -195
  121. package/es/components/ticketBooking/utils/index.d.ts +1 -5
  122. package/es/components/ticketBooking/utils/index.js +6 -58
  123. package/es/components/wallet/Detail/model.d.ts +13 -1
  124. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  125. package/es/components/wallet/PointCard/model.d.ts +13 -1
  126. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  127. package/es/components/wallet/Voucher/model.d.ts +13 -1
  128. package/es/components/wallet/model.d.ts +9 -1
  129. package/es/hooks/useComponents.js +1 -1
  130. package/es/index.d.ts +0 -1
  131. package/es/index.js +1 -2
  132. package/es/utils/index.d.ts +1 -1
  133. package/lib/businessModel/SalesModel/Sales/index.js +8 -22
  134. package/lib/components/Sales/Resource/index.js +1 -1
  135. package/lib/components/Sales/Resource/serve.d.ts +0 -7
  136. package/lib/components/Sales/Resource/serve.js +2 -9
  137. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  138. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  139. package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
  140. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  141. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  142. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  143. package/lib/components/appointmentBooking/components/Header/index.js +3 -2
  144. package/lib/components/appointmentBooking/components/Services/index.js +18 -19
  145. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  146. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -9
  147. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  148. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -0
  149. package/lib/components/appointmentBooking/index.d.ts +0 -1
  150. package/lib/components/appointmentBooking/index.js +0 -11
  151. package/lib/components/appointmentBooking/index.less +1 -1
  152. package/lib/components/appointmentBooking/locales.js +3 -3
  153. package/lib/components/booking/addons/index.js +2 -10
  154. package/lib/components/booking/addons/model.d.ts +10 -1
  155. package/lib/components/booking/addons/model.js +0 -3
  156. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  157. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +1 -5
  158. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
  159. package/lib/components/booking/components/footer/amount.js +1 -2
  160. package/lib/components/booking/components/footer/index.d.ts +0 -1
  161. package/lib/components/booking/components/footer/index.js +5 -10
  162. package/lib/components/booking/components/footer/utils.js +12 -48
  163. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  164. package/lib/components/booking/components/voucher/index.js +67 -111
  165. package/lib/components/booking/forms/model.d.ts +10 -1
  166. package/lib/components/booking/info/model.d.ts +10 -1
  167. package/lib/components/booking/info/service2/utils.js +1 -3
  168. package/lib/components/booking/info/utils.js +3 -1
  169. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  170. package/lib/components/booking/info2/service/addService/index.js +2 -2
  171. package/lib/components/booking/info2/service/editService/index.js +2 -5
  172. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -1
  173. package/lib/components/booking/info2/utilsByBooking.js +2 -3
  174. package/lib/components/booking/locales.d.ts +0 -3
  175. package/lib/components/booking/locales.js +3 -6
  176. package/lib/components/booking/model.d.ts +9 -1
  177. package/lib/components/booking/notes/model.d.ts +10 -1
  178. package/lib/components/booking/payments/model.d.ts +10 -1
  179. package/lib/components/eftposPay/amount.d.ts +1 -1
  180. package/lib/components/eftposPay/device.d.ts +1 -1
  181. package/lib/components/eftposPay/hooks.d.ts +2 -2
  182. package/lib/components/eftposPay/store/index.d.ts +4 -4
  183. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  184. package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
  185. package/lib/components/eventBooking/components/bookingDetailModal/index.js +3 -9
  186. package/lib/components/eventBooking/index.d.ts +0 -1
  187. package/lib/components/eventBooking/index.js +7 -11
  188. package/lib/components/eventBooking/locales.js +3 -3
  189. package/lib/components/index.d.ts +1 -2
  190. package/lib/components/index.js +0 -3
  191. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  192. package/lib/components/pay/toC/model.d.ts +9 -1
  193. package/lib/components/schedules/model.d.ts +9 -1
  194. package/lib/components/schedules/utils.d.ts +1 -1
  195. package/lib/components/schedules/utils.js +1 -1
  196. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  197. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +4 -6
  198. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  199. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -124
  200. package/lib/components/ticketBooking/locales.d.ts +146 -164
  201. package/lib/components/ticketBooking/locales.js +4 -22
  202. package/lib/components/ticketBooking/utils/index.d.ts +1 -5
  203. package/lib/components/ticketBooking/utils/index.js +5 -48
  204. package/lib/components/wallet/Detail/model.d.ts +13 -1
  205. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  206. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  207. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  208. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  209. package/lib/components/wallet/model.d.ts +9 -1
  210. package/lib/index.d.ts +0 -1
  211. package/lib/index.js +0 -3
  212. package/lib/utils/index.d.ts +1 -1
  213. package/package.json +4 -4
  214. package/es/components/booking/components/voucher/utils.d.ts +0 -4
  215. package/es/components/booking/components/voucher/utils.js +0 -15
  216. package/es/components/stepController/components/Content/index.d.ts +0 -7
  217. package/es/components/stepController/components/Content/index.js +0 -9
  218. package/es/components/stepController/components/Content/index.less +0 -8
  219. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  220. package/es/components/stepController/components/Footer/index.js +0 -15
  221. package/es/components/stepController/components/Footer/index.less +0 -39
  222. package/es/components/stepController/components/Header/index.d.ts +0 -20
  223. package/es/components/stepController/components/Header/index.js +0 -97
  224. package/es/components/stepController/components/Header/index.less +0 -21
  225. package/es/components/stepController/index.d.ts +0 -5
  226. package/es/components/stepController/index.js +0 -64
  227. package/es/components/stepController/index.less +0 -11
  228. package/es/components/stepController/locales.d.ts +0 -27
  229. package/es/components/stepController/locales.js +0 -32
  230. package/es/components/stepController/types.d.ts +0 -23
  231. package/es/components/stepController/types.js +0 -1
  232. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  233. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  234. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  235. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  236. package/es/hooks/useWindowSize.d.ts +0 -5
  237. package/es/hooks/useWindowSize.js +0 -26
  238. package/lib/components/booking/components/voucher/utils.d.ts +0 -4
  239. package/lib/components/booking/components/voucher/utils.js +0 -43
  240. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  241. package/lib/components/stepController/components/Content/index.js +0 -40
  242. package/lib/components/stepController/components/Content/index.less +0 -8
  243. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  244. package/lib/components/stepController/components/Footer/index.js +0 -49
  245. package/lib/components/stepController/components/Footer/index.less +0 -39
  246. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  247. package/lib/components/stepController/components/Header/index.js +0 -104
  248. package/lib/components/stepController/components/Header/index.less +0 -21
  249. package/lib/components/stepController/index.d.ts +0 -5
  250. package/lib/components/stepController/index.js +0 -89
  251. package/lib/components/stepController/index.less +0 -11
  252. package/lib/components/stepController/locales.d.ts +0 -27
  253. package/lib/components/stepController/locales.js +0 -50
  254. package/lib/components/stepController/types.d.ts +0 -23
  255. package/lib/components/stepController/types.js +0 -17
  256. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  257. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  258. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  259. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
  260. package/lib/hooks/useWindowSize.d.ts +0 -5
  261. package/lib/hooks/useWindowSize.js +0 -51
  262. package/lowcode/step-controller/meta.ts +0 -88
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
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
+ }>;
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,18 +297,18 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Event: () => JSX.Element;
4
3
  export default Event;
@@ -48,7 +48,6 @@ var Event = () => {
48
48
  const { onOpenEventDetail, open } = (0, import_Sales.useEventDetail)();
49
49
  const [lists, setLists] = (0, import_react.useState)();
50
50
  const customer = (0, import_useLoginUser.default)();
51
- const { appUtils } = (0, import_Sales.useCustomer)();
52
51
  (0, import_react.useEffect)(() => {
53
52
  var _a2;
54
53
  const eventList = (eventData == null ? void 0 : eventData.eventList) || [];
@@ -60,22 +59,16 @@ var Event = () => {
60
59
  }
61
60
  }, [eventData == null ? void 0 : eventData.eventList]);
62
61
  (0, import_react.useEffect)(() => {
63
- var _a2, _b2, _c, _d, _e;
62
+ var _a2, _b2;
64
63
  const id = (_b2 = (_a2 = data == null ? void 0 : data.resourceData) == null ? void 0 : _a2.currentResourceItem) == null ? void 0 : _b2.id;
65
64
  if (!id) return;
66
- const history = ((_c = appUtils == null ? void 0 : appUtils.getHistory) == null ? void 0 : _c.call(appUtils)) || {};
67
- const query = (_d = history == null ? void 0 : history.location) == null ? void 0 : _d.query;
68
- const params = {
65
+ getEventList.run({
69
66
  event_item_resource_id: id,
70
67
  skip: 1,
71
68
  num: 100,
72
69
  customer_id: customer == null ? void 0 : customer.id,
73
70
  open_quotation: 1
74
- };
75
- if (query == null ? void 0 : query.ids) {
76
- params.ids = (_e = query == null ? void 0 : query.ids) == null ? void 0 : _e.split(",");
77
- }
78
- getEventList.run(params);
71
+ });
79
72
  }, [(_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.currentResourceItem) == null ? void 0 : _b.id, customer == null ? void 0 : customer.id]);
80
73
  const handleClick = (item) => {
81
74
  selectEvent(item);
@@ -44,7 +44,7 @@ var import_OrderProductModal = __toESM(require("../Provider/OrderProductModal/in
44
44
  var import_index = require("./index.less");
45
45
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
46
46
  var BookingDetailModal = (props) => {
47
- var _a, _b, _c;
47
+ var _a;
48
48
  const modalContentRef = (0, import_react.useRef)(null);
49
49
  const context = (0, import_useEngineContext.default)();
50
50
  const { utils } = context.appHelper || {};
@@ -58,17 +58,11 @@ var BookingDetailModal = (props) => {
58
58
  checkBeforeSelectEventDetail
59
59
  } = (0, import_Sales.useEventDetail)();
60
60
  const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
61
- const { initData } = (0, import_Sales.useInit)();
62
61
  const [activeTab, setActiveTab] = (0, import_react.useState)("introduction");
63
62
  const [isScrolling, setIsScrolling] = (0, import_react.useState)(false);
64
63
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
65
64
  const isUserClickRef = (0, import_react.useRef)(false);
66
65
  const scrollTimeoutRef = (0, import_react.useRef)(null);
67
- const buttonText = (0, import_react.useMemo)(() => {
68
- var _a2, _b2, _c2;
69
- const config = ((_b2 = (_a2 = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a2.config) == null ? void 0 : _b2.product_display_setting) || {};
70
- return ((_c2 = utils == null ? void 0 : utils.translation) == null ? void 0 : _c2.call(utils, config == null ? void 0 : config.booking_event_v2_product_detail_button)) || import_utils.locales.getText("pisell2.event.add.to.cart");
71
- }, [(_b = (_a = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a.config) == null ? void 0 : _b.product_display_setting]);
72
66
  const anchorOptions = (0, import_react.useMemo)(
73
67
  () => [
74
68
  {
@@ -97,7 +91,7 @@ var BookingDetailModal = (props) => {
97
91
  const images = (0, import_react.useMemo)(() => {
98
92
  var _a2;
99
93
  return ((_a2 = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a2.images) || [];
100
- }, [(_c = detail == null ? void 0 : detail.introduction) == null ? void 0 : _c.images]);
94
+ }, [(_a = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a.images]);
101
95
  (0, import_react.useEffect)(() => {
102
96
  if (!modalContentRef.current) return;
103
97
  let isCurrentlyScrolling = false;
@@ -289,7 +283,7 @@ var BookingDetailModal = (props) => {
289
283
  destroyOnClose: true,
290
284
  className: "booking-detail-modal",
291
285
  onCancel: onCloseEventDetail,
292
- okText: buttonText,
286
+ okText: import_utils.locales.getText("pisell2.event.add.to.cart"),
293
287
  cancelVisible: false,
294
288
  onOk: handleOk,
295
289
  width: (0, import_utils.isMobile)() ? "100%" : 600,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -55,17 +55,13 @@ var Content = () => {
55
55
  getBoardSetting.run({ item_type: "event_booking_v2" });
56
56
  }, []);
57
57
  (0, import_react.useEffect)(() => {
58
- var _a2, _b, _c;
59
- const history = ((_a2 = utils == null ? void 0 : utils.getHistory) == null ? void 0 : _a2.call(utils)) || {};
60
- const query = (_b = history == null ? void 0 : history.location) == null ? void 0 : _b.query;
61
- const params = {
62
- front_end_cache_id: (query == null ? void 0 : query.cacheId) || ""
63
- };
64
- if (query == null ? void 0 : query.ids) {
65
- params.event_item_ids = (_c = query == null ? void 0 : query.ids) == null ? void 0 : _c.split(",");
66
- }
67
- getResourceList.run(params);
68
- }, []);
58
+ if (!form_id) return;
59
+ getResourceList.run({
60
+ form_id,
61
+ shop_id,
62
+ form_data_status: "active"
63
+ });
64
+ }, [form_id]);
69
65
  return /* @__PURE__ */ import_react.default.createElement(
70
66
  "div",
71
67
  {
@@ -51,7 +51,7 @@ var locales_default = {
51
51
  "pisell2.event.campus": "Campus",
52
52
  "pisell2.event.resource": "Location",
53
53
  "pisell2.event.booking.options": "Booking options",
54
- "pisell2.event.add.to.cart": "Add to Cart",
54
+ "pisell2.event.add.to.cart": "Add to cart",
55
55
  "pisell2.event.description": "Description",
56
56
  "pisell2.event.view.more": "View more",
57
57
  "pisell2.event.view.less": "View less",
@@ -124,7 +124,7 @@ var locales_default = {
124
124
  "pisell2.event.campus": "校区",
125
125
  "pisell2.event.resource": "资源",
126
126
  "pisell2.event.booking.options": "预约选项",
127
- "pisell2.event.add.to.cart": "加入购物车",
127
+ "pisell2.event.add.to.cart": "添加到购物车",
128
128
  "pisell2.event.description": "描述",
129
129
  "pisell2.event.view.more": "查看更多",
130
130
  "pisell2.event.view.less": "收起",
@@ -197,7 +197,7 @@ var locales_default = {
197
197
  "pisell2.event.campus": "校區",
198
198
  "pisell2.event.resource": "資源",
199
199
  "pisell2.event.booking.options": "預約選項",
200
- "pisell2.event.add.to.cart": "加入購物車",
200
+ "pisell2.event.add.to.cart": "添加到購物車",
201
201
  "pisell2.event.description": "描述",
202
202
  "pisell2.event.view.more": "查看更多",
203
203
  "pisell2.event.view.less": "收起",
@@ -15,5 +15,4 @@ import WorkspaceListDetail from './workSpaceListDetail/';
15
15
  import WorkspaceList from './workSpaceList';
16
16
  import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
17
  import SubTotal from './subTotal';
18
- import StepController from './stepController';
19
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, StepController, };
18
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
@@ -39,7 +39,6 @@ __export(components_exports, {
39
39
  ProductExtension: () => import_productExtension.default,
40
40
  RuleSetting: () => import_ruleSetting.default,
41
41
  Schedules: () => import_schedules.default,
42
- StepController: () => import_stepController.default,
43
42
  SubTotal: () => import_subTotal.default,
44
43
  TaxSelect: () => import_taxSelect.default,
45
44
  ToCPay: () => import_toC.default,
@@ -66,7 +65,6 @@ var import_workSpaceListDetail = __toESM(require("./workSpaceListDetail/"));
66
65
  var import_workSpaceList = __toESM(require("./workSpaceList"));
67
66
  var import_pisellSelectCustomerModal = __toESM(require("./pisellSelectCustomerModal"));
68
67
  var import_subTotal = __toESM(require("./subTotal"));
69
- var import_stepController = __toESM(require("./stepController"));
70
68
  // Annotate the CommonJS export names for ESM import in node:
71
69
  0 && (module.exports = {
72
70
  Booking,
@@ -79,7 +77,6 @@ var import_stepController = __toESM(require("./stepController"));
79
77
  ProductExtension,
80
78
  RuleSetting,
81
79
  Schedules,
82
- StepController,
83
80
  SubTotal,
84
81
  TaxSelect,
85
82
  ToCPay,
@@ -65,7 +65,7 @@ var isOfflinePayment = (type) => {
65
65
  ].includes(type);
66
66
  };
67
67
  var PaymentMethods = (props, ref) => {
68
- var _a, _b, _c;
68
+ var _a;
69
69
  const MWCreditCardRef2 = (0, import_react.useRef)(null);
70
70
  const SuperPayAliPayH5Ref2 = (0, import_react.useRef)(null);
71
71
  const StripePayRef2 = (0, import_react.useRef)(null);
@@ -83,9 +83,9 @@ var PaymentMethods = (props, ref) => {
83
83
  const context = (0, import_useEngineContext.default)();
84
84
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
85
85
  const init = async ({ type, payGroup }) => {
86
- var _a2, _b2;
86
+ var _a2, _b;
87
87
  const waitAmount = (payGroup == null ? void 0 : payGroup.wait_amount) || 0;
88
- const cards = (_b2 = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b2.length;
88
+ const cards = (_b = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b.length;
89
89
  if (cards && (waitAmount <= 0 || isOfflinePayment(type))) {
90
90
  try {
91
91
  await (0, import_serve.walletPassPay)((0, import_utils.formatWalletPassParams)(payGroup));
@@ -115,11 +115,10 @@ var PaymentMethods = (props, ref) => {
115
115
  }
116
116
  await onPayByType({ type, payGroup });
117
117
  };
118
- console.log("paymentResult isAppEnv", (_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b), interaction, context);
119
118
  (0, import_react.useEffect)(() => {
120
- var _a2, _b2, _c2, _d;
121
- console.log("paymentResult isAppEnv", (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b2.call(_a2));
122
- if ((_d = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d.call(_c2)) {
119
+ var _a2, _b, _c, _d;
120
+ console.log("paymentResult isAppEnv", (_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b.call(_a2));
121
+ if ((_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.isAppEnv) == null ? void 0 : _d.call(_c)) {
123
122
  interaction.utils.mountFunction("global", "paymentResult", (strResult) => {
124
123
  console.log("paymentResult", strResult);
125
124
  if (!(0, import_utils2.isJson)(strResult)) return;
@@ -135,18 +134,18 @@ var PaymentMethods = (props, ref) => {
135
134
  }
136
135
  }, []);
137
136
  const onPayByType = async ({ type, payGroup }) => {
138
- var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
137
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
139
138
  console.log(type, payGroup);
140
139
  if (type === "mw.apple") {
141
140
  await ((_a2 = ApplePayRef2.current) == null ? void 0 : _a2.init({ payGroup }));
142
141
  return;
143
142
  }
144
143
  if (type === "mw.google") {
145
- await ((_b2 = GooglePayRef2.current) == null ? void 0 : _b2.init({ payGroup }));
144
+ await ((_b = GooglePayRef2.current) == null ? void 0 : _b.init({ payGroup }));
146
145
  return;
147
146
  }
148
147
  if (type === "mw.credit_card") {
149
- (_c2 = MWCreditCardRef2.current) == null ? void 0 : _c2.init({ payGroup });
148
+ (_c = MWCreditCardRef2.current) == null ? void 0 : _c.init({ payGroup });
150
149
  return;
151
150
  }
152
151
  if (type === "superpay.alipay.h5") {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
32
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
+ state: FormState;
34
+ } & {
35
+ dispatch: (params: {
36
+ type: string;
37
+ payload: any;
38
+ }) => void;
39
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
- request = {};
31
30
  constructor() {
31
+ this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddServiceProps {
4
3
  onEdit?: any;
@@ -223,7 +223,7 @@ var AddSerivce = (props) => {
223
223
  session: isSession,
224
224
  variant: true,
225
225
  package: true,
226
- number: (0, import_utils6.getIsShowNumber)(item, state)
226
+ number: (0, import_utils4.isNormalProductByDurationSchedule)(item)
227
227
  },
228
228
  isOnlySession,
229
229
  is_eject: isEject ? 1 : 0,
@@ -288,11 +288,9 @@ var AddSerivce = (props) => {
288
288
  }
289
289
  if (cacheItem.autoClose) {
290
290
  cacheItem.autoClose = false;
291
- cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
292
291
  let { list: _list, quantity } = (0, import_utils6.addService)(
293
- [...state.service.value],
294
- cacheItem,
295
- state
292
+ state.service.value,
293
+ cacheItem
296
294
  );
297
295
  (_b2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _b2.call(
298
296
  Toast,
@@ -404,7 +402,7 @@ var AddSerivce = (props) => {
404
402
  isTitle: 1,
405
403
  isSubtitle: 1,
406
404
  isPrice: 1,
407
- isOriginPrice: 0,
405
+ isOriginPrice: 1,
408
406
  isStock: 1
409
407
  }
410
408
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const TicketBooking: () => JSX.Element;
4
3
  export default TicketBooking;
@@ -45,25 +45,12 @@ var import_utils2 = require("../../utils");
45
45
  var import_addServiceVariant = __toESM(require("../addServiceVariant"));
46
46
  var import_timeBar = __toESM(require("../timeBar"));
47
47
  var import_index = require("./index.less");
48
- var import_utils3 = require("../../../booking/info/service2/utils");
49
- var import_amount = require("../../../booking/components/footer/amount");
50
- var import_formatProductMessage = __toESM(require("../../utils/formatProductMessage"));
51
48
  var TicketBooking = () => {
52
49
  var _a;
53
50
  const [state, setState] = (0, import_miniRedux.useStore)();
54
51
  const engineContext = (0, import_useEngineContext.default)();
55
52
  const { props: engineProps } = engineContext.engine;
56
- const {
57
- action,
58
- isTerminal,
59
- lowcodeRef,
60
- interaction,
61
- store,
62
- storage,
63
- Toast,
64
- getSymbolic,
65
- translation
66
- } = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
53
+ const { action, isTerminal, lowcodeRef, interaction, store, storage, Toast } = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
67
54
  const _persistentRef = (0, import_react.useRef)(false);
68
55
  const _initStateRef = (0, import_react.useRef)({});
69
56
  const _listTimerRef = (0, import_react.useRef)();
@@ -150,112 +137,6 @@ var TicketBooking = () => {
150
137
  intervalSetTime: isInterval
151
138
  });
152
139
  };
153
- (0, import_react.useEffect)(() => {
154
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
155
- const cartItems = (_b = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.service) == null ? void 0 : _b.value;
156
- if (!Array.isArray(cartItems) || cartItems.length === 0) {
157
- (_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.postMessageToApp) == null ? void 0 : _d.call(_c, {
158
- module: "cds",
159
- key: "cartUpdate",
160
- data: {
161
- currency_symbol: getSymbolic(),
162
- total: "0",
163
- // 小计
164
- products: [],
165
- fees: []
166
- }
167
- });
168
- }
169
- const total = (0, import_amount.getSumTotal)(state.modalState, true);
170
- let formatedProducts = [];
171
- try {
172
- formatedProducts = (0, import_utils3.formatProducts)(
173
- cartItems,
174
- state.modalState,
175
- false,
176
- true,
177
- true
178
- );
179
- } catch (error) {
180
- console.error(error);
181
- }
182
- console.log("formatedProducts", total, formatedProducts);
183
- let fees = [];
184
- let products = [];
185
- for (const item of formatedProducts) {
186
- const { id, name, image, origin_total, total: total2, num, note, _origin } = item;
187
- (_e = _origin == null ? void 0 : _origin.discount_list) == null ? void 0 : _e.forEach((dl) => {
188
- fees.push({
189
- isReduce: dl.type === "good_pass",
190
- title: translation(dl == null ? void 0 : dl.discount.title),
191
- price: dl.amount,
192
- type: dl.type
193
- });
194
- });
195
- let msg = "";
196
- try {
197
- msg = (0, import_formatProductMessage.default)(
198
- {
199
- ...item,
200
- currency_symbol: getSymbolic()
201
- },
202
- (_f = engineContext.appHelper) == null ? void 0 : _f.utils
203
- );
204
- } catch (error) {
205
- console.error(error);
206
- }
207
- let _item = {
208
- productID: id,
209
- title: name,
210
- cover: image,
211
- // 封面图
212
- price: total2,
213
- // 售价
214
- buyCount: num,
215
- // 购买数量
216
- productFormatMessage: msg,
217
- note
218
- };
219
- if (origin_total !== total2) _item.modifyPrice = origin_total;
220
- products.push(_item);
221
- }
222
- console.log(
223
- "formatedProducts",
224
- (_g = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _g(products.length)
225
- );
226
- if (products.length > 0) {
227
- fees.unshift({
228
- title: import_utils.locales.getText("pisell2.product.card.subtotal"),
229
- price: total.productAmount,
230
- type: "subtotal",
231
- message: (_h = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _h(
232
- products.length
233
- )
234
- });
235
- }
236
- console.log("start post message, config:", {
237
- module: "cds",
238
- key: "cartUpdate",
239
- data: {
240
- currency_symbol: getSymbolic(),
241
- total: total.productAmount,
242
- // 小计
243
- products,
244
- fees
245
- }
246
- });
247
- (_j = (_i = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _i.postMessageToApp) == null ? void 0 : _j.call(_i, {
248
- module: "cds",
249
- key: "cartUpdate",
250
- data: {
251
- currency_symbol: getSymbolic(),
252
- total: total.expectAmount,
253
- // 小计
254
- products,
255
- fees
256
- }
257
- });
258
- }, [state.modalState]);
259
140
  const _setModalState = (props) => {
260
141
  var _a2, _b;
261
142
  console.log("同步state到外层", props);
@@ -836,8 +717,7 @@ var TicketBooking = () => {
836
717
  addTimeProducts: state.addTimeProducts,
837
718
  isBookingCreatePage: true,
838
719
  closeAutoOpenService: true,
839
- productExtensionType: state.productExtensionType,
840
- isBookingTicket2: true
720
+ productExtensionType: state.productExtensionType
841
721
  },
842
722
  setGlobalState: _setModalState
843
723
  }
@@ -890,8 +770,7 @@ var TicketBooking = () => {
890
770
  refreshData: _refreshData,
891
771
  setActiveTab: _setActiveTab,
892
772
  clearAllValue: _clearAllValue,
893
- drawerMask: true,
894
- isBookingTicket2: true
773
+ drawerMask: true
895
774
  },
896
775
  setGlobalState: _setModalState,
897
776
  setState,