@pisell/private-materials 3.2.12 → 3.2.14

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 (471) 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.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/booking/addons/index.js +7 -5
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/footer/index.d.ts +0 -1
  15. package/es/components/booking/components/footer/utils.js +1 -3
  16. package/es/components/booking/deposit/index.d.ts +0 -1
  17. package/es/components/booking/forms/footer.d.ts +7 -0
  18. package/es/components/booking/forms/footer.js +88 -0
  19. package/es/components/booking/forms/index.d.ts +1 -1
  20. package/es/components/booking/forms/index.js +25 -20
  21. package/es/components/booking/forms/index.less +7 -0
  22. package/es/components/booking/forms/model.d.ts +1 -10
  23. package/es/components/booking/forms/sendModal/index.d.ts +27 -0
  24. package/es/components/booking/forms/sendModal/index.js +82 -0
  25. package/es/components/booking/forms/sendModal/index.less +9 -0
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  27. package/es/components/{parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js → booking/forms/sendModal/useSendModal.js} +50 -245
  28. package/es/components/booking/forms/serve.d.ts +9 -0
  29. package/es/components/booking/forms/serve.js +20 -0
  30. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  31. package/es/components/booking/info/header/index.d.ts +0 -1
  32. package/es/components/booking/info/index.d.ts +0 -1
  33. package/es/components/booking/info/model.d.ts +1 -10
  34. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  35. package/es/components/booking/info/service/addService/index.js +3 -3
  36. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  37. package/es/components/booking/info/service/editService/index.js +58 -48
  38. package/es/components/booking/info/service2/utils.d.ts +1 -1
  39. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  40. package/es/components/booking/info2/service/addService/index.js +3 -2
  41. package/es/components/booking/info2/service/addService/utils.js +57 -5
  42. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  43. package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
  44. package/es/components/booking/info2/service/editService/index.js +4 -3
  45. package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
  46. package/es/components/booking/info2/service/editService/utils.js +18 -0
  47. package/es/components/booking/locales.d.ts +39 -0
  48. package/es/components/booking/locales.js +42 -3
  49. package/es/components/booking/model.d.ts +1 -9
  50. package/es/components/booking/notes/model.d.ts +1 -10
  51. package/es/components/booking/payments/model.d.ts +1 -10
  52. package/es/components/booking/utils.d.ts +2 -2
  53. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  54. package/es/components/eftposPay/amount.d.ts +1 -1
  55. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  56. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  57. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  58. package/es/components/eftposPay/device.d.ts +1 -1
  59. package/es/components/eftposPay/hooks.d.ts +2 -2
  60. package/es/components/eftposPay/index.d.ts +0 -1
  61. package/es/components/eftposPay/pay.d.ts +0 -1
  62. package/es/components/eftposPay/payo/config.d.ts +0 -1
  63. package/es/components/eftposPay/store/index.d.ts +5 -5
  64. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  65. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  67. package/es/components/eventBooking/index.d.ts +0 -1
  68. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  70. package/es/components/pay/toC/model.d.ts +1 -9
  71. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  72. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  73. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  74. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  75. package/es/components/productExtension/index.d.ts +0 -1
  76. package/es/components/ruleSetting/index.d.ts +0 -1
  77. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  78. package/es/components/schedules/model.d.ts +1 -9
  79. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  80. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  81. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  82. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  83. package/es/components/taxSelect/index.d.ts +0 -1
  84. package/es/components/wallet/Detail/model.d.ts +1 -13
  85. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  86. package/es/components/wallet/PointCard/model.d.ts +1 -13
  87. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  88. package/es/components/wallet/Voucher/model.d.ts +1 -13
  89. package/es/components/wallet/model.d.ts +1 -9
  90. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  91. package/es/index.d.ts +0 -1
  92. package/es/index.js +1 -2
  93. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  94. package/lib/components/booking/addons/index.js +7 -5
  95. package/lib/components/booking/addons/model.d.ts +1 -10
  96. package/lib/components/booking/components/footer/index.d.ts +0 -1
  97. package/lib/components/booking/components/footer/utils.js +1 -3
  98. package/lib/components/booking/deposit/index.d.ts +0 -1
  99. package/lib/components/booking/forms/footer.d.ts +7 -0
  100. package/lib/components/booking/forms/footer.js +81 -0
  101. package/lib/components/booking/forms/index.d.ts +1 -1
  102. package/lib/components/booking/forms/index.js +4 -2
  103. package/lib/components/booking/forms/index.less +7 -0
  104. package/lib/components/booking/forms/model.d.ts +1 -10
  105. package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
  106. package/lib/components/booking/forms/sendModal/index.js +128 -0
  107. package/lib/components/booking/forms/sendModal/index.less +9 -0
  108. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  109. package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
  110. package/lib/components/booking/forms/serve.d.ts +9 -0
  111. package/lib/components/booking/forms/serve.js +5 -2
  112. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  113. package/lib/components/booking/info/header/index.d.ts +0 -1
  114. package/lib/components/booking/info/index.d.ts +0 -1
  115. package/lib/components/booking/info/model.d.ts +1 -10
  116. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  117. package/lib/components/booking/info/service/addService/index.js +2 -2
  118. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  119. package/lib/components/booking/info/service/editService/index.js +3 -2
  120. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  121. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  122. package/lib/components/booking/info2/service/addService/index.js +3 -2
  123. package/lib/components/booking/info2/service/addService/utils.js +36 -1
  124. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  125. package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
  126. package/lib/components/booking/info2/service/editService/index.js +3 -2
  127. package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
  128. package/lib/components/booking/info2/service/editService/utils.js +48 -0
  129. package/lib/components/booking/locales.d.ts +39 -0
  130. package/lib/components/booking/locales.js +42 -3
  131. package/lib/components/booking/model.d.ts +1 -9
  132. package/lib/components/booking/notes/model.d.ts +1 -10
  133. package/lib/components/booking/payments/model.d.ts +1 -10
  134. package/lib/components/booking/utils.d.ts +2 -2
  135. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  136. package/lib/components/eftposPay/amount.d.ts +1 -1
  137. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  138. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  139. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  140. package/lib/components/eftposPay/device.d.ts +1 -1
  141. package/lib/components/eftposPay/hooks.d.ts +2 -2
  142. package/lib/components/eftposPay/index.d.ts +0 -1
  143. package/lib/components/eftposPay/pay.d.ts +0 -1
  144. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  145. package/lib/components/eftposPay/store/index.d.ts +5 -5
  146. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  147. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  148. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  149. package/lib/components/eventBooking/index.d.ts +0 -1
  150. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  151. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  152. package/lib/components/pay/toC/model.d.ts +1 -9
  153. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  154. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  155. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  156. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  157. package/lib/components/productExtension/index.d.ts +0 -1
  158. package/lib/components/ruleSetting/index.d.ts +0 -1
  159. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  160. package/lib/components/schedules/model.d.ts +1 -9
  161. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  162. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  163. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  164. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  165. package/lib/components/taxSelect/index.d.ts +0 -1
  166. package/lib/components/wallet/Detail/model.d.ts +1 -13
  167. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  168. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  169. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  170. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  171. package/lib/components/wallet/model.d.ts +1 -9
  172. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  173. package/lib/index.d.ts +0 -1
  174. package/lib/index.js +0 -3
  175. package/package.json +4 -4
  176. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  177. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
  178. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  179. package/es/components/parallelResourceBooking/assets/alert-circle.png +0 -0
  180. package/es/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
  181. package/es/components/parallelResourceBooking/assets/compass.svg +0 -13
  182. package/es/components/parallelResourceBooking/assets/image.svg +0 -5
  183. package/es/components/parallelResourceBooking/assets/phone.svg +0 -5
  184. package/es/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
  185. package/es/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
  186. package/es/components/parallelResourceBooking/components/ErrorTip/index.js +0 -14
  187. package/es/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
  188. package/es/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
  189. package/es/components/parallelResourceBooking/components/OpenCard/index.js +0 -65
  190. package/es/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
  191. package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  192. package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  193. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  194. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -46
  195. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  196. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -63
  197. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
  198. package/es/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
  199. package/es/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -30
  200. package/es/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
  201. package/es/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
  202. package/es/components/parallelResourceBooking/components/Provider/Content/index.js +0 -65
  203. package/es/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
  204. package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  205. package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -34
  206. package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  207. package/es/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
  208. package/es/components/parallelResourceBooking/components/Provider/Event/index.js +0 -93
  209. package/es/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
  210. package/es/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
  211. package/es/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -76
  212. package/es/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
  213. package/es/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
  214. package/es/components/parallelResourceBooking/components/Provider/Header/index.js +0 -75
  215. package/es/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
  216. package/es/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
  217. package/es/components/parallelResourceBooking/components/Provider/Information/index.js +0 -178
  218. package/es/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
  219. package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  220. package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -34
  221. package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  222. package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  223. package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -27
  224. package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
  225. package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  226. package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
  227. package/es/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
  228. package/es/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -79
  229. package/es/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
  230. package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  231. package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -90
  232. package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  233. package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -77
  234. package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
  235. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  236. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
  237. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  238. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
  239. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
  240. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  241. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
  242. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
  243. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  244. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
  245. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
  246. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  247. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  248. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
  249. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  250. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  251. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
  252. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  253. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  254. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
  255. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  256. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  257. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
  258. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  259. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  260. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -256
  261. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  262. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
  263. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  264. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  265. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -36
  266. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  267. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  268. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
  269. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
  270. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
  271. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  272. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -33
  273. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  274. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -30
  275. package/es/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
  276. package/es/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -337
  277. package/es/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
  278. package/es/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
  279. package/es/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -52
  280. package/es/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
  281. package/es/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
  282. package/es/components/parallelResourceBooking/components/eventCard/index.js +0 -116
  283. package/es/components/parallelResourceBooking/components/eventCard/index.less +0 -81
  284. package/es/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
  285. package/es/components/parallelResourceBooking/components/productCard/index.js +0 -79
  286. package/es/components/parallelResourceBooking/components/productCard/index.less +0 -60
  287. package/es/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
  288. package/es/components/parallelResourceBooking/components/progressBar/index.js +0 -93
  289. package/es/components/parallelResourceBooking/components/progressBar/index.less +0 -15
  290. package/es/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
  291. package/es/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -148
  292. package/es/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
  293. package/es/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
  294. package/es/components/parallelResourceBooking/components/resourceUsability/index.js +0 -44
  295. package/es/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
  296. package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  297. package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
  298. package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  299. package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
  300. package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -127
  301. package/es/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
  302. package/es/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -142
  303. package/es/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
  304. package/es/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
  305. package/es/components/parallelResourceBooking/components/selectHolder/index.js +0 -118
  306. package/es/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
  307. package/es/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
  308. package/es/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -168
  309. package/es/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
  310. package/es/components/parallelResourceBooking/index.d.ts +0 -3
  311. package/es/components/parallelResourceBooking/index.js +0 -58
  312. package/es/components/parallelResourceBooking/index.less +0 -22
  313. package/es/components/parallelResourceBooking/locales.d.ts +0 -216
  314. package/es/components/parallelResourceBooking/locales.js +0 -251
  315. package/es/components/parallelResourceBooking/mock.d.ts +0 -627
  316. package/es/components/parallelResourceBooking/mock.js +0 -1172
  317. package/es/components/parallelResourceBooking/status.d.ts +0 -21
  318. package/es/components/parallelResourceBooking/status.js +0 -51
  319. package/es/components/parallelResourceBooking/type.d.ts +0 -17
  320. package/es/components/parallelResourceBooking/type.js +0 -1
  321. package/es/components/parallelResourceBooking/utils.d.ts +0 -45
  322. package/es/components/parallelResourceBooking/utils.js +0 -99
  323. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  324. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
  325. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  326. package/lib/components/parallelResourceBooking/assets/alert-circle.png +0 -0
  327. package/lib/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
  328. package/lib/components/parallelResourceBooking/assets/compass.svg +0 -13
  329. package/lib/components/parallelResourceBooking/assets/image.svg +0 -5
  330. package/lib/components/parallelResourceBooking/assets/phone.svg +0 -5
  331. package/lib/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
  332. package/lib/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
  333. package/lib/components/parallelResourceBooking/components/ErrorTip/index.js +0 -30
  334. package/lib/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
  335. package/lib/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
  336. package/lib/components/parallelResourceBooking/components/OpenCard/index.js +0 -90
  337. package/lib/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
  338. package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  339. package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +0 -158
  340. package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  341. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  342. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -82
  343. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  344. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -92
  345. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
  346. package/lib/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
  347. package/lib/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -59
  348. package/lib/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
  349. package/lib/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
  350. package/lib/components/parallelResourceBooking/components/Provider/Content/index.js +0 -90
  351. package/lib/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
  352. package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  353. package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -60
  354. package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  355. package/lib/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
  356. package/lib/components/parallelResourceBooking/components/Provider/Event/index.js +0 -100
  357. package/lib/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
  358. package/lib/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
  359. package/lib/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -87
  360. package/lib/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
  361. package/lib/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
  362. package/lib/components/parallelResourceBooking/components/Provider/Header/index.js +0 -80
  363. package/lib/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
  364. package/lib/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
  365. package/lib/components/parallelResourceBooking/components/Provider/Information/index.js +0 -151
  366. package/lib/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
  367. package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  368. package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -67
  369. package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  370. package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  371. package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -57
  372. package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
  373. package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  374. package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
  375. package/lib/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
  376. package/lib/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -90
  377. package/lib/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
  378. package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  379. package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -97
  380. package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  381. package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -69
  382. package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
  383. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  384. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
  385. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  386. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
  387. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
  388. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  389. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
  390. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
  391. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  392. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
  393. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
  394. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  395. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  396. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
  397. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  398. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  399. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
  400. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  401. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  402. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
  403. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  404. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  405. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
  406. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  407. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  408. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
  409. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  410. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
  411. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  412. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  413. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -70
  414. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  415. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  416. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
  417. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
  418. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
  419. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  420. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -66
  421. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  422. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -69
  423. package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
  424. package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -248
  425. package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
  426. package/lib/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
  427. package/lib/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -79
  428. package/lib/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
  429. package/lib/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
  430. package/lib/components/parallelResourceBooking/components/eventCard/index.js +0 -124
  431. package/lib/components/parallelResourceBooking/components/eventCard/index.less +0 -81
  432. package/lib/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
  433. package/lib/components/parallelResourceBooking/components/productCard/index.js +0 -77
  434. package/lib/components/parallelResourceBooking/components/productCard/index.less +0 -60
  435. package/lib/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
  436. package/lib/components/parallelResourceBooking/components/progressBar/index.js +0 -100
  437. package/lib/components/parallelResourceBooking/components/progressBar/index.less +0 -15
  438. package/lib/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
  439. package/lib/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -116
  440. package/lib/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
  441. package/lib/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
  442. package/lib/components/parallelResourceBooking/components/resourceUsability/index.js +0 -76
  443. package/lib/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
  444. package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  445. package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
  446. package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  447. package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
  448. package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -135
  449. package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
  450. package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -125
  451. package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
  452. package/lib/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
  453. package/lib/components/parallelResourceBooking/components/selectHolder/index.js +0 -106
  454. package/lib/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
  455. package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
  456. package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -146
  457. package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
  458. package/lib/components/parallelResourceBooking/index.d.ts +0 -3
  459. package/lib/components/parallelResourceBooking/index.js +0 -78
  460. package/lib/components/parallelResourceBooking/index.less +0 -22
  461. package/lib/components/parallelResourceBooking/locales.d.ts +0 -216
  462. package/lib/components/parallelResourceBooking/locales.js +0 -239
  463. package/lib/components/parallelResourceBooking/mock.d.ts +0 -627
  464. package/lib/components/parallelResourceBooking/mock.js +0 -1352
  465. package/lib/components/parallelResourceBooking/status.d.ts +0 -21
  466. package/lib/components/parallelResourceBooking/status.js +0 -70
  467. package/lib/components/parallelResourceBooking/type.d.ts +0 -17
  468. package/lib/components/parallelResourceBooking/type.js +0 -17
  469. package/lib/components/parallelResourceBooking/utils.d.ts +0 -45
  470. package/lib/components/parallelResourceBooking/utils.js +0 -90
  471. package/lowcode/parallel-resource-booking/meta.ts +0 -69
@@ -0,0 +1,70 @@
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/forms/sendModal/useSendModal.ts
20
+ var useSendModal_exports = {};
21
+ __export(useSendModal_exports, {
22
+ default: () => useSendModal_default
23
+ });
24
+ module.exports = __toCommonJS(useSendModal_exports);
25
+ var import_react = require("react");
26
+ var import_materials = require("@pisell/materials");
27
+ var import_utils = require("@pisell/utils");
28
+ var import_serve = require("../serve");
29
+ var useSendModal = (bookingId) => {
30
+ const [open, setOpen] = (0, import_react.useState)(false);
31
+ const handleOpen = () => {
32
+ setOpen(true);
33
+ };
34
+ const handleValuesChange = (val) => {
35
+ console.log(val, "val");
36
+ };
37
+ const handleOk = async (values) => {
38
+ if (!values.sendSms && !values.sendEmail) {
39
+ return import_materials.message.error(
40
+ import_utils.locales.getText("pisell2.text.send-form-reminder-error-message")
41
+ );
42
+ }
43
+ if (values.sendSms && !values.phone.phone) {
44
+ return import_materials.message.error(
45
+ import_utils.locales.getText("pisell2.text.phone-required-error-message")
46
+ );
47
+ }
48
+ if (values.sendEmail && !values.email) {
49
+ return import_materials.message.error(
50
+ import_utils.locales.getText("pisell2.text.email-required-error-message")
51
+ );
52
+ }
53
+ const value = await (0, import_serve.sendFormReminder)({
54
+ phone: values.sendSms ? values.phone.phone : void 0,
55
+ email: values.sendEmail ? values.email : void 0,
56
+ order_id: bookingId,
57
+ country_calling_code: values.sendSms ? values.phone.code.replace("+", "") : void 0
58
+ });
59
+ import_materials.message.success(import_utils.locales.getText("pisell2.text.send-form-toast"));
60
+ setOpen(false);
61
+ };
62
+ return {
63
+ open,
64
+ setOpen,
65
+ handleOpen,
66
+ handleValuesChange,
67
+ handleOk
68
+ };
69
+ };
70
+ var useSendModal_default = useSendModal;
@@ -7,3 +7,12 @@ export declare const getFormData: (params: {
7
7
  num: number;
8
8
  skip: number;
9
9
  }) => Promise<any>;
10
+ /**
11
+ * 发送表单填写提醒
12
+ */
13
+ export declare const sendFormReminder: (params: {
14
+ email?: string;
15
+ phone?: string;
16
+ order_id: number;
17
+ country_calling_code?: string;
18
+ }) => Promise<any>;
@@ -19,12 +19,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/components/booking/forms/serve.ts
20
20
  var serve_exports = {};
21
21
  __export(serve_exports, {
22
- getFormData: () => getFormData
22
+ getFormData: () => getFormData,
23
+ sendFormReminder: () => sendFormReminder
23
24
  });
24
25
  module.exports = __toCommonJS(serve_exports);
25
26
  var import_utils = require("../utils");
26
27
  var getFormData = async (params) => import_utils.request.getRequest().get(`/shop/form/data/v1`, params);
28
+ var sendFormReminder = async (params) => import_utils.request.getRequest().post(`/shop/form/form-reminder`, params);
27
29
  // Annotate the CommonJS export names for ESM import in node:
28
30
  0 && (module.exports = {
29
- getFormData
31
+ getFormData,
32
+ sendFormReminder
30
33
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const header: ({ state, dispatch }: any) => JSX.Element;
4
3
  export default header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -245,9 +245,9 @@ var Info = (props) => {
245
245
  is_eject: isEject ? 1 : 0,
246
246
  customer_id: customerId
247
247
  },
248
- callback: async (e) => {
248
+ callback: async (e, extension_type, detail) => {
249
249
  const data = await createBookingData({
250
- product: { ...item, _params: e }
250
+ product: { ...detail || item, _params: e }
251
251
  });
252
252
  createBooking({ booking: data });
253
253
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -423,10 +423,11 @@ var Info = (_, ref) => {
423
423
  },
424
424
  customer_id: isDayBookingMode ? ((_h2 = (_g2 = state.client) == null ? void 0 : _g2.value) == null ? void 0 : _h2.id) || 1 : void 0
425
425
  },
426
- callback: (e2) => {
426
+ callback: async (e2, extension_type, detail) => {
427
427
  var _a3, _b3, _c3, _d3;
428
+ const _detail = detail || item;
428
429
  let cacheItem = {
429
- ...item,
430
+ ..._detail,
430
431
  product_id: item.id,
431
432
  _id: item == null ? void 0 : item._id,
432
433
  _key: e2.key,
@@ -237,4 +237,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
237
237
  * @Author: WangHan
238
238
  * @Date: 2024-12-24 11:32
239
239
  */
240
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
240
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -202,15 +202,16 @@ var Info = (props) => {
202
202
  setTimeout(() => {
203
203
  lock = false;
204
204
  }, 2e3);
205
+ const _detail = detail || item;
205
206
  let cacheItem = {
206
- ...detail || item,
207
+ ..._detail,
207
208
  product_id: item.id,
208
209
  _id: (0, import_utils4.getUniqueId)(),
209
210
  _key: e.key,
210
211
  _extend: {
211
212
  start_date: state.date.value,
212
213
  quantity: 1,
213
- price: item.price,
214
+ price: _detail.price,
214
215
  product_name: item.title,
215
216
  other: JSON.parse(JSON.stringify(e))
216
217
  },
@@ -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;
@@ -240,6 +241,18 @@ declare const _default: {
240
241
  'pisell2.text.change.pet.cancel': string;
241
242
  'pisell2.text.booking-list': string;
242
243
  'pisell2.text.edit-booking': string;
244
+ 'pisell2.text.email-error-message': string;
245
+ 'pisell2.text.phone-required-error-message': string;
246
+ 'pisell2.text.email-required-error-message': string;
247
+ 'pisell2.text.send-form-reminder': string;
248
+ 'pisell2.text.send-sms-reminder': string;
249
+ 'pisell2.text.send-email-reminder': string;
250
+ 'pisell2.text.send-form-ok': string;
251
+ 'pisell2.text.send-form-toast': string;
252
+ 'pisell2.text.send-form-reminder-completed': string;
253
+ 'pisell2.text.send-form-reminder-tooltip': string;
254
+ 'pisell2.text.send-form-reminder-refresh': string;
255
+ 'pisell2.text.send-form-reminder-error-message': string;
243
256
  };
244
257
  'zh-CN': {
245
258
  'pisell2.text.refunded-amount': string;
@@ -443,6 +456,7 @@ declare const _default: {
443
456
  'page.booking.text.please-choose-an-option-1': string;
444
457
  'page.booking.text.please-choose-an-option-2': string;
445
458
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
459
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
446
460
  'page.booking.text.price-extra': (origin: string, current: string) => string;
447
461
  'pisell2.booking.dashboard.groups-on-site-now': string;
448
462
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -482,6 +496,18 @@ declare const _default: {
482
496
  'pisell2.text.change.pet.cancel': string;
483
497
  'pisell2.text.booking-list': string;
484
498
  'pisell2.text.edit-booking': string;
499
+ 'pisell2.text.email-error-message': string;
500
+ 'pisell2.text.phone-required-error-message': string;
501
+ 'pisell2.text.email-required-error-message': string;
502
+ 'pisell2.text.send-form-reminder': string;
503
+ 'pisell2.text.send-sms-reminder': string;
504
+ 'pisell2.text.send-email-reminder': string;
505
+ 'pisell2.text.send-form-ok': string;
506
+ 'pisell2.text.send-form-toast': string;
507
+ 'pisell2.text.send-form-reminder-completed': string;
508
+ 'pisell2.text.send-form-reminder-tooltip': string;
509
+ 'pisell2.text.send-form-reminder-refresh': string;
510
+ 'pisell2.text.send-form-reminder-error-message': string;
485
511
  };
486
512
  'zh-HK': {
487
513
  'pisell2.text.refunded-amount': string;
@@ -685,6 +711,7 @@ declare const _default: {
685
711
  'page.booking.text.please-choose-an-option-1': string;
686
712
  'page.booking.text.please-choose-an-option-2': string;
687
713
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
714
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
688
715
  'page.booking.text.price-extra': (origin: string, current: string) => string;
689
716
  'pisell2.booking.dashboard.groups-on-site-now': string;
690
717
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -724,6 +751,18 @@ declare const _default: {
724
751
  'pisell2.text.change.pet.cancel': string;
725
752
  'pisell2.text.booking-list': string;
726
753
  'pisell2.text.edit-booking': string;
754
+ 'pisell2.text.email-error-message': string;
755
+ 'pisell2.text.phone-required-error-message': string;
756
+ 'pisell2.text.email-required-error-message': string;
757
+ 'pisell2.text.send-form-reminder': string;
758
+ 'pisell2.text.send-sms-reminder': string;
759
+ 'pisell2.text.send-email-reminder': string;
760
+ 'pisell2.text.send-form-ok': string;
761
+ 'pisell2.text.send-form-toast': string;
762
+ 'pisell2.text.send-form-reminder-completed': string;
763
+ 'pisell2.text.send-form-reminder-tooltip': string;
764
+ 'pisell2.text.send-form-reminder-refresh': string;
765
+ 'pisell2.text.send-form-reminder-error-message': string;
727
766
  };
728
767
  };
729
768
  export default _default;
@@ -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",
@@ -295,7 +296,19 @@ var locales_default = {
295
296
  "pisell2.text.change.pet.confirm": "Keep (Add to open items)",
296
297
  "pisell2.text.change.pet.cancel": "Discard (Clear items)",
297
298
  "pisell2.text.booking-list": "List",
298
- "pisell2.text.edit-booking": "Edit"
299
+ "pisell2.text.edit-booking": "Edit",
300
+ "pisell2.text.email-error-message": "Email format error",
301
+ "pisell2.text.phone-required-error-message": "Please enter a phone number",
302
+ "pisell2.text.email-required-error-message": "Please enter an email address",
303
+ "pisell2.text.send-form-reminder": "Send Form Reminder",
304
+ "pisell2.text.send-sms-reminder": "Send SMS Reminder",
305
+ "pisell2.text.send-email-reminder": "Send Email Reminder",
306
+ "pisell2.text.send-form-ok": "Send",
307
+ "pisell2.text.send-form-toast": "Form reminder sent",
308
+ "pisell2.text.send-form-reminder-completed": "Requested Forms Completed",
309
+ "pisell2.text.send-form-reminder-tooltip": "Refresh forms",
310
+ "pisell2.text.send-form-reminder-refresh": "Forms refreshed successfully",
311
+ "pisell2.text.send-form-reminder-error-message": "Please select at least one reminder method"
299
312
  },
300
313
  "zh-CN": {
301
314
  "pisell2.text.refunded-amount": "已退金额",
@@ -525,6 +538,7 @@ var locales_default = {
525
538
  "page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
526
539
  "page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
527
540
  "page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`,
541
+ "page.booking.text.resource.check-auto-allocation-tip": `勾选后将自动填入内容,无需手动选择`,
528
542
  "page.booking.text.price-extra": (origin, current) => `商品原价:${origin},商品现价:${current}`,
529
543
  "pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
530
544
  "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
@@ -563,7 +577,19 @@ var locales_default = {
563
577
  "pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
564
578
  "pisell2.text.change.pet.cancel": "不保留(清空商品)",
565
579
  "pisell2.text.booking-list": "列表",
566
- "pisell2.text.edit-booking": "编辑"
580
+ "pisell2.text.edit-booking": "编辑",
581
+ "pisell2.text.email-error-message": "电子邮件格式错误",
582
+ "pisell2.text.phone-required-error-message": "请输入手机号码",
583
+ "pisell2.text.email-required-error-message": "请输入邮箱地址",
584
+ "pisell2.text.send-form-reminder": "发送表单提醒",
585
+ "pisell2.text.send-sms-reminder": "发送短信提醒",
586
+ "pisell2.text.send-email-reminder": "发送邮件提醒",
587
+ "pisell2.text.send-form-ok": "发送",
588
+ "pisell2.text.send-form-toast": "表单提醒已发送",
589
+ "pisell2.text.send-form-reminder-completed": "已完成所需表单",
590
+ "pisell2.text.send-form-reminder-tooltip": "刷新表单",
591
+ "pisell2.text.send-form-reminder-refresh": "已刷新表单",
592
+ "pisell2.text.send-form-reminder-error-message": "请至少选择一种提醒方式"
567
593
  },
568
594
  "zh-HK": {
569
595
  "pisell2.text.refunded-amount": "已退金額",
@@ -793,6 +819,7 @@ var locales_default = {
793
819
  "page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
794
820
  "page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
795
821
  "page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`,
822
+ "page.booking.text.resource.check-auto-allocation-tip": `勾選後將自動填入內容,無需手動選擇`,
796
823
  "page.booking.text.price-extra": (origin, current) => `商品原價:${origin},商品現價:${current}`,
797
824
  "pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
798
825
  "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
@@ -831,6 +858,18 @@ var locales_default = {
831
858
  "pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
832
859
  "pisell2.text.change.pet.cancel": "不保留(清空商品)",
833
860
  "pisell2.text.booking-list": "列表",
834
- "pisell2.text.edit-booking": "編輯"
861
+ "pisell2.text.edit-booking": "編輯",
862
+ "pisell2.text.email-error-message": "電子郵件格式錯誤",
863
+ "pisell2.text.phone-required-error-message": "請輸入手機號碼",
864
+ "pisell2.text.email-required-error-message": "請輸入電子郵件地址",
865
+ "pisell2.text.send-form-reminder": "發送表單提醒",
866
+ "pisell2.text.send-sms-reminder": "發送短信提醒",
867
+ "pisell2.text.send-email-reminder": "發送郵件提醒",
868
+ "pisell2.text.send-form-ok": "發送",
869
+ "pisell2.text.send-form-toast": "表單提醒已發送",
870
+ "pisell2.text.send-form-reminder-completed": "已完成所需表單",
871
+ "pisell2.text.send-form-reminder-tooltip": "刷新表單",
872
+ "pisell2.text.send-form-reminder-refresh": "已刷新表單",
873
+ "pisell2.text.send-form-reminder-error-message": "請至少選擇一種提醒方式"
835
874
  }
836
875
  };
@@ -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;