@pisell/private-materials 3.3.90 → 3.3.91

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 (379) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/Sales/index.js +4 -37
  12. package/es/businessModel/SalesModel/index.d.ts +0 -1
  13. package/es/components/Sales/Cart/index.js +1 -5
  14. package/es/components/Sales/Cart/utils.d.ts +0 -40
  15. package/es/components/Sales/Cart/utils.js +0 -167
  16. package/es/components/Sales/Checkout/index.d.ts +0 -4
  17. package/es/components/Sales/Checkout/index.js +8 -52
  18. package/es/components/Sales/Checkout/serve.d.ts +0 -13
  19. package/es/components/Sales/Checkout/serve.js +2 -16
  20. package/es/components/Sales/Checkout/utils.js +1 -7
  21. package/es/components/Sales/Resource/index.js +2 -2
  22. package/es/components/Sales/Resource/serve.d.ts +0 -7
  23. package/es/components/Sales/Resource/serve.js +0 -10
  24. package/es/components/Sales/Summary/index.d.ts +0 -10
  25. package/es/components/Sales/Summary/index.js +2 -17
  26. package/es/components/Sales/Summary/serve.d.ts +0 -1
  27. package/es/components/Sales/Summary/serve.js +0 -6
  28. package/es/components/Sales/Summary/utils.d.ts +1 -16
  29. package/es/components/Sales/Summary/utils.js +1 -43
  30. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  31. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  32. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  33. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  34. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  35. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  36. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  37. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  38. package/es/components/appointmentBooking/deposit/index.js +2 -4
  39. package/es/components/appointmentBooking/index.js +0 -14
  40. package/es/components/appointmentBooking/index.less +1 -1
  41. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  42. package/es/components/booking/components/footer/utils.d.ts +0 -1
  43. package/es/components/booking/components/footer/utils.js +1 -1
  44. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  45. package/es/components/booking/components/voucher/index.js +2 -2
  46. package/es/components/booking/forms/table/index.d.ts +0 -1
  47. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  48. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  49. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  50. package/es/components/booking/info/index.d.ts +0 -1
  51. package/es/components/booking/info/service/like/index.d.ts +0 -1
  52. package/es/components/booking/info/service2/utils.d.ts +1 -1
  53. package/es/components/booking/info/service2/utils.js +2 -3
  54. package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
  55. package/es/components/booking/info2/service/addService/utils.js +14 -48
  56. package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
  57. package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
  58. package/es/components/booking/info2/utilsByBooking.js +0 -9
  59. package/es/components/booking/locales.d.ts +0 -3
  60. package/es/components/booking/locales.js +0 -3
  61. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  62. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  63. package/es/components/eftpos/form/index.d.ts +0 -1
  64. package/es/components/eftpos/group/index.d.ts +0 -1
  65. package/es/components/eftpos/hooks.d.ts +0 -1
  66. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  67. package/es/components/eftpos/icon/device.d.ts +0 -1
  68. package/es/components/eftpos/receipt/index.d.ts +0 -1
  69. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  70. package/es/components/eftposPay/amount.d.ts +1 -1
  71. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  72. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  73. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  74. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  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 +0 -1
  87. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  89. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  90. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  91. package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
  92. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  97. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/bookingDetailModal/index.js +4 -22
  101. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  102. package/es/components/eventBooking/index.js +7 -21
  103. package/es/components/eventBooking/locales.d.ts +0 -24
  104. package/es/components/eventBooking/locales.js +6 -30
  105. package/es/components/index.d.ts +1 -3
  106. package/es/components/index.js +1 -3
  107. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  108. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  111. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  112. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  113. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  114. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  115. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  116. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  117. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  118. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  119. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  120. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  121. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  122. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  124. package/es/components/schedules/products/index.d.ts +0 -1
  125. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  126. package/es/components/schedules/utils.d.ts +1 -1
  127. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  128. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  129. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  130. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  131. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  132. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  133. package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
  134. package/es/components/ticketBooking/locales.d.ts +146 -164
  135. package/es/components/ticketBooking/locales.js +147 -195
  136. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  137. package/es/index.d.ts +0 -2
  138. package/es/index.js +1 -3
  139. package/es/utils/index.d.ts +1 -1
  140. package/lib/businessModel/SalesModel/Sales/index.js +8 -22
  141. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  142. package/lib/components/Sales/Cart/index.js +0 -1
  143. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  144. package/lib/components/Sales/Cart/utils.js +0 -117
  145. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  146. package/lib/components/Sales/Checkout/index.js +7 -39
  147. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  148. package/lib/components/Sales/Checkout/serve.js +2 -7
  149. package/lib/components/Sales/Checkout/utils.js +0 -2
  150. package/lib/components/Sales/Resource/index.js +1 -1
  151. package/lib/components/Sales/Resource/serve.d.ts +0 -7
  152. package/lib/components/Sales/Resource/serve.js +2 -9
  153. package/lib/components/Sales/Summary/index.d.ts +0 -10
  154. package/lib/components/Sales/Summary/index.js +1 -7
  155. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  156. package/lib/components/Sales/Summary/serve.js +0 -32
  157. package/lib/components/Sales/Summary/utils.d.ts +1 -16
  158. package/lib/components/Sales/Summary/utils.js +1 -30
  159. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  160. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  161. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  162. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  163. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  164. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  165. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  166. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  167. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  168. package/lib/components/appointmentBooking/index.js +0 -11
  169. package/lib/components/appointmentBooking/index.less +1 -1
  170. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  171. package/lib/components/booking/components/footer/utils.d.ts +0 -1
  172. package/lib/components/booking/components/footer/utils.js +0 -2
  173. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  174. package/lib/components/booking/components/voucher/index.js +2 -2
  175. package/lib/components/booking/forms/table/index.d.ts +0 -1
  176. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  177. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  178. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  179. package/lib/components/booking/info/index.d.ts +0 -1
  180. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  181. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  182. package/lib/components/booking/info/service2/utils.js +2 -2
  183. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
  184. package/lib/components/booking/info2/service/addService/utils.js +5 -32
  185. package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
  186. package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
  187. package/lib/components/booking/info2/utilsByBooking.js +0 -6
  188. package/lib/components/booking/locales.d.ts +0 -3
  189. package/lib/components/booking/locales.js +0 -3
  190. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  191. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  192. package/lib/components/eftpos/form/index.d.ts +0 -1
  193. package/lib/components/eftpos/group/index.d.ts +0 -1
  194. package/lib/components/eftpos/hooks.d.ts +0 -1
  195. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  196. package/lib/components/eftpos/icon/device.d.ts +0 -1
  197. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  198. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  199. package/lib/components/eftposPay/amount.d.ts +1 -1
  200. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  201. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  202. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  203. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  204. package/lib/components/eftposPay/const.d.ts +1 -4
  205. package/lib/components/eftposPay/const.js +0 -2
  206. package/lib/components/eftposPay/device.d.ts +1 -1
  207. package/lib/components/eftposPay/hooks.d.ts +2 -2
  208. package/lib/components/eftposPay/hooks.js +4 -11
  209. package/lib/components/eftposPay/index.js +1 -1
  210. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  211. package/lib/components/eftposPay/manufacturer.js +0 -6
  212. package/lib/components/eftposPay/pay.d.ts +1 -1
  213. package/lib/components/eftposPay/pay.js +2 -13
  214. package/lib/components/eftposPay/store/index.d.ts +4 -4
  215. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  216. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  217. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  218. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  219. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  220. package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
  221. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  222. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  223. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  224. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  225. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  227. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  228. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -10
  230. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  231. package/lib/components/eventBooking/index.js +7 -11
  232. package/lib/components/eventBooking/locales.d.ts +0 -24
  233. package/lib/components/eventBooking/locales.js +6 -30
  234. package/lib/components/index.d.ts +1 -3
  235. package/lib/components/index.js +0 -6
  236. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  237. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  238. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  239. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  240. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  241. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  242. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  243. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  244. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  245. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  246. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  247. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  248. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  249. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  250. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  251. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  252. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  253. package/lib/components/schedules/products/index.d.ts +0 -1
  254. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  255. package/lib/components/schedules/utils.d.ts +1 -1
  256. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  257. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  258. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  259. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  260. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  261. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  262. package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
  263. package/lib/components/ticketBooking/locales.d.ts +146 -164
  264. package/lib/components/ticketBooking/locales.js +4 -22
  265. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  266. package/lib/index.d.ts +0 -2
  267. package/lib/index.js +0 -6
  268. package/lib/utils/index.d.ts +1 -1
  269. package/package.json +4 -4
  270. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  271. package/es/components/booking/editBookingModal/index.js +0 -386
  272. package/es/components/booking/editBookingModal/index.less +0 -8
  273. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  274. package/es/components/booking/editBookingModal/locales.js +0 -20
  275. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  276. package/es/components/booking/editBookingModal/mock.js +0 -2993
  277. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  278. package/es/components/booking/editBookingModal/serve.js +0 -288
  279. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  280. package/es/components/booking/editBookingModal/type.js +0 -1
  281. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  282. package/es/components/booking/editBookingModal/utils.js +0 -157
  283. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  284. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
  285. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  286. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
  287. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  288. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  289. package/es/components/eftposPay/linkly/const.js +0 -82
  290. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  291. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  292. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  293. package/es/components/eftposPay/linkly/hooks/normal.js +0 -318
  294. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  295. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  296. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  297. package/es/components/eftposPay/linkly/index.js +0 -197
  298. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  299. package/es/components/eftposPay/linkly/service.js +0 -73
  300. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  301. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  302. package/es/components/stepController/components/Content/index.d.ts +0 -7
  303. package/es/components/stepController/components/Content/index.js +0 -9
  304. package/es/components/stepController/components/Content/index.less +0 -8
  305. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  306. package/es/components/stepController/components/Footer/index.js +0 -15
  307. package/es/components/stepController/components/Footer/index.less +0 -39
  308. package/es/components/stepController/components/Header/index.d.ts +0 -20
  309. package/es/components/stepController/components/Header/index.js +0 -97
  310. package/es/components/stepController/components/Header/index.less +0 -21
  311. package/es/components/stepController/index.d.ts +0 -5
  312. package/es/components/stepController/index.js +0 -64
  313. package/es/components/stepController/index.less +0 -11
  314. package/es/components/stepController/locales.d.ts +0 -27
  315. package/es/components/stepController/locales.js +0 -32
  316. package/es/components/stepController/types.d.ts +0 -23
  317. package/es/components/stepController/types.js +0 -1
  318. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  319. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  320. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  321. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  322. package/es/hooks/useWindowSize.d.ts +0 -5
  323. package/es/hooks/useWindowSize.js +0 -26
  324. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  325. package/lib/components/booking/editBookingModal/index.js +0 -363
  326. package/lib/components/booking/editBookingModal/index.less +0 -8
  327. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  328. package/lib/components/booking/editBookingModal/locales.js +0 -44
  329. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  330. package/lib/components/booking/editBookingModal/mock.js +0 -3314
  331. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  332. package/lib/components/booking/editBookingModal/serve.js +0 -178
  333. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  334. package/lib/components/booking/editBookingModal/type.js +0 -17
  335. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  336. package/lib/components/booking/editBookingModal/utils.js +0 -158
  337. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  338. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
  339. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  340. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
  341. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  342. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  343. package/lib/components/eftposPay/linkly/const.js +0 -102
  344. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  345. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  346. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  347. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -239
  348. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  349. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  350. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  351. package/lib/components/eftposPay/linkly/index.js +0 -208
  352. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  353. package/lib/components/eftposPay/linkly/service.js +0 -55
  354. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  355. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  356. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  357. package/lib/components/stepController/components/Content/index.js +0 -40
  358. package/lib/components/stepController/components/Content/index.less +0 -8
  359. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  360. package/lib/components/stepController/components/Footer/index.js +0 -49
  361. package/lib/components/stepController/components/Footer/index.less +0 -39
  362. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  363. package/lib/components/stepController/components/Header/index.js +0 -104
  364. package/lib/components/stepController/components/Header/index.less +0 -21
  365. package/lib/components/stepController/index.d.ts +0 -5
  366. package/lib/components/stepController/index.js +0 -89
  367. package/lib/components/stepController/index.less +0 -11
  368. package/lib/components/stepController/locales.d.ts +0 -27
  369. package/lib/components/stepController/locales.js +0 -50
  370. package/lib/components/stepController/types.d.ts +0 -23
  371. package/lib/components/stepController/types.js +0 -17
  372. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  373. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  374. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  375. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
  376. package/lib/hooks/useWindowSize.d.ts +0 -5
  377. package/lib/hooks/useWindowSize.js +0 -51
  378. package/lowcode/edit-booking-modal/meta.ts +0 -53
  379. package/lowcode/step-controller/meta.ts +0 -88
@@ -179,23 +179,14 @@ export var formatResources = function formatResources(_ref5) {
179
179
  var _item = cloneDeep(item);
180
180
  _item.renderList = _item.renderList.map(function (d) {
181
181
  var res = formatResource(d, _cacheItem, function (newData) {
182
- var unbound = !item.optional_resource.includes(newData.id) && !item.default_resource.includes(newData.id) && newData.id !== 0;
183
182
  return /*#__PURE__*/React.createElement("div", {
184
183
  className: "resource-option"
185
184
  }, /*#__PURE__*/React.createElement("div", {
186
185
  className: "like-wrap"
187
- }), /*#__PURE__*/React.createElement("span", {
188
- className: "resource-option-label-text"
189
- }, newData.labelText), (!newData.usable || unbound) && /*#__PURE__*/React.createElement(AlertTriangle, {
186
+ }), newData.labelText, !newData.usable && /*#__PURE__*/React.createElement(AlertTriangle, {
190
187
  className: "resource-option-alert-icon"
191
188
  }));
192
189
  });
193
- // 平行资源日历拖拽需求
194
- // 当拖入为绑定的资源中时,为了展示,会临时创建目标资源对应的resourceItem
195
- // 但是在 item.optional_resource 中并不包含目标资源id
196
- if (!item.optional_resource.includes(d.id) && !item.default_resource.includes(d.id) && d.id !== 0) {
197
- res.unbound = true;
198
- }
199
190
  renderListMaps[res.id] = res;
200
191
  return res;
201
192
  }).sort(function (a, b) {
@@ -365,12 +356,10 @@ export var setDefaultCapacitys = function setDefaultCapacitys(_ref7) {
365
356
  * @Author: zhiwei.Wang
366
357
  * @Date: 2024-09-19 20:23
367
358
  */
368
- export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cacheItem, extraParams) {
359
+ var getResourceByIds = function getResourceByIds(resourcesOriginMap, cacheItem) {
369
360
  var _cacheItem$product_re;
370
361
  var _resources = _toConsumableArray((cacheItem === null || cacheItem === void 0 || (_cacheItem$product_re = cacheItem.product_resource) === null || _cacheItem$product_re === void 0 ? void 0 : _cacheItem$product_re.resources) || []);
371
- var _ref8 = extraParams || {},
372
- _ref8$extraResources = _ref8.extraResources,
373
- extraResources = _ref8$extraResources === void 0 ? [] : _ref8$extraResources;
362
+
374
363
  // 过滤出开启的资源
375
364
  _resources = _resources.filter(function (d) {
376
365
  return d.status == 1;
@@ -382,14 +371,6 @@ export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cach
382
371
  var item = _step2.value;
383
372
  var form_id = item.id;
384
373
 
385
- // 将未绑定的资源,也放入 SelectOption 列表,避免出现仅展示id的情况
386
- var extraResourceIds = extraResources.filter(function (_extraItem) {
387
- return _extraItem.form_id === form_id && !item.optional_resource.includes(_extraItem.id) && !item.default_resource.includes(_extraItem.id);
388
- }).map(function (_extraItem) {
389
- return _extraItem.id;
390
- });
391
- extraResourceIds = Array.from(new Set(extraResourceIds));
392
-
393
374
  // 去重
394
375
  item.optional_resource = (item.optional_resource || []).filter(function (d) {
395
376
  return item.default_resource.indexOf(d) == -1;
@@ -399,10 +380,7 @@ export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cach
399
380
  if (resourcesOriginMap[d].combined_resource && resourcesOriginMap[d].combined_resource.status === 1) {
400
381
  resourcesOriginMap[d].combined_resource.resource_ids.forEach(function (id) {
401
382
  if (resourcesOriginMap[id]) {
402
- var _resourcesOriginMap$i, _resourcesOriginMap$i2;
403
- combiningResources.push(_objectSpread(_objectSpread({}, resourcesOriginMap[id]), {}, {
404
- relation_id: ((_resourcesOriginMap$i = resourcesOriginMap[id]) === null || _resourcesOriginMap$i === void 0 ? void 0 : _resourcesOriginMap$i.relation_id) || ((_resourcesOriginMap$i2 = resourcesOriginMap[id]) === null || _resourcesOriginMap$i2 === void 0 ? void 0 : _resourcesOriginMap$i2.id)
405
- }));
383
+ combiningResources.push(resourcesOriginMap[id]);
406
384
  }
407
385
  });
408
386
  }
@@ -415,7 +393,7 @@ export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cach
415
393
  };
416
394
 
417
395
  // 可选项
418
- var optional_resource = [].concat(_toConsumableArray(item.optional_resource), _toConsumableArray(extraResourceIds)).map(function (d) {
396
+ var optional_resource = item.optional_resource.map(function (d) {
419
397
  if (!resourcesOriginMap[d]) {
420
398
  return null;
421
399
  }
@@ -476,10 +454,10 @@ var getIsAutoClose = function getIsAutoClose(cacheItem) {
476
454
  }
477
455
  }
478
456
  }
479
- return Object.entries(cacheItem._extend.resource).every(function (_ref9) {
480
- var _ref10 = _slicedToArray(_ref9, 2),
481
- key = _ref10[0],
482
- value = _ref10[1];
457
+ return Object.entries(cacheItem._extend.resource).every(function (_ref8) {
458
+ var _ref9 = _slicedToArray(_ref8, 2),
459
+ key = _ref9[0],
460
+ value = _ref9[1];
483
461
  return getAutoAllocationStorage(key) && (value === null || value === void 0 ? void 0 : value.length);
484
462
  });
485
463
  };
@@ -492,10 +470,10 @@ var getIsAutoClose = function getIsAutoClose(cacheItem) {
492
470
  * @Author: zhiwei.Wang
493
471
  * @Date: 2024-06-01 13:25
494
472
  */
495
- export var getProductExtend = function getProductExtend(_ref11) {
496
- var cacheItem = _ref11.cacheItem,
497
- state = _ref11.state,
498
- isDisabledTime = _ref11.isDisabledTime;
473
+ export var getProductExtend = function getProductExtend(_ref10) {
474
+ var cacheItem = _ref10.cacheItem,
475
+ state = _ref10.state,
476
+ isDisabledTime = _ref10.isDisabledTime;
499
477
  // 有endDate 说明是在编辑已经保存过的商品, 没有则是编辑还没保存过的商品
500
478
  var isNew = cacheItem.new || !cacheItem._extend.endDate;
501
479
  var _cacheItem = _objectSpread({}, cacheItem);
@@ -592,19 +570,7 @@ export var getProductExtend = function getProductExtend(_ref11) {
592
570
  _cacheItem._data.capacitys = cacheItem.capacity;
593
571
  }
594
572
  if (!_cacheItem._data.resourcesOrigin) {
595
- var extraResources = [];
596
- // 日历中可以将预约拖入未绑定的资源中,需要兼容未绑定资源的 selectOption展示
597
- if (Array.isArray(_cacheItem._extend.event_resources)) {
598
- _cacheItem._extend.event_resources.forEach(function (_item) {
599
- extraResources.push({
600
- form_id: _item.form_id,
601
- id: _item.relation_id
602
- });
603
- });
604
- }
605
- _cacheItem._data.resourcesOrigin = getResourceByIds(resourcesOriginMap, cacheItem, {
606
- extraResources: extraResources
607
- });
573
+ _cacheItem._data.resourcesOrigin = getResourceByIds(resourcesOriginMap, cacheItem);
608
574
  }
609
575
  if (!_cacheItem._data.resources) {
610
576
  // 资源
@@ -22,22 +22,14 @@ import { getErrorList } from "../../../utilsByBooking";
22
22
  import { isArray } from 'lodash';
23
23
  import { getAutoAllocationStorage, setAutoAllocationStorage } from "../utils";
24
24
  import { useUpdate } from 'ahooks';
25
- import { QuestionCircleOutlined } from '@ant-design/icons';
25
+ import { QuestionCircleOutlined } from "@ant-design/icons";
26
26
  var Resources = function Resources(_ref, ref) {
27
27
  var _cacheItem$_data2, _cacheItem$_data4;
28
28
  var state = _ref.state,
29
29
  cacheItem = _ref.cacheItem,
30
30
  getCurrentCacheItem = _ref.getCurrentCacheItem,
31
31
  onChange = _ref.onChange,
32
- value = _ref.value,
33
- _ref$config = _ref.config,
34
- config = _ref$config === void 0 ? {
35
- // 是否显示自动分配
36
- autoAllocation: true,
37
- // 是否显示资源错误图标
38
- resourceErrorIcon: true,
39
- disabled: false
40
- } : _ref$config;
32
+ value = _ref.value;
41
33
  var _useState = useState(false),
42
34
  _useState2 = _slicedToArray(_useState, 2),
43
35
  showError = _useState2[0],
@@ -152,7 +144,7 @@ var Resources = function Resources(_ref, ref) {
152
144
  relation_type: d.relation_type
153
145
  }), d[label]);
154
146
  });
155
- }, [config === null || config === void 0 ? void 0 : config.resourceErrorIcon]);
147
+ }, []);
156
148
 
157
149
  /**
158
150
  * @title: 检查当前资源最小选择数量
@@ -201,7 +193,6 @@ var Resources = function Resources(_ref, ref) {
201
193
  }, /*#__PURE__*/React.createElement(Form.Item, {
202
194
  label: item.title,
203
195
  required: true,
204
- labelCol: config === null || config === void 0 ? void 0 : config.labelCol,
205
196
  extra: showError && item.select_type.min > (cur === null || cur === void 0 ? void 0 : cur.length) ? /*#__PURE__*/React.createElement("span", {
206
197
  style: {
207
198
  color: '#ff4d4f'
@@ -210,17 +201,13 @@ var Resources = function Resources(_ref, ref) {
210
201
  }, /*#__PURE__*/React.createElement("div", {
211
202
  className: "resource-col"
212
203
  }, item.select_type.type === 'multiple' ? null : /*#__PURE__*/React.createElement(Button, {
213
- className: "resource-col-like-wrap ".concat(config !== null && config !== void 0 && config.disabled ? 'resource-col-like-wrap-disabled' : ''),
204
+ className: "resource-col-like-wrap",
214
205
  onClick: function onClick() {
215
206
  var _cur$;
216
- if (config !== null && config !== void 0 && config.disabled) {
217
- return;
218
- }
219
207
  setLikeStatus((cur === null || cur === void 0 || (_cur$ = cur[0]) === null || _cur$ === void 0 ? void 0 : _cur$.like_status) === 'like' ? 'common' : 'like', item.form_id, 'like_status');
220
208
  }
221
209
  }, /*#__PURE__*/React.createElement(Like, {
222
- status: cur === null || cur === void 0 || (_cur$2 = cur[0]) === null || _cur$2 === void 0 ? void 0 : _cur$2.like_status,
223
- className: "".concat(config !== null && config !== void 0 && config.disabled ? 'like-icon-disabled' : '')
210
+ status: cur === null || cur === void 0 || (_cur$2 = cur[0]) === null || _cur$2 === void 0 ? void 0 : _cur$2.like_status
224
211
  })), /*#__PURE__*/React.createElement(MaxLengthSelect, {
225
212
  className: "resource-col-select",
226
213
  size: "large",
@@ -241,16 +228,15 @@ var Resources = function Resources(_ref, ref) {
241
228
  showSearch: true,
242
229
  filterOption: function filterOption(str, option) {
243
230
  return ((option === null || option === void 0 ? void 0 : option.labelText) || '').toLowerCase().includes((str || '').toLowerCase());
244
- },
245
- disabled: config === null || config === void 0 ? void 0 : config.disabled
246
- }, renderOptions(item.renderList, 'id', config !== null && config !== void 0 && config.resourceErrorIcon ? 'label' : 'labelText', 'resource')), config !== null && config !== void 0 && config.autoAllocation ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Checkbox, {
231
+ }
232
+ }, renderOptions(item.renderList, 'id', 'label', 'resource')), /*#__PURE__*/React.createElement(Checkbox, {
247
233
  checked: getIsAutoAllocation(item.form_id),
248
234
  onChange: function onChange(e) {
249
235
  handleCheckAutoAllocation(item.form_id, e.target.checked);
250
236
  }
251
237
  }), /*#__PURE__*/React.createElement(Tooltip, {
252
238
  title: locales.getText('page.booking.text.resource.check-auto-allocation-tip')
253
- }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null))) : null)), state.renderType !== 'eventBooking' && (errors || []).map(function (d) {
239
+ }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null)))), state.renderType !== 'eventBooking' && (errors || []).map(function (d) {
254
240
  return /*#__PURE__*/React.createElement(Alert, {
255
241
  key: d.type,
256
242
  message: d.label,
@@ -15,12 +15,6 @@
15
15
  .like-resource {}
16
16
  }
17
17
 
18
- .resource-col-like-wrap-disabled,
19
- .like-icon-disabled {
20
- opacity: 0.5;
21
- cursor: not-allowed;
22
- }
23
-
24
18
  .resource-col-select {
25
19
  flex: 1;
26
20
  }
@@ -260,15 +260,6 @@ export var getErrorList = function getErrorList(resource, cacheItem) {
260
260
  }
261
261
  }
262
262
  }
263
-
264
- // 平行资源日历拖动优化需求
265
- // 拖入到未绑定的资源中
266
- if (resource.unbound) {
267
- list.push({
268
- label: locales.getText('pisell1.text.resource-error-message-unbound'),
269
- type: "time"
270
- });
271
- }
272
263
  return list;
273
264
  };
274
265
 
@@ -110,7 +110,6 @@ declare const _default: {
110
110
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
111
111
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
112
112
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
113
- 'pisell1.text.resource-error-message-unbound': string;
114
113
  'pisell1.text.no-addons': string;
115
114
  'pisell1.text.no-resource': string;
116
115
  'pisell1.text.no-payments': string;
@@ -390,7 +389,6 @@ declare const _default: {
390
389
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
391
390
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
392
391
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
393
- 'pisell1.text.resource-error-message-unbound': string;
394
392
  'pisell2.text.flexible': string;
395
393
  'pisell2.text.order-discount': string;
396
394
  'pisell2.text.no-product-added': string;
@@ -662,7 +660,6 @@ declare const _default: {
662
660
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
663
661
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
664
662
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
665
- 'pisell1.text.resource-error-message-unbound': string;
666
663
  'pisell2.text.flexible': string;
667
664
  'pisell2.text.order-discount': string;
668
665
  'pisell2.text.no-product-added': string;
@@ -128,7 +128,6 @@ export default {
128
128
  'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
129
129
  return "".concat(x, " is fully booked between ").concat(y, " and ").concat(z, ", but your team member can still book appointments.");
130
130
  },
131
- 'pisell1.text.resource-error-message-unbound': 'This booking product is not associated with the target resource.',
132
131
  'pisell1.text.no-addons': 'No addons',
133
132
  'pisell1.text.no-resource': 'No resource',
134
133
  'pisell1.text.no-payments': 'No payments',
@@ -455,7 +454,6 @@ export default {
455
454
  'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
456
455
  return "".concat(x, "\u5728").concat(y, "\u5230").concat(z, "\u4E4B\u95F4\u5DF2\u7EA6\u6EE1\uFF0C\u4F46\u60A8\u7684\u56E2\u961F\u6210\u5458\u4ECD\u7136\u53EF\u4EE5\u9884\u7EA6\u3002");
457
456
  },
458
- 'pisell1.text.resource-error-message-unbound': '该预约商品未关联目标资源。',
459
457
  'pisell2.text.flexible': "灵活",
460
458
  'pisell2.text.order-discount': "折扣",
461
459
  'pisell2.text.no-product-added': '未添加商品',
@@ -774,7 +772,6 @@ export default {
774
772
  'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
775
773
  return "".concat(x, "\u5728").concat(y, "\u5230").concat(z, "\u4E4B\u9593\u5DF2\u7D04\u6EFF\uFF0C\u4F46\u60A8\u7684\u5718\u968A\u6210\u54E1\u4ECD\u7136\u53EF\u4EE5\u9810\u7D04\u3002");
776
774
  },
777
- 'pisell1.text.resource-error-message-unbound': '該預約商品未關聯目標資源。',
778
775
  'pisell2.text.flexible': "靈活",
779
776
  'pisell2.text.order-discount': "折扣",
780
777
  'pisell2.text.no-product-added': '未添加商品',
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -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" | "print" | "fail" | "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,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
  /** 交易请求超时 */
@@ -3,9 +3,8 @@ 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";
7
6
  return EftposEnum;
8
- }({});
7
+ }({}); // Eftpos = 'eftpos',
9
8
  export var StatusEnum = /*#__PURE__*/function (StatusEnum) {
10
9
  StatusEnum["Loading"] = "loading";
11
10
  StatusEnum["Warn"] = "warn";
@@ -65,7 +64,6 @@ export var PayRouteEnum = /*#__PURE__*/function (PayRouteEnum) {
65
64
  export var PayStatus = /*#__PURE__*/function (PayStatus) {
66
65
  PayStatus["Success"] = "200";
67
66
  PayStatus["NoPay"] = "4004";
68
- PayStatus["PairingFailure"] = "606020";
69
67
  PayStatus["Unknown"] = "701000";
70
68
  PayStatus["Timeout"] = "701001";
71
69
  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" | "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" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "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" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -139,7 +139,6 @@ export var useFail = function useFail(index) {
139
139
  return;
140
140
  }
141
141
  var code = "".concat(res.code);
142
- console.log('code---->>>>>>>', code);
143
142
  if (code === PayStatus.Unknown) {
144
143
  // 前往报错页 不可标记
145
144
  steps[index].title = locales.getText('page.eftpos-pay.text.failed')(modeRef.current);
@@ -225,7 +224,6 @@ export var useFail = function useFail(index) {
225
224
  dispatch(updateComponent('Fail'));
226
225
  return;
227
226
  }
228
-
229
227
  // 重新支付 最多到重新发起2次
230
228
  ref.current += 1;
231
229
  dispatch(updateState({
@@ -302,7 +300,7 @@ export var useFail = function useFail(index) {
302
300
  }));
303
301
  return;
304
302
  }
305
- if (code === PayStatus.UserConfigError || code === PayStatus.PairingFailure) {
303
+ if (code === PayStatus.UserConfigError) {
306
304
  // 前往错误页 不可标记状态
307
305
  steps[index].title = locales.getText('page.eftpos-pay.text.transaction.user.config.title');
308
306
  steps[index].fail = locales.getText('page.eftpos-pay.text.transaction.user.config.text');
@@ -163,7 +163,7 @@ export default (function (props) {
163
163
  }, [mode, state]);
164
164
  useEffect(function () {
165
165
  document.body.id = 'body';
166
- console.log('初始化 ........112218017777');
166
+ console.log('初始化 ........11221801');
167
167
  }, []);
168
168
 
169
169
  // console.log('action = ', action);
@@ -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;
@@ -2,12 +2,10 @@ import { EftposEnum } from "./const";
2
2
  import getPayoInitState from "./payo/const";
3
3
  import getTyroInitState from "./tyro/const";
4
4
  import getWindcaveInitState from "./windcave/const";
5
- import getLinklyInitState from "./linkly/const";
6
5
  export { getAmonunt } from "./helper";
7
6
  export { default as Payo } from "./payo";
8
7
  export { default as Windcave } from "./windcave/windcave";
9
8
  export { default as Tyro } from "./tyro";
10
- export { default as Linkly } from "./linkly";
11
9
  export var getInitState = function getInitState(type, params) {
12
10
  switch (type) {
13
11
  case EftposEnum.Payo:
@@ -16,8 +14,6 @@ export var getInitState = function getInitState(type, params) {
16
14
  return getWindcaveInitState(params);
17
15
  case EftposEnum.Tyro:
18
16
  return getTyroInitState(params);
19
- case EftposEnum.Linkly:
20
- return getLinklyInitState(params);
21
17
  default:
22
18
  throw new Error('未知的厂商类型');
23
19
  }
@@ -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
  };
@@ -10,7 +10,7 @@ import { getPayParams } from "./helper";
10
10
  import Manual from "./component/manual";
11
11
  import Signature from "./component/signature";
12
12
  import { StatusEnum, PayRouteEnum, ClientEnum } from "./const";
13
- import { Payo, Windcave, Tyro, Linkly } from "./manufacturer";
13
+ import { Payo, Windcave, Tyro } from "./manufacturer";
14
14
  import { useContextData, useDispatch, updateStatus, backUpProduction, updateComponent, backUpFree, updateState } from "./store";
15
15
  import "./index.less";
16
16
 
@@ -150,7 +150,7 @@ var Pay = function Pay(_ref) {
150
150
  }
151
151
  };
152
152
  }, []);
153
- console.log('data =>>>>>> ', data);
153
+ // console.log("pay2222 = ",'pay 222' , data.render,data.type)
154
154
  return /*#__PURE__*/React.createElement(React.Fragment, null, data.render ? /*#__PURE__*/React.createElement("div", {
155
155
  className: "pisell-lowcode__eft-pay-box ".concat(className),
156
156
  style: data.type === 'step' ? {} : {
@@ -178,10 +178,6 @@ var Pay = function Pay(_ref) {
178
178
  onChange: onChange,
179
179
  key: data.key,
180
180
  formatAmount: formatAmount
181
- }) : null, data.eftpos === 'linkly' ? /*#__PURE__*/React.createElement(Linkly, {
182
- key: data.key,
183
- api: api,
184
- onChange: onChange
185
181
  }) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
186
182
  onChange: onChange,
187
183
  api: api,
@@ -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" | "loading" | "warn" | "fail" | "question";
177
+ status: "loading" | "warn" | "success" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,18 +297,18 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "tyro" | "windcave" | "payo" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;