@pisell/private-materials 3.3.107 → 3.4.2

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 (283) 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 +13 -13
  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 +0 -1
  12. package/es/components/Sales/Cart/index.js +9 -8
  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.d.ts +6 -1
  20. package/es/components/Sales/Checkout/utils.js +8 -9
  21. package/es/components/Sales/Customer/index.d.ts +1 -0
  22. package/es/components/Sales/Customer/index.js +1 -0
  23. package/es/components/Sales/Summary/index.d.ts +0 -10
  24. package/es/components/Sales/Summary/index.js +2 -17
  25. package/es/components/Sales/Summary/serve.d.ts +0 -1
  26. package/es/components/Sales/Summary/serve.js +0 -6
  27. package/es/components/Sales/Summary/utils.d.ts +0 -15
  28. package/es/components/Sales/Summary/utils.js +1 -43
  29. package/es/components/appointmentBooking/components/Cart/Item/index.js +0 -1
  30. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  31. package/es/components/appointmentBooking/components/Content/index.js +1 -15
  32. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  33. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  34. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  35. package/es/components/appointmentBooking/components/Form/index.js +1 -1
  36. package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  37. package/es/components/appointmentBooking/components/Form/utils.js +17 -15
  38. package/es/components/appointmentBooking/components/Header/index.js +2 -1
  39. package/es/components/appointmentBooking/components/Resource/index.js +0 -1
  40. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  41. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  42. package/es/components/appointmentBooking/deposit/index.js +2 -4
  43. package/es/components/appointmentBooking/index.js +0 -14
  44. package/es/components/appointmentBooking/index.less +1 -1
  45. package/es/components/booking/addons/model.d.ts +1 -10
  46. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  47. package/es/components/booking/components/browserSelect/index.js +1 -1
  48. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  49. package/es/components/booking/components/voucher/index.js +2 -2
  50. package/es/components/booking/forms/model.d.ts +1 -10
  51. package/es/components/booking/forms/model.js +5 -5
  52. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  53. package/es/components/booking/info/model.d.ts +1 -10
  54. package/es/components/booking/info/service/like/index.d.ts +0 -1
  55. package/es/components/booking/info/service/like/index.js +1 -1
  56. package/es/components/booking/info/service/serviceManager/index.js +4 -4
  57. package/es/components/booking/info2/index.js +6 -4
  58. package/es/components/booking/info2/utils.d.ts +4 -0
  59. package/es/components/booking/materiels/startTime/index.js +1 -1
  60. package/es/components/booking/model.d.ts +1 -9
  61. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  62. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  63. package/es/components/booking/notes/model.d.ts +1 -10
  64. package/es/components/booking/notes/model.js +5 -5
  65. package/es/components/booking/payments/model.d.ts +1 -10
  66. package/es/components/booking/payments/model.js +5 -5
  67. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  68. package/es/components/eftpos/form/index.d.ts +0 -1
  69. package/es/components/eftpos/group/index.d.ts +0 -1
  70. package/es/components/eftpos/hooks.d.ts +0 -1
  71. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  72. package/es/components/eftpos/icon/device.d.ts +0 -1
  73. package/es/components/eftpos/receipt/index.d.ts +0 -1
  74. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  75. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  76. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  77. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  78. package/es/components/eftposPay/const.d.ts +1 -4
  79. package/es/components/eftposPay/const.js +1 -3
  80. package/es/components/eftposPay/hooks.d.ts +1 -1
  81. package/es/components/eftposPay/hooks.js +1 -3
  82. package/es/components/eftposPay/index.js +1 -1
  83. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  84. package/es/components/eftposPay/manufacturer.js +0 -4
  85. package/es/components/eftposPay/pay.d.ts +1 -1
  86. package/es/components/eftposPay/pay.js +2 -6
  87. package/es/components/eftposPay/store/index.d.ts +1 -1
  88. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  89. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +28 -31
  90. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  91. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  94. package/es/components/eventBooking/components/bookingDetailModal/index.js +1 -3
  95. package/es/components/eventBooking/locales.d.ts +0 -24
  96. package/es/components/eventBooking/locales.js +3 -27
  97. package/es/components/listComponent/index.js +5 -5
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  100. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  101. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  102. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  103. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  104. package/es/components/pay/toC/PaymentMethods/index.js +74 -26
  105. package/es/components/pay/toC/index.js +46 -14
  106. package/es/components/pay/toC/model.d.ts +1 -9
  107. package/es/components/productExtension/card/index.js +3 -3
  108. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  109. package/es/components/productExtension/fields/Forms/index.js +12 -12
  110. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  111. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  112. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  113. package/es/components/productExtension/server.js +2 -2
  114. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  115. package/es/components/schedules/calendar/index.js +4 -4
  116. package/es/components/schedules/calendar/serve.js +2 -2
  117. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  118. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  119. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  120. package/es/components/schedules/components/ResourceList/index.js +1 -1
  121. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  122. package/es/components/schedules/components/Search/index.js +5 -5
  123. package/es/components/schedules/model.d.ts +1 -9
  124. package/es/components/schedules/model.js +5 -5
  125. package/es/components/schedules/openHours/index.js +1 -1
  126. package/es/components/schedules/openHours/serve.js +2 -2
  127. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  128. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  129. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  130. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  131. package/es/components/schedules/products/serve.js +2 -2
  132. package/es/components/schedules/products/utils.js +5 -5
  133. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  134. package/es/components/schedules/resources/detail/index.js +10 -10
  135. package/es/components/schedules/resources/list/index.js +2 -2
  136. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  137. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  138. package/es/components/schedules/resources/serve.js +2 -2
  139. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  140. package/es/components/schedules/utils.d.ts +1 -1
  141. package/es/components/schedules/utils.js +4 -4
  142. package/es/components/selectModal/index.js +2 -2
  143. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  144. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  145. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  146. package/es/components/wallet/Detail/model.d.ts +1 -13
  147. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  148. package/es/components/wallet/PointCard/model.d.ts +1 -13
  149. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  150. package/es/components/wallet/Voucher/model.d.ts +1 -13
  151. package/es/components/wallet/model.d.ts +1 -9
  152. package/es/hooks/useComponents.js +1 -1
  153. package/es/utils/index.d.ts +1 -1
  154. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  155. package/lib/components/Sales/Cart/index.js +8 -5
  156. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  157. package/lib/components/Sales/Cart/utils.js +0 -117
  158. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  159. package/lib/components/Sales/Checkout/index.js +7 -39
  160. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  161. package/lib/components/Sales/Checkout/serve.js +2 -7
  162. package/lib/components/Sales/Checkout/utils.d.ts +6 -1
  163. package/lib/components/Sales/Checkout/utils.js +5 -5
  164. package/lib/components/Sales/Customer/index.d.ts +1 -0
  165. package/lib/components/Sales/Customer/index.js +1 -0
  166. package/lib/components/Sales/Summary/index.d.ts +0 -10
  167. package/lib/components/Sales/Summary/index.js +1 -7
  168. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  169. package/lib/components/Sales/Summary/serve.js +0 -32
  170. package/lib/components/Sales/Summary/utils.d.ts +0 -15
  171. package/lib/components/Sales/Summary/utils.js +1 -30
  172. package/lib/components/appointmentBooking/components/Cart/Item/index.js +0 -1
  173. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  174. package/lib/components/appointmentBooking/components/Content/index.js +1 -6
  175. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  176. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  177. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  178. package/lib/components/appointmentBooking/components/Form/index.js +6 -1
  179. package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  180. package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
  181. package/lib/components/appointmentBooking/components/Header/index.js +1 -0
  182. package/lib/components/appointmentBooking/components/Resource/index.js +0 -1
  183. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  184. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  185. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  186. package/lib/components/appointmentBooking/index.js +0 -11
  187. package/lib/components/appointmentBooking/index.less +1 -1
  188. package/lib/components/booking/addons/model.d.ts +1 -10
  189. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  190. package/lib/components/booking/components/voucher/index.js +2 -2
  191. package/lib/components/booking/forms/model.d.ts +1 -10
  192. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  193. package/lib/components/booking/info/model.d.ts +1 -10
  194. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  195. package/lib/components/booking/info/service/serviceManager/index.js +3 -3
  196. package/lib/components/booking/info2/index.js +21 -11
  197. package/lib/components/booking/info2/utils.d.ts +4 -0
  198. package/lib/components/booking/model.d.ts +1 -9
  199. package/lib/components/booking/notes/model.d.ts +1 -10
  200. package/lib/components/booking/payments/model.d.ts +1 -10
  201. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  202. package/lib/components/eftpos/form/index.d.ts +0 -1
  203. package/lib/components/eftpos/group/index.d.ts +0 -1
  204. package/lib/components/eftpos/hooks.d.ts +0 -1
  205. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  206. package/lib/components/eftpos/icon/device.d.ts +0 -1
  207. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  208. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  209. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  210. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  211. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  212. package/lib/components/eftposPay/const.d.ts +1 -4
  213. package/lib/components/eftposPay/const.js +0 -2
  214. package/lib/components/eftposPay/hooks.d.ts +1 -1
  215. package/lib/components/eftposPay/hooks.js +4 -11
  216. package/lib/components/eftposPay/index.js +1 -1
  217. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  218. package/lib/components/eftposPay/manufacturer.js +0 -6
  219. package/lib/components/eftposPay/pay.d.ts +1 -1
  220. package/lib/components/eftposPay/pay.js +2 -13
  221. package/lib/components/eftposPay/store/index.d.ts +1 -1
  222. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  223. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -21
  224. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  225. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  227. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  228. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  229. package/lib/components/eventBooking/locales.d.ts +0 -24
  230. package/lib/components/eventBooking/locales.js +3 -27
  231. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  232. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  233. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  234. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  235. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  236. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  237. package/lib/components/pay/toC/PaymentMethods/index.js +39 -12
  238. package/lib/components/pay/toC/index.js +29 -9
  239. package/lib/components/pay/toC/model.d.ts +1 -9
  240. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  241. package/lib/components/schedules/model.d.ts +1 -9
  242. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  243. package/lib/components/schedules/utils.d.ts +1 -1
  244. package/lib/components/schedules/utils.js +1 -1
  245. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  246. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  247. package/lib/components/ticketBooking/components/ticketBooking/index.js +25 -25
  248. package/lib/components/wallet/Detail/model.d.ts +1 -13
  249. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  250. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  251. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  252. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  253. package/lib/components/wallet/model.d.ts +1 -9
  254. package/lib/utils/index.d.ts +1 -1
  255. package/package.json +4 -4
  256. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  257. package/es/components/eftposPay/linkly/const.js +0 -82
  258. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  259. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  260. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  261. package/es/components/eftposPay/linkly/hooks/normal.js +0 -321
  262. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  263. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  264. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  265. package/es/components/eftposPay/linkly/index.js +0 -197
  266. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  267. package/es/components/eftposPay/linkly/service.js +0 -81
  268. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  269. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  270. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  271. package/lib/components/eftposPay/linkly/const.js +0 -102
  272. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  273. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  274. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  275. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -242
  276. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  277. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  278. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  279. package/lib/components/eftposPay/linkly/index.js +0 -208
  280. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  281. package/lib/components/eftposPay/linkly/service.js +0 -55
  282. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  283. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -5,8 +5,7 @@ export declare enum EftposEnum {
5
5
  Tyro = "tyro",
6
6
  /** 后端支付 - 支付 + 退款 */
7
7
  Windcave = "windcave",
8
- Stripe = "stripe",
9
- Linkly = "linkly"
8
+ Stripe = "stripe"
10
9
  }
11
10
  export declare enum StatusEnum {
12
11
  Loading = "loading",
@@ -148,8 +147,6 @@ export declare enum PayStatus {
148
147
  'Success' = "200",
149
148
  /** 未生成交易记录 */
150
149
  'NoPay' = "4004",
151
- /** 配对失效 */
152
- 'PairingFailure' = "606020",
153
150
  /** 支付失败 */
154
151
  'Unknown' = "701000",
155
152
  /** 交易请求超时 */
@@ -35,7 +35,6 @@ var EftposEnum = /* @__PURE__ */ ((EftposEnum2) => {
35
35
  EftposEnum2["Tyro"] = "tyro";
36
36
  EftposEnum2["Windcave"] = "windcave";
37
37
  EftposEnum2["Stripe"] = "stripe";
38
- EftposEnum2["Linkly"] = "linkly";
39
38
  return EftposEnum2;
40
39
  })(EftposEnum || {});
41
40
  var StatusEnum = /* @__PURE__ */ ((StatusEnum2) => {
@@ -89,7 +88,6 @@ var PayRouteEnum = /* @__PURE__ */ ((PayRouteEnum2) => {
89
88
  var PayStatus = /* @__PURE__ */ ((PayStatus2) => {
90
89
  PayStatus2["Success"] = "200";
91
90
  PayStatus2["NoPay"] = "4004";
92
- PayStatus2["PairingFailure"] = "606020";
93
91
  PayStatus2["Unknown"] = "701000";
94
92
  PayStatus2["Timeout"] = "701001";
95
93
  PayStatus2["PayOtherEftposFailed"] = "701003";
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -128,7 +128,6 @@ var useFail = (index) => {
128
128
  return;
129
129
  }
130
130
  const [code] = [`${res.code}`];
131
- console.log("code---->>>>>>>", code);
132
131
  if (code === import_const.PayStatus.Unknown) {
133
132
  steps[index].title = import_utils.locales.getText("page.eftpos-pay.text.failed")(
134
133
  modeRef.current
@@ -169,12 +168,8 @@ var useFail = (index) => {
169
168
  if (isMark) {
170
169
  if (clientRef.current === import_const2.ClientEnum.User) {
171
170
  steps[index].status = "fail";
172
- steps[index].title = import_utils.locales.getText(
173
- "page.eftpos-pay.text.timedout.title"
174
- );
175
- steps[index].fail = import_utils.locales.getText(
176
- "page.eftpos-pay.text.transaction.eftpos.fail.other"
177
- );
171
+ steps[index].title = import_utils.locales.getText("page.eftpos-pay.text.timedout.title");
172
+ steps[index].fail = import_utils.locales.getText("page.eftpos-pay.text.transaction.eftpos.fail.other");
178
173
  steps[index].custom = steps[index].custom ? { ...steps[index].custom, isPosNetworkError: true } : { isPosNetworkError: true };
179
174
  dispatch((0, import_store.updateSteps)(steps));
180
175
  dispatch((0, import_store.updateComponent)("Fail"));
@@ -315,9 +310,7 @@ ${import_utils.locales.getText(
315
310
  )}
316
311
  ${import_utils.locales.getText(
317
312
  "page.eftpos-pay.text.transaction.eftpos.fail.if"
318
- )(modeRef.current)}` : import_utils.locales.getText(
319
- "page.eftpos-pay.text.transaction.eftpos.fail.other"
320
- );
313
+ )(modeRef.current)}` : import_utils.locales.getText("page.eftpos-pay.text.transaction.eftpos.fail.other");
321
314
  steps[index].status = "warn";
322
315
  steps[index].custom = steps[index].custom ? { ...steps[index].custom, isPosNetworkError: true } : { isPosNetworkError: true };
323
316
  dispatch((0, import_store.updateSteps)(steps));
@@ -366,7 +359,7 @@ ${import_utils.locales.getText(
366
359
  );
367
360
  return;
368
361
  }
369
- if (code === import_const.PayStatus.UserConfigError || code === import_const.PayStatus.PairingFailure) {
362
+ if (code === import_const.PayStatus.UserConfigError) {
370
363
  steps[index].title = import_utils.locales.getText(
371
364
  "page.eftpos-pay.text.transaction.user.config.title"
372
365
  );
@@ -139,7 +139,7 @@ var eftposPay_default = (props) => {
139
139
  }, [mode, state]);
140
140
  (0, import_react.useEffect)(() => {
141
141
  document.body.id = "body";
142
- console.log("初始化 ........112218017777");
142
+ console.log("初始化 ........11221801");
143
143
  }, []);
144
144
  console.log("props?.params?.device_number = ", (_e = props == null ? void 0 : props.params) == null ? void 0 : _e.device_number);
145
145
  const api = (0, import_react.useMemo)(() => {
@@ -3,5 +3,4 @@ export { getAmonunt } from './helper';
3
3
  export { default as Payo } from './payo';
4
4
  export { default as Windcave } from './windcave/windcave';
5
5
  export { default as Tyro } from './tyro';
6
- export { default as Linkly } from './linkly';
7
6
  export declare const getInitState: (type: string, params?: any) => State;
@@ -29,7 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/eftposPay/manufacturer.tsx
30
30
  var manufacturer_exports = {};
31
31
  __export(manufacturer_exports, {
32
- Linkly: () => import_linkly.default,
33
32
  Payo: () => import_payo.default,
34
33
  Tyro: () => import_tyro.default,
35
34
  Windcave: () => import_windcave.default,
@@ -41,12 +40,10 @@ var import_const = require("./const");
41
40
  var import_const2 = __toESM(require("./payo/const"));
42
41
  var import_const3 = __toESM(require("./tyro/const"));
43
42
  var import_const4 = __toESM(require("./windcave/const"));
44
- var import_const5 = __toESM(require("./linkly/const"));
45
43
  var import_helper = require("./helper");
46
44
  var import_payo = __toESM(require("./payo"));
47
45
  var import_windcave = __toESM(require("./windcave/windcave"));
48
46
  var import_tyro = __toESM(require("./tyro"));
49
- var import_linkly = __toESM(require("./linkly"));
50
47
  var getInitState = (type, params) => {
51
48
  switch (type) {
52
49
  case import_const.EftposEnum.Payo:
@@ -55,15 +52,12 @@ var getInitState = (type, params) => {
55
52
  return (0, import_const4.default)(params);
56
53
  case import_const.EftposEnum.Tyro:
57
54
  return (0, import_const3.default)(params);
58
- case import_const.EftposEnum.Linkly:
59
- return (0, import_const5.default)(params);
60
55
  default:
61
56
  throw new Error("未知的厂商类型");
62
57
  }
63
58
  };
64
59
  // Annotate the CommonJS export names for ESM import in node:
65
60
  0 && (module.exports = {
66
- Linkly,
67
61
  Payo,
68
62
  Tyro,
69
63
  Windcave,
@@ -6,7 +6,7 @@ import './index.less';
6
6
  * @Author: hongbing.wang
7
7
  * @Date: 2024-08-20 14:59
8
8
  */
9
- declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client, }: PayProps & {
9
+ declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client }: PayProps & {
10
10
  terminal: {
11
11
  network: boolean;
12
12
  };
@@ -145,7 +145,6 @@ var Pay = ({
145
145
  }
146
146
  };
147
147
  }, []);
148
- console.log("data =>>>>>> ", data);
149
148
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.render ? /* @__PURE__ */ import_react.default.createElement(
150
149
  "div",
151
150
  {
@@ -161,16 +160,7 @@ var Pay = ({
161
160
  }
162
161
  ),
163
162
  data.eftpos === "payo" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Payo, { api, onChange }, data.warn && data.status !== import_const.StatusEnum.Success && client === import_const.ClientEnum.Merchant ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn" }, data.warn) : null, data.status === import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, import_utils.locales.getText("page.eftpos-pay.text.transaction.end")) : null) : null,
164
- data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(
165
- import_manufacturer.Tyro,
166
- {
167
- api,
168
- onChange,
169
- key: data.key,
170
- url: tyroUrl,
171
- version: tyroVersion
172
- }
173
- ) : null,
163
+ data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Tyro, { api, onChange, key: data.key, url: tyroUrl, version: tyroVersion }) : null,
174
164
  data.eftpos === "windcave" ? /* @__PURE__ */ import_react.default.createElement(
175
165
  import_manufacturer.Windcave,
176
166
  {
@@ -179,8 +169,7 @@ var Pay = ({
179
169
  key: data.key,
180
170
  formatAmount
181
171
  }
182
- ) : null,
183
- data.eftpos === "linkly" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Linkly, { key: data.key, api, onChange }) : null
172
+ ) : null
184
173
  ) : null, data.type === import_const.PayRouteEnum.Unset && Comm ? /* @__PURE__ */ import_react.default.createElement(
185
174
  Comm,
186
175
  {
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "stripe" | "payo" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -43,7 +43,6 @@ var import_serve = require("../../../../../Sales/Event/serve");
43
43
  var import_ahooks = require("ahooks");
44
44
  var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
45
45
  var import_index = require("./index.less");
46
- var import_utils3 = require("../../../../../appointmentBooking/utils");
47
46
  var ContinueButton = () => {
48
47
  var _a, _b;
49
48
  const { data } = (0, import_Sales.useSales)();
@@ -54,11 +53,9 @@ var ContinueButton = () => {
54
53
  onCheckout,
55
54
  createBooking,
56
55
  onCheckBeforeBooking,
57
- checkBeforeBooking,
58
- freePay
56
+ checkBeforeBooking
59
57
  } = (0, import_Sales.useCheckout)();
60
58
  const { openLoginModal, isLogin } = (0, import_Sales.useCustomer)();
61
- const { deposit, isAgreeDepositPolicy } = (0, import_Sales.useSummary)();
62
59
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
63
60
  const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
64
61
  const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
@@ -71,19 +68,24 @@ var ContinueButton = () => {
71
68
  type: "pisell1.goProductForm",
72
69
  data: params,
73
70
  callback: async (e) => {
74
- var _a2;
71
+ var _a2, _b2, _c;
75
72
  if ((e == null ? void 0 : e.type) === "close") {
76
73
  return;
77
74
  }
78
- const value = (0, import_utils2.formatValues)(data, false, {
79
- relation_forms: e
75
+ const value = (0, import_utils2.formatValues)({
76
+ state: data,
77
+ platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform,
78
+ excludeDisabled: false,
79
+ extra: {
80
+ relation_forms: e
81
+ }
80
82
  });
81
83
  const result = await onCheckout(value);
82
84
  if (result == null ? void 0 : result.success) {
83
85
  removeSessionStorage();
84
86
  } else {
85
87
  (0, import_materials.PisellToast)({
86
- content: ((_a2 = result == null ? void 0 : result.err) == null ? void 0 : _a2.message) || ""
88
+ content: ((_c = result == null ? void 0 : result.err) == null ? void 0 : _c.message) || ""
87
89
  });
88
90
  }
89
91
  }
@@ -229,13 +231,12 @@ var ContinueButton = () => {
229
231
  handleNextStep();
230
232
  };
231
233
  const handleContinue = async () => {
232
- var _a2;
234
+ var _a2, _b2;
233
235
  if (isLastStep) {
234
- const value = (0, import_utils2.formatValues)(data);
235
- if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
236
- (0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
237
- return;
238
- }
236
+ const value = (0, import_utils2.formatValues)({
237
+ state: data,
238
+ platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform
239
+ });
239
240
  const checkRes = await onCheckBeforeBooking(value);
240
241
  if ((checkRes == null ? void 0 : checkRes.result) === false) {
241
242
  setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
@@ -271,13 +272,8 @@ var ContinueButton = () => {
271
272
  }, [currentStepData == null ? void 0 : currentStepData.key]);
272
273
  const confirmLoading = (0, import_react.useMemo)(() => {
273
274
  if (!isLastStep) return false;
274
- return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading) || (freePay == null ? void 0 : freePay.loading);
275
- }, [
276
- isLastStep,
277
- createBooking == null ? void 0 : createBooking.loading,
278
- checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
279
- freePay == null ? void 0 : freePay.loading
280
- ]);
275
+ return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
276
+ }, [isLastStep, createBooking == null ? void 0 : createBooking.loading, checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading]);
281
277
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
282
278
  import_materials.Button,
283
279
  {
@@ -40,9 +40,8 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
40
40
  var import_index = require("./index.less");
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var Total = ({ className, isFooter }) => {
43
- var _a, _b, _c, _d, _e, _f, _g, _h;
44
- const { cartData } = (0, import_Sales.useCart)();
45
- const { taxTitle, totalTaxFee, isPriceIncludeTax, total, deposit } = (0, import_Sales.useSummary)();
43
+ var _a, _b, _c, _d, _e, _f;
44
+ const { taxTitle, totalTaxFee, isPriceIncludeTax, total } = (0, import_Sales.useSummary)();
46
45
  const context = (0, import_useEngineContext.default)();
47
46
  console.log(
48
47
  taxTitle,
@@ -50,10 +49,8 @@ var Total = ({ className, isFooter }) => {
50
49
  totalTaxFee,
51
50
  total,
52
51
  (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getSymbolic) == null ? void 0 : _c.call(_b),
53
- deposit,
54
52
  "wh97978"
55
53
  );
56
- const showDeposit = ((_d = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _d.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit);
57
54
  return /* @__PURE__ */ import_react.default.createElement("div", { className: `event-total-wrap ${className}` }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "gst-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", null, taxTitle, isFooter ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: totalTaxFee, showCurrencySymbol: true })) : null, /* @__PURE__ */ import_react.default.createElement(
58
55
  "div",
59
56
  {
@@ -61,16 +58,16 @@ var Total = ({ className, isFooter }) => {
61
58
  [["total-gst-wrap"]]: !isPriceIncludeTax && Number(totalTaxFee) > 0
62
59
  })
63
60
  },
64
- /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, isFooter && showDeposit ? import_utils.locales.getText("pisell2.appointment.deposit") : import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
61
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
65
62
  import_materials.PisellText.Amount,
66
63
  {
67
- value: ((_e = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _e.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? deposit == null ? void 0 : deposit.total : total,
64
+ value: total,
68
65
  showCurrencySymbol: true,
69
66
  className: "event-amount"
70
67
  }
71
68
  ) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("span", { className: "gst" }, import_utils.locales.getText("pisell2.event.total.gst")(
72
69
  `${isFooter ? `${taxTitle}: ` : taxTitle}`,
73
- `${(_h = (_g = (_f = context == null ? void 0 : context.appHelper) == null ? void 0 : _f.utils) == null ? void 0 : _g.getSymbolic) == null ? void 0 : _h.call(_g)}${totalTaxFee}`
70
+ `${(_f = (_e = (_d = context == null ? void 0 : context.appHelper) == null ? void 0 : _d.utils) == null ? void 0 : _e.getSymbolic) == null ? void 0 : _f.call(_e)}${totalTaxFee}`
74
71
  )) : null),
75
72
  !isFooter ? /* @__PURE__ */ import_react.default.createElement(
76
73
  import_materials.PisellText.Amount,
@@ -39,10 +39,8 @@ var import_Sales = require("../../../../../Sales");
39
39
  var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
40
40
  var import_ContinueButton = __toESM(require("../ContinueButton"));
41
41
  var import_Total = __toESM(require("./Total"));
42
- var import_Deposit = __toESM(require("../Deposit"));
43
42
  var import_index = require("./index.less");
44
43
  var CartItem = () => {
45
- var _a;
46
44
  const { open, holderData, selectedHolderIds } = (0, import_Sales.useHolder)();
47
45
  const {
48
46
  deleteCartItem,
@@ -50,7 +48,7 @@ var CartItem = () => {
50
48
  cartData,
51
49
  addNoteToCartItem
52
50
  } = (0, import_Sales.useCart)();
53
- const { deposit } = (0, import_Sales.useSummary)();
51
+ const { subtotal } = (0, import_Sales.useSummary)();
54
52
  const { isLastStep } = (0, import_Sales.useStep)();
55
53
  const handleClickCard = (e, type, key) => {
56
54
  if (type === "note") {
@@ -88,7 +86,7 @@ var CartItem = () => {
88
86
  onChange: (e, type, key) => handleClickCard(e, type, key)
89
87
  }
90
88
  )),
91
- /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
89
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
92
90
  ), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
93
91
  };
94
92
  var Item_default = CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -239,7 +239,7 @@ var BookingDetailModal = (props) => {
239
239
  utils == null ? void 0 : utils.action({
240
240
  type: "pisell1.productDetail",
241
241
  data: {
242
- detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}, open_deposit: 1 },
242
+ detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
243
243
  isOS: false
244
244
  },
245
245
  callback: (data) => {
@@ -71,14 +71,6 @@ declare const _default: {
71
71
  'pisell2.event.capacity.limit.reached.tip': string;
72
72
  'pisell2.event.schedule.item.expand': string;
73
73
  'pisell2.event.schedule.item.collapse': string;
74
- 'pisell2.appointment.deposit': string;
75
- 'pisell2.appointment.deposit.agreed': string;
76
- 'pisell2.appointment.deposit.agree.policy': string;
77
- 'pisell2.appointment.deposit.and': string;
78
- 'pisell2.appointment.deposit.amount.tip1': string;
79
- 'pisell2.appointment.deposit.amount.tip2': string;
80
- 'pisell2.appointment.deposit.close': string;
81
- 'pisell2.appointment.booking.empty.data': string;
82
74
  };
83
75
  'zh-CN': {
84
76
  'pisell2.event.calendar.limit.unavailable': string;
@@ -152,14 +144,6 @@ declare const _default: {
152
144
  'pisell2.event.capacity.limit.reached.tip': string;
153
145
  'pisell2.event.schedule.item.expand': string;
154
146
  'pisell2.event.schedule.item.collapse': string;
155
- 'pisell2.appointment.deposit': string;
156
- 'pisell2.appointment.deposit.agreed': string;
157
- 'pisell2.appointment.deposit.agree.policy': string;
158
- 'pisell2.appointment.deposit.and': string;
159
- 'pisell2.appointment.deposit.amount.tip1': string;
160
- 'pisell2.appointment.deposit.amount.tip2': string;
161
- 'pisell2.appointment.deposit.close': string;
162
- 'pisell2.appointment.booking.empty.data': string;
163
147
  };
164
148
  'zh-HK': {
165
149
  'pisell2.event.calendar.limit.unavailable': string;
@@ -233,14 +217,6 @@ declare const _default: {
233
217
  'pisell2.event.capacity.limit.reached.tip': string;
234
218
  'pisell2.event.schedule.item.expand': string;
235
219
  'pisell2.event.schedule.item.collapse': string;
236
- 'pisell2.appointment.deposit': string;
237
- 'pisell2.appointment.deposit.agreed': string;
238
- 'pisell2.appointment.deposit.agree.policy': string;
239
- 'pisell2.appointment.deposit.and': string;
240
- 'pisell2.appointment.deposit.amount.tip1': string;
241
- 'pisell2.appointment.deposit.amount.tip2': string;
242
- 'pisell2.appointment.deposit.close': string;
243
- 'pisell2.appointment.booking.empty.data': string;
244
220
  };
245
221
  };
246
222
  export default _default;
@@ -94,15 +94,7 @@ var locales_default = {
94
94
  "pisell2.event.capacity.limit.reached.title": "Capacity limit reached",
95
95
  "pisell2.event.capacity.limit.reached.tip": "One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.",
96
96
  "pisell2.event.schedule.item.expand": "See more",
97
- "pisell2.event.schedule.item.collapse": "See less",
98
- "pisell2.appointment.deposit": "Deposit",
99
- "pisell2.appointment.deposit.agreed": "I have read and agree to the ",
100
- "pisell2.appointment.deposit.agree.policy": "You need to agree the policy to proceed",
101
- "pisell2.appointment.deposit.and": " & ",
102
- "pisell2.appointment.deposit.amount.tip1": " needs to be paid as deposit.",
103
- "pisell2.appointment.deposit.amount.tip2": " ",
104
- "pisell2.appointment.deposit.close": "Close",
105
- "pisell2.appointment.booking.empty.data": "No data"
97
+ "pisell2.event.schedule.item.collapse": "See less"
106
98
  },
107
99
  "zh-CN": {
108
100
  "pisell2.event.calendar.limit.unavailable": "不可预约",
@@ -175,15 +167,7 @@ var locales_default = {
175
167
  "pisell2.event.capacity.limit.reached.title": "活动名额已满",
176
168
  "pisell2.event.capacity.limit.reached.tip": "购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。",
177
169
  "pisell2.event.schedule.item.expand": "查看更多",
178
- "pisell2.event.schedule.item.collapse": "收起",
179
- "pisell2.appointment.deposit": "定金",
180
- "pisell2.appointment.deposit.agreed": "我已阅读并同意 ",
181
- "pisell2.appointment.deposit.agree.policy": "您需要同意协议才能继续",
182
- "pisell2.appointment.deposit.and": " 和 ",
183
- "pisell2.appointment.deposit.amount.tip1": "请支付 ",
184
- "pisell2.appointment.deposit.amount.tip2": " 定金。",
185
- "pisell2.appointment.deposit.close": "关闭",
186
- "pisell2.appointment.booking.empty.data": "暂无数据"
170
+ "pisell2.event.schedule.item.collapse": "收起"
187
171
  },
188
172
  "zh-HK": {
189
173
  "pisell2.event.calendar.limit.unavailable": "不可預約",
@@ -256,14 +240,6 @@ var locales_default = {
256
240
  "pisell2.event.capacity.limit.reached.title": "活動名額已滿",
257
241
  "pisell2.event.capacity.limit.reached.tip": "購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。",
258
242
  "pisell2.event.schedule.item.expand": "查看更多",
259
- "pisell2.event.schedule.item.collapse": "收起",
260
- "pisell2.appointment.deposit": "定金",
261
- "pisell2.appointment.deposit.agreed": "我已閱讀並同意 ",
262
- "pisell2.appointment.deposit.agree.policy": "您需要同意協議才能繼續",
263
- "pisell2.appointment.deposit.and": " 和 ",
264
- "pisell2.appointment.deposit.amount.tip1": "請支付 ",
265
- "pisell2.appointment.deposit.amount.tip2": " 定金。",
266
- "pisell2.appointment.deposit.close": "关闭",
267
- "pisell2.appointment.booking.empty.data": "暫無數據"
243
+ "pisell2.event.schedule.item.collapse": "收起"
268
244
  }
269
245
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -65,7 +65,7 @@ var isOfflinePayment = (type) => {
65
65
  ].includes(type);
66
66
  };
67
67
  var PaymentMethods = (props, ref) => {
68
- var _a, _b, _c;
68
+ var _a;
69
69
  const MWCreditCardRef2 = (0, import_react.useRef)(null);
70
70
  const SuperPayAliPayH5Ref2 = (0, import_react.useRef)(null);
71
71
  const StripePayRef2 = (0, import_react.useRef)(null);
@@ -83,9 +83,18 @@ var PaymentMethods = (props, ref) => {
83
83
  const context = (0, import_useEngineContext.default)();
84
84
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
85
85
  const init = async ({ type, payGroup }) => {
86
- var _a2, _b2;
86
+ var _a2, _b;
87
87
  const waitAmount = (payGroup == null ? void 0 : payGroup.wait_amount) || 0;
88
- const cards = (_b2 = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b2.length;
88
+ const cards = (_b = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b.length;
89
+ (0, import_utils2.sendWarningLog)({
90
+ title: "支付初始化",
91
+ content: [
92
+ { key: "type", value: type },
93
+ { key: "payGroup", value: JSON.stringify(payGroup) },
94
+ { key: "waitAmount", value: waitAmount },
95
+ { key: "cards", value: cards }
96
+ ]
97
+ });
89
98
  if (cards && (waitAmount <= 0 || isOfflinePayment(type))) {
90
99
  try {
91
100
  await (0, import_serve.walletPassPay)((0, import_utils.formatWalletPassParams)(payGroup));
@@ -98,6 +107,14 @@ var PaymentMethods = (props, ref) => {
98
107
  }
99
108
  });
100
109
  } catch (err) {
110
+ (0, import_utils2.sendWarningLog)({
111
+ title: "钱包支付失败 catch",
112
+ content: [
113
+ { key: "错误信息", value: (err == null ? void 0 : err.message) || "未知错误" },
114
+ { key: "错误堆栈", value: (err == null ? void 0 : err.stack) || "无堆栈信息" },
115
+ { key: "错误类型", value: (err == null ? void 0 : err.name) || "未知错误类型" }
116
+ ]
117
+ });
101
118
  return props.payCallback({
102
119
  key: "fail",
103
120
  data: {
@@ -109,17 +126,27 @@ var PaymentMethods = (props, ref) => {
109
126
  }
110
127
  }
111
128
  if (waitAmount <= 0) {
112
- (0, import_payGroup.removePayGroupFromStorage)(payGroup.order_id);
113
- props.payCallback({ key: "success" });
129
+ try {
130
+ (0, import_payGroup.removePayGroupFromStorage)(payGroup.order_id);
131
+ props.payCallback({ key: "success" });
132
+ } catch (err) {
133
+ (0, import_utils2.sendWarningLog)({
134
+ title: "跳转成功页面 catch",
135
+ content: [
136
+ { key: "错误信息", value: (err == null ? void 0 : err.message) || "未知错误" },
137
+ { key: "错误堆栈", value: (err == null ? void 0 : err.stack) || "无堆栈信息" },
138
+ { key: "错误类型", value: (err == null ? void 0 : err.name) || "未知错误类型" }
139
+ ]
140
+ });
141
+ }
114
142
  return;
115
143
  }
116
144
  await onPayByType({ type, payGroup });
117
145
  };
118
- console.log("paymentResult isAppEnv", (_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b), interaction, context);
119
146
  (0, import_react.useEffect)(() => {
120
- var _a2, _b2, _c2, _d;
121
- console.log("paymentResult isAppEnv", (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b2.call(_a2));
122
- if ((_d = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d.call(_c2)) {
147
+ var _a2, _b, _c, _d;
148
+ console.log("paymentResult isAppEnv", (_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b.call(_a2));
149
+ if ((_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.isAppEnv) == null ? void 0 : _d.call(_c)) {
123
150
  interaction.utils.mountFunction("global", "paymentResult", (strResult) => {
124
151
  console.log("paymentResult", strResult);
125
152
  if (!(0, import_utils2.isJson)(strResult)) return;
@@ -135,18 +162,18 @@ var PaymentMethods = (props, ref) => {
135
162
  }
136
163
  }, []);
137
164
  const onPayByType = async ({ type, payGroup }) => {
138
- var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
165
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
139
166
  console.log(type, payGroup);
140
167
  if (type === "mw.apple") {
141
168
  await ((_a2 = ApplePayRef2.current) == null ? void 0 : _a2.init({ payGroup }));
142
169
  return;
143
170
  }
144
171
  if (type === "mw.google") {
145
- await ((_b2 = GooglePayRef2.current) == null ? void 0 : _b2.init({ payGroup }));
172
+ await ((_b = GooglePayRef2.current) == null ? void 0 : _b.init({ payGroup }));
146
173
  return;
147
174
  }
148
175
  if (type === "mw.credit_card") {
149
- (_c2 = MWCreditCardRef2.current) == null ? void 0 : _c2.init({ payGroup });
176
+ (_c = MWCreditCardRef2.current) == null ? void 0 : _c.init({ payGroup });
150
177
  return;
151
178
  }
152
179
  if (type === "superpay.alipay.h5") {