@pisell/private-materials 3.2.17 → 3.2.18

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 (144) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.js +19 -10
  12. package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.js +10 -20
  13. package/es/components/appointmentBooking/components/Cart/Item/index.js +73 -0
  14. package/es/components/appointmentBooking/components/Content/index.js +29 -15
  15. package/es/components/appointmentBooking/components/Date/index.js +77 -12
  16. package/es/components/appointmentBooking/components/Date/index.less +1 -0
  17. package/es/components/appointmentBooking/components/Footer/index.js +3 -3
  18. package/es/components/appointmentBooking/components/Guest/index.d.ts +3 -0
  19. package/es/components/appointmentBooking/components/{Provider/Information → Guest}/index.js +50 -59
  20. package/es/components/appointmentBooking/components/Header/index.js +6 -4
  21. package/es/components/appointmentBooking/components/Resource/index.d.ts +1 -1
  22. package/es/components/appointmentBooking/components/Resource/index.js +62 -29
  23. package/es/components/appointmentBooking/components/Resource/index.less +6 -0
  24. package/es/components/appointmentBooking/components/Services/index.js +25 -135
  25. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
  26. package/es/components/appointmentBooking/components/TimeSlicing/index.js +44 -755
  27. package/es/components/appointmentBooking/context.d.ts +23 -0
  28. package/es/components/appointmentBooking/context.js +71 -0
  29. package/es/components/appointmentBooking/hooks.d.ts +6 -8
  30. package/es/components/appointmentBooking/hooks.js +119 -62
  31. package/es/components/appointmentBooking/index.js +2 -3
  32. package/es/components/appointmentBooking/locales.d.ts +12 -0
  33. package/es/components/appointmentBooking/locales.js +21 -3
  34. package/es/components/appointmentBooking/utils.d.ts +12 -0
  35. package/es/components/appointmentBooking/utils.js +70 -0
  36. package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.js +18 -16
  37. package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.js +7 -11
  38. package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.js +22 -21
  39. package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.js +1 -1
  40. package/lib/components/appointmentBooking/components/Content/index.js +26 -14
  41. package/lib/components/appointmentBooking/components/Date/index.js +53 -16
  42. package/lib/components/appointmentBooking/components/Date/index.less +1 -0
  43. package/lib/components/appointmentBooking/components/Footer/index.js +3 -3
  44. package/lib/components/appointmentBooking/components/Guest/index.d.ts +3 -0
  45. package/lib/components/appointmentBooking/components/{Provider/Information → Guest}/index.js +43 -52
  46. package/lib/components/appointmentBooking/components/Header/index.js +2 -3
  47. package/lib/components/appointmentBooking/components/Resource/index.d.ts +1 -1
  48. package/lib/components/appointmentBooking/components/Resource/index.js +55 -41
  49. package/lib/components/appointmentBooking/components/Resource/index.less +6 -0
  50. package/lib/components/appointmentBooking/components/Services/index.js +15 -155
  51. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
  52. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +17 -941
  53. package/lib/components/appointmentBooking/context.d.ts +23 -0
  54. package/lib/components/appointmentBooking/context.js +85 -0
  55. package/lib/components/appointmentBooking/hooks.d.ts +6 -8
  56. package/lib/components/appointmentBooking/hooks.js +44 -20
  57. package/lib/components/appointmentBooking/index.js +2 -5
  58. package/lib/components/appointmentBooking/locales.d.ts +12 -0
  59. package/lib/components/appointmentBooking/locales.js +15 -3
  60. package/lib/components/appointmentBooking/utils.d.ts +12 -0
  61. package/lib/components/appointmentBooking/utils.js +62 -2
  62. package/package.json +2 -2
  63. package/es/components/appointmentBooking/components/Information/index.d.ts +0 -3
  64. package/es/components/appointmentBooking/components/Information/index.js +0 -178
  65. package/es/components/appointmentBooking/components/Provider/Cart/Item/index.js +0 -68
  66. package/es/components/appointmentBooking/components/Provider/Content/index.d.ts +0 -3
  67. package/es/components/appointmentBooking/components/Provider/Content/index.js +0 -64
  68. package/es/components/appointmentBooking/components/Provider/Content/index.less +0 -31
  69. package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  70. package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.js +0 -34
  71. package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  72. package/es/components/appointmentBooking/components/Provider/Event/index.d.ts +0 -3
  73. package/es/components/appointmentBooking/components/Provider/Event/index.js +0 -93
  74. package/es/components/appointmentBooking/components/Provider/Event/index.less +0 -20
  75. package/es/components/appointmentBooking/components/Provider/Information/index.d.ts +0 -3
  76. package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  77. package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js +0 -34
  78. package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  79. package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  80. package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.js +0 -27
  81. package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.less +0 -32
  82. package/es/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  83. package/es/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
  84. package/es/components/appointmentBooking/components/Provider/Resource/index.d.ts +0 -3
  85. package/es/components/appointmentBooking/components/Provider/Resource/index.js +0 -79
  86. package/es/components/appointmentBooking/components/Provider/Resource/index.less +0 -46
  87. package/es/components/appointmentBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  88. package/es/components/appointmentBooking/components/Provider/SelectHolderModal.js +0 -90
  89. package/es/components/appointmentBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  90. package/es/components/appointmentBooking/components/Provider/SelectProduct/index.js +0 -77
  91. package/es/components/appointmentBooking/components/Provider/SelectProduct/index.less +0 -131
  92. package/es/components/booking/info/service2/utils.d.ts +0 -240
  93. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
  94. package/lib/components/appointmentBooking/components/Information/index.d.ts +0 -3
  95. package/lib/components/appointmentBooking/components/Information/index.js +0 -151
  96. package/lib/components/appointmentBooking/components/Information/index.less +0 -92
  97. package/lib/components/appointmentBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  98. package/lib/components/appointmentBooking/components/Provider/Content/index.d.ts +0 -3
  99. package/lib/components/appointmentBooking/components/Provider/Content/index.js +0 -90
  100. package/lib/components/appointmentBooking/components/Provider/Content/index.less +0 -31
  101. package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  102. package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.js +0 -60
  103. package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  104. package/lib/components/appointmentBooking/components/Provider/Event/index.d.ts +0 -3
  105. package/lib/components/appointmentBooking/components/Provider/Event/index.js +0 -100
  106. package/lib/components/appointmentBooking/components/Provider/Event/index.less +0 -20
  107. package/lib/components/appointmentBooking/components/Provider/Information/index.d.ts +0 -3
  108. package/lib/components/appointmentBooking/components/Provider/Information/index.less +0 -92
  109. package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  110. package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js +0 -67
  111. package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  112. package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  113. package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.js +0 -57
  114. package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.less +0 -32
  115. package/lib/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  116. package/lib/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
  117. package/lib/components/appointmentBooking/components/Provider/Resource/index.d.ts +0 -3
  118. package/lib/components/appointmentBooking/components/Provider/Resource/index.js +0 -90
  119. package/lib/components/appointmentBooking/components/Provider/Resource/index.less +0 -46
  120. package/lib/components/appointmentBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  121. package/lib/components/appointmentBooking/components/Provider/SelectHolderModal.js +0 -97
  122. package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  123. package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.js +0 -69
  124. package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.less +0 -131
  125. package/lib/components/booking/info/service2/utils.d.ts +0 -240
  126. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  127. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
  128. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.d.ts +0 -0
  129. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.less +0 -0
  130. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.d.ts +0 -0
  131. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.d.ts +0 -0
  132. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.less +0 -0
  133. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.d.ts +0 -0
  134. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.js +0 -0
  135. /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.less +0 -0
  136. /package/es/components/appointmentBooking/components/{Information → Guest}/index.less +0 -0
  137. /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.d.ts +0 -0
  138. /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.less +0 -0
  139. /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.d.ts +0 -0
  140. /package/{es/components/eventBooking/components/Provider → lib/components/appointmentBooking/components}/Cart/Item/index.d.ts +0 -0
  141. /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.less +0 -0
  142. /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.d.ts +0 -0
  143. /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.less +0 -0
  144. /package/{es/components/appointmentBooking/components/Provider/Information → lib/components/appointmentBooking/components/Guest}/index.less +0 -0
@@ -1,3 +1,7 @@
1
+ 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); }
2
+ 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; }
3
+ 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); } }
4
+ 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); }); }; }
1
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -6,772 +10,57 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
11
  import React, { useState } from 'react';
8
12
  import { Iconfont } from '@pisell/materials';
9
- import dayjs from 'dayjs';
13
+ import { useAppointmentBookingContext } from "../../context";
10
14
  import "./index.less";
11
- var Resource = function Resource() {
15
+ var Resource = function Resource(_ref) {
16
+ var params = _ref.params;
12
17
  var _useState = useState(''),
13
18
  _useState2 = _slicedToArray(_useState, 2),
14
19
  selectedResource = _useState2[0],
15
20
  setSelectedResource = _useState2[1];
16
- var lists = [{
17
- start_time: '2025-04-11 13:10',
18
- end_time: '2025-04-11 13:40',
19
- sold_out: 0,
20
- order_count: 0,
21
- max_participants_limit: 0,
22
- max_participants_type: 'no-limit',
23
- product_times: [{
24
- product_id: 60535,
25
- start_time: '2025-04-11 13:10',
26
- end_time: '2025-04-11 13:40'
27
- }]
28
- }, {
29
- start_time: '2025-04-11 13:20',
30
- end_time: '2025-04-11 13:50',
31
- sold_out: 0,
32
- order_count: 0,
33
- max_participants_limit: 0,
34
- max_participants_type: 'no-limit',
35
- product_times: [{
36
- product_id: 60535,
37
- start_time: '2025-04-11 13:20',
38
- end_time: '2025-04-11 13:50'
39
- }]
40
- }, {
41
- start_time: '2025-04-11 13:30',
42
- end_time: '2025-04-11 14:00',
43
- sold_out: 0,
44
- order_count: 0,
45
- max_participants_limit: 0,
46
- max_participants_type: 'no-limit',
47
- product_times: [{
48
- product_id: 60535,
49
- start_time: '2025-04-11 13:30',
50
- end_time: '2025-04-11 14:00'
51
- }]
52
- }, {
53
- start_time: '2025-04-11 13:40',
54
- end_time: '2025-04-11 14:10',
55
- sold_out: 0,
56
- order_count: 0,
57
- max_participants_limit: 0,
58
- max_participants_type: 'no-limit',
59
- product_times: [{
60
- product_id: 60535,
61
- start_time: '2025-04-11 13:40',
62
- end_time: '2025-04-11 14:10'
63
- }]
64
- }, {
65
- start_time: '2025-04-11 13:50',
66
- end_time: '2025-04-11 14:20',
67
- sold_out: 0,
68
- order_count: 0,
69
- max_participants_limit: 0,
70
- max_participants_type: 'no-limit',
71
- product_times: [{
72
- product_id: 60535,
73
- start_time: '2025-04-11 13:50',
74
- end_time: '2025-04-11 14:20'
75
- }]
76
- }, {
77
- start_time: '2025-04-11 14:00',
78
- end_time: '2025-04-11 14:30',
79
- sold_out: 0,
80
- order_count: 0,
81
- max_participants_limit: 0,
82
- max_participants_type: 'no-limit',
83
- product_times: [{
84
- product_id: 60535,
85
- start_time: '2025-04-11 14:00',
86
- end_time: '2025-04-11 14:30'
87
- }]
88
- }, {
89
- start_time: '2025-04-11 14:10',
90
- end_time: '2025-04-11 14:40',
91
- sold_out: 0,
92
- order_count: 0,
93
- max_participants_limit: 0,
94
- max_participants_type: 'no-limit',
95
- product_times: [{
96
- product_id: 60535,
97
- start_time: '2025-04-11 14:10',
98
- end_time: '2025-04-11 14:40'
99
- }]
100
- }, {
101
- start_time: '2025-04-11 14:20',
102
- end_time: '2025-04-11 14:50',
103
- sold_out: 0,
104
- order_count: 0,
105
- max_participants_limit: 0,
106
- max_participants_type: 'no-limit',
107
- product_times: [{
108
- product_id: 60535,
109
- start_time: '2025-04-11 14:20',
110
- end_time: '2025-04-11 14:50'
111
- }]
112
- }, {
113
- start_time: '2025-04-11 14:30',
114
- end_time: '2025-04-11 15:00',
115
- sold_out: 0,
116
- order_count: 0,
117
- max_participants_limit: 0,
118
- max_participants_type: 'no-limit',
119
- product_times: [{
120
- product_id: 60535,
121
- start_time: '2025-04-11 14:30',
122
- end_time: '2025-04-11 15:00'
123
- }]
124
- }, {
125
- start_time: '2025-04-11 14:40',
126
- end_time: '2025-04-11 15:10',
127
- sold_out: 0,
128
- order_count: 0,
129
- max_participants_limit: 0,
130
- max_participants_type: 'no-limit',
131
- product_times: [{
132
- product_id: 60535,
133
- start_time: '2025-04-11 14:40',
134
- end_time: '2025-04-11 15:10'
135
- }]
136
- }, {
137
- start_time: '2025-04-11 14:50',
138
- end_time: '2025-04-11 15:20',
139
- sold_out: 0,
140
- order_count: 0,
141
- max_participants_limit: 0,
142
- max_participants_type: 'no-limit',
143
- product_times: [{
144
- product_id: 60535,
145
- start_time: '2025-04-11 14:50',
146
- end_time: '2025-04-11 15:20'
147
- }]
148
- }, {
149
- start_time: '2025-04-11 15:00',
150
- end_time: '2025-04-11 15:30',
151
- sold_out: 0,
152
- order_count: 0,
153
- max_participants_limit: 0,
154
- max_participants_type: 'no-limit',
155
- product_times: [{
156
- product_id: 60535,
157
- start_time: '2025-04-11 15:00',
158
- end_time: '2025-04-11 15:30'
159
- }]
160
- }, {
161
- start_time: '2025-04-11 15:10',
162
- end_time: '2025-04-11 15:40',
163
- sold_out: 0,
164
- order_count: 0,
165
- max_participants_limit: 0,
166
- max_participants_type: 'no-limit',
167
- product_times: [{
168
- product_id: 60535,
169
- start_time: '2025-04-11 15:10',
170
- end_time: '2025-04-11 15:40'
171
- }]
172
- }, {
173
- start_time: '2025-04-11 15:20',
174
- end_time: '2025-04-11 15:50',
175
- sold_out: 0,
176
- order_count: 0,
177
- max_participants_limit: 0,
178
- max_participants_type: 'no-limit',
179
- product_times: [{
180
- product_id: 60535,
181
- start_time: '2025-04-11 15:20',
182
- end_time: '2025-04-11 15:50'
183
- }]
184
- }, {
185
- start_time: '2025-04-11 15:30',
186
- end_time: '2025-04-11 16:00',
187
- sold_out: 0,
188
- order_count: 0,
189
- max_participants_limit: 0,
190
- max_participants_type: 'no-limit',
191
- product_times: [{
192
- product_id: 60535,
193
- start_time: '2025-04-11 15:30',
194
- end_time: '2025-04-11 16:00'
195
- }]
196
- }, {
197
- start_time: '2025-04-11 15:40',
198
- end_time: '2025-04-11 16:10',
199
- sold_out: 0,
200
- order_count: 0,
201
- max_participants_limit: 0,
202
- max_participants_type: 'no-limit',
203
- product_times: [{
204
- product_id: 60535,
205
- start_time: '2025-04-11 15:40',
206
- end_time: '2025-04-11 16:10'
207
- }]
208
- }, {
209
- start_time: '2025-04-11 15:50',
210
- end_time: '2025-04-11 16:20',
211
- sold_out: 0,
212
- order_count: 0,
213
- max_participants_limit: 0,
214
- max_participants_type: 'no-limit',
215
- product_times: [{
216
- product_id: 60535,
217
- start_time: '2025-04-11 15:50',
218
- end_time: '2025-04-11 16:20'
219
- }]
220
- }, {
221
- start_time: '2025-04-11 16:00',
222
- end_time: '2025-04-11 16:30',
223
- sold_out: 0,
224
- order_count: 0,
225
- max_participants_limit: 0,
226
- max_participants_type: 'no-limit',
227
- product_times: [{
228
- product_id: 60535,
229
- start_time: '2025-04-11 16:00',
230
- end_time: '2025-04-11 16:30'
231
- }]
232
- }, {
233
- start_time: '2025-04-11 16:10',
234
- end_time: '2025-04-11 16:40',
235
- sold_out: 0,
236
- order_count: 0,
237
- max_participants_limit: 0,
238
- max_participants_type: 'no-limit',
239
- product_times: [{
240
- product_id: 60535,
241
- start_time: '2025-04-11 16:10',
242
- end_time: '2025-04-11 16:40'
243
- }]
244
- }, {
245
- start_time: '2025-04-11 16:20',
246
- end_time: '2025-04-11 16:50',
247
- sold_out: 0,
248
- order_count: 0,
249
- max_participants_limit: 0,
250
- max_participants_type: 'no-limit',
251
- product_times: [{
252
- product_id: 60535,
253
- start_time: '2025-04-11 16:20',
254
- end_time: '2025-04-11 16:50'
255
- }]
256
- }, {
257
- start_time: '2025-04-11 16:30',
258
- end_time: '2025-04-11 17:00',
259
- sold_out: 0,
260
- order_count: 0,
261
- max_participants_limit: 0,
262
- max_participants_type: 'no-limit',
263
- product_times: [{
264
- product_id: 60535,
265
- start_time: '2025-04-11 16:30',
266
- end_time: '2025-04-11 17:00'
267
- }]
268
- }, {
269
- start_time: '2025-04-11 16:40',
270
- end_time: '2025-04-11 17:10',
271
- sold_out: 0,
272
- order_count: 0,
273
- max_participants_limit: 0,
274
- max_participants_type: 'no-limit',
275
- product_times: [{
276
- product_id: 60535,
277
- start_time: '2025-04-11 16:40',
278
- end_time: '2025-04-11 17:10'
279
- }]
280
- }, {
281
- start_time: '2025-04-11 16:50',
282
- end_time: '2025-04-11 17:20',
283
- sold_out: 0,
284
- order_count: 0,
285
- max_participants_limit: 0,
286
- max_participants_type: 'no-limit',
287
- product_times: [{
288
- product_id: 60535,
289
- start_time: '2025-04-11 16:50',
290
- end_time: '2025-04-11 17:20'
291
- }]
292
- }, {
293
- start_time: '2025-04-11 17:00',
294
- end_time: '2025-04-11 17:30',
295
- sold_out: 0,
296
- order_count: 0,
297
- max_participants_limit: 0,
298
- max_participants_type: 'no-limit',
299
- product_times: [{
300
- product_id: 60535,
301
- start_time: '2025-04-11 17:00',
302
- end_time: '2025-04-11 17:30'
303
- }]
304
- }, {
305
- start_time: '2025-04-11 17:10',
306
- end_time: '2025-04-11 17:40',
307
- sold_out: 0,
308
- order_count: 0,
309
- max_participants_limit: 0,
310
- max_participants_type: 'no-limit',
311
- product_times: [{
312
- product_id: 60535,
313
- start_time: '2025-04-11 17:10',
314
- end_time: '2025-04-11 17:40'
315
- }]
316
- }, {
317
- start_time: '2025-04-11 17:20',
318
- end_time: '2025-04-11 17:50',
319
- sold_out: 0,
320
- order_count: 0,
321
- max_participants_limit: 0,
322
- max_participants_type: 'no-limit',
323
- product_times: [{
324
- product_id: 60535,
325
- start_time: '2025-04-11 17:20',
326
- end_time: '2025-04-11 17:50'
327
- }]
328
- }, {
329
- start_time: '2025-04-11 17:30',
330
- end_time: '2025-04-11 18:00',
331
- sold_out: 0,
332
- order_count: 0,
333
- max_participants_limit: 0,
334
- max_participants_type: 'no-limit',
335
- product_times: [{
336
- product_id: 60535,
337
- start_time: '2025-04-11 17:30',
338
- end_time: '2025-04-11 18:00'
339
- }]
340
- }, {
341
- start_time: '2025-04-11 17:40',
342
- end_time: '2025-04-11 18:10',
343
- sold_out: 0,
344
- order_count: 0,
345
- max_participants_limit: 0,
346
- max_participants_type: 'no-limit',
347
- product_times: [{
348
- product_id: 60535,
349
- start_time: '2025-04-11 17:40',
350
- end_time: '2025-04-11 18:10'
351
- }]
352
- }, {
353
- start_time: '2025-04-11 17:50',
354
- end_time: '2025-04-11 18:20',
355
- sold_out: 0,
356
- order_count: 0,
357
- max_participants_limit: 0,
358
- max_participants_type: 'no-limit',
359
- product_times: [{
360
- product_id: 60535,
361
- start_time: '2025-04-11 17:50',
362
- end_time: '2025-04-11 18:20'
363
- }]
364
- }, {
365
- start_time: '2025-04-11 18:00',
366
- end_time: '2025-04-11 18:30',
367
- sold_out: 0,
368
- order_count: 0,
369
- max_participants_limit: 0,
370
- max_participants_type: 'no-limit',
371
- product_times: [{
372
- product_id: 60535,
373
- start_time: '2025-04-11 18:00',
374
- end_time: '2025-04-11 18:30'
375
- }]
376
- }, {
377
- start_time: '2025-04-11 18:10',
378
- end_time: '2025-04-11 18:40',
379
- sold_out: 0,
380
- order_count: 0,
381
- max_participants_limit: 0,
382
- max_participants_type: 'no-limit',
383
- product_times: [{
384
- product_id: 60535,
385
- start_time: '2025-04-11 18:10',
386
- end_time: '2025-04-11 18:40'
387
- }]
388
- }, {
389
- start_time: '2025-04-11 18:20',
390
- end_time: '2025-04-11 18:50',
391
- sold_out: 0,
392
- order_count: 0,
393
- max_participants_limit: 0,
394
- max_participants_type: 'no-limit',
395
- product_times: [{
396
- product_id: 60535,
397
- start_time: '2025-04-11 18:20',
398
- end_time: '2025-04-11 18:50'
399
- }]
400
- }, {
401
- start_time: '2025-04-11 18:30',
402
- end_time: '2025-04-11 19:00',
403
- sold_out: 0,
404
- order_count: 0,
405
- max_participants_limit: 0,
406
- max_participants_type: 'no-limit',
407
- product_times: [{
408
- product_id: 60535,
409
- start_time: '2025-04-11 18:30',
410
- end_time: '2025-04-11 19:00'
411
- }]
412
- }, {
413
- start_time: '2025-04-11 18:40',
414
- end_time: '2025-04-11 19:10',
415
- sold_out: 0,
416
- order_count: 0,
417
- max_participants_limit: 0,
418
- max_participants_type: 'no-limit',
419
- product_times: [{
420
- product_id: 60535,
421
- start_time: '2025-04-11 18:40',
422
- end_time: '2025-04-11 19:10'
423
- }]
424
- }, {
425
- start_time: '2025-04-11 18:50',
426
- end_time: '2025-04-11 19:20',
427
- sold_out: 0,
428
- order_count: 0,
429
- max_participants_limit: 0,
430
- max_participants_type: 'no-limit',
431
- product_times: [{
432
- product_id: 60535,
433
- start_time: '2025-04-11 18:50',
434
- end_time: '2025-04-11 19:20'
435
- }]
436
- }, {
437
- start_time: '2025-04-11 19:00',
438
- end_time: '2025-04-11 19:30',
439
- sold_out: 0,
440
- order_count: 0,
441
- max_participants_limit: 0,
442
- max_participants_type: 'no-limit',
443
- product_times: [{
444
- product_id: 60535,
445
- start_time: '2025-04-11 19:00',
446
- end_time: '2025-04-11 19:30'
447
- }]
448
- }, {
449
- start_time: '2025-04-11 19:10',
450
- end_time: '2025-04-11 19:40',
451
- sold_out: 0,
452
- order_count: 0,
453
- max_participants_limit: 0,
454
- max_participants_type: 'no-limit',
455
- product_times: [{
456
- product_id: 60535,
457
- start_time: '2025-04-11 19:10',
458
- end_time: '2025-04-11 19:40'
459
- }]
460
- }, {
461
- start_time: '2025-04-11 19:20',
462
- end_time: '2025-04-11 19:50',
463
- sold_out: 0,
464
- order_count: 0,
465
- max_participants_limit: 0,
466
- max_participants_type: 'no-limit',
467
- product_times: [{
468
- product_id: 60535,
469
- start_time: '2025-04-11 19:20',
470
- end_time: '2025-04-11 19:50'
471
- }]
472
- }, {
473
- start_time: '2025-04-11 19:30',
474
- end_time: '2025-04-11 20:00',
475
- sold_out: 0,
476
- order_count: 0,
477
- max_participants_limit: 0,
478
- max_participants_type: 'no-limit',
479
- product_times: [{
480
- product_id: 60535,
481
- start_time: '2025-04-11 19:30',
482
- end_time: '2025-04-11 20:00'
483
- }]
484
- }, {
485
- start_time: '2025-04-11 19:40',
486
- end_time: '2025-04-11 20:10',
487
- sold_out: 0,
488
- order_count: 0,
489
- max_participants_limit: 0,
490
- max_participants_type: 'no-limit',
491
- product_times: [{
492
- product_id: 60535,
493
- start_time: '2025-04-11 19:40',
494
- end_time: '2025-04-11 20:10'
495
- }]
496
- }, {
497
- start_time: '2025-04-11 19:50',
498
- end_time: '2025-04-11 20:20',
499
- sold_out: 0,
500
- order_count: 0,
501
- max_participants_limit: 0,
502
- max_participants_type: 'no-limit',
503
- product_times: [{
504
- product_id: 60535,
505
- start_time: '2025-04-11 19:50',
506
- end_time: '2025-04-11 20:20'
507
- }]
508
- }, {
509
- start_time: '2025-04-11 20:00',
510
- end_time: '2025-04-11 20:30',
511
- sold_out: 0,
512
- order_count: 0,
513
- max_participants_limit: 0,
514
- max_participants_type: 'no-limit',
515
- product_times: [{
516
- product_id: 60535,
517
- start_time: '2025-04-11 20:00',
518
- end_time: '2025-04-11 20:30'
519
- }]
520
- }, {
521
- start_time: '2025-04-11 20:10',
522
- end_time: '2025-04-11 20:40',
523
- sold_out: 0,
524
- order_count: 0,
525
- max_participants_limit: 0,
526
- max_participants_type: 'no-limit',
527
- product_times: [{
528
- product_id: 60535,
529
- start_time: '2025-04-11 20:10',
530
- end_time: '2025-04-11 20:40'
531
- }]
532
- }, {
533
- start_time: '2025-04-11 20:20',
534
- end_time: '2025-04-11 20:50',
535
- sold_out: 0,
536
- order_count: 0,
537
- max_participants_limit: 0,
538
- max_participants_type: 'no-limit',
539
- product_times: [{
540
- product_id: 60535,
541
- start_time: '2025-04-11 20:20',
542
- end_time: '2025-04-11 20:50'
543
- }]
544
- }, {
545
- start_time: '2025-04-11 20:30',
546
- end_time: '2025-04-11 21:00',
547
- sold_out: 0,
548
- order_count: 0,
549
- max_participants_limit: 0,
550
- max_participants_type: 'no-limit',
551
- product_times: [{
552
- product_id: 60535,
553
- start_time: '2025-04-11 20:30',
554
- end_time: '2025-04-11 21:00'
555
- }]
556
- }, {
557
- start_time: '2025-04-11 20:40',
558
- end_time: '2025-04-11 21:10',
559
- sold_out: 0,
560
- order_count: 0,
561
- max_participants_limit: 0,
562
- max_participants_type: 'no-limit',
563
- product_times: [{
564
- product_id: 60535,
565
- start_time: '2025-04-11 20:40',
566
- end_time: '2025-04-11 21:10'
567
- }]
568
- }, {
569
- start_time: '2025-04-11 20:50',
570
- end_time: '2025-04-11 21:20',
571
- sold_out: 0,
572
- order_count: 0,
573
- max_participants_limit: 0,
574
- max_participants_type: 'no-limit',
575
- product_times: [{
576
- product_id: 60535,
577
- start_time: '2025-04-11 20:50',
578
- end_time: '2025-04-11 21:20'
579
- }]
580
- }, {
581
- start_time: '2025-04-11 21:00',
582
- end_time: '2025-04-11 21:30',
583
- sold_out: 0,
584
- order_count: 0,
585
- max_participants_limit: 0,
586
- max_participants_type: 'no-limit',
587
- product_times: [{
588
- product_id: 60535,
589
- start_time: '2025-04-11 21:00',
590
- end_time: '2025-04-11 21:30'
591
- }]
592
- }, {
593
- start_time: '2025-04-11 21:10',
594
- end_time: '2025-04-11 21:40',
595
- sold_out: 0,
596
- order_count: 0,
597
- max_participants_limit: 0,
598
- max_participants_type: 'no-limit',
599
- product_times: [{
600
- product_id: 60535,
601
- start_time: '2025-04-11 21:10',
602
- end_time: '2025-04-11 21:40'
603
- }]
604
- }, {
605
- start_time: '2025-04-11 21:20',
606
- end_time: '2025-04-11 21:50',
607
- sold_out: 0,
608
- order_count: 0,
609
- max_participants_limit: 0,
610
- max_participants_type: 'no-limit',
611
- product_times: [{
612
- product_id: 60535,
613
- start_time: '2025-04-11 21:20',
614
- end_time: '2025-04-11 21:50'
615
- }]
616
- }, {
617
- start_time: '2025-04-11 21:30',
618
- end_time: '2025-04-11 22:00',
619
- sold_out: 0,
620
- order_count: 0,
621
- max_participants_limit: 0,
622
- max_participants_type: 'no-limit',
623
- product_times: [{
624
- product_id: 60535,
625
- start_time: '2025-04-11 21:30',
626
- end_time: '2025-04-11 22:00'
627
- }]
628
- }, {
629
- start_time: '2025-04-11 21:40',
630
- end_time: '2025-04-11 22:10',
631
- sold_out: 0,
632
- order_count: 0,
633
- max_participants_limit: 0,
634
- max_participants_type: 'no-limit',
635
- product_times: [{
636
- product_id: 60535,
637
- start_time: '2025-04-11 21:40',
638
- end_time: '2025-04-11 22:10'
639
- }]
640
- }, {
641
- start_time: '2025-04-11 21:50',
642
- end_time: '2025-04-11 22:20',
643
- sold_out: 0,
644
- order_count: 0,
645
- max_participants_limit: 0,
646
- max_participants_type: 'no-limit',
647
- product_times: [{
648
- product_id: 60535,
649
- start_time: '2025-04-11 21:50',
650
- end_time: '2025-04-11 22:20'
651
- }]
652
- }, {
653
- start_time: '2025-04-11 22:00',
654
- end_time: '2025-04-11 22:30',
655
- sold_out: 0,
656
- order_count: 0,
657
- max_participants_limit: 0,
658
- max_participants_type: 'no-limit',
659
- product_times: [{
660
- product_id: 60535,
661
- start_time: '2025-04-11 22:00',
662
- end_time: '2025-04-11 22:30'
663
- }]
664
- }, {
665
- start_time: '2025-04-11 22:10',
666
- end_time: '2025-04-11 22:40',
667
- sold_out: 0,
668
- order_count: 0,
669
- max_participants_limit: 0,
670
- max_participants_type: 'no-limit',
671
- product_times: [{
672
- product_id: 60535,
673
- start_time: '2025-04-11 22:10',
674
- end_time: '2025-04-11 22:40'
675
- }]
676
- }, {
677
- start_time: '2025-04-11 22:20',
678
- end_time: '2025-04-11 22:50',
679
- sold_out: 0,
680
- order_count: 0,
681
- max_participants_limit: 0,
682
- max_participants_type: 'no-limit',
683
- product_times: [{
684
- product_id: 60535,
685
- start_time: '2025-04-11 22:20',
686
- end_time: '2025-04-11 22:50'
687
- }]
688
- }, {
689
- start_time: '2025-04-11 22:30',
690
- end_time: '2025-04-11 23:00',
691
- sold_out: 0,
692
- order_count: 0,
693
- max_participants_limit: 0,
694
- max_participants_type: 'no-limit',
695
- product_times: [{
696
- product_id: 60535,
697
- start_time: '2025-04-11 22:30',
698
- end_time: '2025-04-11 23:00'
699
- }]
700
- }, {
701
- start_time: '2025-04-11 22:40',
702
- end_time: '2025-04-11 23:10',
703
- sold_out: 0,
704
- order_count: 0,
705
- max_participants_limit: 0,
706
- max_participants_type: 'no-limit',
707
- product_times: [{
708
- product_id: 60535,
709
- start_time: '2025-04-11 22:40',
710
- end_time: '2025-04-11 23:10'
711
- }]
712
- }, {
713
- start_time: '2025-04-11 22:50',
714
- end_time: '2025-04-11 23:20',
715
- sold_out: 0,
716
- order_count: 0,
717
- max_participants_limit: 0,
718
- max_participants_type: 'no-limit',
719
- product_times: [{
720
- product_id: 60535,
721
- start_time: '2025-04-11 22:50',
722
- end_time: '2025-04-11 23:20'
723
- }]
724
- }, {
725
- start_time: '2025-04-11 23:00',
726
- end_time: '2025-04-11 23:30',
727
- sold_out: 0,
728
- order_count: 0,
729
- max_participants_limit: 0,
730
- max_participants_type: 'no-limit',
731
- product_times: [{
732
- product_id: 60535,
733
- start_time: '2025-04-11 23:00',
734
- end_time: '2025-04-11 23:30'
735
- }]
736
- }, {
737
- start_time: '2025-04-11 23:10',
738
- end_time: '2025-04-11 23:40',
739
- sold_out: 0,
740
- order_count: 0,
741
- max_participants_limit: 0,
742
- max_participants_type: 'no-limit',
743
- product_times: [{
744
- product_id: 60535,
745
- start_time: '2025-04-11 23:10',
746
- end_time: '2025-04-11 23:40'
747
- }]
748
- }, {
749
- start_time: '2025-04-11 23:20',
750
- end_time: '2025-04-11 23:50',
751
- sold_out: 0,
752
- order_count: 0,
753
- max_participants_limit: 0,
754
- max_participants_type: 'no-limit',
755
- product_times: [{
756
- product_id: 60535,
757
- start_time: '2025-04-11 23:20',
758
- end_time: '2025-04-11 23:50'
759
- }]
760
- }];
761
- var _onClick = function onClick(e) {
762
- console.log(e);
763
- setSelectedResource(e.id);
764
- };
21
+ var _useAppointmentBookin = useAppointmentBookingContext(),
22
+ times = _useAppointmentBookin.times,
23
+ resources = _useAppointmentBookin.resources,
24
+ appointmentBooking = _useAppointmentBookin.appointmentBooking,
25
+ carts = _useAppointmentBookin.carts;
26
+ console.log(params, resources, times, 'wh8765');
27
+ var _onClick = /*#__PURE__*/function () {
28
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
29
+ var _resources$, _resources$2;
30
+ var data;
31
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
32
+ while (1) switch (_context.prev = _context.next) {
33
+ case 0:
34
+ setSelectedResource(e === null || e === void 0 ? void 0 : e.start_time);
35
+ _context.next = 3;
36
+ return appointmentBooking.autoSelectResource({
37
+ resourceProductData: resources === null || resources === void 0 || (_resources$ = resources[0]) === null || _resources$ === void 0 ? void 0 : _resources$.product,
38
+ resources: resources === null || resources === void 0 || (_resources$2 = resources[0]) === null || _resources$2 === void 0 || (_resources$2 = _resources$2.resources) === null || _resources$2 === void 0 ? void 0 : _resources$2[1],
39
+ timeSlots: e
40
+ });
41
+ case 3:
42
+ data = _context.sent;
43
+ console.log(data, 'wh9879676');
44
+ case 5:
45
+ case "end":
46
+ return _context.stop();
47
+ }
48
+ }, _callee);
49
+ }));
50
+ return function onClick(_x) {
51
+ return _ref2.apply(this, arguments);
52
+ };
53
+ }();
765
54
  return /*#__PURE__*/React.createElement("div", {
766
55
  className: 'appointment-time-slicing-wrap'
767
- }, lists.map(function (item) {
56
+ }, times.map(function (item, index) {
768
57
  return /*#__PURE__*/React.createElement("div", {
769
- key: item.id,
58
+ key: index,
770
59
  onClick: function onClick() {
771
60
  return _onClick(item);
772
61
  },
773
- className: "item ".concat(selectedResource === item.id ? 'active' : '')
774
- }, /*#__PURE__*/React.createElement("span", null, dayjs(item.start_time).format('HH:mm')), /*#__PURE__*/React.createElement(Iconfont, {
62
+ className: "item ".concat(selectedResource === (item === null || item === void 0 ? void 0 : item.start_time) ? 'active' : '')
63
+ }, /*#__PURE__*/React.createElement("span", null, item === null || item === void 0 ? void 0 : item.start_time), /*#__PURE__*/React.createElement(Iconfont, {
775
64
  type: "pisell2-chevron-right",
776
65
  className: "icon"
777
66
  }));