@pisell/private-materials 6.3.137 → 6.3.139

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 (455) 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/components/appointmentBooking/components/Form/index.d.ts +4 -0
  12. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  13. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  14. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  15. package/es/components/appointmentBooking/utils.d.ts +227 -0
  16. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
  17. package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  18. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  19. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  20. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  21. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  22. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  23. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  24. package/es/components/booking/components/footer/utils.d.ts +47 -0
  25. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  26. package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  27. package/es/components/booking/components/voucher/index.d.ts +3 -0
  28. package/es/components/booking/forms/single/index.d.ts +1 -0
  29. package/es/components/booking/forms/table/index.d.ts +1 -0
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  31. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  32. package/es/components/booking/info/date/index.d.ts +1 -0
  33. package/es/components/booking/info/notes/index.d.ts +1 -0
  34. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  35. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  36. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  37. package/es/components/booking/info/service/like/index.d.ts +1 -0
  38. package/es/components/booking/info/service2/utils.d.ts +248 -0
  39. package/es/components/booking/info2/index.d.ts +12 -0
  40. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  41. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  42. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  43. package/es/components/booking/locales.d.ts +1489 -0
  44. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  45. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  46. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  47. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  48. package/es/components/booking/model.d.ts +120 -0
  49. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  50. package/es/components/booking/utils.d.ts +2 -2
  51. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  52. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  53. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  54. package/es/components/eftpos/form/index.d.ts +1 -0
  55. package/es/components/eftpos/group/index.d.ts +1 -0
  56. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  57. package/es/components/eftpos/icon/device.d.ts +1 -0
  58. package/es/components/eftpos/pos.d.ts +1 -0
  59. package/es/components/eftpos/receipt/index.d.ts +1 -0
  60. package/es/components/eftposPay/amount.d.ts +21 -0
  61. package/es/components/eftposPay/app.d.ts +10 -0
  62. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  63. package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  64. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  65. package/es/components/eftposPay/component/fail/network.d.ts +9 -0
  66. package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
  67. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  68. package/es/components/eftposPay/component/manual/index.d.ts +9 -0
  69. package/es/components/eftposPay/component/signature/index.d.ts +9 -0
  70. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  71. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  72. package/es/components/eftposPay/device.d.ts +23 -0
  73. package/es/components/eftposPay/hooks.d.ts +2 -2
  74. package/es/components/eftposPay/index.d.ts +4 -0
  75. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  76. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  77. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  78. package/es/components/eftposPay/pay.d.ts +20 -0
  79. package/es/components/eftposPay/payo/config.d.ts +13 -0
  80. package/es/components/eftposPay/payo/hooks.d.ts +10 -0
  81. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  82. package/es/components/eftposPay/store/index.d.ts +5 -5
  83. package/es/components/eftposPay/tip.d.ts +10 -0
  84. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  85. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  86. package/es/components/eftposPay/utils/payLog.d.ts +81 -0
  87. package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
  88. package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
  89. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  97. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  98. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  99. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  100. package/es/components/kioskSkuDetail/locales.d.ts +48 -0
  101. package/es/components/login/index.d.ts +1 -0
  102. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  103. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  104. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  105. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  106. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  107. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  108. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  111. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  112. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  113. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  114. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  115. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  116. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  117. package/es/components/pay/toC/index.d.ts +3 -0
  118. package/es/components/pay/toC/locales.d.ts +631 -0
  119. package/es/components/pay/toC/payGroup.d.ts +59 -0
  120. package/es/components/pay/toC/serve.d.ts +87 -0
  121. package/es/components/pay/toC/utils.d.ts +65 -0
  122. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  123. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  124. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  125. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  126. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  127. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  128. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  129. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  130. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  131. package/es/components/ruleSetting/locales.d.ts +78 -0
  132. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  133. package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
  134. package/es/components/scanOrder/components/Cart/index.js +58 -24
  135. package/es/components/scanOrder/components/Cart/index.less +61 -8
  136. package/es/components/scanOrder/components/Check/index.js +232 -51
  137. package/es/components/scanOrder/components/Check/index.less +30 -0
  138. package/es/components/scanOrder/components/Content/index.js +358 -121
  139. package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
  140. package/es/components/scanOrder/components/Footer/index.js +4 -2
  141. package/es/components/scanOrder/components/Footer/index.less +16 -7
  142. package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  143. package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
  144. package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  145. package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  146. package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
  147. package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  148. package/es/components/scanOrder/context.js +104 -21
  149. package/es/components/scanOrder/locales.d.ts +55 -0
  150. package/es/components/scanOrder/locales.js +55 -0
  151. package/es/components/scanOrder/types.d.ts +23 -0
  152. package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
  153. package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
  154. package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
  155. package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
  156. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  157. package/es/components/schedules/calendar/index.d.ts +1 -0
  158. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  159. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  160. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  161. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  162. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  163. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  164. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  165. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  166. package/es/components/schedules/products/index.d.ts +1 -0
  167. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  168. package/es/components/schedules/products/list/index.d.ts +1 -0
  169. package/es/components/schedules/resources/index.d.ts +1 -0
  170. package/es/components/schedules/resources/list/index.d.ts +1 -0
  171. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  172. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  173. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  174. package/es/components/schedules/schedules/index.d.ts +1 -0
  175. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  176. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  177. package/es/components/shoppingCart/index.d.ts +1 -0
  178. package/es/components/systemSettings/registry/components/GroupModal.js +8 -1
  179. package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
  180. package/es/components/systemSettings/registry/index.js +3 -1
  181. package/es/components/systemSettings/registry/services.d.ts +2 -0
  182. package/es/components/systemSettings/registry/types.d.ts +3 -0
  183. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  184. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  185. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  186. package/es/components/ticketBooking/index.d.ts +7 -0
  187. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +130 -18
  188. package/es/components/venueBooking/context.js +38 -12
  189. package/es/components/venueBooking/hooks.d.ts +16 -3
  190. package/es/components/venueBooking/hooks.js +16 -4
  191. package/es/components/venueBooking/types.d.ts +19 -2
  192. package/es/hooks/usePaymentLogger.d.ts +1 -0
  193. package/es/index.d.ts +87 -0
  194. package/es/index.js +1 -1
  195. package/es/plus/clientName/index.d.ts +1 -0
  196. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  197. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  198. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  199. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  200. package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
  201. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  202. package/es/plus/pisellSalesProductCard/index.js +16 -1
  203. package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
  204. package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
  205. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  206. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  207. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  208. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  209. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  210. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  211. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  212. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  213. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  214. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  215. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  216. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  217. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  218. package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
  219. package/es/plus/skuOptionsSelection/types.d.ts +458 -0
  220. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  221. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  222. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  223. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  224. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  225. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  226. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  227. package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
  228. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  229. package/es/pro/NumericStepper/index.d.ts +19 -0
  230. package/es/pro/NumericStepper/index.js +37 -6
  231. package/es/pro/Selector/demo.d.ts +1 -0
  232. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  233. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  234. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  235. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  236. package/lib/components/appointmentBooking/utils.d.ts +227 -0
  237. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
  238. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  239. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  240. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  241. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  242. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  243. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  244. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  245. package/lib/components/booking/components/footer/utils.d.ts +47 -0
  246. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  247. package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  248. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  249. package/lib/components/booking/forms/single/index.d.ts +1 -0
  250. package/lib/components/booking/forms/table/index.d.ts +1 -0
  251. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  252. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  253. package/lib/components/booking/info/date/index.d.ts +1 -0
  254. package/lib/components/booking/info/notes/index.d.ts +1 -0
  255. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  256. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  257. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  258. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  259. package/lib/components/booking/info/service2/utils.d.ts +248 -0
  260. package/lib/components/booking/info2/index.d.ts +12 -0
  261. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  262. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  263. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  264. package/lib/components/booking/locales.d.ts +1489 -0
  265. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  266. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  267. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  268. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  269. package/lib/components/booking/model.d.ts +120 -0
  270. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  271. package/lib/components/booking/utils.d.ts +2 -2
  272. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  273. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  274. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  275. package/lib/components/eftpos/form/index.d.ts +1 -0
  276. package/lib/components/eftpos/group/index.d.ts +1 -0
  277. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  278. package/lib/components/eftpos/icon/device.d.ts +1 -0
  279. package/lib/components/eftpos/pos.d.ts +1 -0
  280. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  281. package/lib/components/eftposPay/amount.d.ts +21 -0
  282. package/lib/components/eftposPay/app.d.ts +10 -0
  283. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  284. package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  285. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  286. package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
  287. package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
  288. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  289. package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
  290. package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
  291. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  292. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  293. package/lib/components/eftposPay/device.d.ts +23 -0
  294. package/lib/components/eftposPay/hooks.d.ts +2 -2
  295. package/lib/components/eftposPay/index.d.ts +4 -0
  296. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  297. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  298. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  299. package/lib/components/eftposPay/pay.d.ts +20 -0
  300. package/lib/components/eftposPay/payo/config.d.ts +13 -0
  301. package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
  302. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  303. package/lib/components/eftposPay/store/index.d.ts +5 -5
  304. package/lib/components/eftposPay/tip.d.ts +10 -0
  305. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  306. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  307. package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
  308. package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
  309. package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
  310. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  311. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  312. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  313. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  314. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  315. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  316. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  317. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  318. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  319. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  320. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  321. package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
  322. package/lib/components/login/index.d.ts +1 -0
  323. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  324. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  325. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  326. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  327. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  328. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  329. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  330. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  331. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  332. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  333. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  334. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  335. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  336. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  337. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  338. package/lib/components/pay/toC/index.d.ts +3 -0
  339. package/lib/components/pay/toC/locales.d.ts +631 -0
  340. package/lib/components/pay/toC/payGroup.d.ts +59 -0
  341. package/lib/components/pay/toC/serve.d.ts +87 -0
  342. package/lib/components/pay/toC/utils.d.ts +65 -0
  343. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  344. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  345. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  346. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  347. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  348. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  349. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  350. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  351. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  352. package/lib/components/ruleSetting/locales.d.ts +78 -0
  353. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  354. package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
  355. package/lib/components/scanOrder/components/Cart/index.js +43 -9
  356. package/lib/components/scanOrder/components/Cart/index.less +61 -8
  357. package/lib/components/scanOrder/components/Check/index.js +97 -8
  358. package/lib/components/scanOrder/components/Check/index.less +30 -0
  359. package/lib/components/scanOrder/components/Content/index.js +215 -69
  360. package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
  361. package/lib/components/scanOrder/components/Footer/index.js +2 -2
  362. package/lib/components/scanOrder/components/Footer/index.less +16 -7
  363. package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  364. package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
  365. package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  366. package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  367. package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
  368. package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  369. package/lib/components/scanOrder/context.js +80 -12
  370. package/lib/components/scanOrder/locales.d.ts +55 -0
  371. package/lib/components/scanOrder/locales.js +55 -0
  372. package/lib/components/scanOrder/types.d.ts +23 -0
  373. package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
  374. package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
  375. package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
  376. package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
  377. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  378. package/lib/components/schedules/calendar/index.d.ts +1 -0
  379. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  380. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  381. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  382. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  383. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  384. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  385. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  386. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  387. package/lib/components/schedules/products/index.d.ts +1 -0
  388. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  389. package/lib/components/schedules/products/list/index.d.ts +1 -0
  390. package/lib/components/schedules/resources/index.d.ts +1 -0
  391. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  392. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  393. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  394. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  395. package/lib/components/schedules/schedules/index.d.ts +1 -0
  396. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  397. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  398. package/lib/components/shoppingCart/index.d.ts +1 -0
  399. package/lib/components/systemSettings/registry/components/GroupModal.js +71 -72
  400. package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
  401. package/lib/components/systemSettings/registry/index.js +3 -1
  402. package/lib/components/systemSettings/registry/services.d.ts +2 -0
  403. package/lib/components/systemSettings/registry/types.d.ts +3 -0
  404. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  405. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  406. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  407. package/lib/components/ticketBooking/index.d.ts +7 -0
  408. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +119 -19
  409. package/lib/components/venueBooking/context.js +16 -7
  410. package/lib/components/venueBooking/hooks.d.ts +16 -3
  411. package/lib/components/venueBooking/hooks.js +8 -2
  412. package/lib/components/venueBooking/types.d.ts +19 -2
  413. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  414. package/lib/index.d.ts +87 -0
  415. package/lib/index.js +2 -0
  416. package/lib/plus/clientName/index.d.ts +1 -0
  417. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  418. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  419. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  420. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  421. package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
  422. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  423. package/lib/plus/pisellSalesProductCard/index.js +10 -0
  424. package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
  425. package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
  426. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  427. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  428. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  429. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  430. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  431. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  432. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  433. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  434. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  435. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  436. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  437. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  438. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  439. package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
  440. package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
  441. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  442. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  443. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  444. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  445. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  446. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  447. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  448. package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
  449. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  450. package/lib/pro/NumericStepper/index.d.ts +19 -0
  451. package/lib/pro/NumericStepper/index.js +21 -4
  452. package/lib/pro/Selector/demo.d.ts +1 -0
  453. package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
  454. package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
  455. package/package.json +1 -1
@@ -35,14 +35,19 @@ module.exports = __toCommonJS(Check_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_utils = require("@pisell/utils");
38
+ var import_materials = require("@pisell/materials");
38
39
  var import_Cart = __toESM(require("../Cart"));
40
+ var import_FulfillmentMode = __toESM(require("../FulfillmentMode"));
41
+ var import_ManualPickupRefModal = __toESM(require("../ManualPickupRefModal"));
39
42
  var import_context = require("../../context");
40
43
  var import_hooks = require("../../hooks");
41
44
  var import_index = require("./index.less");
42
45
  function Check() {
43
- const { viewModel, runModuleAction, refreshViewModel } = (0, import_context.useScanOrderContext)();
46
+ const { viewModel, runModuleAction, refreshViewModel, tableName, entryMode, clearStepCache } = (0, import_context.useScanOrderContext)();
47
+ const isAdditionalOrder = entryMode === "additional_order";
44
48
  const [submitting, setSubmitting] = (0, import_react.useState)(false);
45
49
  const [note, setNote] = (0, import_react.useState)((viewModel == null ? void 0 : viewModel.note) || "");
50
+ const [pickupRefOpen, setPickupRefOpen] = (0, import_react.useState)(false);
46
51
  const utils = (0, import_hooks.contextUtils)();
47
52
  const [dineInConfig, setDineInConfig] = (0, import_react.useState)(null);
48
53
  const getConfig = async () => {
@@ -65,14 +70,24 @@ function Check() {
65
70
  import_utils.locales.getText("pisell2.text.add-order-notes") || import_utils.locales.getText("pisell2.scan.order.note.placeholder") || "请输入备注"
66
71
  );
67
72
  }, []);
68
- const handleSubmit = async () => {
69
- var _a, _b, _c, _d;
70
- if (submitting) return;
73
+ const currentTableText = (0, import_react.useMemo)(
74
+ () => String(
75
+ import_utils.locales.getText("pisell2.scan.order.current.table") || "Current table"
76
+ ),
77
+ []
78
+ );
79
+ const productsTitle = (0, import_react.useMemo)(
80
+ () => String(import_utils.locales.getText("pisell2.scan.order.products.title") || "Products"),
81
+ []
82
+ );
83
+ const doSubmit = async () => {
84
+ var _a, _b, _c, _d, _e, _f, _g;
71
85
  try {
72
86
  setSubmitting(true);
73
87
  await runModuleAction("updateTempOrderNote", note);
74
88
  const res = await runModuleAction("submitScanOrder");
75
89
  console.log("submitScanOrder >>>>> ", res);
90
+ clearStepCache();
76
91
  if (dineInConfig == null ? void 0 : dineInConfig["workflow.require_payment_on_submit"]) {
77
92
  utils.action({
78
93
  type: "pisell1.payment",
@@ -80,13 +95,30 @@ function Check() {
80
95
  order_id: (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.order_id,
81
96
  total_amount: (_b = viewModel == null ? void 0 : viewModel.summary) == null ? void 0 : _b.total_amount
82
97
  },
83
- callback: (e) => {
98
+ callback: async (_e2) => {
99
+ try {
100
+ await runModuleAction("restoreOrder");
101
+ } catch (error) {
102
+ console.warn("[scanOrder] restoreOrder after payment failed", error);
103
+ }
84
104
  }
85
105
  });
86
106
  } else {
87
107
  if ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.order_id) {
108
+ try {
109
+ await runModuleAction("restoreOrder");
110
+ } catch (error) {
111
+ console.warn("[scanOrder] restoreOrder before redirect failed", error);
112
+ }
88
113
  const link = `/order/details?id=${(_d = res == null ? void 0 : res.data) == null ? void 0 : _d.order_id}`;
89
- location.replace(link);
114
+ const app = (_e = utils == null ? void 0 : utils.getApp) == null ? void 0 : _e.call(utils);
115
+ if ((_f = app == null ? void 0 : app.history) == null ? void 0 : _f.replace) {
116
+ app.history.replace(link);
117
+ } else if ((_g = app == null ? void 0 : app.history) == null ? void 0 : _g.push) {
118
+ app.history.push(link);
119
+ } else {
120
+ location.replace(link);
121
+ }
90
122
  }
91
123
  }
92
124
  await refreshViewModel();
@@ -97,6 +129,55 @@ function Check() {
97
129
  setSubmitting(false);
98
130
  }
99
131
  };
132
+ const handleSubmit = async () => {
133
+ if (submitting) return;
134
+ const cartItems = (viewModel == null ? void 0 : viewModel.cartItems) || [];
135
+ if (cartItems.length === 0) {
136
+ (0, import_materials.PisellToast)({
137
+ content: String(
138
+ import_utils.locales.getText("pisell2.scan.order.products.empty.tip") || "Please select products"
139
+ ),
140
+ duration: 2
141
+ });
142
+ return;
143
+ }
144
+ if (isAdditionalOrder) {
145
+ await doSubmit();
146
+ return;
147
+ }
148
+ try {
149
+ setSubmitting(true);
150
+ const manualPickup = await runModuleAction("checkManualPickupRef");
151
+ if (manualPickup == null ? void 0 : manualPickup.enabled) {
152
+ setPickupRefOpen(true);
153
+ setSubmitting(false);
154
+ return;
155
+ }
156
+ } catch (error) {
157
+ console.error("[scanOrder] checkManualPickupRef failed", error);
158
+ import_antd.message.error((error == null ? void 0 : error.message) || "Submit order failed");
159
+ setSubmitting(false);
160
+ return;
161
+ }
162
+ await doSubmit();
163
+ };
164
+ const handlePickupRefConfirm = async (value) => {
165
+ try {
166
+ setSubmitting(true);
167
+ await runModuleAction("setPickupRef", value);
168
+ } catch (error) {
169
+ console.error("[scanOrder] setPickupRef failed", error);
170
+ import_antd.message.error((error == null ? void 0 : error.message) || "Submit order failed");
171
+ setSubmitting(false);
172
+ return;
173
+ }
174
+ setPickupRefOpen(false);
175
+ await doSubmit();
176
+ };
177
+ const handlePickupRefCancel = () => {
178
+ if (submitting) return;
179
+ setPickupRefOpen(false);
180
+ };
100
181
  const noteContent = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-note" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-note-title" }, noteTitle), /* @__PURE__ */ import_react.default.createElement(
101
182
  import_antd.Input.TextArea,
102
183
  {
@@ -110,7 +191,7 @@ function Check() {
110
191
  }
111
192
  }
112
193
  ));
113
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check" }, /* @__PURE__ */ import_react.default.createElement(
194
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check" }, tableName ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-current-table" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-check-current-table-label" }, currentTableText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-check-current-table-value" }, tableName)) : null, !isAdditionalOrder ? /* @__PURE__ */ import_react.default.createElement(import_FulfillmentMode.default, null) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-products-title" }, productsTitle), /* @__PURE__ */ import_react.default.createElement(
114
195
  import_Cart.default,
115
196
  {
116
197
  embedded: true,
@@ -121,7 +202,15 @@ function Check() {
121
202
  items: (viewModel == null ? void 0 : viewModel.cartItems) || [],
122
203
  summary: (viewModel == null ? void 0 : viewModel.summary) || {},
123
204
  confirmLoading: submitting,
124
- extraContent: isShowOrderNote ? noteContent : void 0
205
+ extraContent: !isAdditionalOrder && isShowOrderNote ? noteContent : void 0
206
+ }
207
+ ), /* @__PURE__ */ import_react.default.createElement(
208
+ import_ManualPickupRefModal.default,
209
+ {
210
+ open: pickupRefOpen,
211
+ confirmLoading: submitting,
212
+ onCancel: handlePickupRefCancel,
213
+ onConfirm: handlePickupRefConfirm
125
214
  }
126
215
  ));
127
216
  }
@@ -3,6 +3,36 @@
3
3
  flex-direction: column;
4
4
  }
5
5
 
6
+ .pisell-scan-order-check-current-table {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ gap: 12px;
11
+ padding: 12px 16px;
12
+ background: #fff;
13
+ border-radius: 12px;
14
+
15
+ .pisell-scan-order-check-current-table-label {
16
+ color: #101828;
17
+ font-size: 16px;
18
+ font-weight: 500;
19
+ }
20
+
21
+ .pisell-scan-order-check-current-table-value {
22
+ color: #344054;
23
+ font-size: 14px;
24
+ font-weight: 500;
25
+ }
26
+ }
27
+
28
+ .pisell-scan-order-check-products-title {
29
+ padding: 0 16px;
30
+ margin-bottom: 8px;
31
+ color: #101828;
32
+ font-size: 16px;
33
+ font-weight: 500;
34
+ }
35
+
6
36
  .pisell-scan-order-check-note {
7
37
  padding: 0;
8
38
  margin-top: 30px;
@@ -48,8 +48,30 @@ var import_Check = __toESM(require("../Check"));
48
48
  var import_PolicyModal = __toESM(require("../../../appointmentBooking/deposit/components/PolicyModal"));
49
49
  var import_useComponents = __toESM(require("../../../../hooks/useComponents"));
50
50
  var import_index = require("./index.less");
51
+ function extractEntryPaxNumber(payload) {
52
+ if (payload == null) return null;
53
+ if (typeof payload === "number" && Number.isFinite(payload) && payload >= 1) {
54
+ return Math.floor(payload);
55
+ }
56
+ if (typeof payload === "string") {
57
+ const n = Number(payload);
58
+ if (Number.isFinite(n) && n >= 1) return Math.floor(n);
59
+ }
60
+ if (typeof payload === "object") {
61
+ const o = payload;
62
+ for (const k of ["entryPaxNumber", "pax", "num", "count", "value"]) {
63
+ const v = o[k];
64
+ if (typeof v === "number" && Number.isFinite(v) && v >= 1) return Math.floor(v);
65
+ if (typeof v === "string") {
66
+ const n = Number(v);
67
+ if (Number.isFinite(n) && n >= 1) return Math.floor(n);
68
+ }
69
+ }
70
+ }
71
+ return null;
72
+ }
51
73
  function ReadyState() {
52
- var _a, _b, _c, _d;
74
+ var _a, _b, _c, _d, _e;
53
75
  const {
54
76
  currentStep,
55
77
  prevStep,
@@ -60,7 +82,16 @@ function ReadyState() {
60
82
  refreshViewModel,
61
83
  footerActionText,
62
84
  setFooterActionText,
63
- cartValidation
85
+ cartValidation,
86
+ setTableName,
87
+ entryMode,
88
+ setEntryMode,
89
+ submitDisabledTips,
90
+ setSubmitDisabledTips,
91
+ scanOrderModule,
92
+ isCacheHydrated,
93
+ markGate,
94
+ isGatePassed
64
95
  } = (0, import_context.useScanOrderContext)();
65
96
  const { isLogin, openLoginModal } = (0, import_hooks.useScanOrderLogin)();
66
97
  const utils = (0, import_hooks.contextUtils)();
@@ -78,6 +109,21 @@ function ReadyState() {
78
109
  content: null
79
110
  });
80
111
  const [pendingFormPayload, setPendingFormPayload] = (0, import_react.useState)(null);
112
+ const requestEntryPaxRef = (0, import_react.useRef)(0);
113
+ const requestPaxMinRef = (0, import_react.useRef)(1);
114
+ const requestPaxMaxRef = (0, import_react.useRef)(1);
115
+ const tableFormRecordRef = (0, import_react.useRef)(null);
116
+ const getLocalizedName = (nameMap) => {
117
+ if (!nameMap) return "";
118
+ const currentLocale = import_utils.locales.getLocale();
119
+ return nameMap[currentLocale] || nameMap.original || nameMap.en || "";
120
+ };
121
+ const resolveLocalizedText = (value) => {
122
+ if (value == null) return "";
123
+ if (typeof value === "string") return value;
124
+ if (typeof value !== "object") return String(value);
125
+ return getLocalizedName(value);
126
+ };
81
127
  const normalizeFormPayload = (formPayload, partyroomBookingPayload) => {
82
128
  const sourcePayload = formPayload ?? partyroomBookingPayload;
83
129
  if (!sourcePayload) return null;
@@ -93,9 +139,35 @@ function ReadyState() {
93
139
  setting: sourceDetail == null ? void 0 : sourceDetail.setting
94
140
  };
95
141
  };
142
+ const app = (_a = utils == null ? void 0 : utils.getApp) == null ? void 0 : _a.call(utils);
96
143
  const handleOrderDetail = (order_id) => {
144
+ var _a2, _b2;
97
145
  const link = `/order/details?id=${order_id}`;
98
- location.replace(link);
146
+ if ((_a2 = app == null ? void 0 : app.history) == null ? void 0 : _a2.replace) {
147
+ app.history.replace(link);
148
+ } else if ((_b2 = app == null ? void 0 : app.history) == null ? void 0 : _b2.push) {
149
+ app.history.push(link);
150
+ } else {
151
+ location.replace(link);
152
+ }
153
+ };
154
+ const handleBack = () => {
155
+ var _a2, _b2;
156
+ if (currentStep !== "product") {
157
+ prevStep();
158
+ return;
159
+ }
160
+ if (entryMode === "additional_order" && (entryContext == null ? void 0 : entryContext.order_id)) {
161
+ handleOrderDetail(entryContext.order_id);
162
+ return;
163
+ }
164
+ if ((_a2 = app == null ? void 0 : app.history) == null ? void 0 : _a2.replace) {
165
+ app.history.replace("/");
166
+ } else if ((_b2 = app == null ? void 0 : app.history) == null ? void 0 : _b2.push) {
167
+ app.history.push("/");
168
+ } else {
169
+ location.replace("/");
170
+ }
99
171
  };
100
172
  const enterProductStep = async () => {
101
173
  try {
@@ -104,9 +176,48 @@ function ReadyState() {
104
176
  } catch (error) {
105
177
  console.warn("[scanOrder] applyItemRulePrefill failed", error);
106
178
  } finally {
107
- goToStep("product");
179
+ if (currentStep !== "check") goToStep("product");
108
180
  }
109
181
  };
182
+ const runEntryPaxGateThenEnterProduct = async () => {
183
+ if (requestEntryPaxRef.current !== 1) {
184
+ await enterProductStep();
185
+ return;
186
+ }
187
+ if (isGatePassed("paxEntered")) {
188
+ await enterProductStep();
189
+ return;
190
+ }
191
+ const pax = await new Promise((resolve) => {
192
+ var _a2;
193
+ if (typeof (utils == null ? void 0 : utils.action) !== "function") {
194
+ resolve(null);
195
+ return;
196
+ }
197
+ utils.action({
198
+ type: "pisell1.handlePaxModal",
199
+ data: {
200
+ tableName: getLocalizedName((_a2 = tableFormRecordRef.current) == null ? void 0 : _a2.name),
201
+ requestPaxMin: requestPaxMinRef.current,
202
+ requestPaxMax: requestPaxMaxRef.current
203
+ },
204
+ callback: (result) => {
205
+ resolve(extractEntryPaxNumber(result));
206
+ }
207
+ });
208
+ });
209
+ if (pax == null) {
210
+ location.replace("/");
211
+ return;
212
+ }
213
+ try {
214
+ await runModuleAction("setEntryPaxNumber", pax);
215
+ markGate("paxEntered");
216
+ } catch (error) {
217
+ console.warn("[scanOrder] setOtherParams failed", error);
218
+ }
219
+ await enterProductStep();
220
+ };
110
221
  const closePolicyAndBack = () => {
111
222
  setPolicyModal({
112
223
  open: false,
@@ -139,7 +250,8 @@ function ReadyState() {
139
250
  content: null
140
251
  });
141
252
  setPendingFormPayload(null);
142
- void enterProductStep();
253
+ markGate("formSubmitted");
254
+ void runEntryPaxGateThenEnterProduct();
143
255
  };
144
256
  const handleFormConfirm = () => {
145
257
  var _a2, _b2;
@@ -152,11 +264,12 @@ function ReadyState() {
152
264
  open: false,
153
265
  content: null
154
266
  });
155
- if (pendingFormPayload) {
267
+ markGate("policyAccepted");
268
+ if (pendingFormPayload && !isGatePassed("formSubmitted")) {
156
269
  openFormModal(pendingFormPayload);
157
270
  return;
158
271
  }
159
- void enterProductStep();
272
+ void runEntryPaxGateThenEnterProduct();
160
273
  };
161
274
  const depositProtocolRequest = (id) => {
162
275
  var _a2, _b2;
@@ -165,45 +278,59 @@ function ReadyState() {
165
278
  (0, import_react.useEffect)(() => {
166
279
  const checkResourceAvailable = async () => {
167
280
  const hasOrderId = !!(entryContext == null ? void 0 : entryContext.order_id);
168
- const { mode, order_id, errorTips, policy, form, partyroom_booking } = await runModuleAction(
281
+ const {
282
+ mode,
283
+ order_id,
284
+ errorTips,
285
+ policy,
286
+ form,
287
+ partyroom_booking,
288
+ requestEntryPax,
289
+ requestPaxMin,
290
+ requestPaxMax,
291
+ table_form_record
292
+ } = await runModuleAction(
169
293
  "checkResourceAvailable",
170
294
  entryContext == null ? void 0 : entryContext.resource_id,
171
295
  hasOrderId
172
296
  );
297
+ requestEntryPaxRef.current = Number(requestEntryPax) === 1 ? 1 : 0;
298
+ requestPaxMinRef.current = Number(requestPaxMin) || 1;
299
+ requestPaxMaxRef.current = Number(requestPaxMax) || 1;
300
+ tableFormRecordRef.current = table_form_record || {};
301
+ setTableName(getLocalizedName(table_form_record == null ? void 0 : table_form_record.name));
173
302
  const normalizedFormPayload = normalizeFormPayload(form, partyroom_booking);
174
- if (mode === "idle" || mode === "additional_order" || mode === "additional_order_with_code") {
303
+ const isAdditionalOrder = mode === "additional_order" || mode === "additional_order_with_code";
304
+ setEntryMode(isAdditionalOrder ? "additional_order" : "default");
305
+ if (mode === "idle") {
175
306
  const normalizedPolicyPayload = typeof policy === "object" && policy !== null ? policy : { id: policy };
176
- if (mode === "idle") {
177
- if (normalizedPolicyPayload == null ? void 0 : normalizedPolicyPayload.id) {
178
- setPendingFormPayload(normalizedFormPayload);
179
- setPolicyModal({
180
- open: true,
181
- content: normalizedPolicyPayload
182
- });
183
- return;
184
- }
185
- if (normalizedFormPayload) {
186
- openFormModal(normalizedFormPayload);
187
- return;
188
- }
189
- }
190
- await enterProductStep();
191
- } else if (mode === "resource_busy") {
192
- if (!isLogin) {
193
- openLoginModal({
194
- callback: (status) => {
195
- if (status === "success") {
196
- handleOrderDetail(order_id);
197
- }
198
- }
307
+ if ((normalizedPolicyPayload == null ? void 0 : normalizedPolicyPayload.id) && !isGatePassed("policyAccepted")) {
308
+ setPendingFormPayload(normalizedFormPayload);
309
+ setPolicyModal({
310
+ open: true,
311
+ content: normalizedPolicyPayload
199
312
  });
313
+ return;
314
+ }
315
+ if (normalizedFormPayload && !isGatePassed("formSubmitted")) {
316
+ openFormModal(normalizedFormPayload);
317
+ return;
318
+ }
319
+ await runEntryPaxGateThenEnterProduct();
320
+ } else if (isAdditionalOrder) {
321
+ if (hasOrderId) {
322
+ await enterProductStep();
200
323
  } else {
201
324
  handleOrderDetail(order_id);
202
325
  }
326
+ } else if (mode === "submit_disabled") {
327
+ const tips = resolveLocalizedText(errorTips) || String(import_utils.locales.getText("pisell2.scan.order.submit.disabled.default") || "");
328
+ setSubmitDisabledTips(tips);
329
+ await enterProductStep();
203
330
  } else {
204
- let content = errorTips || "";
331
+ let content = resolveLocalizedText(errorTips);
205
332
  if (!content) {
206
- if (mode === "resource_block") {
333
+ if (mode === "resource_busy") {
207
334
  content = String(
208
335
  import_utils.locales.getText("pisell2.scan.order.resource.status.exception") || ""
209
336
  );
@@ -224,8 +351,9 @@ function ReadyState() {
224
351
  });
225
352
  }
226
353
  };
354
+ if (!isCacheHydrated) return;
227
355
  checkResourceAvailable();
228
- }, []);
356
+ }, [isCacheHydrated]);
229
357
  (0, import_react.useEffect)(() => {
230
358
  window.scrollTo({
231
359
  top: 0,
@@ -251,43 +379,59 @@ function ReadyState() {
251
379
  check: /* @__PURE__ */ import_react.default.createElement(import_Check.default, null),
252
380
  error: /* @__PURE__ */ import_react.default.createElement(import_ErrorState.default, { message: import_utils.locales.getText("pisell2.scan.order.store.status.exception") })
253
381
  };
254
- const getFirstFailedProductId = () => {
382
+ const getFirstFailedProductIds = () => {
255
383
  const firstFailure = Array.isArray(cartValidation == null ? void 0 : cartValidation.failures) ? cartValidation.failures[0] : null;
256
- const firstFailedTarget = Array.isArray(firstFailure == null ? void 0 : firstFailure.targets) ? firstFailure.targets[0] : null;
257
- const firstFailedProductId = Number(firstFailedTarget == null ? void 0 : firstFailedTarget.product_id);
258
- if (!Number.isFinite(firstFailedProductId) || firstFailedProductId <= 0) {
259
- return null;
384
+ const targets = Array.isArray(firstFailure == null ? void 0 : firstFailure.targets) ? firstFailure.targets : [];
385
+ const ids = [];
386
+ const seen = /* @__PURE__ */ new Set();
387
+ for (const target of targets) {
388
+ const id = Number(target == null ? void 0 : target.product_id);
389
+ if (Number.isFinite(id) && id > 0 && !seen.has(id)) {
390
+ seen.add(id);
391
+ ids.push(id);
392
+ }
260
393
  }
261
- return firstFailedProductId;
394
+ return ids;
262
395
  };
263
- const scrollAndHighlightProductById = (productId) => {
264
- const failedProductElement = document.querySelector(
265
- `[data-product-id="${String(productId)}"]`
266
- );
267
- if (!failedProductElement) return false;
268
- failedProductElement.classList.remove("highlight-product-item");
269
- failedProductElement.scrollIntoView({
270
- behavior: "smooth",
271
- block: "center"
272
- });
273
- failedProductElement.classList.add("highlight-product-item");
274
- setTimeout(() => {
396
+ const scrollAndHighlightProductsByIds = (productIds) => {
397
+ if (!(productIds == null ? void 0 : productIds.length)) return false;
398
+ let scrolled = false;
399
+ let highlighted = false;
400
+ for (const productId of productIds) {
401
+ const failedProductElement = document.querySelector(
402
+ `[data-product-id="${String(productId)}"]`
403
+ );
404
+ if (!failedProductElement) continue;
275
405
  failedProductElement.classList.remove("highlight-product-item");
276
- }, 3e3);
277
- return true;
406
+ if (!scrolled) {
407
+ failedProductElement.scrollIntoView({
408
+ behavior: "smooth",
409
+ block: "center"
410
+ });
411
+ scrolled = true;
412
+ }
413
+ void failedProductElement.offsetWidth;
414
+ failedProductElement.classList.add("highlight-product-item");
415
+ setTimeout(() => {
416
+ failedProductElement.classList.remove("highlight-product-item");
417
+ }, 3e3);
418
+ highlighted = true;
419
+ }
420
+ return highlighted;
278
421
  };
279
422
  const gotoCheckOrder = async () => {
423
+ if (submitDisabledTips) {
424
+ import_antd.message.warning(submitDisabledTips, 2);
425
+ return;
426
+ }
280
427
  const firstFailure = Array.isArray(cartValidation == null ? void 0 : cartValidation.failures) ? cartValidation.failures[0] : null;
281
428
  if ((cartValidation == null ? void 0 : cartValidation.passed) === false) {
282
- const firstFailedProductId = getFirstFailedProductId();
283
- if (firstFailedProductId) {
284
- scrollAndHighlightProductById(firstFailedProductId);
429
+ const failedProductIds = getFirstFailedProductIds();
430
+ if (failedProductIds.length) {
431
+ scrollAndHighlightProductsByIds(failedProductIds);
285
432
  }
286
433
  const failureTips = String((firstFailure == null ? void 0 : firstFailure.validationMessage) || "").trim();
287
- (0, import_materials.PisellToast)({
288
- content: failureTips,
289
- duration: 2
290
- });
434
+ import_antd.message.warning(failureTips, 2);
291
435
  return;
292
436
  }
293
437
  const otherParams = await runModuleAction("getOtherParams");
@@ -326,7 +470,7 @@ function ReadyState() {
326
470
  if (isMobileView) return false;
327
471
  return currentStep === "product";
328
472
  }, [currentStep, isMobileView]);
329
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Header.default, { currentStep, onBack: prevStep }), /* @__PURE__ */ import_react.default.createElement(
473
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Header.default, { currentStep, onBack: handleBack }), /* @__PURE__ */ import_react.default.createElement(
330
474
  "div",
331
475
  {
332
476
  className: `pisell-scan-order-content-wrap ${isMobileView ? "pisell-scan-order-content-mobile-wrap" : ""}`,
@@ -342,7 +486,8 @@ function ReadyState() {
342
486
  },
343
487
  onNext: gotoCheckOrder,
344
488
  items: (viewModel == null ? void 0 : viewModel.cartItems) || [],
345
- summary: (viewModel == null ? void 0 : viewModel.summary) || {}
489
+ summary: (viewModel == null ? void 0 : viewModel.summary) || {},
490
+ disabled: !!submitDisabledTips
346
491
  }
347
492
  )) : null
348
493
  ), isShowFooter ? /* @__PURE__ */ import_react.default.createElement(
@@ -351,7 +496,8 @@ function ReadyState() {
351
496
  cartItems: (viewModel == null ? void 0 : viewModel.cartItems) || [],
352
497
  summary: (viewModel == null ? void 0 : viewModel.summary) || {},
353
498
  actionText: footerActionText,
354
- onAction: () => gotoCheckOrder()
499
+ onAction: () => gotoCheckOrder(),
500
+ disabled: !!submitDisabledTips
355
501
  }
356
502
  ) : null, policyModal.open ? /* @__PURE__ */ import_react.default.createElement(
357
503
  import_PolicyModal.default,
@@ -369,7 +515,7 @@ function ReadyState() {
369
515
  open: formModal.open,
370
516
  platform: isMobileView ? "h5" : "pc",
371
517
  onCancel: closeFormModalAndBack,
372
- title: ((_a = formModal.content) == null ? void 0 : _a.title) || import_utils.locales.getText("pisell2.appointment.fill-form") || "填写信息",
518
+ title: ((_b = formModal.content) == null ? void 0 : _b.title) || import_utils.locales.getText("pisell2.appointment.fill-form") || "填写信息",
373
519
  mobileModalHeight: "90vh",
374
520
  width: isMobileView ? "100%" : 900,
375
521
  className: "pisell-scan-order-form-modal",
@@ -388,10 +534,10 @@ function ReadyState() {
388
534
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-form-modal-body" }, FormCard ? /* @__PURE__ */ import_react.default.createElement(
389
535
  FormCard,
390
536
  {
391
- id: ((_b = formModal.content) == null ? void 0 : _b.id) || 0,
537
+ id: ((_c = formModal.content) == null ? void 0 : _c.id) || 0,
392
538
  ref: formModalRef,
393
539
  isGetLastData: false,
394
- setting: ((_c = formModal.content) == null ? void 0 : _c.setting) || { isHidden: 1 },
540
+ setting: ((_d = formModal.content) == null ? void 0 : _d.setting) || { isHidden: 1 },
395
541
  formWrapStyle: { padding: "16px" },
396
542
  isV2API: true,
397
543
  isShowSkeleton: true,
@@ -403,7 +549,7 @@ function ReadyState() {
403
549
  },
404
550
  onFormValueChange: () => {
405
551
  },
406
- defaultValues: ((_d = formModal.content) == null ? void 0 : _d.defaultValues) || {},
552
+ defaultValues: ((_e = formModal.content) == null ? void 0 : _e.defaultValues) || {},
407
553
  isClearData: false
408
554
  }
409
555
  ) : null)
@@ -5,6 +5,8 @@ interface FooterProps {
5
5
  summary: Record<string, any>;
6
6
  actionText: string;
7
7
  onAction: () => void;
8
+ /** 视觉禁用:按钮仍会触发 onAction,由父级自行拦截(用于弹 toast 等反馈) */
9
+ disabled?: boolean;
8
10
  }
9
11
  export default function Footer(props: FooterProps): JSX.Element;
10
12
  export {};
@@ -39,7 +39,7 @@ var import_Cart = __toESM(require("../Cart"));
39
39
  var import_shopping_cart = __toESM(require("../../../appointmentBooking/assets/shopping-cart.svg"));
40
40
  var import_index = require("./index.less");
41
41
  function Footer(props) {
42
- const { cartItems, summary, actionText, onAction } = props;
42
+ const { cartItems, summary, actionText, onAction, disabled = false } = props;
43
43
  const [cartOpen, setCartOpen] = (0, import_react.useState)(false);
44
44
  const totalAmount = (0, import_react.useMemo)(() => {
45
45
  const rawAmount = (summary == null ? void 0 : summary.total_amount) ?? (summary == null ? void 0 : summary.expect_amount) ?? (summary == null ? void 0 : summary.amount) ?? (summary == null ? void 0 : summary.total) ?? (summary == null ? void 0 : summary.totalAmount) ?? (summary == null ? void 0 : summary.payable_amount) ?? 0;
@@ -60,7 +60,7 @@ function Footer(props) {
60
60
  {
61
61
  type: "primary",
62
62
  size: "large",
63
- className: "pisell-scan-order-footer-btn",
63
+ className: `pisell-scan-order-footer-btn${disabled ? " pisell-scan-order-footer-btn-disabled" : ""}`,
64
64
  onClick: onAction
65
65
  },
66
66
  actionText