@pisell/private-materials 6.2.9 → 6.2.11

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 (240) 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 +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  13. package/es/components/appointmentBooking/components/Content/index.js +87 -8
  14. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  17. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  18. package/es/components/appointmentBooking/hooks.js +28 -30
  19. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  20. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  21. package/es/components/booking/components/browserSelect/index.js +1 -1
  22. package/es/components/booking/components/customSelect/index.js +1 -0
  23. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  24. package/es/components/booking/forms/model.js +5 -5
  25. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  26. package/es/components/booking/forms/table/index.d.ts +1 -0
  27. package/es/components/booking/hooks/useClearCart.js +11 -8
  28. package/es/components/booking/info/client/index.js +3 -2
  29. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  30. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  31. package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
  32. package/es/components/booking/info/service/Lists.js +36 -26
  33. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  34. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  35. package/es/components/booking/info/service/like/index.d.ts +1 -0
  36. package/es/components/booking/info/service/like/index.js +1 -1
  37. package/es/components/booking/info/service2/utils.js +20 -21
  38. package/es/components/booking/info2/index.js +1 -0
  39. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  40. package/es/components/booking/info2/service/addService/utils.js +6 -3
  41. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  42. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  43. package/es/components/booking/info2/service/editService/index.js +258 -165
  44. package/es/components/booking/info2/service/index.js +19 -15
  45. package/es/components/booking/materiels/duration/index.js +9 -2
  46. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  47. package/es/components/booking/materiels/startTime/index.js +1 -1
  48. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  49. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  50. package/es/components/booking/notes/model.js +5 -5
  51. package/es/components/booking/payments/model.js +5 -5
  52. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  53. package/es/components/eftpos/form/index.d.ts +1 -0
  54. package/es/components/eftpos/group/index.d.ts +1 -0
  55. package/es/components/eftpos/hooks.d.ts +1 -0
  56. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  57. package/es/components/eftpos/icon/device.d.ts +1 -0
  58. package/es/components/eftpos/receipt/index.d.ts +1 -0
  59. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  60. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  61. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  63. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  64. package/es/components/eftposPay/hooks.d.ts +2 -2
  65. package/es/components/eftposPay/store/index.d.ts +3 -3
  66. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  67. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  76. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  77. package/es/components/listComponent/index.js +5 -5
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  81. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  82. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  83. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  84. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  85. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  86. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  87. package/es/components/productExtension/card/index.js +3 -3
  88. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  89. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  90. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  91. package/es/components/productExtension/fields/Forms/index.js +12 -12
  92. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  93. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  94. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  95. package/es/components/productExtension/server.js +2 -2
  96. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  97. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  98. package/es/components/productSelect/index.d.ts +2 -0
  99. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  100. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  101. package/es/components/schedules/calendar/index.js +4 -4
  102. package/es/components/schedules/calendar/serve.js +2 -2
  103. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  104. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  105. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  106. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  107. package/es/components/schedules/components/ResourceList/index.js +1 -1
  108. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  109. package/es/components/schedules/components/Search/index.js +5 -5
  110. package/es/components/schedules/model.js +5 -5
  111. package/es/components/schedules/openHours/index.js +1 -1
  112. package/es/components/schedules/openHours/serve.js +2 -2
  113. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  115. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  116. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  117. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  118. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  119. package/es/components/schedules/products/index.d.ts +1 -0
  120. package/es/components/schedules/products/serve.js +2 -2
  121. package/es/components/schedules/products/utils.js +5 -5
  122. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  123. package/es/components/schedules/resources/detail/index.js +10 -10
  124. package/es/components/schedules/resources/list/index.js +2 -2
  125. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  126. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  127. package/es/components/schedules/resources/serve.js +2 -2
  128. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  129. package/es/components/schedules/utils.js +4 -4
  130. package/es/components/selectModal/index.js +2 -2
  131. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  132. package/es/components/shoppingCart/components/Cart/Product.js +48 -41
  133. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  134. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  135. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  136. package/es/components/ticketBooking/components/addServiceVariant/addService.js +175 -157
  137. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  138. package/es/components/ticketBooking/components/menuBar/index.js +38 -2
  139. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  140. package/es/components/ticketBooking/components/timeBar/index.js +78 -71
  141. package/es/components/ticketBooking/locales.d.ts +3 -0
  142. package/es/components/ticketBooking/locales.js +6 -3
  143. package/es/components/walletList/index.js +4 -4
  144. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  145. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  146. package/es/hooks/useComponents.js +1 -1
  147. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  148. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  149. package/lib/components/appointmentBooking/components/Content/index.js +44 -7
  150. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  151. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  152. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  153. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  154. package/lib/components/appointmentBooking/hooks.js +5 -16
  155. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  156. package/lib/components/booking/components/customSelect/index.js +1 -0
  157. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  158. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  159. package/lib/components/booking/forms/table/index.d.ts +1 -0
  160. package/lib/components/booking/hooks/useClearCart.js +16 -13
  161. package/lib/components/booking/info/client/index.js +5 -4
  162. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  163. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  164. package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
  165. package/lib/components/booking/info/service/Lists.js +35 -23
  166. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  167. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  168. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  169. package/lib/components/booking/info/service2/utils.js +17 -17
  170. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  171. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  172. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  173. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  174. package/lib/components/booking/info2/service/editService/index.js +132 -70
  175. package/lib/components/booking/info2/service/index.js +13 -9
  176. package/lib/components/booking/materiels/duration/index.js +7 -2
  177. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  178. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  179. package/lib/components/eftpos/form/index.d.ts +1 -0
  180. package/lib/components/eftpos/group/index.d.ts +1 -0
  181. package/lib/components/eftpos/hooks.d.ts +1 -0
  182. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  183. package/lib/components/eftpos/icon/device.d.ts +1 -0
  184. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  185. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  186. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  187. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  188. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  189. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  190. package/lib/components/eftposPay/hooks.d.ts +2 -2
  191. package/lib/components/eftposPay/store/index.d.ts +3 -3
  192. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  193. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  194. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  195. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  197. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  198. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  200. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  202. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  204. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  205. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  206. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  207. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  208. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  210. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  211. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  212. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  213. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  214. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  215. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  216. package/lib/components/productSelect/index.d.ts +2 -0
  217. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  218. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  219. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  220. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  221. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  222. package/lib/components/schedules/products/index.d.ts +1 -0
  223. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  224. package/lib/components/schedules/utils.js +1 -1
  225. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  226. package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
  227. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  228. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  229. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  230. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +143 -127
  231. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  232. package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
  233. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  234. package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
  235. package/lib/components/ticketBooking/locales.d.ts +3 -0
  236. package/lib/components/ticketBooking/locales.js +6 -3
  237. package/lib/components/walletList/index.js +3 -3
  238. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  239. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  240. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -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
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
2
2
  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
3
  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); }
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
8
8
  import classNames from "classnames";
@@ -13,6 +13,10 @@ import "./index.less";
13
13
 
14
14
  // tabs 子组件定义
15
15
 
16
+ // 定义主键类型
17
+
18
+ // Tabs 可传递的参数
19
+
16
20
  var Tabs = function Tabs(_ref, ref) {
17
21
  var renderTab = _ref.renderTab,
18
22
  rowKey = _ref.rowKey,
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
29
29
  onChange: function onChange(e) {
30
30
  var _resetProps$onChange;
31
31
  e.persist();
32
- (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
32
+ (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
33
33
  }
34
34
  }), _options);
35
35
  };
@@ -74,6 +74,7 @@ var CustomSelect = function CustomSelect(props, ref) {
74
74
  showDropDown = _props$showDropDown === void 0 ? true : _props$showDropDown,
75
75
  propsHandleOpenModal = props.handleOpenModal,
76
76
  handleDayChange = props.handleDayChange;
77
+ console.log('custom select');
77
78
  var searchRef = useRef();
78
79
 
79
80
  // 当前选择的值
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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 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
+ 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
4
  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
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -2,12 +2,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  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; }
3
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
4
  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); }
5
- import React from 'react';
5
+ import React, { useMemo } from 'react';
6
6
  import classNames from 'classnames';
7
7
  import { Iconfont } from '@pisell/materials';
8
8
  import { locales } from "@pisell/utils";
9
9
  var useClearCart = function useClearCart(state, dispatch) {
10
- var _state$service, _state$service2;
10
+ var _state$service3;
11
11
  var handleClear = function handleClear() {
12
12
  // 清除购物车
13
13
  dispatch({
@@ -17,11 +17,14 @@ var useClearCart = function useClearCart(state, dispatch) {
17
17
  }
18
18
  });
19
19
  };
20
- return !!((_state$service = state.service) !== null && _state$service !== void 0 && (_state$service = _state$service.value) !== null && _state$service !== void 0 && _state$service.length) && !state.channelDisabledEdit && /*#__PURE__*/React.createElement("span", {
21
- className: classNames('pisell-lowcode__booking-service-clear-btn', _defineProperty({}, 'pisell-lowcode__booking-service-clear-btn-disabled', !((_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length))),
22
- onClick: handleClear
23
- }, /*#__PURE__*/React.createElement(Iconfont, {
24
- type: "pisell2-trash-01"
25
- }), " ", /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart')));
20
+ return useMemo(function () {
21
+ var _state$service, _state$service2;
22
+ return !!((_state$service = state.service) !== null && _state$service !== void 0 && (_state$service = _state$service.value) !== null && _state$service !== void 0 && _state$service.length) && !state.channelDisabledEdit && /*#__PURE__*/React.createElement("span", {
23
+ className: classNames('pisell-lowcode__booking-service-clear-btn', _defineProperty({}, 'pisell-lowcode__booking-service-clear-btn-disabled', !((_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length))),
24
+ onClick: handleClear
25
+ }, /*#__PURE__*/React.createElement(Iconfont, {
26
+ type: "pisell2-trash-01"
27
+ }), " ", /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart')));
28
+ }, [(_state$service3 = state.service) === null || _state$service3 === void 0 || (_state$service3 = _state$service3.value) === null || _state$service3 === void 0 ? void 0 : _state$service3.length, state.channelDisabledEdit]);
26
29
  };
27
30
  export default useClearCart;
@@ -36,7 +36,7 @@ import { getWaiverTitle } from "../clientVariant/utils";
36
36
  import useGetHolderList from "../hooks/useGetHolderList";
37
37
  var isLoadClient = false;
38
38
  var Client = function Client() {
39
- var _state$client$value2, _state$client$value3, _state$client$value4, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _state$client$value10, _state$client$value11;
39
+ var _state$client$value2, _state$client4, _state$client$value3, _state$client$value4, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _state$client$value10, _state$client$value11;
40
40
  var modalRef = useRef();
41
41
  var _useState = useState(false),
42
42
  _useState2 = _slicedToArray(_useState, 2),
@@ -397,6 +397,7 @@ var Client = function Client() {
397
397
  }, locales.getText('pisell2.text.load-more'))) : null;
398
398
  }, [loadLoading, params, state.client.clients.length]);
399
399
  var customSelect = useMemo(function () {
400
+ console.log('render customSelect');
400
401
  return /*#__PURE__*/React.createElement(CustomSelect, {
401
402
  autoFocus: !state.isTerminal,
402
403
  modalOpen: state.modalOpen,
@@ -459,7 +460,7 @@ var Client = function Client() {
459
460
  return true;
460
461
  }
461
462
  });
462
- }, [state, renderList, loading, franchiseeLoading, params.search, loadMore]);
463
+ }, [state.isTerminal, state.modalOpen, (_state$client4 = state.client) === null || _state$client4 === void 0 ? void 0 : _state$client4.value, state.drawerMask, renderList, loading, franchiseeLoading, params.search, loadMore]);
463
464
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
464
465
  className: "pisell-lowcode__booking-client",
465
466
  onClick: function onClick() {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
2
3
  export default useIsLowSpeedNetwork;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;