@pisell/private-materials 6.3.138 → 6.3.140

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 (329) 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 +153 -426
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
  13. package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  14. package/es/components/booking/addons/model.d.ts +10 -1
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  17. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  19. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  20. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  21. package/es/components/booking/deposit/index.d.ts +0 -1
  22. package/es/components/booking/forms/model.d.ts +10 -1
  23. package/es/components/booking/forms/table/index.d.ts +1 -0
  24. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  25. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  26. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  27. package/es/components/booking/info/index.d.ts +0 -1
  28. package/es/components/booking/info/model.d.ts +10 -1
  29. package/es/components/booking/info/service/Lists.d.ts +0 -1
  30. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  31. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  32. package/es/components/booking/info/service/like/index.d.ts +1 -0
  33. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  34. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  35. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  36. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  37. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  38. package/es/components/booking/model.d.ts +9 -1
  39. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  40. package/es/components/booking/notes/model.d.ts +10 -1
  41. package/es/components/booking/payments/model.d.ts +10 -1
  42. package/es/components/booking/utils.d.ts +2 -2
  43. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  44. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  45. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  46. package/es/components/eftpos/form/index.d.ts +1 -0
  47. package/es/components/eftpos/group/index.d.ts +1 -0
  48. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  49. package/es/components/eftpos/icon/device.d.ts +1 -0
  50. package/es/components/eftpos/pos.d.ts +1 -0
  51. package/es/components/eftpos/receipt/index.d.ts +1 -0
  52. package/es/components/eftposPay/app.d.ts +0 -1
  53. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  54. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  55. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  56. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  57. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  58. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  59. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  60. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  61. package/es/components/eftposPay/device.d.ts +0 -1
  62. package/es/components/eftposPay/index.d.ts +0 -1
  63. package/es/components/eftposPay/linkly/index.d.ts +0 -1
  64. package/es/components/eftposPay/pay.d.ts +0 -1
  65. package/es/components/eftposPay/payo/config.d.ts +1 -0
  66. package/es/components/eftposPay/tip.d.ts +1 -0
  67. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  68. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  69. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  76. package/es/components/eventBooking/index.d.ts +0 -1
  77. package/es/components/login/index.d.ts +1 -0
  78. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  80. package/es/components/pay/toC/model.d.ts +9 -1
  81. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  82. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  83. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  84. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  85. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  86. package/es/components/productExtension/index.d.ts +0 -1
  87. package/es/components/ruleSetting/index.d.ts +0 -1
  88. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  89. package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
  90. package/es/components/scanOrder/components/Cart/index.js +181 -76
  91. package/es/components/scanOrder/components/Cart/index.less +72 -13
  92. package/es/components/scanOrder/components/Check/index.js +261 -75
  93. package/es/components/scanOrder/components/Check/index.less +30 -0
  94. package/es/components/scanOrder/components/Content/index.js +382 -144
  95. package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
  96. package/es/components/scanOrder/components/Footer/index.js +4 -2
  97. package/es/components/scanOrder/components/Footer/index.less +16 -7
  98. package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  99. package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
  100. package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  101. package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  102. package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
  103. package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  104. package/es/components/scanOrder/components/Menu/index.d.ts +11 -0
  105. package/es/components/scanOrder/components/Menu/index.js +140 -169
  106. package/es/components/scanOrder/components/Voucher/index.d.ts +8 -0
  107. package/es/components/scanOrder/components/Voucher/index.js +250 -0
  108. package/es/components/scanOrder/context.js +123 -3
  109. package/es/components/scanOrder/hooks.js +4 -1
  110. package/es/components/scanOrder/locales.d.ts +120 -0
  111. package/es/components/scanOrder/locales.js +120 -0
  112. package/es/components/scanOrder/types.d.ts +33 -0
  113. package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +1 -0
  114. package/es/components/scanOrder/utils/toShoppingCartProducts.js +137 -9
  115. package/es/components/scanOrder/utils/transformProductDetail.js +21 -4
  116. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  117. package/es/components/schedules/calendar/index.d.ts +1 -0
  118. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  119. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  120. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  121. package/es/components/schedules/model.d.ts +9 -1
  122. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  124. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  125. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  126. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  127. package/es/components/schedules/products/index.d.ts +1 -0
  128. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  129. package/es/components/schedules/products/list/index.d.ts +1 -0
  130. package/es/components/schedules/resources/index.d.ts +1 -0
  131. package/es/components/schedules/resources/list/index.d.ts +1 -0
  132. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  133. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  134. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  135. package/es/components/schedules/schedules/index.d.ts +1 -0
  136. package/es/components/systemSettings/registry/components/GroupModal.js +8 -1
  137. package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
  138. package/es/components/systemSettings/registry/index.js +3 -1
  139. package/es/components/systemSettings/registry/services.d.ts +2 -0
  140. package/es/components/systemSettings/registry/types.d.ts +3 -0
  141. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  142. package/es/components/venueBooking/components/Addons/index.js +42 -33
  143. package/es/components/venueBooking/components/Cart/index.js +26 -14
  144. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +129 -17
  145. package/es/components/venueBooking/context.js +6 -6
  146. package/es/components/venueBooking/hooks.d.ts +16 -3
  147. package/es/components/venueBooking/hooks.js +16 -4
  148. package/es/components/venueBooking/types.d.ts +19 -2
  149. package/es/hooks/usePaymentLogger.d.ts +1 -0
  150. package/es/index.d.ts +1 -1
  151. package/es/index.js +1 -1
  152. package/es/plus/clientName/index.d.ts +1 -0
  153. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  154. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  155. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  156. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  157. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  158. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  159. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  160. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  161. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  162. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  163. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  164. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  165. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  166. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  167. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  168. package/es/pro/Selector/demo.d.ts +1 -0
  169. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  170. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
  171. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  172. package/lib/components/booking/addons/model.d.ts +10 -1
  173. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  174. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  175. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  176. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  177. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  178. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  179. package/lib/components/booking/deposit/index.d.ts +0 -1
  180. package/lib/components/booking/forms/model.d.ts +10 -1
  181. package/lib/components/booking/forms/table/index.d.ts +1 -0
  182. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  183. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  184. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  185. package/lib/components/booking/info/index.d.ts +0 -1
  186. package/lib/components/booking/info/model.d.ts +10 -1
  187. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  188. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  189. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  190. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  191. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  192. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  193. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  194. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  195. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  196. package/lib/components/booking/model.d.ts +9 -1
  197. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  198. package/lib/components/booking/notes/model.d.ts +10 -1
  199. package/lib/components/booking/payments/model.d.ts +10 -1
  200. package/lib/components/booking/utils.d.ts +2 -2
  201. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  202. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  203. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  204. package/lib/components/eftpos/form/index.d.ts +1 -0
  205. package/lib/components/eftpos/group/index.d.ts +1 -0
  206. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  207. package/lib/components/eftpos/icon/device.d.ts +1 -0
  208. package/lib/components/eftpos/pos.d.ts +1 -0
  209. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  210. package/lib/components/eftposPay/app.d.ts +0 -1
  211. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  212. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  213. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  214. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  215. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  216. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  217. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  218. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  219. package/lib/components/eftposPay/device.d.ts +0 -1
  220. package/lib/components/eftposPay/index.d.ts +0 -1
  221. package/lib/components/eftposPay/linkly/index.d.ts +0 -1
  222. package/lib/components/eftposPay/pay.d.ts +0 -1
  223. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  224. package/lib/components/eftposPay/tip.d.ts +1 -0
  225. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  226. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  227. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  228. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  230. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  231. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  232. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  233. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  234. package/lib/components/eventBooking/index.d.ts +0 -1
  235. package/lib/components/login/index.d.ts +1 -0
  236. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  237. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  238. package/lib/components/pay/toC/model.d.ts +9 -1
  239. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  240. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  241. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  242. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  243. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  244. package/lib/components/productExtension/index.d.ts +0 -1
  245. package/lib/components/ruleSetting/index.d.ts +0 -1
  246. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  247. package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
  248. package/lib/components/scanOrder/components/Cart/index.js +117 -28
  249. package/lib/components/scanOrder/components/Cart/index.less +72 -13
  250. package/lib/components/scanOrder/components/Check/index.js +109 -15
  251. package/lib/components/scanOrder/components/Check/index.less +30 -0
  252. package/lib/components/scanOrder/components/Content/index.js +175 -48
  253. package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
  254. package/lib/components/scanOrder/components/Footer/index.js +2 -2
  255. package/lib/components/scanOrder/components/Footer/index.less +16 -7
  256. package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  257. package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
  258. package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  259. package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  260. package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
  261. package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  262. package/lib/components/scanOrder/components/Menu/index.d.ts +11 -0
  263. package/lib/components/scanOrder/components/Menu/index.js +23 -36
  264. package/lib/components/scanOrder/components/Voucher/index.d.ts +8 -0
  265. package/lib/components/scanOrder/components/Voucher/index.js +162 -0
  266. package/lib/components/scanOrder/context.js +91 -2
  267. package/lib/components/scanOrder/hooks.js +4 -1
  268. package/lib/components/scanOrder/locales.d.ts +120 -0
  269. package/lib/components/scanOrder/locales.js +120 -0
  270. package/lib/components/scanOrder/types.d.ts +33 -0
  271. package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +1 -0
  272. package/lib/components/scanOrder/utils/toShoppingCartProducts.js +88 -6
  273. package/lib/components/scanOrder/utils/transformProductDetail.js +10 -3
  274. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  275. package/lib/components/schedules/calendar/index.d.ts +1 -0
  276. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  277. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  278. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  279. package/lib/components/schedules/model.d.ts +9 -1
  280. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  281. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  282. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  283. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  284. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  285. package/lib/components/schedules/products/index.d.ts +1 -0
  286. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  287. package/lib/components/schedules/products/list/index.d.ts +1 -0
  288. package/lib/components/schedules/resources/index.d.ts +1 -0
  289. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  290. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  291. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  292. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  293. package/lib/components/schedules/schedules/index.d.ts +1 -0
  294. package/lib/components/systemSettings/registry/components/GroupModal.js +71 -72
  295. package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
  296. package/lib/components/systemSettings/registry/index.js +3 -1
  297. package/lib/components/systemSettings/registry/services.d.ts +2 -0
  298. package/lib/components/systemSettings/registry/types.d.ts +3 -0
  299. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  300. package/lib/components/venueBooking/components/Addons/index.js +15 -8
  301. package/lib/components/venueBooking/components/Cart/index.js +8 -2
  302. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +118 -18
  303. package/lib/components/venueBooking/context.js +2 -1
  304. package/lib/components/venueBooking/hooks.d.ts +16 -3
  305. package/lib/components/venueBooking/hooks.js +8 -2
  306. package/lib/components/venueBooking/types.d.ts +19 -2
  307. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  308. package/lib/index.d.ts +1 -1
  309. package/lib/index.js +2 -0
  310. package/lib/plus/clientName/index.d.ts +1 -0
  311. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  312. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  313. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  314. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  315. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  316. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  317. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  318. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  319. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  320. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  321. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  322. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  323. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  324. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  325. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  326. package/lib/pro/Selector/demo.d.ts +1 -0
  327. package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
  328. package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
  329. package/package.json +1 -1
@@ -13,17 +13,18 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
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; }
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import React, { useState, useEffect, useRef } from 'react';
16
+ import React, { useState, useEffect, useRef, useCallback } from 'react';
17
17
  import ProductSelect from "../../../../plus/productSelect";
18
18
  import useEngineContext from "../../../../hooks/useEngineContext";
19
19
  import { useScanOrderContext } from "../../context";
20
20
  import { isMobile, locales } from '@pisell/utils';
21
- import { Modal } from 'antd';
22
21
  import { PisellScrollView } from '@pisell/materials';
23
22
  import { transformProductDetailToOrderProduct } from "../../utils/transformProductDetail";
24
23
  export default function Menu(props) {
25
24
  var _scrollRef$current;
26
- var onCheckout = props.onCheckout;
25
+ var onCheckout = props.onCheckout,
26
+ productList = props.productList,
27
+ onEnsureProductList = props.onEnsureProductList;
27
28
  var context = useEngineContext();
28
29
  var _ref = context.appHelper || {},
29
30
  utils = _ref.utils;
@@ -36,201 +37,163 @@ export default function Menu(props) {
36
37
  dineInConfig = _useState2[0],
37
38
  setDineInConfig = _useState2[1];
38
39
  // 去读 pisellos 内的配置
39
- var getConfig = /*#__PURE__*/function () {
40
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
41
- var _otherParams$dineInCo;
42
- var otherParams, dineInConfig;
43
- return _regeneratorRuntime().wrap(function _callee$(_context) {
44
- while (1) switch (_context.prev = _context.next) {
45
- case 0:
46
- _context.next = 2;
47
- return runModuleAction('getOtherParams');
48
- case 2:
49
- otherParams = _context.sent;
50
- console.log('otherParams >>>>> ', otherParams);
51
- dineInConfig = (_otherParams$dineInCo = otherParams === null || otherParams === void 0 ? void 0 : otherParams.dineInConfig) !== null && _otherParams$dineInCo !== void 0 ? _otherParams$dineInCo : {};
52
- setDineInConfig(dineInConfig);
53
- case 6:
54
- case "end":
55
- return _context.stop();
56
- }
57
- }, _callee);
58
- }));
59
- return function getConfig() {
60
- return _ref2.apply(this, arguments);
61
- };
62
- }();
63
- getConfig();
64
- var _useState3 = useState([]),
65
- _useState4 = _slicedToArray(_useState3, 2),
66
- productList = _useState4[0],
67
- setProductList = _useState4[1];
40
+ var getConfig = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
41
+ var _otherParams$dineInCo;
42
+ var otherParams, dineInConfig;
43
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
44
+ while (1) switch (_context.prev = _context.next) {
45
+ case 0:
46
+ _context.next = 2;
47
+ return runModuleAction('getOtherParams');
48
+ case 2:
49
+ otherParams = _context.sent;
50
+ console.log('otherParams >>>>> ', otherParams);
51
+ dineInConfig = (_otherParams$dineInCo = otherParams === null || otherParams === void 0 ? void 0 : otherParams.dineInConfig) !== null && _otherParams$dineInCo !== void 0 ? _otherParams$dineInCo : {};
52
+ setDineInConfig(dineInConfig);
53
+ case 6:
54
+ case "end":
55
+ return _context.stop();
56
+ }
57
+ }, _callee);
58
+ })), [runModuleAction]);
68
59
  useEffect(function () {
69
- var fetchProductList = /*#__PURE__*/function () {
70
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
71
- var res;
72
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
73
- while (1) switch (_context2.prev = _context2.next) {
74
- case 0:
75
- _context2.next = 2;
76
- return runModuleAction('getProductList');
77
- case 2:
78
- res = _context2.sent;
79
- console.log('getProductList >>>>> ', res);
80
- if (Array.isArray(res)) {
81
- setProductList(res);
82
- } else {
83
- Modal.confirm({
84
- title: res.message,
85
- okText: String(locales.getText('pisell2.event.confirm') || 'OK'),
86
- cancelButtonProps: {
87
- style: {
88
- display: 'none'
89
- }
90
- },
91
- maskClosable: false,
92
- onOk: function onOk() {
93
- location.replace('/');
94
- }
95
- });
96
- }
97
- case 5:
98
- case "end":
99
- return _context2.stop();
100
- }
101
- }, _callee2);
102
- }));
103
- return function fetchProductList() {
104
- return _ref3.apply(this, arguments);
105
- };
106
- }();
107
- fetchProductList();
60
+ getConfig();
108
61
  }, []);
62
+ useEffect(function () {
63
+ void onEnsureProductList();
64
+ }, [onEnsureProductList]);
109
65
  var scrollRef = useRef(null);
110
66
  var isMobileView = isMobile();
111
67
  var height = window.innerHeight - 100;
112
68
  var addOrderProduct = /*#__PURE__*/function () {
113
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
69
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
114
70
  var orderProduct, sourceData;
115
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
116
- while (1) switch (_context3.prev = _context3.next) {
71
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
72
+ while (1) switch (_context2.prev = _context2.next) {
117
73
  case 0:
118
74
  orderProduct = params.orderProduct, sourceData = params.sourceData;
119
- _context3.prev = 1;
120
- _context3.next = 4;
75
+ _context2.prev = 1;
76
+ _context2.next = 4;
121
77
  return runModuleAction('addProductToOrder', orderProduct);
122
78
  case 4:
123
- _context3.next = 6;
79
+ _context2.next = 6;
124
80
  return refreshViewModel();
125
81
  case 6:
126
- _context3.next = 11;
82
+ _context2.next = 11;
127
83
  break;
128
84
  case 8:
129
- _context3.prev = 8;
130
- _context3.t0 = _context3["catch"](1);
85
+ _context2.prev = 8;
86
+ _context2.t0 = _context2["catch"](1);
131
87
  console.error('[scanOrder] addProductToOrder failed', {
132
- error: _context3.t0,
88
+ error: _context2.t0,
133
89
  sourceData: sourceData,
134
90
  mappedData: orderProduct
135
91
  });
136
92
  case 11:
137
93
  case "end":
138
- return _context3.stop();
94
+ return _context2.stop();
139
95
  }
140
- }, _callee3, null, [[1, 8]]);
96
+ }, _callee2, null, [[1, 8]]);
141
97
  }));
142
98
  return function addOrderProduct(_x) {
143
- return _ref4.apply(this, arguments);
99
+ return _ref3.apply(this, arguments);
144
100
  };
145
101
  }();
146
102
  var removeOrderProduct = /*#__PURE__*/function () {
147
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
148
- var product_id, product_variant_id, sourceData;
149
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
150
- while (1) switch (_context4.prev = _context4.next) {
103
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
104
+ var product_id, product_variant_id, identity_key, sourceData;
105
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
106
+ while (1) switch (_context3.prev = _context3.next) {
151
107
  case 0:
152
- product_id = params.product_id, product_variant_id = params.product_variant_id, sourceData = params.sourceData;
153
- _context4.prev = 1;
154
- _context4.next = 4;
155
- return runModuleAction('removeProductFromOrder', {
108
+ product_id = params.product_id, product_variant_id = params.product_variant_id, identity_key = params.identity_key, sourceData = params.sourceData;
109
+ _context3.prev = 1;
110
+ _context3.next = 4;
111
+ return runModuleAction('removeProductFromOrder', _objectSpread({
156
112
  product_id: product_id,
157
113
  product_variant_id: product_variant_id
158
- });
114
+ }, identity_key ? {
115
+ identity_key: identity_key
116
+ } : {}));
159
117
  case 4:
160
- _context4.next = 6;
118
+ _context3.next = 6;
161
119
  return refreshViewModel();
162
120
  case 6:
163
- _context4.next = 11;
121
+ _context3.next = 11;
164
122
  break;
165
123
  case 8:
166
- _context4.prev = 8;
167
- _context4.t0 = _context4["catch"](1);
124
+ _context3.prev = 8;
125
+ _context3.t0 = _context3["catch"](1);
168
126
  console.error('[scanOrder] removeProductFromOrder failed', {
169
- error: _context4.t0,
127
+ error: _context3.t0,
170
128
  sourceData: sourceData,
171
129
  product_id: product_id,
172
- product_variant_id: product_variant_id
130
+ product_variant_id: product_variant_id,
131
+ identity_key: identity_key
173
132
  });
174
133
  case 11:
175
134
  case "end":
176
- return _context4.stop();
135
+ return _context3.stop();
177
136
  }
178
- }, _callee4, null, [[1, 8]]);
137
+ }, _callee3, null, [[1, 8]]);
179
138
  }));
180
139
  return function removeOrderProduct(_x2) {
181
- return _ref5.apply(this, arguments);
140
+ return _ref4.apply(this, arguments);
182
141
  };
183
142
  }();
184
143
  var updateOrderProduct = /*#__PURE__*/function () {
185
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
186
- var product_id, product_variant_id, updates, sourceData;
187
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
188
- while (1) switch (_context5.prev = _context5.next) {
144
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
145
+ var product_id, product_variant_id, identity_key, updates, sourceData;
146
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
147
+ while (1) switch (_context4.prev = _context4.next) {
189
148
  case 0:
190
- product_id = params.product_id, product_variant_id = params.product_variant_id, updates = params.updates, sourceData = params.sourceData;
191
- _context5.prev = 1;
192
- _context5.next = 4;
193
- return runModuleAction('updateProductInOrder', {
149
+ product_id = params.product_id, product_variant_id = params.product_variant_id, identity_key = params.identity_key, updates = params.updates, sourceData = params.sourceData;
150
+ _context4.prev = 1;
151
+ _context4.next = 4;
152
+ return runModuleAction('updateProductInOrder', _objectSpread(_objectSpread({
194
153
  product_id: product_id,
195
- product_variant_id: product_variant_id,
154
+ product_variant_id: product_variant_id
155
+ }, identity_key ? {
156
+ identity_key: identity_key
157
+ } : {}), {}, {
196
158
  updates: updates
197
- });
159
+ }));
198
160
  case 4:
199
- _context5.next = 6;
161
+ _context4.next = 6;
200
162
  return refreshViewModel();
201
163
  case 6:
202
- _context5.next = 11;
164
+ _context4.next = 11;
203
165
  break;
204
166
  case 8:
205
- _context5.prev = 8;
206
- _context5.t0 = _context5["catch"](1);
167
+ _context4.prev = 8;
168
+ _context4.t0 = _context4["catch"](1);
207
169
  console.error('[scanOrder] updateProductInOrder failed', {
208
- error: _context5.t0,
170
+ error: _context4.t0,
209
171
  sourceData: sourceData,
210
172
  product_id: product_id,
211
173
  product_variant_id: product_variant_id,
174
+ identity_key: identity_key,
212
175
  updates: updates
213
176
  });
214
177
  case 11:
215
178
  case "end":
216
- return _context5.stop();
179
+ return _context4.stop();
217
180
  }
218
- }, _callee5, null, [[1, 8]]);
181
+ }, _callee4, null, [[1, 8]]);
219
182
  }));
220
183
  return function updateOrderProduct(_x3) {
221
- return _ref6.apply(this, arguments);
184
+ return _ref5.apply(this, arguments);
222
185
  };
223
186
  }();
224
187
  var handleSelectProduct = /*#__PURE__*/function () {
225
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(item, clickType, meta) {
226
- var sourceItem, _item$option, _item$bundle, _item$price, _item$product_id, _ref8, _meta$quantity, _orderProduct$product, _orderProduct$product4, quantityData, orderProduct, nextQuantity, productVariantId, normalizedQuantity, _orderProduct$product2, cartItems, existedCartItem;
227
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
228
- while (1) switch (_context7.prev = _context7.next) {
188
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(item, clickType, meta) {
189
+ var sourceItem, _item$option, _item$bundle, _item$price, _item$product_id, _ref7, _meta$quantity, _orderProduct$product, _orderProduct$product4, quantityData, orderProduct, nextQuantity, productVariantId, normalizedQuantity, cartItems, existedCartItem, existedIdentityKey, _orderProduct$product3;
190
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
191
+ while (1) switch (_context6.prev = _context6.next) {
229
192
  case 0:
230
193
  console.log(item, clickType, meta);
231
194
  sourceItem = (meta === null || meta === void 0 ? void 0 : meta.product) || item;
232
195
  if (!((meta === null || meta === void 0 ? void 0 : meta.intent) === 'quantity')) {
233
- _context7.next = 28;
196
+ _context6.next = 29;
234
197
  break;
235
198
  }
236
199
  quantityData = _objectSpread(_objectSpread({}, item), {}, {
@@ -246,71 +209,75 @@ export default function Menu(props) {
246
209
  sourceItem: sourceItem
247
210
  });
248
211
  if (orderProduct) {
249
- _context7.next = 8;
212
+ _context6.next = 8;
250
213
  break;
251
214
  }
252
215
  console.warn('[scanOrder] quantity add missing product_id', quantityData);
253
- return _context7.abrupt("return");
216
+ return _context6.abrupt("return");
254
217
  case 8:
255
- nextQuantity = Number((_ref8 = (_meta$quantity = meta === null || meta === void 0 ? void 0 : meta.quantity) !== null && _meta$quantity !== void 0 ? _meta$quantity : quantityData === null || quantityData === void 0 ? void 0 : quantityData.quantity) !== null && _ref8 !== void 0 ? _ref8 : 0);
218
+ nextQuantity = Number((_ref7 = (_meta$quantity = meta === null || meta === void 0 ? void 0 : meta.quantity) !== null && _meta$quantity !== void 0 ? _meta$quantity : quantityData === null || quantityData === void 0 ? void 0 : quantityData.quantity) !== null && _ref7 !== void 0 ? _ref7 : 0);
256
219
  productVariantId = Number((_orderProduct$product = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.product_variant_id) !== null && _orderProduct$product !== void 0 ? _orderProduct$product : 0);
257
220
  if (!Number.isNaN(productVariantId)) {
258
- _context7.next = 13;
221
+ _context6.next = 13;
259
222
  break;
260
223
  }
261
224
  console.warn('[scanOrder] quantity action missing product_variant_id', {
262
225
  quantityData: quantityData,
263
226
  orderProduct: orderProduct
264
227
  });
265
- return _context7.abrupt("return");
228
+ return _context6.abrupt("return");
266
229
  case 13:
267
230
  normalizedQuantity = Number.isNaN(nextQuantity) ? 0 : Math.max(0, Math.floor(nextQuantity));
231
+ cartItems = Array.isArray(viewModel === null || viewModel === void 0 ? void 0 : viewModel.cartItems) ? viewModel.cartItems : []; // 不透明 identity 契约:同 SKU 多行场景下,必须直接从已存在的 cartItem 上取 identity_key,
232
+ // 否则 update / remove 容易误命中其它选项相同的行。
233
+ existedCartItem = cartItems.find(function (cartItem) {
234
+ var _cartItem$product_id, _orderProduct$product2, _cartItem$product_var;
235
+ return String((_cartItem$product_id = cartItem === null || cartItem === void 0 ? void 0 : cartItem.product_id) !== null && _cartItem$product_id !== void 0 ? _cartItem$product_id : null) === String((_orderProduct$product2 = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.product_id) !== null && _orderProduct$product2 !== void 0 ? _orderProduct$product2 : null) && Number((_cartItem$product_var = cartItem === null || cartItem === void 0 ? void 0 : cartItem.product_variant_id) !== null && _cartItem$product_var !== void 0 ? _cartItem$product_var : 0) === productVariantId;
236
+ });
237
+ existedIdentityKey = typeof (existedCartItem === null || existedCartItem === void 0 ? void 0 : existedCartItem.identity_key) === 'string' && existedCartItem.identity_key.length > 0 ? existedCartItem.identity_key : undefined;
268
238
  if (!(normalizedQuantity <= 0)) {
269
- _context7.next = 18;
239
+ _context6.next = 21;
270
240
  break;
271
241
  }
272
- _context7.next = 17;
242
+ _context6.next = 20;
273
243
  return removeOrderProduct({
274
- product_id: (_orderProduct$product2 = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.product_id) !== null && _orderProduct$product2 !== void 0 ? _orderProduct$product2 : null,
244
+ product_id: (_orderProduct$product3 = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.product_id) !== null && _orderProduct$product3 !== void 0 ? _orderProduct$product3 : null,
275
245
  product_variant_id: productVariantId,
246
+ identity_key: existedIdentityKey,
276
247
  sourceData: quantityData
277
248
  });
278
- case 17:
279
- return _context7.abrupt("return");
280
- case 18:
281
- cartItems = Array.isArray(viewModel === null || viewModel === void 0 ? void 0 : viewModel.cartItems) ? viewModel.cartItems : [];
282
- existedCartItem = cartItems.find(function (cartItem) {
283
- var _cartItem$product_id, _orderProduct$product3, _cartItem$product_var;
284
- return String((_cartItem$product_id = cartItem === null || cartItem === void 0 ? void 0 : cartItem.product_id) !== null && _cartItem$product_id !== void 0 ? _cartItem$product_id : null) === String((_orderProduct$product3 = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.product_id) !== null && _orderProduct$product3 !== void 0 ? _orderProduct$product3 : null) && Number((_cartItem$product_var = cartItem === null || cartItem === void 0 ? void 0 : cartItem.product_variant_id) !== null && _cartItem$product_var !== void 0 ? _cartItem$product_var : 0) === productVariantId;
285
- });
249
+ case 20:
250
+ return _context6.abrupt("return");
251
+ case 21:
286
252
  if (existedCartItem) {
287
- _context7.next = 24;
253
+ _context6.next = 25;
288
254
  break;
289
255
  }
290
- _context7.next = 23;
256
+ _context6.next = 24;
291
257
  return addOrderProduct({
292
258
  orderProduct: _objectSpread(_objectSpread({}, orderProduct), {}, {
293
259
  num: normalizedQuantity
294
260
  }),
295
261
  sourceData: quantityData
296
262
  });
297
- case 23:
298
- return _context7.abrupt("return");
299
263
  case 24:
300
- _context7.next = 26;
264
+ return _context6.abrupt("return");
265
+ case 25:
266
+ _context6.next = 27;
301
267
  return updateOrderProduct({
302
268
  product_id: (_orderProduct$product4 = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.product_id) !== null && _orderProduct$product4 !== void 0 ? _orderProduct$product4 : null,
303
269
  product_variant_id: productVariantId,
270
+ identity_key: existedIdentityKey,
304
271
  updates: {
305
272
  num: normalizedQuantity,
306
273
  _origin: orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct._origin
307
274
  },
308
275
  sourceData: quantityData
309
276
  });
310
- case 26:
311
- _context7.next = 29;
277
+ case 27:
278
+ _context6.next = 30;
312
279
  break;
313
- case 28:
280
+ case 29:
314
281
  utils === null || utils === void 0 || utils.action({
315
282
  type: 'pisell1.productDetail',
316
283
  data: {
@@ -320,21 +287,21 @@ export default function Menu(props) {
320
287
  setting: {
321
288
  can_input: true,
322
289
  item_max_length: 1,
323
- is_detail_open: true
290
+ is_detail_open: false
324
291
  }
325
292
  },
326
293
  callback: function () {
327
- var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
294
+ var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(data) {
328
295
  var _item$product_id2;
329
296
  var orderProduct;
330
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
331
- while (1) switch (_context6.prev = _context6.next) {
297
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
298
+ while (1) switch (_context5.prev = _context5.next) {
332
299
  case 0:
333
300
  if (!(data !== null && data !== void 0 && data.isCancel)) {
334
- _context6.next = 2;
301
+ _context5.next = 2;
335
302
  break;
336
303
  }
337
- return _context6.abrupt("return");
304
+ return _context5.abrupt("return");
338
305
  case 2:
339
306
  orderProduct = transformProductDetailToOrderProduct({
340
307
  payload: data,
@@ -342,22 +309,22 @@ export default function Menu(props) {
342
309
  sourceItem: sourceItem
343
310
  });
344
311
  if (orderProduct) {
345
- _context6.next = 6;
312
+ _context5.next = 6;
346
313
  break;
347
314
  }
348
315
  console.warn('[scanOrder] productDetail callback missing product_id', data);
349
- return _context6.abrupt("return");
316
+ return _context5.abrupt("return");
350
317
  case 6:
351
- _context6.next = 8;
318
+ _context5.next = 8;
352
319
  return addOrderProduct({
353
320
  orderProduct: orderProduct,
354
321
  sourceData: data
355
322
  });
356
323
  case 8:
357
324
  case "end":
358
- return _context6.stop();
325
+ return _context5.stop();
359
326
  }
360
- }, _callee6);
327
+ }, _callee5);
361
328
  }));
362
329
  function callback(_x7) {
363
330
  return _callback.apply(this, arguments);
@@ -365,14 +332,14 @@ export default function Menu(props) {
365
332
  return callback;
366
333
  }()
367
334
  });
368
- case 29:
335
+ case 30:
369
336
  case "end":
370
- return _context7.stop();
337
+ return _context6.stop();
371
338
  }
372
- }, _callee7);
339
+ }, _callee6);
373
340
  }));
374
341
  return function handleSelectProduct(_x4, _x5, _x6) {
375
- return _ref7.apply(this, arguments);
342
+ return _ref6.apply(this, arguments);
376
343
  };
377
344
  }();
378
345
  var productSelectNode = /*#__PURE__*/React.createElement(ProductSelect, {
@@ -407,11 +374,15 @@ export default function Menu(props) {
407
374
  },
408
375
  cartElementId: "#scan-order-v2-cart-btn"
409
376
  });
410
- if (isMobileView) {
411
- return /*#__PURE__*/React.createElement("div", {
412
- className: "pisell-scan-menu pisell-scan-menu-mobile"
413
- }, productSelectNode);
414
- }
377
+
378
+ // if (isMobileView) {
379
+ // return (
380
+ // <div className="pisell-scan-menu pisell-scan-menu-mobile" ref={scrollRef}>
381
+ // {productSelectNode}
382
+ // </div>
383
+ // );
384
+ // }
385
+
415
386
  return /*#__PURE__*/React.createElement("div", {
416
387
  className: "pisell-scan-menu"
417
388
  }, /*#__PURE__*/React.createElement(PisellScrollView, {
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import '../../../booking/components/voucher/index.less';
3
+ import '../../../appointmentBooking/components/Voucher/index.less';
4
+ /**
5
+ * VoucherCard -- 优惠券/Promotion 区块
6
+ * 嵌入购物车底部,提供券列表展示、勾选、扫码兑码、未登录引导等能力
7
+ */
8
+ export default function VoucherCard(): JSX.Element;