@pisell/private-materials 3.3.2 → 3.3.4

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 (157) 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.js +5 -5
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +5 -15
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/addons/model.js +5 -5
  13. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  14. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  15. package/es/components/booking/components/browserSelect/index.js +1 -1
  16. package/es/components/booking/components/voucher/index.js +2 -1
  17. package/es/components/booking/forms/model.d.ts +1 -10
  18. package/es/components/booking/forms/model.js +5 -5
  19. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  20. package/es/components/booking/info/model.d.ts +1 -10
  21. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  22. package/es/components/booking/info/service/like/index.js +1 -1
  23. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  24. package/es/components/booking/info/service2/utils.d.ts +1 -1
  25. package/es/components/booking/info/service2/utils.js +2 -1
  26. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  27. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  28. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  29. package/es/components/booking/materiels/startTime/index.js +1 -1
  30. package/es/components/booking/model.d.ts +1 -9
  31. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  32. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  33. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  34. package/es/components/booking/notes/model.d.ts +1 -10
  35. package/es/components/booking/notes/model.js +5 -5
  36. package/es/components/booking/payments/model.d.ts +1 -10
  37. package/es/components/booking/payments/model.js +5 -5
  38. package/es/components/booking/utils.d.ts +2 -2
  39. package/es/components/eftposPay/hooks.d.ts +1 -1
  40. package/es/components/eftposPay/store/index.d.ts +1 -1
  41. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  42. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  44. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  45. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  46. package/es/components/eventBooking/index.d.ts +0 -1
  47. package/es/components/listComponent/index.js +5 -5
  48. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  49. package/es/components/pay/toC/model.d.ts +1 -9
  50. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  51. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  52. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  53. package/es/components/productExtension/card/index.js +3 -3
  54. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  55. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  56. package/es/components/productExtension/fields/Forms/index.js +12 -12
  57. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  58. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  59. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  60. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  61. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  62. package/es/components/productExtension/index.d.ts +0 -1
  63. package/es/components/productExtension/server.js +2 -2
  64. package/es/components/ruleSetting/index.d.ts +0 -1
  65. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  66. package/es/components/schedules/calendar/index.js +4 -4
  67. package/es/components/schedules/calendar/serve.js +2 -2
  68. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  69. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  70. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  71. package/es/components/schedules/components/ResourceList/index.js +1 -1
  72. package/es/components/schedules/components/Search/index.js +5 -5
  73. package/es/components/schedules/model.d.ts +1 -9
  74. package/es/components/schedules/model.js +5 -5
  75. package/es/components/schedules/openHours/index.js +1 -1
  76. package/es/components/schedules/openHours/serve.js +2 -2
  77. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  78. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  79. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  80. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  81. package/es/components/schedules/products/serve.js +2 -2
  82. package/es/components/schedules/products/utils.js +5 -5
  83. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  84. package/es/components/schedules/resources/detail/index.js +10 -10
  85. package/es/components/schedules/resources/list/index.js +2 -2
  86. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  87. package/es/components/schedules/resources/serve.js +2 -2
  88. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  89. package/es/components/schedules/utils.d.ts +1 -1
  90. package/es/components/schedules/utils.js +4 -4
  91. package/es/components/selectModal/index.js +2 -2
  92. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  93. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  94. package/es/components/ticketBooking/components/addServiceVariant/addService.js +8 -8
  95. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  96. package/es/components/wallet/Detail/model.d.ts +1 -13
  97. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  98. package/es/components/wallet/PointCard/model.d.ts +1 -13
  99. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  100. package/es/components/wallet/Voucher/model.d.ts +1 -13
  101. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  102. package/es/components/wallet/model.d.ts +1 -9
  103. package/es/hooks/useComponents.js +1 -1
  104. package/es/utils/index.d.ts +1 -1
  105. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  106. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +0 -7
  107. package/lib/components/booking/addons/model.d.ts +1 -10
  108. package/lib/components/booking/components/voucher/index.js +2 -1
  109. package/lib/components/booking/forms/model.d.ts +1 -10
  110. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  111. package/lib/components/booking/info/model.d.ts +1 -10
  112. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  113. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  114. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  115. package/lib/components/booking/info/service2/utils.js +2 -1
  116. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  117. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  118. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  119. package/lib/components/booking/model.d.ts +1 -9
  120. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  121. package/lib/components/booking/notes/model.d.ts +1 -10
  122. package/lib/components/booking/payments/model.d.ts +1 -10
  123. package/lib/components/booking/utils.d.ts +2 -2
  124. package/lib/components/eftposPay/hooks.d.ts +1 -1
  125. package/lib/components/eftposPay/store/index.d.ts +1 -1
  126. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  127. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  128. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  129. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  130. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  131. package/lib/components/eventBooking/index.d.ts +0 -1
  132. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  133. package/lib/components/pay/toC/model.d.ts +1 -9
  134. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  135. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  136. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  137. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  138. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  139. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  140. package/lib/components/productExtension/index.d.ts +0 -1
  141. package/lib/components/ruleSetting/index.d.ts +0 -1
  142. package/lib/components/schedules/model.d.ts +1 -9
  143. package/lib/components/schedules/utils.d.ts +1 -1
  144. package/lib/components/schedules/utils.js +1 -1
  145. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  146. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  147. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
  148. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  149. package/lib/components/wallet/Detail/model.d.ts +1 -13
  150. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  151. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  152. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  153. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  154. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  155. package/lib/components/wallet/model.d.ts +1 -9
  156. package/lib/utils/index.d.ts +1 -1
  157. package/package.json +4 -4
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from '../serve';
3
2
  /**
4
3
  * 钱包卡片Hook的参数
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
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
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -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 ? 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 || (_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
  };
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
3
2
  export * from './Sales';
4
3
  export default SalesModel;
@@ -37,7 +37,6 @@ var import_utils = require("@pisell/utils");
37
37
  var import_materials = require("@pisell/materials");
38
38
  var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
39
39
  var import_hooks = require("../../../hooks");
40
- var import_materials2 = require("@pisell/materials");
41
40
  var import_context = require("../../../context");
42
41
  var import_utils2 = require("../../../utils");
43
42
  var import_utils3 = require("../utils");
@@ -189,12 +188,6 @@ var ContinueButton = ({
189
188
  if (handleCheckAccount()) return;
190
189
  }
191
190
  const selected = await appointmentBooking.getDateRange();
192
- if (!(selected == null ? void 0 : selected.length)) {
193
- (0, import_materials2.PisellToast)({
194
- content: import_utils.locales.getText("pisell2.appointment.no.available.time")
195
- });
196
- return;
197
- }
198
191
  (0, import_utils3.handleContinueStep)(key, {
199
192
  handleCheckResource,
200
193
  currentStep,
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -47,6 +47,7 @@ var ShopDiscountHooks = {
47
47
  onDestroy: "shopDiscount:onDestroy",
48
48
  onLoadDiscountList: "shopDiscount:onLoadDiscountList",
49
49
  onCustomerChange: "shopDiscount:onCustomerChange",
50
+ onScanCustomerChange: "shopDiscount:onScanCustomerChange",
50
51
  onDiscountListChange: "shopDiscount:onDiscountListChange",
51
52
  onRulesListChange: "shopDiscount:onRulesListChange",
52
53
  onLoadPrepareCalcResult: "shopDiscount:onLoadPrepareCalcResult"
@@ -132,7 +133,7 @@ var VoucherCard = (props) => {
132
133
  });
133
134
  (0, import_react.useEffect)(() => {
134
135
  if (!isBooking4Shop) return;
135
- pisellos.effects.on(ShopDiscountHooks.onCustomerChange, (customer) => {
136
+ pisellos.effects.on(ShopDiscountHooks.onScanCustomerChange, (customer) => {
136
137
  dispatch({
137
138
  type: "setClient",
138
139
  payload: {
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -238,4 +238,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
238
238
  * @Author: WangHan
239
239
  * @Date: 2024-12-24 11:32
240
240
  */
241
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
241
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -461,7 +461,8 @@ var getGeneralParams = (item, state, isParallelResource) => {
461
461
  _id: key,
462
462
  id: (value || []).map((val) => val.relation_id),
463
463
  status: ((_b2 = value == null ? void 0 : value[0]) == null ? void 0 : _b2.like_status) || "common",
464
- lists: (detail == null ? void 0 : detail.renderList) ? mapListItems(detail == null ? void 0 : detail.renderList) : []
464
+ lists: (detail == null ? void 0 : detail.renderList) ? mapListItems(detail == null ? void 0 : detail.renderList) : [],
465
+ disabled: state.disabledEdit || state.disableEventBookingEdit
465
466
  };
466
467
  });
467
468
  } else {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import '../../../info/service/addService/index.less';
3
4
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
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
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -163,10 +163,10 @@ export declare const getProductTotalPrice: (item: any) => number;
163
163
  export declare const getDuration: (duration: number | {
164
164
  type: string;
165
165
  value: number;
166
- }) => number | {
166
+ }) => number | "flexible" | {
167
167
  type: string;
168
168
  value: number;
169
- } | "flexible";
169
+ };
170
170
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
171
171
  export declare const getIsEdit: (state: any) => boolean;
172
172
  export {};
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
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
  };
@@ -297,7 +297,7 @@ 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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectHolderModal: (props: any) => JSX.Element;
3
2
  export default SelectHolderModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -25,11 +24,4 @@ export interface PayGroup {
25
24
  pay_number?: string;
26
25
  _order: any;
27
26
  }
28
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
29
- state: FormState;
30
- } & {
31
- dispatch: (params: {
32
- type: string;
33
- payload: any;
34
- }) => void;
35
- }>;
27
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddClientProps {
4
3
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface valueType {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
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
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -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").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").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 = {};
30
31
  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
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -189,9 +189,6 @@ var AddSerivce = (props) => {
189
189
  setTimeout(() => {
190
190
  lock = false;
191
191
  }, 2e3);
192
- (0, import_materials.PisellToast)({
193
- content: import_utils.locales.getText("pisell2.ticket-booking.add-to-cart")
194
- });
195
192
  if (!isBooking4) {
196
193
  const data = await createBookingData({
197
194
  product: { ...detail || item, _params: e }
@@ -234,6 +231,9 @@ var AddSerivce = (props) => {
234
231
  if (cacheItem.autoClose) {
235
232
  cacheItem.autoClose = false;
236
233
  let _list = [...state.service.value, cacheItem];
234
+ (0, import_materials.PisellToast)({
235
+ content: import_utils.locales.getText("pisell2.ticket-booking.add-to-cart")
236
+ });
237
237
  dispatch({
238
238
  type: "setService",
239
239
  payload: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const index: () => JSX.Element;
3
4
  export default index;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
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
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from '../serve';
3
2
  /**
4
3
  * 钱包卡片Hook的参数
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
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
- }>;
29
+ export declare const Provider: any, Context: any;