@pisell/private-materials 6.1.6 → 6.1.8

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 (689) 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 +9 -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 +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/Sales/Cart/index.js +14 -4
  12. package/es/components/Sales/Cart/utils.d.ts +40 -0
  13. package/es/components/Sales/Cart/utils.js +187 -0
  14. package/es/components/Sales/Checkout/index.d.ts +4 -0
  15. package/es/components/Sales/Checkout/index.js +52 -8
  16. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  17. package/es/components/Sales/Checkout/serve.js +16 -2
  18. package/es/components/Sales/Checkout/utils.d.ts +7 -1
  19. package/es/components/Sales/Checkout/utils.js +17 -5
  20. package/es/components/Sales/Customer/index.d.ts +1 -0
  21. package/es/components/Sales/Customer/index.js +1 -0
  22. package/es/components/Sales/Event/Detail.d.ts +1 -0
  23. package/es/components/Sales/Event/Detail.js +45 -11
  24. package/es/components/Sales/Event/serve.d.ts +10 -0
  25. package/es/components/Sales/Event/serve.js +25 -0
  26. package/es/components/Sales/Summary/index.d.ts +10 -0
  27. package/es/components/Sales/Summary/index.js +17 -2
  28. package/es/components/Sales/Summary/serve.d.ts +1 -0
  29. package/es/components/Sales/Summary/serve.js +6 -0
  30. package/es/components/Sales/Summary/utils.d.ts +16 -1
  31. package/es/components/Sales/Summary/utils.js +43 -1
  32. package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  33. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  34. package/es/components/appointmentBooking/components/Content/index.js +120 -20
  35. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  36. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  37. package/es/components/appointmentBooking/components/Form/index.js +1 -1
  38. package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  39. package/es/components/appointmentBooking/components/Form/utils.js +17 -15
  40. package/es/components/appointmentBooking/components/Header/index.js +2 -1
  41. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  42. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  43. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  44. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  45. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  46. package/es/components/appointmentBooking/deposit/index.js +4 -2
  47. package/es/components/appointmentBooking/hooks.js +28 -30
  48. package/es/components/booking/addons/index.js +4 -1
  49. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  50. package/es/components/booking/components/actionButtons/index.d.ts +29 -0
  51. package/es/components/booking/components/actionButtons/index.js +395 -0
  52. package/es/components/booking/components/actionButtons/index.less +148 -0
  53. package/es/components/booking/components/browserSelect/index.js +1 -1
  54. package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
  55. package/es/components/booking/components/clearCartModal/index.js +50 -0
  56. package/es/components/booking/components/clearCartModal/index.less +109 -0
  57. package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
  58. package/es/components/booking/components/customiseItemModal/index.js +287 -0
  59. package/es/components/booking/components/customiseItemModal/index.less +593 -0
  60. package/es/components/booking/components/drawer/index.d.ts +19 -0
  61. package/es/components/booking/components/footer/amount.d.ts +1 -0
  62. package/es/components/booking/components/footer/amount.js +15 -3
  63. package/es/components/booking/components/footer/index.js +137 -62
  64. package/es/components/booking/components/footer/utils.js +52 -24
  65. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  66. package/es/components/booking/components/reloadResourceModal/index.js +73 -0
  67. package/es/components/booking/components/reloadResourceModal/index.less +6 -0
  68. package/es/components/booking/components/tabPane/index.js +86 -5
  69. package/es/components/booking/components/tabPane/index.less +75 -1
  70. package/es/components/booking/components/voucher/index.js +21 -10
  71. package/es/components/booking/components/voucher/index.less +1 -1
  72. package/es/components/booking/dashboard/index.d.ts +1 -1
  73. package/es/components/booking/dashboard/index.js +10 -3
  74. package/es/components/booking/editBookingModal/index.js +58 -29
  75. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  76. package/es/components/booking/editBookingModal/serve.js +19 -11
  77. package/es/components/booking/forms/model.js +5 -5
  78. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  79. package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
  80. package/es/components/booking/hooks/useQuotation.js +17 -7
  81. package/es/components/booking/info/addServiceVariant/index.js +2 -2
  82. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  83. package/es/components/booking/info/hooks/useInfoHolder.js +15 -14
  84. package/es/components/booking/info/index.js +3 -4
  85. package/es/components/booking/info/index.less +18 -2
  86. package/es/components/booking/info/main.js +14 -15
  87. package/es/components/booking/info/service/Lists.js +5 -2
  88. package/es/components/booking/info/service/editService/index.js +1 -1
  89. package/es/components/booking/info/service/like/index.js +1 -1
  90. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  91. package/es/components/booking/info/service/serviceManager/index.js +4 -4
  92. package/es/components/booking/info/service2/utils.d.ts +4 -0
  93. package/es/components/booking/info/service2/utils.js +12 -2
  94. package/es/components/booking/info/utils.d.ts +1 -1
  95. package/es/components/booking/info/utils.js +5 -3
  96. package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
  97. package/es/components/booking/info2/cartClientCard/index.js +343 -0
  98. package/es/components/booking/info2/cartClientCard/index.less +6 -0
  99. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  100. package/es/components/booking/info2/cartClientCard/locales.js +26 -0
  101. package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
  102. package/es/components/booking/info2/cartClientCard/types.js +1 -0
  103. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  104. package/es/components/booking/info2/cartClientCard/utils.js +7 -0
  105. package/es/components/booking/info2/index.js +104 -32
  106. package/es/components/booking/info2/service/addService/index.js +21 -8
  107. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  108. package/es/components/booking/info2/service/addService/utils.js +38 -9
  109. package/es/components/booking/info2/service/addTimeModal/index.js +33 -9
  110. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  111. package/es/components/booking/info2/service/editNormalService/index.js +67 -0
  112. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  113. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  114. package/es/components/booking/info2/service/editService/index.js +6 -7
  115. package/es/components/booking/info2/service/index.js +12 -6
  116. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  117. package/es/components/booking/info2/utils.js +13 -16
  118. package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
  119. package/es/components/booking/info2/utilsByBooking.js +36 -7
  120. package/es/components/booking/locales.d.ts +84 -0
  121. package/es/components/booking/locales.js +108 -3
  122. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  123. package/es/components/booking/materiels/startTime/index.js +1 -1
  124. package/es/components/booking/model.d.ts +1 -0
  125. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  126. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  127. package/es/components/booking/notes/addNote/index.d.ts +1 -1
  128. package/es/components/booking/notes/addNote/index.js +52 -32
  129. package/es/components/booking/notes/addNote/index.less +53 -0
  130. package/es/components/booking/notes/model.js +5 -5
  131. package/es/components/booking/payments/model.js +5 -5
  132. package/es/components/eftposPay/const.d.ts +4 -1
  133. package/es/components/eftposPay/const.js +3 -1
  134. package/es/components/eftposPay/hooks.d.ts +1 -1
  135. package/es/components/eftposPay/hooks.js +3 -1
  136. package/es/components/eftposPay/index.js +1 -1
  137. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  138. package/es/components/eftposPay/linkly/const.js +82 -0
  139. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  140. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  141. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  142. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  143. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  144. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  145. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  146. package/es/components/eftposPay/linkly/index.js +197 -0
  147. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  148. package/es/components/eftposPay/linkly/service.js +81 -0
  149. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  150. package/es/components/eftposPay/manufacturer.js +4 -0
  151. package/es/components/eftposPay/pay.d.ts +1 -1
  152. package/es/components/eftposPay/pay.js +6 -2
  153. package/es/components/eftposPay/store/index.d.ts +1 -1
  154. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
  155. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  156. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  157. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  158. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  159. package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
  160. package/es/components/eventBooking/index.js +14 -0
  161. package/es/components/eventBooking/index.less +1 -1
  162. package/es/components/eventBooking/locales.d.ts +24 -0
  163. package/es/components/eventBooking/locales.js +27 -3
  164. package/es/components/listComponent/index.js +5 -5
  165. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
  166. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  167. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
  168. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  169. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
  170. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
  171. package/es/components/pay/toC/PaymentMethods/index.js +70 -21
  172. package/es/components/pay/toC/index.js +46 -14
  173. package/es/components/pay/toC/locales.d.ts +3 -0
  174. package/es/components/pay/toC/locales.js +3 -0
  175. package/es/components/productExtension/card/index.js +3 -3
  176. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  177. package/es/components/productExtension/fields/Forms/index.js +12 -12
  178. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  179. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  180. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  181. package/es/components/productExtension/server.js +2 -2
  182. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  183. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  184. package/es/components/productSelect/index.d.ts +2 -0
  185. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  186. package/es/components/schedules/calendar/index.js +4 -4
  187. package/es/components/schedules/calendar/serve.js +2 -2
  188. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  189. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  190. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  191. package/es/components/schedules/components/ResourceList/index.js +1 -1
  192. package/es/components/schedules/components/Search/index.js +5 -5
  193. package/es/components/schedules/model.js +5 -5
  194. package/es/components/schedules/openHours/index.js +1 -1
  195. package/es/components/schedules/openHours/serve.js +2 -2
  196. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  197. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  198. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  199. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  200. package/es/components/schedules/products/serve.js +2 -2
  201. package/es/components/schedules/products/utils.js +5 -5
  202. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  203. package/es/components/schedules/resources/detail/index.js +10 -10
  204. package/es/components/schedules/resources/list/index.js +2 -2
  205. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  206. package/es/components/schedules/resources/serve.js +2 -2
  207. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  208. package/es/components/schedules/utils.js +4 -4
  209. package/es/components/selectModal/index.js +2 -2
  210. package/es/components/shoppingCart/components/Cart/Product.js +21 -4
  211. package/es/components/shoppingCart/type.d.ts +1 -0
  212. package/es/components/subTotal/index.less +1 -1
  213. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -212
  214. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  215. package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
  216. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  217. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
  218. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  219. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  220. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
  221. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  222. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  223. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
  224. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  225. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
  226. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  227. package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
  228. package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  229. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  230. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
  231. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  232. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  233. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  234. package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
  235. package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
  236. package/es/components/ticketBooking/components/menuBar/index.js +54 -2
  237. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  238. package/es/components/ticketBooking/components/ticketBooking/index.js +195 -26
  239. package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
  240. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  241. package/es/components/ticketBooking/components/timeBar/index.js +20 -16
  242. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  243. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
  244. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  245. package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
  246. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  247. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
  248. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  249. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
  250. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  251. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
  252. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  253. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
  254. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  255. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
  256. package/es/components/ticketBooking/index.js +22 -3
  257. package/es/components/ticketBooking/locales.d.ts +6 -0
  258. package/es/components/ticketBooking/locales.js +9 -3
  259. package/es/components/ticketBooking/serve.js +11 -11
  260. package/es/components/ticketBooking/utils/index.d.ts +39 -2
  261. package/es/components/ticketBooking/utils/index.js +104 -11
  262. package/es/components/walletList/index.js +4 -4
  263. package/es/hooks/useComponents.js +1 -1
  264. package/es/hooks/useToast.d.ts +2 -0
  265. package/es/hooks/useToast.js +9 -0
  266. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  267. package/es/hooks/useTranslationOriginal.js +10 -0
  268. package/es/index.d.ts +4 -0
  269. package/es/index.js +5 -1
  270. package/es/plus/clientCard/index.d.ts +7 -0
  271. package/es/plus/clientCard/index.js +452 -0
  272. package/es/plus/clientCard/index.less +539 -0
  273. package/es/plus/clientCard/line/index.d.ts +9 -0
  274. package/es/plus/clientCard/line/index.js +157 -0
  275. package/es/plus/clientCard/line/index.less +142 -0
  276. package/es/plus/clientCard/locales.d.ts +18 -0
  277. package/es/plus/clientCard/locales.js +17 -0
  278. package/es/plus/clientCard/types.d.ts +126 -0
  279. package/es/plus/clientCard/types.js +1 -0
  280. package/es/plus/clientCard/utils.d.ts +8 -0
  281. package/es/plus/clientCard/utils.js +59 -0
  282. package/es/plus/clientName/index.d.ts +4 -0
  283. package/es/plus/clientName/index.js +18 -0
  284. package/es/plus/clientName/index.less +10 -0
  285. package/es/plus/clientName/type.d.ts +13 -0
  286. package/es/plus/clientName/type.js +1 -0
  287. package/es/plus/clientName/utils.d.ts +2 -0
  288. package/es/plus/clientName/utils.js +18 -0
  289. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  290. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  291. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  292. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  293. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  294. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  295. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  296. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  297. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  298. package/es/plus/clinetSearch/Add/index.js +212 -0
  299. package/es/plus/clinetSearch/Add/index.less +30 -0
  300. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  301. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  302. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  303. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  304. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  305. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  306. package/es/plus/clinetSearch/index.d.ts +18 -0
  307. package/es/plus/clinetSearch/index.js +214 -0
  308. package/es/plus/clinetSearch/index.less +91 -0
  309. package/es/plus/clinetSearch/locales.d.ts +102 -0
  310. package/es/plus/clinetSearch/locales.js +101 -0
  311. package/es/plus/clinetSearch/serve.d.ts +1 -0
  312. package/es/plus/clinetSearch/serve.js +31 -0
  313. package/es/plus/clinetSearch/types.d.ts +49 -0
  314. package/es/plus/clinetSearch/types.js +1 -0
  315. package/es/plus/noteModal/AddTempModal.d.ts +7 -0
  316. package/es/plus/noteModal/AddTempModal.js +64 -0
  317. package/es/plus/noteModal/index.d.ts +4 -0
  318. package/es/plus/noteModal/index.js +199 -0
  319. package/es/plus/noteModal/index.less +168 -0
  320. package/es/plus/noteModal/locales.d.ts +33 -0
  321. package/es/plus/noteModal/locales.js +32 -0
  322. package/es/plus/noteModal/types.d.ts +17 -0
  323. package/es/plus/noteModal/types.js +1 -0
  324. package/es/pro/comprehensiveSearch/camera.svg +4 -0
  325. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  326. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  327. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  328. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  329. package/es/pro/comprehensiveSearch/index.d.ts +9 -0
  330. package/es/pro/comprehensiveSearch/index.js +342 -0
  331. package/es/pro/comprehensiveSearch/index.less +323 -0
  332. package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
  333. package/es/pro/comprehensiveSearch/locales.js +17 -0
  334. package/es/pro/comprehensiveSearch/types.d.ts +31 -0
  335. package/es/pro/comprehensiveSearch/types.js +1 -0
  336. package/es/pro/numberKeyboard/index.d.ts +28 -0
  337. package/es/pro/numberKeyboard/index.js +155 -0
  338. package/es/pro/numberKeyboard/index.less +25 -0
  339. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  340. package/es/pro/numberKeyboard/locales.js +11 -0
  341. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  342. package/es/pro/pisellNumberSelector/example.js +68 -0
  343. package/es/pro/pisellNumberSelector/index.d.ts +26 -0
  344. package/es/pro/pisellNumberSelector/index.js +231 -0
  345. package/es/pro/pisellNumberSelector/index.less +193 -0
  346. package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  347. package/es/pro/pisellPhoneKeyboard/index.js +211 -0
  348. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  349. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  350. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  351. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  352. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  353. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  354. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  355. package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
  356. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  357. package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
  358. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  359. package/es/pro/pisellPriceRadio/index.js +113 -0
  360. package/es/pro/pisellPriceRadio/index.less +158 -0
  361. package/es/pro/skuDetailModal/index.d.ts +5 -0
  362. package/es/pro/skuDetailModal/index.js +352 -0
  363. package/es/pro/skuDetailModal/index.less +236 -0
  364. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  365. package/es/pro/skuDetailModal/locales.js +47 -0
  366. package/es/pro/skuDetailModal/types.d.ts +347 -0
  367. package/es/pro/skuDetailModal/types.js +1 -0
  368. package/lib/components/Sales/Cart/index.js +10 -4
  369. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  370. package/lib/components/Sales/Cart/utils.js +129 -0
  371. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  372. package/lib/components/Sales/Checkout/index.js +39 -7
  373. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  374. package/lib/components/Sales/Checkout/serve.js +7 -2
  375. package/lib/components/Sales/Checkout/utils.d.ts +7 -1
  376. package/lib/components/Sales/Checkout/utils.js +7 -2
  377. package/lib/components/Sales/Customer/index.d.ts +1 -0
  378. package/lib/components/Sales/Customer/index.js +1 -0
  379. package/lib/components/Sales/Event/Detail.d.ts +1 -0
  380. package/lib/components/Sales/Event/Detail.js +37 -12
  381. package/lib/components/Sales/Event/serve.d.ts +10 -0
  382. package/lib/components/Sales/Event/serve.js +7 -0
  383. package/lib/components/Sales/Summary/index.d.ts +10 -0
  384. package/lib/components/Sales/Summary/index.js +7 -1
  385. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  386. package/lib/components/Sales/Summary/serve.js +32 -0
  387. package/lib/components/Sales/Summary/utils.d.ts +16 -1
  388. package/lib/components/Sales/Summary/utils.js +30 -1
  389. package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  390. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  391. package/lib/components/appointmentBooking/components/Content/index.js +55 -8
  392. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  393. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  394. package/lib/components/appointmentBooking/components/Form/index.js +6 -1
  395. package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  396. package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
  397. package/lib/components/appointmentBooking/components/Header/index.js +1 -0
  398. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  399. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  400. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  401. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  402. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  403. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  404. package/lib/components/appointmentBooking/hooks.js +5 -16
  405. package/lib/components/booking/addons/index.js +4 -1
  406. package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
  407. package/lib/components/booking/components/actionButtons/index.js +325 -0
  408. package/lib/components/booking/components/actionButtons/index.less +148 -0
  409. package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
  410. package/lib/components/booking/components/clearCartModal/index.js +80 -0
  411. package/lib/components/booking/components/clearCartModal/index.less +109 -0
  412. package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
  413. package/lib/components/booking/components/customiseItemModal/index.js +273 -0
  414. package/lib/components/booking/components/customiseItemModal/index.less +593 -0
  415. package/lib/components/booking/components/drawer/index.d.ts +19 -0
  416. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  417. package/lib/components/booking/components/footer/amount.js +5 -3
  418. package/lib/components/booking/components/footer/index.js +115 -30
  419. package/lib/components/booking/components/footer/utils.js +38 -13
  420. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  421. package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
  422. package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
  423. package/lib/components/booking/components/tabPane/index.js +78 -4
  424. package/lib/components/booking/components/tabPane/index.less +75 -1
  425. package/lib/components/booking/components/voucher/index.js +18 -9
  426. package/lib/components/booking/components/voucher/index.less +1 -1
  427. package/lib/components/booking/dashboard/index.d.ts +1 -1
  428. package/lib/components/booking/dashboard/index.js +7 -2
  429. package/lib/components/booking/editBookingModal/index.js +56 -21
  430. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  431. package/lib/components/booking/editBookingModal/serve.js +12 -6
  432. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  433. package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
  434. package/lib/components/booking/hooks/useQuotation.js +3 -1
  435. package/lib/components/booking/info/addServiceVariant/index.js +3 -2
  436. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  437. package/lib/components/booking/info/hooks/useInfoHolder.js +14 -8
  438. package/lib/components/booking/info/index.js +7 -4
  439. package/lib/components/booking/info/index.less +18 -2
  440. package/lib/components/booking/info/main.js +12 -5
  441. package/lib/components/booking/info/service/Lists.js +6 -2
  442. package/lib/components/booking/info/service/editService/index.js +1 -0
  443. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  444. package/lib/components/booking/info/service/serviceManager/index.js +3 -3
  445. package/lib/components/booking/info/service2/utils.d.ts +4 -0
  446. package/lib/components/booking/info/service2/utils.js +14 -2
  447. package/lib/components/booking/info/utils.d.ts +1 -1
  448. package/lib/components/booking/info/utils.js +6 -3
  449. package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
  450. package/lib/components/booking/info2/cartClientCard/index.js +298 -0
  451. package/lib/components/booking/info2/cartClientCard/index.less +6 -0
  452. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  453. package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
  454. package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
  455. package/lib/components/booking/info2/cartClientCard/types.js +17 -0
  456. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  457. package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
  458. package/lib/components/booking/info2/index.js +119 -34
  459. package/lib/components/booking/info2/service/addService/index.js +17 -4
  460. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  461. package/lib/components/booking/info2/service/addService/utils.js +31 -10
  462. package/lib/components/booking/info2/service/addTimeModal/index.js +28 -10
  463. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  464. package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
  465. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  466. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  467. package/lib/components/booking/info2/service/editService/index.js +5 -10
  468. package/lib/components/booking/info2/service/index.js +6 -6
  469. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  470. package/lib/components/booking/info2/utils.js +0 -15
  471. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
  472. package/lib/components/booking/info2/utilsByBooking.js +28 -6
  473. package/lib/components/booking/locales.d.ts +84 -0
  474. package/lib/components/booking/locales.js +102 -3
  475. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  476. package/lib/components/booking/model.d.ts +1 -0
  477. package/lib/components/booking/notes/addNote/index.d.ts +1 -1
  478. package/lib/components/booking/notes/addNote/index.js +41 -23
  479. package/lib/components/booking/notes/addNote/index.less +53 -0
  480. package/lib/components/eftposPay/const.d.ts +4 -1
  481. package/lib/components/eftposPay/const.js +2 -0
  482. package/lib/components/eftposPay/hooks.d.ts +1 -1
  483. package/lib/components/eftposPay/hooks.js +11 -4
  484. package/lib/components/eftposPay/index.js +1 -1
  485. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  486. package/lib/components/eftposPay/linkly/const.js +102 -0
  487. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  488. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  489. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  490. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  491. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  492. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  493. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  494. package/lib/components/eftposPay/linkly/index.js +208 -0
  495. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  496. package/lib/components/eftposPay/linkly/service.js +55 -0
  497. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  498. package/lib/components/eftposPay/manufacturer.js +6 -0
  499. package/lib/components/eftposPay/pay.d.ts +1 -1
  500. package/lib/components/eftposPay/pay.js +13 -2
  501. package/lib/components/eftposPay/store/index.d.ts +1 -1
  502. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
  503. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  504. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  505. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  506. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  507. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
  508. package/lib/components/eventBooking/index.js +11 -0
  509. package/lib/components/eventBooking/index.less +1 -1
  510. package/lib/components/eventBooking/locales.d.ts +24 -0
  511. package/lib/components/eventBooking/locales.js +27 -3
  512. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
  513. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  514. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
  515. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  516. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
  517. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
  518. package/lib/components/pay/toC/PaymentMethods/index.js +30 -2
  519. package/lib/components/pay/toC/index.js +29 -9
  520. package/lib/components/pay/toC/locales.d.ts +3 -0
  521. package/lib/components/pay/toC/locales.js +3 -0
  522. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  523. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  524. package/lib/components/productSelect/index.d.ts +2 -0
  525. package/lib/components/schedules/utils.js +1 -1
  526. package/lib/components/shoppingCart/components/Cart/Product.js +26 -7
  527. package/lib/components/shoppingCart/type.d.ts +1 -0
  528. package/lib/components/subTotal/index.less +1 -1
  529. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +53 -129
  530. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  531. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
  532. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  533. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
  534. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  535. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  536. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
  537. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  538. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  539. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
  540. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  541. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
  542. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  543. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
  544. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  545. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  546. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
  547. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  548. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  549. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  550. package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
  551. package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
  552. package/lib/components/ticketBooking/components/menuBar/index.js +80 -2
  553. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  554. package/lib/components/ticketBooking/components/ticketBooking/index.js +227 -74
  555. package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
  556. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  557. package/lib/components/ticketBooking/components/timeBar/index.js +21 -8
  558. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  559. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
  560. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  561. package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
  562. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  563. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
  564. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  565. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
  566. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  567. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
  568. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  569. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
  570. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  571. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
  572. package/lib/components/ticketBooking/index.js +19 -3
  573. package/lib/components/ticketBooking/locales.d.ts +6 -0
  574. package/lib/components/ticketBooking/locales.js +9 -3
  575. package/lib/components/ticketBooking/serve.js +11 -11
  576. package/lib/components/ticketBooking/utils/index.d.ts +39 -2
  577. package/lib/components/ticketBooking/utils/index.js +71 -10
  578. package/lib/components/walletList/index.js +3 -3
  579. package/lib/hooks/useToast.d.ts +2 -0
  580. package/lib/hooks/useToast.js +42 -0
  581. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  582. package/lib/hooks/useTranslationOriginal.js +42 -0
  583. package/lib/index.d.ts +4 -0
  584. package/lib/index.js +12 -0
  585. package/lib/plus/clientCard/index.d.ts +7 -0
  586. package/lib/plus/clientCard/index.js +442 -0
  587. package/lib/plus/clientCard/index.less +539 -0
  588. package/lib/plus/clientCard/line/index.d.ts +9 -0
  589. package/lib/plus/clientCard/line/index.js +153 -0
  590. package/lib/plus/clientCard/line/index.less +142 -0
  591. package/lib/plus/clientCard/locales.d.ts +18 -0
  592. package/lib/plus/clientCard/locales.js +41 -0
  593. package/lib/plus/clientCard/types.d.ts +126 -0
  594. package/lib/plus/clientCard/types.js +17 -0
  595. package/lib/plus/clientCard/utils.d.ts +8 -0
  596. package/lib/plus/clientCard/utils.js +75 -0
  597. package/lib/plus/clientName/index.d.ts +4 -0
  598. package/lib/plus/clientName/index.js +53 -0
  599. package/lib/plus/clientName/index.less +10 -0
  600. package/lib/plus/clientName/type.d.ts +13 -0
  601. package/lib/plus/clientName/type.js +17 -0
  602. package/lib/plus/clientName/utils.d.ts +2 -0
  603. package/lib/plus/clientName/utils.js +43 -0
  604. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  605. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  606. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  607. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  608. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  609. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  610. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  611. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  612. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  613. package/lib/plus/clinetSearch/Add/index.js +243 -0
  614. package/lib/plus/clinetSearch/Add/index.less +30 -0
  615. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  616. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  617. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  618. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  619. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  620. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  621. package/lib/plus/clinetSearch/index.d.ts +18 -0
  622. package/lib/plus/clinetSearch/index.js +205 -0
  623. package/lib/plus/clinetSearch/index.less +91 -0
  624. package/lib/plus/clinetSearch/locales.d.ts +102 -0
  625. package/lib/plus/clinetSearch/locales.js +125 -0
  626. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  627. package/lib/plus/clinetSearch/serve.js +33 -0
  628. package/lib/plus/clinetSearch/types.d.ts +49 -0
  629. package/lib/plus/clinetSearch/types.js +17 -0
  630. package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
  631. package/lib/plus/noteModal/AddTempModal.js +95 -0
  632. package/lib/plus/noteModal/index.d.ts +4 -0
  633. package/lib/plus/noteModal/index.js +199 -0
  634. package/lib/plus/noteModal/index.less +168 -0
  635. package/lib/plus/noteModal/locales.d.ts +33 -0
  636. package/lib/plus/noteModal/locales.js +56 -0
  637. package/lib/plus/noteModal/types.d.ts +17 -0
  638. package/lib/plus/noteModal/types.js +17 -0
  639. package/lib/pro/comprehensiveSearch/camera.svg +4 -0
  640. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  641. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  642. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  643. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  644. package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
  645. package/lib/pro/comprehensiveSearch/index.js +259 -0
  646. package/lib/pro/comprehensiveSearch/index.less +323 -0
  647. package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
  648. package/lib/pro/comprehensiveSearch/locales.js +41 -0
  649. package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
  650. package/lib/pro/comprehensiveSearch/types.js +17 -0
  651. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  652. package/lib/pro/numberKeyboard/index.js +182 -0
  653. package/lib/pro/numberKeyboard/index.less +25 -0
  654. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  655. package/lib/pro/numberKeyboard/locales.js +35 -0
  656. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  657. package/lib/pro/pisellNumberSelector/example.js +93 -0
  658. package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
  659. package/lib/pro/pisellNumberSelector/index.js +260 -0
  660. package/lib/pro/pisellNumberSelector/index.less +193 -0
  661. package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  662. package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
  663. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  664. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  665. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  666. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  667. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  668. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  669. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  670. package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
  671. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  672. package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
  673. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  674. package/lib/pro/pisellPriceRadio/index.js +130 -0
  675. package/lib/pro/pisellPriceRadio/index.less +158 -0
  676. package/lib/pro/skuDetailModal/index.d.ts +5 -0
  677. package/lib/pro/skuDetailModal/index.js +311 -0
  678. package/lib/pro/skuDetailModal/index.less +236 -0
  679. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  680. package/lib/pro/skuDetailModal/locales.js +71 -0
  681. package/lib/pro/skuDetailModal/types.d.ts +347 -0
  682. package/lib/pro/skuDetailModal/types.js +17 -0
  683. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  684. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  685. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  686. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  687. package/lowcode/client-card/meta.ts +337 -0
  688. package/lowcode/comprehensive-search/meta.ts +261 -0
  689. package/package.json +26 -26
@@ -43,6 +43,7 @@ var import_serve = require("../../../../../Sales/Event/serve");
43
43
  var import_ahooks = require("ahooks");
44
44
  var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
45
45
  var import_index = require("./index.less");
46
+ var import_utils3 = require("../../../../../appointmentBooking/utils");
46
47
  var ContinueButton = () => {
47
48
  var _a, _b;
48
49
  const { data } = (0, import_Sales.useSales)();
@@ -53,9 +54,11 @@ var ContinueButton = () => {
53
54
  onCheckout,
54
55
  createBooking,
55
56
  onCheckBeforeBooking,
56
- checkBeforeBooking
57
+ checkBeforeBooking,
58
+ freePay
57
59
  } = (0, import_Sales.useCheckout)();
58
60
  const { openLoginModal, isLogin } = (0, import_Sales.useCustomer)();
61
+ const { deposit, isAgreeDepositPolicy } = (0, import_Sales.useSummary)();
59
62
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
60
63
  const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
61
64
  const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
@@ -68,19 +71,24 @@ var ContinueButton = () => {
68
71
  type: "pisell1.goProductForm",
69
72
  data: params,
70
73
  callback: async (e) => {
71
- var _a2;
74
+ var _a2, _b2, _c;
72
75
  if ((e == null ? void 0 : e.type) === "close") {
73
76
  return;
74
77
  }
75
- const value = (0, import_utils2.formatValues)(data, false, {
76
- relation_forms: e
78
+ const value = (0, import_utils2.formatValues)({
79
+ state: data,
80
+ platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform,
81
+ excludeDisabled: false,
82
+ extra: {
83
+ relation_forms: e
84
+ }
77
85
  });
78
86
  const result = await onCheckout(value);
79
87
  if (result == null ? void 0 : result.success) {
80
88
  removeSessionStorage();
81
89
  } else {
82
90
  (0, import_materials.PisellToast)({
83
- content: ((_a2 = result == null ? void 0 : result.err) == null ? void 0 : _a2.message) || ""
91
+ content: ((_c = result == null ? void 0 : result.err) == null ? void 0 : _c.message) || ""
84
92
  });
85
93
  }
86
94
  }
@@ -226,8 +234,16 @@ var ContinueButton = () => {
226
234
  handleNextStep();
227
235
  };
228
236
  const handleContinue = async () => {
237
+ var _a2, _b2, _c;
229
238
  if (isLastStep) {
230
- const value = (0, import_utils2.formatValues)(data);
239
+ const value = (0, import_utils2.formatValues)({
240
+ state: data,
241
+ platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform
242
+ });
243
+ if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_c = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _c.length) > 0 && !isAgreeDepositPolicy) {
244
+ (0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
245
+ return;
246
+ }
231
247
  const checkRes = await onCheckBeforeBooking(value);
232
248
  if ((checkRes == null ? void 0 : checkRes.result) === false) {
233
249
  setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
@@ -263,8 +279,13 @@ var ContinueButton = () => {
263
279
  }, [currentStepData == null ? void 0 : currentStepData.key]);
264
280
  const confirmLoading = (0, import_react.useMemo)(() => {
265
281
  if (!isLastStep) return false;
266
- return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
267
- }, [isLastStep, createBooking == null ? void 0 : createBooking.loading, checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading]);
282
+ return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading) || (freePay == null ? void 0 : freePay.loading);
283
+ }, [
284
+ isLastStep,
285
+ createBooking == null ? void 0 : createBooking.loading,
286
+ checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
287
+ freePay == null ? void 0 : freePay.loading
288
+ ]);
268
289
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
269
290
  import_materials.Button,
270
291
  {
@@ -0,0 +1,2 @@
1
+ declare const Deposit: () => JSX.Element;
2
+ export default Deposit;
@@ -0,0 +1,55 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/eventBooking/components/Provider/Cart/Deposit/index.tsx
30
+ var Deposit_exports = {};
31
+ __export(Deposit_exports, {
32
+ default: () => Deposit_default
33
+ });
34
+ module.exports = __toCommonJS(Deposit_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_Sales = require("../../../../../Sales");
37
+ var import_Deposit = require("../../../../../appointmentBooking/components/Deposit");
38
+ var Deposit = () => {
39
+ const {
40
+ deposit,
41
+ isAgreeDepositPolicy,
42
+ setIsAgreeDepositPolicy,
43
+ getDepositProtocol
44
+ } = (0, import_Sales.useSummary)();
45
+ return /* @__PURE__ */ import_react.default.createElement(
46
+ import_Deposit.DepositContent,
47
+ {
48
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
49
+ setIsAgreeDepositPolicy,
50
+ deposit,
51
+ depositProtocolRequest: getDepositProtocol
52
+ }
53
+ );
54
+ };
55
+ var Deposit_default = Deposit;
@@ -40,8 +40,9 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
40
40
  var import_index = require("./index.less");
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var Total = ({ className, isFooter }) => {
43
- var _a, _b, _c, _d, _e, _f;
44
- const { taxTitle, totalTaxFee, isPriceIncludeTax, total } = (0, import_Sales.useSummary)();
43
+ var _a, _b, _c, _d, _e, _f, _g, _h;
44
+ const { cartData } = (0, import_Sales.useCart)();
45
+ const { taxTitle, totalTaxFee, isPriceIncludeTax, total, deposit } = (0, import_Sales.useSummary)();
45
46
  const context = (0, import_useEngineContext.default)();
46
47
  console.log(
47
48
  taxTitle,
@@ -49,8 +50,10 @@ var Total = ({ className, isFooter }) => {
49
50
  totalTaxFee,
50
51
  total,
51
52
  (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getSymbolic) == null ? void 0 : _c.call(_b),
53
+ deposit,
52
54
  "wh97978"
53
55
  );
56
+ const showDeposit = ((_d = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _d.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit);
54
57
  return /* @__PURE__ */ import_react.default.createElement("div", { className: `event-total-wrap ${className}` }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "gst-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", null, taxTitle, isFooter ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: totalTaxFee, showCurrencySymbol: true })) : null, /* @__PURE__ */ import_react.default.createElement(
55
58
  "div",
56
59
  {
@@ -58,16 +61,16 @@ var Total = ({ className, isFooter }) => {
58
61
  [["total-gst-wrap"]]: !isPriceIncludeTax && Number(totalTaxFee) > 0
59
62
  })
60
63
  },
61
- /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
64
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, isFooter && showDeposit ? import_utils.locales.getText("pisell2.appointment.deposit") : import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
62
65
  import_materials.PisellText.Amount,
63
66
  {
64
- value: total,
67
+ value: ((_e = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _e.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? deposit == null ? void 0 : deposit.total : total,
65
68
  showCurrencySymbol: true,
66
69
  className: "event-amount"
67
70
  }
68
71
  ) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("span", { className: "gst" }, import_utils.locales.getText("pisell2.event.total.gst")(
69
72
  `${isFooter ? `${taxTitle}: ` : taxTitle}`,
70
- `${(_f = (_e = (_d = context == null ? void 0 : context.appHelper) == null ? void 0 : _d.utils) == null ? void 0 : _e.getSymbolic) == null ? void 0 : _f.call(_e)}${totalTaxFee}`
73
+ `${(_h = (_g = (_f = context == null ? void 0 : context.appHelper) == null ? void 0 : _f.utils) == null ? void 0 : _g.getSymbolic) == null ? void 0 : _h.call(_g)}${totalTaxFee}`
71
74
  )) : null),
72
75
  !isFooter ? /* @__PURE__ */ import_react.default.createElement(
73
76
  import_materials.PisellText.Amount,
@@ -39,8 +39,10 @@ var import_Sales = require("../../../../../Sales");
39
39
  var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
40
40
  var import_ContinueButton = __toESM(require("../ContinueButton"));
41
41
  var import_Total = __toESM(require("./Total"));
42
+ var import_Deposit = __toESM(require("../Deposit"));
42
43
  var import_index = require("./index.less");
43
44
  var CartItem = () => {
45
+ var _a;
44
46
  const { open, holderData, selectedHolderIds } = (0, import_Sales.useHolder)();
45
47
  const {
46
48
  deleteCartItem,
@@ -48,7 +50,7 @@ var CartItem = () => {
48
50
  cartData,
49
51
  addNoteToCartItem
50
52
  } = (0, import_Sales.useCart)();
51
- const { subtotal } = (0, import_Sales.useSummary)();
53
+ const { deposit } = (0, import_Sales.useSummary)();
52
54
  const { isLastStep } = (0, import_Sales.useStep)();
53
55
  const handleClickCard = (e, type, key) => {
54
56
  if (type === "note") {
@@ -86,7 +88,7 @@ var CartItem = () => {
86
88
  onChange: (e, type, key) => handleClickCard(e, type, key)
87
89
  }
88
90
  )),
89
- /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
91
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
90
92
  ), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
91
93
  };
92
94
  var Item_default = CartItem;
@@ -55,7 +55,8 @@ var BookingDetailModal = (props) => {
55
55
  onCloseEventDetail,
56
56
  onSelectEventDetail,
57
57
  selectEventDetailProductDetail,
58
- checkBeforeSelectEventDetail
58
+ checkBeforeSelectEventDetail,
59
+ getProductDetailRequest
59
60
  } = (0, import_Sales.useEventDetail)();
60
61
  const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
61
62
  const { initData } = (0, import_Sales.useInit)();
@@ -239,7 +240,7 @@ var BookingDetailModal = (props) => {
239
240
  utils == null ? void 0 : utils.action({
240
241
  type: "pisell1.productDetail",
241
242
  data: {
242
- detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
243
+ detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}, open_deposit: 1 },
243
244
  isOS: false
244
245
  },
245
246
  callback: (data) => {
@@ -294,7 +295,7 @@ var BookingDetailModal = (props) => {
294
295
  onOk: handleOk,
295
296
  width: (0, import_utils.isMobile)() ? "100%" : 600,
296
297
  okButtonProps: {
297
- loading: checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading
298
+ loading: (getProductDetailRequest == null ? void 0 : getProductDetailRequest.loading) || (checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading)
298
299
  }
299
300
  },
300
301
  content()
@@ -66,6 +66,17 @@ var Content = () => {
66
66
  }
67
67
  getResourceList.run(params);
68
68
  }, []);
69
+ (0, import_react.useEffect)(() => {
70
+ const setRealVH = () => {
71
+ const vh = window.innerHeight * 0.01;
72
+ document.documentElement.style.setProperty("--vh", `${vh}px`);
73
+ };
74
+ setRealVH();
75
+ window.addEventListener("resize", setRealVH);
76
+ return () => {
77
+ window.removeEventListener("resize", setRealVH);
78
+ };
79
+ }, []);
69
80
  return /* @__PURE__ */ import_react.default.createElement(
70
81
  "div",
71
82
  {
@@ -15,7 +15,7 @@
15
15
 
16
16
  .event-booking-mobile-wrap {
17
17
  background: #ffffff;
18
- min-height: 100vh;
18
+ min-height: calc(var(--vh, 1vh) * 100);
19
19
  .pisell-section-headers-content {
20
20
  width: 100%;
21
21
  }
@@ -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;
@@ -94,7 +94,15 @@ var locales_default = {
94
94
  "pisell2.event.capacity.limit.reached.title": "Capacity limit reached",
95
95
  "pisell2.event.capacity.limit.reached.tip": "One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.",
96
96
  "pisell2.event.schedule.item.expand": "See more",
97
- "pisell2.event.schedule.item.collapse": "See less"
97
+ "pisell2.event.schedule.item.collapse": "See less",
98
+ "pisell2.appointment.deposit": "Deposit",
99
+ "pisell2.appointment.deposit.agreed": "I have read and agree to the ",
100
+ "pisell2.appointment.deposit.agree.policy": "You need to agree the policy to proceed",
101
+ "pisell2.appointment.deposit.and": " & ",
102
+ "pisell2.appointment.deposit.amount.tip1": " needs to be paid as deposit.",
103
+ "pisell2.appointment.deposit.amount.tip2": " ",
104
+ "pisell2.appointment.deposit.close": "Close",
105
+ "pisell2.appointment.booking.empty.data": "No data"
98
106
  },
99
107
  "zh-CN": {
100
108
  "pisell2.event.calendar.limit.unavailable": "不可预约",
@@ -167,7 +175,15 @@ var locales_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": "不可預約",
@@ -240,6 +256,14 @@ var locales_default = {
240
256
  "pisell2.event.capacity.limit.reached.title": "活動名額已滿",
241
257
  "pisell2.event.capacity.limit.reached.tip": "購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。",
242
258
  "pisell2.event.schedule.item.expand": "查看更多",
243
- "pisell2.event.schedule.item.collapse": "收起"
259
+ "pisell2.event.schedule.item.collapse": "收起",
260
+ "pisell2.appointment.deposit": "定金",
261
+ "pisell2.appointment.deposit.agreed": "我已閱讀並同意 ",
262
+ "pisell2.appointment.deposit.agree.policy": "您需要同意協議才能繼續",
263
+ "pisell2.appointment.deposit.and": " 和 ",
264
+ "pisell2.appointment.deposit.amount.tip1": "請支付 ",
265
+ "pisell2.appointment.deposit.amount.tip2": " 定金。",
266
+ "pisell2.appointment.deposit.close": "关闭",
267
+ "pisell2.appointment.booking.empty.data": "暫無數據"
244
268
  }
245
269
  };
@@ -37,11 +37,14 @@ var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
39
39
  var import_serve = require("./serve");
40
+ var import_model = require("../../model");
40
41
  var import_payGroup = require("../../payGroup");
41
42
  var import_index = require("./index.less");
42
43
  var GlobePayAliPayH5 = (props, ref) => {
44
+ const { state } = (0, import_react.useContext)(import_model.Context);
43
45
  const { onChange } = props;
44
46
  const [open, setOpen] = (0, import_react.useState)(false);
47
+ const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
45
48
  const init = async ({ payGroup }) => {
46
49
  setOpen(true);
47
50
  const values = (0, import_payGroup.getPayGroupParamsFromStorage)(payGroup.order_id);
@@ -54,6 +57,7 @@ var GlobePayAliPayH5 = (props, ref) => {
54
57
  const url = data.url || (data == null ? void 0 : data.pay_url);
55
58
  if (url) {
56
59
  (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
60
+ setShowSuccessBackButton(true);
57
61
  window.location.href = url;
58
62
  } else {
59
63
  setOpen(false);
@@ -68,6 +72,12 @@ var GlobePayAliPayH5 = (props, ref) => {
68
72
  init
69
73
  })
70
74
  );
75
+ const handleSuccessBack = () => {
76
+ var _a;
77
+ (_a = state.payCallback) == null ? void 0 : _a.call(state, {
78
+ key: "success"
79
+ });
80
+ };
71
81
  return /* @__PURE__ */ import_react.default.createElement(
72
82
  import_materials.PisellModal,
73
83
  {
@@ -81,7 +91,9 @@ var GlobePayAliPayH5 = (props, ref) => {
81
91
  /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
82
92
  import_ThreedsLoading.default,
83
93
  {
84
- title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
94
+ title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
95
+ onSuccessBack: handleSuccessBack,
96
+ showSuccessBackButton
85
97
  }
86
98
  ))
87
99
  );
@@ -1,3 +1,3 @@
1
1
  import './index.less';
2
- declare const ThreedsLoading: ({ title }: any) => JSX.Element;
2
+ declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
3
3
  export default ThreedsLoading;
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
37
37
  var import_index = require("./index.less");
38
38
  var import_utils = require("@pisell/utils");
39
- var ThreedsLoading = ({ title }) => {
39
+ var ThreedsLoading = ({ title, showSuccessBackButton, onSuccessBack }) => {
40
40
  var _a;
41
41
  const context = (0, import_useEngineContext.default)();
42
42
  const { config } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
@@ -47,6 +47,6 @@ var ThreedsLoading = ({ title }) => {
47
47
  src: config.static + "/static/stripe_loading.gif",
48
48
  alt: ""
49
49
  }
50
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")));
50
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")), showSuccessBackButton && /* @__PURE__ */ import_react.default.createElement("div", { onClick: onSuccessBack, className: "threeds-loading-success-back-button" }, import_utils.locales.getText("tocPay.text.successBack")));
51
51
  };
52
52
  var ThreedsLoading_default = ThreedsLoading;
@@ -21,4 +21,12 @@
21
21
  line-height: 20px;
22
22
  color: #353535;
23
23
  }
24
+
25
+ .threeds-loading-success-back-button {
26
+ margin-top: 20px;
27
+ color: #4b6b99;
28
+ font-size: 15px;
29
+ font-weight: bold;
30
+ line-height: 20px;
31
+ }
24
32
  }
@@ -95,7 +95,10 @@ var startPayment = async ({ orderId, cardInfo, payData }, callback) => {
95
95
  if (step3 === "N") {
96
96
  return;
97
97
  }
98
- const step4 = await checkTDSAuth(step2, step3);
98
+ const step4 = await checkTDSAuth(step2, step3, callback);
99
+ if (step4 === 0) {
100
+ return;
101
+ }
99
102
  paymentData.step4 = step4;
100
103
  if (step4) {
101
104
  const step5 = await createChallengeIframe(step4, callback);
@@ -216,54 +219,70 @@ var createThreeDSMethodIframe = async (threeDSMethodData, callback) => {
216
219
  });
217
220
  };
218
221
  var checkTDSAuth = async (step2, step3, callback) => {
219
- const { pay_number, order_id, pay_info, amount, notifyURL } = step2;
220
- const { threeDSServerTransID, threeDSCompInd } = step3;
221
- var currentData = /* @__PURE__ */ new Date();
222
- let isPre = false;
223
- if (REACT_APP_API_ENV === "pre" && pay_info.check_tds_auth.card_name === "aa bb") {
224
- isPre = true;
225
- }
226
- let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/tds_auth_pay", {
227
- order_id,
228
- pay_number,
229
- mw_data: {
230
- accessToken: pay_info.check_tds_auth.access_token,
231
- method: "checkTDSAuth",
232
- cardID: pay_info.check_tds_auth.card_id,
233
- // paymentCardNumber: cardInfo.paymentCardNumber,
234
- paymentCardExpiry: pay_info.check_tds_auth.card_expiry,
235
- paymentCardName: pay_info.check_tds_auth.card_name,
236
- // paymentCardCSC: cardInfo.paymentCardCSC,
237
- customerName: pay_info.check_tds_auth.card_name,
238
- transactionAmount: amount,
239
- transactionCurrency: paymentInfo.transactionInfo.transactionCurrency,
240
- transactionProduct: pay_info.check_tds_auth.product_name,
241
- browserAcceptHeader: "*/*",
242
- browserColorDepth: screen.colorDepth,
243
- browserJavaEnabled: navigator.javaEnabled(),
244
- browserJavascriptEnabled: true,
245
- browserLanguage: navigator.language,
246
- browserScreenHeight: screen.height,
247
- browserScreenWidth: screen.width,
248
- browserTZ: currentData.getTimezoneOffset(),
249
- browserUserAgent: navigator.userAgent,
250
- purchaseDate: "20220420165834",
251
- billAddrCity: paymentInfo.billingAddress.billAddrCity,
252
- billAddrCountry: paymentInfo.billingAddress.billAddrCountry,
253
- billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
254
- billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
255
- billAddrState: paymentInfo.billingAddress.billAddrState,
256
- threeDSCompInd: isPre ? "" : threeDSCompInd,
257
- threeDSServerTransID: isPre ? "" : threeDSServerTransID,
258
- threeDSRequestorAuthenticationInd: "01",
259
- threeDSRequestorURL: window.location.href,
260
- notifyURL
222
+ try {
223
+ const { pay_number, order_id, pay_info, amount, notifyURL } = step2;
224
+ const { threeDSServerTransID, threeDSCompInd } = step3;
225
+ var currentData = /* @__PURE__ */ new Date();
226
+ let isPre = false;
227
+ if (REACT_APP_API_ENV === "pre" && pay_info.check_tds_auth.card_name === "aa bb") {
228
+ isPre = true;
261
229
  }
262
- });
263
- if (!data) {
264
- return null;
230
+ let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/tds_auth_pay", {
231
+ order_id,
232
+ pay_number,
233
+ mw_data: {
234
+ accessToken: pay_info.check_tds_auth.access_token,
235
+ method: "checkTDSAuth",
236
+ cardID: pay_info.check_tds_auth.card_id,
237
+ // paymentCardNumber: cardInfo.paymentCardNumber,
238
+ paymentCardExpiry: pay_info.check_tds_auth.card_expiry,
239
+ paymentCardName: pay_info.check_tds_auth.card_name,
240
+ // paymentCardCSC: cardInfo.paymentCardCSC,
241
+ customerName: pay_info.check_tds_auth.card_name,
242
+ transactionAmount: amount,
243
+ transactionCurrency: paymentInfo.transactionInfo.transactionCurrency,
244
+ transactionProduct: pay_info.check_tds_auth.product_name,
245
+ browserAcceptHeader: "*/*",
246
+ browserColorDepth: screen.colorDepth,
247
+ browserJavaEnabled: navigator.javaEnabled(),
248
+ browserJavascriptEnabled: true,
249
+ browserLanguage: navigator.language,
250
+ browserScreenHeight: screen.height,
251
+ browserScreenWidth: screen.width,
252
+ browserTZ: currentData.getTimezoneOffset(),
253
+ browserUserAgent: navigator.userAgent,
254
+ purchaseDate: "20220420165834",
255
+ billAddrCity: paymentInfo.billingAddress.billAddrCity,
256
+ billAddrCountry: paymentInfo.billingAddress.billAddrCountry,
257
+ billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
258
+ billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
259
+ billAddrState: paymentInfo.billingAddress.billAddrState,
260
+ threeDSCompInd: isPre ? "" : threeDSCompInd,
261
+ threeDSServerTransID: isPre ? "" : threeDSServerTransID,
262
+ threeDSRequestorAuthenticationInd: "01",
263
+ threeDSRequestorURL: window.location.href,
264
+ notifyURL
265
+ }
266
+ });
267
+ if (!data) {
268
+ return null;
269
+ }
270
+ return data;
271
+ } catch (err) {
272
+ log({
273
+ msg: err,
274
+ data: paymentData
275
+ });
276
+ (0, import_materials.PisellToast)({
277
+ content: (err == null ? void 0 : err.message) || "",
278
+ duration: 1e3 * 200,
279
+ onClose() {
280
+ callback({ key: "hideModal" });
281
+ closeIframe();
282
+ }
283
+ });
284
+ return 0;
265
285
  }
266
- return data;
267
286
  };
268
287
  var createChallengeIframe = (challengeData, callback) => {
269
288
  const displayBox = document.getElementById("threeds-container");
@@ -37,14 +37,17 @@ var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
39
39
  var import_serve = require("./serve");
40
+ var import_model = require("../../model");
40
41
  var import_payGroup = require("../../payGroup");
41
42
  var import_index = require("./index.less");
42
43
  var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
43
44
  var import_utils2 = require("../../utils");
44
45
  var SuperPayAliPayH5 = (props, ref) => {
45
46
  var _a;
47
+ const { state } = (0, import_react.useContext)(import_model.Context);
46
48
  const { onChange } = props;
47
49
  const [open, setOpen] = (0, import_react.useState)(false);
50
+ const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
48
51
  const context = (0, import_useEngineContext.default)();
49
52
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
50
53
  const init = async ({ payGroup }) => {
@@ -62,6 +65,7 @@ var SuperPayAliPayH5 = (props, ref) => {
62
65
  const data = await (0, import_serve.getAliPayUrl)(payGroup.order_id, values);
63
66
  if (data == null ? void 0 : data.pay_url) {
64
67
  (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
68
+ setShowSuccessBackButton(true);
65
69
  window.location.href = data == null ? void 0 : data.pay_url;
66
70
  } else {
67
71
  setOpen(false);
@@ -76,6 +80,12 @@ var SuperPayAliPayH5 = (props, ref) => {
76
80
  init
77
81
  })
78
82
  );
83
+ const handleSuccessBack = () => {
84
+ var _a2;
85
+ (_a2 = state.payCallback) == null ? void 0 : _a2.call(state, {
86
+ key: "success"
87
+ });
88
+ };
79
89
  return /* @__PURE__ */ import_react.default.createElement(
80
90
  import_materials.PisellModal,
81
91
  {
@@ -89,7 +99,9 @@ var SuperPayAliPayH5 = (props, ref) => {
89
99
  /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
90
100
  import_ThreedsLoading.default,
91
101
  {
92
- title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
102
+ title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
103
+ onSuccessBack: handleSuccessBack,
104
+ showSuccessBackButton
93
105
  }
94
106
  ))
95
107
  );