@pisell/private-materials 6.11.181 → 6.11.182

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 (35) 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/booking/forms/sendModal/useSendModal.d.ts +0 -1
  8. package/es/components/checkout/PaymentModal.js +2 -1
  9. package/es/components/eftposPay/amount.d.ts +1 -1
  10. package/es/components/eftposPay/app.d.ts +1 -1
  11. package/es/components/eftposPay/device.d.ts +1 -1
  12. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +16 -0
  13. package/es/plus/pisellReservation/PisellReservation.js +113 -12
  14. package/es/plus/pisellReservation/components/bookingDetailModal/ReservationBookingDetailModal.js +2 -2
  15. package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -7
  16. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +3 -1
  17. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
  18. package/es/plus/pisellSalesManagement/index.js +1 -1
  19. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  20. package/lib/components/checkout/PaymentModal.js +2 -1
  21. package/lib/components/eftposPay/amount.d.ts +1 -1
  22. package/lib/components/eftposPay/app.d.ts +1 -1
  23. package/lib/components/eftposPay/device.d.ts +1 -1
  24. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +16 -0
  25. package/lib/plus/pisellReservation/PisellReservation.js +8 -3
  26. package/lib/plus/pisellReservation/components/bookingDetailModal/ReservationBookingDetailModal.js +2 -2
  27. package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -7
  28. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +2 -1
  29. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
  30. package/lib/plus/pisellSalesManagement/index.js +1 -1
  31. package/package.json +4 -4
  32. package/es/plus/pisellReservation/docs/booking-detail-modal-data-ui-map.html +0 -357
  33. package/es/plus/pisellReservation/docs/floor-room-card-data-ui-map.html +0 -841
  34. package/lib/plus/pisellReservation/docs/booking-detail-modal-data-ui-map.html +0 -357
  35. package/lib/plus/pisellReservation/docs/floor-room-card-data-ui-map.html +0 -841
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -1091,7 +1091,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
1091
1091
  select.forEach(function (item) {
1092
1092
  var mapCode = item.code ? WALLET_PASS_CODE_MAP[item.code] : null;
1093
1093
  if (mapCode && walletPassDetail.map[mapCode]) {
1094
- var _walletPassDetail$map, _walletPassDetail$map2, _walletPassDetail$map3, _walletPassDetail$map4;
1094
+ var _walletPassDetail$map, _walletPassDetail$map2, _walletPassDetail$map3, _walletPassDetail$map4, _walletPassDetail$map5;
1095
1095
  voucherItems.push({
1096
1096
  /** 支付金额 */
1097
1097
  amount: item.amount,
@@ -1104,6 +1104,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
1104
1104
  /** 支付类型type,跟支付列表上对应的支付方式保持一致 */
1105
1105
  type: (_walletPassDetail$map4 = walletPassDetail.map[mapCode]) === null || _walletPassDetail$map4 === void 0 ? void 0 : _walletPassDetail$map4.type,
1106
1106
  /** 代金券、充值卡、积分卡等wallet pass id */
1107
+ custom_payment_id: Number((_walletPassDetail$map5 = walletPassDetail.map[mapCode]) === null || _walletPassDetail$map5 === void 0 ? void 0 : _walletPassDetail$map5.id) || 0,
1107
1108
  voucher_id: item.voucher_id,
1108
1109
  wallet_pass_usage_unit: item.wallet_pass_usage_unit,
1109
1110
  wallet_pass_use_value: convertCurrencyAmountToWalletPassValue({
@@ -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: "print" | "page" | "success" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PosProps, RouteType } from './const';
3
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
3
+ declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
4
  action: RouteType;
5
5
  device_number: string | number;
6
6
  api: ReturnType<PosProps['getApi']>;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "print" | "page" | "success" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type TicketBookingSecondaryDisplayConfig } from './useTicketBookingSecondaryScreen';
3
+ import './index.less';
4
+ import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
5
+ import { BaseResponsiveProps } from '../../../../responsive/type';
6
+ export declare const _formatBookingDetail: (data: any, modalState: any) => any;
7
+ interface TicketBookingProps {
8
+ onPrerenderComplete?: () => void;
9
+ productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
10
+ isShowTimeBar?: boolean;
11
+ isShowFloatButtons?: boolean;
12
+ /** 副屏展示:购物车列数、是否显示客户信息等 */
13
+ secondaryScreenDisplay?: TicketBookingSecondaryDisplayConfig;
14
+ }
15
+ declare const _default: React.ForwardRefExoticComponent<TicketBookingProps & BaseResponsiveProps & React.RefAttributes<unknown>>;
16
+ export default _default;
@@ -4,9 +4,6 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableTo
4
4
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
5
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
6
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
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
- 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
- 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
7
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
11
8
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -22,6 +19,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
22
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
20
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
21
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
+ 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; }
23
+ 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); } }
24
+ 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); }); }; }
25
25
  import React, { useEffect, useMemo, useState, useCallback, useRef } from 'react';
26
26
  import dayjs from 'dayjs';
27
27
  import 'dayjs/locale/zh-cn';
@@ -67,6 +67,109 @@ import { useReservationResourceWallPersist } from "./hooks/useReservationResourc
67
67
  import { useReservationDebugLoggers } from "./hooks/useReservationDebugLoggers";
68
68
  import { ReservationHudDrawer } from "./components/ReservationHudDrawer";
69
69
 
70
+ /**
71
+ * Dumi / Story 等无低代码引擎时,`utils` 的 request 未被注入;
72
+ * 子模块仍会调用 `request.getRequest().post/get`,未 setRequest 会抛错。
73
+ * 仅在无引擎请求实例时使用占位(返回空 data),不影响真实环境中 `appHelper.utils.request` 优先注入。
74
+ */
75
+ var PREVIEW_HTTP_CLIENT = {
76
+ get: function () {
77
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
78
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
79
+ while (1) switch (_context.prev = _context.next) {
80
+ case 0:
81
+ return _context.abrupt("return", {
82
+ data: {}
83
+ });
84
+ case 1:
85
+ case "end":
86
+ return _context.stop();
87
+ }
88
+ }, _callee);
89
+ }));
90
+ function get() {
91
+ return _get.apply(this, arguments);
92
+ }
93
+ return get;
94
+ }(),
95
+ post: function () {
96
+ var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
97
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
98
+ while (1) switch (_context2.prev = _context2.next) {
99
+ case 0:
100
+ return _context2.abrupt("return", {
101
+ data: {}
102
+ });
103
+ case 1:
104
+ case "end":
105
+ return _context2.stop();
106
+ }
107
+ }, _callee2);
108
+ }));
109
+ function post() {
110
+ return _post.apply(this, arguments);
111
+ }
112
+ return post;
113
+ }(),
114
+ put: function () {
115
+ var _put = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
116
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
117
+ while (1) switch (_context3.prev = _context3.next) {
118
+ case 0:
119
+ return _context3.abrupt("return", {
120
+ data: {}
121
+ });
122
+ case 1:
123
+ case "end":
124
+ return _context3.stop();
125
+ }
126
+ }, _callee3);
127
+ }));
128
+ function put() {
129
+ return _put.apply(this, arguments);
130
+ }
131
+ return put;
132
+ }(),
133
+ remove: function () {
134
+ var _remove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
135
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
136
+ while (1) switch (_context4.prev = _context4.next) {
137
+ case 0:
138
+ return _context4.abrupt("return", {
139
+ data: {}
140
+ });
141
+ case 1:
142
+ case "end":
143
+ return _context4.stop();
144
+ }
145
+ }, _callee4);
146
+ }));
147
+ function remove() {
148
+ return _remove.apply(this, arguments);
149
+ }
150
+ return remove;
151
+ }(),
152
+ custom: function () {
153
+ var _custom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
154
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
155
+ while (1) switch (_context5.prev = _context5.next) {
156
+ case 0:
157
+ return _context5.abrupt("return", {
158
+ data: {}
159
+ });
160
+ case 1:
161
+ case "end":
162
+ return _context5.stop();
163
+ }
164
+ }, _callee5);
165
+ }));
166
+ function custom() {
167
+ return _custom.apply(this, arguments);
168
+ }
169
+ return custom;
170
+ }()
171
+ };
172
+
70
173
  /**
71
174
  * 预约看板 Core:内置 Sales 预约列表 + 时间轴 + 平面图。
72
175
  * 页面壳 {@link PisellReservationBookingPage} / {@link PisellVenueControlPage} / PisellVenueWallPage 通过 props 组合默认行为。
@@ -128,9 +231,7 @@ export var PisellReservationCore = function PisellReservationCore(props) {
128
231
 
129
232
  var engineCtx = useEngineContext();
130
233
  var r = engineCtx === null || engineCtx === void 0 || (_engineCtx$appHelper = engineCtx.appHelper) === null || _engineCtx$appHelper === void 0 || (_engineCtx$appHelper = _engineCtx$appHelper.utils) === null || _engineCtx$appHelper === void 0 ? void 0 : _engineCtx$appHelper.request;
131
- if (r) {
132
- request.setRequest(r);
133
- }
234
+ request.setRequest(r !== null && r !== void 0 ? r : PREVIEW_HTTP_CLIENT);
134
235
  var pisellos = usePisellOS();
135
236
  /** 低代码里 context 常每次给新 `pisellos` 对象,勿把 `pisellos` 放进 effect 依赖 */
136
237
  var pisellosRef = useRef(pisellos);
@@ -344,17 +445,17 @@ export var PisellReservationCore = function PisellReservationCore(props) {
344
445
  floorDayBookingData.refresh();
345
446
  },
346
447
  refreshAsync: function () {
347
- var _refreshAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
348
- return _regeneratorRuntime().wrap(function _callee$(_context) {
349
- while (1) switch (_context.prev = _context.next) {
448
+ var _refreshAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
449
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
450
+ while (1) switch (_context6.prev = _context6.next) {
350
451
  case 0:
351
- _context.next = 2;
452
+ _context6.next = 2;
352
453
  return Promise.all([resourceBoardData.refreshAsync(), gridBookingData.refreshAsync(), floorDayBookingData.refreshAsync()]);
353
454
  case 2:
354
455
  case "end":
355
- return _context.stop();
456
+ return _context6.stop();
356
457
  }
357
- }, _callee);
458
+ }, _callee6);
358
459
  }));
359
460
  function refreshAsync() {
360
461
  return _refreshAsync.apply(this, arguments);
@@ -143,7 +143,7 @@ export function ReservationBookingDetailModal(props) {
143
143
  var _engineContext$appHel3;
144
144
  stopUiClick(e);
145
145
  if (!raw) return;
146
- var _ref2 = ((_engineContext$appHel3 = engineContext.appHelper) === null || _engineContext$appHel3 === void 0 ? void 0 : _engineContext$appHel3.utils) || {},
146
+ var _ref2 = (engineContext === null || engineContext === void 0 || (_engineContext$appHel3 = engineContext.appHelper) === null || _engineContext$appHel3 === void 0 ? void 0 : _engineContext$appHel3.utils) || {},
147
147
  action = _ref2.action,
148
148
  NativePage = _ref2.NativePage;
149
149
  var orderId = resolveOrderIdForHostActions(raw);
@@ -212,7 +212,7 @@ export function ReservationBookingDetailModal(props) {
212
212
  default:
213
213
  break;
214
214
  }
215
- }, [raw, engineContext.appHelper, reservationBiz, associatedMenuListIds]);
215
+ }, [raw, engineContext === null || engineContext === void 0 ? void 0 : engineContext.appHelper, reservationBiz, associatedMenuListIds]);
216
216
  return /*#__PURE__*/React.createElement(PisellModal, {
217
217
  platform: "pc",
218
218
  open: canShow,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const getBookingStatusMap: () => Record<string, string>;
3
2
  export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
4
3
  export declare const getBookingPlatformMap: () => Record<string, string>;
@@ -21,7 +20,7 @@ export declare const getFilterButtonList: () => ({
21
20
  }[];
22
21
  minInputNumberProps?: undefined;
23
22
  maxInputNumberProps?: undefined;
24
- readonly component?: undefined;
23
+ component?: undefined;
25
24
  isSearchServer?: undefined;
26
25
  showSearch?: undefined;
27
26
  showTime?: undefined;
@@ -47,7 +46,7 @@ export declare const getFilterButtonList: () => ({
47
46
  mode?: undefined;
48
47
  maxTagCount?: undefined;
49
48
  options?: undefined;
50
- readonly component?: undefined;
49
+ component?: undefined;
51
50
  isSearchServer?: undefined;
52
51
  showSearch?: undefined;
53
52
  showTime?: undefined;
@@ -92,7 +91,7 @@ export declare const getFilterButtonList: () => ({
92
91
  options: () => Promise<any>;
93
92
  minInputNumberProps?: undefined;
94
93
  maxInputNumberProps?: undefined;
95
- readonly component?: undefined;
94
+ component?: undefined;
96
95
  isSearchServer?: undefined;
97
96
  showSearch?: undefined;
98
97
  showTime?: undefined;
@@ -112,7 +111,7 @@ export declare const getFilterButtonList: () => ({
112
111
  options?: undefined;
113
112
  minInputNumberProps?: undefined;
114
113
  maxInputNumberProps?: undefined;
115
- readonly component?: undefined;
114
+ component?: undefined;
116
115
  isSearchServer?: undefined;
117
116
  showSearch?: undefined;
118
117
  showTime?: undefined;
@@ -134,7 +133,7 @@ export declare const getFilterButtonList: () => ({
134
133
  maxTagCount?: undefined;
135
134
  minInputNumberProps?: undefined;
136
135
  maxInputNumberProps?: undefined;
137
- readonly component?: undefined;
136
+ component?: undefined;
138
137
  showTime?: undefined;
139
138
  };
140
139
  sort?: undefined;
@@ -153,7 +152,7 @@ export declare const getFilterButtonList: () => ({
153
152
  options?: undefined;
154
153
  minInputNumberProps?: undefined;
155
154
  maxInputNumberProps?: undefined;
156
- readonly component?: undefined;
155
+ component?: undefined;
157
156
  isSearchServer?: undefined;
158
157
  showSearch?: undefined;
159
158
  };
@@ -48,7 +48,9 @@ export var useBookingPerspective = function useBookingPerspective(params) {
48
48
  var bookingLabels = getBookingHeaderLabels();
49
49
  var _ref = params || {},
50
50
  relationTables = _ref.relationTables;
51
- var _relationTables = (relationTables || []).filter(function (item) {
51
+ /** API / 预览占位可能返回非数组 truthy 值(如 {}),不能用 `|| []` */
52
+ var relationTablesList = Array.isArray(relationTables) ? relationTables : [];
53
+ var _relationTables = relationTablesList.filter(function (item) {
52
54
  return ['appointment_booking', 'ticket', 'party_room', 'therapist', 'table-order', 'voucher_ticket', 'mobile_order'].includes(item.relation_type);
53
55
  });
54
56
  var uniqueTables = _relationTables.reduce(function (pre, cur) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface UseSalesGridDataParams {
3
2
  perspective: 'monitor' | 'handle';
4
3
  extParams?: {
@@ -59,7 +59,7 @@ var PisellSalesManagement = function PisellSalesManagement(props) {
59
59
  };
60
60
  }, [props.biz, params === null || params === void 0 ? void 0 : params.biz, queryBusinessCode]);
61
61
  var perspectives = usePerspectives({
62
- relationTables: _getRelationTables.data || []
62
+ relationTables: Array.isArray(_getRelationTables.data) ? _getRelationTables.data : []
63
63
  });
64
64
  var gridDataProps = useSalesGridData({
65
65
  perspective: perspective,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -777,7 +777,7 @@ var PaymentContent = (0, import_react.forwardRef)(
777
777
  if (walletPassDetail.isShow) {
778
778
  const voucherItems = [];
779
779
  select.forEach((item) => {
780
- var _a, _b, _c, _d;
780
+ var _a, _b, _c, _d, _e;
781
781
  const mapCode = item.code ? import_constants.WALLET_PASS_CODE_MAP[item.code] : null;
782
782
  if (mapCode && walletPassDetail.map[mapCode]) {
783
783
  voucherItems.push({
@@ -792,6 +792,7 @@ var PaymentContent = (0, import_react.forwardRef)(
792
792
  /** 支付类型type,跟支付列表上对应的支付方式保持一致 */
793
793
  type: (_d = walletPassDetail.map[mapCode]) == null ? void 0 : _d.type,
794
794
  /** 代金券、充值卡、积分卡等wallet pass id */
795
+ custom_payment_id: Number((_e = walletPassDetail.map[mapCode]) == null ? void 0 : _e.id) || 0,
795
796
  voucher_id: item.voucher_id,
796
797
  wallet_pass_usage_unit: item.wallet_pass_usage_unit,
797
798
  wallet_pass_use_value: convertCurrencyAmountToWalletPassValue({
@@ -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: "print" | "page" | "success" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PosProps, RouteType } from './const';
3
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
3
+ declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
4
  action: RouteType;
5
5
  device_number: string | number;
6
6
  api: ReturnType<PosProps['getApi']>;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "print" | "page" | "success" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type TicketBookingSecondaryDisplayConfig } from './useTicketBookingSecondaryScreen';
3
+ import './index.less';
4
+ import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
5
+ import { BaseResponsiveProps } from '../../../../responsive/type';
6
+ export declare const _formatBookingDetail: (data: any, modalState: any) => any;
7
+ interface TicketBookingProps {
8
+ onPrerenderComplete?: () => void;
9
+ productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
10
+ isShowTimeBar?: boolean;
11
+ isShowFloatButtons?: boolean;
12
+ /** 副屏展示:购物车列数、是否显示客户信息等 */
13
+ secondaryScreenDisplay?: TicketBookingSecondaryDisplayConfig;
14
+ }
15
+ declare const _default: React.ForwardRefExoticComponent<TicketBookingProps & BaseResponsiveProps & React.RefAttributes<unknown>>;
16
+ export default _default;
@@ -76,6 +76,13 @@ var import_useReservationHudDrawer = require("./hooks/useReservationHudDrawer");
76
76
  var import_useReservationResourceWallPersist = require("./hooks/useReservationResourceWallPersist");
77
77
  var import_useReservationDebugLoggers = require("./hooks/useReservationDebugLoggers");
78
78
  var import_ReservationHudDrawer = require("./components/ReservationHudDrawer");
79
+ var PREVIEW_HTTP_CLIENT = {
80
+ get: async () => ({ data: {} }),
81
+ post: async () => ({ data: {} }),
82
+ put: async () => ({ data: {} }),
83
+ remove: async () => ({ data: {} }),
84
+ custom: async () => ({ data: {} })
85
+ };
79
86
  var PisellReservationCore = (props) => {
80
87
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
81
88
  const {
@@ -130,9 +137,7 @@ var PisellReservationCore = (props) => {
130
137
  const resolvedFloorPlanId = floorPlanIdProp === null ? null : floorPlanIdProp === void 0 ? import_floorPlanApi.RESERVATION_DEFAULT_FLOOR_PLAN_ID : floorPlanIdProp;
131
138
  const engineCtx = (0, import_useEngineContext.default)();
132
139
  const r = (_b = (_a = engineCtx == null ? void 0 : engineCtx.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.request;
133
- if (r) {
134
- import_utils2.request.setRequest(r);
135
- }
140
+ import_utils2.request.setRequest(r ?? PREVIEW_HTTP_CLIENT);
136
141
  const pisellos = (0, import_useEngineContext.usePisellOS)();
137
142
  const pisellosRef = (0, import_react.useRef)(pisellos);
138
143
  pisellosRef.current = pisellos;
@@ -154,7 +154,7 @@ function ReservationBookingDetailModal(props) {
154
154
  var _a;
155
155
  stopUiClick(e);
156
156
  if (!raw) return;
157
- const { action, NativePage } = ((_a = engineContext.appHelper) == null ? void 0 : _a.utils) || {};
157
+ const { action, NativePage } = ((_a = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _a.utils) || {};
158
158
  const orderId = resolveOrderIdForHostActions(raw);
159
159
  switch (key) {
160
160
  case "action-edit":
@@ -217,7 +217,7 @@ function ReservationBookingDetailModal(props) {
217
217
  break;
218
218
  }
219
219
  },
220
- [raw, engineContext.appHelper, reservationBiz, associatedMenuListIds]
220
+ [raw, engineContext == null ? void 0 : engineContext.appHelper, reservationBiz, associatedMenuListIds]
221
221
  );
222
222
  return /* @__PURE__ */ import_react.default.createElement(
223
223
  import_materials.PisellModal,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const getBookingStatusMap: () => Record<string, string>;
3
2
  export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
4
3
  export declare const getBookingPlatformMap: () => Record<string, string>;
@@ -21,7 +20,7 @@ export declare const getFilterButtonList: () => ({
21
20
  }[];
22
21
  minInputNumberProps?: undefined;
23
22
  maxInputNumberProps?: undefined;
24
- readonly component?: undefined;
23
+ component?: undefined;
25
24
  isSearchServer?: undefined;
26
25
  showSearch?: undefined;
27
26
  showTime?: undefined;
@@ -47,7 +46,7 @@ export declare const getFilterButtonList: () => ({
47
46
  mode?: undefined;
48
47
  maxTagCount?: undefined;
49
48
  options?: undefined;
50
- readonly component?: undefined;
49
+ component?: undefined;
51
50
  isSearchServer?: undefined;
52
51
  showSearch?: undefined;
53
52
  showTime?: undefined;
@@ -92,7 +91,7 @@ export declare const getFilterButtonList: () => ({
92
91
  options: () => Promise<any>;
93
92
  minInputNumberProps?: undefined;
94
93
  maxInputNumberProps?: undefined;
95
- readonly component?: undefined;
94
+ component?: undefined;
96
95
  isSearchServer?: undefined;
97
96
  showSearch?: undefined;
98
97
  showTime?: undefined;
@@ -112,7 +111,7 @@ export declare const getFilterButtonList: () => ({
112
111
  options?: undefined;
113
112
  minInputNumberProps?: undefined;
114
113
  maxInputNumberProps?: undefined;
115
- readonly component?: undefined;
114
+ component?: undefined;
116
115
  isSearchServer?: undefined;
117
116
  showSearch?: undefined;
118
117
  showTime?: undefined;
@@ -134,7 +133,7 @@ export declare const getFilterButtonList: () => ({
134
133
  maxTagCount?: undefined;
135
134
  minInputNumberProps?: undefined;
136
135
  maxInputNumberProps?: undefined;
137
- readonly component?: undefined;
136
+ component?: undefined;
138
137
  showTime?: undefined;
139
138
  };
140
139
  sort?: undefined;
@@ -153,7 +152,7 @@ export declare const getFilterButtonList: () => ({
153
152
  options?: undefined;
154
153
  minInputNumberProps?: undefined;
155
154
  maxInputNumberProps?: undefined;
156
- readonly component?: undefined;
155
+ component?: undefined;
157
156
  isSearchServer?: undefined;
158
157
  showSearch?: undefined;
159
158
  };
@@ -69,7 +69,8 @@ var useBookingPerspective = (params) => {
69
69
  const BUSINESS_LABEL_MAP = (0, import_config.getBusinessLabelMap)();
70
70
  const bookingLabels = (0, import_booking.getBookingHeaderLabels)();
71
71
  const { relationTables } = params || {};
72
- const _relationTables = (relationTables || []).filter(
72
+ const relationTablesList = Array.isArray(relationTables) ? relationTables : [];
73
+ const _relationTables = relationTablesList.filter(
73
74
  (item) => [
74
75
  "appointment_booking",
75
76
  "ticket",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface UseSalesGridDataParams {
3
2
  perspective: 'monitor' | 'handle';
4
3
  extParams?: {
@@ -89,7 +89,7 @@ var PisellSalesManagement = (props) => {
89
89
  };
90
90
  }, [props.biz, params == null ? void 0 : params.biz, queryBusinessCode]);
91
91
  const perspectives = (0, import_usePerspectives.default)({
92
- relationTables: _getRelationTables.data || []
92
+ relationTables: Array.isArray(_getRelationTables.data) ? _getRelationTables.data : []
93
93
  });
94
94
  const gridDataProps = (0, import_useSalesGridData.useSalesGridData)({
95
95
  perspective,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.11.181",
3
+ "version": "6.11.182",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -67,10 +67,10 @@
67
67
  "react-infinite-scroll-component": "^6.1.0",
68
68
  "react-resizable": "^3.0.5",
69
69
  "styled-components": "^6.0.0-rc.3",
70
- "@pisell/utils": "3.0.2",
71
- "@pisell/materials": "6.11.57",
70
+ "@pisell/icon": "0.0.11",
72
71
  "@pisell/date-picker": "3.0.8",
73
- "@pisell/icon": "0.0.11"
72
+ "@pisell/materials": "6.11.57",
73
+ "@pisell/utils": "3.0.2"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": "^18.0.0",