@pisell/private-materials 6.3.21 → 6.3.22

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 (57) 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/appointmentBooking/components/Content/index.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  9. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/index.d.ts +0 -1
  11. package/es/components/booking/components/footer/index.js +12 -1
  12. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  13. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  14. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  15. package/es/components/booking/info/service/Lists.d.ts +0 -1
  16. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  17. package/es/components/booking/info/service2/utils.d.ts +1 -1
  18. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  19. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  20. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  21. package/es/components/booking/locales.js +9 -9
  22. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  23. package/es/components/eftposPay/hooks.d.ts +2 -2
  24. package/es/components/eftposPay/store/index.d.ts +6 -6
  25. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  26. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  27. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  28. package/es/components/ruleSetting/locales.js +2 -2
  29. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  30. package/es/components/ticketBooking/components/ticketBooking/index.js +48 -41
  31. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  32. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  33. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  34. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  35. package/lib/components/appointmentBooking/index.d.ts +0 -1
  36. package/lib/components/booking/components/footer/index.js +15 -2
  37. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  38. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  39. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  40. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  41. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  42. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  43. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  44. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  45. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  46. package/lib/components/booking/locales.js +9 -9
  47. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  48. package/lib/components/eftposPay/hooks.d.ts +2 -2
  49. package/lib/components/eftposPay/store/index.d.ts +6 -6
  50. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  51. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  52. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  53. package/lib/components/ruleSetting/locales.js +2 -2
  54. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  55. package/lib/components/ticketBooking/components/ticketBooking/index.js +43 -29
  56. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  57. package/package.json +2 -2
@@ -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 '../../../booking/components/voucher/index.less';
3
2
  import './index.less';
4
3
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AppointmentBooking: () => JSX.Element;
4
3
  export default AppointmentBooking;
@@ -424,7 +424,7 @@ var Footer = function Footer(props) {
424
424
  */
425
425
  var handleSave = /*#__PURE__*/function () {
426
426
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref4) {
427
- var type, _ref4$messageShow, messageShow, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, callbackData, values, api;
427
+ var type, _ref4$messageShow, messageShow, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState, _window, callbackData, values, api;
428
428
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
429
429
  while (1) switch (_context4.prev = _context4.next) {
430
430
  case 0:
@@ -481,6 +481,17 @@ var Footer = function Footer(props) {
481
481
  }, {
482
482
  key: '日期',
483
483
  value: dayjs().format('YYYY-MM-DD HH:mm')
484
+ }, {
485
+ key: '店铺id',
486
+ value: store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.globalConfig) === null || _store$getState === void 0 ? void 0 : _store$getState.id
487
+ }, {
488
+ key: 'shopApi',
489
+ value: JSON.stringify((_window = window) === null || _window === void 0 ? void 0 : _window.shopApi, function (key, value) {
490
+ if (typeof value === 'function') {
491
+ return 'function';
492
+ }
493
+ return value;
494
+ })
484
495
  }]
485
496
  });
486
497
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  modal: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const calculateTotalPrice: (data: any) => number;
3
2
  declare const useQuotation: (state: any, dispatch: any) => {
4
3
  dom: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
244
  * @Author: WangHan
245
245
  * @Date: 2024-12-24 11:32
246
246
  */
247
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
247
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -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 '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -102,7 +102,7 @@ export default {
102
102
  var obj = {
103
103
  shop: 'Paid from Merchant Portal',
104
104
  'mini-program': 'Paid from WeChat Mini-program',
105
- pos: 'Paid from Pisell Terminal',
105
+ pos: 'Paid from Terminal',
106
106
  PC: 'Paid from Website',
107
107
  app: 'Paid from APP'
108
108
  };
@@ -145,7 +145,7 @@ export default {
145
145
  'pisell2.text.edit-profile': 'Edit profile',
146
146
  'pisell2.text.remove-contact': 'Remove contact',
147
147
  'pisell2.text.order.sales.channel.online': "Online store",
148
- 'pisell2.text.order.sales.channel.pos-terminal': "Pisell terminal",
148
+ 'pisell2.text.order.sales.channel.pos-terminal': "Terminal",
149
149
  'pisell2.text.order.sales.channel.boxcocal': "Boxlocal",
150
150
  'pisell2.text.order.sales.channel.tableorder': "Table order",
151
151
  'pisell2.text.order.sales.channel.reserve': "Google reservation",
@@ -191,7 +191,7 @@ export default {
191
191
  'page.booking.text.available': 'Available',
192
192
  'page.booking.text.fully-booked': 'Fully booked',
193
193
  'page.booking.text.unlimited': 'Unlimited',
194
- 'pisell2.text.terminal-edit-message': "This operation cannot be performed. To proceed, please use the Pisell Terminal.",
194
+ 'pisell2.text.terminal-edit-message': "This operation cannot be performed. To proceed, please use the Terminal.",
195
195
  "pisell2.text.actions": "Actions",
196
196
  "pisell2.text.add-client": "Add customer",
197
197
  // 日称tab
@@ -434,7 +434,7 @@ export default {
434
434
  var obj = {
435
435
  shop: '在 管理后台 支付',
436
436
  'mini-program': '在 微信小程序 支付',
437
- pos: '在 Pisell 终端 支付',
437
+ pos: '在 终端 支付',
438
438
  PC: '在 网站 支付',
439
439
  app: '在 手机应用程序 支付'
440
440
  };
@@ -472,7 +472,7 @@ export default {
472
472
  'pisell2.text.edit-profile': '编辑个人资料',
473
473
  'pisell2.text.remove-contact': '删除联系人',
474
474
  'pisell2.text.order.sales.channel.online': "在线店铺",
475
- 'pisell2.text.order.sales.channel.pos-terminal': "Pisell终端",
475
+ 'pisell2.text.order.sales.channel.pos-terminal': "终端",
476
476
  'pisell2.text.order.sales.channel.boxcocal': "Boxlocal",
477
477
  'pisell2.text.order.sales.channel.tableorder': "扫码点餐",
478
478
  'pisell2.text.order.sales.channel.reserve': "谷歌预约",
@@ -509,7 +509,7 @@ export default {
509
509
  'pisell2.text.send-mail': "发送邮件",
510
510
  'pisell2.text.copy-to-clipboard': "复制到剪切板",
511
511
  'pisell2.text.ok': "好的",
512
- 'pisell2.text.terminal-edit-message': "此操作不可使用,如需使用请至Pisell 终端设备操作。",
512
+ 'pisell2.text.terminal-edit-message': "此操作不可使用,如需使用请至终端设备操作。",
513
513
  'page.booking.text.add-time': '加时',
514
514
  'page.booking.text.quantity': '数量',
515
515
  'page.booking.text.sales': '销售',
@@ -761,7 +761,7 @@ export default {
761
761
  var obj = {
762
762
  shop: '在 管理後臺 支付',
763
763
  'mini-program': '在 微信小程序 支付',
764
- pos: '在 Pisell 終端 支付',
764
+ pos: '在 終端 支付',
765
765
  PC: '在 網站 支付',
766
766
  app: '在 手機應用程序 支付'
767
767
  };
@@ -799,7 +799,7 @@ export default {
799
799
  'pisell2.text.edit-profile': '編輯個人資料',
800
800
  'pisell2.text.remove-contact': '删除聯系人',
801
801
  'pisell2.text.order.sales.channel.online': "在線店鋪",
802
- 'pisell2.text.order.sales.channel.pos-terminal': "Pisell终端",
802
+ 'pisell2.text.order.sales.channel.pos-terminal': "终端",
803
803
  'pisell2.text.order.sales.channel.boxcocal': "Boxlocal",
804
804
  'pisell2.text.order.sales.channel.tableorder': "掃碼點餐",
805
805
  'pisell2.text.order.sales.channel.reserve': "谷歌預約",
@@ -836,7 +836,7 @@ export default {
836
836
  'pisell2.text.send-mail': "發送郵件",
837
837
  'pisell2.text.copy-to-clipboard': "複製到剪切板",
838
838
  'pisell2.text.ok': "好的",
839
- 'pisell2.text.terminal-edit-message': "此操作不可使用,如需使用請至Pisell 終端設備操作。",
839
+ 'pisell2.text.terminal-edit-message': "此操作不可使用,如需使用請至終端設備操作。",
840
840
  'page.booking.text.add-time': '加時',
841
841
  'page.booking.text.quantity': '數量',
842
842
  'page.booking.text.sales': '銷售',
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "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: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "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?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "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?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "warn" | "loading" | "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;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type BoolConfigVal = 0 | 1;
4
3
  export interface ProductCardConfig {
@@ -11,7 +11,7 @@ export default {
11
11
  'pisell2.text.rule-setting.sales_channel': "Operation platform",
12
12
  'pisell2.text.rule-setting.staff': "Staff",
13
13
  'pisell2.text.rule-setting.payment_method': "Payment method",
14
- 'pisell2.text.rule-setting.pisell_terminal_device': "Pisell terminal device",
14
+ 'pisell2.text.rule-setting.pisell_terminal_device': "Terminal device",
15
15
  'pisell2.text.rule-setting.current_device': "Current device"
16
16
  },
17
17
  'zh-CN': {
@@ -41,7 +41,7 @@ export default {
41
41
  'pisell2.text.rule-setting.sales_channel': "操作平台",
42
42
  'pisell2.text.rule-setting.staff': "員工",
43
43
  'pisell2.text.rule-setting.payment_method': "支付方式",
44
- 'pisell2.text.rule-setting.pisell_terminal_device': "Pisell終端",
44
+ 'pisell2.text.rule-setting.pisell_terminal_device': "終端",
45
45
  'pisell2.text.rule-setting.current_device': "當前設備"
46
46
  }
47
47
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -34,6 +34,7 @@ import "./index.less";
34
34
  import { formatProducts } from "../../../booking/info/service2/utils";
35
35
  import { getSumTotal } from "../../../booking/components/footer/amount";
36
36
  import formatProductMessage from "../../utils/formatProductMessage";
37
+ import { useDebounceFn } from "ahooks";
37
38
  export var _formatBookingDetail = function _formatBookingDetail(data, modalState) {
38
39
  var _bookings$list, _bookings$list2;
39
40
  var customer_id = data.customer_id,
@@ -186,41 +187,10 @@ var TicketBooking = function TicketBooking() {
186
187
  var _listTimerRef = useRef();
187
188
  var _timerRef = useRef();
188
189
  var _callbackFnRef = useRef();
189
- useEffect(function () {
190
- var _interaction$utils, _store$getState, _interaction$utils2, _interaction$utils3;
191
- // bellaswonderland.mypisell.com localStorage可能满了
192
- localStorage.removeItem('bookingResourceList');
193
- _persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
194
- if (lowcodeRef) {
195
- lowcodeRef.onReady(_this);
196
- }
197
- if (action) {
198
- action({
199
- type: 'pisell1.registerPlugin',
200
- data: {
201
- pluginList: ['ProductDetailPlugin']
202
- }
203
- });
204
- }
205
- interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || _interaction$utils.mountFunction('booking', 'scanBookingDetailResult', _scanBookingDetailResult);
206
- var off = _addVisibilityListener(function () {
207
- setState({
208
- verticalAddServiceKey: state.verticalAddServiceKey + 1
209
- });
210
- });
211
- setState({
212
- amountSymbol: (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 ? void 0 : _store$getState.symbol) || '$'
213
- }, function () {
214
- _initStateRef.current = JSON.parse(JSON.stringify(state));
215
- _getBoardConfig();
216
- });
217
- _setShopOpeningHours();
218
- _setIntervalTime(true);
219
- interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('booking', 'refreshBookingDetail', function (type, orderId) {
220
- // console.log(type, orderId, 'type, orderId');
190
+ var _useDebounceFn = useDebounceFn(function (type, orderId) {
221
191
  // 支付成功后清空状态
222
192
  try {
223
- var _store$getState2;
193
+ var _store$getState;
224
194
  _initFn(function () {});
225
195
  setState({
226
196
  createCount: state.createCount + 1
@@ -229,7 +199,7 @@ var TicketBooking = function TicketBooking() {
229
199
  title: '清空购物车',
230
200
  content: [{
231
201
  key: '店铺id',
232
- value: store === null || store === void 0 || (_store$getState2 = store.getState) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.call(store)) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.global) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.globalConfig) === null || _store$getState2 === void 0 ? void 0 : _store$getState2.id
202
+ value: store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.globalConfig) === null || _store$getState === void 0 ? void 0 : _store$getState.id
233
203
  }, {
234
204
  key: '订单id',
235
205
  value: orderId
@@ -239,12 +209,12 @@ var TicketBooking = function TicketBooking() {
239
209
  }]
240
210
  });
241
211
  } catch (err) {
242
- var _store$getState3;
212
+ var _store$getState2;
243
213
  sendWarningLog({
244
214
  title: '清空购物车失败',
245
215
  content: [{
246
216
  key: '店铺id',
247
- value: store === null || store === void 0 || (_store$getState3 = store.getState) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.call(store)) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.global) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.globalConfig) === null || _store$getState3 === void 0 ? void 0 : _store$getState3.id
217
+ value: store === null || store === void 0 || (_store$getState2 = store.getState) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.call(store)) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.global) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.globalConfig) === null || _store$getState2 === void 0 ? void 0 : _store$getState2.id
248
218
  }, {
249
219
  key: '订单id',
250
220
  value: orderId
@@ -257,10 +227,47 @@ var TicketBooking = function TicketBooking() {
257
227
  }]
258
228
  });
259
229
  }
230
+ }, {
231
+ wait: 500,
232
+ leading: true,
233
+ trailing: false
234
+ }),
235
+ clearAllCart = _useDebounceFn.run;
236
+ useEffect(function () {
237
+ var _interaction$utils, _store$getState3, _interaction$utils2, _interaction$utils3, _interaction$utils4;
238
+ // bellaswonderland.mypisell.com localStorage可能满了
239
+ localStorage.removeItem('bookingResourceList');
240
+ _persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
241
+ if (lowcodeRef) {
242
+ lowcodeRef.onReady(_this);
243
+ }
244
+ if (action) {
245
+ action({
246
+ type: 'pisell1.registerPlugin',
247
+ data: {
248
+ pluginList: ['ProductDetailPlugin']
249
+ }
250
+ });
251
+ }
252
+ interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || _interaction$utils.mountFunction('booking', 'scanBookingDetailResult', _scanBookingDetailResult);
253
+ var off = _addVisibilityListener(function () {
254
+ setState({
255
+ verticalAddServiceKey: state.verticalAddServiceKey + 1
256
+ });
260
257
  });
258
+ setState({
259
+ amountSymbol: (store === null || store === void 0 || (_store$getState3 = store.getState) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.call(store)) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.global) === null || _store$getState3 === void 0 ? void 0 : _store$getState3.symbol) || '$'
260
+ }, function () {
261
+ _initStateRef.current = JSON.parse(JSON.stringify(state));
262
+ _getBoardConfig();
263
+ });
264
+ _setShopOpeningHours();
265
+ _setIntervalTime(true);
266
+ interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('booking', 'refreshBookingDetail', clearAllCart);
267
+ interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || _interaction$utils3.mountFunction('bookingTicket', 'clearAllCart', clearAllCart);
261
268
 
262
269
  // 作废预约
263
- interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || _interaction$utils3.mountFunction('booking', 'voidBooking', function (orderId) {
270
+ interaction === null || interaction === void 0 || (_interaction$utils4 = interaction.utils) === null || _interaction$utils4 === void 0 || _interaction$utils4.mountFunction('booking', 'voidBooking', function (orderId) {
264
271
  voidAppointment(orderId);
265
272
  });
266
273
  return function () {
@@ -301,11 +308,11 @@ var TicketBooking = function TicketBooking() {
301
308
 
302
309
  // 商品加购信息发生变化时,需要发送至native端
303
310
  useEffect(function () {
304
- var _state$modalState, _locales$getText, _interaction$utils5, _interaction$utils5$p;
311
+ var _state$modalState, _locales$getText, _interaction$utils6, _interaction$utils6$p;
305
312
  var cartItems = state === null || state === void 0 || (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.service) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
306
313
  if (!Array.isArray(cartItems) || cartItems.length === 0) {
307
- var _interaction$utils4, _interaction$utils4$p;
308
- interaction === null || interaction === void 0 || (_interaction$utils4 = interaction.utils) === null || _interaction$utils4 === void 0 || (_interaction$utils4$p = _interaction$utils4.postMessageToApp) === null || _interaction$utils4$p === void 0 || _interaction$utils4$p.call(_interaction$utils4, {
314
+ var _interaction$utils5, _interaction$utils5$p;
315
+ interaction === null || interaction === void 0 || (_interaction$utils5 = interaction.utils) === null || _interaction$utils5 === void 0 || (_interaction$utils5$p = _interaction$utils5.postMessageToApp) === null || _interaction$utils5$p === void 0 || _interaction$utils5$p.call(_interaction$utils5, {
309
316
  module: 'cds',
310
317
  key: 'cartUpdate',
311
318
  data: {
@@ -399,7 +406,7 @@ var TicketBooking = function TicketBooking() {
399
406
  fees: fees
400
407
  }
401
408
  });
402
- interaction === null || interaction === void 0 || (_interaction$utils5 = interaction.utils) === null || _interaction$utils5 === void 0 || (_interaction$utils5$p = _interaction$utils5.postMessageToApp) === null || _interaction$utils5$p === void 0 || _interaction$utils5$p.call(_interaction$utils5, {
409
+ interaction === null || interaction === void 0 || (_interaction$utils6 = interaction.utils) === null || _interaction$utils6 === void 0 || (_interaction$utils6$p = _interaction$utils6.postMessageToApp) === null || _interaction$utils6$p === void 0 || _interaction$utils6$p.call(_interaction$utils6, {
403
410
  module: 'cds',
404
411
  key: 'cartUpdate',
405
412
  data: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Dayjs } from 'dayjs';
3
2
  import './index.less';
4
3
  interface ITimeBarProps {
@@ -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 '../../../booking/components/voucher/index.less';
3
2
  import './index.less';
4
3
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AppointmentBooking: () => JSX.Element;
4
3
  export default AppointmentBooking;
@@ -273,7 +273,7 @@ var Footer = (props) => {
273
273
  type,
274
274
  messageShow = true
275
275
  }) => {
276
- var _a2;
276
+ var _a2, _b2, _c2, _d2, _e2;
277
277
  if ((0, import_utils2.isDayBooking)(state)) {
278
278
  const isHasDayProducts = handleDaySubmit();
279
279
  if (isHasDayProducts) return;
@@ -298,7 +298,20 @@ var Footer = (props) => {
298
298
  title: "saveBooking",
299
299
  content: [
300
300
  { key: "下单前数据", value: JSON.stringify(values) },
301
- { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") }
301
+ { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") },
302
+ {
303
+ key: "店铺id",
304
+ value: (_e2 = (_d2 = (_c2 = (_b2 = store == null ? void 0 : store.getState) == null ? void 0 : _b2.call(store)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e2.id
305
+ },
306
+ {
307
+ key: "shopApi",
308
+ value: JSON.stringify(window == null ? void 0 : window.shopApi, (key, value) => {
309
+ if (typeof value === "function") {
310
+ return "function";
311
+ }
312
+ return value;
313
+ })
314
+ }
302
315
  ]
303
316
  });
304
317
  if (addonsEdit) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  modal: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const calculateTotalPrice: (data: any) => number;
3
2
  declare const useQuotation: (state: any, dispatch: any) => {
4
3
  dom: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
244
  * @Author: WangHan
245
245
  * @Date: 2024-12-24 11:32
246
246
  */
247
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
247
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -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 '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;