@pisell/private-materials 6.3.85 → 6.3.87

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 (589) 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 +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  16. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  17. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  19. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  20. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  21. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  22. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  23. package/es/components/booking/forms/footer.d.ts +1 -0
  24. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  25. package/es/components/booking/forms/single/index.d.ts +1 -0
  26. package/es/components/booking/forms/table/index.d.ts +1 -0
  27. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  28. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  29. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  30. package/es/components/booking/info/notes/index.d.ts +1 -0
  31. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  32. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  33. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  34. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  35. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  36. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  37. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  38. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  39. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  40. package/es/components/eftpos/const.d.ts +3 -1
  41. package/es/components/eftpos/const.js +2 -0
  42. package/es/components/eftpos/device.d.ts +3 -1
  43. package/es/components/eftpos/device.js +5 -3
  44. package/es/components/eftpos/index.js +34 -11
  45. package/es/components/eftpos/index.less +26 -1
  46. package/es/components/eftpos/locales.d.ts +3 -0
  47. package/es/components/eftpos/locales.js +3 -0
  48. package/es/components/eftpos/pos.d.ts +1 -0
  49. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  50. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
  51. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  52. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  53. package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  54. package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
  55. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  56. package/es/components/eftposPay/aggregatePayment/service.js +70 -0
  57. package/es/components/eftposPay/aggregatePayment/types.d.ts +96 -0
  58. package/es/components/eftposPay/aggregatePayment/types.js +61 -0
  59. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  60. package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
  61. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  62. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1127 -0
  63. package/es/components/eftposPay/app.d.ts +1 -1
  64. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  65. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  66. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  67. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  68. package/es/components/eftposPay/const.d.ts +6 -1
  69. package/es/components/eftposPay/const.js +2 -0
  70. package/es/components/eftposPay/hooks.d.ts +2 -1
  71. package/es/components/eftposPay/hooks.js +12 -0
  72. package/es/components/eftposPay/linkly/index.js +1 -0
  73. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  74. package/es/components/eftposPay/manufacturer.js +4 -0
  75. package/es/components/eftposPay/mx51/Action.d.ts +6 -0
  76. package/es/components/eftposPay/mx51/Action.js +91 -0
  77. package/es/components/eftposPay/mx51/const.d.ts +5 -0
  78. package/es/components/eftposPay/mx51/const.js +69 -0
  79. package/es/components/eftposPay/mx51/index.d.ts +6 -0
  80. package/es/components/eftposPay/mx51/index.js +362 -0
  81. package/es/components/eftposPay/mx51/types.d.ts +136 -0
  82. package/es/components/eftposPay/mx51/types.js +29 -0
  83. package/es/components/eftposPay/mx51/utils.d.ts +10 -0
  84. package/es/components/eftposPay/mx51/utils.js +120 -0
  85. package/es/components/eftposPay/pay.js +7 -2
  86. package/es/components/eftposPay/payo/config.d.ts +1 -0
  87. package/es/components/eftposPay/store/index.d.ts +1 -1
  88. package/es/components/eftposPay/tip.d.ts +1 -0
  89. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  97. package/es/components/login/index.d.ts +1 -0
  98. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  100. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  101. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  102. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  103. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  104. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  105. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  106. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  107. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  108. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  109. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  110. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  111. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  112. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  113. package/es/components/schedules/calendar/index.d.ts +1 -0
  114. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  115. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  116. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  117. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  118. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  119. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  120. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  121. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  122. package/es/components/schedules/products/index.d.ts +1 -0
  123. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  124. package/es/components/schedules/products/list/index.d.ts +1 -0
  125. package/es/components/schedules/resources/index.d.ts +1 -0
  126. package/es/components/schedules/resources/list/index.d.ts +1 -0
  127. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  128. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  129. package/es/components/schedules/schedules/index.d.ts +1 -0
  130. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  131. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  132. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  133. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  134. package/es/components/shoppingCart/index.d.ts +1 -0
  135. package/es/hooks/useEngineContext.d.ts +0 -1
  136. package/es/hooks/useEngineContext.js +0 -7
  137. package/es/hooks/usePaymentLogger.d.ts +1 -0
  138. package/es/index.d.ts +1 -5
  139. package/es/index.js +1 -5
  140. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  141. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  142. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  143. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  144. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  145. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  146. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  147. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  148. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  149. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  150. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  151. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  152. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  153. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  154. package/es/pro/NumericStepper/index.d.ts +3 -28
  155. package/es/pro/NumericStepper/index.js +107 -175
  156. package/es/pro/NumericStepper/index.less +143 -295
  157. package/es/pro/Selector/Selector.js +26 -33
  158. package/es/pro/Selector/components/Card/index.js +3 -2
  159. package/es/pro/Selector/components/Card/index.less +4 -11
  160. package/es/pro/Selector/components/Indicator/index.d.ts +0 -1
  161. package/es/pro/Selector/components/Indicator/index.js +1 -2
  162. package/es/pro/Selector/components/Indicator/index.less +1 -4
  163. package/es/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
  164. package/es/pro/Selector/components/LayoutContainer/index.js +9 -226
  165. package/es/pro/Selector/demo.js +1 -1
  166. package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
  167. package/es/pro/Selector/hooks/usePresetProps.js +6 -60
  168. package/es/pro/Selector/selector.less +64 -0
  169. package/es/pro/Selector/types.d.ts +0 -40
  170. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  171. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  172. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  173. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  174. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  175. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  176. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  177. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  178. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  179. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  180. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  181. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  182. package/lib/components/booking/forms/footer.d.ts +1 -0
  183. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  184. package/lib/components/booking/forms/single/index.d.ts +1 -0
  185. package/lib/components/booking/forms/table/index.d.ts +1 -0
  186. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  187. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  188. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  189. package/lib/components/booking/info/notes/index.d.ts +1 -0
  190. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  191. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  192. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  193. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  194. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  195. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  196. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  197. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  198. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  199. package/lib/components/eftpos/const.d.ts +3 -1
  200. package/lib/components/eftpos/const.js +2 -0
  201. package/lib/components/eftpos/device.d.ts +3 -1
  202. package/lib/components/eftpos/device.js +3 -3
  203. package/lib/components/eftpos/index.js +20 -5
  204. package/lib/components/eftpos/index.less +26 -1
  205. package/lib/components/eftpos/locales.d.ts +3 -0
  206. package/lib/components/eftpos/locales.js +3 -0
  207. package/lib/components/eftpos/pos.d.ts +1 -0
  208. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  209. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
  210. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  211. package/lib/components/{ecocup/customerList/hooks → eftposPay/aggregatePayment}/index.js +10 -10
  212. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  213. package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
  214. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  215. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  216. package/lib/components/eftposPay/aggregatePayment/types.d.ts +96 -0
  217. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  218. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  219. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
  220. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  221. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +746 -0
  222. package/lib/components/eftposPay/app.d.ts +1 -1
  223. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  224. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  225. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  226. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  227. package/lib/components/eftposPay/const.d.ts +6 -1
  228. package/lib/components/eftposPay/const.js +2 -0
  229. package/lib/components/eftposPay/hooks.d.ts +2 -1
  230. package/lib/components/eftposPay/hooks.js +16 -0
  231. package/lib/components/eftposPay/linkly/index.js +1 -0
  232. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  233. package/lib/components/eftposPay/manufacturer.js +6 -0
  234. package/lib/components/eftposPay/mx51/Action.d.ts +6 -0
  235. package/lib/components/eftposPay/mx51/Action.js +127 -0
  236. package/lib/components/eftposPay/mx51/const.d.ts +5 -0
  237. package/lib/components/eftposPay/mx51/const.js +85 -0
  238. package/lib/components/eftposPay/mx51/index.d.ts +6 -0
  239. package/lib/components/eftposPay/mx51/index.js +330 -0
  240. package/lib/components/eftposPay/mx51/types.d.ts +136 -0
  241. package/lib/components/{ecocup/cupList/hooks/index.js → eftposPay/mx51/types.js} +17 -17
  242. package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
  243. package/lib/components/eftposPay/mx51/utils.js +114 -0
  244. package/lib/components/eftposPay/pay.js +4 -2
  245. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  246. package/lib/components/eftposPay/store/index.d.ts +1 -1
  247. package/lib/components/eftposPay/tip.d.ts +1 -0
  248. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  249. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  250. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  251. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  252. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  253. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  254. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  255. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  256. package/lib/components/login/index.d.ts +1 -0
  257. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  258. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  259. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  260. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  261. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  262. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  263. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  264. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  265. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  266. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  267. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  268. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  269. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  270. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  271. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  272. package/lib/components/schedules/calendar/index.d.ts +1 -0
  273. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  274. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  275. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  276. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  277. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  278. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  279. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  280. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  281. package/lib/components/schedules/products/index.d.ts +1 -0
  282. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  283. package/lib/components/schedules/products/list/index.d.ts +1 -0
  284. package/lib/components/schedules/resources/index.d.ts +1 -0
  285. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  286. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  287. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  288. package/lib/components/schedules/schedules/index.d.ts +1 -0
  289. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  290. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  291. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  292. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  293. package/lib/components/shoppingCart/index.d.ts +1 -0
  294. package/lib/hooks/useEngineContext.d.ts +0 -1
  295. package/lib/hooks/useEngineContext.js +2 -10
  296. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  297. package/lib/index.d.ts +1 -5
  298. package/lib/index.js +1 -13
  299. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  300. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  301. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  302. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  303. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  304. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  305. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  306. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  307. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  308. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  309. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  310. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  311. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  312. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  313. package/lib/pro/NumericStepper/index.d.ts +3 -28
  314. package/lib/pro/NumericStepper/index.js +88 -176
  315. package/lib/pro/NumericStepper/index.less +143 -295
  316. package/lib/pro/Selector/Selector.js +16 -27
  317. package/lib/pro/Selector/components/Card/index.js +1 -9
  318. package/lib/pro/Selector/components/Card/index.less +4 -11
  319. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -1
  320. package/lib/pro/Selector/components/Indicator/index.js +1 -1
  321. package/lib/pro/Selector/components/Indicator/index.less +1 -4
  322. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
  323. package/lib/pro/Selector/components/LayoutContainer/index.js +2 -130
  324. package/lib/pro/Selector/demo.js +1 -1
  325. package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
  326. package/lib/pro/Selector/hooks/usePresetProps.js +6 -28
  327. package/lib/pro/Selector/selector.less +64 -0
  328. package/lib/pro/Selector/types.d.ts +0 -40
  329. package/package.json +5 -5
  330. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
  331. package/es/components/ecocup/components/AddCustomerModal/index.js +0 -216
  332. package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
  333. package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
  334. package/es/components/ecocup/components/CupActionList/index.js +0 -91
  335. package/es/components/ecocup/components/CupActionList/index.less +0 -102
  336. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
  337. package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
  338. package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
  339. package/es/components/ecocup/components/CupActionModal/index.js +0 -92
  340. package/es/components/ecocup/components/CupActionModal/index.less +0 -38
  341. package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
  342. package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
  343. package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
  344. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
  345. package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
  346. package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
  347. package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
  348. package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
  349. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
  350. package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
  351. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
  352. package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
  353. package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
  354. package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -6
  355. package/es/components/ecocup/components/CustomerCard/index.js +0 -34
  356. package/es/components/ecocup/components/CustomerCard/index.less +0 -50
  357. package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
  358. package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
  359. package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
  360. package/es/components/ecocup/components/PageHeader/index.js +0 -37
  361. package/es/components/ecocup/components/PageHeader/index.less +0 -19
  362. package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
  363. package/es/components/ecocup/components/SearchBar/const.js +0 -16
  364. package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
  365. package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
  366. package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
  367. package/es/components/ecocup/components/SearchBar/index.js +0 -218
  368. package/es/components/ecocup/components/SearchBar/index.less +0 -88
  369. package/es/components/ecocup/cupList/const.d.ts +0 -133
  370. package/es/components/ecocup/cupList/const.js +0 -306
  371. package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
  372. package/es/components/ecocup/cupList/hooks/index.js +0 -4
  373. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
  374. package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
  375. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
  376. package/es/components/ecocup/cupList/hooks/useCupApi.js +0 -172
  377. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
  378. package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
  379. package/es/components/ecocup/cupList/index.d.ts +0 -6
  380. package/es/components/ecocup/cupList/index.js +0 -220
  381. package/es/components/ecocup/cupList/index.less +0 -113
  382. package/es/components/ecocup/cupProject/const.d.ts +0 -7
  383. package/es/components/ecocup/cupProject/const.js +0 -27
  384. package/es/components/ecocup/cupProject/index.d.ts +0 -3
  385. package/es/components/ecocup/cupProject/index.js +0 -103
  386. package/es/components/ecocup/cupProject/index.less +0 -41
  387. package/es/components/ecocup/customerList/const.d.ts +0 -44
  388. package/es/components/ecocup/customerList/const.js +0 -67
  389. package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
  390. package/es/components/ecocup/customerList/hooks/index.js +0 -3
  391. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
  392. package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
  393. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
  394. package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
  395. package/es/components/ecocup/customerList/index.d.ts +0 -7
  396. package/es/components/ecocup/customerList/index.js +0 -127
  397. package/es/components/ecocup/customerList/index.less +0 -15
  398. package/es/components/ecocup/hooks.d.ts +0 -49
  399. package/es/components/ecocup/hooks.js +0 -151
  400. package/es/components/ecocup/locales.d.ts +0 -339
  401. package/es/components/ecocup/locales.js +0 -372
  402. package/es/components/ecocup/types.d.ts +0 -103
  403. package/es/components/ecocup/types.js +0 -36
  404. package/es/components/ecocup/utils/scanListener.d.ts +0 -20
  405. package/es/components/ecocup/utils/scanListener.js +0 -107
  406. package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
  407. package/es/plus/orderList/components/BatchActionBar.js +0 -861
  408. package/es/plus/orderList/components/FilterList.d.ts +0 -8
  409. package/es/plus/orderList/components/FilterList.js +0 -78
  410. package/es/plus/orderList/components/HandleActions.d.ts +0 -4
  411. package/es/plus/orderList/components/HandleActions.js +0 -24
  412. package/es/plus/orderList/components/QuickFilter.d.ts +0 -4
  413. package/es/plus/orderList/components/QuickFilter.js +0 -14
  414. package/es/plus/orderList/components/Reset.d.ts +0 -6
  415. package/es/plus/orderList/components/Reset.js +0 -23
  416. package/es/plus/orderList/components/Toolbar.d.ts +0 -5
  417. package/es/plus/orderList/components/Toolbar.js +0 -57
  418. package/es/plus/orderList/config.d.ts +0 -154
  419. package/es/plus/orderList/config.js +0 -786
  420. package/es/plus/orderList/index.d.ts +0 -9
  421. package/es/plus/orderList/index.js +0 -128
  422. package/es/plus/orderList/index.less +0 -125
  423. package/es/plus/orderList/locales.d.ts +0 -372
  424. package/es/plus/orderList/locales.js +0 -459
  425. package/es/plus/orderList/serve.d.ts +0 -42
  426. package/es/plus/orderList/serve.js +0 -351
  427. package/es/pro/Selector/components/LayoutContainer/index.less +0 -19
  428. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
  429. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -54
  430. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
  431. package/es/pro/comprehensiveSearch/components/index.d.ts +0 -2
  432. package/es/pro/comprehensiveSearch/components/index.js +0 -2
  433. package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
  434. package/es/pro/comprehensiveSearch/components/searchSection/index.js +0 -140
  435. package/es/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
  436. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  437. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +0 -14
  438. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  439. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
  440. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  441. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
  442. package/es/pro/comprehensiveSearch/index.d.ts +0 -7
  443. package/es/pro/comprehensiveSearch/index.js +0 -207
  444. package/es/pro/comprehensiveSearch/index.less +0 -196
  445. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  446. package/es/pro/comprehensiveSearch/locales.js +0 -14
  447. package/es/pro/comprehensiveSearch/types.d.ts +0 -32
  448. package/es/pro/comprehensiveSearch/types.js +0 -1
  449. package/es/pro/keyboards/index.d.ts +0 -2
  450. package/es/pro/keyboards/index.js +0 -1
  451. package/es/pro/keyboards/locales.d.ts +0 -24
  452. package/es/pro/keyboards/locales.js +0 -35
  453. package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
  454. package/es/pro/keyboards/numberKeyboard/index.js +0 -523
  455. package/es/pro/keyboards/numberKeyboard/index.less +0 -59
  456. package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
  457. package/es/pro/keyboards/numberKeyboard/types.js +0 -1
  458. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
  459. package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
  460. package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
  461. package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
  462. package/lib/components/ecocup/components/CupActionList/index.js +0 -116
  463. package/lib/components/ecocup/components/CupActionList/index.less +0 -102
  464. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
  465. package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
  466. package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
  467. package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
  468. package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
  469. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
  470. package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
  471. package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
  472. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
  473. package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
  474. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
  475. package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
  476. package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
  477. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
  478. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
  479. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
  480. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
  481. package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
  482. package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -6
  483. package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
  484. package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
  485. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
  486. package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
  487. package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
  488. package/lib/components/ecocup/components/PageHeader/index.js +0 -59
  489. package/lib/components/ecocup/components/PageHeader/index.less +0 -19
  490. package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
  491. package/lib/components/ecocup/components/SearchBar/const.js +0 -50
  492. package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
  493. package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
  494. package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
  495. package/lib/components/ecocup/components/SearchBar/index.js +0 -213
  496. package/lib/components/ecocup/components/SearchBar/index.less +0 -88
  497. package/lib/components/ecocup/cupList/const.d.ts +0 -133
  498. package/lib/components/ecocup/cupList/const.js +0 -326
  499. package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
  500. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
  501. package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
  502. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
  503. package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
  504. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
  505. package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
  506. package/lib/components/ecocup/cupList/index.d.ts +0 -6
  507. package/lib/components/ecocup/cupList/index.js +0 -208
  508. package/lib/components/ecocup/cupList/index.less +0 -113
  509. package/lib/components/ecocup/cupProject/const.d.ts +0 -7
  510. package/lib/components/ecocup/cupProject/const.js +0 -58
  511. package/lib/components/ecocup/cupProject/index.d.ts +0 -3
  512. package/lib/components/ecocup/cupProject/index.js +0 -126
  513. package/lib/components/ecocup/cupProject/index.less +0 -41
  514. package/lib/components/ecocup/customerList/const.d.ts +0 -44
  515. package/lib/components/ecocup/customerList/const.js +0 -93
  516. package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
  517. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
  518. package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
  519. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
  520. package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
  521. package/lib/components/ecocup/customerList/index.d.ts +0 -7
  522. package/lib/components/ecocup/customerList/index.js +0 -138
  523. package/lib/components/ecocup/customerList/index.less +0 -15
  524. package/lib/components/ecocup/hooks.d.ts +0 -49
  525. package/lib/components/ecocup/hooks.js +0 -155
  526. package/lib/components/ecocup/locales.d.ts +0 -339
  527. package/lib/components/ecocup/locales.js +0 -389
  528. package/lib/components/ecocup/types.d.ts +0 -103
  529. package/lib/components/ecocup/types.js +0 -57
  530. package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
  531. package/lib/components/ecocup/utils/scanListener.js +0 -90
  532. package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
  533. package/lib/plus/orderList/components/BatchActionBar.js +0 -584
  534. package/lib/plus/orderList/components/FilterList.d.ts +0 -8
  535. package/lib/plus/orderList/components/FilterList.js +0 -121
  536. package/lib/plus/orderList/components/HandleActions.d.ts +0 -4
  537. package/lib/plus/orderList/components/HandleActions.js +0 -52
  538. package/lib/plus/orderList/components/QuickFilter.d.ts +0 -4
  539. package/lib/plus/orderList/components/QuickFilter.js +0 -43
  540. package/lib/plus/orderList/components/Reset.d.ts +0 -6
  541. package/lib/plus/orderList/components/Reset.js +0 -58
  542. package/lib/plus/orderList/components/Toolbar.d.ts +0 -5
  543. package/lib/plus/orderList/components/Toolbar.js +0 -68
  544. package/lib/plus/orderList/config.d.ts +0 -154
  545. package/lib/plus/orderList/config.js +0 -764
  546. package/lib/plus/orderList/index.d.ts +0 -9
  547. package/lib/plus/orderList/index.js +0 -132
  548. package/lib/plus/orderList/index.less +0 -125
  549. package/lib/plus/orderList/locales.d.ts +0 -372
  550. package/lib/plus/orderList/locales.js +0 -471
  551. package/lib/plus/orderList/serve.d.ts +0 -42
  552. package/lib/plus/orderList/serve.js +0 -177
  553. package/lib/pro/Selector/components/LayoutContainer/index.less +0 -19
  554. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
  555. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -64
  556. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
  557. package/lib/pro/comprehensiveSearch/components/index.d.ts +0 -2
  558. package/lib/pro/comprehensiveSearch/components/index.js +0 -42
  559. package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
  560. package/lib/pro/comprehensiveSearch/components/searchSection/index.js +0 -153
  561. package/lib/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
  562. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  563. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +0 -38
  564. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  565. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
  566. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  567. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
  568. package/lib/pro/comprehensiveSearch/index.d.ts +0 -7
  569. package/lib/pro/comprehensiveSearch/index.js +0 -190
  570. package/lib/pro/comprehensiveSearch/index.less +0 -196
  571. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  572. package/lib/pro/comprehensiveSearch/locales.js +0 -38
  573. package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
  574. package/lib/pro/comprehensiveSearch/types.js +0 -17
  575. package/lib/pro/keyboards/index.d.ts +0 -2
  576. package/lib/pro/keyboards/index.js +0 -39
  577. package/lib/pro/keyboards/locales.d.ts +0 -24
  578. package/lib/pro/keyboards/locales.js +0 -47
  579. package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
  580. package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
  581. package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
  582. package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
  583. package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
  584. package/lowcode/eco-cup-list/meta.ts +0 -63
  585. package/lowcode/eco-customer-list/meta.ts +0 -63
  586. package/lowcode/ecocup-cup-list/meta.ts +0 -38
  587. package/lowcode/ecocup-cup-project/meta.ts +0 -35
  588. package/lowcode/ecocup-customer-list/meta.ts +0 -38
  589. package/lowcode/order-list/meta.ts +0 -87
@@ -1,38 +0,0 @@
1
- .pisell2-ecocup-cup-action-modal-content {
2
- padding: 0 0 24px 0;
3
- display: flex;
4
- flex-direction: column;
5
- gap: 32px;
6
-
7
- &-cup {
8
- height: 60px;
9
- padding: 0 16px;
10
- display: flex;
11
- flex-direction: row;
12
- align-items: center;
13
- justify-content: flex-start;
14
- gap: 8px;
15
- border-radius: 8px;
16
-
17
- span {
18
- font-size: 20px;
19
- font-weight: 300;
20
- }
21
- }
22
-
23
- .pisell2-ecocup-cup-action-modal-info {
24
- display: flex;
25
-
26
- &-left {
27
- flex: 1;
28
- display: flex;
29
- justify-content: flex-start;
30
- }
31
-
32
- &-right {
33
- flex: 1;
34
- display: flex;
35
- justify-content: flex-end;
36
- }
37
- }
38
- }
@@ -1,7 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- type: 'rentInfo' | 'markInfo' | 'belongInfo';
4
- data: Record<string, any>;
5
- }
6
- declare const CupInfoCard: (props: IProps) => JSX.Element;
7
- export default CupInfoCard;
@@ -1,43 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/ecocup/components/CupInfoCard/index.tsx
30
- var CupInfoCard_exports = {};
31
- __export(CupInfoCard_exports, {
32
- default: () => CupInfoCard_default
33
- });
34
- module.exports = __toCommonJS(CupInfoCard_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_utils = require("@pisell/utils");
37
- var import_dayjs = __toESM(require("dayjs"));
38
- var import_index = require("./index.less");
39
- var CupInfoCard = (props) => {
40
- const { type, data } = props;
41
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-info-card" }, /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText(`pisell2.text.ecocup.cup-info-card.title.${type}`)), /* @__PURE__ */ import_react.default.createElement("div", null, (data == null ? void 0 : data.shop) || "-"), /* @__PURE__ */ import_react.default.createElement("div", null, (data == null ? void 0 : data.time) ? (0, import_dayjs.default)(data == null ? void 0 : data.time).format("HH:mm DD/MM/YYYY") : "-"));
42
- };
43
- var CupInfoCard_default = CupInfoCard;
@@ -1,11 +0,0 @@
1
- .pisell2-ecocup-cup-info-card {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 8px;
5
-
6
- div {
7
- color: #000000;
8
- font-size: 14px;
9
- font-weight: 300;
10
- }
11
- }
@@ -1,5 +0,0 @@
1
- import { ECupActionType } from '../../types';
2
- export declare const useCupAction: () => {
3
- run: (cupId: string, action: ECupActionType) => Promise<boolean>;
4
- loading: boolean;
5
- };
@@ -1,55 +0,0 @@
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/ecocup/components/CupStatusModal/hooks.ts
20
- var hooks_exports = {};
21
- __export(hooks_exports, {
22
- useCupAction: () => useCupAction
23
- });
24
- module.exports = __toCommonJS(hooks_exports);
25
- var import_react = require("react");
26
- var import_ahooks = require("ahooks");
27
- var import_hooks = require("../../hooks");
28
- var useCupAction = () => {
29
- const { put } = (0, import_hooks.useRequest)();
30
- const [loading, setLoading] = (0, import_react.useState)(false);
31
- const { goalShopId } = (0, import_hooks.useGetGoalShopInfo)();
32
- const run = (0, import_ahooks.useMemoizedFn)(async (cupId, action) => {
33
- try {
34
- setLoading(true);
35
- const res = await put(`/shop/wallet/eco/cup/action/${cupId}`, { action, goal_shop_id: goalShopId });
36
- if ((res == null ? void 0 : res.code) == 200) {
37
- return true;
38
- }
39
- return false;
40
- } catch (error) {
41
- console.error(error);
42
- return false;
43
- } finally {
44
- setLoading(false);
45
- }
46
- });
47
- return {
48
- run,
49
- loading
50
- };
51
- };
52
- // Annotate the CommonJS export names for ESM import in node:
53
- 0 && (module.exports = {
54
- useCupAction
55
- });
@@ -1,13 +0,0 @@
1
- import { ECupScanStatus, ICup } from '../../types';
2
- import './index.less';
3
- interface IProps {
4
- visible: boolean;
5
- onCancel: () => void;
6
- onOk: () => void;
7
- data: {
8
- scanStatus: ECupScanStatus;
9
- cupData: ICup;
10
- };
11
- }
12
- declare const CupStatusModal: (props: IProps) => JSX.Element;
13
- export default CupStatusModal;
@@ -1,140 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/ecocup/components/CupStatusModal/index.tsx
30
- var CupStatusModal_exports = {};
31
- __export(CupStatusModal_exports, {
32
- default: () => CupStatusModal_default
33
- });
34
- module.exports = __toCommonJS(CupStatusModal_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_materials = require("@pisell/materials");
37
- var import_utils = require("@pisell/utils");
38
- var import_types = require("../../types");
39
- var import_index = require("./index.less");
40
- var import_CupInfoCard = __toESM(require("../CupInfoCard"));
41
- var import_CustomerCard = __toESM(require("../CustomerCard"));
42
- var import_hooks = require("./hooks");
43
- var CupStatusModal = (props) => {
44
- var _a;
45
- const { visible, onCancel, onOk, data } = props;
46
- const { scanStatus, cupData } = data || {};
47
- const cupAction = (0, import_hooks.useCupAction)();
48
- const isRed = scanStatus !== import_types.ECupScanStatus.OTHER_IN_STOCK && scanStatus !== import_types.ECupScanStatus.OTHER_RENT;
49
- const lineStyle = (0, import_react.useMemo)(() => {
50
- if (isRed) {
51
- return {
52
- backgroundColor: "#FEE4E2",
53
- color: "#F04438"
54
- };
55
- }
56
- return {
57
- backgroundColor: "#F6F2FF",
58
- color: "#7F56DA"
59
- };
60
- }, [isRed]);
61
- const cupInfoCardType = (0, import_react.useMemo)(() => {
62
- if (scanStatus === import_types.ECupScanStatus.OTHER_IN_STOCK || scanStatus === import_types.ECupScanStatus.IN_STOCK) {
63
- return "belongInfo";
64
- }
65
- if (scanStatus === import_types.ECupScanStatus.OTHER_RENT || scanStatus === import_types.ECupScanStatus.RENT) {
66
- return "rentInfo";
67
- }
68
- if (scanStatus === import_types.ECupScanStatus.MISSING || scanStatus === import_types.ECupScanStatus.BROKEN) {
69
- return "markInfo";
70
- }
71
- return "";
72
- }, [scanStatus]);
73
- const _onCancel = () => {
74
- if (cupAction == null ? void 0 : cupAction.loading) return;
75
- onCancel == null ? void 0 : onCancel();
76
- };
77
- const _onOk = async () => {
78
- if (cupAction == null ? void 0 : cupAction.loading) return;
79
- const type = scanStatus === import_types.ECupScanStatus.OTHER_IN_STOCK ? import_types.ECupActionType.TRANSFER : scanStatus === import_types.ECupScanStatus.OTHER_RENT ? import_types.ECupActionType.RETURN : "";
80
- if (!type) {
81
- onOk == null ? void 0 : onOk();
82
- return;
83
- }
84
- const result = await cupAction.run(
85
- (cupData == null ? void 0 : cupData.eco_cup_id) || (cupData == null ? void 0 : cupData.id),
86
- type
87
- );
88
- if (result) {
89
- (0, import_materials.PisellToast)({
90
- content: import_utils.locales.getText(`pisell2.text.ecocup.toast.success-${type}`)
91
- });
92
- onOk == null ? void 0 : onOk();
93
- }
94
- };
95
- return /* @__PURE__ */ import_react.default.createElement(
96
- import_materials.PisellModal,
97
- {
98
- headerDivider: false,
99
- open: visible,
100
- onCancel: _onCancel,
101
- onOk: _onOk,
102
- title: import_utils.locales.getText(
103
- `pisell2.text.ecocup.cup-status-modal.title-${scanStatus}`
104
- ),
105
- cancelText: import_utils.locales.getText("pisell2.text.ecocup.button.dismiss"),
106
- okText: isRed ? import_utils.locales.getText("pisell2.text.ecocup.button.confirm") : scanStatus === import_types.ECupScanStatus.OTHER_IN_STOCK ? import_utils.locales.getText("pisell2.text.ecocup.button.transfer") : import_utils.locales.getText("pisell2.text.ecocup.button.mark-as-return"),
107
- okButtonProps: { loading: cupAction == null ? void 0 : cupAction.loading },
108
- cancelVisible: !isRed,
109
- width: 580
110
- },
111
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-status-modal-content" }, /* @__PURE__ */ import_react.default.createElement(
112
- "div",
113
- {
114
- className: "pisell2-ecocup-cup-status-modal-content-cup",
115
- style: { ...lineStyle }
116
- },
117
- /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "RestOutlined", size: 24 }),
118
- /* @__PURE__ */ import_react.default.createElement(
119
- "span",
120
- {
121
- style: {
122
- color: !isRed ? "#667085" : "#F04438"
123
- }
124
- },
125
- import_utils.locales.getText("pisell2.text.ecocup.cup-id")
126
- ),
127
- /* @__PURE__ */ import_react.default.createElement("span", null, (cupData == null ? void 0 : cupData.eco_cup_code) || (cupData == null ? void 0 : cupData.code) || "")
128
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-status-modal-content-info" }, /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1 } }, (cupData == null ? void 0 : cupData.current_shop) && cupInfoCardType ? /* @__PURE__ */ import_react.default.createElement(
129
- import_CupInfoCard.default,
130
- {
131
- type: cupInfoCardType,
132
- data: {
133
- shop: (_a = cupData == null ? void 0 : cupData.current_shop) == null ? void 0 : _a.name,
134
- time: cupData == null ? void 0 : cupData.operated_at
135
- }
136
- }
137
- ) : null), /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1 } }, (cupData == null ? void 0 : cupData.status) === import_types.ECupStatus.RENT ? (cupData == null ? void 0 : cupData.customer) ? /* @__PURE__ */ import_react.default.createElement(import_CustomerCard.default, { ...(cupData == null ? void 0 : cupData.customer) || {} }) : null : (cupData == null ? void 0 : cupData.status) === import_types.ECupStatus.IN_STOCK ? null : /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-status-modal-content-info-tip" }, import_utils.locales.getText("pisell2.text.ecocup.cup-status-modal.tip")))))
138
- );
139
- };
140
- var CupStatusModal_default = CupStatusModal;
@@ -1,35 +0,0 @@
1
- .pisell2-ecocup-cup-status-modal-content {
2
- padding: 0 0 24px 0;
3
- display: flex;
4
- flex-direction: column;
5
- gap: 32px;
6
-
7
- &-cup {
8
- height: 60px;
9
- padding: 0 16px;
10
- display: flex;
11
- flex-direction: row;
12
- align-items: center;
13
- justify-content: center;
14
- border-radius: 8px;
15
- gap: 8px;
16
-
17
- & > span {
18
- font-size: 20px;
19
- font-weight: 300;
20
- }
21
- }
22
-
23
- &-info {
24
- display: flex;
25
- align-items: center;
26
- justify-content: space-between;
27
-
28
- &-tip {
29
- flex: 1;
30
- color: #d92d20;
31
- font-size: 16px;
32
- font-weight: 400;
33
- }
34
- }
35
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * 获取客户详情
3
- */
4
- export declare const useCustomerDetail: () => {
5
- run: (id: string) => Promise<any>;
6
- loading: boolean;
7
- };
8
- /**
9
- * 批量租用杯子
10
- */
11
- export declare const useBatchRentCups: () => {
12
- run: (id: string, cupIds: string[]) => Promise<boolean>;
13
- loading: boolean;
14
- };
@@ -1,89 +0,0 @@
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/ecocup/components/CustomerAndCupModal/hooks.ts
20
- var hooks_exports = {};
21
- __export(hooks_exports, {
22
- useBatchRentCups: () => useBatchRentCups,
23
- useCustomerDetail: () => useCustomerDetail
24
- });
25
- module.exports = __toCommonJS(hooks_exports);
26
- var import_react = require("react");
27
- var import_ahooks = require("ahooks");
28
- var import_hooks = require("../../hooks");
29
- var useCustomerDetail = () => {
30
- const { get } = (0, import_hooks.useRequest)();
31
- const [loading, setLoading] = (0, import_react.useState)(false);
32
- const { goalShopId } = (0, import_hooks.useGetGoalShopInfo)();
33
- const run = (0, import_ahooks.useMemoizedFn)(async (id) => {
34
- try {
35
- setLoading(true);
36
- const res = await get(`/shop/wallet/eco/customer/${id}`, {
37
- with_rent_cups_flag: 1,
38
- goal_shop_id: goalShopId,
39
- with: ["tags"]
40
- });
41
- if ((res == null ? void 0 : res.code) == 200) {
42
- return res == null ? void 0 : res.data;
43
- }
44
- return null;
45
- } catch (error) {
46
- console.error(error);
47
- return null;
48
- } finally {
49
- setLoading(false);
50
- }
51
- });
52
- return {
53
- run,
54
- loading
55
- };
56
- };
57
- var useBatchRentCups = () => {
58
- const { post } = (0, import_hooks.useRequest)();
59
- const [loading, setLoading] = (0, import_react.useState)(false);
60
- const { goalShopId } = (0, import_hooks.useGetGoalShopInfo)();
61
- const run = (0, import_ahooks.useMemoizedFn)(async (id, cupIds) => {
62
- try {
63
- setLoading(true);
64
- const res = await post("/shop/wallet/eco/cups-rent", {
65
- customer_id: id,
66
- eco_cup_ids: cupIds,
67
- goal_shop_id: goalShopId
68
- });
69
- if ((res == null ? void 0 : res.code) == 200) {
70
- return true;
71
- }
72
- return false;
73
- } catch (error) {
74
- console.error(error);
75
- return false;
76
- } finally {
77
- setLoading(false);
78
- }
79
- });
80
- return {
81
- run,
82
- loading
83
- };
84
- };
85
- // Annotate the CommonJS export names for ESM import in node:
86
- 0 && (module.exports = {
87
- useBatchRentCups,
88
- useCustomerDetail
89
- });
@@ -1,16 +0,0 @@
1
- import './index.less';
2
- import { ICup, ICustomer } from '../../types';
3
- interface IProps {
4
- key: string;
5
- title?: string;
6
- visible: boolean;
7
- onCancel: () => void;
8
- onOk: () => void;
9
- data: {
10
- firstType: 'customer' | 'cup';
11
- customerData?: ICustomer;
12
- cupData?: ICup;
13
- };
14
- }
15
- declare const CustomerAndCupModal: (props: IProps) => JSX.Element;
16
- export default CustomerAndCupModal;
@@ -1,178 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/ecocup/components/CustomerAndCupModal/index.tsx
30
- var CustomerAndCupModal_exports = {};
31
- __export(CustomerAndCupModal_exports, {
32
- default: () => CustomerAndCupModal_default
33
- });
34
- module.exports = __toCommonJS(CustomerAndCupModal_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_materials = require("@pisell/materials");
37
- var import_utils = require("@pisell/utils");
38
- var import_ahooks = require("ahooks");
39
- var import_CustomerCard = __toESM(require("../CustomerCard"));
40
- var import_SearchBar = __toESM(require("../SearchBar"));
41
- var import_index = require("./index.less");
42
- var import_CupActionList = __toESM(require("../CupActionList"));
43
- var import_types = require("../../types");
44
- var import_hooks = require("./hooks");
45
- var SCAN_LISTENER_KEY = "eco-cup-customer-first-modal-scan-listener";
46
- var CustomerAndCupModal = (props) => {
47
- const { key, title, visible, onCancel, onOk, data } = props;
48
- const [customerData, setCustomerData] = (0, import_react.useState)();
49
- const [rentedCups, setRentedCups] = (0, import_react.useState)([]);
50
- const [newCups, setNewCups] = (0, import_react.useState)([]);
51
- const [maxCupsNum, setMaxCupsNum] = (0, import_react.useState)(0);
52
- const customerDetail = (0, import_hooks.useCustomerDetail)();
53
- const batchRentCups = (0, import_hooks.useBatchRentCups)();
54
- const currentCupsNum = (0, import_react.useMemo)(() => {
55
- return ((rentedCups == null ? void 0 : rentedCups.length) || 0) + ((newCups == null ? void 0 : newCups.length) || 0);
56
- }, [rentedCups, newCups]);
57
- const isOverMax = (0, import_react.useMemo)(() => {
58
- return currentCupsNum > maxCupsNum;
59
- }, [currentCupsNum, maxCupsNum]);
60
- const isLoading = (0, import_react.useMemo)(() => {
61
- return (customerDetail == null ? void 0 : customerDetail.loading) || (batchRentCups == null ? void 0 : batchRentCups.loading);
62
- }, [customerDetail == null ? void 0 : customerDetail.loading, batchRentCups == null ? void 0 : batchRentCups.loading]);
63
- (0, import_react.useEffect)(() => {
64
- setCustomerData((data == null ? void 0 : data.customerData) || void 0);
65
- }, [data == null ? void 0 : data.customerData]);
66
- const _getCustomerDetail = (0, import_ahooks.useMemoizedFn)((id) => {
67
- if (!id) return;
68
- customerDetail.run(id).then((res) => {
69
- console.log("res", res);
70
- if (res) {
71
- setMaxCupsNum((res == null ? void 0 : res.max_rent_count) || 0);
72
- setRentedCups((res == null ? void 0 : res.rent_cups) || []);
73
- } else {
74
- setMaxCupsNum(0);
75
- setRentedCups([]);
76
- }
77
- });
78
- });
79
- (0, import_react.useEffect)(() => {
80
- var _a;
81
- if ((data == null ? void 0 : data.firstType) === "cup") {
82
- (data == null ? void 0 : data.cupData) && setNewCups([data == null ? void 0 : data.cupData]);
83
- } else {
84
- _getCustomerDetail((_a = data == null ? void 0 : data.customerData) == null ? void 0 : _a.id);
85
- }
86
- }, [data == null ? void 0 : data.firstType, data == null ? void 0 : data.customerData, data == null ? void 0 : data.cupData, _getCustomerDetail]);
87
- const _onCancel = () => {
88
- if (isLoading) return;
89
- onCancel == null ? void 0 : onCancel();
90
- };
91
- const _onOk = async () => {
92
- if (isLoading || !(customerData == null ? void 0 : customerData.id)) return;
93
- const cupIds = newCups.map((c) => c == null ? void 0 : c.id);
94
- const result = await batchRentCups.run(customerData == null ? void 0 : customerData.id, cupIds);
95
- if (!result) {
96
- return;
97
- }
98
- setNewCups([]);
99
- _getCustomerDetail(customerData == null ? void 0 : customerData.id);
100
- };
101
- const onSearchResult = (result) => {
102
- var _a, _b;
103
- console.log("onSearchResult", result);
104
- if ((result == null ? void 0 : result.type) === "cup") {
105
- if (newCups.find((c) => {
106
- var _a2;
107
- return (c == null ? void 0 : c.id) === ((_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.id);
108
- })) {
109
- return;
110
- }
111
- if (((_a = result == null ? void 0 : result.data) == null ? void 0 : _a.status) !== import_types.ECupStatus.IN_STOCK) {
112
- return;
113
- }
114
- setNewCups([...newCups, result == null ? void 0 : result.data]);
115
- } else {
116
- setCustomerData(result == null ? void 0 : result.data);
117
- _getCustomerDetail((_b = result == null ? void 0 : result.data) == null ? void 0 : _b.id);
118
- }
119
- };
120
- const renderCustomerCard = () => {
121
- return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-customer-first-modal-title" }, "Current Customer"), (customerData == null ? void 0 : customerData.id) ? /* @__PURE__ */ import_react.default.createElement(import_CustomerCard.default, { ...customerData || {} }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-customer-first-modal-no-customer" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-customer-first-modal-no-customer-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell2-ecocup-customer-first-modal-no-customer-text" }, import_utils.locales.getText(
122
- "pisell2.text.ecocup.customer-first-modal.no-customer"
123
- ))));
124
- };
125
- const renderSearchBar = () => {
126
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-customer-first-modal-search-bar" }, /* @__PURE__ */ import_react.default.createElement(
127
- import_SearchBar.default,
128
- {
129
- scanListenerKey: `${key}-${SCAN_LISTENER_KEY}`,
130
- searchType: (customerData == null ? void 0 : customerData.id) ? "cup" : void 0,
131
- placeholder: (customerData == null ? void 0 : customerData.id) ? import_utils.locales.getText(
132
- "pisell2.text.ecocup.customer-first-modal.search-bar.placeholder-cup"
133
- ) : import_utils.locales.getText(
134
- "pisell2.text.ecocup.customer-first-modal.search-bar.placeholder"
135
- ),
136
- onSearchResult,
137
- customerId: customerData == null ? void 0 : customerData.id
138
- }
139
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-customer-first-modal-search-bar-limit" }, /* @__PURE__ */ import_react.default.createElement("span", null, "Max"), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", { style: { color: isOverMax ? "#CF1322" : "#000000" } }, currentCupsNum), "/", maxCupsNum)));
140
- };
141
- return /* @__PURE__ */ import_react.default.createElement(
142
- import_materials.PisellModal,
143
- {
144
- open: visible,
145
- title: title || import_utils.locales.getText("pisell2.text.ecocup.customer-first-modal.title"),
146
- headerDivider: false,
147
- onCancel: _onCancel,
148
- onOk: _onOk,
149
- okText: import_utils.locales.getText("pisell2.text.ecocup.button.confirm"),
150
- cancelText: import_utils.locales.getText("pisell2.text.ecocup.button.cancel"),
151
- okButtonProps: {
152
- disabled: newCups.length === 0 || isOverMax || isLoading || !(customerData == null ? void 0 : customerData.id),
153
- loading: isLoading
154
- },
155
- width: 580
156
- },
157
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-customer-first-modal" }, (data == null ? void 0 : data.firstType) === "customer" ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderCustomerCard(), renderSearchBar()) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderSearchBar(), renderCustomerCard()), /* @__PURE__ */ import_react.default.createElement(
158
- import_CupActionList.default,
159
- {
160
- maxNum: maxCupsNum,
161
- currentNum: currentCupsNum,
162
- cups: [...rentedCups, ...newCups],
163
- customerData,
164
- onClearAll: () => setNewCups([]),
165
- onRemove: (cup) => {
166
- setNewCups(newCups.filter((c) => (c == null ? void 0 : c.id) !== (cup == null ? void 0 : cup.id)));
167
- },
168
- onAction: (type, cup) => {
169
- const key2 = (cup == null ? void 0 : cup.eco_cup_id) ? "eco_cup_id" : "id";
170
- setRentedCups(
171
- rentedCups.filter((c) => (c == null ? void 0 : c[key2]) !== (cup == null ? void 0 : cup[key2]))
172
- );
173
- }
174
- }
175
- ))
176
- );
177
- };
178
- var CustomerAndCupModal_default = CustomerAndCupModal;