@pisell/private-materials 6.2.44 → 6.2.45

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 (67) 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 +29 -13
  7. package/build/lowcode/render/default/view.js +8 -8
  8. package/build/lowcode/view.js +8 -8
  9. package/es/components/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/index.d.ts +0 -1
  14. package/es/components/booking/components/footer/index.js +19 -9
  15. package/es/components/booking/components/footer/utils.js +13 -9
  16. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  17. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  18. package/es/components/booking/info/service2/utils.d.ts +1 -1
  19. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  20. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/utils.d.ts +2 -2
  22. package/es/components/eftposPay/amount.d.ts +1 -1
  23. package/es/components/eftposPay/device.d.ts +1 -1
  24. package/es/components/eftposPay/hooks.d.ts +1 -1
  25. package/es/components/eftposPay/store/index.d.ts +4 -4
  26. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  27. package/es/components/eventBooking/components/progressBar/index.js +20 -0
  28. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +20 -7
  29. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  30. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +12 -2
  31. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +31 -24
  32. package/es/components/pay/toC/utils.d.ts +1 -1
  33. package/es/components/schedules/utils.d.ts +1 -1
  34. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  35. package/es/components/wallet/Detail/index.js +2 -2
  36. package/es/components/wallet/components/WalletCard.js +3 -2
  37. package/es/utils/index.d.ts +1 -1
  38. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  39. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  40. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  41. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  42. package/lib/components/appointmentBooking/index.d.ts +0 -1
  43. package/lib/components/booking/components/footer/index.js +15 -8
  44. package/lib/components/booking/components/footer/utils.js +11 -3
  45. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  46. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  47. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  48. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  49. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  50. package/lib/components/booking/utils.d.ts +2 -2
  51. package/lib/components/eftposPay/amount.d.ts +1 -1
  52. package/lib/components/eftposPay/device.d.ts +1 -1
  53. package/lib/components/eftposPay/hooks.d.ts +1 -1
  54. package/lib/components/eftposPay/store/index.d.ts +4 -4
  55. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  56. package/lib/components/eventBooking/components/progressBar/index.js +18 -0
  57. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +11 -7
  58. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  59. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +9 -2
  60. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +6 -2
  61. package/lib/components/pay/toC/utils.d.ts +1 -1
  62. package/lib/components/schedules/utils.d.ts +1 -1
  63. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  64. package/lib/components/wallet/Detail/index.js +3 -3
  65. package/lib/components/wallet/components/WalletCard.js +1 -1
  66. package/lib/utils/index.d.ts +1 -1
  67. package/package.json +4 -4
@@ -676,7 +676,14 @@ var Footer = (props) => {
676
676
  }
677
677
  }, [state.bookingDetail, total.notPaidAmount]);
678
678
  const _buttons = (0, import_react.useMemo)(() => {
679
- if (state.appointment_status === "cancelled" || paymentRefundedStatus) {
679
+ const isEvent = (0, import_utils2.isEventBooking)(state);
680
+ if (state.appointment_status === "cancelled") {
681
+ return [buttonMap.rebook];
682
+ }
683
+ if (paymentRefundedStatus) {
684
+ if (isEvent) {
685
+ return [""];
686
+ }
680
687
  return [buttonMap.rebook];
681
688
  }
682
689
  if (source === "addons") {
@@ -801,13 +808,6 @@ var Footer = (props) => {
801
808
  const totalText = (0, import_react.useMemo)(() => {
802
809
  var _a2;
803
810
  let str = "";
804
- if (isOnlyDeposit) {
805
- return `${import_utils.locales.getText("pisell2.text.deposit-paid")} ${(0, import_utils.formatAmount)(
806
- (_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_paid_amount,
807
- 2,
808
- (state == null ? void 0 : state.amountSymbol) || "$"
809
- )} ${total.duration ? `(${total.duration})` : ""}`;
810
- }
811
811
  if (total.totalRefundAmount > 0) {
812
812
  return `${import_utils.locales.getText(
813
813
  "pisell2.text.refunded-amount"
@@ -817,6 +817,13 @@ var Footer = (props) => {
817
817
  (state == null ? void 0 : state.amountSymbol) || "$"
818
818
  )}`;
819
819
  }
820
+ if (isOnlyDeposit) {
821
+ return `${import_utils.locales.getText("pisell2.text.deposit-paid")} ${(0, import_utils.formatAmount)(
822
+ (_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_paid_amount,
823
+ 2,
824
+ (state == null ? void 0 : state.amountSymbol) || "$"
825
+ )} ${total.duration ? `(${total.duration})` : ""}`;
826
+ }
820
827
  if (total.notPaidAmount <= 0 && state.bookingId) {
821
828
  str = `${import_utils.locales.getText("pisell1.text.fully-paid")}: ${(0, import_utils.formatAmount)(
822
829
  total.sumTotalAmount,
@@ -389,10 +389,18 @@ var formatBookings = (data, values) => {
389
389
  });
390
390
  return bookings;
391
391
  };
392
- var formatRelationProducts = (data) => {
392
+ var formatRelationProducts = (data, type) => {
393
393
  var _a;
394
394
  let list = ((_a = data.service) == null ? void 0 : _a.value) || [];
395
- list = list.filter((item) => (0, import_utils4.isNormalProductByDurationSchedule)(item));
395
+ list = list.filter(
396
+ (item) => {
397
+ var _a2;
398
+ return (
399
+ // 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
400
+ type === "day" ? (0, import_utils4.isNormalProductByDurationSchedule)(item) : ((_a2 = item._extend) == null ? void 0 : _a2.holder_id) && import_status.appointmentTypes.includes(item.extension_type)
401
+ );
402
+ }
403
+ );
396
404
  let relationProducts = [];
397
405
  relationProducts = list.map((item) => {
398
406
  return formatProducts(item);
@@ -459,7 +467,7 @@ var formatValues = (state) => {
459
467
  };
460
468
  values.holder = formatHolder(state, values);
461
469
  if (isDay || isEvent) {
462
- values.relation_products = formatRelationProducts(state);
470
+ values.relation_products = formatRelationProducts(state, isDay ? "day" : "event");
463
471
  } else {
464
472
  values.relation_products = formatNormalProducts(state);
465
473
  if (!((_b = values.relation_products) == null ? void 0 : _b.length)) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  modal: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -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 {
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -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,7 +15,7 @@ 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>;
@@ -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
  /**
@@ -295,7 +295,7 @@ 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?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
@@ -303,12 +303,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
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 ContinueButton: () => JSX.Element;
4
3
  export default ContinueButton;
@@ -64,6 +64,24 @@ var ProgressBar = ({
64
64
  const handleOk = () => {
65
65
  var _a2, _b;
66
66
  if ((_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b.call(_a2)) {
67
+ const url = window.location.href;
68
+ if (url.includes("isByTabbar")) {
69
+ removeSessionStorage == null ? void 0 : removeSessionStorage();
70
+ const urlParams = new URLSearchParams(window.location.search);
71
+ urlParams.delete("cacheId");
72
+ setOpen(false);
73
+ interaction.utils.postMessageToApp({
74
+ module: "global",
75
+ key: "openNative",
76
+ data: {
77
+ link: {
78
+ page: "home"
79
+ }
80
+ }
81
+ });
82
+ window.location.href = window.location.pathname + "?" + urlParams.toString();
83
+ return;
84
+ }
67
85
  interaction.utils.postMessageToApp({
68
86
  module: "global",
69
87
  key: "paymentResultAction",
@@ -41,30 +41,34 @@ var import_payGroup = require("../../payGroup");
41
41
  var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
42
42
  var import_utils2 = require("../../utils");
43
43
  var GooglePay = (props, ref) => {
44
- var _a;
44
+ var _a, _b;
45
45
  const { state } = (0, import_react.useContext)(import_model.Context);
46
46
  const [open, setOpen] = (0, import_react.useState)(false);
47
47
  const context = (0, import_useEngineContext.default)();
48
48
  const { config } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
49
+ const { interaction } = (_b = context.appHelper) == null ? void 0 : _b.utils;
49
50
  const init = async ({ payGroup }) => {
50
- var _a2, _b, _c, _d, _e, _f, _g;
51
- setOpen(true);
51
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
52
52
  const utils = context.appHelper.utils || {};
53
- const dvaStore = (_b = (_a2 = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a2.call(utils)) == null ? void 0 : _b.getState();
53
+ const dvaStore = (_b2 = (_a2 = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a2.call(utils)) == null ? void 0 : _b2.getState();
54
54
  const values = (0, import_payGroup.getPayGroupParamsFromStorage)(payGroup.order_id);
55
+ if (((_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.isAppEnv) == null ? void 0 : _d.call(_c)) && ((_f = (_e = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e.isAndroid_ios) == null ? void 0 : _f.call(_e)) === "android") {
56
+ return (0, import_utils2.clientPayment)({ order_id: payGroup.order_id, type: "google_pay", values, interaction });
57
+ }
58
+ setOpen(true);
55
59
  if (!values) {
56
60
  setOpen(false);
57
61
  return;
58
62
  }
59
63
  try {
60
- const locale = ((_c = dvaStore.core) == null ? void 0 : _c.translateLocale) || "en";
61
- const shopId = (_f = (_e = (_d = dvaStore.core) == null ? void 0 : _d.core) == null ? void 0 : _e.shop) == null ? void 0 : _f.id;
64
+ const locale = ((_g = dvaStore.core) == null ? void 0 : _g.translateLocale) || "en";
65
+ const shopId = (_j = (_i = (_h = dvaStore.core) == null ? void 0 : _h.core) == null ? void 0 : _i.shop) == null ? void 0 : _j.id;
62
66
  const currentURL = window.location.href;
63
67
  const linkElement = document.createElement("a");
64
68
  linkElement.href = currentURL;
65
69
  const shop_domain = linkElement.hostname;
66
70
  const _href = `${config.pay}${(0, import_utils2.formatFranchiseeRoute)(
67
- `/google-pay?order_id=${(_g = state.payGroup) == null ? void 0 : _g.order_id}&shop_id=${shopId}&locale=${locale}&shop_domain=${shop_domain}&total_amount=${values.amount}&payment_group_id=${values.payment_group_id}`,
71
+ `/google-pay?order_id=${(_k = state.payGroup) == null ? void 0 : _k.order_id}&shop_id=${shopId}&locale=${locale}&shop_domain=${shop_domain}&total_amount=${values.amount}&payment_group_id=${values.payment_group_id}`,
68
72
  state.history
69
73
  )}`;
70
74
  window.location.href = _href;
@@ -10,6 +10,7 @@ export interface WalletPassListProps {
10
10
  walletSetting: {
11
11
  name: string;
12
12
  };
13
+ onChangeDebounce?: boolean;
13
14
  }
14
15
  export declare type WalletPassListRef = {
15
16
  init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
@@ -41,7 +41,7 @@ var import_utils2 = require("../utils");
41
41
  var import_index = require("./index.less");
42
42
  var WalletPassList = (0, import_react.forwardRef)(
43
43
  (props, ref) => {
44
- const { title, onChange, data: propsData, value, walletSetting } = props;
44
+ const { title, onChange, data: propsData, value, walletSetting, onLoadingChange, loading: propsLoading, onChangeDebounce } = props;
45
45
  const [data, setData] = (0, import_react.useState)(
46
46
  propsData || []
47
47
  );
@@ -51,6 +51,9 @@ var WalletPassList = (0, import_react.forwardRef)(
51
51
  setData(propsData);
52
52
  }
53
53
  }, [propsData]);
54
+ (0, import_react.useEffect)(() => {
55
+ setLoading(!!propsLoading);
56
+ }, [propsLoading]);
54
57
  const getList = async (params, formatList) => {
55
58
  setLoading(true);
56
59
  try {
@@ -70,6 +73,9 @@ var WalletPassList = (0, import_react.forwardRef)(
70
73
  (0, import_react.useImperativeHandle)(ref, () => ({
71
74
  init
72
75
  }));
76
+ (0, import_react.useEffect)(() => {
77
+ onLoadingChange == null ? void 0 : onLoadingChange(loading);
78
+ }, [loading]);
73
79
  const { availableList, disabledList } = (0, import_react.useMemo)(() => {
74
80
  const _disabledList = [];
75
81
  const _availableList = [];
@@ -111,7 +117,8 @@ var WalletPassList = (0, import_react.forwardRef)(
111
117
  value,
112
118
  onChange: handleChange,
113
119
  showEmpty: data.length === 0,
114
- empty
120
+ empty,
121
+ onChangeDebounce
115
122
  }
116
123
  ), !!disabledList.length && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-walletPass-list-disabled" }, import_utils.locales.getText("tocPay.text.walletPassDisabled")), /* @__PURE__ */ import_react.default.createElement(
117
124
  import_materials.PisellCardList,
@@ -48,6 +48,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
48
48
  var _a;
49
49
  const { onWalletPassChange, walletPass, walletSetting } = props;
50
50
  const [currentWalletPass, setCurrentWalletPass] = (0, import_react.useState)(walletPass);
51
+ const [loading, setLoading] = (0, import_react.useState)(false);
51
52
  const [open, setOpen] = (0, import_react.useState)(false);
52
53
  const [searchOpen, setSearchOpen] = (0, import_react.useState)(false);
53
54
  const [addList, setAddList] = (0, import_react.useState)([]);
@@ -281,7 +282,9 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
281
282
  data: otherCustomerWalletPassList,
282
283
  title: import_utils.locales.getText("tocPay.text.couponCodesAdded"),
283
284
  onChange: handleOtherChange,
284
- value: selectValue
285
+ value: selectValue,
286
+ loading,
287
+ onChangeDebounce: true
285
288
  }
286
289
  ), /* @__PURE__ */ import_react.default.createElement(
287
290
  import_List.default,
@@ -290,7 +293,8 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
290
293
  title: walletSetting.name,
291
294
  onChange: handleCurrentChange,
292
295
  ref: listRef,
293
- value: selectValue
296
+ value: selectValue,
297
+ onLoadingChange: setLoading
294
298
  }
295
299
  ))
296
300
  ), /* @__PURE__ */ import_react.default.createElement(
@@ -51,7 +51,7 @@ export declare const formatFranchiseeRoute: (url: string, history?: any) => stri
51
51
  export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
52
52
  export declare const clientPayment: (params: {
53
53
  order_id: number;
54
- type: "aliPay" | "wxPay";
54
+ type: "aliPay" | "wxPay" | 'google_pay';
55
55
  values: any;
56
56
  interaction?: any;
57
57
  }) => void;
@@ -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 };
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "wallet" | "walletPass" | "product" | "local_product" | "customer";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -50,7 +50,7 @@ var { Text } = import_materials2.Typography;
50
50
  import_dayjs.default.extend(import_timezone.default);
51
51
  import_dayjs.default.extend(import_utc.default);
52
52
  var Detail = (0, import_react.forwardRef)((props, ref) => {
53
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
53
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
54
54
  const {
55
55
  detail = {},
56
56
  buttonGroupList = [[]],
@@ -545,7 +545,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
545
545
  className: `wallet-detail${platform === "h5" ? " wallet-detail-h5" : " wallet-detail-pc"} ${className || ""}`,
546
546
  ref: detailWrapperRef
547
547
  },
548
- (platform === "h5" || showWalletBar) && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-header" }, /* @__PURE__ */ import_react.default.createElement(import_components.WalletBar, { setup: "detail", onBack: handleBack })),
548
+ (platform === "h5" || showWalletBar) && !((_l = (_k = (_j = utils == null ? void 0 : utils.interaction) == null ? void 0 : _j.utils) == null ? void 0 : _k.isAppEnv) == null ? void 0 : _l.call(_k)) && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-header" }, /* @__PURE__ */ import_react.default.createElement(import_components.WalletBar, { setup: "detail", onBack: handleBack })),
549
549
  /* @__PURE__ */ import_react.default.createElement(
550
550
  "div",
551
551
  {
@@ -632,7 +632,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
632
632
  step: "detail",
633
633
  addWalletLoading,
634
634
  onAppleWalletClick: tag === "gift_card" ? addWalletCard : void 0,
635
- onRechargeClick: tag === "gift_card" && ((_j = detail == null ? void 0 : detail.machinecode_config) == null ? void 0 : _j.hide_recharge) === 0 ? handleRecharge : void 0,
635
+ onRechargeClick: tag === "gift_card" && ((_m = detail == null ? void 0 : detail.machinecode_config) == null ? void 0 : _m.hide_recharge) === 0 ? handleRecharge : void 0,
636
636
  platform,
637
637
  isIOS: (0, import_utils.isIos)()
638
638
  }
@@ -73,7 +73,7 @@ var WalletCard = ({
73
73
  disabled: isDisabled,
74
74
  showDisabledReason: isDisabled,
75
75
  disabledReason,
76
- propStyle: { marginBottom: 16 },
76
+ style: { marginBottom: 16, width: "100%" },
77
77
  showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
78
78
  active: isActive,
79
79
  name: product_title,
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.2.44",
3
+ "version": "6.2.45",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "react-resizable": "^3.0.5",
61
61
  "styled-components": "^6.0.0-rc.3",
62
- "@pisell/date-picker": "3.0.4",
63
- "@pisell/materials": "6.2.38",
62
+ "@pisell/icon": "0.0.11",
64
63
  "@pisell/utils": "3.0.1",
65
- "@pisell/icon": "0.0.11"
64
+ "@pisell/materials": "6.2.38",
65
+ "@pisell/date-picker": "3.0.4"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",