@pisell/private-materials 6.3.177 → 6.3.179

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 (213) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +9 -9
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/index.js +90 -24
  11. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +24 -20
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Header/index.js +4 -24
  14. package/es/components/appointmentBooking/components/Voucher/index.js +10 -0
  15. package/es/components/appointmentBooking/hooks.d.ts +1 -17
  16. package/es/components/appointmentBooking/hooks.js +55 -128
  17. package/es/components/appointmentBooking/utils.d.ts +1 -0
  18. package/es/components/appointmentBooking/utils.js +54 -33
  19. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  20. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  21. package/es/components/booking/forms/table/index.d.ts +1 -0
  22. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  23. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  24. package/es/components/booking/info/index.d.ts +1 -0
  25. package/es/components/booking/info/service/like/index.d.ts +1 -0
  26. package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  27. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  28. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  29. package/es/components/eftpos/SettlementModal/Action.d.ts +1 -0
  30. package/es/components/eftpos/SettlementModal/index.d.ts +1 -0
  31. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  32. package/es/components/eftpos/form/index.d.ts +1 -0
  33. package/es/components/eftpos/group/index.d.ts +1 -0
  34. package/es/components/eftpos/hooks.d.ts +1 -0
  35. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  36. package/es/components/eftpos/icon/device.d.ts +1 -0
  37. package/es/components/eftpos/receipt/index.d.ts +1 -0
  38. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  39. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1 -2
  40. package/es/components/eftposPay/app.d.ts +1 -0
  41. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  42. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  43. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  44. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  45. package/es/components/eftposPay/device.js +4 -11
  46. package/es/components/eftposPay/hooks.d.ts +1 -1
  47. package/es/components/eftposPay/mx51/Action.d.ts +1 -0
  48. package/es/components/eftposPay/store/index.d.ts +1 -1
  49. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  50. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  51. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  52. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  53. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  54. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/progressBar/index.d.ts +1 -8
  60. package/es/components/eventBooking/components/progressBar/index.js +10 -30
  61. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  69. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  70. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  71. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  72. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  73. package/es/components/scanOrder/components/Check/index.js +46 -187
  74. package/es/components/scanOrder/components/Check/index.less +0 -39
  75. package/es/components/scanOrder/components/Content/index.js +72 -189
  76. package/es/components/scanOrder/components/Menu/index.js +5 -11
  77. package/es/components/scanOrder/hooks.js +0 -7
  78. package/es/components/scanOrder/locales.d.ts +0 -75
  79. package/es/components/scanOrder/locales.js +0 -75
  80. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  81. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  82. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  83. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  84. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  85. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  86. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  87. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  88. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  89. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  90. package/es/components/venueBooking/components/Cart/index.js +165 -46
  91. package/es/components/venueBooking/components/Voucher/index.js +1 -6
  92. package/es/components/venueBooking/context.js +15 -2
  93. package/es/components/venueBooking/locales.d.ts +5 -0
  94. package/es/components/venueBooking/locales.js +10 -5
  95. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  96. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  97. package/es/plus/clientName/index.d.ts +1 -0
  98. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  99. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  100. package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
  101. package/es/plus/orderList/components/Reset.d.ts +1 -0
  102. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  103. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  104. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  105. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  106. package/es/pro/Login2.0/locales.js +1 -1
  107. package/es/pro/Selector/demo.d.ts +1 -0
  108. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  109. package/es/utils/buildCartHolderParams.d.ts +97 -0
  110. package/es/utils/buildCartHolderParams.js +200 -0
  111. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  112. package/lib/components/appointmentBooking/components/Cart/Item/index.js +70 -9
  113. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +6 -2
  114. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  115. package/lib/components/appointmentBooking/components/Header/index.js +1 -13
  116. package/lib/components/appointmentBooking/components/Voucher/index.js +10 -0
  117. package/lib/components/appointmentBooking/hooks.d.ts +1 -17
  118. package/lib/components/appointmentBooking/hooks.js +17 -91
  119. package/lib/components/appointmentBooking/utils.d.ts +1 -0
  120. package/lib/components/appointmentBooking/utils.js +24 -13
  121. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  122. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  123. package/lib/components/booking/forms/table/index.d.ts +1 -0
  124. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  125. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  126. package/lib/components/booking/info/index.d.ts +1 -0
  127. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  128. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  129. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  130. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  131. package/lib/components/eftpos/SettlementModal/Action.d.ts +1 -0
  132. package/lib/components/eftpos/SettlementModal/index.d.ts +1 -0
  133. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  134. package/lib/components/eftpos/form/index.d.ts +1 -0
  135. package/lib/components/eftpos/group/index.d.ts +1 -0
  136. package/lib/components/eftpos/hooks.d.ts +1 -0
  137. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  138. package/lib/components/eftpos/icon/device.d.ts +1 -0
  139. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  140. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  141. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +1 -2
  142. package/lib/components/eftposPay/app.d.ts +1 -0
  143. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  144. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  145. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  146. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  147. package/lib/components/eftposPay/device.js +4 -6
  148. package/lib/components/eftposPay/hooks.d.ts +1 -1
  149. package/lib/components/eftposPay/mx51/Action.d.ts +1 -0
  150. package/lib/components/eftposPay/store/index.d.ts +1 -1
  151. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  152. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  153. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  154. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  155. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  156. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  157. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  158. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  159. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  160. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  161. package/lib/components/eventBooking/components/progressBar/index.d.ts +1 -8
  162. package/lib/components/eventBooking/components/progressBar/index.js +9 -29
  163. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  164. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  165. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  166. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  167. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  168. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  169. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  170. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  171. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  172. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  173. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  174. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  175. package/lib/components/scanOrder/components/Check/index.js +3 -116
  176. package/lib/components/scanOrder/components/Check/index.less +0 -39
  177. package/lib/components/scanOrder/components/Content/index.js +25 -106
  178. package/lib/components/scanOrder/components/Menu/index.js +0 -2
  179. package/lib/components/scanOrder/hooks.js +0 -7
  180. package/lib/components/scanOrder/locales.d.ts +0 -75
  181. package/lib/components/scanOrder/locales.js +0 -75
  182. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  183. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  184. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  185. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  186. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  187. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  188. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  189. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  190. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  191. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  192. package/lib/components/venueBooking/components/Cart/index.js +93 -14
  193. package/lib/components/venueBooking/components/Voucher/index.js +1 -5
  194. package/lib/components/venueBooking/context.js +12 -2
  195. package/lib/components/venueBooking/locales.d.ts +5 -0
  196. package/lib/components/venueBooking/locales.js +10 -5
  197. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  198. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  199. package/lib/plus/clientName/index.d.ts +1 -0
  200. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  201. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  202. package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
  203. package/lib/plus/orderList/components/Reset.d.ts +1 -0
  204. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  205. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  206. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  207. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  208. package/lib/pro/Login2.0/locales.js +1 -1
  209. package/lib/pro/Selector/demo.d.ts +1 -0
  210. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  211. package/lib/utils/buildCartHolderParams.d.ts +97 -0
  212. package/lib/utils/buildCartHolderParams.js +172 -0
  213. package/package.json +1 -1
@@ -13,11 +13,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
13
13
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
14
14
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
15
15
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
16
- import { useState, useEffect, useMemo, useRef, useCallback } from 'react';
17
- import { locales, isMobile } from '@pisell/utils';
16
+ import { useState, useEffect, useMemo } from 'react';
17
+ import { locales } from '@pisell/utils';
18
18
  import { usePisellOS } from "../../hooks/useEngineContext";
19
19
  import useEngineContext from "../../hooks/useEngineContext";
20
- import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
20
+ import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, Toast } from "./utils";
21
21
  import { useAppointmentBookingContext } from "./context";
22
22
  import { scrollToFirstErrorCard } from "./components/Resource/utils";
23
23
  import { nextStepLog } from "./utils";
@@ -316,39 +316,47 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
316
316
  // 监测holder数据
317
317
  var checkHolder = /*#__PURE__*/function () {
318
318
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
319
- var cartLists, newCarts, appoimentCarts, _checkAndGoNext, _hasError;
319
+ var isLoginTrigger,
320
+ cartLists,
321
+ newCarts,
322
+ appoimentCarts,
323
+ _checkAndGoNext,
324
+ _hasError,
325
+ isEnableSkuHolderRule,
326
+ _args2 = arguments;
320
327
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
321
328
  while (1) switch (_context2.prev = _context2.next) {
322
329
  case 0:
323
- _context2.prev = 0;
330
+ isLoginTrigger = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : false;
331
+ _context2.prev = 1;
324
332
  setLoading(false);
325
333
 
326
334
  // 零售订单不需要验证holder
327
335
  if (!(isRetailTemplate || appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts())) {
328
- _context2.next = 4;
336
+ _context2.next = 5;
329
337
  break;
330
338
  }
331
339
  return _context2.abrupt("return", appointmentBooking.next());
332
- case 4:
340
+ case 5:
333
341
  cartLists = carts || [];
334
342
  if (carts !== null && carts !== void 0 && carts.length) {
335
- _context2.next = 12;
343
+ _context2.next = 13;
336
344
  break;
337
345
  }
338
- _context2.next = 8;
346
+ _context2.next = 9;
339
347
  return appointmentBooking.getCart();
340
- case 8:
348
+ case 9:
341
349
  newCarts = _context2.sent;
342
350
  cartLists = newCarts || [];
343
- _context2.next = 13;
351
+ _context2.next = 14;
344
352
  break;
345
- case 12:
346
- cartLists = carts || [];
347
353
  case 13:
354
+ cartLists = carts || [];
355
+ case 14:
348
356
  appoimentCarts = cartLists.filter(function (n) {
349
357
  return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
350
358
  });
351
- _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts), _hasError = _checkAndGoNext.hasError;
359
+ _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts), _hasError = _checkAndGoNext.hasError, isEnableSkuHolderRule = _checkAndGoNext.isEnableSkuHolderRule;
352
360
  setIsErrorHolder(_hasError);
353
361
  if (isLog) {
354
362
  nextStepLog(utils, '开始检测holder数据', [{
@@ -360,37 +368,44 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
360
368
  }]);
361
369
  }
362
370
  if (!_hasError) {
363
- _context2.next = 19;
371
+ _context2.next = 21;
364
372
  break;
365
373
  }
374
+ scrollToFirstErrorCard('.pisell-lowcode-product-card-select-holder-error');
366
375
  return _context2.abrupt("return");
367
- case 19:
368
- if (!(renderItem !== null && renderItem !== void 0 && renderItem.policy_id)) {
376
+ case 21:
377
+ if (!(isLoginTrigger && isEnableSkuHolderRule)) {
369
378
  _context2.next = 23;
370
379
  break;
371
380
  }
381
+ return _context2.abrupt("return");
382
+ case 23:
383
+ if (!(renderItem !== null && renderItem !== void 0 && renderItem.policy_id)) {
384
+ _context2.next = 27;
385
+ break;
386
+ }
372
387
  openPolicy({
373
388
  id: renderItem === null || renderItem === void 0 ? void 0 : renderItem.policy_id
374
389
  }, function () {
375
390
  return appointmentBooking.next();
376
391
  });
377
- _context2.next = 24;
392
+ _context2.next = 28;
378
393
  break;
379
- case 23:
394
+ case 27:
380
395
  return _context2.abrupt("return", appointmentBooking.next());
381
- case 24:
382
- _context2.next = 30;
396
+ case 28:
397
+ _context2.next = 34;
383
398
  break;
384
- case 26:
385
- _context2.prev = 26;
386
- _context2.t0 = _context2["catch"](0);
399
+ case 30:
400
+ _context2.prev = 30;
401
+ _context2.t0 = _context2["catch"](1);
387
402
  setLoading(false);
388
403
  logNextStepAsyncError(_context2.t0);
389
- case 30:
404
+ case 34:
390
405
  case "end":
391
406
  return _context2.stop();
392
407
  }
393
- }, _callee2, null, [[0, 26]]);
408
+ }, _callee2, null, [[1, 30]]);
394
409
  }));
395
410
  return function checkHolder() {
396
411
  return _ref4.apply(this, arguments);
@@ -430,7 +445,14 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
430
445
  }]);
431
446
  }
432
447
  if (res === 'success') {
433
- checkHolder();
448
+ // 登录之后刷新 holder 数据
449
+ if (isFormSubject && !isRetailTemplate && !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts())) {
450
+ var customer = getCustomer(utils);
451
+ appointmentBooking === null || appointmentBooking === void 0 || appointmentBooking.refreshAllHolderFormRecords({
452
+ customer_id: customer === null || customer === void 0 ? void 0 : customer.id
453
+ });
454
+ }
455
+ checkHolder(true);
434
456
  }
435
457
 
436
458
  // 关闭登录弹窗
@@ -638,13 +660,13 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
638
660
  newCarts = carts === null || carts === void 0 ? void 0 : carts.map(function (item) {
639
661
  var _item$duration;
640
662
  return _objectSpread(_objectSpread({}, item), {}, {
641
- addHolderButtonText: utils === null || utils === void 0 ? void 0 : utils.translation(bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.form_name),
663
+ // addHolderButtonText: utils?.translation(formMap?.[formId]?.form?.form?.setting?.title),
642
664
  format: ['HH:mm', 'HH:mm'],
643
665
  show_time: true,
644
666
  duration_type: (item === null || item === void 0 || (_item$duration = item.duration) === null || _item$duration === void 0 ? void 0 : _item$duration.type) || 'minutes',
645
667
  locale: locale,
646
668
  symbol: symbol,
647
- holders: formatHolder(accountLists),
669
+ // holders: formatHolder(accountLists),
648
670
  allowClearHolder: true,
649
671
  allowClearResource: true,
650
672
  isMultipleResource: true
@@ -700,12 +722,12 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
700
722
  var isLogin = !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token));
701
723
  var openLoginModal = function openLoginModal(params) {
702
724
  var _ref17 = params || {},
703
- callback = _ref17.callback;
725
+ callback = _ref17.callback,
726
+ _ref17$data = _ref17.data,
727
+ data = _ref17$data === void 0 ? {} : _ref17$data;
704
728
  utils.action({
705
729
  type: 'pisell1.login',
706
- data: {
707
- // type: 'plugin'
708
- },
730
+ data: _objectSpread({}, data),
709
731
  callback: callback
710
732
  });
711
733
  };
@@ -1057,99 +1079,4 @@ export var useAppointmentBookingSetting = function useAppointmentBookingSetting(
1057
1079
  formName: formName,
1058
1080
  bookingSetting: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o7 = appointmentBooking.otherParams) === null || _appointmentBooking$o7 === void 0 ? void 0 : _appointmentBooking$o7.bookingSetting) || {}
1059
1081
  };
1060
- };
1061
- var APPOINTMENT_BOOKING_BACK_TRAP_KEY = '__pisellAppointmentBookingBackTrap';
1062
- var pushAppointmentBookingBackTrap = function pushAppointmentBookingBackTrap() {
1063
- window.history.pushState(_defineProperty({}, APPOINTMENT_BOOKING_BACK_TRAP_KEY, true), '', window.location.href);
1064
- };
1065
- export var useInterceptBrowserBack = function useInterceptBrowserBack(_ref31) {
1066
- var _ref31$enabled = _ref31.enabled,
1067
- enabled = _ref31$enabled === void 0 ? true : _ref31$enabled,
1068
- stepIndex = _ref31.stepIndex,
1069
- canGoBack = _ref31.canGoBack,
1070
- onBack = _ref31.onBack,
1071
- onExit = _ref31.onExit;
1072
- var optionsRef = useRef({
1073
- stepIndex: stepIndex,
1074
- canGoBack: canGoBack,
1075
- onBack: onBack,
1076
- onExit: onExit
1077
- });
1078
- optionsRef.current = {
1079
- stepIndex: stepIndex,
1080
- canGoBack: canGoBack,
1081
- onBack: onBack,
1082
- onExit: onExit
1083
- };
1084
- var syncedStepIndexRef = useRef(null);
1085
- var trapCountRef = useRef(0);
1086
- var restoreBackTrap = useCallback(function () {
1087
- if (!enabled || !isMobile() || typeof window === 'undefined') return;
1088
- pushAppointmentBookingBackTrap();
1089
- trapCountRef.current += 1;
1090
- }, [enabled]);
1091
-
1092
- /**
1093
- * 每前进一步压入一条 history,使浏览器返回键步数与预约步骤一致。
1094
- * 例如 4 步流程会维持 4 层 trap,每次 back 只 pop 一层并触发 handleBack。
1095
- */
1096
- useEffect(function () {
1097
- if (!enabled || !isMobile() || typeof window === 'undefined') return;
1098
- var targetTrapCount = Math.max(0, stepIndex) + 1;
1099
- if (syncedStepIndexRef.current === null) {
1100
- syncedStepIndexRef.current = stepIndex;
1101
- while (trapCountRef.current < targetTrapCount) {
1102
- pushAppointmentBookingBackTrap();
1103
- trapCountRef.current += 1;
1104
- }
1105
- return;
1106
- }
1107
- if (stepIndex > syncedStepIndexRef.current) {
1108
- while (trapCountRef.current < targetTrapCount) {
1109
- pushAppointmentBookingBackTrap();
1110
- trapCountRef.current += 1;
1111
- }
1112
- } else if (stepIndex < syncedStepIndexRef.current) {
1113
- trapCountRef.current = targetTrapCount;
1114
- }
1115
- syncedStepIndexRef.current = stepIndex;
1116
- }, [enabled, stepIndex]);
1117
- useEffect(function () {
1118
- if (!enabled || !isMobile() || typeof window === 'undefined') return;
1119
- var isActive = true;
1120
- var handlePopState = function handlePopState() {
1121
- if (!isActive) return;
1122
- trapCountRef.current = Math.max(0, trapCountRef.current - 1);
1123
- var _optionsRef$current = optionsRef.current,
1124
- canGoBackFn = _optionsRef$current.canGoBack,
1125
- onBackFn = _optionsRef$current.onBack,
1126
- onExitFn = _optionsRef$current.onExit;
1127
- if (canGoBackFn()) {
1128
- void Promise.resolve(onBackFn());
1129
- return;
1130
- }
1131
- onExitFn === null || onExitFn === void 0 || onExitFn();
1132
- };
1133
- var handlePageShow = function handlePageShow(event) {
1134
- if (!isActive || !event.persisted) return;
1135
- var currentStepIndex = optionsRef.current.stepIndex;
1136
- var targetTrapCount = Math.max(0, currentStepIndex) + 1;
1137
- syncedStepIndexRef.current = currentStepIndex;
1138
- trapCountRef.current = 0;
1139
- while (trapCountRef.current < targetTrapCount) {
1140
- pushAppointmentBookingBackTrap();
1141
- trapCountRef.current += 1;
1142
- }
1143
- };
1144
- window.addEventListener('popstate', handlePopState, true);
1145
- window.addEventListener('pageshow', handlePageShow);
1146
- return function () {
1147
- isActive = false;
1148
- window.removeEventListener('popstate', handlePopState, true);
1149
- window.removeEventListener('pageshow', handlePageShow);
1150
- };
1151
- }, [enabled]);
1152
- return {
1153
- restoreBackTrap: restoreBackTrap
1154
- };
1155
1082
  };
@@ -182,6 +182,7 @@ export declare const getFormInsertBeforeKey: (currentKey: string, stepList: any[
182
182
  */
183
183
  export declare const checkAndGoNext: (isFormSubject: any, checkAccount: any, carts: any[]) => {
184
184
  hasError: boolean;
185
+ isEnableSkuHolderRule: boolean;
185
186
  updatedCartList: any[];
186
187
  };
187
188
  export declare const currentAppointmentBoard: (currentKey: string, resources: any[], appointmentBooking: any) => {
@@ -699,22 +699,43 @@ export var getFormInsertBeforeKey = function getFormInsertBeforeKey(currentKey,
699
699
  * @Date: 2025-05-24 22:46
700
700
  */
701
701
  export var checkAndGoNext = function checkAndGoNext(isFormSubject, checkAccount, carts) {
702
+ if (!isFormSubject) return {
703
+ hasError: false,
704
+ isEnableSkuHolderRule: false,
705
+ updatedCartList: carts
706
+ };
702
707
  var hasError = false;
708
+ // 是否开启了有 sku holder 规则
709
+ var isEnableSkuHolderRule = false;
703
710
  var updatedCartList = _toConsumableArray(carts);
704
- if (isFormSubject && !checkAccount('holder')) {
705
- updatedCartList = carts === null || carts === void 0 ? void 0 : carts.map(function (item) {
706
- if (!(item !== null && item !== void 0 && item.holder_id)) {
707
- hasError = true;
708
- return _objectSpread(_objectSpread({}, item), {}, {
709
- isErrorHolder: true
710
- });
711
- }
712
- return item;
713
- });
714
- }
711
+
712
+ // if (isFormSubject && !checkAccount('holder')) {
713
+ updatedCartList = carts === null || carts === void 0 ? void 0 : carts.map(function (item) {
714
+ var _item$_productInit;
715
+ var holderConfig = (item === null || item === void 0 || (_item$_productInit = item._productInit) === null || _item$_productInit === void 0 ? void 0 : _item$_productInit.holder_config) || {};
716
+ var _ref4 = holderConfig || {},
717
+ status = _ref4.status,
718
+ required = _ref4.required,
719
+ resource_id = _ref4.resource_id;
720
+
721
+ // sku 不是必填且有表单id
722
+ if (!(item !== null && item !== void 0 && item.holder_id) && status === 'enable' && !required && resource_id) {
723
+ isEnableSkuHolderRule = true;
724
+ }
725
+ if (!(item !== null && item !== void 0 && item.holder_id) && status === 'enable' && required) {
726
+ hasError = true;
727
+ return _objectSpread(_objectSpread({}, item), {}, {
728
+ isErrorHolder: true
729
+ });
730
+ }
731
+ return item;
732
+ });
733
+ // }
734
+
715
735
  return {
716
736
  hasError: hasError,
717
- updatedCartList: updatedCartList
737
+ updatedCartList: updatedCartList,
738
+ isEnableSkuHolderRule: isEnableSkuHolderRule
718
739
  };
719
740
  };
720
741
  export var currentAppointmentBoard = function currentAppointmentBoard(currentKey, resources, appointmentBooking) {
@@ -799,7 +820,7 @@ export var updateCartResources = function updateCartResources(item, value, curre
799
820
 
800
821
  // 购物车中是否有session商品
801
822
  var isSessionProduct = /*#__PURE__*/function () {
802
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appointmentBooking) {
823
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appointmentBooking) {
803
824
  var carts;
804
825
  return _regeneratorRuntime().wrap(function _callee$(_context) {
805
826
  while (1) switch (_context.prev = _context.next) {
@@ -809,8 +830,8 @@ var isSessionProduct = /*#__PURE__*/function () {
809
830
  case 2:
810
831
  carts = _context.sent;
811
832
  return _context.abrupt("return", carts === null || carts === void 0 ? void 0 : carts.some(function (item) {
812
- var _item$_productInit;
813
- return (item === null || item === void 0 || (_item$_productInit = item._productInit) === null || _item$_productInit === void 0 || (_item$_productInit = _item$_productInit['schedule.ids']) === null || _item$_productInit === void 0 ? void 0 : _item$_productInit.length) > 0;
833
+ var _item$_productInit2;
834
+ return (item === null || item === void 0 || (_item$_productInit2 = item._productInit) === null || _item$_productInit2 === void 0 || (_item$_productInit2 = _item$_productInit2['schedule.ids']) === null || _item$_productInit2 === void 0 ? void 0 : _item$_productInit2.length) > 0;
814
835
  }));
815
836
  case 4:
816
837
  case "end":
@@ -819,7 +840,7 @@ var isSessionProduct = /*#__PURE__*/function () {
819
840
  }, _callee);
820
841
  }));
821
842
  return function isSessionProduct(_x) {
822
- return _ref4.apply(this, arguments);
843
+ return _ref5.apply(this, arguments);
823
844
  };
824
845
  }();
825
846
 
@@ -869,8 +890,8 @@ var createClearActions = function createClearActions(appointmentBooking, setTime
869
890
  },
870
891
  date: function date() {
871
892
  var _appointmentBooking$o2;
872
- var _ref5 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
873
- bookingProcess = _ref5.bookingProcess;
893
+ var _ref6 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
894
+ bookingProcess = _ref6.bookingProcess;
874
895
 
875
896
  // 如果不是先选择日期步骤,则清空日期
876
897
  if (bookingProcess !== 'date_first') {
@@ -928,9 +949,9 @@ var executeClearActions = function executeClearActions(dataTypes, clearActions)
928
949
  * @Date: 2025-11-21 15:40
929
950
  */
930
951
  export var clearDataByStepKey = /*#__PURE__*/function () {
931
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, appointmentBooking, setTimes) {
952
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, appointmentBooking, setTimes) {
932
953
  var _appointmentBooking$o3;
933
- var stepKey, clearDataTypes, _ref7, bookingProcess, isDateSelectedFirst, isSession, clearActions;
954
+ var stepKey, clearDataTypes, _ref8, bookingProcess, isDateSelectedFirst, isSession, clearActions;
934
955
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
935
956
  while (1) switch (_context2.prev = _context2.next) {
936
957
  case 0:
@@ -955,7 +976,7 @@ export var clearDataByStepKey = /*#__PURE__*/function () {
955
976
  case 6:
956
977
  // 获取需要清空的数据类型
957
978
  clearDataTypes = STEP_CLEAR_CONFIG[stepKey] || [];
958
- _ref7 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {}, bookingProcess = _ref7.bookingProcess;
979
+ _ref8 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {}, bookingProcess = _ref8.bookingProcess;
959
980
  isDateSelectedFirst = bookingProcess === 'date_first'; // 1. 第一步选择日期,则回到商品列表,不需要清空日期
960
981
  if (key !== 'select-date' && isDateSelectedFirst) {
961
982
  clearDataTypes = clearDataTypes.filter(function (item) {
@@ -990,17 +1011,17 @@ export var clearDataByStepKey = /*#__PURE__*/function () {
990
1011
  }, _callee2);
991
1012
  }));
992
1013
  return function clearDataByStepKey(_x2, _x3, _x4) {
993
- return _ref6.apply(this, arguments);
1014
+ return _ref7.apply(this, arguments);
994
1015
  };
995
1016
  }();
996
1017
  export var nextStepLog = function nextStepLog(utils, title) {
997
1018
  var content = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
998
1019
  try {
999
1020
  var _utils$getStore, _utils$getStore$getSt2;
1000
- var _ref8 = (utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 || (_utils$getStore$getSt2 = _utils$getStore.getState) === null || _utils$getStore$getSt2 === void 0 ? void 0 : _utils$getStore$getSt2.call(_utils$getStore)) || {},
1001
- global = _ref8.global;
1002
- var _ref9 = global || {},
1003
- shop = _ref9.shop;
1021
+ var _ref9 = (utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 || (_utils$getStore$getSt2 = _utils$getStore.getState) === null || _utils$getStore$getSt2 === void 0 ? void 0 : _utils$getStore$getSt2.call(_utils$getStore)) || {},
1022
+ global = _ref9.global;
1023
+ var _ref10 = global || {},
1024
+ shop = _ref10.shop;
1004
1025
  if ((shop === null || shop === void 0 ? void 0 : shop.id) === 2155) {
1005
1026
  var _window2;
1006
1027
  sendWarningLog({
@@ -1021,13 +1042,13 @@ export var nextStepLog = function nextStepLog(utils, title) {
1021
1042
  * @description: 跳转到某个步骤
1022
1043
  * @return {*}
1023
1044
  */
1024
- export var handleGoToStep = function handleGoToStep(_ref10) {
1025
- var appointmentBooking = _ref10.appointmentBooking,
1026
- setTimes = _ref10.setTimes,
1027
- _ref10$skipStepKey = _ref10.skipStepKey,
1028
- skipStepKey = _ref10$skipStepKey === void 0 ? 'select-service' : _ref10$skipStepKey,
1029
- _ref10$isSkipClearDat = _ref10.isSkipClearData,
1030
- isSkipClearData = _ref10$isSkipClearDat === void 0 ? true : _ref10$isSkipClearDat;
1045
+ export var handleGoToStep = function handleGoToStep(_ref11) {
1046
+ var appointmentBooking = _ref11.appointmentBooking,
1047
+ setTimes = _ref11.setTimes,
1048
+ _ref11$skipStepKey = _ref11.skipStepKey,
1049
+ skipStepKey = _ref11$skipStepKey === void 0 ? 'select-service' : _ref11$skipStepKey,
1050
+ _ref11$isSkipClearDat = _ref11.isSkipClearData,
1051
+ isSkipClearData = _ref11$isSkipClearDat === void 0 ? true : _ref11$isSkipClearDat;
1031
1052
  // 清空数据
1032
1053
  if (isSkipClearData) {
1033
1054
  clearDataByStepKey(skipStepKey, appointmentBooking, setTimes);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -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 { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface MoreDropdownProps {
2
3
  locales: any;
3
4
  onClick?: (key: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  interface IProps {
3
4
  onClickAction: (type: string, record: any) => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  export declare const useSummary: (locales: any, staticsData: any, isPartner?: boolean) => () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title 渲染动态内容
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SettlementModal: ({ open, onClose, data, }: {
3
4
  open: boolean;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.css';
2
3
  /**
3
4
  * @title: 自定义组件设置
@@ -198,7 +198,6 @@ var PaymentMethod = /*#__PURE__*/function () {
198
198
  this.isFinished = markAsFinished;
199
199
  this.currentQueryApi = null;
200
200
  this.currentActionType = null;
201
- this.currentQueryId = '';
202
201
  }
203
202
 
204
203
  /**
@@ -549,7 +548,7 @@ var PaymentMethod = /*#__PURE__*/function () {
549
548
  }
550
549
  return _context.abrupt("return");
551
550
  case 45:
552
- if (!((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.name) === 'AbortError' || (_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.name) === 'CanceledError' || (_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.code) === 'ERR_CANCELED' || (_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message) === 'REQUEST_TIMEOUT')) {
551
+ if (!((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.name) === 'AbortError' || (_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message) === 'REQUEST_TIMEOUT')) {
553
552
  _context.next = 49;
554
553
  break;
555
554
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
3
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  pedding?: string;