@pisell/private-materials 3.3.99 → 3.3.100

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 (273) 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 +0 -1
  12. package/es/components/Sales/Cart/index.js +5 -1
  13. package/es/components/Sales/Cart/utils.d.ts +40 -0
  14. package/es/components/Sales/Cart/utils.js +167 -0
  15. package/es/components/Sales/Checkout/index.d.ts +4 -0
  16. package/es/components/Sales/Checkout/index.js +52 -8
  17. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  18. package/es/components/Sales/Checkout/serve.js +16 -2
  19. package/es/components/Sales/Checkout/utils.js +7 -1
  20. package/es/components/Sales/Summary/index.d.ts +10 -0
  21. package/es/components/Sales/Summary/index.js +17 -2
  22. package/es/components/Sales/Summary/serve.d.ts +1 -0
  23. package/es/components/Sales/Summary/serve.js +6 -0
  24. package/es/components/Sales/Summary/utils.d.ts +15 -0
  25. package/es/components/Sales/Summary/utils.js +43 -1
  26. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  27. package/es/components/appointmentBooking/components/Content/index.js +15 -1
  28. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  29. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  30. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  31. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  32. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  33. package/es/components/appointmentBooking/components/Services/index.js +23 -27
  34. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  35. package/es/components/appointmentBooking/deposit/index.js +4 -2
  36. package/es/components/appointmentBooking/index.js +14 -0
  37. package/es/components/appointmentBooking/index.less +1 -1
  38. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  39. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  40. package/es/components/booking/components/voucher/index.js +2 -2
  41. package/es/components/booking/forms/table/index.d.ts +0 -1
  42. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  43. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  44. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  45. package/es/components/booking/info/hooks/useInfoHolder.js +8 -1
  46. package/es/components/booking/info/index.d.ts +0 -1
  47. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  48. package/es/components/booking/info/service/like/index.d.ts +0 -1
  49. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  50. package/es/components/booking/info/service2/utils.d.ts +1 -1
  51. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  52. package/es/components/booking/utils.d.ts +2 -2
  53. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  54. package/es/components/eftpos/form/index.d.ts +0 -1
  55. package/es/components/eftpos/group/index.d.ts +0 -1
  56. package/es/components/eftpos/hooks.d.ts +0 -1
  57. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  58. package/es/components/eftpos/icon/device.d.ts +0 -1
  59. package/es/components/eftpos/receipt/index.d.ts +0 -1
  60. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  61. package/es/components/eftposPay/amount.d.ts +1 -1
  62. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  63. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  64. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  65. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  66. package/es/components/eftposPay/const.d.ts +4 -1
  67. package/es/components/eftposPay/const.js +3 -1
  68. package/es/components/eftposPay/device.d.ts +1 -1
  69. package/es/components/eftposPay/hooks.d.ts +2 -2
  70. package/es/components/eftposPay/hooks.js +3 -1
  71. package/es/components/eftposPay/index.js +1 -1
  72. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  73. package/es/components/eftposPay/linkly/const.js +82 -0
  74. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  75. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  76. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  77. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  78. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  79. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  80. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  81. package/es/components/eftposPay/linkly/index.js +197 -0
  82. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  83. package/es/components/eftposPay/linkly/service.js +81 -0
  84. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  85. package/es/components/eftposPay/manufacturer.js +4 -0
  86. package/es/components/eftposPay/pay.d.ts +1 -1
  87. package/es/components/eftposPay/pay.js +6 -2
  88. package/es/components/eftposPay/store/index.d.ts +4 -4
  89. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  90. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  91. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  92. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  93. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  94. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  95. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  96. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  97. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  103. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  104. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -1
  105. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  106. package/es/components/eventBooking/locales.d.ts +24 -0
  107. package/es/components/eventBooking/locales.js +27 -3
  108. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  111. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  112. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  113. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  114. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  115. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  116. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  117. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  118. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  119. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  120. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  121. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  122. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  124. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  125. package/es/components/schedules/products/index.d.ts +0 -1
  126. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  127. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  128. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  129. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  130. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  131. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  132. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  133. package/es/components/ticketBooking/components/ticketBooking/index.js +120 -1
  134. package/es/components/ticketBooking/locales.d.ts +164 -146
  135. package/es/components/ticketBooking/locales.js +195 -147
  136. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  137. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  138. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  139. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  140. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  141. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  142. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  143. package/lib/components/Sales/Cart/index.js +1 -0
  144. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  145. package/lib/components/Sales/Cart/utils.js +117 -0
  146. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  147. package/lib/components/Sales/Checkout/index.js +39 -7
  148. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  149. package/lib/components/Sales/Checkout/serve.js +7 -2
  150. package/lib/components/Sales/Checkout/utils.js +2 -0
  151. package/lib/components/Sales/Summary/index.d.ts +10 -0
  152. package/lib/components/Sales/Summary/index.js +7 -1
  153. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  154. package/lib/components/Sales/Summary/serve.js +32 -0
  155. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  156. package/lib/components/Sales/Summary/utils.js +30 -1
  157. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  158. package/lib/components/appointmentBooking/components/Content/index.js +6 -1
  159. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  160. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  161. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  162. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  163. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  164. package/lib/components/appointmentBooking/components/Services/index.js +6 -11
  165. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  166. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  167. package/lib/components/appointmentBooking/index.js +11 -0
  168. package/lib/components/appointmentBooking/index.less +1 -1
  169. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  170. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  171. package/lib/components/booking/components/voucher/index.js +2 -2
  172. package/lib/components/booking/forms/table/index.d.ts +0 -1
  173. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  174. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  175. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  176. package/lib/components/booking/info/hooks/useInfoHolder.js +6 -1
  177. package/lib/components/booking/info/index.d.ts +0 -1
  178. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  179. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  180. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  181. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  182. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  183. package/lib/components/booking/utils.d.ts +2 -2
  184. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  185. package/lib/components/eftpos/form/index.d.ts +0 -1
  186. package/lib/components/eftpos/group/index.d.ts +0 -1
  187. package/lib/components/eftpos/hooks.d.ts +0 -1
  188. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  189. package/lib/components/eftpos/icon/device.d.ts +0 -1
  190. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  191. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  192. package/lib/components/eftposPay/amount.d.ts +1 -1
  193. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  194. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  195. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  196. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  197. package/lib/components/eftposPay/const.d.ts +4 -1
  198. package/lib/components/eftposPay/const.js +2 -0
  199. package/lib/components/eftposPay/device.d.ts +1 -1
  200. package/lib/components/eftposPay/hooks.d.ts +2 -2
  201. package/lib/components/eftposPay/hooks.js +11 -4
  202. package/lib/components/eftposPay/index.js +1 -1
  203. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  204. package/lib/components/eftposPay/linkly/const.js +102 -0
  205. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  206. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  207. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  208. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  209. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  210. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  211. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  212. package/lib/components/eftposPay/linkly/index.js +208 -0
  213. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  214. package/lib/components/eftposPay/linkly/service.js +55 -0
  215. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  216. package/lib/components/eftposPay/manufacturer.js +6 -0
  217. package/lib/components/eftposPay/pay.d.ts +1 -1
  218. package/lib/components/eftposPay/pay.js +13 -2
  219. package/lib/components/eftposPay/store/index.d.ts +4 -4
  220. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  221. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  222. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
  223. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  224. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  225. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  226. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  227. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  228. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  230. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  231. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  232. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  233. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  234. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  235. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  236. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  237. package/lib/components/eventBooking/locales.d.ts +24 -0
  238. package/lib/components/eventBooking/locales.js +27 -3
  239. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  240. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  241. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  242. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  243. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  244. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  245. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  246. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  247. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  248. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  249. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  250. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  251. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  252. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  253. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  254. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  255. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  256. package/lib/components/schedules/products/index.d.ts +0 -1
  257. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  258. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  259. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  260. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  261. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  262. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  263. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  264. package/lib/components/ticketBooking/components/ticketBooking/index.js +120 -1
  265. package/lib/components/ticketBooking/locales.d.ts +164 -146
  266. package/lib/components/ticketBooking/locales.js +22 -4
  267. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  268. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  269. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  270. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  271. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  272. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  273. package/package.json +4 -4
@@ -213,6 +213,19 @@ var Layout = function Layout() {
213
213
  if (isDateSelectedFirst && key === 'select-date') return false;
214
214
  return key !== 'confirm-information';
215
215
  }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step8 = currentStep.step) === null || _currentStep$step8 === void 0 ? void 0 : _currentStep$step8.key]);
216
+
217
+ /**
218
+ * @title: 获取协议方法需要在组件中定义才能传递给子组件,子组件无法获取到context中的方法
219
+ * @description:
220
+ * @param {string} id
221
+ * @return {*}
222
+ * @Author: WangHan
223
+ * @Date: 2025-07-07 10:06
224
+ */
225
+ var depositProtocolRequest = function depositProtocolRequest(id) {
226
+ var _appointmentBooking$g;
227
+ return appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$g = appointmentBooking.getProtocol) === null || _appointmentBooking$g === void 0 ? void 0 : _appointmentBooking$g.call(appointmentBooking, id);
228
+ };
216
229
  return /*#__PURE__*/React.createElement(React.Fragment, null, !isRetailTemplate ? /*#__PURE__*/React.createElement(Header, null) : null, /*#__PURE__*/React.createElement("div", {
217
230
  className: "parallel-content-wrap ".concat(isMobile() ? 'parallel-content-mobile-wrap' : '', " ").concat(isRetailTemplate ? 'parallel-content-retail-wrap' : '')
218
231
  }, /*#__PURE__*/React.createElement("div", {
@@ -237,7 +250,8 @@ var Layout = function Layout() {
237
250
  onChange: function onChange() {
238
251
  return setLoading(false);
239
252
  },
240
- isHideCheckout: false
253
+ isHideCheckout: false,
254
+ depositProtocolRequest: depositProtocolRequest
241
255
  }) : null);
242
256
  };
243
257
  export default Layout;
@@ -107,7 +107,7 @@
107
107
  margin-top: 0;
108
108
 
109
109
  .appointment-cart-item-wrap {
110
- height: calc(100vh - 16px) !important;
110
+ height: calc(var(--vh, 1vh) * 100 - 16px) !important;
111
111
  }
112
112
  }
113
113
  }
@@ -1,3 +1,9 @@
1
1
  import './index.less';
2
+ export declare const DepositContent: (props: {
3
+ isAgreeDepositPolicy: boolean;
4
+ setIsAgreeDepositPolicy: (value: boolean) => void;
5
+ deposit: any;
6
+ depositProtocolRequest?: any;
7
+ }) => JSX.Element;
2
8
  declare const Deposit: () => JSX.Element;
3
9
  export default Deposit;
@@ -4,12 +4,11 @@ import AppointmentDeposit from "../../deposit";
4
4
  import { useAppointmentBookingContext } from "../../context";
5
5
  import { locales } from '@pisell/utils';
6
6
  import "./index.less";
7
- var Deposit = function Deposit() {
8
- var _useAppointmentBookin = useAppointmentBookingContext(),
9
- setIsAgreeDepositPolicy = _useAppointmentBookin.setIsAgreeDepositPolicy,
10
- isAgreeDepositPolicy = _useAppointmentBookin.isAgreeDepositPolicy,
11
- summary = _useAppointmentBookin.summary;
12
- var deposit = summary.deposit;
7
+ export var DepositContent = function DepositContent(props) {
8
+ var isAgreeDepositPolicy = props.isAgreeDepositPolicy,
9
+ setIsAgreeDepositPolicy = props.setIsAgreeDepositPolicy,
10
+ deposit = props.deposit,
11
+ depositProtocolRequest = props.depositProtocolRequest;
13
12
  return /*#__PURE__*/React.createElement("div", {
14
13
  className: "appointment-deposit-wrap"
15
14
  }, /*#__PURE__*/React.createElement("div", {
@@ -24,7 +23,28 @@ var Deposit = function Deposit() {
24
23
  isAgreePolicy: isAgreeDepositPolicy,
25
24
  onChange: function onChange(value) {
26
25
  return setIsAgreeDepositPolicy(value);
27
- }
26
+ },
27
+ depositProtocolRequest: depositProtocolRequest
28
28
  }));
29
29
  };
30
+ var Deposit = function Deposit() {
31
+ var _ref = useAppointmentBookingContext(),
32
+ setIsAgreeDepositPolicy = _ref.setIsAgreeDepositPolicy,
33
+ isAgreeDepositPolicy = _ref.isAgreeDepositPolicy,
34
+ summary = _ref.summary,
35
+ appointmentBooking = _ref.appointmentBooking;
36
+ var deposit = summary.deposit;
37
+
38
+ // 获取协议方法需要在组件中定义才能传递给子组件,子组件无法获取到context中的方法
39
+ var depositProtocolRequest = function depositProtocolRequest(id) {
40
+ var _appointmentBooking$g;
41
+ return appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$g = appointmentBooking.getProtocol) === null || _appointmentBooking$g === void 0 ? void 0 : _appointmentBooking$g.call(appointmentBooking, id);
42
+ };
43
+ return /*#__PURE__*/React.createElement(DepositContent, {
44
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
45
+ setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
46
+ deposit: deposit,
47
+ depositProtocolRequest: depositProtocolRequest
48
+ });
49
+ };
30
50
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -85,9 +85,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
85
85
  return checkProductType(item === null || item === void 0 ? void 0 : item.id);
86
86
  case 4:
87
87
  type = _context2.sent;
88
- if (type === 'session') {
89
- appointmentBooking.openProductDetail(item.id);
90
- }
88
+ appointmentBooking.openProductDetail(item.id);
91
89
  case 6:
92
90
  utils === null || utils === void 0 || utils.action({
93
91
  type: 'pisell1.productDetail',
@@ -105,6 +103,13 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
105
103
  return _regeneratorRuntime().wrap(function _callee$(_context) {
106
104
  while (1) switch (_context.prev = _context.next) {
107
105
  case 0:
106
+ if (!data.isCancel) {
107
+ _context.next = 3;
108
+ break;
109
+ }
110
+ appointmentBooking.closeProductDetail();
111
+ return _context.abrupt("return");
112
+ case 3:
108
113
  product = _objectSpread(_objectSpread({}, data), {}, {
109
114
  options: (data === null || data === void 0 ? void 0 : data.option) || []
110
115
  });
@@ -112,31 +117,21 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
112
117
 
113
118
  // 零售模版,直接加入购物车
114
119
  if (!isRetailTemplate) {
115
- _context.next = 7;
120
+ _context.next = 10;
116
121
  break;
117
122
  }
118
123
  if (!(data !== null && data !== void 0 && data.isCancel)) {
119
- _context.next = 5;
124
+ _context.next = 8;
120
125
  break;
121
126
  }
122
127
  return _context.abrupt("return");
123
- case 5:
128
+ case 8:
124
129
  appointmentBooking.storeProduct(product);
125
130
  return _context.abrupt("return");
126
- case 7:
127
- if (!(data !== null && data !== void 0 && data.isCancel)) {
128
- _context.next = 10;
129
- break;
130
- }
131
- if (type === 'session') {
132
- appointmentBooking.closeProductDetail();
133
- appointmentBooking.getAvailableDate();
134
- }
135
- return _context.abrupt("return");
136
131
  case 10:
137
132
  session = data === null || data === void 0 ? void 0 : data.session;
138
133
  if (!session) {
139
- _context.next = 20;
134
+ _context.next = 19;
140
135
  break;
141
136
  }
142
137
  startDate = dayjs(session === null || session === void 0 ? void 0 : session.start_at).format('YYYY-MM-DD');
@@ -148,35 +143,36 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
148
143
  endTime: "".concat(endDate, " ").concat(session === null || session === void 0 ? void 0 : session.end_time)
149
144
  }
150
145
  });
151
- appointmentBooking.closeProductDetail();
152
- _context.next = 18;
146
+ _context.next = 17;
153
147
  return appointmentBooking.getAvailableDate({
154
148
  startDate: startDate,
155
149
  endDate: endDate
156
150
  });
157
- case 18:
158
- _context.next = 28;
151
+ case 17:
152
+ _context.next = 27;
159
153
  break;
160
- case 20:
154
+ case 19:
161
155
  resources = (data === null || data === void 0 || (_data$origin = data.origin) === null || _data$origin === void 0 || (_data$origin = _data$origin.product_resource) === null || _data$origin === void 0 ? void 0 : _data$origin.resources) || [];
162
156
  activeStatus = resources.find(function (item) {
163
157
  return item.status === 1;
164
158
  });
165
159
  if (!(!activeStatus && !appointmentBooking.isTargetNormalProduct(data === null || data === void 0 ? void 0 : data.origin))) {
166
- _context.next = 24;
160
+ _context.next = 23;
167
161
  break;
168
162
  }
169
163
  return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.no.available.service')));
170
- case 24:
164
+ case 23:
171
165
  appointmentBooking.storeProduct(product);
172
166
  // duration 类型的商品,要获取一下资源,在先选日期的 duration 步骤里目前只能通过这个动作拉取
173
167
  if (!(type === 'duration')) {
174
- _context.next = 28;
168
+ _context.next = 27;
175
169
  break;
176
170
  }
177
- _context.next = 28;
171
+ _context.next = 27;
178
172
  return appointmentBooking.getAvailableDate();
179
- case 28:
173
+ case 27:
174
+ appointmentBooking.closeProductDetail();
175
+
180
176
  // 先选择日期流程
181
177
  if (isDateSelectedFirst) {
182
178
  index = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 2; //先选择日期流程:如果商品类型是duration的商品,则需要增加选择时间步骤
@@ -12,7 +12,6 @@ import React, { useState, useEffect } from 'react';
12
12
  import { Spin } from 'antd';
13
13
  import { PisellModal, PisellEmpty, Button, Checkbox } from '@pisell/materials';
14
14
  import { locales, isMobile } from '@pisell/utils';
15
- import { useAppointmentBookingContext } from "../../../context";
16
15
  import "./index.less";
17
16
  var DepositModal = function DepositModal(props) {
18
17
  var open = props.open,
@@ -21,9 +20,8 @@ var DepositModal = function DepositModal(props) {
21
20
  onChange = props.onChange,
22
21
  onConfirm = props.onConfirm,
23
22
  _props$isHideCheckout = props.isHideCheckout,
24
- isHideCheckout = _props$isHideCheckout === void 0 ? true : _props$isHideCheckout;
25
- var _useAppointmentBookin = useAppointmentBookingContext(),
26
- appointmentBooking = _useAppointmentBookin.appointmentBooking;
23
+ isHideCheckout = _props$isHideCheckout === void 0 ? true : _props$isHideCheckout,
24
+ depositProtocolRequest = props.depositProtocolRequest;
27
25
  var _useState = useState(null),
28
26
  _useState2 = _slicedToArray(_useState, 2),
29
27
  policy = _useState2[0],
@@ -50,35 +48,42 @@ var DepositModal = function DepositModal(props) {
50
48
  */
51
49
  var getPolicy = /*#__PURE__*/function () {
52
50
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
53
- var _yield$appointmentBoo, data;
51
+ var _yield$depositProtoco, data;
54
52
  return _regeneratorRuntime().wrap(function _callee$(_context) {
55
53
  while (1) switch (_context.prev = _context.next) {
56
54
  case 0:
55
+ if (depositProtocolRequest) {
56
+ _context.next = 3;
57
+ break;
58
+ }
59
+ console.error('depositProtocolRequest is not defined');
60
+ return _context.abrupt("return");
61
+ case 3:
57
62
  setLoading(true);
58
- _context.prev = 1;
59
- _context.next = 4;
60
- return appointmentBooking.getProtocol(id);
61
- case 4:
62
- _yield$appointmentBoo = _context.sent;
63
- data = _yield$appointmentBoo.data;
63
+ _context.prev = 4;
64
+ _context.next = 7;
65
+ return depositProtocolRequest === null || depositProtocolRequest === void 0 ? void 0 : depositProtocolRequest(id);
66
+ case 7:
67
+ _yield$depositProtoco = _context.sent;
68
+ data = _yield$depositProtoco.data;
64
69
  setPolicy(data);
65
70
  onChange && onChange(data);
66
- _context.next = 14;
71
+ _context.next = 17;
67
72
  break;
68
- case 10:
69
- _context.prev = 10;
70
- _context.t0 = _context["catch"](1);
73
+ case 13:
74
+ _context.prev = 13;
75
+ _context.t0 = _context["catch"](4);
71
76
  console.log(_context.t0);
72
77
  onChange && onChange(_context.t0);
73
- case 14:
74
- _context.prev = 14;
75
- setLoading(false);
76
- return _context.finish(14);
77
78
  case 17:
79
+ _context.prev = 17;
80
+ setLoading(false);
81
+ return _context.finish(17);
82
+ case 20:
78
83
  case "end":
79
84
  return _context.stop();
80
85
  }
81
- }, _callee, null, [[1, 10, 14, 17]]);
86
+ }, _callee, null, [[4, 13, 17, 20]]);
82
87
  }));
83
88
  return function getPolicy(_x) {
84
89
  return _ref.apply(this, arguments);
@@ -21,7 +21,8 @@ var Deposit = function Deposit(props) {
21
21
  isAgreePolicy = _props$isAgreePolicy === void 0 ? true : _props$isAgreePolicy,
22
22
  _props$isShowTitle = props.isShowTitle,
23
23
  isShowTitle = _props$isShowTitle === void 0 ? true : _props$isShowTitle,
24
- onChange = props.onChange;
24
+ onChange = props.onChange,
25
+ depositProtocolRequest = props.depositProtocolRequest;
25
26
  var context = useEngineContext();
26
27
  // 打开协议弹窗
27
28
  var _useState = useState(false),
@@ -95,7 +96,8 @@ var Deposit = function Deposit(props) {
95
96
  onCancel: function onCancel() {
96
97
  return setVisible(false);
97
98
  },
98
- item: policyItem
99
+ item: policyItem,
100
+ depositProtocolRequest: depositProtocolRequest
99
101
  }));
100
102
  };
101
103
  export default Deposit;
@@ -27,6 +27,20 @@ var AppointmentBooking = function AppointmentBooking() {
27
27
  }
28
28
  });
29
29
  }, []);
30
+ useEffect(function () {
31
+ var setRealVH = function setRealVH() {
32
+ // window.innerHeight 会返回视口真实的高度(不包括工具栏)
33
+ var vh = window.innerHeight * 0.01;
34
+ document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
35
+ };
36
+
37
+ // 页面加载和窗口大小变化时都重新计算
38
+ setRealVH();
39
+ window.addEventListener('resize', setRealVH);
40
+ return function () {
41
+ window.removeEventListener('resize', setRealVH);
42
+ };
43
+ }, []);
30
44
  return /*#__PURE__*/React.createElement("div", {
31
45
  className: "parallel-booking-wrap ".concat(isMobile() ? 'parallel-booking-mobile-wrap' : '')
32
46
  }, /*#__PURE__*/React.createElement(AppointmentBookingProvider, null, /*#__PURE__*/React.createElement(Content, null)));
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  background: #ffffff;
6
- height: 100vh;
6
+ height: calc(var(--vh, 1vh) * 100);
7
7
  overflow-y: auto;
8
8
 
9
9
  .pisell-section-headers {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -26,8 +26,8 @@ import useEngineContext from "../../../../hooks/useEngineContext";
26
26
  import { PisellInput, PisellGoodPassCard, PisellToast } from '@pisell/materials';
27
27
  import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
28
28
  import "./index.less";
29
- import { getServiceAddons } from "./utils";
30
29
  import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
30
+ import { getServiceAddons } from "./utils";
31
31
  var ShopDiscountHooks = {
32
32
  onInited: 'shopDiscount:onInited',
33
33
  onDestroy: 'shopDiscount:onDestroy',
@@ -275,8 +275,8 @@ var VoucherCard = function VoucherCard(props) {
275
275
  style: {
276
276
  width: '100%'
277
277
  },
278
- mixedSort: mixedSort,
279
278
  dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
279
+ mixedSort: mixedSort,
280
280
  onChange: function onChange(val) {
281
281
  var shopDiscount = pisellos.getModule('shopDiscount');
282
282
  var detail = shopDiscount.setDiscountSelected({
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -8,6 +8,7 @@ import { useEffect, useMemo, useRef } from "react";
8
8
  import useHolderConfig from "./useHolderConfig";
9
9
  import { isOpenAddTime } from "../utils";
10
10
  import useGetHolderList from "./useGetHolderList";
11
+ import { getProductExtend } from "../../info2/service/addService/utils";
11
12
  var useInfoHolder = function useInfoHolder(state, dispatch) {
12
13
  var _state$client, _state$bookingConfig2;
13
14
  var detailRef = useRef();
@@ -43,11 +44,17 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
43
44
  });
44
45
  };
45
46
  var handleAction = function handleAction(dataSource) {
47
+ var cacheItem = getProductExtend({
48
+ cacheItem: _objectSpread(_objectSpread({}, dataSource._origin), {}, {
49
+ new: 0
50
+ }),
51
+ state: state
52
+ });
46
53
  dispatch({
47
54
  type: "setService",
48
55
  payload: {
49
56
  addTimeModal: true,
50
- cacheItem: dataSource._origin
57
+ cacheItem: cacheItem
51
58
  }
52
59
  });
53
60
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
244
  * @Author: WangHan
245
245
  * @Date: 2024-12-24 11:32
246
246
  */
247
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
247
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -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 | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @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" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -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
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -5,7 +5,8 @@ export declare enum EftposEnum {
5
5
  Tyro = "tyro",
6
6
  /** 后端支付 - 支付 + 退款 */
7
7
  Windcave = "windcave",
8
- Stripe = "stripe"
8
+ Stripe = "stripe",
9
+ Linkly = "linkly"
9
10
  }
10
11
  export declare enum StatusEnum {
11
12
  Loading = "loading",
@@ -147,6 +148,8 @@ export declare enum PayStatus {
147
148
  'Success' = "200",
148
149
  /** 未生成交易记录 */
149
150
  'NoPay' = "4004",
151
+ /** 配对失效 */
152
+ 'PairingFailure' = "606020",
150
153
  /** 支付失败 */
151
154
  'Unknown' = "701000",
152
155
  /** 交易请求超时 */
@@ -3,8 +3,9 @@ export var EftposEnum = /*#__PURE__*/function (EftposEnum) {
3
3
  EftposEnum["Tyro"] = "tyro";
4
4
  EftposEnum["Windcave"] = "windcave";
5
5
  EftposEnum["Stripe"] = "stripe";
6
+ EftposEnum["Linkly"] = "linkly";
6
7
  return EftposEnum;
7
- }({}); // Eftpos = 'eftpos',
8
+ }({});
8
9
  export var StatusEnum = /*#__PURE__*/function (StatusEnum) {
9
10
  StatusEnum["Loading"] = "loading";
10
11
  StatusEnum["Warn"] = "warn";
@@ -64,6 +65,7 @@ export var PayRouteEnum = /*#__PURE__*/function (PayRouteEnum) {
64
65
  export var PayStatus = /*#__PURE__*/function (PayStatus) {
65
66
  PayStatus["Success"] = "200";
66
67
  PayStatus["NoPay"] = "4004";
68
+ PayStatus["PairingFailure"] = "606020";
67
69
  PayStatus["Unknown"] = "701000";
68
70
  PayStatus["Timeout"] = "701001";
69
71
  PayStatus["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" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "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" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "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<"tyro" | "windcave" | "stripe" | "payo">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };