@pisell/private-materials 3.3.100 → 3.3.102

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 (271) 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 +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Cart/index.js +1 -5
  13. package/es/components/Sales/Cart/utils.d.ts +0 -40
  14. package/es/components/Sales/Cart/utils.js +0 -167
  15. package/es/components/Sales/Checkout/index.d.ts +0 -4
  16. package/es/components/Sales/Checkout/index.js +8 -52
  17. package/es/components/Sales/Checkout/serve.d.ts +0 -13
  18. package/es/components/Sales/Checkout/serve.js +2 -16
  19. package/es/components/Sales/Checkout/utils.js +1 -7
  20. package/es/components/Sales/Summary/index.d.ts +0 -10
  21. package/es/components/Sales/Summary/index.js +2 -17
  22. package/es/components/Sales/Summary/serve.d.ts +0 -1
  23. package/es/components/Sales/Summary/serve.js +0 -6
  24. package/es/components/Sales/Summary/utils.d.ts +0 -15
  25. package/es/components/Sales/Summary/utils.js +1 -43
  26. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  27. package/es/components/appointmentBooking/components/Content/index.js +1 -15
  28. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  29. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  30. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  31. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  32. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  33. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  34. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  35. package/es/components/appointmentBooking/deposit/index.js +2 -4
  36. package/es/components/appointmentBooking/index.js +0 -14
  37. package/es/components/appointmentBooking/index.less +1 -1
  38. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  39. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  40. package/es/components/booking/components/voucher/index.js +2 -2
  41. package/es/components/booking/forms/table/index.d.ts +1 -0
  42. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  43. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  44. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  45. package/es/components/booking/info/index.d.ts +1 -0
  46. package/es/components/booking/info/service/editService/index.js +1 -1
  47. package/es/components/booking/info/service/like/index.d.ts +1 -0
  48. package/es/components/booking/info/service2/utils.d.ts +1 -1
  49. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  50. package/es/components/booking/utils.d.ts +2 -2
  51. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  52. package/es/components/eftpos/form/index.d.ts +1 -0
  53. package/es/components/eftpos/group/index.d.ts +1 -0
  54. package/es/components/eftpos/hooks.d.ts +1 -0
  55. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  56. package/es/components/eftpos/icon/device.d.ts +1 -0
  57. package/es/components/eftpos/receipt/index.d.ts +1 -0
  58. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  59. package/es/components/eftposPay/amount.d.ts +1 -1
  60. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  61. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  63. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  64. package/es/components/eftposPay/const.d.ts +1 -4
  65. package/es/components/eftposPay/const.js +1 -3
  66. package/es/components/eftposPay/device.d.ts +1 -1
  67. package/es/components/eftposPay/hooks.d.ts +2 -2
  68. package/es/components/eftposPay/hooks.js +1 -3
  69. package/es/components/eftposPay/index.js +1 -1
  70. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  71. package/es/components/eftposPay/manufacturer.js +0 -4
  72. package/es/components/eftposPay/pay.d.ts +1 -1
  73. package/es/components/eftposPay/pay.js +2 -6
  74. package/es/components/eftposPay/store/index.d.ts +4 -4
  75. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  76. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  78. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  79. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  80. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  81. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/bookingDetailModal/index.js +1 -3
  89. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  90. package/es/components/eventBooking/locales.d.ts +0 -24
  91. package/es/components/eventBooking/locales.js +3 -27
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  93. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  94. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  95. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  99. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  100. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  101. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  102. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  103. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  104. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  105. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  106. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  107. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  108. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  109. package/es/components/schedules/products/index.d.ts +1 -0
  110. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  111. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  112. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  113. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  114. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  115. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  116. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  117. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -120
  118. package/es/components/ticketBooking/locales.d.ts +146 -164
  119. package/es/components/ticketBooking/locales.js +147 -195
  120. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  121. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  122. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  123. package/lib/components/Sales/Cart/index.js +0 -1
  124. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  125. package/lib/components/Sales/Cart/utils.js +0 -117
  126. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  127. package/lib/components/Sales/Checkout/index.js +7 -39
  128. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  129. package/lib/components/Sales/Checkout/serve.js +2 -7
  130. package/lib/components/Sales/Checkout/utils.js +0 -2
  131. package/lib/components/Sales/Summary/index.d.ts +0 -10
  132. package/lib/components/Sales/Summary/index.js +1 -7
  133. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  134. package/lib/components/Sales/Summary/serve.js +0 -32
  135. package/lib/components/Sales/Summary/utils.d.ts +0 -15
  136. package/lib/components/Sales/Summary/utils.js +1 -30
  137. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  138. package/lib/components/appointmentBooking/components/Content/index.js +1 -6
  139. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  140. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  141. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  142. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  143. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  144. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  145. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  146. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  147. package/lib/components/appointmentBooking/index.js +0 -11
  148. package/lib/components/appointmentBooking/index.less +1 -1
  149. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  150. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  151. package/lib/components/booking/components/voucher/index.js +2 -2
  152. package/lib/components/booking/forms/table/index.d.ts +1 -0
  153. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  154. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  155. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  156. package/lib/components/booking/info/index.d.ts +1 -0
  157. package/lib/components/booking/info/service/editService/index.js +1 -0
  158. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  159. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  160. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  161. package/lib/components/booking/utils.d.ts +2 -2
  162. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  163. package/lib/components/eftpos/form/index.d.ts +1 -0
  164. package/lib/components/eftpos/group/index.d.ts +1 -0
  165. package/lib/components/eftpos/hooks.d.ts +1 -0
  166. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  167. package/lib/components/eftpos/icon/device.d.ts +1 -0
  168. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  169. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  170. package/lib/components/eftposPay/amount.d.ts +1 -1
  171. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  172. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  173. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  174. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  175. package/lib/components/eftposPay/const.d.ts +1 -4
  176. package/lib/components/eftposPay/const.js +0 -2
  177. package/lib/components/eftposPay/device.d.ts +1 -1
  178. package/lib/components/eftposPay/hooks.d.ts +2 -2
  179. package/lib/components/eftposPay/hooks.js +4 -11
  180. package/lib/components/eftposPay/index.js +1 -1
  181. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  182. package/lib/components/eftposPay/manufacturer.js +0 -6
  183. package/lib/components/eftposPay/pay.d.ts +1 -1
  184. package/lib/components/eftposPay/pay.js +2 -13
  185. package/lib/components/eftposPay/store/index.d.ts +4 -4
  186. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  187. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  188. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  189. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  190. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  191. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  193. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  194. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  195. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  197. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  198. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  200. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  201. package/lib/components/eventBooking/locales.d.ts +0 -24
  202. package/lib/components/eventBooking/locales.js +3 -27
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  204. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  205. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  206. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  207. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  208. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  210. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  211. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  212. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  213. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  214. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  215. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  216. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  217. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  218. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  219. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  220. package/lib/components/schedules/products/index.d.ts +1 -0
  221. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  222. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  223. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  224. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  225. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  226. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  227. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  228. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -120
  229. package/lib/components/ticketBooking/locales.d.ts +146 -164
  230. package/lib/components/ticketBooking/locales.js +4 -22
  231. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  232. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  233. package/package.json +2 -2
  234. package/es/components/booking/components/footer/utils.d.ts +0 -41
  235. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  236. package/es/components/eftposPay/linkly/const.js +0 -82
  237. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  238. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  239. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  240. package/es/components/eftposPay/linkly/hooks/normal.js +0 -321
  241. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  242. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  243. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  244. package/es/components/eftposPay/linkly/index.js +0 -197
  245. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  246. package/es/components/eftposPay/linkly/service.js +0 -81
  247. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  248. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  249. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  250. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  251. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  252. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  253. package/lib/components/booking/components/footer/utils.d.ts +0 -41
  254. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  255. package/lib/components/eftposPay/linkly/const.js +0 -102
  256. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  257. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  258. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  259. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -242
  260. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  261. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  262. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  263. package/lib/components/eftposPay/linkly/index.js +0 -208
  264. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  265. package/lib/components/eftposPay/linkly/service.js +0 -55
  266. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  267. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  268. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  269. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  270. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  271. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -1,171 +1,153 @@
1
1
  declare const _default: {
2
2
  en: {
3
- 'pisell2.ticket-booking.info': string;
4
- 'pisell2.ticket-booking.notes': string;
5
- 'pisell2.ticket-booking.forms': string;
6
- 'pisell2.ticket-booking.sales': string;
7
- 'pisell2.ticket-booking.payment': string;
8
- 'pisell2.ticket-booking.unsaved-changes': string;
9
- 'pisell2.ticket-booking.exit-confirm': string;
10
- 'pisell2.ticket-booking.go-back': string;
11
- 'pisell2.ticket-booking.exit': string;
12
- 'pisell2.ticket-booking.deposit': string;
13
- 'pisell2.ticket-booking.copy-success': string;
14
- 'pisell2.ticket-booking.no-data': string;
15
- 'pisell2.ticket-booking.authorized': string;
16
- 'pisell2.ticket-booking.paid': string;
17
- 'pisell2.ticket-booking.partially-paid': string;
18
- 'pisell2.ticket-booking.partially-refunded': string;
19
- 'pisell2.ticket-booking.payment-pending': string;
20
- 'pisell2.ticket-booking.refunded': string;
21
- 'pisell2.ticket-booking.unpaid': string;
22
- 'pisell2.ticket-booking.voided': string;
23
- 'pisell2.ticket-booking.pending': string;
24
- 'pisell2.ticket-booking.all': string;
25
- 'pisell2.ticket-booking.not-started': string;
26
- 'pisell2.ticket-booking.started': string;
27
- 'pisell2.ticket-booking.finished': string;
28
- 'pisell2.ticket-booking.canceled': string;
29
- 'pisell2.ticket-booking.inform': string;
30
- 'pisell2.ticket-booking.check-management': string;
31
- 'pisell2.ticket-booking.confirm': string;
32
- 'pisell2.ticket-booking.dashboard': string;
33
- 'pisell2.ticket-booking.booking-list': string;
34
- 'pisell2.ticket-booking.full-data': string;
35
- 'pisell2.ticket-booking.today': string;
36
- 'pisell2.ticket-booking.now': string;
37
- 'pisell2.ticket-booking.start-time': string;
38
- 'pisell2.ticket-booking.create-time': string;
39
- 'pisell2.ticket-booking.customer': string;
40
- 'pisell2.ticket-booking.total': string;
41
- 'pisell2.ticket-booking.search': string;
42
- 'pisell2.ticket-booking.refresh-success': string;
43
- 'pisell2.ticket-booking.loading': string;
44
- 'pisell2.ticket-booking.appointment-not-found': string;
45
- 'pisell2.ticket-booking.scan': string;
46
- 'pisell2.ticket-booking.create-new': string;
47
- 'pisell2.ticket-booking.add-to-cart': string;
48
- 'pisell2.ticket-booking.not-available-title': string;
49
- 'pisell2.ticket-booking.not-available-ok': string;
50
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
51
- 'pisell2.product.card.cart-items': (number: number) => string;
52
- 'pisell2.product.card.subtotal': string;
53
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
54
- 'pisell2.product.card.day': (val: number) => string;
55
- 'pisell2.product.card.day.event': (val: number) => string;
56
- 'pisell2.product.card.minute': (val: number) => string;
3
+ "pisell2.ticket-booking.info": string;
4
+ "pisell2.ticket-booking.notes": string;
5
+ "pisell2.ticket-booking.forms": string;
6
+ "pisell2.ticket-booking.sales": string;
7
+ "pisell2.ticket-booking.payment": string;
8
+ "pisell2.ticket-booking.unsaved-changes": string;
9
+ "pisell2.ticket-booking.exit-confirm": string;
10
+ "pisell2.ticket-booking.go-back": string;
11
+ "pisell2.ticket-booking.exit": string;
12
+ "pisell2.ticket-booking.deposit": string;
13
+ "pisell2.ticket-booking.copy-success": string;
14
+ "pisell2.ticket-booking.no-data": string;
15
+ "pisell2.ticket-booking.authorized": string;
16
+ "pisell2.ticket-booking.paid": string;
17
+ "pisell2.ticket-booking.partially-paid": string;
18
+ "pisell2.ticket-booking.partially-refunded": string;
19
+ "pisell2.ticket-booking.payment-pending": string;
20
+ "pisell2.ticket-booking.refunded": string;
21
+ "pisell2.ticket-booking.unpaid": string;
22
+ "pisell2.ticket-booking.voided": string;
23
+ "pisell2.ticket-booking.pending": string;
24
+ "pisell2.ticket-booking.all": string;
25
+ "pisell2.ticket-booking.not-started": string;
26
+ "pisell2.ticket-booking.started": string;
27
+ "pisell2.ticket-booking.finished": string;
28
+ "pisell2.ticket-booking.canceled": string;
29
+ "pisell2.ticket-booking.inform": string;
30
+ "pisell2.ticket-booking.check-management": string;
31
+ "pisell2.ticket-booking.confirm": string;
32
+ "pisell2.ticket-booking.dashboard": string;
33
+ "pisell2.ticket-booking.booking-list": string;
34
+ "pisell2.ticket-booking.full-data": string;
35
+ "pisell2.ticket-booking.today": string;
36
+ "pisell2.ticket-booking.now": string;
37
+ "pisell2.ticket-booking.start-time": string;
38
+ "pisell2.ticket-booking.create-time": string;
39
+ "pisell2.ticket-booking.customer": string;
40
+ "pisell2.ticket-booking.total": string;
41
+ "pisell2.ticket-booking.search": string;
42
+ "pisell2.ticket-booking.refresh-success": string;
43
+ "pisell2.ticket-booking.loading": string;
44
+ "pisell2.ticket-booking.appointment-not-found": string;
45
+ "pisell2.ticket-booking.scan": string;
46
+ "pisell2.ticket-booking.create-new": string;
47
+ "pisell2.ticket-booking.add-to-cart": string;
48
+ "pisell2.ticket-booking.not-available-title": string;
49
+ "pisell2.ticket-booking.not-available-ok": string;
50
+ "pisell2.ticket-booking.in-cart": (number: number) => string;
57
51
  };
58
- 'zh-CN': {
59
- 'pisell2.ticket-booking.info': string;
60
- 'pisell2.ticket-booking.notes': string;
61
- 'pisell2.ticket-booking.forms': string;
62
- 'pisell2.ticket-booking.sales': string;
63
- 'pisell2.ticket-booking.payment': string;
64
- 'pisell2.ticket-booking.unsaved-changes': string;
65
- 'pisell2.ticket-booking.exit-confirm': string;
66
- 'pisell2.ticket-booking.go-back': string;
67
- 'pisell2.ticket-booking.exit': string;
68
- 'pisell2.ticket-booking.deposit': string;
69
- 'pisell2.ticket-booking.copy-success': string;
70
- 'pisell2.ticket-booking.no-data': string;
71
- 'pisell2.ticket-booking.authorized': string;
72
- 'pisell2.ticket-booking.paid': string;
73
- 'pisell2.ticket-booking.partially-paid': string;
74
- 'pisell2.ticket-booking.partially-refunded': string;
75
- 'pisell2.ticket-booking.payment-pending': string;
76
- 'pisell2.ticket-booking.refunded': string;
77
- 'pisell2.ticket-booking.unpaid': string;
78
- 'pisell2.ticket-booking.voided': string;
79
- 'pisell2.ticket-booking.pending': string;
80
- 'pisell2.ticket-booking.all': string;
81
- 'pisell2.ticket-booking.not-started': string;
82
- 'pisell2.ticket-booking.started': string;
83
- 'pisell2.ticket-booking.finished': string;
84
- 'pisell2.ticket-booking.canceled': string;
85
- 'pisell2.ticket-booking.inform': string;
86
- 'pisell2.ticket-booking.check-management': string;
87
- 'pisell2.ticket-booking.confirm': string;
88
- 'pisell2.ticket-booking.dashboard': string;
89
- 'pisell2.ticket-booking.booking-list': string;
90
- 'pisell2.ticket-booking.full-data': string;
91
- 'pisell2.ticket-booking.today': string;
92
- 'pisell2.ticket-booking.now': string;
93
- 'pisell2.ticket-booking.start-time': string;
94
- 'pisell2.ticket-booking.create-time': string;
95
- 'pisell2.ticket-booking.customer': string;
96
- 'pisell2.ticket-booking.total': string;
97
- 'pisell2.ticket-booking.search': string;
98
- 'pisell2.ticket-booking.refresh-success': string;
99
- 'pisell2.ticket-booking.loading': string;
100
- 'pisell2.ticket-booking.appointment-not-found': string;
101
- 'pisell2.ticket-booking.scan': string;
102
- 'pisell2.ticket-booking.create-new': string;
103
- 'pisell2.ticket-booking.add-to-cart': string;
104
- 'pisell2.ticket-booking.not-available-title': string;
105
- 'pisell2.ticket-booking.not-available-ok': string;
106
- 'pisell2.product.card.cart-items': (number: number) => string;
107
- 'pisell2.product.card.subtotal': string;
108
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
109
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
110
- 'pisell2.product.card.day': (val: number) => string;
111
- 'pisell2.product.card.day.event': (val: number) => string;
112
- 'pisell2.product.card.minute': (val: number) => string;
52
+ "zh-CN": {
53
+ "pisell2.ticket-booking.info": string;
54
+ "pisell2.ticket-booking.notes": string;
55
+ "pisell2.ticket-booking.forms": string;
56
+ "pisell2.ticket-booking.sales": string;
57
+ "pisell2.ticket-booking.payment": string;
58
+ "pisell2.ticket-booking.unsaved-changes": string;
59
+ "pisell2.ticket-booking.exit-confirm": string;
60
+ "pisell2.ticket-booking.go-back": string;
61
+ "pisell2.ticket-booking.exit": string;
62
+ "pisell2.ticket-booking.deposit": string;
63
+ "pisell2.ticket-booking.copy-success": string;
64
+ "pisell2.ticket-booking.no-data": string;
65
+ "pisell2.ticket-booking.authorized": string;
66
+ "pisell2.ticket-booking.paid": string;
67
+ "pisell2.ticket-booking.partially-paid": string;
68
+ "pisell2.ticket-booking.partially-refunded": string;
69
+ "pisell2.ticket-booking.payment-pending": string;
70
+ "pisell2.ticket-booking.refunded": string;
71
+ "pisell2.ticket-booking.unpaid": string;
72
+ "pisell2.ticket-booking.voided": string;
73
+ "pisell2.ticket-booking.pending": string;
74
+ "pisell2.ticket-booking.all": string;
75
+ "pisell2.ticket-booking.not-started": string;
76
+ "pisell2.ticket-booking.started": string;
77
+ "pisell2.ticket-booking.finished": string;
78
+ "pisell2.ticket-booking.canceled": string;
79
+ "pisell2.ticket-booking.inform": string;
80
+ "pisell2.ticket-booking.check-management": string;
81
+ "pisell2.ticket-booking.confirm": string;
82
+ "pisell2.ticket-booking.dashboard": string;
83
+ "pisell2.ticket-booking.booking-list": string;
84
+ "pisell2.ticket-booking.full-data": string;
85
+ "pisell2.ticket-booking.today": string;
86
+ "pisell2.ticket-booking.now": string;
87
+ "pisell2.ticket-booking.start-time": string;
88
+ "pisell2.ticket-booking.create-time": string;
89
+ "pisell2.ticket-booking.customer": string;
90
+ "pisell2.ticket-booking.total": string;
91
+ "pisell2.ticket-booking.search": string;
92
+ "pisell2.ticket-booking.refresh-success": string;
93
+ "pisell2.ticket-booking.loading": string;
94
+ "pisell2.ticket-booking.appointment-not-found": string;
95
+ "pisell2.ticket-booking.scan": string;
96
+ "pisell2.ticket-booking.create-new": string;
97
+ "pisell2.ticket-booking.add-to-cart": string;
98
+ "pisell2.ticket-booking.not-available-title": string;
99
+ "pisell2.ticket-booking.not-available-ok": string;
100
+ "pisell2.ticket-booking.in-cart": (number: number) => string;
113
101
  };
114
- 'zh-HK': {
115
- 'pisell2.ticket-booking.info': string;
116
- 'pisell2.ticket-booking.notes': string;
117
- 'pisell2.ticket-booking.forms': string;
118
- 'pisell2.ticket-booking.sales': string;
119
- 'pisell2.ticket-booking.payment': string;
120
- 'pisell2.ticket-booking.unsaved-changes': string;
121
- 'pisell2.ticket-booking.exit-confirm': string;
122
- 'pisell2.ticket-booking.go-back': string;
123
- 'pisell2.ticket-booking.exit': string;
124
- 'pisell2.ticket-booking.deposit': string;
125
- 'pisell2.ticket-booking.copy-success': string;
126
- 'pisell2.ticket-booking.no-data': string;
127
- 'pisell2.ticket-booking.authorized': string;
128
- 'pisell2.ticket-booking.paid': string;
129
- 'pisell2.ticket-booking.partially-paid': string;
130
- 'pisell2.ticket-booking.partially-refunded': string;
131
- 'pisell2.ticket-booking.payment-pending': string;
132
- 'pisell2.ticket-booking.refunded': string;
133
- 'pisell2.ticket-booking.unpaid': string;
134
- 'pisell2.ticket-booking.voided': string;
135
- 'pisell2.ticket-booking.pending': string;
136
- 'pisell2.ticket-booking.all': string;
137
- 'pisell2.ticket-booking.not-started': string;
138
- 'pisell2.ticket-booking.started': string;
139
- 'pisell2.ticket-booking.finished': string;
140
- 'pisell2.ticket-booking.canceled': string;
141
- 'pisell2.ticket-booking.inform': string;
142
- 'pisell2.ticket-booking.check-management': string;
143
- 'pisell2.ticket-booking.confirm': string;
144
- 'pisell2.ticket-booking.dashboard': string;
145
- 'pisell2.ticket-booking.booking-list': string;
146
- 'pisell2.ticket-booking.full-data': string;
147
- 'pisell2.ticket-booking.today': string;
148
- 'pisell2.ticket-booking.now': string;
149
- 'pisell2.ticket-booking.start-time': string;
150
- 'pisell2.ticket-booking.create-time': string;
151
- 'pisell2.ticket-booking.customer': string;
152
- 'pisell2.ticket-booking.total': string;
153
- 'pisell2.ticket-booking.search': string;
154
- 'pisell2.ticket-booking.refresh-success': string;
155
- 'pisell2.ticket-booking.loading': string;
156
- 'pisell2.ticket-booking.appointment-not-found': string;
157
- 'pisell2.ticket-booking.scan': string;
158
- 'pisell2.ticket-booking.create-new': string;
159
- 'pisell2.ticket-booking.add-to-cart': string;
160
- 'pisell2.ticket-booking.not-available-title': string;
161
- 'pisell2.ticket-booking.not-available-ok': string;
162
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
163
- 'pisell2.product.card.cart-items': (number: number) => string;
164
- 'pisell2.product.card.subtotal': string;
165
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
166
- 'pisell2.product.card.day': (val: number) => string;
167
- 'pisell2.product.card.day.event': (val: number) => string;
168
- 'pisell2.product.card.minute': (val: number) => string;
102
+ "zh-HK": {
103
+ "pisell2.ticket-booking.info": string;
104
+ "pisell2.ticket-booking.notes": string;
105
+ "pisell2.ticket-booking.forms": string;
106
+ "pisell2.ticket-booking.sales": string;
107
+ "pisell2.ticket-booking.payment": string;
108
+ "pisell2.ticket-booking.unsaved-changes": string;
109
+ "pisell2.ticket-booking.exit-confirm": string;
110
+ "pisell2.ticket-booking.go-back": string;
111
+ "pisell2.ticket-booking.exit": string;
112
+ "pisell2.ticket-booking.deposit": string;
113
+ "pisell2.ticket-booking.copy-success": string;
114
+ "pisell2.ticket-booking.no-data": string;
115
+ "pisell2.ticket-booking.authorized": string;
116
+ "pisell2.ticket-booking.paid": string;
117
+ "pisell2.ticket-booking.partially-paid": string;
118
+ "pisell2.ticket-booking.partially-refunded": string;
119
+ "pisell2.ticket-booking.payment-pending": string;
120
+ "pisell2.ticket-booking.refunded": string;
121
+ "pisell2.ticket-booking.unpaid": string;
122
+ "pisell2.ticket-booking.voided": string;
123
+ "pisell2.ticket-booking.pending": string;
124
+ "pisell2.ticket-booking.all": string;
125
+ "pisell2.ticket-booking.not-started": string;
126
+ "pisell2.ticket-booking.started": string;
127
+ "pisell2.ticket-booking.finished": string;
128
+ "pisell2.ticket-booking.canceled": string;
129
+ "pisell2.ticket-booking.inform": string;
130
+ "pisell2.ticket-booking.check-management": string;
131
+ "pisell2.ticket-booking.confirm": string;
132
+ "pisell2.ticket-booking.dashboard": string;
133
+ "pisell2.ticket-booking.booking-list": string;
134
+ "pisell2.ticket-booking.full-data": string;
135
+ "pisell2.ticket-booking.today": string;
136
+ "pisell2.ticket-booking.now": string;
137
+ "pisell2.ticket-booking.start-time": string;
138
+ "pisell2.ticket-booking.create-time": string;
139
+ "pisell2.ticket-booking.customer": string;
140
+ "pisell2.ticket-booking.total": string;
141
+ "pisell2.ticket-booking.search": string;
142
+ "pisell2.ticket-booking.refresh-success": string;
143
+ "pisell2.ticket-booking.loading": string;
144
+ "pisell2.ticket-booking.appointment-not-found": string;
145
+ "pisell2.ticket-booking.scan": string;
146
+ "pisell2.ticket-booking.create-new": string;
147
+ "pisell2.ticket-booking.add-to-cart": string;
148
+ "pisell2.ticket-booking.not-available-title": string;
149
+ "pisell2.ticket-booking.not-available-ok": string;
150
+ "pisell2.ticket-booking.in-cart": (number: number) => string;
169
151
  };
170
152
  };
171
153
  export default _default;
@@ -23,7 +23,7 @@ __export(locales_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(locales_exports);
25
25
  var locales_default = {
26
- en: {
26
+ "en": {
27
27
  "pisell2.ticket-booking.info": "Info",
28
28
  "pisell2.ticket-booking.notes": "Notes",
29
29
  "pisell2.ticket-booking.forms": "Forms",
@@ -71,13 +71,7 @@ var locales_default = {
71
71
  "pisell2.ticket-booking.add-to-cart": "Added to Cart",
72
72
  "pisell2.ticket-booking.not-available-title": "Sorry, Not available at current time.",
73
73
  "pisell2.ticket-booking.not-available-ok": "OK",
74
- "pisell2.ticket-booking.in-cart": (number) => `${number} in cart`,
75
- "pisell2.product.card.cart-items": (number) => `${number}items`,
76
- "pisell2.product.card.subtotal": "Subtotal",
77
- "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`,
78
- "pisell2.product.card.day": (val) => `${val > 1 ? " days" : " day"}`,
79
- "pisell2.product.card.day.event": (val) => `${val > 1 ? " events" : " event"}`,
80
- "pisell2.product.card.minute": (val) => `${val > 1 ? " minutes" : " minute"}`
74
+ "pisell2.ticket-booking.in-cart": (number) => `${number} in cart`
81
75
  },
82
76
  "zh-CN": {
83
77
  "pisell2.ticket-booking.info": "信息",
@@ -127,13 +121,7 @@ var locales_default = {
127
121
  "pisell2.ticket-booking.add-to-cart": "已加入购物车",
128
122
  "pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售时间。",
129
123
  "pisell2.ticket-booking.not-available-ok": "好的",
130
- "pisell2.product.card.cart-items": (number) => `${number}件商品`,
131
- "pisell2.product.card.subtotal": "小计",
132
- "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`,
133
- "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`,
134
- "pisell2.product.card.day": (val) => "天",
135
- "pisell2.product.card.day.event": (val) => "个活动",
136
- "pisell2.product.card.minute": (val) => "分钟"
124
+ "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`
137
125
  },
138
126
  "zh-HK": {
139
127
  "pisell2.ticket-booking.info": "資訊",
@@ -183,12 +171,6 @@ var locales_default = {
183
171
  "pisell2.ticket-booking.add-to-cart": "已加入购物车",
184
172
  "pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售時間。",
185
173
  "pisell2.ticket-booking.not-available-ok": "好的",
186
- "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`,
187
- "pisell2.product.card.cart-items": (number) => `${number}件商品`,
188
- "pisell2.product.card.subtotal": "小計",
189
- "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`,
190
- "pisell2.product.card.day": (val) => "天",
191
- "pisell2.product.card.day.event": (val) => "个活動",
192
- "pisell2.product.card.minute": (val) => "分鐘"
174
+ "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`
193
175
  }
194
176
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.100",
3
+ "version": "3.3.102",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,7 +62,7 @@
62
62
  "@pisell/utils": "3.0.0",
63
63
  "@pisell/materials": "3.3.35",
64
64
  "@pisell/icon": "0.0.11",
65
- "@pisell/date-picker": "3.0.4"
65
+ "@pisell/date-picker": "3.0.2"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",
@@ -1,41 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any) => any;
19
- export interface ResourceItem {
20
- [key: string]: any;
21
- }
22
- /**
23
- * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
24
- * @description:
25
- * @param {object} resource
26
- * @return {*}
27
- * @Author: jinglin.tan
28
- */
29
- export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
30
- export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
31
- /**
32
- * @title: 格式化商品单价
33
- * @description:
34
- * @param {any} item
35
- * @return {*}
36
- * @Author: WangHan
37
- * @Date: 2024-12-23 12:05
38
- */
39
- export declare const formatProductPrice: (item: any) => number;
40
- export declare const formatValues: (state: any) => any;
41
- export declare const checkHolderIsError: (state: any) => any;
@@ -1,23 +0,0 @@
1
- import { State } from '../store';
2
- import { ModeEnum } from '../const';
3
- export declare const getStep: (mode?: ModeEnum) => State['steps'];
4
- declare const _default: (params: any) => State;
5
- export default _default;
6
- export declare enum EVisibleButtonType {
7
- /** 取消按钮 */
8
- CancelButton = "CancelButton",
9
- /** 等待按钮 */
10
- WaitButton = "WaitButton"
11
- }
12
- export declare enum LinklyActionStatus {
13
- /** 空 */
14
- Empty = "Empty",
15
- /** 取消 */
16
- Cancel = "Cancel",
17
- /** 取消中 */
18
- CancelWaiting = "CancelWaiting",
19
- /** 签名 */
20
- Signature = "Signature",
21
- /** 签名等待中 */
22
- SignatureWaiting = "SignatureWaiting"
23
- }
@@ -1,82 +0,0 @@
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
- var _excluded = ["order_id", "name", "symbol", "amount", "mode", "number", "pay", "device", "net", "client"];
3
- 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; }
4
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- 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; }
9
- 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; }
10
- import { locales } from '@pisell/utils';
11
- import { ClientEnum, EftposEnum, ModeEnum, PayRouteEnum, StatusEnum } from "../const";
12
- export var getStep = function getStep() {
13
- var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ModeEnum.Pay;
14
- return [{
15
- key: Date.now(),
16
- title: locales.getText('page.eftpos-pay.text.loading')(mode),
17
- // 'Payment in process...',
18
- text: locales.getText('page.eftpos-pay.text.waiting.processing'),
19
- // 'Waiting for the processing...',
20
- warn: '',
21
- tip: locales.getText('page.eftpos-pay.text.processing'),
22
- // 'processing...',
23
- status: StatusEnum.Loading
24
- }];
25
- };
26
- export default (function (params) {
27
- var _ref = params || {
28
- mode: ModeEnum.Pay
29
- },
30
- order_id = _ref.order_id,
31
- name = _ref.name,
32
- symbol = _ref.symbol,
33
- amount = _ref.amount,
34
- mode = _ref.mode,
35
- number = _ref.number,
36
- pay = _ref.pay,
37
- device = _ref.device,
38
- net = _ref.net,
39
- client = _ref.client,
40
- other = _objectWithoutProperties(_ref, _excluded);
41
- console.log('params =>>>>>> ', params);
42
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
43
- order_id: order_id,
44
- name: name,
45
- symbol: symbol,
46
- amount: amount,
47
- mode: mode,
48
- eftpos: EftposEnum.Linkly,
49
- key: Date.now(),
50
- step: 0,
51
- type: PayRouteEnum.Step,
52
- title: locales.getText('page.eftpos-pay.text.loading')(mode),
53
- component: '',
54
- status: StatusEnum.Loading,
55
- steps: getStep(mode),
56
- render: true,
57
- client: client !== 'undefined' ? client : ClientEnum.Merchant,
58
- warn: '',
59
- custom: other || {}
60
- }, typeof net !== 'undefined' ? {
61
- net: net
62
- } : {}), typeof number !== 'undefined' ? {
63
- number: number
64
- } : {}), typeof pay !== 'undefined' ? {
65
- pay: pay
66
- } : {}), typeof device !== 'undefined' ? {
67
- device: device
68
- } : {});
69
- });
70
- export var EVisibleButtonType = /*#__PURE__*/function (EVisibleButtonType) {
71
- EVisibleButtonType["CancelButton"] = "CancelButton";
72
- EVisibleButtonType["WaitButton"] = "WaitButton";
73
- return EVisibleButtonType;
74
- }({});
75
- export var LinklyActionStatus = /*#__PURE__*/function (LinklyActionStatus) {
76
- LinklyActionStatus["Empty"] = "Empty";
77
- LinklyActionStatus["Cancel"] = "Cancel";
78
- LinklyActionStatus["CancelWaiting"] = "CancelWaiting";
79
- LinklyActionStatus["Signature"] = "Signature";
80
- LinklyActionStatus["SignatureWaiting"] = "SignatureWaiting";
81
- return LinklyActionStatus;
82
- }({});
@@ -1,2 +0,0 @@
1
- export * from './normal';
2
- export * from './useTimeQuery';
@@ -1,2 +0,0 @@
1
- export * from "./normal";
2
- export * from "./useTimeQuery";
@@ -1,30 +0,0 @@
1
- /**
2
- * 支付或退款
3
- * @param failAction 失败回调
4
- */
5
- export declare const useLinklyPayOrRefund: (handleCheck: () => boolean) => {
6
- action: {
7
- pay: import("ahooks/lib/useRequest/src/types").Result<any, [data: any]>;
8
- };
9
- payOrRefund: (resultQuery: any, handleLinklySuccess: any) => void;
10
- };
11
- /**
12
- * @title: 取消支付或退款
13
- * @description: 取消支付或退款调用接口后不管成功还是失败都需要调用支付查询接口
14
- */
15
- export declare const useLinklyCancel: (handleCheck: () => boolean) => {
16
- action: {
17
- cancel: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
18
- };
19
- linklyCancel: (resultQuery: any) => void;
20
- };
21
- /**
22
- * @title: 支付或退款签名
23
- * @description: 支付或退款签名调用接口后不管成功还是失败都需要调用支付查询接口
24
- */
25
- export declare const useLinklySignature: (handleCheck: () => boolean) => {
26
- action: {
27
- signature: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
28
- };
29
- linklySignature: (status: number, resultQuery: any) => void;
30
- };