@pisell/private-materials 6.3.11 → 6.3.13

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 (77) 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 +9 -9
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
  8. package/es/components/appointmentBooking/components/Content/index.js +1 -1
  9. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/index.js +10 -0
  12. package/es/components/booking/components/footer/index.d.ts +1 -0
  13. package/es/components/booking/components/footer/utils.js +1 -1
  14. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  15. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  16. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  17. package/es/components/booking/info/service/Lists.d.ts +1 -0
  18. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  19. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  20. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  21. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  22. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  23. package/es/components/eftposPay/amount.d.ts +1 -1
  24. package/es/components/eftposPay/device.d.ts +1 -1
  25. package/es/components/eftposPay/hooks.d.ts +1 -1
  26. package/es/components/eftposPay/store/index.d.ts +1 -1
  27. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  28. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
  29. package/es/components/eventBooking/components/progressBar/index.js +20 -0
  30. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +20 -7
  31. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  32. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +12 -2
  33. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +31 -24
  34. package/es/components/pay/toC/utils.d.ts +1 -1
  35. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  36. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  37. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  38. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  39. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  40. package/es/components/wallet/Detail/index.js +2 -2
  41. package/es/components/wallet/components/WalletCard.js +3 -2
  42. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
  43. package/lib/components/appointmentBooking/components/Content/index.js +1 -1
  44. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  45. package/lib/components/appointmentBooking/index.d.ts +0 -1
  46. package/lib/components/appointmentBooking/index.js +6 -0
  47. package/lib/components/booking/components/footer/index.d.ts +1 -0
  48. package/lib/components/booking/components/footer/utils.js +1 -1
  49. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  50. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  51. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  52. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  53. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  54. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  55. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  56. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  57. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  58. package/lib/components/eftposPay/amount.d.ts +1 -1
  59. package/lib/components/eftposPay/device.d.ts +1 -1
  60. package/lib/components/eftposPay/hooks.d.ts +1 -1
  61. package/lib/components/eftposPay/store/index.d.ts +1 -1
  62. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  63. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
  64. package/lib/components/eventBooking/components/progressBar/index.js +18 -0
  65. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +11 -7
  66. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  67. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +9 -2
  68. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +6 -2
  69. package/lib/components/pay/toC/utils.d.ts +1 -1
  70. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  71. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  72. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  73. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  74. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  75. package/lib/components/wallet/Detail/index.js +3 -3
  76. package/lib/components/wallet/components/WalletCard.js +1 -1
  77. package/package.json +1 -1
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
8
8
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
9
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
- import React, { forwardRef, useImperativeHandle, useEffect } from 'react';
10
+ import React, { forwardRef, useImperativeHandle, useEffect, useRef } from 'react';
11
11
  import { locales, isMobile } from '@pisell/utils';
12
12
  import useEngineContext from "../../../../hooks/useEngineContext";
13
13
  import { useAppointmentBookingContext } from "../../context";
@@ -18,9 +18,12 @@ import { getFormParams } from "./utils";
18
18
  import "./index.less";
19
19
  var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  var _context$appHelper;
21
+ // 用于跟踪是否已经订阅了事件,避免重复订阅
22
+ var hasSubscribedRef = useRef(false);
21
23
  var context = useEngineContext();
22
24
  var config = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.constants) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.config) || {};
23
25
  var utils = contextUtils();
26
+ var pubsub = context.appHelper.utils.pubsub;
24
27
  var _ref = useAppointmentBookingContext(),
25
28
  appointmentBooking = _ref.appointmentBooking,
26
29
  summary = _ref.summary,
@@ -252,15 +255,36 @@ var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
252
255
  return _ref4.apply(this, arguments);
253
256
  };
254
257
  }();
258
+ var handleSubmit = function handleSubmit() {
259
+ var _utils$businessUtils, _utils$businessUtils$;
260
+ // 如果用户是guest用户,下单时则拉起注册弹窗
261
+ if (utils !== null && utils !== void 0 && (_utils$businessUtils = utils.businessUtils) !== null && _utils$businessUtils !== void 0 && (_utils$businessUtils$ = _utils$businessUtils.isGuestUser) !== null && _utils$businessUtils$ !== void 0 && _utils$businessUtils$.call(_utils$businessUtils)) {
262
+ var _utils$businessUtils2, _utils$businessUtils3;
263
+ // 避免重复订阅
264
+ if (!hasSubscribedRef.current) {
265
+ pubsub.subscribe('bind.guest.user', handleNext);
266
+ hasSubscribedRef.current = true;
267
+ }
268
+ utils === null || utils === void 0 || (_utils$businessUtils2 = utils.businessUtils) === null || _utils$businessUtils2 === void 0 || (_utils$businessUtils3 = _utils$businessUtils2.openRegisterModal) === null || _utils$businessUtils3 === void 0 || _utils$businessUtils3.call(_utils$businessUtils2, true);
269
+ return;
270
+ }
271
+ handleNext();
272
+ };
273
+ useEffect(function () {
274
+ return function () {
275
+ pubsub.unsubscribe('bind.guest.user', handleNext);
276
+ hasSubscribedRef.current = false;
277
+ };
278
+ }, []);
255
279
  useImperativeHandle(ref, function () {
256
280
  return {
257
- next: handleNext
281
+ next: handleSubmit
258
282
  };
259
283
  });
260
284
  return /*#__PURE__*/React.createElement("div", {
261
285
  className: "appointment-confirm-information-wrap"
262
286
  }, isMobile() ? /*#__PURE__*/React.createElement(CartItem, {
263
- onNext: handleNext
287
+ onNext: handleSubmit
264
288
  }) : /*#__PURE__*/React.createElement("div", {
265
289
  className: "appointment-confirm-information-content"
266
290
  }, /*#__PURE__*/React.createElement("div", {
@@ -124,7 +124,7 @@ var Layout = function Layout() {
124
124
  }();
125
125
  pubsub.subscribe('pisell1.login.success', handleLoginSuccess);
126
126
  return function () {
127
- pubsub.unsubscribe('pisell1.login.success');
127
+ pubsub.unsubscribe('pisell1.login.success', handleLoginSuccess);
128
128
  };
129
129
  }, []);
130
130
  useEffect(function () {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DepositModal: (props: any) => JSX.Element;
4
3
  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;
@@ -24,6 +24,16 @@ var AppointmentBooking = function AppointmentBooking() {
24
24
  if (!data.length) {
25
25
  var currentUser = formatCurrentUser(utils);
26
26
  appointmentBooking.addAccounts([currentUser]);
27
+ } else if (data.length >= 1) {
28
+ var meAccount = data === null || data === void 0 ? void 0 : data.find(function (d) {
29
+ return !(d !== null && d !== void 0 && d.isGuest);
30
+ });
31
+ // 如果 length >= 1 找到非 guest 账号,检测这个账号是否跟 localStorage 里已登录的账号 id 一致
32
+ // 如果不一致的话,则setLoginAccount ls 里的账号
33
+ var _currentUser = formatCurrentUser(utils);
34
+ if (_currentUser && meAccount.id !== _currentUser.id) {
35
+ appointmentBooking.setLoginAccount(meAccount.id, _currentUser);
36
+ }
27
37
  }
28
38
  });
29
39
  }, []);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -443,7 +443,7 @@ var formatBookings = function formatBookings(data, values) {
443
443
  if (isEvent) {
444
444
  list = list.filter(function (d) {
445
445
  var _d$_extend;
446
- return (_d$_extend = d._extend) === null || _d$_extend === void 0 ? void 0 : _d$_extend.holder_id;
446
+ return ((_d$_extend = d._extend) === null || _d$_extend === void 0 ? void 0 : _d$_extend.holder_id) && !isNormalProductByDurationSchedule(d);
447
447
  });
448
448
  }
449
449
  if (!isDay && !isEvent) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const calculateTotalPrice: (data: any) => number;
2
3
  declare const useQuotation: (state: any, dispatch: any) => {
3
4
  dom: JSX.Element;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -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;
@@ -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" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "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" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -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" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
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" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | 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 ContinueButton: () => JSX.Element;
4
3
  export default ContinueButton;
@@ -13,7 +13,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import React, { useMemo, useState } from 'react';
16
+ import React, { useEffect, useMemo, useState, useRef } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { Button, PisellToast } from '@pisell/materials';
19
19
  import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer, useSummary } from "../../../../../Sales";
@@ -26,7 +26,9 @@ import useEngineContext from "../../../../../../hooks/useEngineContext";
26
26
  import "./index.less";
27
27
  import { Toast } from "../../../../../appointmentBooking/utils";
28
28
  var ContinueButton = function ContinueButton() {
29
- var _context$appHelper, _cartData$cartItems;
29
+ var _context$appHelper, _context$appHelper2, _context$appHelper3, _cartData$cartItems;
30
+ // 用于跟踪是否已经订阅了事件,避免重复订阅
31
+ var hasSubscribedRef = useRef(false);
30
32
  var _useSales = useSales(),
31
33
  data = _useSales.data;
32
34
  var _useHolder = useHolder(),
@@ -71,7 +73,10 @@ var ContinueButton = function ContinueButton() {
71
73
  setData = _useSales2.setData,
72
74
  removeSessionStorage = _useSales2.removeSessionStorage;
73
75
  var context = useEngineContext();
74
- var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
76
+ var config = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.constants) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.config) || {};
77
+ var utils = (context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {};
78
+ var pubsub = context.appHelper.utils.pubsub;
79
+ var _ref = ((_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.utils) || {},
75
80
  store = _ref.store,
76
81
  action = _ref.action,
77
82
  getStore = _ref.getStore;
@@ -95,7 +100,7 @@ var ContinueButton = function ContinueButton() {
95
100
  data: params,
96
101
  callback: function () {
97
102
  var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
98
- var _context$appHelper2;
103
+ var _context$appHelper4;
99
104
  var value, result, _result$err;
100
105
  return _regeneratorRuntime().wrap(function _callee$(_context) {
101
106
  while (1) switch (_context.prev = _context.next) {
@@ -108,7 +113,7 @@ var ContinueButton = function ContinueButton() {
108
113
  case 2:
109
114
  value = formatValues({
110
115
  state: data,
111
- platform: context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.constants) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.platform,
116
+ platform: context === null || context === void 0 || (_context$appHelper4 = context.appHelper) === null || _context$appHelper4 === void 0 || (_context$appHelper4 = _context$appHelper4.constants) === null || _context$appHelper4 === void 0 ? void 0 : _context$appHelper4.platform,
112
117
  excludeDisabled: false,
113
118
  extra: {
114
119
  relation_forms: e
@@ -395,7 +400,7 @@ var ContinueButton = function ContinueButton() {
395
400
  */
396
401
  var handleContinue = /*#__PURE__*/function () {
397
402
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
398
- var _context$appHelper3, _deposit$protocols, value, checkRes, emptyHolders;
403
+ var _context$appHelper5, _deposit$protocols, value, checkRes, emptyHolders;
399
404
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
400
405
  while (1) switch (_context6.prev = _context6.next) {
401
406
  case 0:
@@ -405,7 +410,7 @@ var ContinueButton = function ContinueButton() {
405
410
  }
406
411
  value = formatValues({
407
412
  state: data,
408
- platform: context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.constants) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.platform
413
+ platform: context === null || context === void 0 || (_context$appHelper5 = context.appHelper) === null || _context$appHelper5 === void 0 || (_context$appHelper5 = _context$appHelper5.constants) === null || _context$appHelper5 === void 0 ? void 0 : _context$appHelper5.platform
409
414
  }); // 如果未同意定金政策,则提示
410
415
  if (!(deposit !== null && deposit !== void 0 && deposit.hasDeposit && (deposit === null || deposit === void 0 || (_deposit$protocols = deposit.protocols) === null || _deposit$protocols === void 0 ? void 0 : _deposit$protocols.length) > 0 && !isAgreeDepositPolicy)) {
411
416
  _context6.next = 5;
@@ -481,6 +486,27 @@ var ContinueButton = function ContinueButton() {
481
486
  return _ref7.apply(this, arguments);
482
487
  };
483
488
  }();
489
+ var handleSubmit = function handleSubmit() {
490
+ var _utils$businessUtils, _utils$businessUtils$;
491
+ // 如果用户是guest用户,下单时则拉起注册弹窗
492
+ if (utils !== null && utils !== void 0 && (_utils$businessUtils = utils.businessUtils) !== null && _utils$businessUtils !== void 0 && (_utils$businessUtils$ = _utils$businessUtils.isGuestUser) !== null && _utils$businessUtils$ !== void 0 && _utils$businessUtils$.call(_utils$businessUtils)) {
493
+ var _utils$businessUtils2, _utils$businessUtils3;
494
+ // 避免重复订阅
495
+ if (!hasSubscribedRef.current) {
496
+ pubsub.subscribe('bind.guest.user', handleContinue);
497
+ hasSubscribedRef.current = true;
498
+ }
499
+ utils === null || utils === void 0 || (_utils$businessUtils2 = utils.businessUtils) === null || _utils$businessUtils2 === void 0 || (_utils$businessUtils3 = _utils$businessUtils2.openRegisterModal) === null || _utils$businessUtils3 === void 0 || _utils$businessUtils3.call(_utils$businessUtils2, true);
500
+ return;
501
+ }
502
+ handleContinue();
503
+ };
504
+ useEffect(function () {
505
+ return function () {
506
+ pubsub.unsubscribe('bind.guest.user', handleContinue);
507
+ hasSubscribedRef.current = false;
508
+ };
509
+ }, []);
484
510
 
485
511
  /**
486
512
  * @title: 确认按钮文案
@@ -515,7 +541,7 @@ var ContinueButton = function ContinueButton() {
515
541
  size: "large",
516
542
  type: "primary",
517
543
  onClick: function onClick() {
518
- return handleContinue();
544
+ return isLastStep ? handleSubmit() : handleContinue();
519
545
  },
520
546
  loading: confirmLoading
521
547
  }, continueText), /*#__PURE__*/React.createElement(OrderProductModal, {
@@ -61,6 +61,26 @@ var ProgressBar = function ProgressBar(_ref) {
61
61
  var handleOk = function handleOk() {
62
62
  var _interaction$utils, _interaction$utils$is;
63
63
  if (interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils)) {
64
+ var url = window.location.href;
65
+
66
+ // 如果 url中包含 isByTabbar 删除url中的cacheId 并刷新页面
67
+ if (url.includes('isByTabbar')) {
68
+ removeSessionStorage === null || removeSessionStorage === void 0 || removeSessionStorage();
69
+ var urlParams = new URLSearchParams(window.location.search);
70
+ urlParams.delete('cacheId');
71
+ setOpen(false);
72
+ interaction.utils.postMessageToApp({
73
+ module: 'global',
74
+ key: 'openNative',
75
+ data: {
76
+ link: {
77
+ page: "home"
78
+ }
79
+ }
80
+ });
81
+ window.location.href = window.location.pathname + '?' + urlParams.toString();
82
+ return;
83
+ }
64
84
  interaction.utils.postMessageToApp({
65
85
  module: 'global',
66
86
  key: 'paymentResultAction',
@@ -15,7 +15,7 @@ import ThreedsLoading from "../MWCreditCard/TDSPay/ThreedsLoading";
15
15
  import { Context } from "../../model";
16
16
  import { getPayGroupParamsFromStorage } from "../../payGroup";
17
17
  import useEngineContext from "../../../../../hooks/useEngineContext";
18
- import { formatFranchiseeRoute } from "../../utils";
18
+ import { clientPayment, formatFranchiseeRoute } from "../../utils";
19
19
  /**
20
20
  * @title: 谷歌支付
21
21
  * @description:
@@ -26,7 +26,7 @@ import { formatFranchiseeRoute } from "../../utils";
26
26
  * @Date: 2024-08-16 11:01
27
27
  */
28
28
  var GooglePay = function GooglePay(props, ref) {
29
- var _context$appHelper;
29
+ var _context$appHelper, _context$appHelper2;
30
30
  var _useContext = useContext(Context),
31
31
  state = _useContext.state;
32
32
  var _useState = useState(false),
@@ -36,6 +36,8 @@ var GooglePay = function GooglePay(props, ref) {
36
36
  var context = useEngineContext();
37
37
  var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.constants) || {},
38
38
  config = _ref.config;
39
+ var _context$appHelper$ut = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils,
40
+ interaction = _context$appHelper$ut.interaction;
39
41
 
40
42
  /**
41
43
  * @title: 初始化
@@ -47,23 +49,34 @@ var GooglePay = function GooglePay(props, ref) {
47
49
  */
48
50
  var init = /*#__PURE__*/function () {
49
51
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
50
- var _utils$getStore;
52
+ var _utils$getStore, _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
51
53
  var payGroup, utils, dvaStore, values, _dvaStore$core, _dvaStore$core2, _state$payGroup, locale, shopId, currentURL, linkElement, shop_domain, _href;
52
54
  return _regeneratorRuntime().wrap(function _callee$(_context) {
53
55
  while (1) switch (_context.prev = _context.next) {
54
56
  case 0:
55
57
  payGroup = _ref2.payGroup;
56
- setOpen(true);
57
58
  utils = context.appHelper.utils || {};
58
59
  dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState(); // 获取交易组
59
60
  values = getPayGroupParamsFromStorage(payGroup.order_id);
61
+ if (!(interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils) && (interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAndroid_ios) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2)) === 'android')) {
62
+ _context.next = 6;
63
+ break;
64
+ }
65
+ return _context.abrupt("return", clientPayment({
66
+ order_id: payGroup.order_id,
67
+ type: 'google_pay',
68
+ values: values,
69
+ interaction: interaction
70
+ }));
71
+ case 6:
72
+ setOpen(true);
60
73
  if (values) {
61
- _context.next = 8;
74
+ _context.next = 10;
62
75
  break;
63
76
  }
64
77
  setOpen(false);
65
78
  return _context.abrupt("return");
66
- case 8:
79
+ case 10:
67
80
  try {
68
81
  locale = ((_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en';
69
82
  shopId = (_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.shop) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.id;
@@ -78,7 +91,7 @@ var GooglePay = function GooglePay(props, ref) {
78
91
  } catch (err) {
79
92
  setOpen(false);
80
93
  }
81
- case 9:
94
+ case 11:
82
95
  case "end":
83
96
  return _context.stop();
84
97
  }
@@ -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;
@@ -20,7 +20,10 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  onChange = props.onChange,
21
21
  propsData = props.data,
22
22
  value = props.value,
23
- walletSetting = props.walletSetting;
23
+ walletSetting = props.walletSetting,
24
+ onLoadingChange = props.onLoadingChange,
25
+ propsLoading = props.loading,
26
+ onChangeDebounce = props.onChangeDebounce;
24
27
  var _useState = useState(propsData || []),
25
28
  _useState2 = _slicedToArray(_useState, 2),
26
29
  data = _useState2[0],
@@ -34,6 +37,9 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
34
37
  setData(propsData);
35
38
  }
36
39
  }, [propsData]);
40
+ useEffect(function () {
41
+ setLoading(!!propsLoading);
42
+ }, [propsLoading]);
37
43
  var getList = /*#__PURE__*/function () {
38
44
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, formatList) {
39
45
  var list;
@@ -84,6 +90,9 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
84
90
  init: init
85
91
  };
86
92
  });
93
+ useEffect(function () {
94
+ onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(loading);
95
+ }, [loading]);
87
96
 
88
97
  /**
89
98
  * 拆分出可用的和不可用的列表
@@ -131,7 +140,8 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
131
140
  value: value,
132
141
  onChange: handleChange,
133
142
  showEmpty: data.length === 0,
134
- empty: empty
143
+ empty: empty,
144
+ onChangeDebounce: onChangeDebounce
135
145
  }), !!disabledList.length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
136
146
  className: "pisell-walletPass-list-disabled"
137
147
  }, locales.getText('tocPay.text.walletPassDisabled')), /*#__PURE__*/React.createElement(PisellCardList, {
@@ -42,41 +42,45 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
42
42
  setCurrentWalletPass = _useState2[1];
43
43
  var _useState3 = useState(false),
44
44
  _useState4 = _slicedToArray(_useState3, 2),
45
- open = _useState4[0],
46
- setOpen = _useState4[1];
47
-
48
- /** 搜索 modal */
45
+ loading = _useState4[0],
46
+ setLoading = _useState4[1];
49
47
  var _useState5 = useState(false),
50
48
  _useState6 = _slicedToArray(_useState5, 2),
51
- searchOpen = _useState6[0],
52
- setSearchOpen = _useState6[1];
49
+ open = _useState6[0],
50
+ setOpen = _useState6[1];
53
51
 
54
- /** 搜索后添加的walletPass */
55
- var _useState7 = useState([]),
52
+ /** 搜索 modal */
53
+ var _useState7 = useState(false),
56
54
  _useState8 = _slicedToArray(_useState7, 2),
57
- addList = _useState8[0],
58
- setAddList = _useState8[1];
55
+ searchOpen = _useState8[0],
56
+ setSearchOpen = _useState8[1];
59
57
 
60
- /** 当前order信息 */
61
- var _useState9 = useState(null),
58
+ /** 搜索后添加的walletPass */
59
+ var _useState9 = useState([]),
62
60
  _useState10 = _slicedToArray(_useState9, 2),
63
- order = _useState10[0],
64
- setOrder = _useState10[1];
61
+ addList = _useState10[0],
62
+ setAddList = _useState10[1];
65
63
 
66
- /** 当前搜索modal内list数据 */
67
- var _useState11 = useState([]),
64
+ /** 当前order信息 */
65
+ var _useState11 = useState(null),
68
66
  _useState12 = _slicedToArray(_useState11, 2),
69
- searchData = _useState12[0],
70
- setSearchData = _useState12[1];
67
+ order = _useState12[0],
68
+ setOrder = _useState12[1];
69
+
70
+ /** 当前搜索modal内list数据 */
71
+ var _useState13 = useState([]),
72
+ _useState14 = _slicedToArray(_useState13, 2),
73
+ searchData = _useState14[0],
74
+ setSearchData = _useState14[1];
71
75
 
72
76
  /** 当前搜索modal内选中数据 */
73
- var _useState13 = useState({
77
+ var _useState15 = useState({
74
78
  ids: [],
75
79
  details: []
76
80
  }),
77
- _useState14 = _slicedToArray(_useState13, 2),
78
- searchSelectData = _useState14[0],
79
- setSearchSelectData = _useState14[1];
81
+ _useState16 = _slicedToArray(_useState15, 2),
82
+ searchSelectData = _useState16[0],
83
+ setSearchSelectData = _useState16[1];
80
84
 
81
85
  /** 是否默认选中 搜索时默认选中 列表select变更更新列表时不默认选中 */
82
86
  var isAutoSelect = useRef(false);
@@ -361,13 +365,16 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
361
365
  data: otherCustomerWalletPassList,
362
366
  title: locales.getText('tocPay.text.couponCodesAdded'),
363
367
  onChange: handleOtherChange,
364
- value: selectValue
368
+ value: selectValue,
369
+ loading: loading,
370
+ onChangeDebounce: true
365
371
  }), /*#__PURE__*/React.createElement(List, {
366
372
  walletSetting: walletSetting,
367
373
  title: walletSetting.name,
368
374
  onChange: handleCurrentChange,
369
375
  ref: listRef,
370
- value: selectValue
376
+ value: selectValue,
377
+ onLoadingChange: setLoading
371
378
  }))), /*#__PURE__*/React.createElement(PisellModal, {
372
379
  title: /*#__PURE__*/React.createElement("div", null, locales.getText('tocPay.text.searchResult')),
373
380
  mobileModalHeight: '90%',
@@ -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;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TabProduct: (props: any) => JSX.Element;
2
3
  export default TabProduct;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type BoolConfigVal = 0 | 1;
3
4
  export interface ProductCardConfig {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductProps } from '../../type';
2
3
  declare const Product: (props: ProductProps) => JSX.Element;
3
4
  export default Product;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
4
  declare const TicketBooking: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Dayjs } from 'dayjs';
2
3
  import './index.less';
3
4
  interface ITimeBarProps {