@pisell/private-materials 6.7.4 → 6.7.5

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 (536) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
  14. package/es/components/booking/addons/index.js +25 -17
  15. package/es/components/booking/addons/model.d.ts +1 -10
  16. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  17. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  19. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  20. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  21. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  22. package/es/components/booking/components/footer/amount.js +529 -79
  23. package/es/components/booking/components/footer/index.js +77 -56
  24. package/es/components/booking/components/footer/utils.d.ts +19 -0
  25. package/es/components/booking/components/footer/utils.js +151 -52
  26. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  27. package/es/components/booking/components/voucher/index.js +20 -6
  28. package/es/components/booking/forms/model.d.ts +1 -10
  29. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  30. package/es/components/booking/forms/single/index.d.ts +1 -0
  31. package/es/components/booking/forms/table/index.d.ts +1 -0
  32. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  33. package/es/components/booking/info/date/index.d.ts +1 -0
  34. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  35. package/es/components/booking/info/model.d.ts +1 -10
  36. package/es/components/booking/info/notes/index.d.ts +1 -0
  37. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  38. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  39. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  40. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  41. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  42. package/es/components/booking/info/service2/utils.js +1 -0
  43. package/es/components/booking/info2/cartClientCard/index.js +30 -6
  44. package/es/components/booking/info2/index.js +1 -1
  45. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  46. package/es/components/booking/info2/service/addService/index.js +2 -3
  47. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  48. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  49. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  50. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  51. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  52. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  53. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  54. package/es/components/booking/model.d.ts +1 -9
  55. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  56. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  57. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  58. package/es/components/booking/notes/model.d.ts +1 -10
  59. package/es/components/booking/payments/model.d.ts +1 -10
  60. package/es/components/booking/utils.js +16 -3
  61. package/es/components/checkout/PaymentModal.d.ts +7 -5
  62. package/es/components/checkout/PaymentModal.js +257 -213
  63. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  64. package/es/components/checkout/components/AdditionalModule/index.js +52 -12
  65. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  66. package/es/components/checkout/components/AmountSummary/index.less +5 -6
  67. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  68. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  69. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  70. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  71. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  72. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  73. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  74. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  75. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  76. package/es/components/checkout/index.less +1 -1
  77. package/es/components/checkout/locales.js +6 -0
  78. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  79. package/es/components/eftpos/index.d.ts +1 -0
  80. package/es/components/eftpos/pos.d.ts +1 -0
  81. package/es/components/eftposPay/amount.d.ts +1 -0
  82. package/es/components/eftposPay/app.d.ts +1 -0
  83. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  84. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  85. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  86. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  87. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  88. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  89. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  90. package/es/components/eftposPay/pay.d.ts +1 -0
  91. package/es/components/eftposPay/payo/config.js +70 -32
  92. package/es/components/eftposPay/payo/payment.js +579 -0
  93. package/es/components/eftposPay/store/index.d.ts +1 -1
  94. package/es/components/eftposPay/tip.d.ts +1 -0
  95. package/es/components/eftposPay/tyro/index.js +12 -0
  96. package/es/components/eftposPay/utils/log/index.js +371 -0
  97. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  98. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  99. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  103. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  104. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  105. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  106. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  107. package/es/components/index.js +2 -1
  108. package/es/components/login/index.d.ts +1 -0
  109. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  110. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  111. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  112. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  113. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  114. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  115. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  116. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  117. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  118. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  119. package/es/components/pay/toC/index.js +7 -4
  120. package/es/components/pay/toC/locales.js +6 -3
  121. package/es/components/pay/toC/model.d.ts +1 -9
  122. package/es/components/pay/toC/status.js +3 -0
  123. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  124. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  125. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  126. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  127. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  128. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  129. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  130. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  131. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  132. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  133. package/es/components/schedules/calendar/index.d.ts +1 -0
  134. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  135. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  136. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  137. package/es/components/schedules/model.d.ts +1 -9
  138. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  139. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  140. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  141. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  142. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  143. package/es/components/schedules/products/index.d.ts +1 -0
  144. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  145. package/es/components/schedules/products/list/index.d.ts +1 -0
  146. package/es/components/schedules/resources/index.d.ts +1 -0
  147. package/es/components/schedules/resources/list/index.d.ts +1 -0
  148. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  149. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  150. package/es/components/schedules/schedules/index.d.ts +1 -0
  151. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  152. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  153. package/es/components/shoppingCart/index.d.ts +1 -0
  154. package/es/components/subTotal/index.js +1 -1
  155. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  156. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  157. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  158. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  159. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  160. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  161. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  162. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  163. package/es/components/systemSettings/registry/components/index.js +4 -0
  164. package/es/components/systemSettings/registry/index.d.ts +5 -0
  165. package/es/components/systemSettings/registry/index.js +1059 -0
  166. package/es/components/systemSettings/registry/index.less +410 -0
  167. package/es/components/systemSettings/registry/locales.js +300 -0
  168. package/es/components/systemSettings/registry/services.js +472 -0
  169. package/es/components/systemSettings/registry/types.js +1 -0
  170. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  171. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  172. package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
  173. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  174. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  175. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  176. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  177. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
  178. package/es/components/ticketBooking/locales.js +9 -3
  179. package/es/components/ticketBooking/utils/index.js +36 -13
  180. package/es/components/wallet/Detail/index.js +34 -2
  181. package/es/components/wallet/Detail/index.less +11 -0
  182. package/es/components/wallet/Detail/locales.js +14 -2
  183. package/es/components/wallet/Detail/model.d.ts +1 -13
  184. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  185. package/es/components/wallet/PointCard/model.d.ts +1 -13
  186. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  187. package/es/components/wallet/Voucher/index.js +11 -10
  188. package/es/components/wallet/Voucher/model.d.ts +1 -13
  189. package/es/components/wallet/components/WalletCard.js +5 -1
  190. package/es/components/wallet/index.js +4 -2
  191. package/es/components/wallet/model.d.ts +1 -9
  192. package/es/components/wallet/utils.js +342 -0
  193. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  194. package/es/hooks/usePaymentLogger.d.ts +1 -0
  195. package/es/index.d.ts +4 -0
  196. package/es/index.js +4 -0
  197. package/es/plus/clientCard/locales.js +3 -3
  198. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  199. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  200. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  201. package/es/plus/clinetSearch/index.js +28 -30
  202. package/es/plus/clinetSearch/locales.js +7 -4
  203. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  204. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  205. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  206. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  207. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  208. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  209. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  210. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  211. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  212. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  213. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  214. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  215. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  216. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  217. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  218. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  219. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  220. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  221. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  222. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  223. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  224. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  225. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  226. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  227. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  228. package/es/plus/walletPassGallery/index.js +7 -3
  229. package/es/plus/walletPassGallery/serve.js +4 -2
  230. package/es/pro/Login2.0/index.less +15 -8
  231. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  232. package/es/pro/comprehensiveSearch/locales.js +1 -1
  233. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
  234. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  235. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  236. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  237. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  238. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  239. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  240. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  241. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  242. package/lib/components/booking/addons/index.js +15 -7
  243. package/lib/components/booking/addons/model.d.ts +1 -10
  244. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  245. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  246. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  247. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  248. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  249. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  250. package/lib/components/booking/components/footer/amount.js +276 -38
  251. package/lib/components/booking/components/footer/index.js +30 -11
  252. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  253. package/lib/components/booking/components/footer/utils.js +97 -21
  254. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  255. package/lib/components/booking/components/voucher/index.js +21 -7
  256. package/lib/components/booking/forms/model.d.ts +1 -10
  257. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  258. package/lib/components/booking/forms/single/index.d.ts +1 -0
  259. package/lib/components/booking/forms/table/index.d.ts +1 -0
  260. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  261. package/lib/components/booking/info/date/index.d.ts +1 -0
  262. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  263. package/lib/components/booking/info/model.d.ts +1 -10
  264. package/lib/components/booking/info/notes/index.d.ts +1 -0
  265. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  266. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  267. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  268. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  269. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  270. package/lib/components/booking/info/service2/utils.js +1 -0
  271. package/lib/components/booking/info2/cartClientCard/index.js +25 -5
  272. package/lib/components/booking/info2/index.js +7 -2
  273. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  274. package/lib/components/booking/info2/service/addService/index.js +1 -2
  275. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  276. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  277. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  278. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  279. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  280. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  281. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  282. package/lib/components/booking/model.d.ts +1 -9
  283. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  284. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  285. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  286. package/lib/components/booking/notes/model.d.ts +1 -10
  287. package/lib/components/booking/payments/model.d.ts +1 -10
  288. package/lib/components/booking/utils.js +11 -0
  289. package/lib/components/checkout/PaymentModal.d.ts +7 -5
  290. package/lib/components/checkout/PaymentModal.js +171 -135
  291. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  292. package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
  293. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  294. package/lib/components/checkout/components/AmountSummary/index.less +5 -6
  295. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  296. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  297. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  298. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  299. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  300. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  301. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  302. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  303. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  304. package/lib/components/checkout/index.less +1 -1
  305. package/lib/components/checkout/locales.js +6 -0
  306. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  307. package/lib/components/eftpos/index.d.ts +1 -0
  308. package/lib/components/eftpos/pos.d.ts +1 -0
  309. package/lib/components/eftposPay/amount.d.ts +1 -0
  310. package/lib/components/eftposPay/app.d.ts +1 -0
  311. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  312. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  313. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  314. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  315. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  316. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  317. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  318. package/lib/components/eftposPay/pay.d.ts +1 -0
  319. package/lib/components/eftposPay/payo/config.js +98 -73
  320. package/lib/components/eftposPay/payo/payment.js +357 -0
  321. package/lib/components/eftposPay/store/index.d.ts +1 -1
  322. package/lib/components/eftposPay/tip.d.ts +1 -0
  323. package/lib/components/eftposPay/tyro/index.js +12 -0
  324. package/lib/components/eftposPay/utils/log/index.js +294 -0
  325. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  326. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  327. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  328. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  329. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  330. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  331. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  332. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  333. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  334. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  335. package/lib/components/index.js +3 -0
  336. package/lib/components/login/index.d.ts +1 -0
  337. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  338. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  339. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  340. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  341. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  342. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  343. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  344. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  345. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  346. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  347. package/lib/components/pay/toC/index.js +4 -1
  348. package/lib/components/pay/toC/locales.js +6 -3
  349. package/lib/components/pay/toC/model.d.ts +1 -9
  350. package/lib/components/pay/toC/status.js +5 -0
  351. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  352. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  353. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  354. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  355. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  356. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  357. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  358. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  359. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  360. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  361. package/lib/components/schedules/calendar/index.d.ts +1 -0
  362. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  363. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  364. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  365. package/lib/components/schedules/model.d.ts +1 -9
  366. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  367. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  368. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  369. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  370. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  371. package/lib/components/schedules/products/index.d.ts +1 -0
  372. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  373. package/lib/components/schedules/products/list/index.d.ts +1 -0
  374. package/lib/components/schedules/resources/index.d.ts +1 -0
  375. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  376. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  377. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  378. package/lib/components/schedules/schedules/index.d.ts +1 -0
  379. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  380. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  381. package/lib/components/shoppingCart/index.d.ts +1 -0
  382. package/lib/components/subTotal/index.js +1 -1
  383. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  384. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  385. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  386. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  387. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  388. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  389. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  390. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  391. package/lib/components/systemSettings/registry/components/index.js +48 -0
  392. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  393. package/lib/components/systemSettings/registry/index.js +529 -0
  394. package/lib/components/systemSettings/registry/index.less +410 -0
  395. package/lib/components/systemSettings/registry/locales.js +324 -0
  396. package/lib/components/systemSettings/registry/services.js +290 -0
  397. package/lib/components/systemSettings/registry/types.js +17 -0
  398. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  399. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  400. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  401. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  402. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  403. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  404. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  405. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
  406. package/lib/components/ticketBooking/locales.js +9 -3
  407. package/lib/components/ticketBooking/utils/index.js +20 -6
  408. package/lib/components/wallet/Detail/index.js +31 -3
  409. package/lib/components/wallet/Detail/index.less +11 -0
  410. package/lib/components/wallet/Detail/locales.js +14 -2
  411. package/lib/components/wallet/Detail/model.d.ts +1 -13
  412. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  413. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  414. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  415. package/lib/components/wallet/Voucher/index.js +8 -8
  416. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  417. package/lib/components/wallet/components/WalletCard.js +4 -0
  418. package/lib/components/wallet/index.js +2 -2
  419. package/lib/components/wallet/model.d.ts +1 -9
  420. package/lib/components/wallet/utils.js +287 -0
  421. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  422. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  423. package/lib/index.d.ts +4 -0
  424. package/lib/index.js +12 -0
  425. package/lib/plus/clientCard/locales.js +3 -3
  426. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  427. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  428. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  429. package/lib/plus/clinetSearch/index.js +17 -8
  430. package/lib/plus/clinetSearch/locales.js +7 -4
  431. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  432. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  433. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  434. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  435. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  436. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  437. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  438. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  439. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  440. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  441. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  442. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  443. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  444. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  445. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  446. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  447. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  448. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  449. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  450. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  451. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  452. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  453. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  454. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  455. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  456. package/lib/plus/walletPassGallery/index.js +7 -3
  457. package/lib/plus/walletPassGallery/serve.js +3 -2
  458. package/lib/pro/Login2.0/index.less +15 -8
  459. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  460. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  461. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
  462. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  463. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  464. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  465. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  466. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  467. package/lowcode/settings-registry/meta.ts +29 -0
  468. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  469. package/package.json +4 -4
  470. package/es/components/booking/components/footer/amount.d.ts +0 -36
  471. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  472. package/es/components/booking/info/service2/utils.d.ts +0 -251
  473. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  474. package/es/components/booking/utils.d.ts +0 -173
  475. package/es/components/checkout/PaymentPlugin.d.ts +0 -2
  476. package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
  477. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
  478. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
  479. package/es/components/checkout/locales.d.ts +0 -507
  480. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
  481. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  482. package/es/components/eftposPay/payo/config.d.ts +0 -12
  483. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  484. package/es/components/index.d.ts +0 -23
  485. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
  486. package/es/components/pay/toC/locales.d.ts +0 -298
  487. package/es/components/pay/toC/status.d.ts +0 -12
  488. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  489. package/es/components/ticketBooking/locales.d.ts +0 -192
  490. package/es/components/ticketBooking/utils/index.d.ts +0 -90
  491. package/es/components/wallet/Detail/locales.d.ts +0 -147
  492. package/es/components/wallet/serve.d.ts +0 -143
  493. package/es/plus/clientCard/locales.d.ts +0 -18
  494. package/es/plus/clinetSearch/index.d.ts +0 -17
  495. package/es/plus/clinetSearch/locales.d.ts +0 -102
  496. package/es/plus/clinetSearch/types.d.ts +0 -49
  497. package/es/plus/walletPassGallery/serve.d.ts +0 -218
  498. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  499. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  500. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
  501. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
  502. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
  503. package/lib/components/booking/components/footer/amount.d.ts +0 -36
  504. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  505. package/lib/components/booking/info/service2/utils.d.ts +0 -251
  506. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  507. package/lib/components/booking/utils.d.ts +0 -173
  508. package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
  509. package/lib/components/checkout/PaymentPlugin.js +0 -181
  510. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
  511. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
  512. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
  513. package/lib/components/checkout/locales.d.ts +0 -507
  514. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
  515. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  516. package/lib/components/eftposPay/payo/config.d.ts +0 -12
  517. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  518. package/lib/components/index.d.ts +0 -23
  519. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
  520. package/lib/components/pay/toC/locales.d.ts +0 -298
  521. package/lib/components/pay/toC/status.d.ts +0 -12
  522. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  523. package/lib/components/ticketBooking/locales.d.ts +0 -192
  524. package/lib/components/ticketBooking/utils/index.d.ts +0 -90
  525. package/lib/components/wallet/Detail/locales.d.ts +0 -147
  526. package/lib/components/wallet/serve.d.ts +0 -143
  527. package/lib/plus/clientCard/locales.d.ts +0 -18
  528. package/lib/plus/clinetSearch/index.d.ts +0 -17
  529. package/lib/plus/clinetSearch/locales.d.ts +0 -102
  530. package/lib/plus/clinetSearch/types.d.ts +0 -49
  531. package/lib/plus/walletPassGallery/serve.d.ts +0 -218
  532. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  533. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  534. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
  535. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
  536. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
@@ -0,0 +1,284 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ /**
3
+ * 类型验证工具函数
4
+ * 用于验证默认值是否符合指定的字段类型
5
+ */
6
+
7
+ /**
8
+ * 验证字符串类型
9
+ */
10
+ var validateString = function validateString(value) {
11
+ if (value === null || value === undefined || value === '') {
12
+ return {
13
+ isValid: true
14
+ };
15
+ }
16
+ if (typeof value === 'string') {
17
+ return {
18
+ isValid: true
19
+ };
20
+ }
21
+ return {
22
+ isValid: false,
23
+ error: '默认值必须是字符串类型'
24
+ };
25
+ };
26
+
27
+ /**
28
+ * 验证整数类型
29
+ */
30
+ var validateInteger = function validateInteger(value) {
31
+ if (value === null || value === undefined || value === '') {
32
+ return {
33
+ isValid: true
34
+ };
35
+ }
36
+
37
+ // 如果是数字,检查是否为整数
38
+ if (typeof value === 'number') {
39
+ if (!Number.isInteger(value)) {
40
+ return {
41
+ isValid: false,
42
+ error: '默认值必须是整数'
43
+ };
44
+ }
45
+ return {
46
+ isValid: true
47
+ };
48
+ }
49
+
50
+ // 如果是字符串,尝试转换
51
+ if (typeof value === 'string') {
52
+ var trimmed = value.trim();
53
+ if (trimmed === '') {
54
+ return {
55
+ isValid: true
56
+ };
57
+ }
58
+ var num = Number(trimmed);
59
+ if (isNaN(num) || !Number.isInteger(num)) {
60
+ return {
61
+ isValid: false,
62
+ error: '默认值必须是有效的整数'
63
+ };
64
+ }
65
+ return {
66
+ isValid: true
67
+ };
68
+ }
69
+ return {
70
+ isValid: false,
71
+ error: '默认值必须是有效的整数'
72
+ };
73
+ };
74
+
75
+ /**
76
+ * 验证浮点数类型
77
+ */
78
+ var validateFloat = function validateFloat(value) {
79
+ if (value === null || value === undefined || value === '') {
80
+ return {
81
+ isValid: true
82
+ };
83
+ }
84
+
85
+ // 如果是数字,检查是否有效
86
+ if (typeof value === 'number') {
87
+ if (!isFinite(value)) {
88
+ return {
89
+ isValid: false,
90
+ error: '默认值必须是有效的数字'
91
+ };
92
+ }
93
+ return {
94
+ isValid: true
95
+ };
96
+ }
97
+
98
+ // 如果是字符串,尝试转换
99
+ if (typeof value === 'string') {
100
+ var trimmed = value.trim();
101
+ if (trimmed === '') {
102
+ return {
103
+ isValid: true
104
+ };
105
+ }
106
+ var num = Number(trimmed);
107
+ if (isNaN(num) || !isFinite(num)) {
108
+ return {
109
+ isValid: false,
110
+ error: '默认值必须是有效的数字'
111
+ };
112
+ }
113
+ return {
114
+ isValid: true
115
+ };
116
+ }
117
+ return {
118
+ isValid: false,
119
+ error: '默认值必须是有效的数字'
120
+ };
121
+ };
122
+
123
+ /**
124
+ * 验证布尔类型
125
+ */
126
+ var validateBoolean = function validateBoolean(value) {
127
+ if (value === null || value === undefined || value === '') {
128
+ return {
129
+ isValid: true
130
+ };
131
+ }
132
+
133
+ // 如果是字符串,只接受 'true' 或 'false'
134
+ if (typeof value === 'string') {
135
+ var trimmed = value.trim().toLowerCase();
136
+ if (trimmed === '') {
137
+ return {
138
+ isValid: true
139
+ };
140
+ }
141
+ if (trimmed !== 'true' && trimmed !== 'false') {
142
+ return {
143
+ isValid: false,
144
+ error: '默认值必须是 true 或 false'
145
+ };
146
+ }
147
+ return {
148
+ isValid: true
149
+ };
150
+ }
151
+
152
+ // 如果是布尔类型
153
+ if (typeof value === 'boolean') {
154
+ return {
155
+ isValid: true
156
+ };
157
+ }
158
+ return {
159
+ isValid: false,
160
+ error: '默认值必须是 true 或 false'
161
+ };
162
+ };
163
+
164
+ /**
165
+ * 验证数组类型(JSON对象/数组)
166
+ */
167
+ var validateArray = function validateArray(value) {
168
+ if (value === null || value === undefined || value === '') {
169
+ return {
170
+ isValid: true
171
+ };
172
+ }
173
+
174
+ // 如果是字符串,尝试解析为JSON
175
+ if (typeof value === 'string') {
176
+ var trimmed = value.trim();
177
+ if (trimmed === '') {
178
+ return {
179
+ isValid: true
180
+ };
181
+ }
182
+ try {
183
+ var parsed = JSON.parse(trimmed);
184
+ // 检查解析后的值是否为对象或数组
185
+ if (_typeof(parsed) !== 'object' || parsed === null) {
186
+ return {
187
+ isValid: false,
188
+ error: '默认值必须是有效的JSON对象或数组'
189
+ };
190
+ }
191
+ return {
192
+ isValid: true
193
+ };
194
+ } catch (error) {
195
+ return {
196
+ isValid: false,
197
+ error: '默认值必须是有效的JSON对象或数组'
198
+ };
199
+ }
200
+ }
201
+
202
+ // 如果是对象或数组
203
+ if (_typeof(value) === 'object' && value !== null) {
204
+ return {
205
+ isValid: true
206
+ };
207
+ }
208
+ return {
209
+ isValid: false,
210
+ error: '默认值必须是有效的JSON对象或数组'
211
+ };
212
+ };
213
+
214
+ /**
215
+ * 根据字段类型验证默认值
216
+ */
217
+ export var validateDefaultValue = function validateDefaultValue(fieldType, defaultValue) {
218
+ if (!fieldType) {
219
+ return {
220
+ isValid: false,
221
+ error: '字段类型不能为空'
222
+ };
223
+ }
224
+ switch (fieldType.toLowerCase()) {
225
+ case 'string':
226
+ return validateString(defaultValue);
227
+ case 'integer':
228
+ return validateInteger(defaultValue);
229
+ case 'float':
230
+ return validateFloat(defaultValue);
231
+ case 'boolean':
232
+ return validateBoolean(defaultValue);
233
+ case 'array':
234
+ return validateArray(defaultValue);
235
+ default:
236
+ return {
237
+ isValid: false,
238
+ error: "\u4E0D\u652F\u6301\u7684\u5B57\u6BB5\u7C7B\u578B: ".concat(fieldType)
239
+ };
240
+ }
241
+ };
242
+
243
+ /**
244
+ * 解析默认值为对应的类型
245
+ */
246
+ export var parseDefaultValue = function parseDefaultValue(fieldType, defaultValue) {
247
+ if (defaultValue === null || defaultValue === undefined || defaultValue === '') {
248
+ return null;
249
+ }
250
+ switch (fieldType.toLowerCase()) {
251
+ case 'string':
252
+ return String(defaultValue);
253
+ case 'integer':
254
+ if (typeof defaultValue === 'string') {
255
+ var trimmed = defaultValue.trim();
256
+ if (trimmed === '') return null;
257
+ return parseInt(trimmed, 10);
258
+ }
259
+ return defaultValue;
260
+ case 'float':
261
+ if (typeof defaultValue === 'string') {
262
+ var _trimmed = defaultValue.trim();
263
+ if (_trimmed === '') return null;
264
+ return parseFloat(_trimmed);
265
+ }
266
+ return defaultValue;
267
+ case 'boolean':
268
+ if (typeof defaultValue === 'string') {
269
+ var _trimmed2 = defaultValue.trim().toLowerCase();
270
+ if (_trimmed2 === '') return null;
271
+ return _trimmed2 === 'true';
272
+ }
273
+ return Boolean(defaultValue);
274
+ case 'array':
275
+ if (typeof defaultValue === 'string') {
276
+ var _trimmed3 = defaultValue.trim();
277
+ if (_trimmed3 === '') return null;
278
+ return JSON.parse(_trimmed3);
279
+ }
280
+ return defaultValue;
281
+ default:
282
+ return defaultValue;
283
+ }
284
+ };
@@ -0,0 +1,44 @@
1
+ /**
2
+ * 验证器工具函数
3
+ */
4
+
5
+ /**
6
+ * 创建带前缀的应用标识符验证器
7
+ * 用于验证设置项的键格式
8
+ */
9
+ export var createPrefixedAppIdentifierValidator = function createPrefixedAppIdentifierValidator(sectionCode) {
10
+ return function (_, value) {
11
+ if (!value) {
12
+ return Promise.resolve();
13
+ }
14
+
15
+ // 检查是否以section code开头
16
+ var expectedPrefix = "".concat(sectionCode, ".");
17
+ if (!value.startsWith(expectedPrefix)) {
18
+ return Promise.reject(new Error("\u952E\u5FC5\u987B\u4EE5 \"".concat(expectedPrefix, "\" \u5F00\u5934")));
19
+ }
20
+
21
+ // 检查剩余部分的格式
22
+ var remainingPart = value.substring(expectedPrefix.length);
23
+ if (!remainingPart) {
24
+ return Promise.reject(new Error('键不能只包含前缀'));
25
+ }
26
+
27
+ // 验证格式:只能包含小写字母、数字、点、下划线
28
+ var validPattern = /^[a-z0-9._]+$/;
29
+ if (!validPattern.test(remainingPart)) {
30
+ return Promise.reject(new Error('键只能包含小写字母、数字、点、下划线'));
31
+ }
32
+
33
+ // 不能以点或下划线开头或结尾
34
+ if (remainingPart.startsWith('.') || remainingPart.startsWith('_') || remainingPart.endsWith('.') || remainingPart.endsWith('_')) {
35
+ return Promise.reject(new Error('键不能以点或下划线开头或结尾'));
36
+ }
37
+
38
+ // 不能包含连续的点或下划线
39
+ if (remainingPart.includes('..') || remainingPart.includes('__') || remainingPart.includes('._') || remainingPart.includes('_.')) {
40
+ return Promise.reject(new Error('键不能包含连续的点或下划线'));
41
+ }
42
+ return Promise.resolve();
43
+ };
44
+ };
@@ -60,7 +60,6 @@ var AddSerivce = function AddSerivce(props) {
60
60
  var context = useEngineContext();
61
61
  var platform = usePlatform();
62
62
  var notAvailableRef = useRef(null);
63
- var isLoadedServiceRef = useRef(false);
64
63
  request.setRequest(context.appHelper.utils.request);
65
64
  var isActive = useIsActive();
66
65
  var Toast = useToast();
@@ -208,90 +207,6 @@ var AddSerivce = function AddSerivce(props) {
208
207
  setHandleSetService(scanAddService);
209
208
  }
210
209
  }, [isActive]);
211
-
212
- /*
213
- const removeNotAvailableService = (list: any) => {
214
- if (!stateRef.current?.service?.value?.length) return;
215
- const listMap = list.reduce((acc: any, cur: any) => {
216
- acc[cur.id] = cur;
217
- return acc;
218
- }, {});
219
- const newValue = (stateRef.current?.service?.value || []).filter(
220
- (item: any) => listMap[item.product_id]
221
- );
222
- dispatch({
223
- type: 'setService',
224
- payload: {
225
- value: newValue,
226
- edit: true,
227
- },
228
- });
229
- };
230
- const getServices = async (params?: any) => {
231
- setLoading(true);
232
- // 活动预约如果没有绑定商品id不查询
233
- if (
234
- state.renderType === 'eventBooking' &&
235
- !state.eventOtherParams?.productIds?.length
236
- ) {
237
- dispatch({
238
- type: 'setService',
239
- payload: {
240
- services: [],
241
- },
242
- });
243
- setLoading(false);
244
- return;
245
- }
246
- let data = await getProductList({
247
- skip: 1,
248
- num: 500,
249
- // extension_type: state.productExtensionType,
250
- exclude_extension_type: [
251
- 'product_party',
252
- 'product_event',
253
- 'product_series_event',
254
- 'product_package_ticket',
255
- 'ticket',
256
- 'event_item',
257
- ],
258
- with: ['category'],
259
- open_quotation: 1,
260
- with_schedule: 1,
261
- with_count: ['bundleGroup', 'optionGroup'],
262
- order_by_string: 'sort:desc',
263
- status: 'published',
264
- schedule_date: params?.schedule_date,
265
- schedule_datetime: params?.schedule_datetime,
266
- customer_id: params?.customer_id,
267
- menu_list_ids: params?.menu_list_ids,
268
- _config: {
269
- fullResult: true,
270
- customResponse: true,
271
- },
272
- });
273
- setLoading(false);
274
- if (data?.code === 607100) {
275
- // 第一次加载时,或者之前有数据
276
- if (!isLoadedServiceRef.current || state.service?.services?.length) {
277
- notAvailableRef.current?.open();
278
- }
279
- }
280
- // 只有自动获取列表的时候才设置商品, 手动点击添加按钮的时候不设置
281
- if (!state.service.addModal) {
282
- setDefaultService(data?.data?.list);
283
- }
284
- removeNotAvailableService(data?.data?.list);
285
- isLoadedServiceRef.current = true;
286
- dispatch({
287
- type: 'setService',
288
- payload: {
289
- services: data?.data?.list || [],
290
- },
291
- });
292
- };
293
- */
294
-
295
210
  var handleAddToast = function handleAddToast(title, quantity) {
296
211
  var _Toast$success;
297
212
  Toast === null || Toast === void 0 || (_Toast$success = Toast.success) === null || _Toast$success === void 0 || _Toast$success.call(Toast, /*#__PURE__*/React.createElement("div", {
@@ -848,6 +763,7 @@ var AddSerivce = function AddSerivce(props) {
848
763
  },
849
764
  new: 1,
850
765
  };
766
+ cacheItem._extend.price = getMainPrice(cacheItem,_detail.price);
851
767
  let _total = getProductTotalPrice(cacheItem);
852
768
  // 用于折扣 可修改
853
769
  cacheItem._extend.total = _total;
@@ -876,7 +792,7 @@ var AddSerivce = function AddSerivce(props) {
876
792
  cacheItem._serviceKey = genServiceKey(cacheItem);
877
793
  const val = getCurrentServiceValue();
878
794
  let { list: _list, quantity } = addService(
879
- [...val],
795
+ [...stateRef.current.service.value],
880
796
  cacheItem,
881
797
  stateRef.current
882
798
  );
@@ -1,15 +1,75 @@
1
- import React from 'react';
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
7
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ 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; }
13
+ 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; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
+ import React, { useState, useEffect } from 'react';
2
16
  import { useNetworkStatus, NetworkStatus, NetworkStatusColor } from "../../hooks/useNetworkStatus";
3
17
  import "./index.less";
4
18
  import { Menu } from 'antd';
5
19
  import { ReloadOutlined, SettingOutlined } from '@ant-design/icons';
6
20
  import { locales } from '@pisell/utils';
7
21
  import { ConfigProvider, Iconfont } from '@pisell/materials';
22
+ import { getBookingConfig } from "../../serve";
23
+ import { useEngineContext } from "../../../../hooks";
8
24
  var index = function index(props) {
9
25
  var _props$activeNavKey = props.activeNavKey,
10
26
  activeNavKey = _props$activeNavKey === void 0 ? 'ticket' : _props$activeNavKey,
11
27
  onNavChange = props.onNavChange;
12
28
  var status = useNetworkStatus();
29
+ var _useState = useState(false),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ showFoodMenu = _useState2[0],
32
+ setShowFoodMenu = _useState2[1];
33
+ var context = useEngineContext();
34
+
35
+ // 检查是否显示 food 菜单
36
+ useEffect(function () {
37
+ var checkFoodConfig = /*#__PURE__*/function () {
38
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
39
+ var data;
40
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
41
+ while (1) switch (_context.prev = _context.next) {
42
+ case 0:
43
+ _context.prev = 0;
44
+ _context.next = 3;
45
+ return getBookingConfig({
46
+ item_type: 'appointment_booking',
47
+ sub_type: 'food',
48
+ source_type: 'pos'
49
+ });
50
+ case 3:
51
+ data = _context.sent;
52
+ if (data) {
53
+ setShowFoodMenu(true);
54
+ }
55
+ _context.next = 10;
56
+ break;
57
+ case 7:
58
+ _context.prev = 7;
59
+ _context.t0 = _context["catch"](0);
60
+ console.error('获取 food 配置失败:', _context.t0);
61
+ case 10:
62
+ case "end":
63
+ return _context.stop();
64
+ }
65
+ }, _callee, null, [[0, 7]]);
66
+ }));
67
+ return function checkFoodConfig() {
68
+ return _ref.apply(this, arguments);
69
+ };
70
+ }();
71
+ checkFoodConfig();
72
+ }, []);
13
73
 
14
74
  // 导航项配置
15
75
  var navItems = [{
@@ -21,7 +81,7 @@ var index = function index(props) {
21
81
  }
22
82
  }),
23
83
  label: ''
24
- }, {
84
+ }].concat(_toConsumableArray(showFoodMenu ? [{
25
85
  key: 'food',
26
86
  label: '',
27
87
  icon: /*#__PURE__*/React.createElement(Iconfont, {
@@ -30,7 +90,7 @@ var index = function index(props) {
30
90
  fontSize: 32
31
91
  }
32
92
  })
33
- }];
93
+ }] : []));
34
94
  var items = [{
35
95
  key: 'reload',
36
96
  label: locales.getText('pisell2.ticket-booking.reload'),
@@ -59,15 +119,52 @@ var index = function index(props) {
59
119
  return 'Offline';
60
120
  }
61
121
  };
62
- var handleClick = function handleClick(_ref) {
63
- var key = _ref.key;
64
- if (key === 'reload') {
65
- window.location.reload();
66
- }
67
- if (key === 'logout') {
68
- window.location.href = '/login';
69
- }
70
- };
122
+ var handleClick = /*#__PURE__*/function () {
123
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
124
+ var key, _context$appHelper, _ref4, getApp, app, _app$logger;
125
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
126
+ while (1) switch (_context2.prev = _context2.next) {
127
+ case 0:
128
+ key = _ref2.key;
129
+ if (!(key === 'reload')) {
130
+ _context2.next = 14;
131
+ break;
132
+ }
133
+ _context2.prev = 2;
134
+ _ref4 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {}, getApp = _ref4.getApp;
135
+ app = getApp();
136
+ if (!app) {
137
+ _context2.next = 9;
138
+ break;
139
+ }
140
+ app.logger.addLog({
141
+ type: 'info',
142
+ title: 'Reload App'
143
+ });
144
+ _context2.next = 9;
145
+ return app === null || app === void 0 || (_app$logger = app.logger) === null || _app$logger === void 0 ? void 0 : _app$logger.storeLog();
146
+ case 9:
147
+ _context2.next = 13;
148
+ break;
149
+ case 11:
150
+ _context2.prev = 11;
151
+ _context2.t0 = _context2["catch"](2);
152
+ case 13:
153
+ window.location.reload();
154
+ case 14:
155
+ if (key === 'logout') {
156
+ window.location.href = '/login';
157
+ }
158
+ case 15:
159
+ case "end":
160
+ return _context2.stop();
161
+ }
162
+ }, _callee2, null, [[2, 11]]);
163
+ }));
164
+ return function handleClick(_x) {
165
+ return _ref3.apply(this, arguments);
166
+ };
167
+ }();
71
168
 
72
169
  // 处理导航项点击
73
170
  var handleNavClick = function handleNavClick(key) {
@@ -475,12 +475,12 @@ var TicketBooking = function TicketBooking(props) {
475
475
  };
476
476
  }, []);
477
477
  var _getProducts = function _getProducts(date) {
478
- var _state$modalState, _state$bookingConfig;
478
+ var _state$modalState, _state$bookingConfig, _getProductsRef$curre;
479
479
  var currentDate = date.format('YYYY-MM-DD');
480
480
  var currentDatetime = date.format('YYYY-MM-DD HH:mm:ss');
481
481
  var customerId = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.client) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.value) === null || _state$modalState === void 0 ? void 0 : _state$modalState.id;
482
482
  var menuList = ((_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.menu_list_tab) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.menu_list) || [];
483
- getProductsRef.current({
483
+ getProductsRef === null || getProductsRef === void 0 || (_getProductsRef$curre = getProductsRef.current) === null || _getProductsRef$curre === void 0 || _getProductsRef$curre.call(getProductsRef, {
484
484
  schedule_date: currentDate,
485
485
  customer_id: customerId,
486
486
  menu_list_ids: menuList,