@pisell/private-materials 6.8.10 → 6.8.11

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 (41) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/booking/addons/model.d.ts +10 -1
  9. package/es/components/booking/forms/model.d.ts +10 -1
  10. package/es/components/booking/info/model.d.ts +10 -1
  11. package/es/components/booking/info2/service/editService/index.js +32 -6
  12. package/es/components/booking/model.d.ts +9 -1
  13. package/es/components/booking/notes/model.d.ts +10 -1
  14. package/es/components/booking/payments/model.d.ts +10 -1
  15. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +4 -4
  16. package/es/components/eftposPay/amount.d.ts +1 -1
  17. package/es/components/eftposPay/device.d.ts +1 -1
  18. package/es/components/eftposPay/hooks.d.ts +2 -2
  19. package/es/components/eftposPay/store/index.d.ts +6 -6
  20. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  21. package/es/components/pay/toC/model.d.ts +9 -1
  22. package/es/components/schedules/model.d.ts +9 -1
  23. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  24. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  25. package/lib/components/booking/addons/model.d.ts +10 -1
  26. package/lib/components/booking/forms/model.d.ts +10 -1
  27. package/lib/components/booking/info/model.d.ts +10 -1
  28. package/lib/components/booking/info2/service/editService/index.js +22 -1
  29. package/lib/components/booking/model.d.ts +9 -1
  30. package/lib/components/booking/notes/model.d.ts +10 -1
  31. package/lib/components/booking/payments/model.d.ts +10 -1
  32. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +4 -3
  33. package/lib/components/eftposPay/amount.d.ts +1 -1
  34. package/lib/components/eftposPay/device.d.ts +1 -1
  35. package/lib/components/eftposPay/hooks.d.ts +2 -2
  36. package/lib/components/eftposPay/store/index.d.ts +6 -6
  37. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  38. package/lib/components/pay/toC/model.d.ts +9 -1
  39. package/lib/components/schedules/model.d.ts +9 -1
  40. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  41. package/package.json +2 -2
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -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,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
+ }>;
@@ -50,7 +50,7 @@ import dayjs from "dayjs";
50
50
  import { createBookingItemsByGroup, getGroupTotalPrice } from "../../../info/service2/Group/utils";
51
51
  var submitLock = false;
52
52
  var Info = function Info(_, ref) {
53
- var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI5, _state$service$cacheI7, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI12, _state$bookingConfig5, _state$service$cacheI13, _state$service$cacheI14, _state$service9, _state$service$resour2, _state$service$cacheI16, _state$service$cacheI17, _state$client2;
53
+ var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI5, _state$service$cacheI7, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI12, _state$bookingConfig5, _state$service$cacheI13, _state$service$cacheI14, _state$service9, _state$service$resour2, _state$service$cacheI16, _state$service$cacheI18, _state$client2;
54
54
  var _Form$useForm = Form.useForm(),
55
55
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
56
56
  form = _Form$useForm2[0];
@@ -81,6 +81,10 @@ var Info = function Info(_, ref) {
81
81
  _useState6 = _slicedToArray(_useState5, 2),
82
82
  currentTab = _useState6[0],
83
83
  setCurrentTab = _useState6[1];
84
+ var _useState7 = useState(false),
85
+ _useState8 = _slicedToArray(_useState7, 2),
86
+ maskClosable = _useState8[0],
87
+ setMaskClosable = _useState8[1];
84
88
  useEffect(function () {
85
89
  window.openBookingEditModal = function () {
86
90
  setOpen(true);
@@ -993,10 +997,10 @@ var Info = function Info(_, ref) {
993
997
  }, [(_state$service$resour2 = state.service.resourcesOrigin) === null || _state$service$resour2 === void 0 ? void 0 : _state$service$resour2.length, isNormalProduct]);
994
998
  console.log('render edit');
995
999
  console.log(state.service.editModal && !((_state$service$cacheI16 = state.service.cacheItem) !== null && _state$service$cacheI16 !== void 0 && _state$service$cacheI16.autoClose), performance.now() - window.pp1, '打开商品1');
996
- var _useState7 = useState(false),
997
- _useState8 = _slicedToArray(_useState7, 2),
998
- val = _useState8[0],
999
- setVal = _useState8[1];
1000
+ var _useState9 = useState(false),
1001
+ _useState10 = _slicedToArray(_useState9, 2),
1002
+ val = _useState10[0],
1003
+ setVal = _useState10[1];
1000
1004
  useEffect(function () {
1001
1005
  if (isShowTimeAndResource) {
1002
1006
  setTimeout(function () {
@@ -1113,14 +1117,36 @@ var Info = function Info(_, ref) {
1113
1117
  }
1114
1118
  }
1115
1119
  };
1120
+ var drawerOpen = useMemo(function () {
1121
+ var _state$service$cacheI17;
1122
+ return !isNoSpecAndPackage && state.service.editModal && !((_state$service$cacheI17 = state.service.cacheItem) !== null && _state$service$cacheI17 !== void 0 && _state$service$cacheI17.autoClose);
1123
+ }, [isNoSpecAndPackage, state.service.editModal, (_state$service$cacheI18 = state.service.cacheItem) === null || _state$service$cacheI18 === void 0 ? void 0 : _state$service$cacheI18.autoClose]);
1124
+
1125
+ // 弹窗打开 200ms 后开启 maskClosable
1126
+ useEffect(function () {
1127
+ var timer = null;
1128
+ if (drawerOpen) {
1129
+ timer = setTimeout(function () {
1130
+ setMaskClosable(true);
1131
+ }, 200);
1132
+ } else {
1133
+ setMaskClosable(false);
1134
+ }
1135
+ return function () {
1136
+ if (timer) {
1137
+ clearTimeout(timer);
1138
+ }
1139
+ };
1140
+ }, [drawerOpen]);
1116
1141
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
1142
+ maskClosable: maskClosable,
1117
1143
  titleNoWrap: true
1118
1144
  //通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
1119
1145
  ,
1120
1146
  zIndex: state.service.changeService ? 999 : 1000,
1121
1147
  forceRender: true,
1122
1148
  mask: state.drawerMask,
1123
- open: !isNoSpecAndPackage && state.service.editModal && !((_state$service$cacheI17 = state.service.cacheItem) !== null && _state$service$cacheI17 !== void 0 && _state$service$cacheI17.autoClose),
1149
+ open: drawerOpen,
1124
1150
  title: locales.getText('pisell2.text.edit-service'),
1125
1151
  onClose: function onClose() {
1126
1152
  var _window$closeBookingE4, _window4;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -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
+ }>;
@@ -193,9 +193,9 @@ var GlobalToastManager = /*#__PURE__*/function () {
193
193
  console.log('计算钱箱按钮位置得到的bottom位置', this.cachedBottomOffset);
194
194
  return this.cachedBottomOffset;
195
195
  }
196
- var ticketBookingElement = document.querySelector('.ticket-booking-left-panel-content');
197
- if (ticketBookingElement) {
198
- var rect = ticketBookingElement.getBoundingClientRect();
196
+ var bodyElement = document.querySelector('body');
197
+ if (bodyElement) {
198
+ var rect = bodyElement.getBoundingClientRect();
199
199
  var windowHeight = window.innerHeight;
200
200
  // 计算:整个高度 - 组件的 bottom + 8px
201
201
  this.cachedBottomOffset = windowHeight - rect.bottom + 16;
@@ -337,7 +337,7 @@ var GlobalToastManager = /*#__PURE__*/function () {
337
337
  if (config.mask) {
338
338
  container.setAttribute('data-mask', 'true');
339
339
  }
340
-
340
+ debugger;
341
341
  // 计算动态的bottom位置
342
342
  var dynamicBottomOffset = this.calculateAndCacheBottomOffset();
343
343
  // const centerOffset = this.calculateAndCacheCenterOffset();
@@ -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" | "print" | "page" | "fail" | "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, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "print" | "page" | "fail" | "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<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
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: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "loading" | "warn" | "success" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "pay" | "amount" | "deviceList" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
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?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @title: 点击支付
3
+ * @description:
4
+ * @param {any} param1
5
+ * @return {*}
6
+ * @Author: Wzw
7
+ * @Date: 2022-10-22 10:05
8
+ */
9
+ export declare const startPayment: ({ orderId, cardInfo, payData }: any, callback?: any) => Promise<boolean | undefined>;
10
+ /*******
11
+ * @title: 步骤2
12
+ * @description: 提交卡信息到后端
13
+ * @return {*}
14
+ * @Author: Wzw
15
+ * @Date: 2022-10-18 10:26
16
+ */
17
+ export declare const checkEnrollment: (orderId: string, cardInfo: any, callback: any) => Promise<any>;
18
+ /**
19
+ * @title: 步骤3
20
+ * @description: 创建iframe, 监听
21
+ * @param {any} threeDSMethodData
22
+ * @return {*}
23
+ * @Author: Wzw
24
+ * @Date: 2022-10-18 10:36
25
+ */
26
+ export declare const createThreeDSMethodIframe: (threeDSMethodData: any, callback: any) => Promise<unknown>;
27
+ /**
28
+ * @title: 步骤4
29
+ * @description:
30
+ * @param {any} param1
31
+ * @return {*}
32
+ * @Author: Wzw
33
+ * @Date: 2022-10-18 10:43
34
+ */
35
+ export declare const checkTDSAuth: (step2: any, step3: any, callback?: any) => Promise<any>;
36
+ /**
37
+ * @title: 步骤5
38
+ * @description: 监听
39
+ * @param {any} challengeData
40
+ * @return {*}
41
+ * @Author: Wzw
42
+ * @Date: 2022-10-18 10:45
43
+ */
44
+ export declare const createChallengeIframe: (challengeData: any, callback?: any) => Promise<unknown>;
45
+ /**
46
+ * @title: 步骤6
47
+ * @description:
48
+ * @param {any} cres
49
+ * @return {*}
50
+ * @Author: Wzw
51
+ * @Date: 2022-10-18 10:48
52
+ */
53
+ export declare const checkPARes: (step2: any, step4: any, step5: any) => Promise<any>;
54
+ /**
55
+ * @title: 支付结束
56
+ * @description:
57
+ * @return {*}
58
+ * @Author: Wzw
59
+ * @Date: 2022-10-18 14:28
60
+ */
61
+ export declare const paymentEnd: (props: any, callback: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -29,4 +30,11 @@ export interface PayGroup {
29
30
  _order: any;
30
31
  front_order_uuid?: string;
31
32
  }
32
- export declare const Provider: any, Context: any;
33
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
+ state: FormState;
35
+ } & {
36
+ dispatch: (params: {
37
+ type: string;
38
+ payload: any;
39
+ }) => void;
40
+ }>;
@@ -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
+ }>;
@@ -47,7 +47,7 @@ declare type ScanData = {
47
47
  };
48
48
  };
49
49
  export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
50
+ searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
51
51
  data: any;
52
52
  scanCode: string;
53
53
  } | null;
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -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,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
+ }>;
@@ -80,6 +80,7 @@ var Info = (_, ref) => {
80
80
  const [noteModalOpen, setNoteModalOpen] = (0, import_react.useState)(false);
81
81
  const [open, setOpen] = (0, import_react.useState)(false);
82
82
  const [currentTab, setCurrentTab] = (0, import_react.useState)("batch_edit");
83
+ const [maskClosable, setMaskClosable] = (0, import_react.useState)(false);
83
84
  (0, import_react.useEffect)(() => {
84
85
  window.openBookingEditModal = () => {
85
86
  setOpen(true);
@@ -948,14 +949,34 @@ var Info = (_, ref) => {
948
949
  }
949
950
  }
950
951
  };
952
+ const drawerOpen = (0, import_react.useMemo)(() => {
953
+ var _a2;
954
+ return !isNoSpecAndPackage && state.service.editModal && !((_a2 = state.service.cacheItem) == null ? void 0 : _a2.autoClose);
955
+ }, [isNoSpecAndPackage, state.service.editModal, (_I = state.service.cacheItem) == null ? void 0 : _I.autoClose]);
956
+ (0, import_react.useEffect)(() => {
957
+ let timer = null;
958
+ if (drawerOpen) {
959
+ timer = setTimeout(() => {
960
+ setMaskClosable(true);
961
+ }, 200);
962
+ } else {
963
+ setMaskClosable(false);
964
+ }
965
+ return () => {
966
+ if (timer) {
967
+ clearTimeout(timer);
968
+ }
969
+ };
970
+ }, [drawerOpen]);
951
971
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
952
972
  import_drawer.default,
953
973
  {
974
+ maskClosable,
954
975
  titleNoWrap: true,
955
976
  zIndex: state.service.changeService ? 999 : 1e3,
956
977
  forceRender: true,
957
978
  mask: state.drawerMask,
958
- open: !isNoSpecAndPackage && state.service.editModal && !((_I = state.service.cacheItem) == null ? void 0 : _I.autoClose),
979
+ open: drawerOpen,
959
980
  title: import_utils.locales.getText("pisell2.text.edit-service"),
960
981
  onClose: () => {
961
982
  var _a2;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -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
+ }>;
@@ -160,9 +160,9 @@ var GlobalToastManager = class {
160
160
  console.log("计算钱箱按钮位置得到的bottom位置", this.cachedBottomOffset);
161
161
  return this.cachedBottomOffset;
162
162
  }
163
- const ticketBookingElement = document.querySelector(".ticket-booking-left-panel-content");
164
- if (ticketBookingElement) {
165
- const rect = ticketBookingElement.getBoundingClientRect();
163
+ const bodyElement = document.querySelector("body");
164
+ if (bodyElement) {
165
+ const rect = bodyElement.getBoundingClientRect();
166
166
  const windowHeight = window.innerHeight;
167
167
  this.cachedBottomOffset = windowHeight - rect.bottom + 16;
168
168
  } else {
@@ -259,6 +259,7 @@ var GlobalToastManager = class {
259
259
  if (config.mask) {
260
260
  container.setAttribute("data-mask", "true");
261
261
  }
262
+ debugger;
262
263
  const dynamicBottomOffset = this.calculateAndCacheBottomOffset();
263
264
  container.style.position = "fixed";
264
265
  if (config.mask) {
@@ -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" | "print" | "page" | "fail" | "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, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "print" | "page" | "fail" | "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<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
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: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "loading" | "warn" | "success" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "pay" | "amount" | "deviceList" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
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?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */