@pisell/private-materials 6.2.15 → 6.2.17

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 (242) 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.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/businessModel/SalesModel/index.d.ts +1 -0
  8. package/es/components/Sales/Checkout/utils.d.ts +40 -0
  9. package/es/components/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  11. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  15. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  16. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  17. package/es/components/appointmentBooking/index.d.ts +3 -0
  18. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  19. package/es/components/booking/components/customSelect/index.js +1 -0
  20. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  21. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  22. package/es/components/booking/components/voucher/index.d.ts +3 -0
  23. package/es/components/booking/forms/table/index.d.ts +1 -0
  24. package/es/components/booking/hooks/useClearCart.js +11 -8
  25. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  26. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  27. package/es/components/booking/info/client/index.js +3 -2
  28. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  29. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  30. package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
  31. package/es/components/booking/info/index.d.ts +4 -0
  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/service2/Lists.d.ts +1 -0
  37. package/es/components/booking/info/service2/utils.js +20 -21
  38. package/es/components/booking/info/utils.d.ts +50 -0
  39. package/es/components/booking/info2/index.d.ts +12 -0
  40. package/es/components/booking/info2/index.js +1 -0
  41. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  42. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  43. package/es/components/booking/info2/service/addService/utils.js +6 -3
  44. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  45. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  46. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  47. package/es/components/booking/info2/service/editService/index.js +258 -165
  48. package/es/components/booking/info2/service/index.js +19 -15
  49. package/es/components/booking/locales.d.ts +828 -0
  50. package/es/components/booking/materiels/duration/index.js +9 -2
  51. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  52. package/es/components/booking/model.d.ts +108 -0
  53. package/es/components/booking/utils.d.ts +2 -2
  54. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  55. package/es/components/eftpos/form/index.d.ts +1 -0
  56. package/es/components/eftpos/group/index.d.ts +1 -0
  57. package/es/components/eftpos/hooks.d.ts +1 -0
  58. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  59. package/es/components/eftpos/icon/device.d.ts +1 -0
  60. package/es/components/eftpos/receipt/index.d.ts +1 -0
  61. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  62. package/es/components/eftposPay/amount.d.ts +1 -1
  63. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  64. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  65. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  66. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  67. package/es/components/eftposPay/const.d.ts +184 -0
  68. package/es/components/eftposPay/device.d.ts +1 -1
  69. package/es/components/eftposPay/hooks.d.ts +35 -0
  70. package/es/components/eftposPay/index.d.ts +4 -0
  71. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  72. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  73. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  74. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  75. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  76. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  77. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  78. package/es/components/eftposPay/pay.d.ts +20 -0
  79. package/es/components/eftposPay/store/index.d.ts +355 -0
  80. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  81. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  93. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  94. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  95. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  99. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  100. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  101. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  102. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  103. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  104. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  105. package/es/components/productSelect/index.d.ts +26 -0
  106. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  107. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  108. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  109. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  110. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  111. package/es/components/schedules/products/index.d.ts +1 -0
  112. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  113. package/es/components/shoppingCart/components/Cart/Product.js +48 -41
  114. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  115. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  116. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  117. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  118. package/es/components/ticketBooking/components/addServiceVariant/addService.js +177 -157
  119. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  120. package/es/components/ticketBooking/components/timeBar/index.js +78 -71
  121. package/es/components/ticketBooking/index.d.ts +7 -0
  122. package/es/components/walletList/index.d.ts +28 -0
  123. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  124. package/es/utils/index.d.ts +23 -0
  125. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  126. package/lib/components/Sales/Checkout/utils.d.ts +40 -0
  127. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  128. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  129. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  130. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  131. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  132. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  133. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  134. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  135. package/lib/components/appointmentBooking/index.d.ts +3 -0
  136. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  137. package/lib/components/booking/components/customSelect/index.js +1 -0
  138. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  139. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  140. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  141. package/lib/components/booking/forms/table/index.d.ts +1 -0
  142. package/lib/components/booking/hooks/useClearCart.js +16 -13
  143. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  144. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  145. package/lib/components/booking/info/client/index.js +5 -4
  146. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  147. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  148. package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
  149. package/lib/components/booking/info/index.d.ts +4 -0
  150. package/lib/components/booking/info/service/Lists.js +35 -23
  151. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  152. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  153. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  154. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  155. package/lib/components/booking/info/service2/utils.js +17 -17
  156. package/lib/components/booking/info/utils.d.ts +50 -0
  157. package/lib/components/booking/info2/index.d.ts +12 -0
  158. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  159. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  160. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  161. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  162. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  163. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  164. package/lib/components/booking/info2/service/editService/index.js +132 -70
  165. package/lib/components/booking/info2/service/index.js +13 -9
  166. package/lib/components/booking/locales.d.ts +828 -0
  167. package/lib/components/booking/materiels/duration/index.js +7 -2
  168. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  169. package/lib/components/booking/model.d.ts +108 -0
  170. package/lib/components/booking/utils.d.ts +2 -2
  171. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  172. package/lib/components/eftpos/form/index.d.ts +1 -0
  173. package/lib/components/eftpos/group/index.d.ts +1 -0
  174. package/lib/components/eftpos/hooks.d.ts +1 -0
  175. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  176. package/lib/components/eftpos/icon/device.d.ts +1 -0
  177. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  178. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  179. package/lib/components/eftposPay/amount.d.ts +1 -1
  180. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  181. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  182. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  183. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  184. package/lib/components/eftposPay/const.d.ts +184 -0
  185. package/lib/components/eftposPay/device.d.ts +1 -1
  186. package/lib/components/eftposPay/hooks.d.ts +35 -0
  187. package/lib/components/eftposPay/index.d.ts +4 -0
  188. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  189. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  190. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  191. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  192. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  193. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  194. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  195. package/lib/components/eftposPay/pay.d.ts +20 -0
  196. package/lib/components/eftposPay/store/index.d.ts +355 -0
  197. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  198. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  200. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  202. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  203. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  205. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  206. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  207. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  208. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  210. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  212. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  213. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  214. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  215. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  216. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  217. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  218. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  219. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  220. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  221. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  222. package/lib/components/productSelect/index.d.ts +26 -0
  223. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  224. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  225. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  226. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  227. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  228. package/lib/components/schedules/products/index.d.ts +1 -0
  229. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  230. package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
  231. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  232. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  233. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  234. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  235. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +145 -127
  236. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  237. package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
  238. package/lib/components/ticketBooking/index.d.ts +7 -0
  239. package/lib/components/walletList/index.d.ts +28 -0
  240. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  241. package/lib/utils/index.d.ts +23 -0
  242. package/package.json +2 -2
@@ -4,45 +4,49 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
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
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
- import React from 'react';
7
+ import React, { useMemo } from 'react';
8
8
  import { LeftOutlined, RightOutlined } from '@ant-design/icons';
9
9
  import { DatePicker, SelectTime } from '@pisell/materials';
10
+ import { useMemoizedFn } from "ahooks";
10
11
  import { Button } from 'antd';
11
12
  import classNames from 'classnames';
12
13
  import { locales } from '@pisell/utils';
13
14
  import "./index.less";
14
15
  var TimeBar = function TimeBar(props) {
15
- var _state$modalState4, _state$modalState5;
16
+ var _state$modalState7;
16
17
  var state = props.globalState,
17
18
  setGlobalState = props.setGlobalState,
18
19
  locale = props.locale;
19
- var _onClickNext = function _onClickNext() {
20
+ var _onClickNext = useMemoizedFn(function () {
20
21
  var _state$modalState, _props$onDateChange, _props$setIntervalTim;
21
22
  var currentTime = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.date) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
22
23
  var newTime = currentTime['add'](1, 'day');
23
24
  (_props$onDateChange = props.onDateChange) === null || _props$onDateChange === void 0 || _props$onDateChange.call(props, newTime, newTime.format('YYYY-MM-DD HH:mm:ss'));
24
25
  (_props$setIntervalTim = props.setIntervalTime) === null || _props$setIntervalTim === void 0 || _props$setIntervalTim.call(props, false);
25
- };
26
- var _onClickPre = function _onClickPre() {
26
+ });
27
+ var _onClickPre = useMemoizedFn(function () {
27
28
  var _state$modalState2, _props$onDateChange2, _props$setIntervalTim2;
28
29
  var currentTime = (_state$modalState2 = state.modalState) === null || _state$modalState2 === void 0 || (_state$modalState2 = _state$modalState2.date) === null || _state$modalState2 === void 0 ? void 0 : _state$modalState2.value;
29
30
  var newTime = currentTime['subtract'](1, 'day');
30
31
  (_props$onDateChange2 = props.onDateChange) === null || _props$onDateChange2 === void 0 || _props$onDateChange2.call(props, newTime, newTime.format('YYYY-MM-DD HH:mm:ss'));
31
32
  (_props$setIntervalTim2 = props.setIntervalTime) === null || _props$setIntervalTim2 === void 0 || _props$setIntervalTim2.call(props, false);
32
- };
33
- var _onClickToday = function _onClickToday() {
34
- var _props$setIntervalTim3;
35
- (_props$setIntervalTim3 = props.setIntervalTime) === null || _props$setIntervalTim3 === void 0 || _props$setIntervalTim3.call(props, true);
36
- };
37
- var _onClickNow = function _onClickNow() {
33
+ });
34
+ var _onClickToday = useMemoizedFn(function () {
35
+ var _state$modalState3, _props$onDateChange3, _props$setIntervalTim3;
36
+ var currentTime = (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.value;
37
+ var newTime = currentTime['subtract'](1, 'day');
38
+ (_props$onDateChange3 = props.onDateChange) === null || _props$onDateChange3 === void 0 || _props$onDateChange3.call(props, newTime, newTime.format('YYYY-MM-DD HH:mm:ss'));
39
+ (_props$setIntervalTim3 = props.setIntervalTime) === null || _props$setIntervalTim3 === void 0 || _props$setIntervalTim3.call(props, false);
40
+ });
41
+ var _onClickNow = useMemoizedFn(function () {
38
42
  var _props$setIntervalTim4;
39
43
  (_props$setIntervalTim4 = props.setIntervalTime) === null || _props$setIntervalTim4 === void 0 || _props$setIntervalTim4.call(props, true);
40
- };
44
+ });
41
45
 
42
46
  // 时间选择变更事件
43
- var _onDateTimeChange = function _onDateTimeChange(timeString) {
44
- var _state$modalState3, _props$onDateTimeChan, _props$setIntervalTim5;
45
- var currentTime = (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.value;
47
+ var _onDateTimeChange = useMemoizedFn(function (timeString) {
48
+ var _state$modalState4, _props$onDateTimeChan, _props$setIntervalTim5;
49
+ var currentTime = (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value;
46
50
  var _timeString$split$map = timeString.split(':').map(Number),
47
51
  _timeString$split$map2 = _slicedToArray(_timeString$split$map, 2),
48
52
  hours = _timeString$split$map2[0],
@@ -53,63 +57,66 @@ var TimeBar = function TimeBar(props) {
53
57
  isTimeChange: true
54
58
  });
55
59
  (_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, false);
56
- };
57
- return /*#__PURE__*/React.createElement("div", {
58
- className: "pisell-ticket-booking-time-bar"
59
- }, /*#__PURE__*/React.createElement(Button, {
60
- icon: /*#__PURE__*/React.createElement(LeftOutlined, null),
61
- onClick: _onClickPre,
62
- size: "large"
63
- }), /*#__PURE__*/React.createElement(Button, {
64
- onClick: _onClickToday,
65
- size: "large",
66
- style: state.intervalSetTime ? {
67
- background: '#000',
68
- color: '#fff'
69
- } : undefined
70
- }, locales.getText('pisell2.ticket-booking.today')), /*#__PURE__*/React.createElement("div", {
71
- className: classNames({
72
- 'booking-page-date-picker-select': state.isDateChange
73
- }),
74
- style: {
75
- width: 200,
76
- flexShrink: 0
77
- }
78
- }, /*#__PURE__*/React.createElement(DatePicker, {
79
- inputReadOnly: true,
80
- value: state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value,
81
- format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
82
- onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
83
- size: "large",
84
- style: {
85
- width: '100%'
86
- }
87
- })), /*#__PURE__*/React.createElement(Button, {
88
- icon: /*#__PURE__*/React.createElement(RightOutlined, null),
89
- onClick: _onClickNext,
90
- size: "large"
91
- }), /*#__PURE__*/React.createElement("div", {
92
- className: classNames({
93
- 'booking-page-date-picker-select': state.isTimeChange
94
- })
95
- }, /*#__PURE__*/React.createElement(SelectTime, {
96
- value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value.format('HH:mm'),
97
- onChange: _onDateTimeChange,
98
- popoverProps: {
60
+ });
61
+ return useMemo(function () {
62
+ var _state$modalState5, _state$modalState6;
63
+ return /*#__PURE__*/React.createElement("div", {
64
+ className: "pisell-ticket-booking-time-bar"
65
+ }, /*#__PURE__*/React.createElement(Button, {
66
+ icon: /*#__PURE__*/React.createElement(LeftOutlined, null),
67
+ onClick: _onClickPre,
68
+ size: "large"
69
+ }), /*#__PURE__*/React.createElement(Button, {
70
+ onClick: _onClickToday,
71
+ size: "large",
72
+ style: state.intervalSetTime ? {
73
+ background: '#000',
74
+ color: '#fff'
75
+ } : undefined
76
+ }, locales.getText('pisell2.ticket-booking.today')), /*#__PURE__*/React.createElement("div", {
77
+ className: classNames({
78
+ 'booking-page-date-picker-select': state.isDateChange
79
+ }),
80
+ style: {
81
+ width: 200,
82
+ flexShrink: 0
83
+ }
84
+ }, /*#__PURE__*/React.createElement(DatePicker, {
85
+ inputReadOnly: true,
86
+ value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value,
87
+ format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
88
+ onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
89
+ size: "large",
99
90
  style: {
100
- zoom: 0.8
91
+ width: '100%'
101
92
  }
102
- },
103
- timePickerProps: {},
104
- timeProps: {},
105
- slice: 5
106
- })), /*#__PURE__*/React.createElement(Button, {
107
- onClick: _onClickNow,
108
- size: "large",
109
- style: state.intervalSetTime ? {
110
- background: '#000',
111
- color: '#fff'
112
- } : undefined
113
- }, locales.getText('pisell2.ticket-booking.now')));
93
+ })), /*#__PURE__*/React.createElement(Button, {
94
+ icon: /*#__PURE__*/React.createElement(RightOutlined, null),
95
+ onClick: _onClickNext,
96
+ size: "large"
97
+ }), /*#__PURE__*/React.createElement("div", {
98
+ className: classNames({
99
+ 'booking-page-date-picker-select': state.isTimeChange
100
+ })
101
+ }, /*#__PURE__*/React.createElement(SelectTime, {
102
+ value: state === null || state === void 0 || (_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value.format('HH:mm'),
103
+ onChange: _onDateTimeChange,
104
+ popoverProps: {
105
+ style: {
106
+ zoom: 0.8
107
+ }
108
+ },
109
+ timePickerProps: {},
110
+ timeProps: {},
111
+ slice: 5
112
+ })), /*#__PURE__*/React.createElement(Button, {
113
+ onClick: _onClickNow,
114
+ size: "large",
115
+ style: state.intervalSetTime ? {
116
+ background: '#000',
117
+ color: '#fff'
118
+ } : undefined
119
+ }, locales.getText('pisell2.ticket-booking.now')));
120
+ }, [(_state$modalState7 = state.modalState) === null || _state$modalState7 === void 0 || (_state$modalState7 = _state$modalState7.date) === null || _state$modalState7 === void 0 ? void 0 : _state$modalState7.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
114
121
  };
115
122
  export default TimeBar;
@@ -0,0 +1,7 @@
1
+ import './index.less';
2
+ interface TicketBookingProps {
3
+ productExtensionType: string[];
4
+ bookingConfigParams: Record<string, any>;
5
+ }
6
+ declare const _default: (props: TicketBookingProps) => JSX.Element;
7
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare module 'react' {
4
+ interface HTMLAttributes<T> {
5
+ role?: string;
6
+ }
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
12
+ children?: React.ReactNode;
13
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
14
+ onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
15
+ onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
16
+ onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
17
+ onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
18
+ role?: string;
19
+ };
20
+ img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
21
+ span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
22
+ children?: React.ReactNode;
23
+ };
24
+ }
25
+ }
26
+ }
27
+ declare const WalletList: (props: any) => JSX.Element;
28
+ export default WalletList;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -0,0 +1,23 @@
1
+ import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
2
+ declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
3
+ declare class Request {
4
+ private request;
5
+ constructor();
6
+ setRequest(val: any): void;
7
+ withCustomToast(config?: any): any;
8
+ getRequest(): {
9
+ get: (url: string, params: any, config?: any) => Promise<any>;
10
+ post: (url: string, params: any, config?: any) => Promise<any>;
11
+ put: RType;
12
+ remove: RType;
13
+ custom: RType;
14
+ };
15
+ }
16
+ export declare const request: Request;
17
+ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
+ export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
+ export declare const saveConfirm: () => Promise<{
20
+ destroy: () => void;
21
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
22
+ }>;
23
+ export { modal };
@@ -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;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @title: 套餐单规格信息
3
+ * @description:
4
+ * @param {any} option
5
+ * @return {*}
6
+ * @Author: zhiwei.Wang
7
+ * @Date: 2024-02-19 09:26
8
+ */
9
+ export declare const formatProductOption: (option: any) => any;
10
+ /**
11
+ * @title: 套餐信息
12
+ * @description:
13
+ * @param {any} bundle
14
+ * @return {*}
15
+ * @Author: zhiwei.Wang
16
+ * @Date: 2024-02-19 09:26
17
+ */
18
+ export declare const formatProductBundle: (bundle: any) => any;
19
+ /**
20
+ * @title: 格式化下单接口数据
21
+ * @description:
22
+ * @param {any} state saledModel数据源
23
+ * @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
24
+ * @Author: xiangfeng.xue
25
+ * @Date: 2025-01-21 17:57
26
+ */
27
+ export declare const formatValues: (params: {
28
+ state: any;
29
+ platform: 'h5' | 'pc';
30
+ excludeDisabled?: boolean;
31
+ extra?: Record<string, any>;
32
+ }) => any;
33
+ /**
34
+ * @title: 获取拉开表单弹窗参数
35
+ * @param state
36
+ */
37
+ export declare const getFormParams: (state: any) => {
38
+ product_id: any;
39
+ appointment_type: string;
40
+ };
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -0,0 +1,56 @@
1
+ interface CheckLoginParams {
2
+ isLogin: boolean;
3
+ openLoginModal: (params: {
4
+ callback: (status: string) => void;
5
+ }) => void;
6
+ isFormSubject: boolean;
7
+ utils: any;
8
+ accountLists: any[];
9
+ appointmentBooking: any;
10
+ getHolders: () => void;
11
+ }
12
+ export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
13
+ interface CheckHolderParams {
14
+ isFormSubject: boolean;
15
+ checkAccount: (type: string) => boolean;
16
+ carts: any[];
17
+ }
18
+ export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
19
+ interface CheckResourceParams {
20
+ carts: any[];
21
+ resources: any[];
22
+ }
23
+ /**
24
+ * @title: 检测资源数据
25
+ * @description:
26
+ * @param {CheckResourceParams} param1
27
+ * @return {*}
28
+ * @Author: WangHan
29
+ * @Date: 2025-04-29 18:02
30
+ */
31
+ export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
32
+ interface CheckResourceParams {
33
+ carts: any[];
34
+ }
35
+ export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
36
+ interface AddHolderParams {
37
+ res: any;
38
+ bookingSubject: any;
39
+ accountLists: any[];
40
+ cartItem: any;
41
+ getHolders: () => void;
42
+ appointmentBooking: any;
43
+ }
44
+ /**
45
+ * @title: 添加holder
46
+ * @description:
47
+ * @param {any} res
48
+ * @param {any} bookingSubject
49
+ * @param {any} accountLists
50
+ * @param {any} e
51
+ * @return {*}
52
+ * @Author: WangHan
53
+ * @Date: 2025-05-10 18:25
54
+ */
55
+ export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
56
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Layout: () => JSX.Element;
3
+ export default Layout;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export default Services;
@@ -0,0 +1,4 @@
1
+ import '../../../booking/components/voucher/index.less';
2
+ import './index.less';
3
+ declare const VoucherCard: (props: any) => JSX.Element;
4
+ export default VoucherCard;
@@ -0,0 +1,106 @@
1
+ export declare const useAppointmentBooking: () => any;
2
+ export declare const useShopDiscount: () => any;
3
+ export declare const contextUtils: () => any;
4
+ /**
5
+ * @title: 监听步骤发生变化
6
+ * @description:
7
+ * @return {*}
8
+ * @Author: WangHan
9
+ * @Date: 2025-04-15 11:11
10
+ */
11
+ export declare const useAppointmentBookingStep: () => {
12
+ getStepIndex: (type: string, skipNumber?: number) => any;
13
+ stepList: any;
14
+ removeStep: (key: string) => any;
15
+ addStep: (props: any, stepKey?: string) => any;
16
+ updateStep: (key: string, step: any) => void;
17
+ nextStep: () => any;
18
+ };
19
+ /**
20
+ * @title: 获取商品数据
21
+ * @description:
22
+ * @return {*}
23
+ * @Author: WangHan
24
+ * @Date: 2025-04-15 11:12
25
+ */
26
+ export declare const useAppointmentBookingProduct: () => {
27
+ checkProductType: (productId: number) => Promise<any>;
28
+ getProducts: () => Promise<any>;
29
+ };
30
+ /**
31
+ * @title: 更新购物车数据
32
+ * @description:
33
+ * @return {*}
34
+ * @Author: WangHan
35
+ * @Date: 2025-04-15 11:12
36
+ */
37
+ export declare const useAppointmentBookingCart: () => void;
38
+ /**
39
+ * @title: 获取登录状态
40
+ * @description:
41
+ * @return {*}
42
+ * @Author: WangHan
43
+ * @Date: 2025-04-15 11:14
44
+ */
45
+ export declare const useAppointmentBookingLogin: () => {
46
+ isLogin: boolean;
47
+ openLoginModal: (params: {
48
+ callback: any;
49
+ }) => void;
50
+ };
51
+ /**
52
+ * @title: 获取账户
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: WangHan
56
+ * @Date: 2025-04-15 11:15
57
+ */
58
+ export declare const useAppointmentBookingAccount: () => {
59
+ accountLists: any;
60
+ getHolders: () => Promise<any>;
61
+ form_id: any;
62
+ addAccount: (val: any, type?: string) => Promise<any>;
63
+ checkAccount: (type: any) => any;
64
+ };
65
+ /**
66
+ * @title: 获取资源数据
67
+ * @description:
68
+ * @return {*}
69
+ * @Author: WangHan
70
+ * @Date: 2025-04-15 11:29
71
+ */
72
+ export declare const useAppointmentBookingResource: () => {
73
+ getResourceTimeSlot: (index?: number) => Promise<void>;
74
+ getResourceList: () => {
75
+ resources: any;
76
+ resourceCodes: any;
77
+ };
78
+ };
79
+ /**
80
+ * @title: 是否跳过资源选择步骤
81
+ * @description:
82
+ * @return {*}
83
+ * @Author: WangHan
84
+ * @Date: 2025-04-21 11:47
85
+ */
86
+ export declare const useIsSkipResourceStep: () => {
87
+ checkSkipResourceStep: () => Promise<boolean>;
88
+ };
89
+ /**
90
+ * @title: 获取预约配置
91
+ * @description:
92
+ * @return {*}
93
+ * @Author: WangHan
94
+ * @Date: 2025-04-24 18:15
95
+ */
96
+ export declare const useAppointmentBookingSetting: () => {
97
+ isDateSelectedFirst: boolean;
98
+ isFormSubject: boolean;
99
+ isRetailTemplate: any;
100
+ customPageId: any;
101
+ channel: any;
102
+ bookingSubject: any;
103
+ setOtherData: (key: string, val: any) => any;
104
+ getOtherData: (key: string) => any;
105
+ formName: any;
106
+ };
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const AppointmentBooking: () => JSX.Element;
3
+ export default AppointmentBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -78,6 +78,7 @@ var CustomSelect = (props, ref) => {
78
78
  handleOpenModal: propsHandleOpenModal,
79
79
  handleDayChange
80
80
  } = props;
81
+ console.log("custom select");
81
82
  const searchRef = (0, import_react.useRef)();
82
83
  const [_value, set_value] = (0, import_react.useState)([]);
83
84
  const [search, setSearch] = (0, import_react.useState)("");
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -0,0 +1,8 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ modal: any;
4
+ onReload: () => Promise<any>;
5
+ onCancel: () => void;
6
+ }
7
+ declare const ReloadResourceModal: ({ modal, onReload, onCancel }: IProps) => JSX.Element;
8
+ export default ReloadResourceModal;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const VoucherCard: (props: any) => JSX.Element | null;
3
+ export default VoucherCard;
@@ -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;
@@ -37,7 +37,7 @@ var import_classnames = __toESM(require("classnames"));
37
37
  var import_materials = require("@pisell/materials");
38
38
  var import_utils = require("@pisell/utils");
39
39
  var useClearCart = (state, dispatch) => {
40
- var _a, _b, _c, _d;
40
+ var _a, _b;
41
41
  const handleClear = () => {
42
42
  dispatch({
43
43
  type: "setService",
@@ -46,17 +46,20 @@ var useClearCart = (state, dispatch) => {
46
46
  }
47
47
  });
48
48
  };
49
- return !!((_b = (_a = state.service) == null ? void 0 : _a.value) == null ? void 0 : _b.length) && !state.channelDisabledEdit && /* @__PURE__ */ import_react.default.createElement(
50
- "span",
51
- {
52
- className: (0, import_classnames.default)("pisell-lowcode__booking-service-clear-btn", {
53
- ["pisell-lowcode__booking-service-clear-btn-disabled"]: !((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length)
54
- }),
55
- onClick: handleClear
56
- },
57
- /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
58
- " ",
59
- /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
60
- );
49
+ return (0, import_react.useMemo)(() => {
50
+ var _a2, _b2, _c, _d;
51
+ return !!((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length) && !state.channelDisabledEdit && /* @__PURE__ */ import_react.default.createElement(
52
+ "span",
53
+ {
54
+ className: (0, import_classnames.default)("pisell-lowcode__booking-service-clear-btn", {
55
+ ["pisell-lowcode__booking-service-clear-btn-disabled"]: !((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length)
56
+ }),
57
+ onClick: handleClear
58
+ },
59
+ /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
60
+ " ",
61
+ /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
62
+ );
63
+ }, [(_b = (_a = state.service) == null ? void 0 : _a.value) == null ? void 0 : _b.length, state.channelDisabledEdit]);
61
64
  };
62
65
  var useClearCart_default = useClearCart;
@@ -0,0 +1 @@
1
+ export declare const useIsBooking4Shop: (state: any) => any;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface AddServiceVariantProps {
3
+ globalState: any;
4
+ setGlobalState: any;
5
+ }
6
+ declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
7
+ export default AddServiceVariant;