@pisell/private-materials 3.4.7 → 3.4.8

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 (143) 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.js +3 -3
  8. package/build/lowcode/view.js +7 -7
  9. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  10. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  12. package/es/components/booking/addons/model.d.ts +10 -1
  13. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  14. package/es/components/booking/components/browserSelect/index.js +1 -1
  15. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  16. package/es/components/booking/editBookingModal/index.js +58 -29
  17. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  18. package/es/components/booking/editBookingModal/serve.js +19 -11
  19. package/es/components/booking/forms/model.d.ts +10 -1
  20. package/es/components/booking/forms/model.js +5 -5
  21. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  22. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  23. package/es/components/booking/info/index.d.ts +4 -0
  24. package/es/components/booking/info/model.d.ts +10 -1
  25. package/es/components/booking/info/service/like/index.js +1 -1
  26. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  27. package/es/components/booking/info2/service/addService/utils.js +1 -1
  28. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  29. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  30. package/es/components/booking/materiels/startTime/index.js +1 -1
  31. package/es/components/booking/model.d.ts +9 -1
  32. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  33. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  34. package/es/components/booking/notes/model.d.ts +10 -1
  35. package/es/components/booking/notes/model.js +5 -5
  36. package/es/components/booking/payments/model.d.ts +10 -1
  37. package/es/components/booking/payments/model.js +5 -5
  38. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  41. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  42. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  43. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  44. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  45. package/es/components/listComponent/index.js +5 -5
  46. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  47. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  48. package/es/components/pay/toC/model.d.ts +9 -1
  49. package/es/components/productExtension/card/index.js +3 -3
  50. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  51. package/es/components/productExtension/fields/Forms/index.js +12 -12
  52. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  53. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  54. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  55. package/es/components/productExtension/server.js +2 -2
  56. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  57. package/es/components/schedules/calendar/index.js +4 -4
  58. package/es/components/schedules/calendar/serve.js +2 -2
  59. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  60. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  61. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  62. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  63. package/es/components/schedules/components/ResourceList/index.js +1 -1
  64. package/es/components/schedules/components/Search/index.js +5 -5
  65. package/es/components/schedules/model.d.ts +9 -1
  66. package/es/components/schedules/model.js +5 -5
  67. package/es/components/schedules/openHours/index.js +1 -1
  68. package/es/components/schedules/openHours/serve.js +2 -2
  69. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  70. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  71. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  72. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  73. package/es/components/schedules/products/index.d.ts +0 -1
  74. package/es/components/schedules/products/serve.js +2 -2
  75. package/es/components/schedules/products/utils.js +5 -5
  76. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  77. package/es/components/schedules/resources/detail/index.js +10 -10
  78. package/es/components/schedules/resources/list/index.js +2 -2
  79. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  80. package/es/components/schedules/resources/serve.js +2 -2
  81. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  82. package/es/components/schedules/utils.js +4 -4
  83. package/es/components/selectModal/index.js +2 -2
  84. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  85. package/es/components/ticketBooking/locales.d.ts +174 -0
  86. package/es/components/ticketBooking/serve.d.ts +287 -0
  87. package/es/components/ticketBooking/utils/index.d.ts +23 -0
  88. package/es/components/wallet/Detail/model.d.ts +13 -1
  89. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  90. package/es/components/wallet/PointCard/model.d.ts +13 -1
  91. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  92. package/es/components/wallet/Voucher/model.d.ts +13 -1
  93. package/es/components/wallet/model.d.ts +9 -1
  94. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  95. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  96. package/es/hooks/useComponents.js +1 -1
  97. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  98. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  99. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  100. package/lib/components/booking/addons/model.d.ts +10 -1
  101. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  102. package/lib/components/booking/editBookingModal/index.js +56 -21
  103. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  104. package/lib/components/booking/editBookingModal/serve.js +12 -6
  105. package/lib/components/booking/forms/model.d.ts +10 -1
  106. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  107. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  108. package/lib/components/booking/info/index.d.ts +4 -0
  109. package/lib/components/booking/info/model.d.ts +10 -1
  110. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  111. package/lib/components/booking/info2/service/addService/utils.js +1 -1
  112. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  113. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  114. package/lib/components/booking/model.d.ts +9 -1
  115. package/lib/components/booking/notes/model.d.ts +10 -1
  116. package/lib/components/booking/payments/model.d.ts +10 -1
  117. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  118. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  119. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  120. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  121. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  122. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  123. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  124. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  125. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  126. package/lib/components/pay/toC/model.d.ts +9 -1
  127. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  128. package/lib/components/schedules/model.d.ts +9 -1
  129. package/lib/components/schedules/products/index.d.ts +0 -1
  130. package/lib/components/schedules/utils.js +1 -1
  131. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  132. package/lib/components/ticketBooking/locales.d.ts +174 -0
  133. package/lib/components/ticketBooking/serve.d.ts +287 -0
  134. package/lib/components/ticketBooking/utils/index.d.ts +23 -0
  135. package/lib/components/wallet/Detail/model.d.ts +13 -1
  136. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  137. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  138. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  139. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  140. package/lib/components/wallet/model.d.ts +9 -1
  141. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  142. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  143. package/package.json +3 -3
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
8
8
  var _utils$getComponents;
9
9
  var _ref = appHelper || {},
10
10
  utils = _ref.utils;
11
- return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
11
+ return (utils === null || utils === void 0 ? void 0 : (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
12
12
  }, [components]);
13
13
  return Cpt;
14
14
  };
@@ -0,0 +1,56 @@
1
+ interface CheckLoginParams {
2
+ isLogin: boolean;
3
+ openLoginModal: (params: {
4
+ callback: (status: string) => void;
5
+ }) => void;
6
+ isFormSubject: boolean;
7
+ utils: any;
8
+ accountLists: any[];
9
+ appointmentBooking: any;
10
+ getHolders: () => void;
11
+ }
12
+ export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
13
+ interface CheckHolderParams {
14
+ isFormSubject: boolean;
15
+ checkAccount: (type: string) => boolean;
16
+ carts: any[];
17
+ }
18
+ export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
19
+ interface CheckResourceParams {
20
+ carts: any[];
21
+ resources: any[];
22
+ }
23
+ /**
24
+ * @title: 检测资源数据
25
+ * @description:
26
+ * @param {CheckResourceParams} param1
27
+ * @return {*}
28
+ * @Author: WangHan
29
+ * @Date: 2025-04-29 18:02
30
+ */
31
+ export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
32
+ interface CheckResourceParams {
33
+ carts: any[];
34
+ }
35
+ export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
36
+ interface AddHolderParams {
37
+ res: any;
38
+ bookingSubject: any;
39
+ accountLists: any[];
40
+ cartItem: any;
41
+ getHolders: () => void;
42
+ appointmentBooking: any;
43
+ }
44
+ /**
45
+ * @title: 添加holder
46
+ * @description:
47
+ * @param {any} res
48
+ * @param {any} bookingSubject
49
+ * @param {any} accountLists
50
+ * @param {any} e
51
+ * @return {*}
52
+ * @Author: WangHan
53
+ * @Date: 2025-05-10 18:25
54
+ */
55
+ export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
56
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -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
+ }>;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const TabPane: React.FC<any>;
4
+ export default TabPane;
@@ -66,50 +66,62 @@ var EditBookingModal = (props, ref) => {
66
66
  };
67
67
  });
68
68
  const getInitData = async (params2) => {
69
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
69
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
70
70
  let mockProps = params2;
71
71
  const _data = await (0, import_serve2.init)(mockProps);
72
72
  setData(_data);
73
73
  let _initResourceVal = _data.childrenBooking._extend.resource;
74
- const toResourceFormId = (_a = _data.toResource) == null ? void 0 : _a.form_id;
75
- if (params2.fromResourceId !== params2.toResourceId && toResourceFormId) {
74
+ const fromResourceFormId = (_a = _data.fromResource) == null ? void 0 : _a.form_id;
75
+ const toResourceFormId = (_b = _data.toResource) == null ? void 0 : _b.form_id;
76
+ const _form_id = toResourceFormId || fromResourceFormId;
77
+ if (params2.fromResourceId !== params2.toResourceId && !!_form_id) {
76
78
  const { list, maps } = (0, import_utils3.formatResources)({
77
79
  cacheItem: _data.childrenBooking,
78
80
  resourcesOrigin: _data.resourcesOrigin
79
81
  });
80
- const currentForm = maps[toResourceFormId];
81
- const relation_id = (_b = _data.toResource) == null ? void 0 : _b.id;
82
- if (currentForm && relation_id) {
82
+ const currentForm = maps[_form_id];
83
+ const relation_id = (_c = _data.toResource) == null ? void 0 : _c.id;
84
+ if (currentForm && (relation_id || relation_id === 0)) {
83
85
  let _targetResource = {
84
- relation_type: ((_d = (_c = currentForm.renderListMaps[relation_id]) == null ? void 0 : _c.usable) == null ? void 0 : _d.relation_type) || "form",
85
- form_id: toResourceFormId,
86
+ relation_type: ((_e = (_d = currentForm.renderListMaps[relation_id]) == null ? void 0 : _d.usable) == null ? void 0 : _e.relation_type) || "form",
87
+ form_id: _form_id,
86
88
  relation_id,
87
89
  like_status: "common",
88
- children: (_f = (_e = currentForm.renderListMaps) == null ? void 0 : _e[relation_id]) == null ? void 0 : _f.children,
90
+ children: (_g = (_f = currentForm.renderListMaps) == null ? void 0 : _f[relation_id]) == null ? void 0 : _g.children,
89
91
  metadata: {
90
- ...(_h = (_g = currentForm.renderListMaps) == null ? void 0 : _g[relation_id]) == null ? void 0 : _h.metadata,
92
+ ...(_i = (_h = currentForm.renderListMaps) == null ? void 0 : _h[relation_id]) == null ? void 0 : _i.metadata,
91
93
  form_name: currentForm.title,
92
- resource_name: (_i = currentForm.renderListMaps[relation_id]) == null ? void 0 : _i.main_field
94
+ resource_name: (_j = currentForm.renderListMaps[relation_id]) == null ? void 0 : _j.main_field
93
95
  }
94
96
  };
95
- if (Array.isArray(_initResourceVal[toResourceFormId])) {
96
- const _cloned = [..._initResourceVal[toResourceFormId]];
97
- const _idx = _cloned.findIndex(
98
- (rs) => rs.relation_id == params2.fromResourceId
99
- );
97
+ if (Array.isArray(_initResourceVal[_form_id])) {
98
+ const _cloned = [..._initResourceVal[_form_id]];
99
+ const _idx = _cloned.findIndex((rs) => {
100
+ var _a2;
101
+ return rs.relation_id == params2.fromResourceId || ((_a2 = rs.children) == null ? void 0 : _a2.find(
102
+ (child) => child.relation_id == params2.fromResourceId
103
+ ));
104
+ });
100
105
  if (_idx !== -1) {
101
- _cloned[_idx] = _targetResource;
106
+ const _sameResource = _cloned.find(
107
+ (_clonedItem) => _clonedItem.relation_id === (_targetResource == null ? void 0 : _targetResource.relation_id)
108
+ );
109
+ if (_sameResource) {
110
+ _cloned.splice(_idx, 1);
111
+ } else {
112
+ _cloned[_idx] = _targetResource;
113
+ }
102
114
  } else {
103
115
  _cloned.push(_targetResource);
104
116
  }
105
117
  _initResourceVal = {
106
118
  ..._initResourceVal,
107
- [toResourceFormId]: _cloned
119
+ [_form_id]: _cloned
108
120
  };
109
121
  } else {
110
122
  _initResourceVal = {
111
123
  ..._initResourceVal,
112
- [toResourceFormId]: [_targetResource]
124
+ [_form_id]: [_targetResource]
113
125
  };
114
126
  }
115
127
  }
@@ -216,8 +228,30 @@ var EditBookingModal = (props, ref) => {
216
228
  const start_time = values.toDate[0].format("HH:mm");
217
229
  const end_date = values.toDate[1].format("YYYY-MM-DD");
218
230
  const end_time = values.toDate[1].format("HH:mm");
231
+ console.log("extend data", _extend);
232
+ const {
233
+ id,
234
+ relation_id,
235
+ like_status,
236
+ relation_type,
237
+ is_all,
238
+ schedule_id,
239
+ sub_type,
240
+ select_date,
241
+ number,
242
+ metadata
243
+ } = _extend;
219
244
  await (0, import_serve.updateChildBooking)(order_id, {
220
- ..._extend,
245
+ id,
246
+ relation_id,
247
+ like_status,
248
+ relation_type,
249
+ is_all,
250
+ schedule_id,
251
+ sub_type,
252
+ select_date,
253
+ number,
254
+ metadata,
221
255
  resources: Object.values(values.resource).reduce(
222
256
  (pre, cur) => {
223
257
  const newList = (0, import_utils4.checkResourcesFormat)(cur, cacheItem);
@@ -232,7 +266,7 @@ var EditBookingModal = (props, ref) => {
232
266
  end_time,
233
267
  duration: values.toDate[1].diff(values.toDate[0], "minutes")
234
268
  });
235
- setOpen(false);
269
+ initState();
236
270
  props == null ? void 0 : props.onOk();
237
271
  } catch (error) {
238
272
  console.error(error);
@@ -352,6 +386,7 @@ var EditBookingModal = (props, ref) => {
352
386
  onClick: onOk,
353
387
  block: true,
354
388
  size: "large",
389
+ disabled: !data,
355
390
  loading: updating,
356
391
  style: { borderRadius: 20 }
357
392
  },
@@ -46,6 +46,7 @@ export declare const init: (params: EditBookingModalParams) => Promise<{
46
46
  start_date: any;
47
47
  };
48
48
  resourcesOrigin: any[];
49
+ fromResource: any;
49
50
  toResource: any;
50
51
  }>;
51
52
  export declare const createCacheItem: (cacheItem: any, values?: any) => any;
@@ -94,6 +94,7 @@ var updateResourceErrors = (resourceMaps, cacheItem) => {
94
94
  }
95
95
  };
96
96
  var init = async (params) => {
97
+ var _a;
97
98
  const { toStartDate, toEndDate, event, fromResourceId, toResourceId } = params;
98
99
  let bookingOrigin = await _getBookingDetail(event.order.id);
99
100
  let booking = (0, import_ticketBooking._formatBookingDetail)(bookingOrigin, {});
@@ -102,15 +103,18 @@ var init = async (params) => {
102
103
  });
103
104
  let childrenBooking = getChildrenBookingById(booking.service.value, event.id);
104
105
  console.log("childrenBooking", childrenBooking);
106
+ const fromResource = resources.listMap[fromResourceId];
107
+ const toResource = resources.listMap[toResourceId];
105
108
  const extraParams = {
106
109
  extraResources: []
107
110
  };
108
- const fromResource = resources.listMap[fromResourceId];
109
- const toResource = resources.listMap[toResourceId];
110
- if (fromResource) {
111
- extraParams.extraResources.push({
112
- form_id: fromResource.form_id,
113
- id: fromResource.id
111
+ const _eventResources = (_a = childrenBooking._extend) == null ? void 0 : _a.event_resources;
112
+ if (Array.isArray(_eventResources)) {
113
+ _eventResources.forEach((item) => {
114
+ extraParams.extraResources.push({
115
+ id: item.relation_id,
116
+ form_id: item.form_id
117
+ });
114
118
  });
115
119
  }
116
120
  if (toResource) {
@@ -138,6 +142,8 @@ var init = async (params) => {
138
142
  },
139
143
  // 总资源列表
140
144
  resourcesOrigin,
145
+ // 源资源
146
+ fromResource,
141
147
  // 目标资源
142
148
  toResource
143
149
  };
@@ -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
+ }>;
@@ -0,0 +1 @@
1
+ export declare const useIsBooking4Shop: (state: any) => any;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface AddServiceVariantProps {
3
+ globalState: any;
4
+ setGlobalState: any;
5
+ }
6
+ declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
7
+ export default AddServiceVariant;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { InfoProps } from './main';
3
+ declare const APP: (props: InfoProps) => JSX.Element;
4
+ export default APP;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -302,7 +302,7 @@ var getResourceByIds = (resourcesOriginMap, cacheItem, extraParams) => {
302
302
  extraResourceIds = (resourcesOrigin || []).filter((d) => d.form_code === item.code).map((d) => d.id);
303
303
  } else {
304
304
  extraResourceIds = extraResources.filter((_extraItem) => {
305
- return _extraItem.form_id === form_id && !item.optional_resource.includes(_extraItem.id) && !item.default_resource.includes(_extraItem.id);
305
+ return _extraItem.form_id === form_id && !!_extraItem.id && !item.optional_resource.includes(_extraItem.id) && !item.default_resource.includes(_extraItem.id);
306
306
  }).map((_extraItem) => _extraItem.id);
307
307
  }
308
308
  extraResourceIds = Array.from(new Set(extraResourceIds));
@@ -72,7 +72,7 @@ var Resources = ({
72
72
  const originData = (0, import_react.useMemo)(() => {
73
73
  var _a2;
74
74
  return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resources) || [];
75
- }, [(_b = originCacheItem == null ? void 0 : originCacheItem._data) == null ? void 0 : _b.resource]);
75
+ }, [(_b = originCacheItem == null ? void 0 : originCacheItem._data) == null ? void 0 : _b.resources]);
76
76
  const resourceMaps = (0, import_react.useMemo)(() => {
77
77
  var _a2;
78
78
  return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resourceMaps) || [];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
108
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
+ state: FormState;
110
+ } & {
111
+ dispatch: (params: {
112
+ type: string;
113
+ payload: any;
114
+ }) => void;
115
+ }>;
@@ -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
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -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;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from '../../type';
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -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
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductProps } from '../../type';
2
3
  declare const Product: (props: ProductProps) => JSX.Element;
3
4
  export default Product;