@pisell/private-materials 3.2.11 → 3.2.13

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 (437) 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 +14 -18
  7. package/build/lowcode/render/default/view.js +3 -3
  8. package/build/lowcode/view.js +6 -6
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/booking/addons/index.js +7 -5
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/components/footer/index.d.ts +0 -1
  13. package/es/components/booking/deposit/index.d.ts +0 -1
  14. package/es/components/booking/forms/model.d.ts +1 -10
  15. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  16. package/es/components/booking/info/header/index.d.ts +0 -1
  17. package/es/components/booking/info/index.d.ts +0 -1
  18. package/es/components/booking/info/model.d.ts +1 -10
  19. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  20. package/es/components/booking/info/service/addService/index.js +3 -3
  21. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  22. package/es/components/booking/info/service/editService/index.js +58 -48
  23. package/es/components/booking/info/service2/utils.d.ts +1 -1
  24. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  25. package/es/components/booking/info2/service/addService/index.js +3 -2
  26. package/es/components/booking/info2/service/addService/utils.js +57 -5
  27. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  28. package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
  29. package/es/components/booking/info2/service/editService/index.js +4 -3
  30. package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
  31. package/es/components/booking/info2/service/editService/utils.js +18 -0
  32. package/es/components/booking/locales.d.ts +3 -0
  33. package/es/components/booking/locales.js +3 -0
  34. package/es/components/booking/model.d.ts +1 -9
  35. package/es/components/booking/notes/model.d.ts +1 -10
  36. package/es/components/booking/payments/model.d.ts +1 -10
  37. package/es/components/booking/utils.d.ts +2 -2
  38. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  39. package/es/components/eftposPay/amount.d.ts +1 -1
  40. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  41. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  42. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  43. package/es/components/eftposPay/device.d.ts +1 -1
  44. package/es/components/eftposPay/hooks.d.ts +2 -2
  45. package/es/components/eftposPay/index.d.ts +0 -1
  46. package/es/components/eftposPay/pay.d.ts +0 -1
  47. package/es/components/eftposPay/payo/config.d.ts +0 -1
  48. package/es/components/eftposPay/store/index.d.ts +5 -5
  49. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  50. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  51. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  52. package/es/components/eventBooking/index.d.ts +0 -1
  53. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  54. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  55. package/es/components/pay/toC/model.d.ts +1 -9
  56. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  57. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  58. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  59. package/es/components/productExtension/index.d.ts +0 -1
  60. package/es/components/ruleSetting/index.d.ts +0 -1
  61. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  62. package/es/components/schedules/model.d.ts +1 -9
  63. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  64. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  65. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  66. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  67. package/es/components/taxSelect/index.d.ts +0 -1
  68. package/es/components/wallet/Detail/model.d.ts +1 -13
  69. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  70. package/es/components/wallet/PointCard/model.d.ts +1 -13
  71. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  72. package/es/components/wallet/Voucher/model.d.ts +1 -13
  73. package/es/components/wallet/model.d.ts +1 -9
  74. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  75. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  76. package/lib/components/booking/addons/index.js +7 -5
  77. package/lib/components/booking/addons/model.d.ts +1 -10
  78. package/lib/components/booking/components/footer/index.d.ts +0 -1
  79. package/lib/components/booking/deposit/index.d.ts +0 -1
  80. package/lib/components/booking/forms/model.d.ts +1 -10
  81. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  82. package/lib/components/booking/info/header/index.d.ts +0 -1
  83. package/lib/components/booking/info/index.d.ts +0 -1
  84. package/lib/components/booking/info/model.d.ts +1 -10
  85. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  86. package/lib/components/booking/info/service/addService/index.js +2 -2
  87. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  88. package/lib/components/booking/info/service/editService/index.js +3 -2
  89. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  90. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  91. package/lib/components/booking/info2/service/addService/index.js +3 -2
  92. package/lib/components/booking/info2/service/addService/utils.js +36 -1
  93. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  94. package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
  95. package/lib/components/booking/info2/service/editService/index.js +3 -2
  96. package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
  97. package/lib/components/booking/info2/service/editService/utils.js +48 -0
  98. package/lib/components/booking/locales.d.ts +3 -0
  99. package/lib/components/booking/locales.js +3 -0
  100. package/lib/components/booking/model.d.ts +1 -9
  101. package/lib/components/booking/notes/model.d.ts +1 -10
  102. package/lib/components/booking/payments/model.d.ts +1 -10
  103. package/lib/components/booking/utils.d.ts +2 -2
  104. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  105. package/lib/components/eftposPay/amount.d.ts +1 -1
  106. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  107. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  108. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  109. package/lib/components/eftposPay/device.d.ts +1 -1
  110. package/lib/components/eftposPay/hooks.d.ts +2 -2
  111. package/lib/components/eftposPay/index.d.ts +0 -1
  112. package/lib/components/eftposPay/pay.d.ts +0 -1
  113. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  114. package/lib/components/eftposPay/store/index.d.ts +5 -5
  115. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  116. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  117. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  118. package/lib/components/eventBooking/index.d.ts +0 -1
  119. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  120. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  121. package/lib/components/pay/toC/model.d.ts +1 -9
  122. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  123. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  124. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  125. package/lib/components/productExtension/index.d.ts +0 -1
  126. package/lib/components/ruleSetting/index.d.ts +0 -1
  127. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  128. package/lib/components/schedules/model.d.ts +1 -9
  129. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  130. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  131. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  132. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  133. package/lib/components/taxSelect/index.d.ts +0 -1
  134. package/lib/components/wallet/Detail/model.d.ts +1 -13
  135. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  136. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  137. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  138. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  139. package/lib/components/wallet/model.d.ts +1 -9
  140. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  141. package/package.json +4 -4
  142. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  143. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
  144. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  145. package/es/components/parallelResourcBooking/assets/alert-circle.png +0 -0
  146. package/es/components/parallelResourcBooking/assets/calendar-heart.svg +0 -5
  147. package/es/components/parallelResourcBooking/assets/compass.svg +0 -13
  148. package/es/components/parallelResourcBooking/assets/image.svg +0 -5
  149. package/es/components/parallelResourcBooking/assets/phone.svg +0 -5
  150. package/es/components/parallelResourcBooking/assets/shopping-cart.svg +0 -10
  151. package/es/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
  152. package/es/components/parallelResourcBooking/components/ErrorTip/index.js +0 -14
  153. package/es/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
  154. package/es/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
  155. package/es/components/parallelResourcBooking/components/OpenCard/index.js +0 -65
  156. package/es/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
  157. package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
  158. package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
  159. package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  160. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
  161. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +0 -46
  162. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +0 -4
  163. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +0 -63
  164. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +0 -87
  165. package/es/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +0 -4
  166. package/es/components/parallelResourcBooking/components/Provider/Cart/index.js +0 -30
  167. package/es/components/parallelResourcBooking/components/Provider/Cart/index.less +0 -2
  168. package/es/components/parallelResourcBooking/components/Provider/Content/index.d.ts +0 -4
  169. package/es/components/parallelResourcBooking/components/Provider/Content/index.js +0 -65
  170. package/es/components/parallelResourcBooking/components/Provider/Content/index.less +0 -31
  171. package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
  172. package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +0 -34
  173. package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  174. package/es/components/parallelResourcBooking/components/Provider/Event/index.d.ts +0 -4
  175. package/es/components/parallelResourcBooking/components/Provider/Event/index.js +0 -93
  176. package/es/components/parallelResourcBooking/components/Provider/Event/index.less +0 -20
  177. package/es/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +0 -4
  178. package/es/components/parallelResourcBooking/components/Provider/Footer/index.js +0 -76
  179. package/es/components/parallelResourcBooking/components/Provider/Footer/index.less +0 -64
  180. package/es/components/parallelResourcBooking/components/Provider/Header/index.d.ts +0 -4
  181. package/es/components/parallelResourcBooking/components/Provider/Header/index.js +0 -75
  182. package/es/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
  183. package/es/components/parallelResourcBooking/components/Provider/Information/index.d.ts +0 -4
  184. package/es/components/parallelResourcBooking/components/Provider/Information/index.js +0 -178
  185. package/es/components/parallelResourcBooking/components/Provider/Information/index.less +0 -92
  186. package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
  187. package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +0 -34
  188. package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  189. package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
  190. package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +0 -27
  191. package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +0 -32
  192. package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
  193. package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
  194. package/es/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +0 -4
  195. package/es/components/parallelResourcBooking/components/Provider/Resource/index.js +0 -79
  196. package/es/components/parallelResourcBooking/components/Provider/Resource/index.less +0 -46
  197. package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +0 -3
  198. package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +0 -90
  199. package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  200. package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +0 -77
  201. package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +0 -131
  202. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
  203. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
  204. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  205. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  206. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
  207. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  208. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
  209. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
  210. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  211. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
  212. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
  213. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  214. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
  215. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
  216. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  217. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
  218. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
  219. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  220. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
  221. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
  222. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  223. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  224. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
  225. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  226. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  227. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -256
  228. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  229. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
  230. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  231. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  232. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -36
  233. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  234. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  235. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
  236. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
  237. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
  238. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
  239. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -33
  240. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
  241. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -30
  242. package/es/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
  243. package/es/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -337
  244. package/es/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
  245. package/es/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
  246. package/es/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -52
  247. package/es/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
  248. package/es/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
  249. package/es/components/parallelResourcBooking/components/eventCard/index.js +0 -116
  250. package/es/components/parallelResourcBooking/components/eventCard/index.less +0 -81
  251. package/es/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
  252. package/es/components/parallelResourcBooking/components/productCard/index.js +0 -79
  253. package/es/components/parallelResourcBooking/components/productCard/index.less +0 -60
  254. package/es/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
  255. package/es/components/parallelResourcBooking/components/progressBar/index.js +0 -93
  256. package/es/components/parallelResourcBooking/components/progressBar/index.less +0 -15
  257. package/es/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
  258. package/es/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -148
  259. package/es/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
  260. package/es/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
  261. package/es/components/parallelResourcBooking/components/resourceUsability/index.js +0 -44
  262. package/es/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
  263. package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
  264. package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
  265. package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  266. package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
  267. package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -127
  268. package/es/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
  269. package/es/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -142
  270. package/es/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
  271. package/es/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
  272. package/es/components/parallelResourcBooking/components/selectHolder/index.js +0 -118
  273. package/es/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
  274. package/es/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
  275. package/es/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -168
  276. package/es/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
  277. package/es/components/parallelResourcBooking/index.d.ts +0 -4
  278. package/es/components/parallelResourcBooking/index.js +0 -58
  279. package/es/components/parallelResourcBooking/index.less +0 -22
  280. package/es/components/parallelResourcBooking/locales.d.ts +0 -216
  281. package/es/components/parallelResourcBooking/locales.js +0 -251
  282. package/es/components/parallelResourcBooking/mock.d.ts +0 -627
  283. package/es/components/parallelResourcBooking/mock.js +0 -1172
  284. package/es/components/parallelResourcBooking/status.d.ts +0 -21
  285. package/es/components/parallelResourcBooking/status.js +0 -51
  286. package/es/components/parallelResourcBooking/type.d.ts +0 -17
  287. package/es/components/parallelResourcBooking/type.js +0 -1
  288. package/es/components/parallelResourcBooking/utils.d.ts +0 -45
  289. package/es/components/parallelResourcBooking/utils.js +0 -99
  290. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  291. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
  292. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  293. package/lib/components/parallelResourcBooking/assets/alert-circle.png +0 -0
  294. package/lib/components/parallelResourcBooking/assets/calendar-heart.svg +0 -5
  295. package/lib/components/parallelResourcBooking/assets/compass.svg +0 -13
  296. package/lib/components/parallelResourcBooking/assets/image.svg +0 -5
  297. package/lib/components/parallelResourcBooking/assets/phone.svg +0 -5
  298. package/lib/components/parallelResourcBooking/assets/shopping-cart.svg +0 -10
  299. package/lib/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
  300. package/lib/components/parallelResourcBooking/components/ErrorTip/index.js +0 -30
  301. package/lib/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
  302. package/lib/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
  303. package/lib/components/parallelResourcBooking/components/OpenCard/index.js +0 -90
  304. package/lib/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
  305. package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
  306. package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +0 -158
  307. package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  308. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
  309. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +0 -82
  310. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +0 -4
  311. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +0 -92
  312. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +0 -87
  313. package/lib/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +0 -4
  314. package/lib/components/parallelResourcBooking/components/Provider/Cart/index.js +0 -59
  315. package/lib/components/parallelResourcBooking/components/Provider/Cart/index.less +0 -2
  316. package/lib/components/parallelResourcBooking/components/Provider/Content/index.d.ts +0 -4
  317. package/lib/components/parallelResourcBooking/components/Provider/Content/index.js +0 -90
  318. package/lib/components/parallelResourcBooking/components/Provider/Content/index.less +0 -31
  319. package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
  320. package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +0 -60
  321. package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  322. package/lib/components/parallelResourcBooking/components/Provider/Event/index.d.ts +0 -4
  323. package/lib/components/parallelResourcBooking/components/Provider/Event/index.js +0 -100
  324. package/lib/components/parallelResourcBooking/components/Provider/Event/index.less +0 -20
  325. package/lib/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +0 -4
  326. package/lib/components/parallelResourcBooking/components/Provider/Footer/index.js +0 -87
  327. package/lib/components/parallelResourcBooking/components/Provider/Footer/index.less +0 -64
  328. package/lib/components/parallelResourcBooking/components/Provider/Header/index.d.ts +0 -4
  329. package/lib/components/parallelResourcBooking/components/Provider/Header/index.js +0 -80
  330. package/lib/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
  331. package/lib/components/parallelResourcBooking/components/Provider/Information/index.d.ts +0 -4
  332. package/lib/components/parallelResourcBooking/components/Provider/Information/index.js +0 -151
  333. package/lib/components/parallelResourcBooking/components/Provider/Information/index.less +0 -92
  334. package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
  335. package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +0 -67
  336. package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  337. package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
  338. package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +0 -57
  339. package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +0 -32
  340. package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
  341. package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
  342. package/lib/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +0 -4
  343. package/lib/components/parallelResourcBooking/components/Provider/Resource/index.js +0 -90
  344. package/lib/components/parallelResourcBooking/components/Provider/Resource/index.less +0 -46
  345. package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +0 -3
  346. package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +0 -97
  347. package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  348. package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +0 -69
  349. package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +0 -131
  350. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
  351. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
  352. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  353. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  354. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
  355. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  356. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
  357. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
  358. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  359. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
  360. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
  361. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  362. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
  363. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
  364. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  365. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
  366. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
  367. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  368. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
  369. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
  370. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  371. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  372. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
  373. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  374. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  375. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
  376. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  377. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
  378. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  379. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  380. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -70
  381. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  382. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  383. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
  384. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
  385. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
  386. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
  387. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -66
  388. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
  389. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -69
  390. package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
  391. package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -248
  392. package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
  393. package/lib/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
  394. package/lib/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -79
  395. package/lib/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
  396. package/lib/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
  397. package/lib/components/parallelResourcBooking/components/eventCard/index.js +0 -124
  398. package/lib/components/parallelResourcBooking/components/eventCard/index.less +0 -81
  399. package/lib/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
  400. package/lib/components/parallelResourcBooking/components/productCard/index.js +0 -77
  401. package/lib/components/parallelResourcBooking/components/productCard/index.less +0 -60
  402. package/lib/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
  403. package/lib/components/parallelResourcBooking/components/progressBar/index.js +0 -100
  404. package/lib/components/parallelResourcBooking/components/progressBar/index.less +0 -15
  405. package/lib/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
  406. package/lib/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -116
  407. package/lib/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
  408. package/lib/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
  409. package/lib/components/parallelResourcBooking/components/resourceUsability/index.js +0 -76
  410. package/lib/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
  411. package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
  412. package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
  413. package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  414. package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
  415. package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -135
  416. package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
  417. package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -125
  418. package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
  419. package/lib/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
  420. package/lib/components/parallelResourcBooking/components/selectHolder/index.js +0 -106
  421. package/lib/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
  422. package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
  423. package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -146
  424. package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
  425. package/lib/components/parallelResourcBooking/index.d.ts +0 -4
  426. package/lib/components/parallelResourcBooking/index.js +0 -78
  427. package/lib/components/parallelResourcBooking/index.less +0 -22
  428. package/lib/components/parallelResourcBooking/locales.d.ts +0 -216
  429. package/lib/components/parallelResourcBooking/locales.js +0 -239
  430. package/lib/components/parallelResourcBooking/mock.d.ts +0 -627
  431. package/lib/components/parallelResourcBooking/mock.js +0 -1352
  432. package/lib/components/parallelResourcBooking/status.d.ts +0 -21
  433. package/lib/components/parallelResourcBooking/status.js +0 -70
  434. package/lib/components/parallelResourcBooking/type.d.ts +0 -17
  435. package/lib/components/parallelResourcBooking/type.js +0 -17
  436. package/lib/components/parallelResourcBooking/utils.d.ts +0 -45
  437. package/lib/components/parallelResourcBooking/utils.js +0 -90
@@ -45,6 +45,7 @@ var import_utilsByBooking = require("../../utilsByBooking");
45
45
  var import_dayjs = __toESM(require("dayjs"));
46
46
  var import_utils2 = require("@pisell/utils");
47
47
  var import_AlertTriangle = __toESM(require("@pisell/icon/es/AlertTriangle"));
48
+ var import_utils3 = require("../editService/utils");
48
49
  var import_mock = require("../../../mock");
49
50
  var getUsableTime = (cacheItem) => {
50
51
  try {
@@ -191,12 +192,43 @@ var formatResources = ({ cacheItem, resourcesOrigin }) => {
191
192
  maps: []
192
193
  };
193
194
  };
195
+ var getResourceMaxFreeTime = (resource) => {
196
+ const { renderList, form_id } = resource;
197
+ if (!(0, import_utils3.getAutoAllocationStorage)(form_id)) {
198
+ return [];
199
+ }
200
+ const usableList = renderList.filter((d) => d.usable && d.id !== 0);
201
+ let defaultResource = [];
202
+ let maxFreeTime = 0;
203
+ usableList.forEach((d) => {
204
+ const { times } = d;
205
+ const currentMaxFreeTime = times.reduce((pre, cur) => {
206
+ var _a, _b, _c;
207
+ const start = ((_c = (_b = cur.event_list) == null ? void 0 : _b[((_a = cur.event_list) == null ? void 0 : _a.length) - 1]) == null ? void 0 : _c.end_at) || cur.start_at;
208
+ const end = cur.end_at;
209
+ const diff = (0, import_dayjs.default)(end).diff((0, import_dayjs.default)(start), "minute");
210
+ return diff > pre ? diff : pre;
211
+ }, 0);
212
+ if (currentMaxFreeTime > maxFreeTime) {
213
+ maxFreeTime = currentMaxFreeTime;
214
+ defaultResource = [d];
215
+ }
216
+ });
217
+ return defaultResource;
218
+ };
194
219
  var setDefaultResource = ({ cacheItem, resources }) => {
195
220
  let obj = {};
196
221
  const serviceParams = (0, import_utils.getCacheParams)();
197
222
  let resourceId = Number(serviceParams == null ? void 0 : serviceParams.resource_id);
198
223
  for (let item of resources) {
199
- let defaultResource = item.renderList.filter((d) => d.is_default == 1 || d.id === resourceId).map((d) => {
224
+ const renderList = item.renderList.filter((d) => d.is_default == 1 || d.id === resourceId);
225
+ let defaultOriginalResource = [];
226
+ if (renderList.length === 0) {
227
+ defaultOriginalResource = getResourceMaxFreeTime(item);
228
+ } else {
229
+ defaultOriginalResource = renderList;
230
+ }
231
+ const defaultResource = defaultOriginalResource.map((d) => {
200
232
  return {
201
233
  ...d,
202
234
  relation_type: d.relation_type,
@@ -289,6 +321,9 @@ var getIsAutoClose = (cacheItem) => {
289
321
  }
290
322
  }
291
323
  }
324
+ return Object.entries(cacheItem._extend.resource).every(([key, value]) => {
325
+ return (0, import_utils3.getAutoAllocationStorage)(key) && (value == null ? void 0 : value.length);
326
+ });
292
327
  };
293
328
  var getProductExtend = ({ cacheItem, state }) => {
294
329
  const isNew = cacheItem.new || !cacheItem._extend.endDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -40,9 +40,13 @@ var import_index = require("./index.less");
40
40
  var import_utils = require("@pisell/utils");
41
41
  var import_utilsByBooking = require("../../../utilsByBooking");
42
42
  var import_lodash = require("lodash");
43
+ var import_utils2 = require("../utils");
44
+ var import_ahooks = require("ahooks");
45
+ var import_icons = require("@ant-design/icons");
43
46
  var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref) => {
44
47
  var _a, _b;
45
48
  const [showError, setShowError] = (0, import_react.useState)(false);
49
+ const update = (0, import_ahooks.useUpdate)();
46
50
  const data = (0, import_react.useMemo)(() => {
47
51
  var _a2;
48
52
  return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resources) || [];
@@ -60,6 +64,10 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
60
64
  const _value = (0, import_react.useMemo)(() => {
61
65
  return value || defaultValue;
62
66
  }, [value, defaultValue]);
67
+ const handleCheckAutoAllocation = (id, checked) => {
68
+ (0, import_utils2.setAutoAllocationStorage)({ [id]: checked });
69
+ update();
70
+ };
63
71
  const _onChange = (val, form_id, key) => {
64
72
  let _val = { ..._value };
65
73
  let maps = _val[form_id] ? _val[form_id].reduce((pre, cur) => {
@@ -142,6 +150,9 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
142
150
  check
143
151
  };
144
152
  });
153
+ const getIsAutoAllocation = (id) => {
154
+ return (0, import_utils2.getAutoAllocationStorage)(id);
155
+ };
145
156
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.map((item) => {
146
157
  var _a2;
147
158
  const cur = _value[item.form_id];
@@ -194,7 +205,11 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
194
205
  }
195
206
  },
196
207
  renderOptions(item.renderList, "id", "label", "resource")
197
- ))
208
+ ), /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked: getIsAutoAllocation(item.form_id), onChange: (e) => {
209
+ handleCheckAutoAllocation(item.form_id, e.target.checked);
210
+ } }), /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: import_utils.locales.getText(
211
+ "page.booking.text.resource.check-auto-allocation-tip"
212
+ ) }, /* @__PURE__ */ import_react.default.createElement(import_icons.QuestionCircleOutlined, null)))
198
213
  ), state.renderType !== "eventBooking" && (errors || []).map((d) => {
199
214
  return /* @__PURE__ */ import_react.default.createElement(
200
215
  import_antd.Alert,
@@ -303,9 +303,10 @@ var Info = (_, ref) => {
303
303
  },
304
304
  value: item._extend.other
305
305
  },
306
- callback: (e2) => {
306
+ callback: (e2, extension_type, detail) => {
307
+ const _detail = detail || item;
307
308
  let cacheItem = {
308
- ...item,
309
+ ..._detail,
309
310
  product_id: item.id,
310
311
  _id: item == null ? void 0 : item._id,
311
312
  _key: e2.key,
@@ -7,5 +7,7 @@
7
7
 
8
8
  判断是否需要进入编辑服务页
9
9
  */
10
- declare const isNewService: (service: any) => any;
11
- declare const init: ({ cacheItem, state }: any) => any;
10
+ export declare const getAutoAllocationStorage: (id: string | number) => any;
11
+ export declare const setAutoAllocationStorage: (data: {
12
+ [key: string]: boolean;
13
+ }) => void;
@@ -0,0 +1,48 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/booking/info2/service/editService/utils.tsx
20
+ var utils_exports = {};
21
+ __export(utils_exports, {
22
+ getAutoAllocationStorage: () => getAutoAllocationStorage,
23
+ setAutoAllocationStorage: () => setAutoAllocationStorage
24
+ });
25
+ module.exports = __toCommonJS(utils_exports);
26
+ var import_utils = require("@pisell/utils");
27
+ var getAutoAllocationStorage = (id) => {
28
+ const value = localStorage.getItem("resource-auto-allocation");
29
+ if (value) {
30
+ const valueObj = JSON.parse(value);
31
+ return (0, import_utils.isBoolean)(valueObj[id]) ? valueObj[id] : true;
32
+ }
33
+ return true;
34
+ };
35
+ var setAutoAllocationStorage = (data) => {
36
+ const value = localStorage.getItem("resource-auto-allocation");
37
+ if (value) {
38
+ const valueObj = JSON.parse(value);
39
+ localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...valueObj, ...data }));
40
+ } else {
41
+ localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...data }));
42
+ }
43
+ };
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ getAutoAllocationStorage,
47
+ setAutoAllocationStorage
48
+ });
@@ -201,6 +201,7 @@ declare const _default: {
201
201
  'page.booking.text.please-choose-an-option-1': string;
202
202
  'page.booking.text.please-choose-an-option-2': string;
203
203
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
204
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
204
205
  'page.booking.text.price-extra': (origin: string, current: string) => string;
205
206
  'pisell2.booking.dashboard.groups-on-site-now': string;
206
207
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -443,6 +444,7 @@ declare const _default: {
443
444
  'page.booking.text.please-choose-an-option-1': string;
444
445
  'page.booking.text.please-choose-an-option-2': string;
445
446
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
447
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
446
448
  'page.booking.text.price-extra': (origin: string, current: string) => string;
447
449
  'pisell2.booking.dashboard.groups-on-site-now': string;
448
450
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -685,6 +687,7 @@ declare const _default: {
685
687
  'page.booking.text.please-choose-an-option-1': string;
686
688
  'page.booking.text.please-choose-an-option-2': string;
687
689
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
690
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
688
691
  'page.booking.text.price-extra': (origin: string, current: string) => string;
689
692
  'pisell2.booking.dashboard.groups-on-site-now': string;
690
693
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -257,6 +257,7 @@ var locales_default = {
257
257
  "page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
258
258
  "page.booking.text.please-choose-an-option-2": "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)",
259
259
  "page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}`,
260
+ "page.booking.text.resource.check-auto-allocation-tip": `When checked, content will be automatically filled in without manual selection`,
260
261
  "page.booking.text.price-extra": (origin, current) => `Original price of the item:${origin},Current price of the item:${current}`,
261
262
  "pisell2.booking.dashboard.groups-on-site-now": "Groups on-site now",
262
263
  "pisell2.booking.dashboard.groups-on-site-now-tip": "Tip: Total number of groups who have checked in and are currently on-site",
@@ -525,6 +526,7 @@ var locales_default = {
525
526
  "page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
526
527
  "page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
527
528
  "page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`,
529
+ "page.booking.text.resource.check-auto-allocation-tip": `勾选后将自动填入内容,无需手动选择`,
528
530
  "page.booking.text.price-extra": (origin, current) => `商品原价:${origin},商品现价:${current}`,
529
531
  "pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
530
532
  "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
@@ -793,6 +795,7 @@ var locales_default = {
793
795
  "page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
794
796
  "page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
795
797
  "page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`,
798
+ "page.booking.text.resource.check-auto-allocation-tip": `勾選後將自動填入內容,無需手動選擇`,
796
799
  "page.booking.text.price-extra": (origin, current) => `商品原價:${origin},商品現價:${current}`,
797
800
  "pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
798
801
  "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -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,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;
@@ -162,10 +162,10 @@ export declare const getProductTotalPrice: (item: any) => number;
162
162
  export declare const getDuration: (duration: number | {
163
163
  type: string;
164
164
  value: number;
165
- }) => number | {
165
+ }) => number | "flexible" | {
166
166
  type: string;
167
167
  value: number;
168
- } | "flexible";
168
+ };
169
169
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
170
170
  export declare const getIsEdit: (state: any) => boolean;
171
171
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
4
3
  export default Total;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Information: () => JSX.Element;
4
3
  export default Information;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ThreedsLoading: ({ title }: any) => JSX.Element;
4
3
  export default ThreedsLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -25,11 +24,4 @@ export interface PayGroup {
25
24
  pay_number?: string;
26
25
  _order: any;
27
26
  }
28
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
29
- state: FormState;
30
- } & {
31
- dispatch: (params: {
32
- type: string;
33
- payload: any;
34
- }) => void;
35
- }>;
27
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import { CustomerCardProps } from './CustomerCard';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
4
3
  export default AddSchedules;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type Value = number[];
4
3
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  import "./index.less";
4
3
  interface TaxSelectProps {
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;