@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
@@ -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 } from "./manufacturer";
13
+ import { Payo, Windcave, Tyro, Linkly } 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("pay2222 = ",'pay 222' , data.render,data.type)
153
+ console.log('data =>>>>>> ', data);
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,6 +178,10 @@ 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
181
185
  }) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
182
186
  onChange: onChange,
183
187
  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" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "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;
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useMemo, useState } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { Button, PisellToast } from '@pisell/materials';
19
- import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer } from "../../../../../Sales";
19
+ import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer, useSummary } from "../../../../../Sales";
20
20
  import { formatValues, getFormParams } from "../../../../../Sales/Checkout/utils";
21
21
  import OrderProductModal from "../../OrderProductModal/index";
22
22
  import EmptyHolderModal from "../../EmptyHolderModal";
@@ -24,6 +24,7 @@ import { getProductPrice } from "../../../../../Sales/Event/serve";
24
24
  import { useRequest } from 'ahooks';
25
25
  import useEngineContext from "../../../../../../hooks/useEngineContext";
26
26
  import "./index.less";
27
+ import { Toast } from "../../../../../appointmentBooking/utils";
27
28
  var ContinueButton = function ContinueButton() {
28
29
  var _context$appHelper, _cartData$cartItems;
29
30
  var _useSales = useSales(),
@@ -43,10 +44,14 @@ var ContinueButton = function ContinueButton() {
43
44
  onCheckout = _useCheckout.onCheckout,
44
45
  createBooking = _useCheckout.createBooking,
45
46
  onCheckBeforeBooking = _useCheckout.onCheckBeforeBooking,
46
- checkBeforeBooking = _useCheckout.checkBeforeBooking;
47
+ checkBeforeBooking = _useCheckout.checkBeforeBooking,
48
+ freePay = _useCheckout.freePay;
47
49
  var _useCustomer = useCustomer(),
48
50
  openLoginModal = _useCustomer.openLoginModal,
49
51
  isLogin = _useCustomer.isLogin;
52
+ var _useSummary = useSummary(),
53
+ deposit = _useSummary.deposit,
54
+ isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy;
50
55
 
51
56
  // 下单之前是否检测失败
52
57
  var _useState = useState(false),
@@ -384,41 +389,48 @@ var ContinueButton = function ContinueButton() {
384
389
  */
385
390
  var handleContinue = /*#__PURE__*/function () {
386
391
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
387
- var value, checkRes, emptyHolders;
392
+ var _deposit$protocols, value, checkRes, emptyHolders;
388
393
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
389
394
  while (1) switch (_context6.prev = _context6.next) {
390
395
  case 0:
391
396
  if (!isLastStep) {
392
- _context6.next = 14;
397
+ _context6.next = 17;
398
+ break;
399
+ }
400
+ value = formatValues(data); // 如果未同意定金政策,则提示
401
+ if (!(deposit !== null && deposit !== void 0 && deposit.hasDeposit && (deposit === null || deposit === void 0 || (_deposit$protocols = deposit.protocols) === null || _deposit$protocols === void 0 ? void 0 : _deposit$protocols.length) > 0 && !isAgreeDepositPolicy)) {
402
+ _context6.next = 5;
393
403
  break;
394
404
  }
395
- value = formatValues(data); // 检测商品是否可以下单
396
- _context6.next = 4;
405
+ Toast(locales.getText('pisell2.appointment.deposit.agree.policy'));
406
+ return _context6.abrupt("return");
407
+ case 5:
408
+ _context6.next = 7;
397
409
  return onCheckBeforeBooking(value);
398
- case 4:
410
+ case 7:
399
411
  checkRes = _context6.sent;
400
412
  if (!((checkRes === null || checkRes === void 0 ? void 0 : checkRes.result) === false)) {
401
- _context6.next = 9;
413
+ _context6.next = 12;
402
414
  break;
403
415
  }
404
416
  setCheckedNumber(checkRes === null || checkRes === void 0 ? void 0 : checkRes.num);
405
417
  setOpenCheckout(true);
406
418
  return _context6.abrupt("return");
407
- case 9:
419
+ case 12:
408
420
  // 验证holder是否为空
409
421
  emptyHolders = getWithoutCartItemsHolderNames();
410
422
  if (!((emptyHolders === null || emptyHolders === void 0 ? void 0 : emptyHolders.length) > 0)) {
411
- _context6.next = 12;
423
+ _context6.next = 15;
412
424
  break;
413
425
  }
414
426
  return _context6.abrupt("return", setOpenEmptyHolder(true));
415
- case 12:
427
+ case 15:
416
428
  // 关闭购物车弹窗
417
429
  onCloseCart();
418
430
  return _context6.abrupt("return", handleCheckout());
419
- case 14:
431
+ case 17:
420
432
  if (isLogin()) {
421
- _context6.next = 17;
433
+ _context6.next = 20;
422
434
  break;
423
435
  }
424
436
  onCloseCart();
@@ -448,9 +460,9 @@ var ContinueButton = function ContinueButton() {
448
460
  return callback;
449
461
  }()
450
462
  }));
451
- case 17:
463
+ case 20:
452
464
  handleHolder();
453
- case 18:
465
+ case 21:
454
466
  case "end":
455
467
  return _context6.stop();
456
468
  }
@@ -487,8 +499,8 @@ var ContinueButton = function ContinueButton() {
487
499
  */
488
500
  var confirmLoading = useMemo(function () {
489
501
  if (!isLastStep) return false;
490
- return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading);
491
- }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading]);
502
+ return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading) || (freePay === null || freePay === void 0 ? void 0 : freePay.loading);
503
+ }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading, freePay === null || freePay === void 0 ? void 0 : freePay.loading]);
492
504
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
493
505
  disabled: !(cartData !== null && cartData !== void 0 && (_cartData$cartItems = cartData.cartItems) !== null && _cartData$cartItems !== void 0 && _cartData$cartItems.length),
494
506
  size: "large",
@@ -0,0 +1,2 @@
1
+ declare const Deposit: () => JSX.Element;
2
+ export default Deposit;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { useSummary } from "../../../../../Sales";
3
+ import { DepositContent } from "../../../../../appointmentBooking/components/Deposit";
4
+ var Deposit = function Deposit() {
5
+ var _useSummary = useSummary(),
6
+ deposit = _useSummary.deposit,
7
+ isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy,
8
+ setIsAgreeDepositPolicy = _useSummary.setIsAgreeDepositPolicy,
9
+ getDepositProtocol = _useSummary.getDepositProtocol;
10
+ return /*#__PURE__*/React.createElement(DepositContent, {
11
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
12
+ setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
13
+ deposit: deposit,
14
+ depositProtocolRequest: getDepositProtocol
15
+ });
16
+ };
17
+ export default Deposit;
@@ -5,21 +5,25 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
5
5
  import React from 'react';
6
6
  import { locales } from '@pisell/utils';
7
7
  import { PisellText } from '@pisell/materials';
8
- import { useSummary } from "../../../../../Sales";
8
+ import { useCart, useSummary } from "../../../../../Sales";
9
9
  import useEngineContext from "../../../../../../hooks/useEngineContext";
10
10
  import "./index.less";
11
11
  import classNames from 'classnames';
12
12
  var Total = function Total(_ref) {
13
- var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g;
13
+ var _context$appHelper, _context$appHelper$ge, _cartData$cartItems, _cartData$cartItems2, _context$appHelper2, _context$appHelper2$g;
14
14
  var className = _ref.className,
15
15
  isFooter = _ref.isFooter;
16
+ var _useCart = useCart(),
17
+ cartData = _useCart.cartData;
16
18
  var _useSummary = useSummary(),
17
19
  taxTitle = _useSummary.taxTitle,
18
20
  totalTaxFee = _useSummary.totalTaxFee,
19
21
  isPriceIncludeTax = _useSummary.isPriceIncludeTax,
20
- total = _useSummary.total;
22
+ total = _useSummary.total,
23
+ deposit = _useSummary.deposit;
21
24
  var context = useEngineContext();
22
- console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), 'wh97978');
25
+ console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), deposit, 'wh97978');
26
+ var showDeposit = (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && (deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit);
23
27
  return /*#__PURE__*/React.createElement("div", {
24
28
  className: "event-total-wrap ".concat(className)
25
29
  }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("div", {
@@ -31,8 +35,8 @@ var Total = function Total(_ref) {
31
35
  className: classNames('event-total', _defineProperty({}, ['total-gst-wrap'], !isPriceIncludeTax && Number(totalTaxFee) > 0))
32
36
  }, /*#__PURE__*/React.createElement("div", {
33
37
  className: "left"
34
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
35
- value: total,
38
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, isFooter && showDeposit ? locales.getText('pisell2.appointment.deposit') : locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
39
+ value: (cartData === null || cartData === void 0 || (_cartData$cartItems2 = cartData.cartItems) === null || _cartData$cartItems2 === void 0 ? void 0 : _cartData$cartItems2.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? deposit === null || deposit === void 0 ? void 0 : deposit.total : total,
36
40
  showCurrencySymbol: true,
37
41
  className: "event-amount"
38
42
  }) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("span", {
@@ -5,8 +5,10 @@ import { useCart, useHolder, useSummary, useStep } from "../../../../../Sales";
5
5
  import SelectHolderModal from "../../SelectHolderModal";
6
6
  import ContinueButton from "../ContinueButton";
7
7
  import Total from "./Total";
8
+ import Deposit from "../Deposit";
8
9
  import "./index.less";
9
10
  var CartItem = function CartItem() {
11
+ var _cartData$cartItems;
10
12
  var _useHolder = useHolder(),
11
13
  open = _useHolder.open,
12
14
  holderData = _useHolder.holderData,
@@ -17,7 +19,7 @@ var CartItem = function CartItem() {
17
19
  cartData = _useCart.cartData,
18
20
  addNoteToCartItem = _useCart.addNoteToCartItem;
19
21
  var _useSummary = useSummary(),
20
- subtotal = _useSummary.subtotal;
22
+ deposit = _useSummary.deposit;
21
23
  var _useStep = useStep(),
22
24
  isLastStep = _useStep.isLastStep;
23
25
  var handleClickCard = function handleClickCard(e, type, key) {
@@ -56,7 +58,7 @@ var CartItem = function CartItem() {
56
58
  }
57
59
  })), /*#__PURE__*/React.createElement("div", {
58
60
  className: "event-footer"
59
- }, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
61
+ }, /*#__PURE__*/React.createElement(Total, null), (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? /*#__PURE__*/React.createElement(Deposit, null) : null, /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
60
62
  open: open
61
63
  }));
62
64
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -304,7 +304,9 @@ var BookingDetailModal = function BookingDetailModal(props) {
304
304
  utils === null || utils === void 0 || utils.action({
305
305
  type: 'pisell1.productDetail',
306
306
  data: {
307
- detail: _objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}),
307
+ detail: _objectSpread(_objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}), {}, {
308
+ open_deposit: 1
309
+ }),
308
310
  isOS: false
309
311
  },
310
312
  callback: function callback(data) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -71,6 +71,14 @@ declare const _default: {
71
71
  'pisell2.event.capacity.limit.reached.tip': string;
72
72
  'pisell2.event.schedule.item.expand': string;
73
73
  'pisell2.event.schedule.item.collapse': string;
74
+ 'pisell2.appointment.deposit': string;
75
+ 'pisell2.appointment.deposit.agreed': string;
76
+ 'pisell2.appointment.deposit.agree.policy': string;
77
+ 'pisell2.appointment.deposit.and': string;
78
+ 'pisell2.appointment.deposit.amount.tip1': string;
79
+ 'pisell2.appointment.deposit.amount.tip2': string;
80
+ 'pisell2.appointment.deposit.close': string;
81
+ 'pisell2.appointment.booking.empty.data': string;
74
82
  };
75
83
  'zh-CN': {
76
84
  'pisell2.event.calendar.limit.unavailable': string;
@@ -144,6 +152,14 @@ declare const _default: {
144
152
  'pisell2.event.capacity.limit.reached.tip': string;
145
153
  'pisell2.event.schedule.item.expand': string;
146
154
  'pisell2.event.schedule.item.collapse': string;
155
+ 'pisell2.appointment.deposit': string;
156
+ 'pisell2.appointment.deposit.agreed': string;
157
+ 'pisell2.appointment.deposit.agree.policy': string;
158
+ 'pisell2.appointment.deposit.and': string;
159
+ 'pisell2.appointment.deposit.amount.tip1': string;
160
+ 'pisell2.appointment.deposit.amount.tip2': string;
161
+ 'pisell2.appointment.deposit.close': string;
162
+ 'pisell2.appointment.booking.empty.data': string;
147
163
  };
148
164
  'zh-HK': {
149
165
  'pisell2.event.calendar.limit.unavailable': string;
@@ -217,6 +233,14 @@ declare const _default: {
217
233
  'pisell2.event.capacity.limit.reached.tip': string;
218
234
  'pisell2.event.schedule.item.expand': string;
219
235
  'pisell2.event.schedule.item.collapse': string;
236
+ 'pisell2.appointment.deposit': string;
237
+ 'pisell2.appointment.deposit.agreed': string;
238
+ 'pisell2.appointment.deposit.agree.policy': string;
239
+ 'pisell2.appointment.deposit.and': string;
240
+ 'pisell2.appointment.deposit.amount.tip1': string;
241
+ 'pisell2.appointment.deposit.amount.tip2': string;
242
+ 'pisell2.appointment.deposit.close': string;
243
+ 'pisell2.appointment.booking.empty.data': string;
220
244
  };
221
245
  };
222
246
  export default _default;
@@ -82,7 +82,15 @@ export default {
82
82
  'pisell2.event.capacity.limit.reached.title': 'Capacity limit reached',
83
83
  'pisell2.event.capacity.limit.reached.tip': 'One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.',
84
84
  'pisell2.event.schedule.item.expand': 'See more',
85
- 'pisell2.event.schedule.item.collapse': 'See less'
85
+ 'pisell2.event.schedule.item.collapse': 'See less',
86
+ 'pisell2.appointment.deposit': 'Deposit',
87
+ 'pisell2.appointment.deposit.agreed': 'I have read and agree to the ',
88
+ 'pisell2.appointment.deposit.agree.policy': 'You need to agree the policy to proceed',
89
+ 'pisell2.appointment.deposit.and': ' & ',
90
+ 'pisell2.appointment.deposit.amount.tip1': ' needs to be paid as deposit.',
91
+ 'pisell2.appointment.deposit.amount.tip2': ' ',
92
+ 'pisell2.appointment.deposit.close': 'Close',
93
+ 'pisell2.appointment.booking.empty.data': 'No data'
86
94
  },
87
95
  'zh-CN': {
88
96
  'pisell2.event.calendar.limit.unavailable': '不可预约',
@@ -167,7 +175,15 @@ export default {
167
175
  'pisell2.event.capacity.limit.reached.title': '活动名额已满',
168
176
  'pisell2.event.capacity.limit.reached.tip': '购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。',
169
177
  'pisell2.event.schedule.item.expand': '查看更多',
170
- 'pisell2.event.schedule.item.collapse': '收起'
178
+ 'pisell2.event.schedule.item.collapse': '收起',
179
+ 'pisell2.appointment.deposit': '定金',
180
+ 'pisell2.appointment.deposit.agreed': '我已阅读并同意 ',
181
+ 'pisell2.appointment.deposit.agree.policy': '您需要同意协议才能继续',
182
+ 'pisell2.appointment.deposit.and': ' 和 ',
183
+ 'pisell2.appointment.deposit.amount.tip1': '请支付 ',
184
+ 'pisell2.appointment.deposit.amount.tip2': ' 定金。',
185
+ 'pisell2.appointment.deposit.close': '关闭',
186
+ 'pisell2.appointment.booking.empty.data': '暂无数据'
171
187
  },
172
188
  'zh-HK': {
173
189
  'pisell2.event.calendar.limit.unavailable': '不可預約',
@@ -252,6 +268,14 @@ export default {
252
268
  'pisell2.event.capacity.limit.reached.title': '活動名額已滿',
253
269
  'pisell2.event.capacity.limit.reached.tip': '購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。',
254
270
  'pisell2.event.schedule.item.expand': '查看更多',
255
- 'pisell2.event.schedule.item.collapse': '收起'
271
+ 'pisell2.event.schedule.item.collapse': '收起',
272
+ 'pisell2.appointment.deposit': '定金',
273
+ 'pisell2.appointment.deposit.agreed': '我已閱讀並同意 ',
274
+ 'pisell2.appointment.deposit.agree.policy': '您需要同意協議才能繼續',
275
+ 'pisell2.appointment.deposit.and': ' 和 ',
276
+ 'pisell2.appointment.deposit.amount.tip1': '請支付 ',
277
+ 'pisell2.appointment.deposit.amount.tip2': ' 定金。',
278
+ 'pisell2.appointment.deposit.close': '关闭',
279
+ 'pisell2.appointment.booking.empty.data': '暫無數據'
256
280
  }
257
281
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -35,7 +35,7 @@ var isOfflinePayment = function isOfflinePayment(type) {
35
35
  return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
36
36
  };
37
37
  var PaymentMethods = function PaymentMethods(props, ref) {
38
- var _context$appHelper;
38
+ var _context$appHelper, _interaction$utils, _interaction$utils$is;
39
39
  var MWCreditCardRef = useRef(null);
40
40
  var SuperPayAliPayH5Ref = useRef(null);
41
41
  var StripePayRef = useRef(null);
@@ -118,10 +118,11 @@ var PaymentMethods = function PaymentMethods(props, ref) {
118
118
  return _ref2.apply(this, arguments);
119
119
  };
120
120
  }();
121
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils), interaction, context);
121
122
  useEffect(function () {
122
- var _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
123
- console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils));
124
- if (interaction !== null && interaction !== void 0 && (_interaction$utils2 = interaction.utils) !== null && _interaction$utils2 !== void 0 && (_interaction$utils2$i = _interaction$utils2.isAppEnv) !== null && _interaction$utils2$i !== void 0 && _interaction$utils2$i.call(_interaction$utils2)) {
123
+ var _interaction$utils2, _interaction$utils2$i, _interaction$utils3, _interaction$utils3$i;
124
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAppEnv) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2));
125
+ if (interaction !== null && interaction !== void 0 && (_interaction$utils3 = interaction.utils) !== null && _interaction$utils3 !== void 0 && (_interaction$utils3$i = _interaction$utils3.isAppEnv) !== null && _interaction$utils3$i !== void 0 && _interaction$utils3$i.call(_interaction$utils3)) {
125
126
  interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
126
127
  console.log('paymentResult', strResult);
127
128
  if (!isJson(strResult)) return;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -493,7 +493,7 @@ var AddSerivce = function AddSerivce(props) {
493
493
  isTitle: 1,
494
494
  isSubtitle: 1,
495
495
  isPrice: 1,
496
- isOriginPrice: 1,
496
+ isOriginPrice: 0,
497
497
  isStock: 1
498
498
  }
499
499
  }), /*#__PURE__*/React.createElement(NotAvailable, {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;