@pisell/private-materials 3.3.25 → 3.3.27

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 (253) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/Sales/Customer/index.js +3 -1
  12. package/es/components/Sales/Event/Detail.js +5 -1
  13. package/es/components/Sales/Event/serve.d.ts +3 -0
  14. package/es/components/Sales/Init/index.d.ts +1 -0
  15. package/es/components/Sales/Init/index.js +3 -2
  16. package/es/components/Sales/Step/index.d.ts +2 -0
  17. package/es/components/Sales/Step/index.js +13 -4
  18. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +5 -5
  19. package/es/components/appointmentBooking/components/Services/index.js +2 -0
  20. package/es/components/appointmentBooking/deposit/index.js +2 -2
  21. package/es/components/booking/addons/model.d.ts +1 -10
  22. package/es/components/booking/addons/model.js +5 -5
  23. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  24. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  25. package/es/components/booking/components/browserSelect/index.js +1 -1
  26. package/es/components/booking/components/footer/index.d.ts +1 -0
  27. package/es/components/booking/components/footer/utils.js +16 -15
  28. package/es/components/booking/forms/model.d.ts +1 -10
  29. package/es/components/booking/forms/model.js +5 -5
  30. package/es/components/booking/forms/single/index.d.ts +1 -0
  31. package/es/components/booking/hooks/useQuotation.d.ts +4 -0
  32. package/es/components/booking/hooks/useQuotation.js +256 -0
  33. package/es/components/booking/info/model.d.ts +1 -10
  34. package/es/components/booking/info/service/addService/index.js +4 -4
  35. package/es/components/booking/info/service/editService/index.js +6 -3
  36. package/es/components/booking/info/service/index.js +4 -1
  37. package/es/components/booking/info/service/like/index.js +1 -1
  38. package/es/components/booking/info/service2/Group/utils.js +1 -1
  39. package/es/components/booking/info/service2/hooks/useSelectPet.js +6 -4
  40. package/es/components/booking/info/service2/index.js +4 -1
  41. package/es/components/booking/info/utils.js +1 -1
  42. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  43. package/es/components/booking/info2/service/addService/index.js +29 -9
  44. package/es/components/booking/info2/service/editService/index.js +2 -0
  45. package/es/components/booking/info2/service/index.js +4 -1
  46. package/es/components/booking/locales.d.ts +6 -0
  47. package/es/components/booking/locales.js +9 -3
  48. package/es/components/booking/materiels/startTime/index.js +1 -1
  49. package/es/components/booking/model.d.ts +1 -9
  50. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  51. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  52. package/es/components/booking/notes/model.d.ts +1 -10
  53. package/es/components/booking/notes/model.js +5 -5
  54. package/es/components/booking/payments/model.d.ts +1 -10
  55. package/es/components/booking/payments/model.js +5 -5
  56. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +122 -31
  57. package/es/components/eventBooking/components/Provider/Event/index.js +20 -4
  58. package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
  61. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +5 -2
  62. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  63. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
  64. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  65. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
  66. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  67. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  68. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
  69. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  70. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
  72. package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  73. package/es/components/eventBooking/index.js +2 -2
  74. package/es/components/eventBooking/locales.d.ts +6 -0
  75. package/es/components/eventBooking/locales.js +166 -160
  76. package/es/components/listComponent/index.js +5 -5
  77. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  78. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
  79. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  80. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
  81. package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  82. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  83. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  84. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  85. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
  86. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  87. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  88. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
  89. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  90. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  91. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
  92. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  93. package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  94. package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
  95. package/es/components/pay/toC/WalletPassBlock/index.less +82 -13
  96. package/es/components/pay/toC/index.js +138 -89
  97. package/es/components/pay/toC/locales.d.ts +69 -3
  98. package/es/components/pay/toC/locales.js +132 -6
  99. package/es/components/pay/toC/model.d.ts +5 -9
  100. package/es/components/pay/toC/model.js +9 -0
  101. package/es/components/pay/toC/serve.d.ts +23 -0
  102. package/es/components/pay/toC/serve.js +34 -2
  103. package/es/components/pay/toC/utils.d.ts +3 -1
  104. package/es/components/pay/toC/utils.js +8 -3
  105. package/es/components/productExtension/card/index.js +3 -3
  106. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  107. package/es/components/productExtension/fields/Forms/index.js +12 -12
  108. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  109. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  110. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  111. package/es/components/productExtension/server.js +2 -2
  112. package/es/components/productSelect/components/productGroup/index.less +4 -12
  113. package/es/components/productSelect/index.less +1 -1
  114. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  115. package/es/components/schedules/calendar/index.js +4 -4
  116. package/es/components/schedules/calendar/serve.js +2 -2
  117. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  118. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  119. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  120. package/es/components/schedules/components/ResourceList/index.js +1 -1
  121. package/es/components/schedules/components/Search/index.js +5 -5
  122. package/es/components/schedules/model.d.ts +1 -9
  123. package/es/components/schedules/model.js +5 -5
  124. package/es/components/schedules/openHours/index.js +1 -1
  125. package/es/components/schedules/openHours/serve.js +2 -2
  126. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  127. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  128. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  129. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  130. package/es/components/schedules/products/serve.js +2 -2
  131. package/es/components/schedules/products/utils.js +5 -5
  132. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  133. package/es/components/schedules/resources/detail/index.js +10 -10
  134. package/es/components/schedules/resources/list/index.js +2 -2
  135. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  136. package/es/components/schedules/resources/serve.js +2 -2
  137. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  138. package/es/components/schedules/utils.js +4 -4
  139. package/es/components/selectModal/index.js +2 -2
  140. package/es/components/ticketBooking/components/addServiceVariant/addService.js +15 -20
  141. package/es/components/ticketBooking/components/menuBar/index.less +0 -1
  142. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -4
  143. package/es/components/wallet/Detail/model.d.ts +1 -13
  144. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  145. package/es/components/wallet/PointCard/model.d.ts +1 -13
  146. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  147. package/es/components/wallet/Voucher/model.d.ts +1 -13
  148. package/es/components/wallet/model.d.ts +1 -9
  149. package/es/hooks/useComponents.js +1 -1
  150. package/es/hooks/useLocale.d.ts +2 -0
  151. package/es/hooks/useLocale.js +7 -0
  152. package/es/hooks/useLoginUser.d.ts +2 -0
  153. package/es/hooks/useLoginUser.js +19 -0
  154. package/lib/components/Sales/Customer/index.js +3 -1
  155. package/lib/components/Sales/Event/Detail.js +5 -1
  156. package/lib/components/Sales/Event/serve.d.ts +3 -0
  157. package/lib/components/Sales/Init/index.d.ts +1 -0
  158. package/lib/components/Sales/Init/index.js +3 -2
  159. package/lib/components/Sales/Step/index.d.ts +2 -0
  160. package/lib/components/Sales/Step/index.js +13 -4
  161. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +2 -2
  162. package/lib/components/appointmentBooking/components/Services/index.js +2 -0
  163. package/lib/components/appointmentBooking/deposit/index.js +2 -2
  164. package/lib/components/booking/addons/model.d.ts +1 -10
  165. package/lib/components/booking/components/footer/index.d.ts +1 -0
  166. package/lib/components/booking/components/footer/utils.js +5 -4
  167. package/lib/components/booking/forms/model.d.ts +1 -10
  168. package/lib/components/booking/forms/single/index.d.ts +1 -0
  169. package/lib/components/booking/hooks/useQuotation.d.ts +4 -0
  170. package/lib/components/booking/hooks/useQuotation.js +210 -0
  171. package/lib/components/booking/info/model.d.ts +1 -10
  172. package/lib/components/booking/info/service/addService/index.js +2 -3
  173. package/lib/components/booking/info/service/editService/index.js +5 -2
  174. package/lib/components/booking/info/service/index.js +3 -1
  175. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  176. package/lib/components/booking/info/service2/hooks/useSelectPet.js +5 -3
  177. package/lib/components/booking/info/service2/index.js +3 -1
  178. package/lib/components/booking/info/utils.js +1 -1
  179. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  180. package/lib/components/booking/info2/service/addService/index.js +25 -17
  181. package/lib/components/booking/info2/service/editService/index.js +2 -1
  182. package/lib/components/booking/info2/service/index.js +3 -1
  183. package/lib/components/booking/locales.d.ts +6 -0
  184. package/lib/components/booking/locales.js +9 -3
  185. package/lib/components/booking/model.d.ts +1 -9
  186. package/lib/components/booking/notes/model.d.ts +1 -10
  187. package/lib/components/booking/payments/model.d.ts +1 -10
  188. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +52 -4
  189. package/lib/components/eventBooking/components/Provider/Event/index.js +15 -3
  190. package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
  193. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +3 -1
  194. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  195. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
  196. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  197. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
  198. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  199. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  200. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
  201. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  202. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  203. package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
  204. package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  205. package/lib/components/eventBooking/index.js +2 -2
  206. package/lib/components/eventBooking/locales.d.ts +6 -0
  207. package/lib/components/eventBooking/locales.js +10 -4
  208. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  209. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
  210. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  211. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
  212. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  213. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  214. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  215. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  216. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
  217. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  218. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  219. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
  220. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  221. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  222. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
  223. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  224. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  225. package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
  226. package/lib/components/pay/toC/WalletPassBlock/index.less +82 -13
  227. package/lib/components/pay/toC/index.js +35 -9
  228. package/lib/components/pay/toC/locales.d.ts +69 -3
  229. package/lib/components/pay/toC/locales.js +72 -6
  230. package/lib/components/pay/toC/model.d.ts +5 -9
  231. package/lib/components/pay/toC/model.js +10 -0
  232. package/lib/components/pay/toC/serve.d.ts +23 -0
  233. package/lib/components/pay/toC/serve.js +12 -6
  234. package/lib/components/pay/toC/utils.d.ts +3 -1
  235. package/lib/components/pay/toC/utils.js +8 -3
  236. package/lib/components/productSelect/components/productGroup/index.less +4 -12
  237. package/lib/components/productSelect/index.less +1 -1
  238. package/lib/components/schedules/model.d.ts +1 -9
  239. package/lib/components/schedules/utils.js +1 -1
  240. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -16
  241. package/lib/components/ticketBooking/components/menuBar/index.less +0 -1
  242. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -4
  243. package/lib/components/wallet/Detail/model.d.ts +1 -13
  244. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  245. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  246. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  247. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  248. package/lib/components/wallet/model.d.ts +1 -9
  249. package/lib/hooks/useLocale.d.ts +2 -0
  250. package/lib/hooks/useLocale.js +41 -0
  251. package/lib/hooks/useLoginUser.d.ts +2 -0
  252. package/lib/hooks/useLoginUser.js +50 -0
  253. package/package.json +2 -2
@@ -61,7 +61,8 @@ var stepMaps = steps.reduce((acc, step) => {
61
61
  return acc;
62
62
  }, {});
63
63
  var defaultState = {
64
- currentStep: steps[0].key
64
+ currentStep: steps[0].key,
65
+ isAutoOperate: true
65
66
  };
66
67
  var StepContext = (0, import_react.createContext)(
67
68
  void 0
@@ -106,7 +107,8 @@ var StepProvider = ({ children }) => {
106
107
  const nextStep2 = getNextStep();
107
108
  if (nextStep2) {
108
109
  setStepData({
109
- currentStep: nextStep2
110
+ currentStep: nextStep2,
111
+ isAutoOperate: true
110
112
  });
111
113
  }
112
114
  };
@@ -114,7 +116,8 @@ var StepProvider = ({ children }) => {
114
116
  const prevStep2 = getPrevStep();
115
117
  if (prevStep2) {
116
118
  setStepData({
117
- currentStep: prevStep2
119
+ currentStep: prevStep2,
120
+ isAutoOperate: false
118
121
  });
119
122
  } else {
120
123
  closePage();
@@ -138,6 +141,11 @@ var StepProvider = ({ children }) => {
138
141
  const isTwoStep = (0, import_react.useMemo)(() => {
139
142
  return (currentStepData == null ? void 0 : currentStepData.key) === steps[1].key;
140
143
  }, [currentStepData == null ? void 0 : currentStepData.key]);
144
+ const changeAutoOperate = (newAutoOperate) => {
145
+ setStepData({
146
+ isAutoOperate: newAutoOperate
147
+ });
148
+ };
141
149
  const contextValue = {
142
150
  setStepData,
143
151
  currentStepData,
@@ -147,7 +155,8 @@ var StepProvider = ({ children }) => {
147
155
  toFirstStep,
148
156
  isFirstStep,
149
157
  isLastStep,
150
- isTwoStep
158
+ isTwoStep,
159
+ changeAutoOperate
151
160
  };
152
161
  return /* @__PURE__ */ import_react.default.createElement(StepContext.Provider, { value: contextValue }, children);
153
162
  };
@@ -62,10 +62,10 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
62
62
  };
63
63
  const handleNext = async () => {
64
64
  var _a2;
65
- if (((_a2 = summary == null ? void 0 : summary.deposit) == null ? void 0 : _a2.hasDeposit) && !isAgreeDepositPolicy) {
65
+ const { deposit } = summary;
66
+ if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
66
67
  return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
67
68
  }
68
- const { deposit } = summary;
69
69
  setLoading(true);
70
70
  try {
71
71
  const { data } = await appointmentBooking.submitOrder();
@@ -129,6 +129,8 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
129
129
  { index, key: "select-time", description },
130
130
  "select-resource"
131
131
  );
132
+ } else {
133
+ removeStep("select-time");
132
134
  }
133
135
  } else {
134
136
  if (type === "session") {
@@ -82,7 +82,7 @@ var Deposit = (props) => {
82
82
  showCurrencySymbol: true,
83
83
  className: "amount"
84
84
  }
85
- ), /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.amount.tip2")))), /* @__PURE__ */ import_react.default.createElement("div", { className: "checkbox-wrap", onClick: () => handleAgreed() }, /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked: isAgreePolicy }), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-box" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.agreed")), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-wrap" }, protocols == null ? void 0 : protocols.map((item, index) => {
85
+ ), /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.amount.tip2")))), (protocols == null ? void 0 : protocols.length) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "checkbox-wrap", onClick: () => handleAgreed() }, /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked: isAgreePolicy }), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-box" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.agreed")), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-wrap" }, protocols == null ? void 0 : protocols.map((item, index) => {
86
86
  return /* @__PURE__ */ import_react.default.createElement(
87
87
  "span",
88
88
  {
@@ -97,7 +97,7 @@ var Deposit = (props) => {
97
97
  item == null ? void 0 : item.title,
98
98
  /* @__PURE__ */ import_react.default.createElement("span", { className: "symbol" }, _policyText(item, index))
99
99
  );
100
- }))))), /* @__PURE__ */ import_react.default.createElement(
100
+ })))) : null), /* @__PURE__ */ import_react.default.createElement(
101
101
  import_PolicyModal.default,
102
102
  {
103
103
  open: visible,
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -217,7 +217,7 @@ var formatMetaData = (item) => {
217
217
  return metadata;
218
218
  };
219
219
  var formatProducts = (item) => {
220
- var _a, _b, _c, _d, _e, _f;
220
+ var _a, _b, _c, _d, _e, _f, _g;
221
221
  const total = Number(item._extend.total);
222
222
  const origin_total = Number(item._extend.origin_total);
223
223
  const discount_amount = origin_total - total;
@@ -227,6 +227,7 @@ var formatProducts = (item) => {
227
227
  return {
228
228
  "num": item._extend.quantity,
229
229
  "price": formatProductPrice(item),
230
+ "source_product_price": (_a = item._extend) == null ? void 0 : _a.price,
230
231
  "product_id": (item == null ? void 0 : item.product_id) || item.id,
231
232
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
232
233
  "product_discount_reason": item._extend.discount_reason || "",
@@ -236,10 +237,10 @@ var formatProducts = (item) => {
236
237
  "discount_per": item._extend.discount_per,
237
238
  "discount_type": item._extend.discount_type || discount_type,
238
239
  "order_detail_id": item._extend.order_detail_id || 0,
239
- "product_bundle": formatProductBundle((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle),
240
+ "product_bundle": formatProductBundle((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
240
241
  "bundle_edit": item._extend.bundle_edit,
241
- "product_option_item": formatProductOption((_d = (_c = item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.option),
242
- "product_variant_id": ((_f = (_e = item._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.product_variant_id) || 0,
242
+ "product_option_item": formatProductOption((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
243
+ "product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0,
243
244
  "discount_list": notManualDiscount,
244
245
  metadata: formatMetaData(item)
245
246
  };
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -0,0 +1,4 @@
1
+ declare const useQuotation: (state: any, dispatch: any) => {
2
+ dom: JSX.Element;
3
+ };
4
+ export default useQuotation;
@@ -0,0 +1,210 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/booking/hooks/useQuotation.tsx
30
+ var useQuotation_exports = {};
31
+ __export(useQuotation_exports, {
32
+ default: () => useQuotation_default
33
+ });
34
+ module.exports = __toCommonJS(useQuotation_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("../utils");
37
+ var import_useEngineContext = __toESM(require("../../../../es/hooks/useEngineContext"));
38
+ var import_utils2 = require("@pisell/utils");
39
+ var import_materials = require("@pisell/materials");
40
+ var formatBundleItemMap = (product) => {
41
+ return product.bundle_group.reduce((pre, cur) => {
42
+ const curObj = {};
43
+ cur.bundle_item.forEach((item) => {
44
+ curObj[item.id] = item;
45
+ });
46
+ return {
47
+ ...pre,
48
+ ...curObj
49
+ };
50
+ }, {});
51
+ };
52
+ var setNewCartValue = (cartValue, newProducts) => {
53
+ if (!newProducts.length) {
54
+ return {
55
+ isChange: false,
56
+ value: cartValue
57
+ };
58
+ }
59
+ let isChange = false;
60
+ let isBundleChange = false;
61
+ let isNotFoundBundle = false;
62
+ const notFoundProducts = [];
63
+ const value = cartValue.map((item) => {
64
+ var _a, _b, _c, _d;
65
+ const newProduct = newProducts.find((newItem2) => newItem2.id === item.product_id);
66
+ if (!newProduct) {
67
+ return item;
68
+ }
69
+ let isChangePrice = newProduct.price != item.price;
70
+ const bundleItemMap = formatBundleItemMap(newProduct);
71
+ const newBundle = (((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []).map((bundle) => {
72
+ if (!bundleItemMap[bundle.id]) {
73
+ isNotFoundBundle = true;
74
+ if (!notFoundProducts.some((p) => p._id === bundle._id)) {
75
+ notFoundProducts.push(item);
76
+ }
77
+ return bundle;
78
+ }
79
+ if (bundle.price != bundleItemMap[bundle.id].price) {
80
+ isChangePrice = true;
81
+ isBundleChange = true;
82
+ }
83
+ return {
84
+ ...bundle,
85
+ base_price: bundleItemMap[bundle.id].base_price,
86
+ price: bundleItemMap[bundle.id].price
87
+ // product_price: bundleItemMap[item.id].product_price,
88
+ };
89
+ });
90
+ if (!isChangePrice) {
91
+ return item;
92
+ } else {
93
+ isChange = true;
94
+ }
95
+ const newItem = {
96
+ ...item,
97
+ original_price: newProduct.original_price,
98
+ price: newProduct.price,
99
+ base_price: newProduct.base_price,
100
+ _extend: {
101
+ ...item._extend,
102
+ price: newProduct.price,
103
+ // total: newProduct.total,
104
+ bundle_edit: isBundleChange ? 1 : item._extend.bundle_edit,
105
+ other: {
106
+ ...item._extend.other,
107
+ option: (_d = (_c = item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.option,
108
+ bundle: newBundle
109
+ }
110
+ }
111
+ };
112
+ const total = (0, import_utils.getProductTotalPrice)(newItem);
113
+ newItem._extend.total = total;
114
+ newItem._extend.origin_total = total;
115
+ return newItem;
116
+ });
117
+ return {
118
+ isChange,
119
+ value,
120
+ isNotFoundBundle,
121
+ notFoundProducts
122
+ };
123
+ };
124
+ var useQuotation = (state, dispatch) => {
125
+ var _a, _b;
126
+ const context = (0, import_useEngineContext.default)();
127
+ const [open, setOpen] = (0, import_react.useState)(false);
128
+ const [products, setProducts] = (0, import_react.useState)([]);
129
+ const cartValueRef = (0, import_react.useRef)(state.service.value || []);
130
+ cartValueRef.current = state.service.value;
131
+ const getCartQuotation = async (params) => {
132
+ if (!cartValueRef.current.length) return;
133
+ const data = await state.apis.getServices({
134
+ skip: 1,
135
+ num: 500,
136
+ extension_type: state.renderType === "eventBooking" ? void 0 : [
137
+ "product_appointment",
138
+ "appointment_ticket",
139
+ "service_product",
140
+ "session_product",
141
+ "session_ticket"
142
+ ],
143
+ with: ["category", "resourceRelation"],
144
+ ids: cartValueRef.current.map((item) => item.product_id),
145
+ open_quotation: 1,
146
+ with_schedule: 1,
147
+ with_count: ["bundleGroup", "optionGroup"],
148
+ order_by_string: "sort:desc",
149
+ status: "published",
150
+ schedule_date: params == null ? void 0 : params.schedule_date,
151
+ customer_id: params == null ? void 0 : params.customer_id,
152
+ open_bundle: 1
153
+ });
154
+ return data;
155
+ };
156
+ const currentDate = (0, import_react.useMemo)(() => {
157
+ return state.date.value.format("YYYY-MM-DD");
158
+ }, [state.date.value]);
159
+ const updateCartQuotation = async (params) => {
160
+ const data = await getCartQuotation(params);
161
+ if (!data) return;
162
+ const { isChange, value: newCartValue, isNotFoundBundle, notFoundProducts } = setNewCartValue(cartValueRef.current, data.list);
163
+ if (isNotFoundBundle) {
164
+ setProducts(notFoundProducts);
165
+ setOpen(true);
166
+ return;
167
+ }
168
+ if (!isChange) return;
169
+ dispatch({
170
+ type: "setService",
171
+ payload: {
172
+ value: newCartValue,
173
+ edit: true
174
+ }
175
+ });
176
+ };
177
+ const isEditClientOrDate = (0, import_react.useMemo)(() => {
178
+ var _a2, _b2;
179
+ return ((_a2 = state == null ? void 0 : state.client) == null ? void 0 : _a2.edit) || ((_b2 = state == null ? void 0 : state.date) == null ? void 0 : _b2.edit);
180
+ }, [state]);
181
+ (0, import_react.useEffect)(() => {
182
+ var _a2, _b2, _c, _d, _e, _f;
183
+ const isQuotation = (_d = (_c = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c.getAppByModal) == null ? void 0 : _d.call(_c, "quotation");
184
+ if (!isQuotation || !isEditClientOrDate) return;
185
+ updateCartQuotation({
186
+ customer_id: (_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.id,
187
+ schedule_date: currentDate
188
+ });
189
+ }, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id, currentDate, isEditClientOrDate]);
190
+ const dom = (0, import_react.useMemo)(() => {
191
+ return /* @__PURE__ */ import_react.default.createElement(
192
+ import_materials.PisellModal.Information,
193
+ {
194
+ open,
195
+ platform: "pc",
196
+ title: import_utils2.locales.getText("pisell2.text.quotation.product.change.title"),
197
+ describe: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils2.locales.getText("pisell2.text.quotation.product.change.describe"), products.map((item) => /* @__PURE__ */ import_react.default.createElement("div", null, item == null ? void 0 : item.product_title))),
198
+ okText: import_utils2.locales.getText("pisell2.text.ok"),
199
+ closable: true,
200
+ cancelVisible: false,
201
+ onOk: () => setOpen(false),
202
+ onCancel: () => setOpen(false)
203
+ }
204
+ );
205
+ }, [open, products]);
206
+ return {
207
+ dom
208
+ };
209
+ };
210
+ var useQuotation_default = useQuotation;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -107,9 +107,8 @@ var Info = (props) => {
107
107
  }, [debouncedHandleResize]);
108
108
  const customerId = (0, import_react.useMemo)(() => {
109
109
  var _a2, _b2;
110
- if (!isDay) return void 0;
111
110
  return ((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) || 1;
112
- }, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id, isDay]);
111
+ }, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id]);
113
112
  const setDefaultService = async (list) => {
114
113
  if (state.renderType !== "eventBooking") {
115
114
  return;
@@ -175,7 +174,6 @@ var Info = (props) => {
175
174
  let dayParams = {};
176
175
  if (isDay && !(0, import_utils3.isEventBooking)(state)) {
177
176
  dayParams.extension_type = ["normal", "product_appointment"];
178
- dayParams.customer_id = customerId;
179
177
  }
180
178
  let data = await state.apis.getServices({
181
179
  skip: 1,
@@ -194,6 +192,7 @@ var Info = (props) => {
194
192
  order_by_string: "sort:desc",
195
193
  status: "published",
196
194
  schedule_date: params == null ? void 0 : params.schedule_date,
195
+ customer_id: customerId,
197
196
  ...dayParams
198
197
  });
199
198
  setLoading(false);
@@ -78,6 +78,9 @@ var Info = (_, ref) => {
78
78
  const isDayBookingMode = (0, import_react.useMemo)(() => {
79
79
  return (0, import_utils5.isDayBooking)(state);
80
80
  }, [state == null ? void 0 : state.renderType]);
81
+ const isDaysBookingMode = (0, import_react.useMemo)(() => {
82
+ return (0, import_utils5.isDaysBooking)(state);
83
+ }, [state == null ? void 0 : state.renderType]);
81
84
  const isEventBookingMode = (0, import_react.useMemo)(() => {
82
85
  return (0, import_utils5.isEventBooking)(state);
83
86
  }, [state == null ? void 0 : state.renderType]);
@@ -437,7 +440,7 @@ var Info = (_, ref) => {
437
440
  ...sessionValue
438
441
  },
439
442
  isOS: isSession,
440
- customer_id: isDayBookingMode ? ((_k2 = (_j2 = state.client) == null ? void 0 : _j2.value) == null ? void 0 : _k2.id) || 1 : void 0
443
+ customer_id: (_k2 = (_j2 = state.client) == null ? void 0 : _j2.value) == null ? void 0 : _k2.id
441
444
  },
442
445
  callback: async (e2, extension_type, detail) => {
443
446
  var _a3, _b3, _c3, _d3;
@@ -471,7 +474,7 @@ var Info = (_, ref) => {
471
474
  cacheItem
472
475
  }
473
476
  });
474
- if (isDayBookingMode) {
477
+ if (isDaysBookingMode) {
475
478
  setTimeout(() => {
476
479
  updateMultiDay({
477
480
  start_date: values.start_date,
@@ -40,6 +40,7 @@ var import_index = require("./index.less");
40
40
  var import_serviceList = __toESM(require("./serviceList"));
41
41
  var import_addTimeModal = __toESM(require("./addTimeModal"));
42
42
  var import_useClearCart = __toESM(require("../../hooks/useClearCart"));
43
+ var import_useQuotation = __toESM(require("../../hooks/useQuotation"));
43
44
  var Service = () => {
44
45
  var _a, _b;
45
46
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
@@ -72,6 +73,7 @@ var Service = () => {
72
73
  }, 100);
73
74
  };
74
75
  const clearCart = (0, import_useClearCart.default)(state, dispatch);
75
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, clearCart, /* @__PURE__ */ import_react.default.createElement(import_serviceList.default, { onEdit: handleEdit }), !state.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit }) : null), /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), showAddTimeModal && /* @__PURE__ */ import_react.default.createElement(import_addTimeModal.default, null));
76
+ const { dom } = (0, import_useQuotation.default)(state, dispatch);
77
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, clearCart, /* @__PURE__ */ import_react.default.createElement(import_serviceList.default, { onEdit: handleEdit }), !state.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit }) : null), /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), showAddTimeModal && /* @__PURE__ */ import_react.default.createElement(import_addTimeModal.default, null), dom);
76
78
  };
77
79
  var service_default = import_react.default.memo(Service);
@@ -67,14 +67,14 @@ var concatBookings = (items) => {
67
67
  };
68
68
  };
69
69
  var createBookingItemsByGroup = (item, isBatchEdit) => {
70
- var _a;
70
+ var _a, _b;
71
71
  const groupId = item._extend.groupId || (0, import_utils.getUniqueId)("bookingGroup_");
72
72
  let bookings = [];
73
73
  for (let i = 0; i < item._extend.duration; i++) {
74
74
  const _extend = { ...item._extend };
75
75
  const startDate = _extend.start_date.add(i, "day");
76
76
  const endDate = _extend.start_date.add(i + 1, "day");
77
- const price = ((_a = _extend.multiDayPrices[startDate.format("YYYY-MM-DD")]) == null ? void 0 : _a.total) || item._extend.price;
77
+ const price = ((_b = (_a = _extend.multiDayPrices) == null ? void 0 : _a[startDate.format("YYYY-MM-DD")]) == null ? void 0 : _b.total) || item._extend.price;
78
78
  const cacheItem = {
79
79
  ...item,
80
80
  // 编辑时组商品需要清空booking_id 否则会重复
@@ -27,7 +27,7 @@ var import_utils = require("../utils");
27
27
  var useSelectPet = (state) => {
28
28
  var _a, _b;
29
29
  const isDaysBookingBol = (0, import_react.useMemo)(() => {
30
- return (0, import_utils.isDaysBooking)(state);
30
+ return (0, import_utils.isDayBooking)(state);
31
31
  }, [state == null ? void 0 : state.renderType]);
32
32
  const petLists = (0, import_react.useMemo)(() => {
33
33
  var _a2, _b2, _c, _d, _e, _f;
@@ -36,9 +36,11 @@ var useSelectPet = (state) => {
36
36
  }, [(_a = state == null ? void 0 : state.pet) == null ? void 0 : _a.value]);
37
37
  const holderLists = (0, import_react.useMemo)(() => {
38
38
  var _a2;
39
+ const _lists = (0, import_utils.formatHolderLists)(petLists);
40
+ return _lists;
39
41
  if (isDaysBookingBol) {
40
- const _lists = (0, import_utils.formatHolderLists)(petLists);
41
- return _lists;
42
+ const _lists2 = (0, import_utils.formatHolderLists)(petLists);
43
+ return _lists2;
42
44
  }
43
45
  return ((_a2 = state == null ? void 0 : state.pet) == null ? void 0 : _a2.holders) || [];
44
46
  }, [petLists, isDaysBookingBol, (_b = state == null ? void 0 : state.pet) == null ? void 0 : _b.holders]);
@@ -38,6 +38,7 @@ var import_addService = __toESM(require("../service/addService"));
38
38
  var import_editService = __toESM(require("../service/editService"));
39
39
  var import_model = require("../model");
40
40
  var import_Lists = __toESM(require("./Lists"));
41
+ var import_useQuotation = __toESM(require("../../hooks/useQuotation"));
41
42
  var Service2Context = (0, import_react.createContext)({});
42
43
  var Service2Cart = ({
43
44
  hideAdd,
@@ -60,13 +61,14 @@ var Service2Cart = ({
60
61
  (_b = (_a = detailRef.current) == null ? void 0 : _a.init) == null ? void 0 : _b.call(_a, cacheItem);
61
62
  }, 100);
62
63
  };
64
+ const { dom } = (0, import_useQuotation.default)(state, dispatch);
63
65
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, /* @__PURE__ */ import_react.default.createElement(
64
66
  import_Lists.default,
65
67
  {
66
68
  onEdit: handleEdit,
67
69
  onChange: (e, type) => dispatchService(type || "setService", e)
68
70
  }
69
- ), !hideAdd && /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit })), !hideEdit && /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }));
71
+ ), !hideAdd && /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit })), !hideEdit && /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), dom);
70
72
  };
71
73
  // Annotate the CommonJS export names for ESM import in node:
72
74
  0 && (module.exports = {
@@ -104,7 +104,7 @@ var isBooking4Shop = (shopId, renderType) => {
104
104
  if (renderType === "eventBooking") {
105
105
  return false;
106
106
  }
107
- const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813];
107
+ const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813, 8609, 8610, 8782];
108
108
  return booking4Shops.includes(shopId);
109
109
  };
110
110
  function generateDateRange(start, end) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import '../../../info/service/addService/index.less';
3
4
  interface AddServiceProps {