@pisell/private-materials 6.3.177 → 6.3.178

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 (191) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +9 -9
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/index.js +91 -24
  11. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +24 -20
  12. package/es/components/appointmentBooking/components/Header/index.js +4 -24
  13. package/es/components/appointmentBooking/components/Voucher/index.js +10 -0
  14. package/es/components/appointmentBooking/hooks.d.ts +1 -17
  15. package/es/components/appointmentBooking/hooks.js +54 -128
  16. package/es/components/appointmentBooking/utils.d.ts +1 -0
  17. package/es/components/appointmentBooking/utils.js +54 -33
  18. package/es/components/booking/addons/model.d.ts +1 -10
  19. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  20. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  21. package/es/components/booking/deposit/index.d.ts +1 -0
  22. package/es/components/booking/forms/model.d.ts +1 -10
  23. package/es/components/booking/forms/single/index.d.ts +1 -0
  24. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  25. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  26. package/es/components/booking/info/date/index.d.ts +1 -0
  27. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  28. package/es/components/booking/info/index.d.ts +1 -0
  29. package/es/components/booking/info/model.d.ts +1 -10
  30. package/es/components/booking/info/notes/index.d.ts +1 -0
  31. package/es/components/booking/info/service/Lists.d.ts +1 -0
  32. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  33. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  34. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  35. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  36. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  37. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  38. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  39. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  41. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  42. package/es/components/booking/model.d.ts +1 -9
  43. package/es/components/booking/notes/model.d.ts +1 -10
  44. package/es/components/booking/payments/model.d.ts +1 -10
  45. package/es/components/booking/utils.d.ts +2 -2
  46. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1 -2
  47. package/es/components/eftposPay/amount.d.ts +1 -0
  48. package/es/components/eftposPay/app.d.ts +1 -0
  49. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  50. package/es/components/eftposPay/device.js +4 -11
  51. package/es/components/eftposPay/hooks.d.ts +1 -1
  52. package/es/components/eftposPay/index.d.ts +1 -0
  53. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  54. package/es/components/eftposPay/pay.d.ts +1 -0
  55. package/es/components/eftposPay/store/index.d.ts +1 -1
  56. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  60. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  61. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  62. package/es/components/eventBooking/components/progressBar/index.d.ts +1 -8
  63. package/es/components/eventBooking/components/progressBar/index.js +10 -30
  64. package/es/components/eventBooking/index.d.ts +1 -0
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  66. package/es/components/pay/toC/model.d.ts +1 -9
  67. package/es/components/pisellCashCounting/hooks.d.ts +1 -0
  68. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  69. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  70. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  71. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  72. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  73. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  74. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  75. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  76. package/es/components/productExtension/index.d.ts +1 -0
  77. package/es/components/ruleSetting/index.d.ts +1 -0
  78. package/es/components/scanOrder/components/Check/index.js +46 -187
  79. package/es/components/scanOrder/components/Check/index.less +0 -39
  80. package/es/components/scanOrder/components/Content/index.js +72 -189
  81. package/es/components/scanOrder/components/Menu/index.js +5 -11
  82. package/es/components/scanOrder/hooks.js +0 -7
  83. package/es/components/scanOrder/locales.d.ts +0 -75
  84. package/es/components/scanOrder/locales.js +0 -75
  85. package/es/components/schedules/model.d.ts +1 -9
  86. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  87. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  88. package/es/components/shoppingCart/index.d.ts +1 -0
  89. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  90. package/es/components/venueBooking/components/Cart/index.js +159 -46
  91. package/es/components/venueBooking/components/Voucher/index.js +1 -6
  92. package/es/components/venueBooking/context.js +15 -2
  93. package/es/components/venueBooking/locales.d.ts +5 -0
  94. package/es/components/venueBooking/locales.js +10 -5
  95. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  96. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  97. package/es/pro/Login2.0/locales.js +1 -1
  98. package/es/utils/buildCartHolderParams.d.ts +92 -0
  99. package/es/utils/buildCartHolderParams.js +191 -0
  100. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  101. package/lib/components/appointmentBooking/components/Cart/Item/index.js +71 -9
  102. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +6 -2
  103. package/lib/components/appointmentBooking/components/Header/index.js +1 -13
  104. package/lib/components/appointmentBooking/components/Voucher/index.js +10 -0
  105. package/lib/components/appointmentBooking/hooks.d.ts +1 -17
  106. package/lib/components/appointmentBooking/hooks.js +16 -91
  107. package/lib/components/appointmentBooking/utils.d.ts +1 -0
  108. package/lib/components/appointmentBooking/utils.js +24 -13
  109. package/lib/components/booking/addons/model.d.ts +1 -10
  110. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  111. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  112. package/lib/components/booking/deposit/index.d.ts +1 -0
  113. package/lib/components/booking/forms/model.d.ts +1 -10
  114. package/lib/components/booking/forms/single/index.d.ts +1 -0
  115. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  116. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  117. package/lib/components/booking/info/date/index.d.ts +1 -0
  118. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  119. package/lib/components/booking/info/index.d.ts +1 -0
  120. package/lib/components/booking/info/model.d.ts +1 -10
  121. package/lib/components/booking/info/notes/index.d.ts +1 -0
  122. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  123. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  124. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  125. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  126. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  127. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  128. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  129. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  130. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  131. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  132. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  133. package/lib/components/booking/model.d.ts +1 -9
  134. package/lib/components/booking/notes/model.d.ts +1 -10
  135. package/lib/components/booking/payments/model.d.ts +1 -10
  136. package/lib/components/booking/utils.d.ts +2 -2
  137. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +1 -2
  138. package/lib/components/eftposPay/amount.d.ts +1 -0
  139. package/lib/components/eftposPay/app.d.ts +1 -0
  140. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  141. package/lib/components/eftposPay/device.js +4 -6
  142. package/lib/components/eftposPay/hooks.d.ts +1 -1
  143. package/lib/components/eftposPay/index.d.ts +1 -0
  144. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  145. package/lib/components/eftposPay/pay.d.ts +1 -0
  146. package/lib/components/eftposPay/store/index.d.ts +1 -1
  147. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  148. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  149. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  150. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  151. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  152. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  153. package/lib/components/eventBooking/components/progressBar/index.d.ts +1 -8
  154. package/lib/components/eventBooking/components/progressBar/index.js +9 -29
  155. package/lib/components/eventBooking/index.d.ts +1 -0
  156. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  157. package/lib/components/pay/toC/model.d.ts +1 -9
  158. package/lib/components/pisellCashCounting/hooks.d.ts +1 -0
  159. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  160. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  161. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  162. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  163. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  164. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  165. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  166. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  167. package/lib/components/productExtension/index.d.ts +1 -0
  168. package/lib/components/ruleSetting/index.d.ts +1 -0
  169. package/lib/components/scanOrder/components/Check/index.js +3 -116
  170. package/lib/components/scanOrder/components/Check/index.less +0 -39
  171. package/lib/components/scanOrder/components/Content/index.js +25 -106
  172. package/lib/components/scanOrder/components/Menu/index.js +0 -2
  173. package/lib/components/scanOrder/hooks.js +0 -7
  174. package/lib/components/scanOrder/locales.d.ts +0 -75
  175. package/lib/components/scanOrder/locales.js +0 -75
  176. package/lib/components/schedules/model.d.ts +1 -9
  177. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  178. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  179. package/lib/components/shoppingCart/index.d.ts +1 -0
  180. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  181. package/lib/components/venueBooking/components/Cart/index.js +92 -14
  182. package/lib/components/venueBooking/components/Voucher/index.js +1 -5
  183. package/lib/components/venueBooking/context.js +12 -2
  184. package/lib/components/venueBooking/locales.d.ts +5 -0
  185. package/lib/components/venueBooking/locales.js +10 -5
  186. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  187. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  188. package/lib/pro/Login2.0/locales.js +1 -1
  189. package/lib/utils/buildCartHolderParams.d.ts +92 -0
  190. package/lib/utils/buildCartHolderParams.js +167 -0
  191. package/package.json +1 -1
@@ -13,11 +13,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
13
13
  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; }
14
14
  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); } }
15
15
  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); }); }; }
16
- import { useState, useEffect, useMemo, useRef, useCallback } from 'react';
17
- import { locales, isMobile } from '@pisell/utils';
16
+ import { useState, useEffect, useMemo } from 'react';
17
+ import { locales } from '@pisell/utils';
18
18
  import { usePisellOS } from "../../hooks/useEngineContext";
19
19
  import useEngineContext from "../../hooks/useEngineContext";
20
- import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
20
+ import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, Toast } from "./utils";
21
21
  import { useAppointmentBookingContext } from "./context";
22
22
  import { scrollToFirstErrorCard } from "./components/Resource/utils";
23
23
  import { nextStepLog } from "./utils";
@@ -316,39 +316,47 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
316
316
  // 监测holder数据
317
317
  var checkHolder = /*#__PURE__*/function () {
318
318
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
319
- var cartLists, newCarts, appoimentCarts, _checkAndGoNext, _hasError;
319
+ var isLoginTrigger,
320
+ cartLists,
321
+ newCarts,
322
+ appoimentCarts,
323
+ _checkAndGoNext,
324
+ _hasError,
325
+ isEnableSkuHolderRule,
326
+ _args2 = arguments;
320
327
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
321
328
  while (1) switch (_context2.prev = _context2.next) {
322
329
  case 0:
323
- _context2.prev = 0;
330
+ isLoginTrigger = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : false;
331
+ _context2.prev = 1;
324
332
  setLoading(false);
325
333
 
326
334
  // 零售订单不需要验证holder
327
335
  if (!(isRetailTemplate || appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts())) {
328
- _context2.next = 4;
336
+ _context2.next = 5;
329
337
  break;
330
338
  }
331
339
  return _context2.abrupt("return", appointmentBooking.next());
332
- case 4:
340
+ case 5:
333
341
  cartLists = carts || [];
334
342
  if (carts !== null && carts !== void 0 && carts.length) {
335
- _context2.next = 12;
343
+ _context2.next = 13;
336
344
  break;
337
345
  }
338
- _context2.next = 8;
346
+ _context2.next = 9;
339
347
  return appointmentBooking.getCart();
340
- case 8:
348
+ case 9:
341
349
  newCarts = _context2.sent;
342
350
  cartLists = newCarts || [];
343
- _context2.next = 13;
351
+ _context2.next = 14;
344
352
  break;
345
- case 12:
346
- cartLists = carts || [];
347
353
  case 13:
354
+ cartLists = carts || [];
355
+ case 14:
348
356
  appoimentCarts = cartLists.filter(function (n) {
349
357
  return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
350
358
  });
351
- _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts), _hasError = _checkAndGoNext.hasError;
359
+ _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts), _hasError = _checkAndGoNext.hasError, isEnableSkuHolderRule = _checkAndGoNext.isEnableSkuHolderRule;
352
360
  setIsErrorHolder(_hasError);
353
361
  if (isLog) {
354
362
  nextStepLog(utils, '开始检测holder数据', [{
@@ -360,13 +368,19 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
360
368
  }]);
361
369
  }
362
370
  if (!_hasError) {
363
- _context2.next = 19;
371
+ _context2.next = 20;
372
+ break;
373
+ }
374
+ return _context2.abrupt("return");
375
+ case 20:
376
+ if (!(isLoginTrigger && isEnableSkuHolderRule)) {
377
+ _context2.next = 22;
364
378
  break;
365
379
  }
366
380
  return _context2.abrupt("return");
367
- case 19:
381
+ case 22:
368
382
  if (!(renderItem !== null && renderItem !== void 0 && renderItem.policy_id)) {
369
- _context2.next = 23;
383
+ _context2.next = 26;
370
384
  break;
371
385
  }
372
386
  openPolicy({
@@ -374,23 +388,23 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
374
388
  }, function () {
375
389
  return appointmentBooking.next();
376
390
  });
377
- _context2.next = 24;
391
+ _context2.next = 27;
378
392
  break;
379
- case 23:
393
+ case 26:
380
394
  return _context2.abrupt("return", appointmentBooking.next());
381
- case 24:
382
- _context2.next = 30;
395
+ case 27:
396
+ _context2.next = 33;
383
397
  break;
384
- case 26:
385
- _context2.prev = 26;
386
- _context2.t0 = _context2["catch"](0);
398
+ case 29:
399
+ _context2.prev = 29;
400
+ _context2.t0 = _context2["catch"](1);
387
401
  setLoading(false);
388
402
  logNextStepAsyncError(_context2.t0);
389
- case 30:
403
+ case 33:
390
404
  case "end":
391
405
  return _context2.stop();
392
406
  }
393
- }, _callee2, null, [[0, 26]]);
407
+ }, _callee2, null, [[1, 29]]);
394
408
  }));
395
409
  return function checkHolder() {
396
410
  return _ref4.apply(this, arguments);
@@ -430,7 +444,14 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
430
444
  }]);
431
445
  }
432
446
  if (res === 'success') {
433
- checkHolder();
447
+ // 登录之后刷新 holder 数据
448
+ if (isFormSubject && !isRetailTemplate && !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts())) {
449
+ var customer = getCustomer(utils);
450
+ appointmentBooking === null || appointmentBooking === void 0 || appointmentBooking.refreshAllHolderFormRecords({
451
+ customer_id: customer === null || customer === void 0 ? void 0 : customer.id
452
+ });
453
+ }
454
+ checkHolder(true);
434
455
  }
435
456
 
436
457
  // 关闭登录弹窗
@@ -638,13 +659,13 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
638
659
  newCarts = carts === null || carts === void 0 ? void 0 : carts.map(function (item) {
639
660
  var _item$duration;
640
661
  return _objectSpread(_objectSpread({}, item), {}, {
641
- addHolderButtonText: utils === null || utils === void 0 ? void 0 : utils.translation(bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.form_name),
662
+ // addHolderButtonText: utils?.translation(formMap?.[formId]?.form?.form?.setting?.title),
642
663
  format: ['HH:mm', 'HH:mm'],
643
664
  show_time: true,
644
665
  duration_type: (item === null || item === void 0 || (_item$duration = item.duration) === null || _item$duration === void 0 ? void 0 : _item$duration.type) || 'minutes',
645
666
  locale: locale,
646
667
  symbol: symbol,
647
- holders: formatHolder(accountLists),
668
+ // holders: formatHolder(accountLists),
648
669
  allowClearHolder: true,
649
670
  allowClearResource: true,
650
671
  isMultipleResource: true
@@ -700,12 +721,12 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
700
721
  var isLogin = !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token));
701
722
  var openLoginModal = function openLoginModal(params) {
702
723
  var _ref17 = params || {},
703
- callback = _ref17.callback;
724
+ callback = _ref17.callback,
725
+ _ref17$data = _ref17.data,
726
+ data = _ref17$data === void 0 ? {} : _ref17$data;
704
727
  utils.action({
705
728
  type: 'pisell1.login',
706
- data: {
707
- // type: 'plugin'
708
- },
729
+ data: _objectSpread({}, data),
709
730
  callback: callback
710
731
  });
711
732
  };
@@ -1057,99 +1078,4 @@ export var useAppointmentBookingSetting = function useAppointmentBookingSetting(
1057
1078
  formName: formName,
1058
1079
  bookingSetting: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o7 = appointmentBooking.otherParams) === null || _appointmentBooking$o7 === void 0 ? void 0 : _appointmentBooking$o7.bookingSetting) || {}
1059
1080
  };
1060
- };
1061
- var APPOINTMENT_BOOKING_BACK_TRAP_KEY = '__pisellAppointmentBookingBackTrap';
1062
- var pushAppointmentBookingBackTrap = function pushAppointmentBookingBackTrap() {
1063
- window.history.pushState(_defineProperty({}, APPOINTMENT_BOOKING_BACK_TRAP_KEY, true), '', window.location.href);
1064
- };
1065
- export var useInterceptBrowserBack = function useInterceptBrowserBack(_ref31) {
1066
- var _ref31$enabled = _ref31.enabled,
1067
- enabled = _ref31$enabled === void 0 ? true : _ref31$enabled,
1068
- stepIndex = _ref31.stepIndex,
1069
- canGoBack = _ref31.canGoBack,
1070
- onBack = _ref31.onBack,
1071
- onExit = _ref31.onExit;
1072
- var optionsRef = useRef({
1073
- stepIndex: stepIndex,
1074
- canGoBack: canGoBack,
1075
- onBack: onBack,
1076
- onExit: onExit
1077
- });
1078
- optionsRef.current = {
1079
- stepIndex: stepIndex,
1080
- canGoBack: canGoBack,
1081
- onBack: onBack,
1082
- onExit: onExit
1083
- };
1084
- var syncedStepIndexRef = useRef(null);
1085
- var trapCountRef = useRef(0);
1086
- var restoreBackTrap = useCallback(function () {
1087
- if (!enabled || !isMobile() || typeof window === 'undefined') return;
1088
- pushAppointmentBookingBackTrap();
1089
- trapCountRef.current += 1;
1090
- }, [enabled]);
1091
-
1092
- /**
1093
- * 每前进一步压入一条 history,使浏览器返回键步数与预约步骤一致。
1094
- * 例如 4 步流程会维持 4 层 trap,每次 back 只 pop 一层并触发 handleBack。
1095
- */
1096
- useEffect(function () {
1097
- if (!enabled || !isMobile() || typeof window === 'undefined') return;
1098
- var targetTrapCount = Math.max(0, stepIndex) + 1;
1099
- if (syncedStepIndexRef.current === null) {
1100
- syncedStepIndexRef.current = stepIndex;
1101
- while (trapCountRef.current < targetTrapCount) {
1102
- pushAppointmentBookingBackTrap();
1103
- trapCountRef.current += 1;
1104
- }
1105
- return;
1106
- }
1107
- if (stepIndex > syncedStepIndexRef.current) {
1108
- while (trapCountRef.current < targetTrapCount) {
1109
- pushAppointmentBookingBackTrap();
1110
- trapCountRef.current += 1;
1111
- }
1112
- } else if (stepIndex < syncedStepIndexRef.current) {
1113
- trapCountRef.current = targetTrapCount;
1114
- }
1115
- syncedStepIndexRef.current = stepIndex;
1116
- }, [enabled, stepIndex]);
1117
- useEffect(function () {
1118
- if (!enabled || !isMobile() || typeof window === 'undefined') return;
1119
- var isActive = true;
1120
- var handlePopState = function handlePopState() {
1121
- if (!isActive) return;
1122
- trapCountRef.current = Math.max(0, trapCountRef.current - 1);
1123
- var _optionsRef$current = optionsRef.current,
1124
- canGoBackFn = _optionsRef$current.canGoBack,
1125
- onBackFn = _optionsRef$current.onBack,
1126
- onExitFn = _optionsRef$current.onExit;
1127
- if (canGoBackFn()) {
1128
- void Promise.resolve(onBackFn());
1129
- return;
1130
- }
1131
- onExitFn === null || onExitFn === void 0 || onExitFn();
1132
- };
1133
- var handlePageShow = function handlePageShow(event) {
1134
- if (!isActive || !event.persisted) return;
1135
- var currentStepIndex = optionsRef.current.stepIndex;
1136
- var targetTrapCount = Math.max(0, currentStepIndex) + 1;
1137
- syncedStepIndexRef.current = currentStepIndex;
1138
- trapCountRef.current = 0;
1139
- while (trapCountRef.current < targetTrapCount) {
1140
- pushAppointmentBookingBackTrap();
1141
- trapCountRef.current += 1;
1142
- }
1143
- };
1144
- window.addEventListener('popstate', handlePopState, true);
1145
- window.addEventListener('pageshow', handlePageShow);
1146
- return function () {
1147
- isActive = false;
1148
- window.removeEventListener('popstate', handlePopState, true);
1149
- window.removeEventListener('pageshow', handlePageShow);
1150
- };
1151
- }, [enabled]);
1152
- return {
1153
- restoreBackTrap: restoreBackTrap
1154
- };
1155
1081
  };
@@ -182,6 +182,7 @@ export declare const getFormInsertBeforeKey: (currentKey: string, stepList: any[
182
182
  */
183
183
  export declare const checkAndGoNext: (isFormSubject: any, checkAccount: any, carts: any[]) => {
184
184
  hasError: boolean;
185
+ isEnableSkuHolderRule: boolean;
185
186
  updatedCartList: any[];
186
187
  };
187
188
  export declare const currentAppointmentBoard: (currentKey: string, resources: any[], appointmentBooking: any) => {
@@ -699,22 +699,43 @@ export var getFormInsertBeforeKey = function getFormInsertBeforeKey(currentKey,
699
699
  * @Date: 2025-05-24 22:46
700
700
  */
701
701
  export var checkAndGoNext = function checkAndGoNext(isFormSubject, checkAccount, carts) {
702
+ if (!isFormSubject) return {
703
+ hasError: false,
704
+ isEnableSkuHolderRule: false,
705
+ updatedCartList: carts
706
+ };
702
707
  var hasError = false;
708
+ // 是否开启了有 sku holder 规则
709
+ var isEnableSkuHolderRule = false;
703
710
  var updatedCartList = _toConsumableArray(carts);
704
- if (isFormSubject && !checkAccount('holder')) {
705
- updatedCartList = carts === null || carts === void 0 ? void 0 : carts.map(function (item) {
706
- if (!(item !== null && item !== void 0 && item.holder_id)) {
707
- hasError = true;
708
- return _objectSpread(_objectSpread({}, item), {}, {
709
- isErrorHolder: true
710
- });
711
- }
712
- return item;
713
- });
714
- }
711
+
712
+ // if (isFormSubject && !checkAccount('holder')) {
713
+ updatedCartList = carts === null || carts === void 0 ? void 0 : carts.map(function (item) {
714
+ var _item$_productInit;
715
+ var holderConfig = (item === null || item === void 0 || (_item$_productInit = item._productInit) === null || _item$_productInit === void 0 ? void 0 : _item$_productInit.holder_config) || {};
716
+ var _ref4 = holderConfig || {},
717
+ status = _ref4.status,
718
+ required = _ref4.required,
719
+ resource_id = _ref4.resource_id;
720
+
721
+ // sku 不是必填且有表单id
722
+ if (!(item !== null && item !== void 0 && item.holder_id) && status === 'enable' && !required && resource_id) {
723
+ isEnableSkuHolderRule = true;
724
+ }
725
+ if (!(item !== null && item !== void 0 && item.holder_id) && required) {
726
+ hasError = true;
727
+ return _objectSpread(_objectSpread({}, item), {}, {
728
+ isErrorHolder: true
729
+ });
730
+ }
731
+ return item;
732
+ });
733
+ // }
734
+
715
735
  return {
716
736
  hasError: hasError,
717
- updatedCartList: updatedCartList
737
+ updatedCartList: updatedCartList,
738
+ isEnableSkuHolderRule: isEnableSkuHolderRule
718
739
  };
719
740
  };
720
741
  export var currentAppointmentBoard = function currentAppointmentBoard(currentKey, resources, appointmentBooking) {
@@ -799,7 +820,7 @@ export var updateCartResources = function updateCartResources(item, value, curre
799
820
 
800
821
  // 购物车中是否有session商品
801
822
  var isSessionProduct = /*#__PURE__*/function () {
802
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appointmentBooking) {
823
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appointmentBooking) {
803
824
  var carts;
804
825
  return _regeneratorRuntime().wrap(function _callee$(_context) {
805
826
  while (1) switch (_context.prev = _context.next) {
@@ -809,8 +830,8 @@ var isSessionProduct = /*#__PURE__*/function () {
809
830
  case 2:
810
831
  carts = _context.sent;
811
832
  return _context.abrupt("return", carts === null || carts === void 0 ? void 0 : carts.some(function (item) {
812
- var _item$_productInit;
813
- return (item === null || item === void 0 || (_item$_productInit = item._productInit) === null || _item$_productInit === void 0 || (_item$_productInit = _item$_productInit['schedule.ids']) === null || _item$_productInit === void 0 ? void 0 : _item$_productInit.length) > 0;
833
+ var _item$_productInit2;
834
+ return (item === null || item === void 0 || (_item$_productInit2 = item._productInit) === null || _item$_productInit2 === void 0 || (_item$_productInit2 = _item$_productInit2['schedule.ids']) === null || _item$_productInit2 === void 0 ? void 0 : _item$_productInit2.length) > 0;
814
835
  }));
815
836
  case 4:
816
837
  case "end":
@@ -819,7 +840,7 @@ var isSessionProduct = /*#__PURE__*/function () {
819
840
  }, _callee);
820
841
  }));
821
842
  return function isSessionProduct(_x) {
822
- return _ref4.apply(this, arguments);
843
+ return _ref5.apply(this, arguments);
823
844
  };
824
845
  }();
825
846
 
@@ -869,8 +890,8 @@ var createClearActions = function createClearActions(appointmentBooking, setTime
869
890
  },
870
891
  date: function date() {
871
892
  var _appointmentBooking$o2;
872
- var _ref5 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
873
- bookingProcess = _ref5.bookingProcess;
893
+ var _ref6 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
894
+ bookingProcess = _ref6.bookingProcess;
874
895
 
875
896
  // 如果不是先选择日期步骤,则清空日期
876
897
  if (bookingProcess !== 'date_first') {
@@ -928,9 +949,9 @@ var executeClearActions = function executeClearActions(dataTypes, clearActions)
928
949
  * @Date: 2025-11-21 15:40
929
950
  */
930
951
  export var clearDataByStepKey = /*#__PURE__*/function () {
931
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, appointmentBooking, setTimes) {
952
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, appointmentBooking, setTimes) {
932
953
  var _appointmentBooking$o3;
933
- var stepKey, clearDataTypes, _ref7, bookingProcess, isDateSelectedFirst, isSession, clearActions;
954
+ var stepKey, clearDataTypes, _ref8, bookingProcess, isDateSelectedFirst, isSession, clearActions;
934
955
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
935
956
  while (1) switch (_context2.prev = _context2.next) {
936
957
  case 0:
@@ -955,7 +976,7 @@ export var clearDataByStepKey = /*#__PURE__*/function () {
955
976
  case 6:
956
977
  // 获取需要清空的数据类型
957
978
  clearDataTypes = STEP_CLEAR_CONFIG[stepKey] || [];
958
- _ref7 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {}, bookingProcess = _ref7.bookingProcess;
979
+ _ref8 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {}, bookingProcess = _ref8.bookingProcess;
959
980
  isDateSelectedFirst = bookingProcess === 'date_first'; // 1. 第一步选择日期,则回到商品列表,不需要清空日期
960
981
  if (key !== 'select-date' && isDateSelectedFirst) {
961
982
  clearDataTypes = clearDataTypes.filter(function (item) {
@@ -990,17 +1011,17 @@ export var clearDataByStepKey = /*#__PURE__*/function () {
990
1011
  }, _callee2);
991
1012
  }));
992
1013
  return function clearDataByStepKey(_x2, _x3, _x4) {
993
- return _ref6.apply(this, arguments);
1014
+ return _ref7.apply(this, arguments);
994
1015
  };
995
1016
  }();
996
1017
  export var nextStepLog = function nextStepLog(utils, title) {
997
1018
  var content = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
998
1019
  try {
999
1020
  var _utils$getStore, _utils$getStore$getSt2;
1000
- var _ref8 = (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 || (_utils$getStore$getSt2 = _utils$getStore.getState) === null || _utils$getStore$getSt2 === void 0 ? void 0 : _utils$getStore$getSt2.call(_utils$getStore)) || {},
1001
- global = _ref8.global;
1002
- var _ref9 = global || {},
1003
- shop = _ref9.shop;
1021
+ var _ref9 = (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 || (_utils$getStore$getSt2 = _utils$getStore.getState) === null || _utils$getStore$getSt2 === void 0 ? void 0 : _utils$getStore$getSt2.call(_utils$getStore)) || {},
1022
+ global = _ref9.global;
1023
+ var _ref10 = global || {},
1024
+ shop = _ref10.shop;
1004
1025
  if ((shop === null || shop === void 0 ? void 0 : shop.id) === 2155) {
1005
1026
  var _window2;
1006
1027
  sendWarningLog({
@@ -1021,13 +1042,13 @@ export var nextStepLog = function nextStepLog(utils, title) {
1021
1042
  * @description: 跳转到某个步骤
1022
1043
  * @return {*}
1023
1044
  */
1024
- export var handleGoToStep = function handleGoToStep(_ref10) {
1025
- var appointmentBooking = _ref10.appointmentBooking,
1026
- setTimes = _ref10.setTimes,
1027
- _ref10$skipStepKey = _ref10.skipStepKey,
1028
- skipStepKey = _ref10$skipStepKey === void 0 ? 'select-service' : _ref10$skipStepKey,
1029
- _ref10$isSkipClearDat = _ref10.isSkipClearData,
1030
- isSkipClearData = _ref10$isSkipClearDat === void 0 ? true : _ref10$isSkipClearDat;
1045
+ export var handleGoToStep = function handleGoToStep(_ref11) {
1046
+ var appointmentBooking = _ref11.appointmentBooking,
1047
+ setTimes = _ref11.setTimes,
1048
+ _ref11$skipStepKey = _ref11.skipStepKey,
1049
+ skipStepKey = _ref11$skipStepKey === void 0 ? 'select-service' : _ref11$skipStepKey,
1050
+ _ref11$isSkipClearDat = _ref11.isSkipClearData,
1051
+ isSkipClearData = _ref11$isSkipClearDat === void 0 ? true : _ref11$isSkipClearDat;
1031
1052
  // 清空数据
1032
1053
  if (isSkipClearData) {
1033
1054
  clearDataByStepKey(skipStepKey, appointmentBooking, setTimes);
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => 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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -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 Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './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 ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const ContactInfoMode: () => JSX.Element;
2
3
  export default ContactInfoMode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;