@pisell/private-materials 3.3.93 → 3.3.95

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 (317) 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 +1 -16
  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.less +1 -1
  28. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  29. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  30. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  31. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  32. package/es/components/appointmentBooking/deposit/index.js +2 -4
  33. package/es/components/appointmentBooking/index.js +0 -14
  34. package/es/components/appointmentBooking/index.less +1 -1
  35. package/es/components/booking/addons/model.d.ts +10 -1
  36. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  37. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  38. package/es/components/booking/components/browserSelect/index.js +1 -1
  39. package/es/components/booking/components/footer/utils.js +46 -17
  40. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  41. package/es/components/booking/components/voucher/index.js +2 -2
  42. package/es/components/booking/forms/model.d.ts +10 -1
  43. package/es/components/booking/forms/model.js +5 -5
  44. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  45. package/es/components/booking/forms/table/index.d.ts +1 -0
  46. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  47. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  48. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  49. package/es/components/booking/info/index.d.ts +1 -0
  50. package/es/components/booking/info/model.d.ts +10 -1
  51. package/es/components/booking/info/service/like/index.d.ts +1 -0
  52. package/es/components/booking/info/service/like/index.js +1 -1
  53. package/es/components/booking/info/service2/utils.js +3 -2
  54. package/es/components/booking/materiels/startTime/index.js +1 -1
  55. package/es/components/booking/model.d.ts +9 -1
  56. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  57. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  58. package/es/components/booking/notes/model.d.ts +10 -1
  59. package/es/components/booking/notes/model.js +5 -5
  60. package/es/components/booking/payments/model.d.ts +10 -1
  61. package/es/components/booking/payments/model.js +5 -5
  62. package/es/components/booking/utils.d.ts +2 -2
  63. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  64. package/es/components/eftpos/form/index.d.ts +1 -0
  65. package/es/components/eftpos/group/index.d.ts +1 -0
  66. package/es/components/eftpos/hooks.d.ts +1 -0
  67. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  68. package/es/components/eftpos/icon/device.d.ts +1 -0
  69. package/es/components/eftpos/receipt/index.d.ts +1 -0
  70. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  71. package/es/components/eftposPay/amount.d.ts +1 -1
  72. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  73. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  74. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  75. package/es/components/eftposPay/const.d.ts +1 -4
  76. package/es/components/eftposPay/const.js +1 -3
  77. package/es/components/eftposPay/device.d.ts +1 -1
  78. package/es/components/eftposPay/hooks.d.ts +2 -2
  79. package/es/components/eftposPay/hooks.js +1 -3
  80. package/es/components/eftposPay/index.js +1 -1
  81. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  82. package/es/components/eftposPay/manufacturer.js +0 -4
  83. package/es/components/eftposPay/pay.d.ts +1 -1
  84. package/es/components/eftposPay/pay.js +2 -6
  85. package/es/components/eftposPay/store/index.d.ts +4 -4
  86. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  88. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  89. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  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/index.d.ts +2 -2
  98. package/es/components/index.js +2 -2
  99. package/es/components/listComponent/index.js +5 -5
  100. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  101. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  102. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  103. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  104. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  105. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  106. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  107. package/es/components/pay/toC/model.d.ts +9 -1
  108. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  109. package/es/components/productExtension/card/index.js +3 -3
  110. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  111. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  112. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  113. package/es/components/productExtension/fields/Forms/index.js +12 -12
  114. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  115. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  116. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  117. package/es/components/productExtension/server.js +2 -2
  118. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  119. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  120. package/es/components/schedules/calendar/index.js +4 -4
  121. package/es/components/schedules/calendar/serve.js +2 -2
  122. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  123. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  124. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  125. package/es/components/schedules/components/ResourceList/index.js +1 -1
  126. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  127. package/es/components/schedules/components/Search/index.js +5 -5
  128. package/es/components/schedules/model.d.ts +9 -1
  129. package/es/components/schedules/model.js +5 -5
  130. package/es/components/schedules/openHours/index.js +1 -1
  131. package/es/components/schedules/openHours/serve.js +2 -2
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  133. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  134. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  135. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  136. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  137. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  138. package/es/components/schedules/products/serve.js +2 -2
  139. package/es/components/schedules/products/utils.js +5 -5
  140. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  141. package/es/components/schedules/resources/detail/index.js +10 -10
  142. package/es/components/schedules/resources/list/index.js +2 -2
  143. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  144. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  145. package/es/components/schedules/resources/serve.js +2 -2
  146. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  147. package/es/components/schedules/utils.js +4 -4
  148. package/es/components/selectModal/index.js +2 -2
  149. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  150. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  151. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  152. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  153. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  154. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -120
  155. package/es/components/ticketBooking/locales.d.ts +146 -164
  156. package/es/components/ticketBooking/locales.js +147 -195
  157. package/es/components/ticketBooking/utils/index.js +2 -1
  158. package/es/components/wallet/Detail/model.d.ts +13 -1
  159. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  160. package/es/components/wallet/PointCard/model.d.ts +13 -1
  161. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  162. package/es/components/wallet/Voucher/model.d.ts +13 -1
  163. package/es/components/wallet/model.d.ts +9 -1
  164. package/es/hooks/useComponents.js +1 -1
  165. package/es/index.d.ts +1 -1
  166. package/es/index.js +2 -2
  167. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  168. package/lib/components/Sales/Cart/index.js +0 -1
  169. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  170. package/lib/components/Sales/Cart/utils.js +0 -117
  171. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  172. package/lib/components/Sales/Checkout/index.js +7 -39
  173. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  174. package/lib/components/Sales/Checkout/serve.js +2 -7
  175. package/lib/components/Sales/Checkout/utils.js +0 -2
  176. package/lib/components/Sales/Summary/index.d.ts +0 -10
  177. package/lib/components/Sales/Summary/index.js +1 -7
  178. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  179. package/lib/components/Sales/Summary/serve.js +0 -32
  180. package/lib/components/Sales/Summary/utils.d.ts +1 -16
  181. package/lib/components/Sales/Summary/utils.js +1 -30
  182. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  183. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  184. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  185. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  186. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  187. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  188. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  189. package/lib/components/appointmentBooking/index.js +0 -11
  190. package/lib/components/appointmentBooking/index.less +1 -1
  191. package/lib/components/booking/addons/model.d.ts +10 -1
  192. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  193. package/lib/components/booking/components/footer/utils.js +25 -7
  194. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  195. package/lib/components/booking/components/voucher/index.js +2 -2
  196. package/lib/components/booking/forms/model.d.ts +10 -1
  197. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  198. package/lib/components/booking/forms/table/index.d.ts +1 -0
  199. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  200. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  201. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  202. package/lib/components/booking/info/index.d.ts +1 -0
  203. package/lib/components/booking/info/model.d.ts +10 -1
  204. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  205. package/lib/components/booking/info/service2/utils.js +3 -2
  206. package/lib/components/booking/model.d.ts +9 -1
  207. package/lib/components/booking/notes/model.d.ts +10 -1
  208. package/lib/components/booking/payments/model.d.ts +10 -1
  209. package/lib/components/booking/utils.d.ts +2 -2
  210. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  211. package/lib/components/eftpos/form/index.d.ts +1 -0
  212. package/lib/components/eftpos/group/index.d.ts +1 -0
  213. package/lib/components/eftpos/hooks.d.ts +1 -0
  214. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  215. package/lib/components/eftpos/icon/device.d.ts +1 -0
  216. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  217. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  218. package/lib/components/eftposPay/amount.d.ts +1 -1
  219. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  220. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  221. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  222. package/lib/components/eftposPay/const.d.ts +1 -4
  223. package/lib/components/eftposPay/const.js +0 -2
  224. package/lib/components/eftposPay/device.d.ts +1 -1
  225. package/lib/components/eftposPay/hooks.d.ts +2 -2
  226. package/lib/components/eftposPay/hooks.js +4 -11
  227. package/lib/components/eftposPay/index.js +1 -1
  228. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  229. package/lib/components/eftposPay/manufacturer.js +0 -6
  230. package/lib/components/eftposPay/pay.d.ts +1 -1
  231. package/lib/components/eftposPay/pay.js +2 -13
  232. package/lib/components/eftposPay/store/index.d.ts +4 -4
  233. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  234. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  235. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  236. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  237. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  238. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  239. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  240. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  241. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  242. package/lib/components/eventBooking/locales.d.ts +0 -24
  243. package/lib/components/eventBooking/locales.js +3 -27
  244. package/lib/components/index.d.ts +2 -2
  245. package/lib/components/index.js +1 -1
  246. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  247. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  248. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  249. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  250. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  251. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  252. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  253. package/lib/components/pay/toC/model.d.ts +9 -1
  254. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  255. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  256. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  257. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  258. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  259. package/lib/components/schedules/model.d.ts +9 -1
  260. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  261. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  262. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  263. package/lib/components/schedules/utils.js +1 -1
  264. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  265. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  266. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  267. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  268. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  269. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -120
  270. package/lib/components/ticketBooking/locales.d.ts +146 -164
  271. package/lib/components/ticketBooking/locales.js +4 -22
  272. package/lib/components/ticketBooking/utils/index.js +2 -1
  273. package/lib/components/wallet/Detail/model.d.ts +13 -1
  274. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  275. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  276. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  277. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  278. package/lib/components/wallet/model.d.ts +9 -1
  279. package/lib/index.d.ts +1 -1
  280. package/lib/index.js +1 -1
  281. package/package.json +4 -4
  282. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  283. package/es/components/eftposPay/linkly/const.js +0 -82
  284. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  285. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  286. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  287. package/es/components/eftposPay/linkly/hooks/normal.js +0 -321
  288. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  289. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  290. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  291. package/es/components/eftposPay/linkly/index.js +0 -197
  292. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  293. package/es/components/eftposPay/linkly/service.js +0 -81
  294. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  295. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  296. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  297. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  298. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  299. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  300. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  301. package/lib/components/eftposPay/linkly/const.js +0 -102
  302. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  303. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  304. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  305. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -242
  306. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  307. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  308. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  309. package/lib/components/eftposPay/linkly/index.js +0 -208
  310. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  311. package/lib/components/eftposPay/linkly/service.js +0 -55
  312. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  313. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  314. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  315. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  316. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  317. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -48,8 +48,7 @@ var Deposit = (props) => {
48
48
  title,
49
49
  isAgreePolicy = true,
50
50
  isShowTitle = true,
51
- onChange,
52
- depositProtocolRequest
51
+ onChange
53
52
  } = props;
54
53
  const context = (0, import_useEngineContext.default)();
55
54
  const [visible, setVisible] = (0, import_react.useState)(false);
@@ -103,8 +102,7 @@ var Deposit = (props) => {
103
102
  {
104
103
  open: visible,
105
104
  onCancel: () => setVisible(false),
106
- item: policyItem,
107
- depositProtocolRequest
105
+ item: policyItem
108
106
  }
109
107
  ));
110
108
  };
@@ -58,17 +58,6 @@ var AppointmentBooking = () => {
58
58
  }
59
59
  });
60
60
  }, []);
61
- (0, import_react.useEffect)(() => {
62
- const setRealVH = () => {
63
- const vh = window.innerHeight * 0.01;
64
- document.documentElement.style.setProperty("--vh", `${vh}px`);
65
- };
66
- setRealVH();
67
- window.addEventListener("resize", setRealVH);
68
- return () => {
69
- window.removeEventListener("resize", setRealVH);
70
- };
71
- }, []);
72
61
  return /* @__PURE__ */ import_react.default.createElement(
73
62
  "div",
74
63
  {
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  background: #ffffff;
6
- height: calc(var(--vh, 1vh) * 100);
6
+ height: 100vh;
7
7
  overflow-y: auto;
8
8
 
9
9
  .pisell-section-headers {
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -195,11 +195,17 @@ var formatHolders = (state, item, values) => {
195
195
  return obj;
196
196
  };
197
197
  var formatProductPrice = (item) => {
198
- var _a, _b, _c;
198
+ var _a, _b, _c, _d;
199
199
  const other = (_a = item._extend) == null ? void 0 : _a.other;
200
200
  let price = Number((_b = item._extend) == null ? void 0 : _b.price);
201
+ if ((other == null ? void 0 : other.product_variant_id) > 0 && ((_c = item == null ? void 0 : item.variant) == null ? void 0 : _c.length) > 0) {
202
+ const variant = item.variant.find((d) => d.id === (other == null ? void 0 : other.product_variant_id));
203
+ if (variant) {
204
+ price = Number(variant == null ? void 0 : variant.price) || 0;
205
+ }
206
+ }
201
207
  if (other == null ? void 0 : other.option) {
202
- price = (_c = other == null ? void 0 : other.option) == null ? void 0 : _c.reduce((pre, cur) => {
208
+ price = (_d = other == null ? void 0 : other.option) == null ? void 0 : _d.reduce((pre, cur) => {
203
209
  return pre + Number(cur.price) * Number(cur.num);
204
210
  }, price);
205
211
  }
@@ -222,8 +228,20 @@ var formatMetaData = (item) => {
222
228
  }
223
229
  return metadata;
224
230
  };
231
+ var getSourceProductPrice = (item) => {
232
+ var _a, _b, _c;
233
+ const other = (_a = item._extend) == null ? void 0 : _a.other;
234
+ let price = Number((_b = item._extend) == null ? void 0 : _b.price);
235
+ if ((other == null ? void 0 : other.product_variant_id) > 0 && ((_c = item == null ? void 0 : item.variant) == null ? void 0 : _c.length) > 0) {
236
+ const variant = item.variant.find((d) => d.id === (other == null ? void 0 : other.product_variant_id));
237
+ if (variant) {
238
+ price = Number(variant == null ? void 0 : variant.price) || 0;
239
+ }
240
+ }
241
+ return price;
242
+ };
225
243
  var formatProducts = (item, quantity) => {
226
- var _a, _b, _c, _d, _e, _f, _g;
244
+ var _a, _b, _c, _d, _e, _f;
227
245
  const total = Number(item._extend.total);
228
246
  const origin_total = Number(item._extend.origin_total);
229
247
  const discount_amount = origin_total - total;
@@ -233,7 +251,7 @@ var formatProducts = (item, quantity) => {
233
251
  return {
234
252
  "num": quantity || item._extend.quantity,
235
253
  "price": formatProductPrice(item),
236
- "source_product_price": (_a = item._extend) == null ? void 0 : _a.price,
254
+ "source_product_price": getSourceProductPrice(item),
237
255
  "product_id": (item == null ? void 0 : item.product_id) || item.id,
238
256
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
239
257
  "product_discount_reason": item._extend.discount_reason || "",
@@ -243,10 +261,10 @@ var formatProducts = (item, quantity) => {
243
261
  "discount_per": item._extend.discount_per,
244
262
  "discount_type": item._extend.discount_type || discount_type,
245
263
  "order_detail_id": item._extend.order_detail_id || 0,
246
- "product_bundle": formatProductBundle((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
264
+ "product_bundle": formatProductBundle((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle),
247
265
  "bundle_edit": item._extend.bundle_edit,
248
- "product_option_item": formatProductOption((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
249
- "product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0,
266
+ "product_option_item": formatProductOption((_d = (_c = item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.option),
267
+ "product_variant_id": ((_f = (_e = item._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.product_variant_id) || 0,
250
268
  "discount_list": notManualDiscount,
251
269
  metadata: formatMetaData(item)
252
270
  };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -41,8 +41,8 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
41
41
  var import_materials = require("@pisell/materials");
42
42
  var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
43
43
  var import_index = require("./index.less");
44
- var import_ahooks = require("ahooks");
45
44
  var import_utils2 = require("./utils");
45
+ var import_ahooks = require("ahooks");
46
46
  var ShopDiscountHooks = {
47
47
  onInited: "shopDiscount:onInited",
48
48
  onDestroy: "shopDiscount:onDestroy",
@@ -274,8 +274,8 @@ var VoucherCard = (props) => {
274
274
  import_materials.PisellGoodPassCard,
275
275
  {
276
276
  style: { width: "100%" },
277
- dataSource: ((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length) ? availableData : [],
278
277
  mixedSort,
278
+ dataSource: ((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length) ? availableData : [],
279
279
  onChange: (val) => {
280
280
  const shopDiscount2 = pisellos.getModule("shopDiscount");
281
281
  const detail = shopDiscount2.setDiscountSelected({
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
2
3
  export default useIsLowSpeedNetwork;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -377,12 +377,13 @@ var formatBundle = (bundle) => {
377
377
  var formatOptions = (options) => {
378
378
  if (!(options == null ? void 0 : options.length)) return [];
379
379
  return options.map((item) => {
380
+ const price = Number((item == null ? void 0 : item.price) || (item == null ? void 0 : item.add_price));
380
381
  return {
381
382
  id: item == null ? void 0 : item.id,
382
383
  name: item == null ? void 0 : item.name,
383
384
  num: item == null ? void 0 : item.num,
384
- price: item == null ? void 0 : item.price,
385
- total: item == null ? void 0 : item.price,
385
+ price,
386
+ total: price,
386
387
  origin_total: item == null ? void 0 : item.original_price
387
388
  };
388
389
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
108
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
+ state: FormState;
110
+ } & {
111
+ dispatch: (params: {
112
+ type: string;
113
+ payload: any;
114
+ }) => void;
115
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.css';
2
3
  /**
3
4
  * @title: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  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";
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
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<"payo" | "tyro" | "windcave" | "stripe" | "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
  {
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "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;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 获取 Tyro 资源
3
4
  * @description: