@pisell/private-materials 6.6.99 → 6.6.100

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 (255) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/businessModel/SalesModel/index.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  9. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  10. package/es/components/booking/addons/model.d.ts +10 -1
  11. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  12. package/es/components/booking/components/footer/utils.js +0 -13
  13. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  14. package/es/components/booking/components/voucher/index.js +3 -42
  15. package/es/components/booking/forms/model.d.ts +10 -1
  16. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  17. package/es/components/booking/forms/table/index.d.ts +0 -1
  18. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  20. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  21. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  22. package/es/components/booking/info/index.d.ts +0 -1
  23. package/es/components/booking/info/model.d.ts +10 -1
  24. package/es/components/booking/info/service/Lists.d.ts +0 -1
  25. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  26. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  27. package/es/components/booking/info/service/like/index.d.ts +0 -1
  28. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  29. package/es/components/booking/info/service2/utils.d.ts +1 -1
  30. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info2/service/editService/index.js +11 -31
  32. package/es/components/booking/info2/service/editService/utils.d.ts +0 -3
  33. package/es/components/booking/info2/service/editService/utils.js +19 -128
  34. package/es/components/booking/info2/utilsByBooking.js +81 -9
  35. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  36. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  37. package/es/components/booking/model.d.ts +9 -1
  38. package/es/components/booking/notes/model.d.ts +10 -1
  39. package/es/components/booking/payments/model.d.ts +10 -1
  40. package/es/components/booking/utils.d.ts +2 -2
  41. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  42. package/es/components/eftpos/SettlementModal/Action.d.ts +0 -1
  43. package/es/components/eftpos/SettlementModal/index.d.ts +0 -1
  44. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  45. package/es/components/eftpos/form/index.d.ts +0 -1
  46. package/es/components/eftpos/group/index.d.ts +0 -1
  47. package/es/components/eftpos/hooks.d.ts +0 -1
  48. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  49. package/es/components/eftpos/icon/device.d.ts +0 -1
  50. package/es/components/eftpos/receipt/index.d.ts +0 -1
  51. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  52. package/es/components/eftposPay/amount.d.ts +1 -1
  53. package/es/components/eftposPay/app.d.ts +0 -1
  54. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  55. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  56. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  57. package/es/components/eftposPay/component/step/step.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/mx51/Action.d.ts +0 -1
  61. package/es/components/eftposPay/store/index.d.ts +5 -5
  62. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  63. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  64. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  69. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  73. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  74. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  75. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  77. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  81. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  82. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  83. package/es/components/pay/toC/model.d.ts +9 -1
  84. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  85. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  86. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  87. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  88. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  89. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  90. package/es/components/schedules/model.d.ts +9 -1
  91. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  92. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  93. package/es/components/schedules/products/index.d.ts +0 -1
  94. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  95. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  96. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  97. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  98. package/es/components/ticketBooking/utils/index.js +4 -4
  99. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  100. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  101. package/es/plus/clientName/index.d.ts +0 -1
  102. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  103. package/es/plus/clinetSearch/Add/index.js +4 -2
  104. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  105. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  106. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  107. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  108. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  109. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  110. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  111. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  112. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  113. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  114. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  115. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  116. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  117. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  118. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  119. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  120. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  121. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  122. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  123. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  124. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  125. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  126. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  127. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  128. package/es/pro/Selector/demo.d.ts +0 -1
  129. package/es/pro/pisellPaymentList/example.d.ts +0 -1
  130. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  131. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  132. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  133. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  134. package/lib/components/booking/addons/model.d.ts +10 -1
  135. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  136. package/lib/components/booking/components/footer/utils.js +1 -8
  137. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  138. package/lib/components/booking/components/voucher/index.js +3 -43
  139. package/lib/components/booking/forms/model.d.ts +10 -1
  140. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  141. package/lib/components/booking/forms/table/index.d.ts +0 -1
  142. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  143. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  144. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  145. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  146. package/lib/components/booking/info/index.d.ts +0 -1
  147. package/lib/components/booking/info/model.d.ts +10 -1
  148. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  149. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  150. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  151. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  152. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  153. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  154. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  155. package/lib/components/booking/info2/service/editService/index.js +12 -38
  156. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -3
  157. package/lib/components/booking/info2/service/editService/utils.js +12 -94
  158. package/lib/components/booking/info2/utilsByBooking.js +50 -2
  159. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  160. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  161. package/lib/components/booking/model.d.ts +9 -1
  162. package/lib/components/booking/notes/model.d.ts +10 -1
  163. package/lib/components/booking/payments/model.d.ts +10 -1
  164. package/lib/components/booking/utils.d.ts +2 -2
  165. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  166. package/lib/components/eftpos/SettlementModal/Action.d.ts +0 -1
  167. package/lib/components/eftpos/SettlementModal/index.d.ts +0 -1
  168. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  169. package/lib/components/eftpos/form/index.d.ts +0 -1
  170. package/lib/components/eftpos/group/index.d.ts +0 -1
  171. package/lib/components/eftpos/hooks.d.ts +0 -1
  172. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  173. package/lib/components/eftpos/icon/device.d.ts +0 -1
  174. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  175. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  176. package/lib/components/eftposPay/amount.d.ts +1 -1
  177. package/lib/components/eftposPay/app.d.ts +0 -1
  178. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  179. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  180. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  181. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  182. package/lib/components/eftposPay/device.d.ts +1 -1
  183. package/lib/components/eftposPay/hooks.d.ts +2 -2
  184. package/lib/components/eftposPay/mx51/Action.d.ts +0 -1
  185. package/lib/components/eftposPay/store/index.d.ts +5 -5
  186. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  187. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  188. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  189. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  190. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  193. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  194. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  195. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  198. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  199. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  200. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  201. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  202. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  204. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  205. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  206. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  207. package/lib/components/pay/toC/model.d.ts +9 -1
  208. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  209. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  210. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  211. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  212. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  213. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  214. package/lib/components/schedules/model.d.ts +9 -1
  215. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  216. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  217. package/lib/components/schedules/products/index.d.ts +0 -1
  218. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  219. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  220. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  221. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  222. package/lib/components/ticketBooking/utils/index.js +2 -2
  223. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  224. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  225. package/lib/plus/clientName/index.d.ts +0 -1
  226. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  227. package/lib/plus/clinetSearch/Add/index.js +1 -0
  228. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  229. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  230. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  231. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  232. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  233. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  234. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  235. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  236. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  237. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  238. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  239. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  240. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  241. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  242. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  243. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  244. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  245. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  246. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  247. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  248. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  249. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  250. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  251. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  252. package/lib/pro/Selector/demo.d.ts +0 -1
  253. package/lib/pro/pisellPaymentList/example.d.ts +0 -1
  254. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  255. package/package.json +2 -2
@@ -1,12 +1,16 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
10
14
  import dayjs from 'dayjs';
11
15
  import { locales } from "@pisell/utils";
12
16
  import { getCacheParams, getServeStartTime, getLastServer, flexibleObj, getServiceTimes, findNextDuration, getDays, isSessionProduct } from "../utils";
@@ -38,6 +42,52 @@ var isConflict = function isConflict(event, current) {
38
42
  return _isBefore && _isAfter;
39
43
  };
40
44
 
45
+ /**
46
+ * 计算当前预约区间内的最大同时占用量。
47
+ *
48
+ * 不能把所有「与当前预约有交集」的 event 直接相加:它们彼此可能并不重叠。
49
+ * 例如 10:00–19:00 的预约,同时与 10:00–13:00、14:00–17:00 有交集,
50
+ * 但这两个区间不能在同一时刻占用容量。按每个时间分界点计算,才与用户端的容量口径一致。
51
+ */
52
+ var getMaxConcurrentPax = function getMaxConcurrentPax(eventList, currentStart, currentEnd, aggregatedCurrentEvent) {
53
+ var restoredCurrentPax = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
54
+ var eventRanges = (eventList || []).map(function (event) {
55
+ return {
56
+ event: event,
57
+ start: dayjs(event.start_at),
58
+ end: dayjs(event.end_at)
59
+ };
60
+ }).filter(function (_ref) {
61
+ var start = _ref.start,
62
+ end = _ref.end;
63
+ return start.isValid() && end.isValid() && end.isAfter(start);
64
+ });
65
+ var eventCheckpoints = eventRanges.reduce(function (points, _ref2) {
66
+ var start = _ref2.start,
67
+ end = _ref2.end;
68
+ points.push(Math.max(start.valueOf(), currentStart.valueOf()), Math.min(end.valueOf(), currentEnd.valueOf()));
69
+ return points;
70
+ }, []);
71
+ var checkpoints = Array.from(new Set([currentStart.valueOf(), currentEnd.valueOf()].concat(_toConsumableArray(eventCheckpoints)))).sort(function (a, b) {
72
+ return a - b;
73
+ });
74
+ return checkpoints.reduce(function (maxPax, point) {
75
+ var currentPax = eventRanges.reduce(function (sum, _ref3) {
76
+ var event = _ref3.event,
77
+ start = _ref3.start,
78
+ end = _ref3.end;
79
+ // 使用半开区间 [start, end),相邻预约不算重叠。
80
+ if (start.valueOf() <= point && end.valueOf() > point) {
81
+ var pax = Number(event.pax || 0);
82
+ var isAggregatedCurrent = aggregatedCurrentEvent && event === aggregatedCurrentEvent;
83
+ return sum + Math.max(0, pax - (isAggregatedCurrent ? restoredCurrentPax : 0));
84
+ }
85
+ return sum;
86
+ }, 0);
87
+ return Math.max(maxPax, currentPax);
88
+ }, 0);
89
+ };
90
+
41
91
  // 从times中找可用的time
42
92
  export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cacheItem, resourceItem) {
43
93
  // 当前资源的开始时间
@@ -71,7 +121,8 @@ export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cach
71
121
  });
72
122
 
73
123
  // 已预约的列表
74
- var eventList = time.event_list || [];
124
+ var sourceEventList = time.event_list || [];
125
+ var eventList = sourceEventList;
75
126
 
76
127
  // todo: event_list数据会进行合并 id不准确
77
128
  // 编辑时过滤当前预约
@@ -143,8 +194,29 @@ export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cach
143
194
  isCountRange = false;
144
195
  }
145
196
  } else {
146
- // 减去重叠的总量
147
- var conflictCount = getUseableEventCount(conflict, resourceItem.capacity);
197
+ /**
198
+ * 资源接口会将同一时段的多个子预约合并为一条 event_list 数据,且只保留其中一个子预约 ID。
199
+ * 编辑被合并但 ID 未保留的子预约时,当前预约的 pax 已包含在聚合事件中,需还原一次,
200
+ * 否则会把当前预约自身误算为资源占用。
201
+ */
202
+ var currentEventExistsInResponse = sourceEventList.some(function (event) {
203
+ return event.id === (cacheItem === null || cacheItem === void 0 ? void 0 : cacheItem.booking_id);
204
+ });
205
+ var exactAggregatedCurrentEvent = !currentEventExistsInResponse && endDate ? conflict.find(function (event) {
206
+ var eventStart = dayjs(event.start_at);
207
+ var eventEnd = dayjs(event.end_at);
208
+ return eventStart.isSame(startDate) && eventEnd.isSame(endDate);
209
+ }) : undefined;
210
+ var aggregatedCurrentEvent = exactAggregatedCurrentEvent;
211
+ var restoredCurrentPax = aggregatedCurrentEvent ? Math.min(currentCount, Number(aggregatedCurrentEvent.pax || 0)) : 0;
212
+
213
+ // 按当前预约覆盖的每个时间片取「同时占用」峰值,而非相加全部重叠预约。
214
+ // 这样 10:00–19:00 同时碰到 10:00–13:00、14:00–17:00 两段时,
215
+ // 不会把两个不同时发生的占用误判为同一时刻的容量消耗。
216
+ var concurrentPax = endDate ? getMaxConcurrentPax(conflict, startDate, endDate, aggregatedCurrentEvent, restoredCurrentPax) : conflict.reduce(function (sum, event) {
217
+ return sum + Number(event.pax || 0);
218
+ }, 0);
219
+ var conflictCount = Number(resourceItem.capacity || 0) - concurrentPax;
148
220
 
149
221
  // 当前预约量 <= 总剩余容量
150
222
  if (currentCount <= conflictCount) {
@@ -169,9 +241,9 @@ export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cach
169
241
  };
170
242
  return time;
171
243
  };
172
- export var getSumCapacity = function getSumCapacity(_ref) {
244
+ export var getSumCapacity = function getSumCapacity(_ref4) {
173
245
  var _cacheItem$_extend;
174
- var cacheItem = _ref.cacheItem;
246
+ var cacheItem = _ref4.cacheItem;
175
247
  var isCalcQuantity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
176
248
  var sum = 0;
177
249
  var _iterator = _createForOfIteratorHelper(cacheItem._extend.capacity || []),
@@ -362,8 +434,8 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
362
434
  var _timeObj$timeSlices;
363
435
  _extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 || (_timeObj$timeSlices = timeObj.timeSlices) === null || _timeObj$timeSlices === void 0 ? void 0 : _timeObj$timeSlices.length) - 1].value;
364
436
  } else {
365
- var _ref2;
366
- _extend.start_time = (_ref2 = lastServerEndDate || dayjs()) === null || _ref2 === void 0 ? void 0 : _ref2.format("HH:mm");
437
+ var _ref5;
438
+ _extend.start_time = (_ref5 = lastServerEndDate || dayjs()) === null || _ref5 === void 0 ? void 0 : _ref5.format("HH:mm");
367
439
  }
368
440
  }
369
441
  } else {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -175,10 +175,10 @@ export declare const getProductOriginTotalPrice: (item: any) => number;
175
175
  export declare const getDuration: (duration: number | {
176
176
  type: string;
177
177
  value: number;
178
- }) => number | {
178
+ }) => number | "flexible" | {
179
179
  type: string;
180
180
  value: number;
181
- } | "flexible";
181
+ };
182
182
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
183
183
  export declare const getIsEdit: (state: any) => boolean;
184
184
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellWalletPassCardProps } from '../../types';
3
2
  export declare const TestModule: () => JSX.Element;
4
3
  declare const ConflictModal: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title 渲染动态内容
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SettlementModal: ({ open, onClose, data, }: {
4
3
  open: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "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" | "init" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "init" | "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" | "stripe" | "payo" | "windcave" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat" | "mx51">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "mx51" | "payo" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat">;
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 { ParsedElement } from './types';
3
2
  /**
4
3
  * @title 渲染动态内容
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
178
178
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
179
179
  type: EActionTypes;
180
180
  payload: {
181
- status: "success" | "warn" | "loading" | "fail" | "question";
181
+ status: "loading" | "success" | "warn" | "fail" | "question";
182
182
  };
183
183
  };
184
184
  /**
@@ -299,10 +299,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
299
299
  name?: string | undefined;
300
300
  symbol?: string | undefined;
301
301
  amount?: string | number | undefined;
302
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
302
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
303
303
  order_id?: string | number | undefined;
304
- eftpos?: "tyro" | "stripe" | "payo" | "windcave" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat" | "mx51" | undefined;
305
- action?: "amount" | "pay" | "deviceList" | undefined;
304
+ eftpos?: "stripe" | "tyro" | "windcave" | "mx51" | "payo" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat" | undefined;
305
+ action?: "pay" | "amount" | "deviceList" | undefined;
306
306
  key?: number | undefined;
307
307
  step?: number | undefined;
308
308
  title?: string | undefined;
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
312
312
  net?: boolean | undefined;
313
313
  component?: string | undefined;
314
314
  form?: string | undefined;
315
- status?: "success" | "warn" | "loading" | "fail" | "init" | "pedding" | "resove" | "reject" | "question" | undefined;
315
+ status?: "loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
316
316
  warn?: string | undefined;
317
317
  steps?: {
318
318
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CallToBookProps = {
4
3
  show: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -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 { PayMethod, PayMethodGroup } from '../../types';
3
2
  import './index.less';
4
3
  declare const ToBPayCardGroup: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -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
  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
  import './index.less';
3
2
  declare const PageLoading: () => JSX.Element;
4
3
  export default PageLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PaymentRequestForm: () => JSX.Element | null;
4
3
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -29,4 +30,11 @@ export interface PayGroup {
29
30
  _order: any;
30
31
  front_order_uuid?: string;
31
32
  }
32
- export declare const Provider: any, Context: any;
33
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
+ state: FormState;
35
+ } & {
36
+ dispatch: (params: {
37
+ type: string;
38
+ payload: any;
39
+ }) => void;
40
+ }>;
@@ -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
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -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 type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;