@pisell/private-materials 6.2.9 → 6.2.10

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 (245) 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 +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  10. package/es/components/appointmentBooking/components/Content/index.js +87 -8
  11. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  12. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  13. package/es/components/appointmentBooking/hooks.js +28 -30
  14. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  15. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  16. package/es/components/productSelect/index.d.ts +2 -0
  17. package/es/components/ticketBooking/components/menuBar/index.js +38 -2
  18. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  19. package/es/components/ticketBooking/locales.d.ts +3 -0
  20. package/es/components/ticketBooking/locales.js +6 -3
  21. package/es/components/walletList/index.js +4 -4
  22. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  23. package/lib/components/appointmentBooking/components/Content/index.js +44 -7
  24. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  25. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  26. package/lib/components/appointmentBooking/hooks.js +5 -16
  27. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  28. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  29. package/lib/components/productSelect/index.d.ts +2 -0
  30. package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
  31. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  32. package/lib/components/ticketBooking/locales.d.ts +3 -0
  33. package/lib/components/ticketBooking/locales.js +6 -3
  34. package/lib/components/walletList/index.js +3 -3
  35. package/package.json +4 -4
  36. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  37. package/es/components/Sales/Cart/index.d.ts +0 -53
  38. package/es/components/Sales/Cart/utils.d.ts +0 -63
  39. package/es/components/Sales/Checkout/index.d.ts +0 -37
  40. package/es/components/Sales/Checkout/serve.d.ts +0 -15
  41. package/es/components/Sales/Checkout/utils.d.ts +0 -40
  42. package/es/components/Sales/Customer/index.d.ts +0 -25
  43. package/es/components/Sales/Resource/index.d.ts +0 -26
  44. package/es/components/Sales/Resource/serve.d.ts +0 -12
  45. package/es/components/Sales/Summary/index.d.ts +0 -35
  46. package/es/components/Sales/Summary/serve.d.ts +0 -1
  47. package/es/components/Sales/Summary/utils.d.ts +0 -51
  48. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  49. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
  50. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  51. package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  52. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
  53. package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  54. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  55. package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
  56. package/es/components/appointmentBooking/index.d.ts +0 -3
  57. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  58. package/es/components/booking/components/footer/index.d.ts +0 -11
  59. package/es/components/booking/components/footer/utils.d.ts +0 -41
  60. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  61. package/es/components/booking/components/voucher/index.d.ts +0 -3
  62. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  63. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  64. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  65. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  66. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  67. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  68. package/es/components/booking/hooks/useClearCart.d.ts +0 -2
  69. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  70. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  71. package/es/components/booking/info/client/index.d.ts +0 -4
  72. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  73. package/es/components/booking/info/index.d.ts +0 -3
  74. package/es/components/booking/info/model.d.ts +0 -5
  75. package/es/components/booking/info/service/Lists.d.ts +0 -2
  76. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  77. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  78. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  79. package/es/components/booking/info/service2/utils.d.ts +0 -247
  80. package/es/components/booking/info/utils.d.ts +0 -50
  81. package/es/components/booking/info2/index.d.ts +0 -12
  82. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  83. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  84. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  85. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  86. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  87. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  88. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  89. package/es/components/booking/info2/service/index.d.ts +0 -4
  90. package/es/components/booking/info2/utils.d.ts +0 -4
  91. package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
  92. package/es/components/booking/locales.d.ts +0 -828
  93. package/es/components/booking/materiels/duration/index.d.ts +0 -13
  94. package/es/components/booking/model.d.ts +0 -108
  95. package/es/components/eftposPay/const.d.ts +0 -184
  96. package/es/components/eftposPay/hooks.d.ts +0 -35
  97. package/es/components/eftposPay/index.d.ts +0 -4
  98. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  99. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  100. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  101. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  102. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  103. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  104. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  105. package/es/components/eftposPay/pay.d.ts +0 -20
  106. package/es/components/eftposPay/payo/config.d.ts +0 -12
  107. package/es/components/eftposPay/store/index.d.ts +0 -355
  108. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  109. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  110. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  111. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  112. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
  113. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  114. package/es/components/eventBooking/index.d.ts +0 -3
  115. package/es/components/eventBooking/locales.d.ts +0 -246
  116. package/es/components/index.d.ts +0 -20
  117. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  118. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
  119. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
  120. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  121. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  122. package/es/components/pay/toC/index.d.ts +0 -3
  123. package/es/components/pay/toC/locales.d.ts +0 -289
  124. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  125. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  126. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
  127. package/es/components/stepController/components/Content/index.d.ts +0 -7
  128. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  129. package/es/components/stepController/components/Header/index.d.ts +0 -20
  130. package/es/components/stepController/index.d.ts +0 -5
  131. package/es/components/stepController/locales.d.ts +0 -27
  132. package/es/components/stepController/types.d.ts +0 -23
  133. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  134. package/es/components/ticketBooking/serve.d.ts +0 -287
  135. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  136. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  137. package/es/components/ticketBooking/utils/index.d.ts +0 -23
  138. package/es/hooks/useWindowSize.d.ts +0 -5
  139. package/es/index.d.ts +0 -47
  140. package/es/utils/index.d.ts +0 -23
  141. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  142. package/lib/components/Sales/Cart/index.d.ts +0 -53
  143. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  144. package/lib/components/Sales/Checkout/index.d.ts +0 -37
  145. package/lib/components/Sales/Checkout/serve.d.ts +0 -15
  146. package/lib/components/Sales/Checkout/utils.d.ts +0 -40
  147. package/lib/components/Sales/Customer/index.d.ts +0 -25
  148. package/lib/components/Sales/Resource/index.d.ts +0 -26
  149. package/lib/components/Sales/Resource/serve.d.ts +0 -12
  150. package/lib/components/Sales/Summary/index.d.ts +0 -35
  151. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  152. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  153. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  154. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
  155. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  156. package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  157. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
  158. package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  159. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  160. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
  161. package/lib/components/appointmentBooking/index.d.ts +0 -3
  162. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  163. package/lib/components/booking/components/footer/index.d.ts +0 -11
  164. package/lib/components/booking/components/footer/utils.d.ts +0 -41
  165. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  166. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  167. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  168. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  169. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  170. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  171. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  172. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  173. package/lib/components/booking/hooks/useClearCart.d.ts +0 -2
  174. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  175. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  176. package/lib/components/booking/info/client/index.d.ts +0 -4
  177. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  178. package/lib/components/booking/info/index.d.ts +0 -3
  179. package/lib/components/booking/info/model.d.ts +0 -5
  180. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  181. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  182. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  183. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  184. package/lib/components/booking/info/service2/utils.d.ts +0 -247
  185. package/lib/components/booking/info/utils.d.ts +0 -50
  186. package/lib/components/booking/info2/index.d.ts +0 -12
  187. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  188. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  189. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  190. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  191. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  192. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  193. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  194. package/lib/components/booking/info2/service/index.d.ts +0 -4
  195. package/lib/components/booking/info2/utils.d.ts +0 -4
  196. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
  197. package/lib/components/booking/locales.d.ts +0 -828
  198. package/lib/components/booking/materiels/duration/index.d.ts +0 -13
  199. package/lib/components/booking/model.d.ts +0 -108
  200. package/lib/components/eftposPay/const.d.ts +0 -184
  201. package/lib/components/eftposPay/hooks.d.ts +0 -35
  202. package/lib/components/eftposPay/index.d.ts +0 -4
  203. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  204. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  205. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  206. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  207. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  208. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  209. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  210. package/lib/components/eftposPay/pay.d.ts +0 -20
  211. package/lib/components/eftposPay/payo/config.d.ts +0 -12
  212. package/lib/components/eftposPay/store/index.d.ts +0 -355
  213. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  214. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  215. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  216. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  217. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
  218. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  219. package/lib/components/eventBooking/index.d.ts +0 -3
  220. package/lib/components/eventBooking/locales.d.ts +0 -246
  221. package/lib/components/index.d.ts +0 -20
  222. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  223. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
  224. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
  225. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  226. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  227. package/lib/components/pay/toC/index.d.ts +0 -3
  228. package/lib/components/pay/toC/locales.d.ts +0 -289
  229. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  230. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  231. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
  232. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  233. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  234. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  235. package/lib/components/stepController/index.d.ts +0 -5
  236. package/lib/components/stepController/locales.d.ts +0 -27
  237. package/lib/components/stepController/types.d.ts +0 -23
  238. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  239. package/lib/components/ticketBooking/serve.d.ts +0 -287
  240. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  241. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  242. package/lib/components/ticketBooking/utils/index.d.ts +0 -23
  243. package/lib/hooks/useWindowSize.d.ts +0 -5
  244. package/lib/index.d.ts +0 -47
  245. package/lib/utils/index.d.ts +0 -23
@@ -13,8 +13,6 @@ 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 { formatCustomer } from "../../utils";
17
-
18
16
  // 类型声明
19
17
 
20
18
  export var checkLogin = /*#__PURE__*/function () {
@@ -31,17 +29,14 @@ export var checkLogin = /*#__PURE__*/function () {
31
29
  openLoginModal({
32
30
  callback: function callback(status) {
33
31
  if (status === 'success') {
34
- if (!isFormSubject) {
35
- var _utils$storage;
36
- var user = JSON.parse((utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('customer')) || '{}');
37
- var currentUser = formatCustomer(user);
38
- var meAccount = accountLists === null || accountLists === void 0 ? void 0 : accountLists.find(function (d) {
39
- return !(d !== null && d !== void 0 && d.isGuest);
40
- });
41
- appointmentBooking.setLoginAccount(meAccount === null || meAccount === void 0 ? void 0 : meAccount.id, currentUser);
42
- } else {
43
- getHolders();
44
- }
32
+ // if (!isFormSubject) {
33
+ // const user = JSON.parse(utils?.storage?.get('customer') || '{}');
34
+ // const currentUser = formatCustomer(user);
35
+ // const meAccount = accountLists?.find((d: any) => !d?.isGuest);
36
+ // appointmentBooking.setLoginAccount(meAccount?.id, currentUser);
37
+ // } else {
38
+ // getHolders();
39
+ // }
45
40
  }
46
41
  }
47
42
  });
@@ -1,9 +1,12 @@
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
1
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
2
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
4
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
5
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ 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; }
7
+ 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); } }
8
+ 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); }); }; }
9
+ 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); }
7
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
11
  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."); }
9
12
  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); }
@@ -22,12 +25,20 @@ import TimeSlicing from "../TimeSlicing";
22
25
  import Guest from "../Guest";
23
26
  import Form from "../Form";
24
27
  import ConfirmInformation from "../ConfirmInformation";
28
+
29
+ // 创建一个包装组件,将 forwardRef 组件转换为普通组件
30
+ // const Services = (props: any) => {
31
+ // return <ServicesOriginal {...props} />;
32
+ // };
25
33
  import { useAppointmentBookingContext } from "../../context";
26
34
  import PolicyModal from "../../deposit/components/PolicyModal";
27
- import { useAppointmentBookingCart, useAppointmentBookingStep, useAppointmentBookingSetting, useAppointmentBookingLogin, useAppointmentBookingAccount, useShopDiscount } from "../../hooks";
35
+ import { useAppointmentBookingCart, useAppointmentBookingStep, useAppointmentBookingSetting, useAppointmentBookingLogin, useAppointmentBookingAccount, useShopDiscount, contextUtils } from "../../hooks";
28
36
  import "./index.less";
37
+ import useComponents from "../../../../hooks/useComponents";
38
+ import useEngineContext from "../../../../hooks/useEngineContext";
39
+ import { formatCustomer } from "../../utils";
29
40
  var Layout = function Layout() {
30
- var _currentStep$step, _currentStep$step3, _currentStep$step4, _currentStep$step6, _currentStep$step8;
41
+ var _useEngineContext$eng2, _currentStep$step, _currentStep$step3, _currentStep$step4, _currentStep$step6, _currentStep$step8;
31
42
  var stepRef = useRef();
32
43
  var _ref = useAppointmentBookingContext(),
33
44
  currentStep = _ref.currentStep,
@@ -52,6 +63,16 @@ var Layout = function Layout() {
52
63
  removeStep = _useAppointmentBookin4.removeStep;
53
64
  var _useShopDiscount = useShopDiscount(),
54
65
  shopDiscount = _useShopDiscount.shopDiscount;
66
+ var _useEngineContext$eng = (_useEngineContext$eng2 = useEngineContext().engine) === null || _useEngineContext$eng2 === void 0 ? void 0 : _useEngineContext$eng2.props,
67
+ customPageData = _useEngineContext$eng.customPageData;
68
+ var _useComponents = useComponents({
69
+ components: ['CustomComponent']
70
+ }),
71
+ _useComponents2 = _slicedToArray(_useComponents, 1),
72
+ CustomComponent = _useComponents2[0];
73
+
74
+ // 调试:检查 CustomComponent 是什么
75
+ console.log('CustomComponent:', CustomComponent, _typeof(CustomComponent), CustomComponent === null || CustomComponent === void 0 ? void 0 : CustomComponent.$$typeof);
55
76
 
56
77
  // 不要删除
57
78
  useAppointmentBookingCart();
@@ -60,6 +81,51 @@ var Layout = function Layout() {
60
81
  _useState2 = _slicedToArray(_useState, 2),
61
82
  params = _useState2[0],
62
83
  setParams = _useState2[1];
84
+ var utils = contextUtils();
85
+ var context = useEngineContext();
86
+ var pubsub = context.appHelper.utils.pubsub;
87
+ useEffect(function () {
88
+ var handleLoginSuccess = /*#__PURE__*/function () {
89
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
90
+ var _utils$storage, user, currentUser, accountLists, meAccount;
91
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
92
+ while (1) switch (_context.prev = _context.next) {
93
+ case 0:
94
+ if (isFormSubject) {
95
+ _context.next = 10;
96
+ break;
97
+ }
98
+ user = JSON.parse((utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('customer')) || '{}');
99
+ currentUser = formatCustomer(user);
100
+ _context.next = 5;
101
+ return appointmentBooking.getAccounts();
102
+ case 5:
103
+ accountLists = _context.sent;
104
+ meAccount = accountLists === null || accountLists === void 0 ? void 0 : accountLists.find(function (d) {
105
+ return !(d !== null && d !== void 0 && d.isGuest);
106
+ });
107
+ appointmentBooking.setLoginAccount(meAccount === null || meAccount === void 0 ? void 0 : meAccount.id, currentUser);
108
+ _context.next = 11;
109
+ break;
110
+ case 10:
111
+ if (!isRetailTemplate) {
112
+ getHolders();
113
+ }
114
+ case 11:
115
+ case "end":
116
+ return _context.stop();
117
+ }
118
+ }, _callee);
119
+ }));
120
+ return function handleLoginSuccess() {
121
+ return _ref2.apply(this, arguments);
122
+ };
123
+ }();
124
+ pubsub.subscribe('pisell1.login.success', handleLoginSuccess);
125
+ return function () {
126
+ pubsub.unsubscribe('pisell1.login.success');
127
+ };
128
+ }, []);
63
129
  useEffect(function () {
64
130
  appointmentBooking.removeStep('fill-form');
65
131
  return function () {
@@ -147,11 +213,24 @@ var Layout = function Layout() {
147
213
  } else {
148
214
  Com = components[key];
149
215
  }
150
- return /*#__PURE__*/React.createElement(Com, {
151
- onChange: setParams,
152
- params: params,
153
- ref: stepRef
154
- });
216
+ if (key === 'select-service') {
217
+ return /*#__PURE__*/React.createElement(CustomComponent, {
218
+ block: customPageData === null || customPageData === void 0 ? void 0 : customPageData.block,
219
+ customComponents: {
220
+ product_list: /*#__PURE__*/React.createElement(Com, {
221
+ onChange: setParams,
222
+ params: params,
223
+ ref: stepRef
224
+ })
225
+ }
226
+ });
227
+ } else {
228
+ return /*#__PURE__*/React.createElement(Com, {
229
+ onChange: setParams,
230
+ params: params,
231
+ ref: stepRef
232
+ });
233
+ }
155
234
  }, [currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key]);
156
235
 
157
236
  /**
@@ -179,7 +179,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
179
179
  if (type === 'duration' || appointmentBooking.isCartHasDurationProduct()) {
180
180
  stepList = appointmentBooking.getStepList();
181
181
  hasResourceStep = stepList === null || stepList === void 0 ? void 0 : stepList.find(function (item) {
182
- return (item === null || item === void 0 ? void 0 : item.key) === "select-resource";
182
+ return (item === null || item === void 0 ? void 0 : item.key) === 'select-resource';
183
183
  });
184
184
  if (hasResourceStep) {
185
185
  description = locales.getText('pisell2.appointment.select.time');
@@ -233,12 +233,17 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
233
233
  }
234
234
  return ((_productListBlock = productListBlock) === null || _productListBlock === void 0 ? void 0 : _productListBlock.setting) || {};
235
235
  }, [context]);
236
+ var _isMobile = useMemo(function () {
237
+ if (typeof isMobile === 'function') return isMobile();
238
+ return isMobile;
239
+ }, isMobile);
236
240
  return /*#__PURE__*/React.createElement("div", {
237
241
  className: "appointment-service-wrap"
238
242
  }, /*#__PURE__*/React.createElement(ProductSelect, {
239
243
  dataSource: products,
240
244
  onChange: handleSelectProduct,
241
- scrollDom: isMobile() ? '.parallel-content-wrap' : '.parallel-booking-wrap',
245
+ scrollDom: _isMobile ? '.parallel-content-wrap' : '.parallel-booking-wrap',
246
+ offsetDom: _isMobile ? '' : '.pisell-section-headers',
242
247
  loading: productLoading,
243
248
  emptyDescription: locales.getText('pisell2.appointment.booking.empty.service'),
244
249
  token: {
@@ -26,7 +26,6 @@ import { locales } from '@pisell/utils';
26
26
  import useEngineContext from "../../../../hooks/useEngineContext";
27
27
  import { PisellInput, PisellGoodPassCard, PisellText, PisellToast } from '@pisell/materials';
28
28
  import { useAppointmentBooking, useShopDiscount, useAppointmentBookingLogin, useAppointmentBookingAccount } from "../../hooks";
29
- import { formatCustomer } from "../../utils";
30
29
  import "../../../booking/components/voucher/index.less";
31
30
  import "./index.less";
32
31
  var ShopDiscountHooks = {
@@ -179,15 +178,16 @@ var VoucherCard = function VoucherCard(props) {
179
178
  if (!action) return;
180
179
  openLoginModal({
181
180
  callback: function callback(status) {
182
- var _utils$store;
183
- var user = (_utils$store = utils.store) === null || _utils$store === void 0 || (_utils$store = _utils$store.getState()) === null || _utils$store === void 0 || (_utils$store = _utils$store.global) === null || _utils$store === void 0 ? void 0 : _utils$store.userInfo;
184
- var currentUser = formatCustomer(user);
185
- var meAccount = accountLists === null || accountLists === void 0 ? void 0 : accountLists.find(function (d) {
186
- return !(d !== null && d !== void 0 && d.isGuest);
187
- });
188
- if (status === 'success') {
189
- appointmentBooking.setLoginAccount(meAccount === null || meAccount === void 0 ? void 0 : meAccount.id, currentUser);
190
- }
181
+ // const user = utils.store?.getState()?.global?.userInfo;
182
+ // const currentUser = formatCustomer(user);
183
+ // const meAccount = accountLists?.find((d: any) => !d?.isGuest);
184
+
185
+ // if (status === 'success') {
186
+ // // appointmentBooking.setLoginAccount(
187
+ // // meAccount?.id,
188
+ // // currentUser
189
+ // // );
190
+ // }
191
191
  }
192
192
  });
193
193
  }
@@ -17,7 +17,7 @@ import { useState, useEffect, useMemo } from 'react';
17
17
  import { locales } from "@pisell/utils";
18
18
  import { usePisellOS } from "../../hooks/useEngineContext";
19
19
  import useEngineContext from "../../hooks/useEngineContext";
20
- import { sortResources, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatCustomer, formatHolder, Toast } from "./utils";
20
+ import { sortResources, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
21
21
  import { useAppointmentBookingContext } from "./context";
22
22
  import { scrollToFirstErrorCard } from "./components/Resource/utils";
23
23
  export var useAppointmentBooking = function useAppointmentBooking() {
@@ -347,43 +347,41 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
347
347
  // 检测是否登录
348
348
  var checkLogin = /*#__PURE__*/function () {
349
349
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
350
- var accountLists;
350
+ var pubsub;
351
351
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
352
352
  while (1) switch (_context3.prev = _context3.next) {
353
353
  case 0:
354
354
  if (isLogin) {
355
- _context3.next = 7;
355
+ _context3.next = 6;
356
356
  break;
357
357
  }
358
- _context3.next = 3;
359
- return appointmentBooking.getAccounts();
360
- case 3:
361
- accountLists = _context3.sent;
358
+ // const accountLists = await appointmentBooking.getAccounts()
359
+ pubsub = utils.pubsub;
360
+ pubsub.once('pisell1.login.success', function () {
361
+ checkHolder();
362
+ });
362
363
  return _context3.abrupt("return", openLoginModal({
363
364
  callback: function callback(status) {
364
- if (status === 'success') {
365
- if (!isFormSubject) {
366
- var _utils$storage;
367
- var user = JSON.parse((utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('customer')) || '{}');
368
- var currentUser = formatCustomer(user);
369
- var meAccount = accountLists === null || accountLists === void 0 ? void 0 : accountLists.find(function (d) {
370
- return !(d !== null && d !== void 0 && d.isGuest);
371
- });
372
- appointmentBooking.setLoginAccount(meAccount === null || meAccount === void 0 ? void 0 : meAccount.id, currentUser);
373
- } else {
374
- if (!isRetailTemplate) {
375
- getHolders();
376
- }
377
- }
378
-
379
- // 继续后续流程
380
- checkHolder();
381
- }
365
+ // if (status === 'success') {
366
+ // // if (!isFormSubject) {
367
+ // // const user = JSON.parse(utils?.storage?.get('customer') || '{}');
368
+ // // const currentUser = formatCustomer(user);
369
+ // // const meAccount = accountLists?.find((d: any) => !d?.isGuest);
370
+ // // appointmentBooking.setLoginAccount(meAccount?.id, currentUser);
371
+ // // } else {
372
+ // // if (!isRetailTemplate) {
373
+ // // getHolders();
374
+ // // }
375
+ // // }
376
+
377
+ // // 继续后续流程
378
+ // checkHolder()
379
+ // }
382
380
  }
383
381
  }));
384
- case 7:
382
+ case 6:
385
383
  return _context3.abrupt("return", checkHolder());
386
- case 8:
384
+ case 7:
387
385
  case "end":
388
386
  return _context3.stop();
389
387
  }
@@ -537,12 +535,12 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
537
535
  bookingSubject = _ref14.bookingSubject;
538
536
  var getCartAndSummary = /*#__PURE__*/function () {
539
537
  var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
540
- var _utils$storage2;
538
+ var _utils$storage;
541
539
  var locale, symbol, carts, accountLists, newCarts, summary;
542
540
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
543
541
  while (1) switch (_context6.prev = _context6.next) {
544
542
  case 0:
545
- locale = (utils === null || utils === void 0 || (_utils$storage2 = utils.storage) === null || _utils$storage2 === void 0 ? void 0 : _utils$storage2.get('umi_locale')) || 'en-US';
543
+ locale = (utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('umi_locale')) || 'en-US';
546
544
  symbol = (utils === null || utils === void 0 ? void 0 : utils.getSymbolic()) || '$';
547
545
  _context6.next = 4;
548
546
  return appointmentBooking.getCart();
@@ -621,7 +619,7 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
621
619
  utils.action({
622
620
  type: 'pisell1.login',
623
621
  data: {
624
- type: 'plugin'
622
+ // type: 'plugin'
625
623
  },
626
624
  callback: callback
627
625
  });
@@ -1,4 +1,4 @@
1
- var _excluded = ["showTab", "layout", "list", "onChange", "amountSymbol", "scrollDom", "value", "loading", "emptyDescription"];
1
+ var _excluded = ["showTab", "layout", "list", "onChange", "amountSymbol", "scrollDom", "offsetDom", "value", "loading", "emptyDescription"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
4
4
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -16,7 +16,24 @@ import { useMemoizedFn, useDebounceFn } from 'ahooks';
16
16
  import { locales } from '@pisell/utils';
17
17
  import Tabs from "./tabs";
18
18
  import ProductGroup, { ProductGroupSkeleton } from "../productGroup";
19
- var io = null;
19
+ // 获取元素相对于指定滚动容器的偏移量
20
+ var getOffsetTopRelativeToScrollContainer = function getOffsetTopRelativeToScrollContainer(targetElement, scrollContainer) {
21
+ if (!targetElement || !scrollContainer) return 0;
22
+
23
+ // 如果目标元素就是滚动容器本身,返回0
24
+ if (targetElement === scrollContainer) {
25
+ return 0;
26
+ }
27
+
28
+ // 使用getBoundingClientRect计算相对偏移量
29
+ var targetRect = targetElement.getBoundingClientRect();
30
+ var containerRect = scrollContainer.getBoundingClientRect();
31
+
32
+ // targetRect.top - containerRect.top 得到目标元素相对于容器顶部的可视距离
33
+ // 考虑容器已经滚动的距离 再加上scrollContainer.scrollTop
34
+ // 这样得到的是目标元素在容器内容中的绝对位置
35
+ return targetRect.top - containerRect.top + scrollContainer.scrollTop;
36
+ };
20
37
  var TabProduct = function TabProduct(props) {
21
38
  var _props$showTab = props.showTab,
22
39
  showTab = _props$showTab === void 0 ? true : _props$showTab,
@@ -26,6 +43,7 @@ var TabProduct = function TabProduct(props) {
26
43
  _props$amountSymbol = props.amountSymbol,
27
44
  amountSymbol = _props$amountSymbol === void 0 ? '$' : _props$amountSymbol,
28
45
  scrollDom = props.scrollDom,
46
+ offsetDom = props.offsetDom,
29
47
  currentProductId = props.value,
30
48
  loading = props.loading,
31
49
  emptyDescription = props.emptyDescription,
@@ -35,6 +53,8 @@ var TabProduct = function TabProduct(props) {
35
53
  _useState2 = _slicedToArray(_useState, 2),
36
54
  currentGroupId = _useState2[0],
37
55
  setCurrentGroupId = _useState2[1];
56
+ var tabLocatingRef = useRef(false);
57
+ var ioRef = useRef(null);
38
58
  useEffect(function () {
39
59
  if (list !== null && list !== void 0 && list.length) {
40
60
  setCurrentGroupId(list[0].id);
@@ -42,6 +62,11 @@ var TabProduct = function TabProduct(props) {
42
62
  handleObserver();
43
63
  });
44
64
  }
65
+
66
+ // 清理函数
67
+ return function () {
68
+ handleUnobserver();
69
+ };
45
70
  }, [list]);
46
71
 
47
72
  // 添加防抖的scroll函数
@@ -56,7 +81,7 @@ var TabProduct = function TabProduct(props) {
56
81
  var _marginTop = 270;
57
82
  var _marginBottom = window.innerHeight - 70 - 200 - 70;
58
83
  var _rootMargin = "".concat(_marginTop * -1, "px 0px ").concat(_marginBottom * -1, "px 0px");
59
- io = new IntersectionObserver(function (entries) {
84
+ ioRef.current = new IntersectionObserver(function (entries) {
60
85
  var enteringEntries = entries.filter(function (entry) {
61
86
  return entry.isIntersecting;
62
87
  });
@@ -66,20 +91,24 @@ var TabProduct = function TabProduct(props) {
66
91
  var topMostEntry = enteringEntries.reduce(function (top, current) {
67
92
  return current.boundingClientRect.top < top.boundingClientRect.top ? current : top;
68
93
  });
69
- var _topMostEntry$target$ = topMostEntry === null || topMostEntry === void 0 || (_topMostEntry$target = topMostEntry.target) === null || _topMostEntry$target === void 0 || (_topMostEntry$target = _topMostEntry$target.id) === null || _topMostEntry$target === void 0 ? void 0 : _topMostEntry$target.split('-'),
70
- _topMostEntry$target$2 = _slicedToArray(_topMostEntry$target$, 2),
71
- name = _topMostEntry$target$2[0],
72
- id = _topMostEntry$target$2[1];
73
- var newGroupId = Number(id);
74
- setCurrentGroupId(newGroupId);
75
- debouncedScroll.run(id);
76
- // tabsRef?.current?.scroll(id);
94
+ var targetId = topMostEntry === null || topMostEntry === void 0 || (_topMostEntry$target = topMostEntry.target) === null || _topMostEntry$target === void 0 ? void 0 : _topMostEntry$target.id;
95
+ if (targetId) {
96
+ var _targetId$split = targetId.split('-'),
97
+ _targetId$split2 = _slicedToArray(_targetId$split, 2),
98
+ name = _targetId$split2[0],
99
+ id = _targetId$split2[1];
100
+ var newGroupId = Number(id);
101
+ if (!tabLocatingRef.current && !isNaN(newGroupId)) {
102
+ setCurrentGroupId(newGroupId);
103
+ debouncedScroll.run(id);
104
+ }
105
+ }
77
106
  }
78
107
  }, {
79
108
  root: null,
80
109
  rootMargin: _rootMargin
81
110
  });
82
- if (list !== null && list !== void 0 && list.length) {
111
+ if (list !== null && list !== void 0 && list.length && ioRef.current) {
83
112
  var _iterator = _createForOfIteratorHelper(list),
84
113
  _step;
85
114
  try {
@@ -87,7 +116,7 @@ var TabProduct = function TabProduct(props) {
87
116
  var item = _step.value;
88
117
  var _item = document.querySelector("#list-".concat(item.id));
89
118
  if (_item) {
90
- io.observe(_item);
119
+ ioRef.current.observe(_item);
91
120
  }
92
121
  }
93
122
  } catch (err) {
@@ -98,7 +127,7 @@ var TabProduct = function TabProduct(props) {
98
127
  }
99
128
  });
100
129
  var handleUnobserver = useMemoizedFn(function () {
101
- if (list !== null && list !== void 0 && list.length && io) {
130
+ if (list !== null && list !== void 0 && list.length && ioRef.current) {
102
131
  var _iterator2 = _createForOfIteratorHelper(list),
103
132
  _step2;
104
133
  try {
@@ -106,7 +135,7 @@ var TabProduct = function TabProduct(props) {
106
135
  var item = _step2.value;
107
136
  var _item = document.querySelector("#list-".concat(item.id));
108
137
  if (_item) {
109
- io.unobserve(_item);
138
+ ioRef.current.unobserve(_item);
110
139
  }
111
140
  }
112
141
  } catch (err) {
@@ -115,6 +144,11 @@ var TabProduct = function TabProduct(props) {
115
144
  _iterator2.f();
116
145
  }
117
146
  }
147
+ // 断开观察器连接
148
+ if (ioRef.current) {
149
+ ioRef.current.disconnect();
150
+ ioRef.current = null;
151
+ }
118
152
  });
119
153
  var renderContent = function renderContent() {
120
154
  if (loading) {
@@ -130,7 +164,7 @@ var TabProduct = function TabProduct(props) {
130
164
  return list.map(function (item, i) {
131
165
  return /*#__PURE__*/React.createElement("div", {
132
166
  id: "list-".concat(item.id),
133
- key: i
167
+ key: "list-".concat(item.id)
134
168
  }, /*#__PURE__*/React.createElement(ProductGroup, _extends({
135
169
  onSelectProduct: onChange,
136
170
  currentProductId: currentProductId,
@@ -157,7 +191,7 @@ var TabProduct = function TabProduct(props) {
157
191
  shape: 'round'
158
192
  })));
159
193
  }, []);
160
- return /*#__PURE__*/React.createElement(React.Fragment, null, showTab ? /*#__PURE__*/React.createElement("div", {
194
+ return /*#__PURE__*/React.createElement(React.Fragment, null, showTab && list && list.length > 1 ? /*#__PURE__*/React.createElement("div", {
161
195
  className: "pisell-product-select-tabs-wrapper"
162
196
  }, loading ? tabSkeleton : /*#__PURE__*/React.createElement(Tabs, {
163
197
  ref: tabsRef,
@@ -165,31 +199,61 @@ var TabProduct = function TabProduct(props) {
165
199
  rowKey: 'id',
166
200
  tab: currentGroupId,
167
201
  onChange: function onChange(e) {
168
- var _document, _document2;
169
- var comWrapper = document.querySelector('.pisell-product-select-wrapper');
170
- var categoryDom = document.querySelector('.pisell-product-select-tabs-wrapper');
171
- var wrapperOffsetTop = comWrapper.offsetTop;
172
- var top = 0;
173
- if (categoryDom) {
174
- top = categoryDom.offsetHeight;
175
- }
176
- var dom = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector('#list-' + e);
177
- var main = (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector(scrollDom);
178
- if (dom && main) {
179
- var _list$;
180
- if (e === ((_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.id)) {
181
- main.scrollTop = 0;
182
- } else {
183
- main.scrollTop = dom.offsetTop - top - wrapperOffsetTop;
202
+ try {
203
+ var _document, _document2, _document3;
204
+ // 获取产品选择器包装容器
205
+ var productSelectWrapper = document.querySelector('.pisell-product-select-wrapper');
206
+ // 获取标签页包装容器
207
+ var tabsWrapper = document.querySelector('.pisell-product-select-tabs-wrapper');
208
+ // 计算标签页高度,用于滚动时的偏移
209
+ var tabsHeight = 0;
210
+ if (tabsWrapper) {
211
+ tabsHeight = tabsWrapper.offsetHeight;
184
212
  }
213
+
214
+ // 获取目标列表元素和滚动容器
215
+ var targetListElement = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector('#list-' + e);
216
+ var scrollContainer = scrollDom ? (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector(scrollDom) : null;
217
+ // 获取额外偏移元素(如固定头部等)
218
+ var offsetElement = offsetDom ? (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector(offsetDom) : null;
219
+ var extraOffset = offsetElement ? offsetElement.clientHeight : 0;
220
+
221
+ // 停止观察器,防止滚动时触发tab切换
222
+ handleUnobserver();
223
+ // 标记正在进行tab定位,避免滚动时的干扰
224
+ tabLocatingRef.current = true;
225
+ if (targetListElement && scrollContainer) {
226
+ var _list$;
227
+ if (e === ((_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.id)) {
228
+ // 如果是第一个tab,滚动到产品选择器包装容器的位置
229
+ if (productSelectWrapper) {
230
+ var wrapperOffsetTop = getOffsetTopRelativeToScrollContainer(productSelectWrapper, scrollContainer);
231
+ scrollContainer.scrollTop = wrapperOffsetTop - extraOffset;
232
+ }
233
+ } else {
234
+ // 其他tab,滚动到对应列表元素位置,需要减去标签页高度
235
+ var listOffsetTop = getOffsetTopRelativeToScrollContainer(targetListElement, scrollContainer);
236
+ scrollContainer.scrollTop = listOffsetTop - tabsHeight - extraOffset;
237
+ }
238
+ }
239
+
240
+ // 更新当前选中的分组ID
241
+ setCurrentGroupId(e);
242
+ // 触发防抖滚动
243
+ debouncedScroll.run(e);
244
+ // 延迟恢复观察器
245
+ setTimeout(function () {
246
+ tabLocatingRef.current = false;
247
+ handleObserver();
248
+ }, 500);
249
+ } catch (error) {
250
+ console.error('Tab onChange error:', error);
251
+ // 即使出错也要恢复状态
252
+ tabLocatingRef.current = false;
253
+ setCurrentGroupId(e);
185
254
  }
186
- handleUnobserver();
187
- setCurrentGroupId(e);
188
- setTimeout(function () {
189
- handleObserver();
190
- }, 1000);
191
255
  }
192
- })) : null, /*#__PURE__*/React.createElement("div", {
256
+ })) : /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("br", null)), /*#__PURE__*/React.createElement("div", {
193
257
  className: "pisell-product-select-product-list"
194
258
  }, renderContent()));
195
259
  };
@@ -107,6 +107,7 @@
107
107
  text-overflow: ellipsis;
108
108
  overflow: hidden;
109
109
  white-space: nowrap;
110
+ user-select: none;
110
111
  }
111
112
 
112
113
  &:hover {