@pisell/private-materials 6.2.35 → 6.2.36

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 (267) 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/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/index.d.ts +1 -0
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  17. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  19. package/es/components/booking/components/voucher/index.js +5 -0
  20. package/es/components/booking/deposit/ClientItem/index.js +1 -1
  21. package/es/components/booking/deposit/DepositItem/index.js +1 -1
  22. package/es/components/booking/deposit/index.d.ts +1 -0
  23. package/es/components/booking/forms/single/index.d.ts +1 -0
  24. package/es/components/booking/hooks/useQuotation.js +1 -1
  25. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  26. package/es/components/booking/info/clientVariant/utils.d.ts +2 -0
  27. package/es/components/booking/info/clientVariant/utils.js +7 -0
  28. package/es/components/booking/info/clientVariant/vertical/index.js +3 -2
  29. package/es/components/booking/info/date/index.d.ts +1 -0
  30. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  31. package/es/components/booking/info/header/index.d.ts +1 -0
  32. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  33. package/es/components/booking/info/notes/index.d.ts +1 -0
  34. package/es/components/booking/info/service/Lists.d.ts +1 -0
  35. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  36. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  37. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  38. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  39. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  40. package/es/components/booking/info/service2/utils.d.ts +1 -1
  41. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  42. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  43. package/es/components/booking/info2/service/addService/utils.js +2 -1
  44. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  45. package/es/components/booking/info2/service/editService/index.js +37 -29
  46. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  47. package/es/components/booking/info2/utilsByBooking.js +4 -4
  48. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  49. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  50. package/es/components/booking/materiels/duration/index.js +1 -1
  51. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  52. package/es/components/booking/materiels/startTime/index.js +1 -1
  53. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  54. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  55. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  56. package/es/components/booking/utils.js +3 -3
  57. package/es/components/eftpos/index.d.ts +1 -0
  58. package/es/components/eftpos/pos.d.ts +1 -0
  59. package/es/components/eftposPay/amount.d.ts +2 -1
  60. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  61. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  62. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  63. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  64. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  65. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  66. package/es/components/eftposPay/device.d.ts +2 -1
  67. package/es/components/eftposPay/hooks.d.ts +1 -1
  68. package/es/components/eftposPay/index.d.ts +1 -0
  69. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  70. package/es/components/eftposPay/pay.d.ts +1 -0
  71. package/es/components/eftposPay/payo/config.d.ts +1 -0
  72. package/es/components/eftposPay/store/index.d.ts +3 -3
  73. package/es/components/eftposPay/tip.d.ts +1 -0
  74. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  75. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  76. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  81. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  85. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  86. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  88. package/es/components/eventBooking/index.d.ts +1 -0
  89. package/es/components/login/index.d.ts +1 -0
  90. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  92. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  93. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  94. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  95. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  96. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  97. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  98. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  99. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  100. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  101. package/es/components/productExtension/index.d.ts +1 -0
  102. package/es/components/productSelect/components/TabProduct/index.js +7 -2
  103. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  104. package/es/components/ruleSetting/index.d.ts +1 -0
  105. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  106. package/es/components/schedules/calendar/index.d.ts +1 -0
  107. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  108. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  109. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  110. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  111. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  112. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  113. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  114. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  115. package/es/components/schedules/products/list/index.d.ts +1 -0
  116. package/es/components/schedules/resources/index.d.ts +1 -0
  117. package/es/components/schedules/resources/list/index.d.ts +1 -0
  118. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  119. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  120. package/es/components/schedules/schedules/index.d.ts +1 -0
  121. package/es/components/shoppingCart/components/Cart/Product.js +1 -1
  122. package/es/components/shoppingCart/index.d.ts +1 -0
  123. package/es/components/taxSelect/index.d.ts +1 -0
  124. package/es/components/ticketBooking/components/addServiceVariant/addService.js +170 -89
  125. package/es/components/ticketBooking/components/timeBar/index.js +3 -3
  126. package/es/components/ticketBooking/utils/index.d.ts +3 -1
  127. package/es/components/ticketBooking/utils/index.js +18 -2
  128. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  129. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  130. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  131. package/es/plus/clientName/index.d.ts +1 -0
  132. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  133. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  134. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  135. package/es/pro/pisellNumberSelector/index.js +3 -3
  136. package/es/pro/pisellPhoneKeyboard/index.js +1 -1
  137. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  138. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  139. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  140. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  141. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  142. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  143. package/lib/components/appointmentBooking/index.d.ts +1 -0
  144. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  145. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  146. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  147. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  148. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  149. package/lib/components/booking/components/voucher/index.js +5 -0
  150. package/lib/components/booking/deposit/ClientItem/index.js +1 -1
  151. package/lib/components/booking/deposit/DepositItem/index.js +1 -1
  152. package/lib/components/booking/deposit/index.d.ts +1 -0
  153. package/lib/components/booking/forms/single/index.d.ts +1 -0
  154. package/lib/components/booking/hooks/useQuotation.js +1 -1
  155. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  156. package/lib/components/booking/info/clientVariant/utils.d.ts +2 -0
  157. package/lib/components/booking/info/clientVariant/utils.js +13 -2
  158. package/lib/components/booking/info/clientVariant/vertical/index.js +7 -6
  159. package/lib/components/booking/info/date/index.d.ts +1 -0
  160. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  161. package/lib/components/booking/info/header/index.d.ts +1 -0
  162. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  163. package/lib/components/booking/info/notes/index.d.ts +1 -0
  164. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  165. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  166. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  167. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  168. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  169. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  170. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  171. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  172. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  173. package/lib/components/booking/info2/service/addService/utils.js +3 -3
  174. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  175. package/lib/components/booking/info2/service/editService/index.js +22 -12
  176. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  177. package/lib/components/booking/info2/utilsByBooking.js +7 -8
  178. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  179. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  180. package/lib/components/booking/materiels/duration/index.js +1 -1
  181. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  182. package/lib/components/booking/materiels/startTime/index.js +1 -1
  183. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  184. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  185. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  186. package/lib/components/booking/utils.js +3 -3
  187. package/lib/components/eftpos/index.d.ts +1 -0
  188. package/lib/components/eftpos/pos.d.ts +1 -0
  189. package/lib/components/eftposPay/amount.d.ts +2 -1
  190. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  191. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  192. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  193. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  194. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  195. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  196. package/lib/components/eftposPay/device.d.ts +2 -1
  197. package/lib/components/eftposPay/hooks.d.ts +1 -1
  198. package/lib/components/eftposPay/index.d.ts +1 -0
  199. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  200. package/lib/components/eftposPay/pay.d.ts +1 -0
  201. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  202. package/lib/components/eftposPay/store/index.d.ts +3 -3
  203. package/lib/components/eftposPay/tip.d.ts +1 -0
  204. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  205. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  206. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  207. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  208. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  209. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  210. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  211. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  212. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  213. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  214. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  215. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  216. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  217. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  218. package/lib/components/eventBooking/index.d.ts +1 -0
  219. package/lib/components/login/index.d.ts +1 -0
  220. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  221. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  222. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  223. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  224. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  225. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  226. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  227. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  228. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  229. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  230. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  231. package/lib/components/productExtension/index.d.ts +1 -0
  232. package/lib/components/productSelect/components/TabProduct/index.js +7 -1
  233. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  234. package/lib/components/ruleSetting/index.d.ts +1 -0
  235. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  236. package/lib/components/schedules/calendar/index.d.ts +1 -0
  237. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  238. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  239. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  240. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  241. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  242. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  243. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  244. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  245. package/lib/components/schedules/products/list/index.d.ts +1 -0
  246. package/lib/components/schedules/resources/index.d.ts +1 -0
  247. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  248. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  249. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  250. package/lib/components/schedules/schedules/index.d.ts +1 -0
  251. package/lib/components/shoppingCart/components/Cart/Product.js +6 -4
  252. package/lib/components/shoppingCart/index.d.ts +1 -0
  253. package/lib/components/taxSelect/index.d.ts +1 -0
  254. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +85 -12
  255. package/lib/components/ticketBooking/components/timeBar/index.js +89 -70
  256. package/lib/components/ticketBooking/utils/index.d.ts +3 -1
  257. package/lib/components/ticketBooking/utils/index.js +21 -0
  258. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  259. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  260. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  261. package/lib/plus/clientName/index.d.ts +1 -0
  262. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  263. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  264. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  265. package/lib/pro/pisellNumberSelector/index.js +3 -3
  266. package/lib/pro/pisellPhoneKeyboard/index.js +1 -1
  267. package/package.json +2 -2
@@ -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 - 购物车商品数组
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => 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.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -29,6 +29,7 @@ import "./index.less";
29
29
  import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
30
30
  import { getServiceAddons } from "./utils";
31
31
  import { useCustomer } from "../../../ticketBooking/hooks/pisellos";
32
+ import { getClientVariantClose } from "../../info/clientVariant/utils";
32
33
  var ShopDiscountHooks = {
33
34
  onInited: 'shopDiscount:onInited',
34
35
  onDestroy: 'shopDiscount:onDestroy',
@@ -175,6 +176,10 @@ var VoucherCard = function VoucherCard(props) {
175
176
  useEffect(function () {
176
177
  if (!isBooking4Shop) return;
177
178
  var onScanCustomerChange = function onScanCustomerChange(customer) {
179
+ var clientVariantClose = getClientVariantClose();
180
+ if (clientVariantClose) {
181
+ clientVariantClose();
182
+ }
178
183
  selectCustomer(customer);
179
184
  };
180
185
  var onDiscountListChange = function onDiscountListChange(discount) {
@@ -2,7 +2,7 @@ import React, { useCallback } from "react";
2
2
  import { Avatar } from "antd";
3
3
  import { image, locales } from "@pisell/utils";
4
4
  import classnames from 'classnames';
5
- import User01 from "@pisell/icon/src/User01";
5
+ import User01 from "@pisell/icon/es/User01";
6
6
  import { isWalkIn as getIsWalkIn } from "../../utils";
7
7
  import "./index.less";
8
8
  var ClientItem = function ClientItem(props) {
@@ -3,7 +3,7 @@ import { Button, Dropdown } from 'antd';
3
3
  import { DownOutlined } from '@ant-design/icons';
4
4
  import { formatAmount, locales } from '@pisell/utils';
5
5
  import ClientItem from "../ClientItem";
6
- import Edit05 from '@pisell/icon/src/Edit05';
6
+ import Edit05 from '@pisell/icon/es/Edit05';
7
7
  import "./index.less";
8
8
  var statusTagColor = {
9
9
  unpaid: '#B2DDFF',
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
16
  import React, { useEffect, useMemo, useRef, useState } from 'react';
17
17
  import { getProductTotalPrice } from "../utils";
18
- import useEngineContext from "../../../../es/hooks/useEngineContext";
18
+ import useEngineContext from "../../../hooks/useEngineContext";
19
19
  import { locales } from "@pisell/utils";
20
20
  import { PisellModal } from "@pisell/materials";
21
21
  import { getProductPrice } from "../info/service/serve";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1 +1,3 @@
1
1
  export declare const getWaiverTitle: (waiverForm: any[]) => string;
2
+ export declare const setClientVariantClose: (fn: any) => void;
3
+ export declare const getClientVariantClose: () => (() => void) | null;
@@ -3,4 +3,11 @@ export var getWaiverTitle = function getWaiverTitle(waiverForm) {
3
3
  return (waiverForm || []).map(function (item) {
4
4
  return "".concat(item.form_title || '', ":").concat(item.is_filled ? locales.getText('pisell2.text.filled') : locales.getText('pisell2.text.not-filled'));
5
5
  }).join(';');
6
+ };
7
+ var clientVariantClose;
8
+ export var setClientVariantClose = function setClientVariantClose(fn) {
9
+ clientVariantClose = fn;
10
+ };
11
+ export var getClientVariantClose = function getClientVariantClose() {
12
+ return clientVariantClose;
6
13
  };
@@ -36,10 +36,10 @@ import { getAppointmentService, getPets, isDayBooking, isOpenDeletePet, updateSe
36
36
  import { moveItemToFront } from "../../utils";
37
37
  import "./index.less";
38
38
  import useAddHolder, { useFormDataConfig } from "../../hooks/useAddHolder";
39
- import { getWaiverTitle } from "../utils";
39
+ import { getWaiverTitle, setClientVariantClose } from "../utils";
40
40
  import useGetHolderList from "../../hooks/useGetHolderList";
41
41
  var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
42
- var _context$appHelper, _context$appHelper$ge, _state$bookingConfig2, _state$bookingConfig4, _state$pet3, _state$pet4, _state$pet6, _state$pet8, _state$client$value3, _state$bookingConfig7, _state$pet9, _state$bookingConfig8, _state$service2, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _state$client$value10, _state$client$value11, _state$client$value12, _state$client$value13, _context$appHelper2, _context$appHelper2$i, _state$bookingConfig9, _state$client6;
42
+ var _context$appHelper, _context$appHelper$ge, _state$bookingConfig2, _state$bookingConfig4, _state$pet3, _state$pet4, _state$pet6, _state$pet8, _state$client$value3, _state$bookingConfig7, _state$pet9, _state$bookingConfig8, _state$service2, _modalRef$current3, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _state$client$value10, _state$client$value11, _state$client$value12, _state$client$value13, _context$appHelper2, _context$appHelper2$i, _state$bookingConfig9, _state$client6;
43
43
  var globalState = props.globalState,
44
44
  setGlobalState = props.setGlobalState;
45
45
  var modalRef = useRef();
@@ -348,6 +348,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
348
348
  setSearch: (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 ? void 0 : _modalRef$current2.setSearch
349
349
  };
350
350
  });
351
+ setClientVariantClose((_modalRef$current3 = modalRef.current) === null || _modalRef$current3 === void 0 ? void 0 : _modalRef$current3.close);
351
352
 
352
353
  /**
353
354
  * @title: 是否打开更改商品弹窗
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -584,7 +584,8 @@ export var getProductExtend = function getProductExtend(_ref11) {
584
584
  state: state
585
585
  });
586
586
  if (getDuration(_cacheItem === null || _cacheItem === void 0 ? void 0 : _cacheItem.duration) === 'flexible') {
587
- _cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
587
+ var _cacheItem$_data$time;
588
+ _cacheItem._extend.duration = (_cacheItem$_data$time = _cacheItem._data.timeObj) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time.durationSlicesBasedOnTime) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time[0]) === null || _cacheItem$_data$time === void 0 ? void 0 : _cacheItem$_data$time.value;
588
589
 
589
590
  // 计算服务的开始和结束时间
590
591
  var _getServiceTimes = getServiceTimes({
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -39,7 +39,7 @@ import { addService, genServiceKey, getIsShowNumber } from "../../../../ticketBo
39
39
  import NoteModal from "../../../../../plus/noteModal";
40
40
  var submitLock = false;
41
41
  var Info = function Info(_, ref) {
42
- var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI4, _state$service$cacheI5, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI10, _state$bookingConfig5, _state$service$cacheI11, _state$service$cacheI12, _state$service9, _state$service$resour2, _state$service$cacheI13, _state$service$cacheI14;
42
+ var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI5, _state$service$cacheI6, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI11, _state$bookingConfig5, _state$service$cacheI12, _state$service$cacheI13, _state$service9, _state$service$resour2, _state$service$cacheI14, _state$service$cacheI15;
43
43
  var _Form$useForm = Form.useForm(),
44
44
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
45
45
  form = _Form$useForm2[0];
@@ -224,7 +224,7 @@ var Info = function Info(_, ref) {
224
224
  * @Date: 2024-01-09 14:04
225
225
  */
226
226
  var onFinish = function onFinish(values) {
227
- var _resourcesRef$current, _item$_extend;
227
+ var _resourcesRef$current, _item$_extend, _state$service$cacheI3;
228
228
  var isSuccess = (_resourcesRef$current = resourcesRef.current) === null || _resourcesRef$current === void 0 ? void 0 : _resourcesRef$current.check();
229
229
  if (isShowTimeAndResource && !isSuccess) {
230
230
  return;
@@ -283,6 +283,13 @@ var Info = function Info(_, ref) {
283
283
  deleteCacheParams();
284
284
  console.log('_onFinish', _list);
285
285
  form.resetFields();
286
+ if (!!((_state$service$cacheI3 = state.service.cacheItem) !== null && _state$service$cacheI3 !== void 0 && _state$service$cacheI3.new)) {
287
+ window.dispatchEvent(new CustomEvent('onAddNewService', {
288
+ detail: {
289
+ cacheItem: _objectSpread({}, state.service.cacheItem)
290
+ }
291
+ }));
292
+ }
286
293
  dispatch({
287
294
  type: 'setService',
288
295
  payload: {
@@ -356,12 +363,12 @@ var Info = function Info(_, ref) {
356
363
  * @Date: 2024-01-09 14:06
357
364
  */
358
365
  var isReason = useMemo(function () {
359
- var _state$service$cacheI3;
360
- var oPrice = Number(((_state$service$cacheI3 = state.service.cacheItem) === null || _state$service$cacheI3 === void 0 ? void 0 : _state$service$cacheI3._extend.origin_total) || 0);
366
+ var _state$service$cacheI4;
367
+ var oPrice = Number(((_state$service$cacheI4 = state.service.cacheItem) === null || _state$service$cacheI4 === void 0 ? void 0 : _state$service$cacheI4._extend.origin_total) || 0);
361
368
  var cPrice = Number(useTotal || 0);
362
369
  // 原价 !== 现价
363
370
  return cPrice !== oPrice;
364
- }, [useTotal, (_state$service$cacheI4 = state.service.cacheItem) === null || _state$service$cacheI4 === void 0 || (_state$service$cacheI4 = _state$service$cacheI4._extend) === null || _state$service$cacheI4 === void 0 ? void 0 : _state$service$cacheI4.origin_total]);
371
+ }, [useTotal, (_state$service$cacheI5 = state.service.cacheItem) === null || _state$service$cacheI5 === void 0 || (_state$service$cacheI5 = _state$service$cacheI5._extend) === null || _state$service$cacheI5 === void 0 ? void 0 : _state$service$cacheI5.origin_total]);
365
372
  var getResources = function getResources() {
366
373
  var res = formatResources({
367
374
  cacheItem: getCurrentCacheItem(),
@@ -435,7 +442,7 @@ var Info = function Info(_, ref) {
435
442
  */
436
443
  useEffect(function () {
437
444
  getDiscount();
438
- }, [useTotal, (_state$service$cacheI5 = state.service.cacheItem) === null || _state$service$cacheI5 === void 0 || (_state$service$cacheI5 = _state$service$cacheI5._extend) === null || _state$service$cacheI5 === void 0 ? void 0 : _state$service$cacheI5.origin_total]);
445
+ }, [useTotal, (_state$service$cacheI6 = state.service.cacheItem) === null || _state$service$cacheI6 === void 0 || (_state$service$cacheI6 = _state$service$cacheI6._extend) === null || _state$service$cacheI6 === void 0 ? void 0 : _state$service$cacheI6.origin_total]);
439
446
  var bundles = useMemo(function () {
440
447
  var _state$service5;
441
448
  return ((_state$service5 = state.service) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.cacheItem) === null || _state$service5 === void 0 || (_state$service5 = _state$service5._extend) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.other) === null || _state$service5 === void 0 ? void 0 : _state$service5.bundle) || [];
@@ -588,6 +595,22 @@ var Info = function Info(_, ref) {
588
595
  }, [state.renderType, isNormalProduct]);
589
596
  var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
590
597
  var isNoSpecAndPackage = getIsNoSpecAndPackage(state.service.cacheItem);
598
+ var handleNoteConfirm = function handleNoteConfirm(noteValue) {
599
+ form.setFieldsValue({
600
+ note: noteValue
601
+ });
602
+ setNoteModalOpen(false);
603
+ };
604
+ var handleNoteDelete = function handleNoteDelete() {
605
+ form.setFieldsValue({
606
+ note: ''
607
+ });
608
+ setNoteModalOpen(false);
609
+ };
610
+ var handleNoteCancel = function handleNoteCancel() {
611
+ setNoteModalOpen(false);
612
+ };
613
+ console.log(isShowTimeAndResource, 'isShowTimeAndResource');
591
614
  var productName = useMemo(function () {
592
615
  var _state$service7;
593
616
  return /*#__PURE__*/React.createElement(Col, {
@@ -615,7 +638,7 @@ var Info = function Info(_, ref) {
615
638
  }))));
616
639
  }, [(_state$service8 = state.service) === null || _state$service8 === void 0 || (_state$service8 = _state$service8.cacheItem) === null || _state$service8 === void 0 || (_state$service8 = _state$service8._extend) === null || _state$service8 === void 0 ? void 0 : _state$service8.product_name, bundles, state.amountSymbol, state.isBookingCreatePage]);
617
640
  var price = useMemo(function () {
618
- var _state$service$cacheI6, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9;
641
+ var _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10;
619
642
  return /*#__PURE__*/React.createElement(Col, {
620
643
  span: 24
621
644
  }, /*#__PURE__*/React.createElement(Form.Item, {
@@ -624,7 +647,7 @@ var Info = function Info(_, ref) {
624
647
  rules: [{
625
648
  required: true
626
649
  }],
627
- extra: useTotal !== ((_state$service$cacheI6 = state.service.cacheItem) === null || _state$service$cacheI6 === void 0 || (_state$service$cacheI6 = _state$service$cacheI6._extend) === null || _state$service$cacheI6 === void 0 ? void 0 : _state$service$cacheI6.origin_total) && locales.getText('page.booking.text.price-extra')(formatAmount((_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 || (_state$service$cacheI7 = _state$service$cacheI7._extend) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.origin_total, 2, state.amountSymbol), formatAmount(useTotal, 2, state.amountSymbol))
650
+ extra: useTotal !== ((_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 || (_state$service$cacheI7 = _state$service$cacheI7._extend) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.origin_total) && locales.getText('page.booking.text.price-extra')(formatAmount((_state$service$cacheI8 = state.service.cacheItem) === null || _state$service$cacheI8 === void 0 || (_state$service$cacheI8 = _state$service$cacheI8._extend) === null || _state$service$cacheI8 === void 0 ? void 0 : _state$service$cacheI8.origin_total, 2, state.amountSymbol), formatAmount(useTotal, 2, state.amountSymbol))
628
651
  }, /*#__PURE__*/React.createElement(PisellAdjustPriceInputNumber, {
629
652
  style: {
630
653
  width: '100%'
@@ -634,10 +657,10 @@ var Info = function Info(_, ref) {
634
657
  prefix: state.amountSymbol,
635
658
  onChange: handleTotalChange,
636
659
  disabled: state.channelDisabledEdit,
637
- originValue: ((_state$service$cacheI8 = state.service.cacheItem) === null || _state$service$cacheI8 === void 0 || (_state$service$cacheI8 = _state$service$cacheI8._extend) === null || _state$service$cacheI8 === void 0 ? void 0 : _state$service$cacheI8.origin_total) || 0,
638
- placeholder: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || '0'
660
+ originValue: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || 0,
661
+ placeholder: ((_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.origin_total) || '0'
639
662
  })));
640
- }, [useTotal, (_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.origin_total, state.amountSymbol, state.channelDisabledEdit]);
663
+ }, [useTotal, (_state$service$cacheI11 = state.service.cacheItem) === null || _state$service$cacheI11 === void 0 || (_state$service$cacheI11 = _state$service$cacheI11._extend) === null || _state$service$cacheI11 === void 0 ? void 0 : _state$service$cacheI11.origin_total, state.amountSymbol, state.channelDisabledEdit]);
641
664
  var reason = useMemo(function () {
642
665
  return isReason ? /*#__PURE__*/React.createElement(Col, {
643
666
  span: 24
@@ -701,7 +724,7 @@ var Info = function Info(_, ref) {
701
724
  // useStartTime={useStartTime}
702
725
  }));
703
726
  // 只监听内部使用值
704
- }, [state.renderType, (_state$service$cacheI11 = state.service.cacheItem) === null || _state$service$cacheI11 === void 0 || (_state$service$cacheI11 = _state$service$cacheI11._data) === null || _state$service$cacheI11 === void 0 ? void 0 : _state$service$cacheI11.resources, (_state$service$cacheI12 = state.service.cacheItem) === null || _state$service$cacheI12 === void 0 || (_state$service$cacheI12 = _state$service$cacheI12._data) === null || _state$service$cacheI12 === void 0 ? void 0 : _state$service$cacheI12.resourceMaps]);
727
+ }, [state.renderType, (_state$service$cacheI12 = state.service.cacheItem) === null || _state$service$cacheI12 === void 0 || (_state$service$cacheI12 = _state$service$cacheI12._data) === null || _state$service$cacheI12 === void 0 ? void 0 : _state$service$cacheI12.resources, (_state$service$cacheI13 = state.service.cacheItem) === null || _state$service$cacheI13 === void 0 || (_state$service$cacheI13 = _state$service$cacheI13._data) === null || _state$service$cacheI13 === void 0 ? void 0 : _state$service$cacheI13.resourceMaps]);
705
728
  var capacity = useMemo(function () {
706
729
  return /*#__PURE__*/React.createElement(Form.Item, {
707
730
  noStyle: true,
@@ -788,7 +811,7 @@ var Info = function Info(_, ref) {
788
811
  }, locales.getText('pisell2.text.apply')));
789
812
  }, [(_state$service$resour2 = state.service.resourcesOrigin) === null || _state$service$resour2 === void 0 ? void 0 : _state$service$resour2.length, isNormalProduct]);
790
813
  console.log('render edit');
791
- console.log(state.service.editModal && !((_state$service$cacheI13 = state.service.cacheItem) !== null && _state$service$cacheI13 !== void 0 && _state$service$cacheI13.autoClose), performance.now() - window.pp1, '打开商品1');
814
+ console.log(state.service.editModal && !((_state$service$cacheI14 = state.service.cacheItem) !== null && _state$service$cacheI14 !== void 0 && _state$service$cacheI14.autoClose), performance.now() - window.pp1, '打开商品1');
792
815
  var _useState3 = useState(false),
793
816
  _useState4 = _slicedToArray(_useState3, 2),
794
817
  val = _useState4[0],
@@ -802,21 +825,6 @@ var Info = function Info(_, ref) {
802
825
  setVal(false);
803
826
  }
804
827
  }, [isShowTimeAndResource]);
805
- var handleNoteConfirm = function handleNoteConfirm(noteValue) {
806
- form.setFieldsValue({
807
- note: noteValue
808
- });
809
- setNoteModalOpen(false);
810
- };
811
- var handleNoteDelete = function handleNoteDelete() {
812
- form.setFieldsValue({
813
- note: ''
814
- });
815
- setNoteModalOpen(false);
816
- };
817
- var handleNoteCancel = function handleNoteCancel() {
818
- setNoteModalOpen(false);
819
- };
820
828
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
821
829
  titleNoWrap: true
822
830
  //通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
@@ -824,7 +832,7 @@ var Info = function Info(_, ref) {
824
832
  zIndex: state.service.changeService ? 999 : 1000,
825
833
  forceRender: true,
826
834
  mask: state.drawerMask,
827
- open: !isNoSpecAndPackage && state.service.editModal && !((_state$service$cacheI14 = state.service.cacheItem) !== null && _state$service$cacheI14 !== void 0 && _state$service$cacheI14.autoClose),
835
+ open: !isNoSpecAndPackage && state.service.editModal && !((_state$service$cacheI15 = state.service.cacheItem) !== null && _state$service$cacheI15 !== void 0 && _state$service$cacheI15.autoClose),
828
836
  title: locales.getText('pisell2.text.edit-service'),
829
837
  onClose: function onClose() {
830
838
  dispatch({
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -10,7 +10,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
10
10
  import dayjs from 'dayjs';
11
11
  import { locales } from "@pisell/utils";
12
12
  import { getCacheParams, getServeStartTime, getLastServer, flexibleObj, getServiceTimes, findNextDuration, getDays, isSessionProduct } from "../utils";
13
- import { isNormalProductByDurationSchedule } from "../info/service2/utils";
14
13
  import { isOption } from "../../ticketBooking/components/addServiceVariant/utils";
15
14
 
16
15
  // 获取当前剩余量
@@ -338,7 +337,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
338
337
  // 下一个商品的扩展参数
339
338
  var _extend = {
340
339
  // 时长: 当前商品时长 > 第一个时长
341
- duration: findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
340
+ duration: findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
342
341
  };
343
342
 
344
343
  // 如果有上一个商品, 将上一个商品的某些参数 设置到新商品上
@@ -352,7 +351,8 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
352
351
  } else {
353
352
  // 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
354
353
  if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
355
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
354
+ var _timeObj$timeSlices;
355
+ _extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 || (_timeObj$timeSlices = timeObj.timeSlices) === null || _timeObj$timeSlices === void 0 ? void 0 : _timeObj$timeSlices.length) - 1].value;
356
356
  } else {
357
357
  _extend.start_time = lastServerEndDate.format("HH:mm");
358
358
  }
@@ -414,7 +414,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
414
414
  // 是否是无规格无套餐商品的非预约商品
415
415
  export var getIsNoSpecAndPackage = function getIsNoSpecAndPackage(product) {
416
416
  var _product$variant;
417
- if (!isNormalProductByDurationSchedule(product)) {
417
+ if ((product === null || product === void 0 ? void 0 : product.extension_type) !== 'normal') {
418
418
  return false;
419
419
  }
420
420
  // 编辑状态参数判断
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface DurationProps extends SelectProps {
3
4
  locale?: string;
@@ -60,7 +60,7 @@ var Duration = function Duration(props) {
60
60
  });
61
61
  }
62
62
  return durationSlicesBasedOnTime;
63
- }, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
63
+ }, [timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
64
64
  useEffect(function () {
65
65
  timeObjChange === null || timeObjChange === void 0 || timeObjChange(times);
66
66
  }, [times]);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -37,6 +37,6 @@ var StartTime = function StartTime(props) {
37
37
  }, d[label]);
38
38
  });
39
39
  }, []);
40
- return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj.timeSlices));
40
+ return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices));
41
41
  };
42
42
  export default StartTime;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  isEdit: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -670,7 +670,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
670
670
  if (isSession) {
671
671
  return getDays(cacheItem, 'minutes');
672
672
  }
673
- return findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
673
+ return findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
674
674
  };
675
675
 
676
676
  // 获取上一个服务商品
@@ -694,7 +694,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
694
694
  } else {
695
695
  // 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
696
696
  if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, 'day')) {
697
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
697
+ _extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices.length) - 1].value;
698
698
  } else {
699
699
  _extend.start_time = lastServerEndDate.format("HH:mm");
700
700
  }
@@ -704,7 +704,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
704
704
  // _extend.resource = 0;
705
705
 
706
706
  var findNextSliceProps = {
707
- timeSlices: timeObj.timeSlices,
707
+ timeSlices: timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices,
708
708
  index: 0,
709
709
  date: ''
710
710
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos, DeviceStatus } from './const';
2
3
  import './index.less';
3
4
  interface PosProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DeviceProp } from "./const";
2
3
  interface PosProps {
3
4
  eftposName: string;