@pisell/private-materials 6.5.30 → 6.5.32

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 (495) 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/Voucher/index.js +2 -1
  12. package/es/components/booking/addons/index.js +25 -17
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  16. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  17. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  18. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  19. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  20. package/es/components/booking/components/footer/amount.d.ts +1 -0
  21. package/es/components/booking/components/footer/amount.js +529 -79
  22. package/es/components/booking/components/footer/index.js +15 -3
  23. package/es/components/booking/components/footer/utils.d.ts +19 -0
  24. package/es/components/booking/components/footer/utils.js +160 -61
  25. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  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/single/index.d.ts +1 -0
  30. package/es/components/booking/forms/table/index.d.ts +1 -0
  31. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  32. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.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/like/index.d.ts +1 -0
  39. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  40. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  41. package/es/components/booking/info/service2/utils.js +1 -0
  42. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  43. package/es/components/booking/info2/service/addService/index.js +2 -3
  44. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  45. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  46. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  47. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  48. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  49. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  50. package/es/components/booking/model.d.ts +1 -9
  51. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  52. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  53. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  54. package/es/components/booking/notes/model.d.ts +1 -10
  55. package/es/components/booking/payments/model.d.ts +1 -10
  56. package/es/components/booking/utils.d.ts +1 -0
  57. package/es/components/booking/utils.js +16 -3
  58. package/es/components/checkout/PaymentModal.d.ts +7 -5
  59. package/es/components/checkout/PaymentModal.js +44 -108
  60. package/es/components/checkout/components/AdditionalModule/index.js +6 -0
  61. package/es/components/checkout/components/AmountSummary/index.less +4 -5
  62. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  63. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  64. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  65. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  66. package/es/components/eftpos/form/index.d.ts +1 -0
  67. package/es/components/eftpos/group/index.d.ts +1 -0
  68. package/es/components/eftpos/hooks.d.ts +1 -0
  69. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  70. package/es/components/eftpos/icon/device.d.ts +1 -0
  71. package/es/components/eftpos/index.d.ts +1 -0
  72. package/es/components/eftpos/pos.d.ts +1 -0
  73. package/es/components/eftpos/receipt/index.d.ts +1 -0
  74. package/es/components/eftposPay/amount.d.ts +2 -1
  75. package/es/components/eftposPay/app.d.ts +1 -0
  76. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  77. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  78. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  79. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  80. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  81. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  82. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  83. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  84. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  85. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  86. package/es/components/eftposPay/device.d.ts +1 -1
  87. package/es/components/eftposPay/hooks.d.ts +2 -2
  88. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  89. package/es/components/eftposPay/pay.d.ts +1 -0
  90. package/es/components/eftposPay/payo/config.d.ts +1 -0
  91. package/es/components/eftposPay/payo/config.js +70 -32
  92. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  93. package/es/components/eftposPay/payo/payment.js +579 -0
  94. package/es/components/eftposPay/store/index.d.ts +4 -4
  95. package/es/components/eftposPay/tip.d.ts +1 -0
  96. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  97. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  98. package/es/components/eftposPay/utils/log/index.js +371 -0
  99. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  100. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  101. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  102. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  103. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  104. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  105. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  106. package/es/components/index.d.ts +2 -1
  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/Cache/index.d.ts +1 -0
  110. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  111. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  112. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  113. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  114. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  115. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  116. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  118. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  119. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  120. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  121. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  122. package/es/components/pay/toC/index.js +7 -4
  123. package/es/components/pay/toC/locales.d.ts +3 -0
  124. package/es/components/pay/toC/locales.js +6 -3
  125. package/es/components/pay/toC/model.d.ts +1 -9
  126. package/es/components/pay/toC/status.d.ts +1 -0
  127. package/es/components/pay/toC/status.js +3 -0
  128. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  129. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  130. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  131. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  132. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  133. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  134. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  135. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  136. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  137. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  138. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  139. package/es/components/schedules/calendar/index.d.ts +1 -0
  140. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  141. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  142. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  143. package/es/components/schedules/model.d.ts +1 -9
  144. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  145. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  146. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  147. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  148. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  149. package/es/components/schedules/products/index.d.ts +1 -0
  150. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  151. package/es/components/schedules/products/list/index.d.ts +1 -0
  152. package/es/components/schedules/resources/index.d.ts +1 -0
  153. package/es/components/schedules/resources/list/index.d.ts +1 -0
  154. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  155. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  156. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  157. package/es/components/schedules/schedules/index.d.ts +1 -0
  158. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  159. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  160. package/es/components/shoppingCart/index.d.ts +1 -0
  161. package/es/components/subTotal/index.js +1 -1
  162. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  163. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  164. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  165. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  166. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  167. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  168. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  169. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  170. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  171. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  172. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  173. package/es/components/systemSettings/registry/components/index.js +4 -0
  174. package/es/components/systemSettings/registry/index.d.ts +5 -0
  175. package/es/components/systemSettings/registry/index.js +1059 -0
  176. package/es/components/systemSettings/registry/index.less +410 -0
  177. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  178. package/es/components/systemSettings/registry/locales.js +300 -0
  179. package/es/components/systemSettings/registry/services.d.ts +77 -0
  180. package/es/components/systemSettings/registry/services.js +472 -0
  181. package/es/components/systemSettings/registry/types.d.ts +126 -0
  182. package/es/components/systemSettings/registry/types.js +1 -0
  183. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  184. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  185. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  186. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  187. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
  188. package/es/components/ticketBooking/utils/index.d.ts +3 -0
  189. package/es/components/ticketBooking/utils/index.js +36 -13
  190. package/es/components/wallet/Detail/index.js +34 -2
  191. package/es/components/wallet/Detail/index.less +11 -0
  192. package/es/components/wallet/Detail/locales.d.ts +6 -0
  193. package/es/components/wallet/Detail/locales.js +14 -2
  194. package/es/components/wallet/Detail/model.d.ts +1 -13
  195. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  196. package/es/components/wallet/PointCard/model.d.ts +1 -13
  197. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  198. package/es/components/wallet/Voucher/index.js +11 -10
  199. package/es/components/wallet/Voucher/model.d.ts +1 -13
  200. package/es/components/wallet/components/WalletCard.js +5 -1
  201. package/es/components/wallet/index.js +4 -2
  202. package/es/components/wallet/model.d.ts +1 -9
  203. package/es/components/wallet/serve.d.ts +7 -0
  204. package/es/components/wallet/utils.d.ts +48 -0
  205. package/es/components/wallet/utils.js +342 -0
  206. package/es/hooks/usePaymentLogger.d.ts +1 -0
  207. package/es/index.d.ts +4 -0
  208. package/es/index.js +5 -1
  209. package/es/plus/clientName/index.d.ts +1 -0
  210. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  211. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  212. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  213. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  214. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  215. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  216. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  217. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  218. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  219. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  220. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  221. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  222. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  223. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  224. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  225. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  226. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  227. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  228. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  229. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  230. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  231. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  232. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  233. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  234. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  235. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  236. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  237. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  238. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  239. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  240. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  241. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  242. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  243. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  244. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  245. package/es/plus/walletPassGallery/index.js +7 -3
  246. package/es/plus/walletPassGallery/serve.d.ts +3 -0
  247. package/es/plus/walletPassGallery/serve.js +4 -2
  248. package/es/pro/Login2.0/index.less +15 -8
  249. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  250. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
  251. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  252. package/lib/components/booking/addons/index.js +15 -7
  253. package/lib/components/booking/addons/model.d.ts +1 -10
  254. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  255. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  256. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  257. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  258. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  259. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  260. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  261. package/lib/components/booking/components/footer/amount.js +276 -38
  262. package/lib/components/booking/components/footer/index.js +15 -3
  263. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  264. package/lib/components/booking/components/footer/utils.js +109 -33
  265. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  266. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  267. package/lib/components/booking/components/voucher/index.js +21 -7
  268. package/lib/components/booking/forms/model.d.ts +1 -10
  269. package/lib/components/booking/forms/single/index.d.ts +1 -0
  270. package/lib/components/booking/forms/table/index.d.ts +1 -0
  271. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  272. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  273. package/lib/components/booking/info/date/index.d.ts +1 -0
  274. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  275. package/lib/components/booking/info/model.d.ts +1 -10
  276. package/lib/components/booking/info/notes/index.d.ts +1 -0
  277. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  278. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  279. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  280. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  281. package/lib/components/booking/info/service2/utils.js +1 -0
  282. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  283. package/lib/components/booking/info2/service/addService/index.js +1 -2
  284. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  285. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  286. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  287. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  288. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  289. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  290. package/lib/components/booking/model.d.ts +1 -9
  291. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  292. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  293. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  294. package/lib/components/booking/notes/model.d.ts +1 -10
  295. package/lib/components/booking/payments/model.d.ts +1 -10
  296. package/lib/components/booking/utils.d.ts +1 -0
  297. package/lib/components/booking/utils.js +11 -0
  298. package/lib/components/checkout/PaymentModal.d.ts +7 -5
  299. package/lib/components/checkout/PaymentModal.js +73 -127
  300. package/lib/components/checkout/components/AdditionalModule/index.js +6 -0
  301. package/lib/components/checkout/components/AmountSummary/index.less +4 -5
  302. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  303. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  304. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  305. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  306. package/lib/components/eftpos/form/index.d.ts +1 -0
  307. package/lib/components/eftpos/group/index.d.ts +1 -0
  308. package/lib/components/eftpos/hooks.d.ts +1 -0
  309. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  310. package/lib/components/eftpos/icon/device.d.ts +1 -0
  311. package/lib/components/eftpos/index.d.ts +1 -0
  312. package/lib/components/eftpos/pos.d.ts +1 -0
  313. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  314. package/lib/components/eftposPay/amount.d.ts +2 -1
  315. package/lib/components/eftposPay/app.d.ts +1 -0
  316. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  317. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  318. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  319. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  320. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  321. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  322. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  323. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  324. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  325. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  326. package/lib/components/eftposPay/device.d.ts +1 -1
  327. package/lib/components/eftposPay/hooks.d.ts +2 -2
  328. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  329. package/lib/components/eftposPay/pay.d.ts +1 -0
  330. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  331. package/lib/components/eftposPay/payo/config.js +98 -73
  332. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  333. package/lib/components/eftposPay/payo/payment.js +357 -0
  334. package/lib/components/eftposPay/store/index.d.ts +4 -4
  335. package/lib/components/eftposPay/tip.d.ts +1 -0
  336. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  337. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  338. package/lib/components/eftposPay/utils/log/index.js +294 -0
  339. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  340. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  341. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  342. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  345. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  346. package/lib/components/index.d.ts +2 -1
  347. package/lib/components/index.js +3 -0
  348. package/lib/components/login/index.d.ts +1 -0
  349. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  350. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  351. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  352. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  353. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  355. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  356. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  357. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  358. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  359. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  360. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  361. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  362. package/lib/components/pay/toC/index.js +4 -1
  363. package/lib/components/pay/toC/locales.d.ts +3 -0
  364. package/lib/components/pay/toC/locales.js +6 -3
  365. package/lib/components/pay/toC/model.d.ts +1 -9
  366. package/lib/components/pay/toC/status.d.ts +1 -0
  367. package/lib/components/pay/toC/status.js +5 -0
  368. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  369. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  370. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  371. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  372. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  373. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  374. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  375. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  376. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  377. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  378. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  379. package/lib/components/schedules/calendar/index.d.ts +1 -0
  380. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  381. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  382. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  383. package/lib/components/schedules/model.d.ts +1 -9
  384. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  385. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  386. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  387. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  388. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  389. package/lib/components/schedules/products/index.d.ts +1 -0
  390. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  391. package/lib/components/schedules/products/list/index.d.ts +1 -0
  392. package/lib/components/schedules/resources/index.d.ts +1 -0
  393. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  394. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  395. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  396. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  397. package/lib/components/schedules/schedules/index.d.ts +1 -0
  398. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  399. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  400. package/lib/components/shoppingCart/index.d.ts +1 -0
  401. package/lib/components/subTotal/index.js +1 -1
  402. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  403. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  404. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  405. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  406. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  407. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  408. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  409. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  410. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  411. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  412. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  413. package/lib/components/systemSettings/registry/components/index.js +48 -0
  414. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  415. package/lib/components/systemSettings/registry/index.js +529 -0
  416. package/lib/components/systemSettings/registry/index.less +410 -0
  417. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  418. package/lib/components/systemSettings/registry/locales.js +324 -0
  419. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  420. package/lib/components/systemSettings/registry/services.js +290 -0
  421. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  422. package/lib/components/systemSettings/registry/types.js +17 -0
  423. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  424. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  425. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  426. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  427. package/lib/components/ticketBooking/utils/index.d.ts +3 -0
  428. package/lib/components/ticketBooking/utils/index.js +20 -6
  429. package/lib/components/wallet/Detail/index.js +31 -3
  430. package/lib/components/wallet/Detail/index.less +11 -0
  431. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  432. package/lib/components/wallet/Detail/locales.js +14 -2
  433. package/lib/components/wallet/Detail/model.d.ts +1 -13
  434. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  435. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  436. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  437. package/lib/components/wallet/Voucher/index.js +8 -8
  438. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  439. package/lib/components/wallet/components/WalletCard.js +4 -0
  440. package/lib/components/wallet/index.js +2 -2
  441. package/lib/components/wallet/model.d.ts +1 -9
  442. package/lib/components/wallet/serve.d.ts +7 -0
  443. package/lib/components/wallet/utils.d.ts +48 -0
  444. package/lib/components/wallet/utils.js +287 -0
  445. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  446. package/lib/index.d.ts +4 -0
  447. package/lib/index.js +12 -0
  448. package/lib/plus/clientName/index.d.ts +1 -0
  449. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  450. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  451. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  452. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  453. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  454. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  455. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  456. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  457. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  458. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  459. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  460. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  461. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  462. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  463. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  464. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  465. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  466. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  467. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  468. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  469. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  470. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  471. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  472. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  473. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  474. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  475. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  476. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  477. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  478. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  479. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  480. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  481. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  482. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  483. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  484. package/lib/plus/walletPassGallery/index.js +7 -3
  485. package/lib/plus/walletPassGallery/serve.d.ts +3 -0
  486. package/lib/plus/walletPassGallery/serve.js +3 -2
  487. package/lib/pro/Login2.0/index.less +15 -8
  488. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  489. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
  490. package/lowcode/settings-registry/meta.ts +29 -0
  491. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  492. package/package.json +3 -3
  493. package/es/components/checkout/PaymentPlugin.d.ts +0 -2
  494. package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
  495. package/lib/components/checkout/PaymentPlugin.js +0 -181
@@ -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,8 @@
1
+ /**
2
+ * 验证器工具函数
3
+ */
4
+ /**
5
+ * 创建带前缀的应用标识符验证器
6
+ * 用于验证设置项的键格式
7
+ */
8
+ export declare const createPrefixedAppIdentifierValidator: (sectionCode: string) => (_: any, value: string) => Promise<void>;
@@ -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
+ };
@@ -763,6 +763,7 @@ var AddSerivce = function AddSerivce(props) {
763
763
  },
764
764
  new: 1,
765
765
  };
766
+ cacheItem._extend.price = getMainPrice(cacheItem,_detail.price);
766
767
  let _total = getProductTotalPrice(cacheItem);
767
768
  // 用于折扣 可修改
768
769
  cacheItem._extend.total = _total;
@@ -73,6 +73,9 @@ export declare const rulesHooks: {
73
73
  num: any;
74
74
  quantity: any;
75
75
  vouchersApplicable: any;
76
+ startDate: any;
77
+ bundle: any;
78
+ options: any;
76
79
  };
77
80
  setProduct(product: Record<string, any>, values: {
78
81
  total: number;
@@ -2,10 +2,14 @@ var _excluded = ["detail"];
2
2
  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); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  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."); }
5
- 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); }
6
- 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; }
7
5
  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; } }
8
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ 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."); }
9
+ 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); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
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; }
9
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -162,21 +166,30 @@ export var addService = function addService(list, addItem, state) {
162
166
  // 是否设置过 只追加到第一个中
163
167
  var isSetCount = false;
164
168
  value = list.map(function (item) {
169
+ var _item$_extend;
165
170
  // 是否商品券折扣的商品
166
171
  var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
167
172
  return item.type === 'good_pass';
168
173
  });
169
174
  var isEdit = item === null || item === void 0 ? void 0 : item.edit;
170
- if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
171
- var _item$_extend, _addItem$_extend2, _item$_extend2;
175
+ // 子商品是否有商品券折扣的商品
176
+ var bundleDiscountList = [];
177
+ ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).forEach(function (item) {
178
+ bundleDiscountList.push.apply(bundleDiscountList, _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []));
179
+ });
180
+ var isGoodPassBundleProduct = bundleDiscountList.some(function (item) {
181
+ return item.type === 'good_pass';
182
+ });
183
+ if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
184
+ var _item$_extend2, _addItem$_extend2, _item$_extend3;
172
185
  isNotSame = false;
173
- var _quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend2 = addItem._extend) === null || _addItem$_extend2 === void 0 ? void 0 : _addItem$_extend2.quantity) || 1);
186
+ var _quantity = ((item === null || item === void 0 || (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend2 = addItem._extend) === null || _addItem$_extend2 === void 0 ? void 0 : _addItem$_extend2.quantity) || 1);
174
187
  count = _quantity;
175
188
  isSetCount = true;
176
189
  return _objectSpread(_objectSpread({}, item), {}, {
177
190
  _extend: _objectSpread(_objectSpread({}, item._extend), {}, {
178
191
  quantity: _quantity,
179
- other: _objectSpread(_objectSpread({}, ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.other) || {}), {}, {
192
+ other: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), {}, {
180
193
  quantity: _quantity
181
194
  })
182
195
  })
@@ -253,11 +266,11 @@ export var getIsShowNumber = function getIsShowNumber(item, state) {
253
266
 
254
267
  // 生成服务key
255
268
  export var genServiceKey = function genServiceKey(item) {
256
- var _item$_extend3, _item$_extend4, _item$_extend5;
269
+ var _item$_extend4, _item$_extend5, _item$_extend6;
257
270
  var product_id = item.product_id;
258
- var durationKey = (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.duration;
259
- var start_time = (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.start_time;
260
- var total = (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.total;
271
+ var durationKey = (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.duration;
272
+ var start_time = (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.start_time;
273
+ var total = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.total;
261
274
  var resourceKey = '';
262
275
  Object.values(item._extend.resource || []).forEach(function (resources) {
263
276
  resources.forEach(function (resource) {
@@ -362,17 +375,21 @@ export var getShopDiscountKey = function getShopDiscountKey(osKey) {
362
375
  export var rulesHooks = {
363
376
  // 获取商品关键信息
364
377
  getProduct: function getProduct(product) {
378
+ var _product$_extend, _product$_extend2, _product$_extend3;
365
379
  var detail = {
366
380
  booking_id: product.booking_id,
367
381
  id: product.id,
368
382
  _id: product._id,
369
- price: product.price,
383
+ price: product._extend.price,
370
384
  total: product._extend.total,
371
385
  discount_list: product.discount_list,
372
386
  origin_total: product._extend.origin_total,
373
387
  num: product._extend.quantity,
374
388
  quantity: product._extend.quantity || 1,
375
- vouchersApplicable: product.vouchersApplicable
389
+ vouchersApplicable: product.vouchersApplicable,
390
+ startDate: (_product$_extend = product._extend) === null || _product$_extend === void 0 ? void 0 : _product$_extend.startDate,
391
+ bundle: ((_product$_extend2 = product._extend) === null || _product$_extend2 === void 0 || (_product$_extend2 = _product$_extend2.other) === null || _product$_extend2 === void 0 ? void 0 : _product$_extend2.bundle) || [],
392
+ options: ((_product$_extend3 = product._extend) === null || _product$_extend3 === void 0 || (_product$_extend3 = _product$_extend3.other) === null || _product$_extend3 === void 0 ? void 0 : _product$_extend3.option) || []
376
393
  };
377
394
  return detail;
378
395
  },
@@ -380,8 +397,14 @@ export var rulesHooks = {
380
397
  var detail = _objectSpread(_objectSpread({}, product), {}, {
381
398
  _id: values._id || product._id,
382
399
  discount_list: values.discount_list,
383
- _extend: _objectSpread(_objectSpread(_objectSpread({}, product._extend), 'total' in values ? {
400
+ _extend: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, product._extend), {}, {
401
+ other: _objectSpread(_objectSpread({}, product._extend.other), 'bundle' in values ? {
402
+ bundle: values.bundle
403
+ } : {})
404
+ }, 'total' in values ? {
384
405
  total: values.total
406
+ } : {}), 'main_product_selling_price' in values ? {
407
+ main_product_selling_price: values.main_product_selling_price
385
408
  } : {}), 'quantity' in values ? {
386
409
  quantity: values.quantity
387
410
  } : {})
@@ -22,6 +22,7 @@ import localeTexts from "./locales";
22
22
  import { getAssetList, getDetailApi } from "./serve";
23
23
  import { request } from "./../../../utils";
24
24
  import { WalletBar, FooterButtons, UsageRules } from "../components";
25
+ import { formatScheduleText } from "../utils";
25
26
  import "./index.less";
26
27
  var Text = Typography.Text;
27
28
 
@@ -54,7 +55,9 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
54
55
  _detail$expire_date = detail.expire_date,
55
56
  expire_date = _detail$expire_date === void 0 ? '' : _detail$expire_date,
56
57
  _detail$product = detail.product,
57
- product = _detail$product === void 0 ? {} : _detail$product;
58
+ product = _detail$product === void 0 ? {} : _detail$product,
59
+ custom_schedule_snapshot = detail.custom_schedule_snapshot;
60
+ console.log(detail, 'detail22');
58
61
  var _ref = product || {},
59
62
  _ref$description = _ref.description,
60
63
  description = _ref$description === void 0 ? '' : _ref$description,
@@ -298,7 +301,36 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
298
301
  onGoogleClick();
299
302
  }
300
303
  };
304
+ var scheduleList = useMemo(function () {
305
+ return (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [];
306
+ }, [custom_schedule_snapshot]);
301
307
  useEffect(function () {
308
+ var detail = formatScheduleText(scheduleList, 'zh-CN');
309
+ var expireText = expire_date ? expire_date : locales.getText('page.wallet.expireDate');
310
+ if (scheduleList.length > 0) {
311
+ // 换行展示
312
+ var validityTexts = "";
313
+ var excludedText = "";
314
+ var includedText = "";
315
+ detail.forEach(function (item) {
316
+ if (item.validityTexts.length > 0) {
317
+ validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
318
+ }
319
+ if (item.excluded_date.length > 0) {
320
+ excludedText = "".concat(excludedText).concat(item.excluded_date.join('\n'), "\n");
321
+ }
322
+ if (item.included_date.length > 0) {
323
+ includedText = "".concat(includedText).concat(item.included_date.join('\n'), "\n");
324
+ }
325
+ });
326
+ expireText = /*#__PURE__*/React.createElement("span", {
327
+ className: "wallet-detail-expire-text"
328
+ }, validityTexts, excludedText && /*#__PURE__*/React.createElement("div", {
329
+ className: "wallet-detail-expire-text-title"
330
+ }, locales.getText('page.wallet.notValidDate')), excludedText, includedText && /*#__PURE__*/React.createElement("div", {
331
+ className: "wallet-detail-expire-text-title"
332
+ }, locales.getText('page.wallet.includedDate')), includedText);
333
+ }
302
334
  var data = [{
303
335
  label: locales.getText('page.wallet.cardName'),
304
336
  value: product_title
@@ -308,7 +340,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
308
340
  isLink: false
309
341
  }, {
310
342
  label: locales.getText('page.wallet.validDate'),
311
- value: expire_date ? expire_date : locales.getText('page.wallet.expireDate')
343
+ value: expireText
312
344
  }];
313
345
  //折扣卡显示折扣字段 其他显示余额字段
314
346
  if (tag === 'product_discount_card') {
@@ -373,3 +373,14 @@
373
373
  font-weight: 500;
374
374
  line-height: 24px;
375
375
  }
376
+
377
+ .wallet-detail-expire-text {
378
+ white-space: pre-wrap;
379
+ }
380
+
381
+ .wallet-detail-expire-text-title {
382
+ font-size: 14px;
383
+ font-weight: 500;
384
+ line-height: 20px;
385
+ color: #667085;
386
+ }
@@ -21,6 +21,8 @@ declare const _default: {
21
21
  'page.wallet.addGoogle': string;
22
22
  'page.wallet.viewDetails': string;
23
23
  'page.wallet.expireDate': string;
24
+ 'page.wallet.notValidDate': string;
25
+ 'page.wallet.includedDate': string;
24
26
  'page.wallet.urlEmpty': string;
25
27
  'page.wallet.notIOS': string;
26
28
  'page.wallet.addSuccess': string;
@@ -69,6 +71,8 @@ declare const _default: {
69
71
  'page.wallet.addGoogle': string;
70
72
  'page.wallet.viewDetails': string;
71
73
  'page.wallet.expireDate': string;
74
+ 'page.wallet.notValidDate': string;
75
+ 'page.wallet.includedDate': string;
72
76
  'page.wallet.urlEmpty': string;
73
77
  'page.wallet.notIOS': string;
74
78
  'page.wallet.addSuccess': string;
@@ -117,6 +121,8 @@ declare const _default: {
117
121
  'page.wallet.addGoogle': string;
118
122
  'page.wallet.viewDetails': string;
119
123
  'page.wallet.expireDate': string;
124
+ 'page.wallet.notValidDate': string;
125
+ 'page.wallet.includedDate': string;
120
126
  'page.wallet.urlEmpty': string;
121
127
  'page.wallet.notIOS': string;
122
128
  'page.wallet.addSuccess': string;
@@ -24,6 +24,10 @@ export default {
24
24
  'page.wallet.addGoogle': 'Add to Google Wallet',
25
25
  'page.wallet.viewDetails': 'See details',
26
26
  'page.wallet.expireDate': 'Long term',
27
+ 'page.wallet.notValidDate': 'Not valid on',
28
+ // 不可用日期
29
+ 'page.wallet.includedDate': 'Included dates',
30
+ // 包含日期
27
31
  'page.wallet.urlEmpty': 'Wallet link is empty',
28
32
  'page.wallet.notIOS': 'Apple Wallet is not supported on non-iOS devices',
29
33
  'page.wallet.addSuccess': 'Successfully added to wallet',
@@ -76,6 +80,10 @@ export default {
76
80
  'page.wallet.addGoogle': '添加到谷歌钱包',
77
81
  'page.wallet.viewDetails': '查看详情',
78
82
  'page.wallet.expireDate': '长期',
83
+ 'page.wallet.notValidDate': '不可用日期',
84
+ // 不可用日期
85
+ 'page.wallet.includedDate': '包含日期',
86
+ // 包含日期
79
87
  'page.wallet.urlEmpty': '钱包链接为空',
80
88
  'page.wallet.notIOS': '非iOS设备不支持Apple Wallet',
81
89
  'page.wallet.addSuccess': '已成功添加到钱包',
@@ -87,7 +95,7 @@ export default {
87
95
  // Usage Rules
88
96
  'page.wallet.usageRules': '使用规则',
89
97
  'page.wallet.usageRulesSubtitle': '请仔细阅读以下使用条件',
90
- 'page.wallet.timeUsageLimits': '时间使用限制',
98
+ 'page.wallet.timeUsageLimits': '使用频次限制',
91
99
  'page.wallet.totalQuantityControl': '总量控制',
92
100
  'page.wallet.dailyLimit': '每日限制:',
93
101
  'page.wallet.weeklyLimit': '每周限制:',
@@ -128,6 +136,10 @@ export default {
128
136
  'page.wallet.addGoogle': '添加到谷歌錢包',
129
137
  'page.wallet.viewDetails': '查看詳情',
130
138
  'page.wallet.expireDate': '長期',
139
+ 'page.wallet.notValidDate': '不可用日期',
140
+ // 不可用日期
141
+ 'page.wallet.includedDate': '包含日期',
142
+ // 包含日期
131
143
  'page.wallet.urlEmpty': '錢包連結為空',
132
144
  'page.wallet.notIOS': '非iOS設備不支持Apple Wallet',
133
145
  'page.wallet.addSuccess': '已成功添加到錢包',
@@ -139,7 +151,7 @@ export default {
139
151
  // Usage Rules
140
152
  'page.wallet.usageRules': '使用規則',
141
153
  'page.wallet.usageRulesSubtitle': '請仔細閱讀以下使用條件',
142
- 'page.wallet.timeUsageLimits': '時間使用限制',
154
+ 'page.wallet.timeUsageLimits': '使用頻次限制',
143
155
  'page.wallet.totalQuantityControl': '總量控制',
144
156
  'page.wallet.dailyLimit': '每日限制:',
145
157
  'page.wallet.weeklyLimit': '每週限制:',
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;