@pisell/private-materials 3.3.102 → 3.3.104

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 (409) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/Sales/Cart/index.js +5 -1
  12. package/es/components/Sales/Cart/utils.d.ts +40 -0
  13. package/es/components/Sales/Cart/utils.js +167 -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.js +7 -1
  19. package/es/components/Sales/Summary/index.d.ts +10 -0
  20. package/es/components/Sales/Summary/index.js +17 -2
  21. package/es/components/Sales/Summary/serve.d.ts +1 -0
  22. package/es/components/Sales/Summary/serve.js +6 -0
  23. package/es/components/Sales/Summary/utils.d.ts +15 -0
  24. package/es/components/Sales/Summary/utils.js +43 -1
  25. package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  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/Header/index.d.ts +1 -0
  34. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  35. package/es/components/appointmentBooking/components/Services/index.js +23 -27
  36. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  37. package/es/components/appointmentBooking/deposit/index.js +4 -2
  38. package/es/components/appointmentBooking/index.js +14 -0
  39. package/es/components/appointmentBooking/index.less +1 -1
  40. package/es/components/booking/addons/model.d.ts +10 -1
  41. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  42. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  43. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  44. package/es/components/booking/components/browserSelect/index.js +1 -1
  45. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  46. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  47. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  48. package/es/components/booking/components/footer/index.d.ts +1 -0
  49. package/es/components/booking/components/footer/utils.d.ts +41 -0
  50. package/es/components/booking/components/voucher/index.js +2 -2
  51. package/es/components/booking/deposit/index.d.ts +1 -0
  52. package/es/components/booking/forms/model.d.ts +10 -1
  53. package/es/components/booking/forms/model.js +5 -5
  54. package/es/components/booking/forms/single/index.d.ts +1 -0
  55. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  56. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  57. package/es/components/booking/info/date/index.d.ts +1 -0
  58. package/es/components/booking/info/header/index.d.ts +1 -0
  59. package/es/components/booking/info/index.d.ts +0 -1
  60. package/es/components/booking/info/model.d.ts +10 -1
  61. package/es/components/booking/info/notes/index.d.ts +1 -0
  62. package/es/components/booking/info/service/Lists.d.ts +1 -0
  63. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  64. package/es/components/booking/info/service/like/index.js +1 -1
  65. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  66. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  67. package/es/components/booking/info/service2/utils.d.ts +1 -1
  68. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  69. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  70. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  71. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  72. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  73. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  74. package/es/components/booking/materiels/startTime/index.js +1 -1
  75. package/es/components/booking/model.d.ts +9 -1
  76. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  77. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  78. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  79. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  80. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  81. package/es/components/booking/notes/model.d.ts +10 -1
  82. package/es/components/booking/notes/model.js +5 -5
  83. package/es/components/booking/payments/model.d.ts +10 -1
  84. package/es/components/booking/payments/model.js +5 -5
  85. package/es/components/booking/utils.d.ts +2 -2
  86. package/es/components/eftpos/index.d.ts +1 -0
  87. package/es/components/eftpos/pos.d.ts +1 -0
  88. package/es/components/eftposPay/amount.d.ts +2 -1
  89. package/es/components/eftposPay/app.d.ts +1 -0
  90. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  91. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  92. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  93. package/es/components/eftposPay/const.d.ts +4 -1
  94. package/es/components/eftposPay/const.js +3 -1
  95. package/es/components/eftposPay/device.d.ts +2 -1
  96. package/es/components/eftposPay/hooks.d.ts +2 -2
  97. package/es/components/eftposPay/hooks.js +3 -1
  98. package/es/components/eftposPay/index.js +1 -1
  99. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  100. package/es/components/eftposPay/linkly/const.js +82 -0
  101. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  102. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  103. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  104. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  105. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  106. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  107. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  108. package/es/components/eftposPay/linkly/index.js +197 -0
  109. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  110. package/es/components/eftposPay/linkly/service.js +81 -0
  111. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  112. package/es/components/eftposPay/manufacturer.js +4 -0
  113. package/es/components/eftposPay/pay.d.ts +1 -1
  114. package/es/components/eftposPay/pay.js +6 -2
  115. package/es/components/eftposPay/payo/config.d.ts +1 -0
  116. package/es/components/eftposPay/store/index.d.ts +6 -6
  117. package/es/components/eftposPay/tip.d.ts +1 -0
  118. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  119. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  120. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  121. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  122. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  123. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  124. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  125. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  126. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  127. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  128. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  129. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  130. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  131. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  132. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  133. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  134. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  135. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -1
  136. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  137. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  138. package/es/components/eventBooking/index.d.ts +1 -0
  139. package/es/components/eventBooking/locales.d.ts +24 -0
  140. package/es/components/eventBooking/locales.js +27 -3
  141. package/es/components/listComponent/index.js +5 -5
  142. package/es/components/login/index.d.ts +1 -0
  143. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  144. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  145. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  146. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  147. package/es/components/pay/toC/model.d.ts +9 -1
  148. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  149. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  150. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  151. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  152. package/es/components/productExtension/card/index.js +3 -3
  153. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  154. package/es/components/productExtension/fields/Forms/index.js +12 -12
  155. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  156. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  157. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  158. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  159. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  160. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  161. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  162. package/es/components/productExtension/index.d.ts +1 -0
  163. package/es/components/productExtension/server.js +2 -2
  164. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  165. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  166. package/es/components/schedules/calendar/index.d.ts +1 -0
  167. package/es/components/schedules/calendar/index.js +4 -4
  168. package/es/components/schedules/calendar/serve.js +2 -2
  169. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  170. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  171. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  172. package/es/components/schedules/components/ResourceList/index.js +1 -1
  173. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  174. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  175. package/es/components/schedules/components/Search/index.js +5 -5
  176. package/es/components/schedules/model.d.ts +9 -1
  177. package/es/components/schedules/model.js +5 -5
  178. package/es/components/schedules/openHours/index.js +1 -1
  179. package/es/components/schedules/openHours/serve.js +2 -2
  180. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  181. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  182. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  183. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  184. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  185. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  186. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  187. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  188. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  189. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  190. package/es/components/schedules/products/list/index.d.ts +1 -0
  191. package/es/components/schedules/products/serve.js +2 -2
  192. package/es/components/schedules/products/utils.js +5 -5
  193. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  194. package/es/components/schedules/resources/detail/index.js +10 -10
  195. package/es/components/schedules/resources/index.d.ts +1 -0
  196. package/es/components/schedules/resources/list/index.d.ts +1 -0
  197. package/es/components/schedules/resources/list/index.js +2 -2
  198. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  199. package/es/components/schedules/resources/serve.js +2 -2
  200. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  201. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  202. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  203. package/es/components/schedules/schedules/index.d.ts +1 -0
  204. package/es/components/schedules/utils.d.ts +1 -1
  205. package/es/components/schedules/utils.js +4 -4
  206. package/es/components/selectModal/index.js +2 -2
  207. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  208. package/es/components/shoppingCart/index.d.ts +1 -0
  209. package/es/components/taxSelect/index.d.ts +1 -0
  210. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  211. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  212. package/es/components/ticketBooking/components/ticketBooking/index.js +120 -1
  213. package/es/components/ticketBooking/index.d.ts +1 -0
  214. package/es/components/ticketBooking/locales.d.ts +164 -146
  215. package/es/components/ticketBooking/locales.js +195 -147
  216. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  217. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  218. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  219. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  220. package/es/components/wallet/Detail/model.d.ts +13 -1
  221. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  222. package/es/components/wallet/PointCard/model.d.ts +13 -1
  223. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  224. package/es/components/wallet/Voucher/model.d.ts +13 -1
  225. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  226. package/es/components/wallet/model.d.ts +9 -1
  227. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  228. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  229. package/es/hooks/useComponents.js +1 -1
  230. package/es/utils/index.d.ts +1 -1
  231. package/lib/components/Sales/Cart/index.js +1 -0
  232. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  233. package/lib/components/Sales/Cart/utils.js +117 -0
  234. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  235. package/lib/components/Sales/Checkout/index.js +39 -7
  236. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  237. package/lib/components/Sales/Checkout/serve.js +7 -2
  238. package/lib/components/Sales/Checkout/utils.js +2 -0
  239. package/lib/components/Sales/Summary/index.d.ts +10 -0
  240. package/lib/components/Sales/Summary/index.js +7 -1
  241. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  242. package/lib/components/Sales/Summary/serve.js +32 -0
  243. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  244. package/lib/components/Sales/Summary/utils.js +30 -1
  245. package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  246. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  247. package/lib/components/appointmentBooking/components/Content/index.js +6 -1
  248. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  249. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  250. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  251. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  252. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  253. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  254. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  255. package/lib/components/appointmentBooking/components/Services/index.js +6 -11
  256. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  257. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  258. package/lib/components/appointmentBooking/index.js +11 -0
  259. package/lib/components/appointmentBooking/index.less +1 -1
  260. package/lib/components/booking/addons/model.d.ts +10 -1
  261. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  262. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  263. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  264. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  265. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  266. package/lib/components/booking/components/footer/index.d.ts +1 -0
  267. package/lib/components/booking/components/footer/utils.d.ts +41 -0
  268. package/lib/components/booking/components/voucher/index.js +2 -2
  269. package/lib/components/booking/deposit/index.d.ts +1 -0
  270. package/lib/components/booking/forms/model.d.ts +10 -1
  271. package/lib/components/booking/forms/single/index.d.ts +1 -0
  272. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  273. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  274. package/lib/components/booking/info/date/index.d.ts +1 -0
  275. package/lib/components/booking/info/header/index.d.ts +1 -0
  276. package/lib/components/booking/info/index.d.ts +0 -1
  277. package/lib/components/booking/info/model.d.ts +10 -1
  278. package/lib/components/booking/info/notes/index.d.ts +1 -0
  279. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  280. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  281. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  282. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  283. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  284. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  285. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  286. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  287. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  288. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  289. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  290. package/lib/components/booking/model.d.ts +9 -1
  291. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  292. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  293. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  294. package/lib/components/booking/notes/model.d.ts +10 -1
  295. package/lib/components/booking/payments/model.d.ts +10 -1
  296. package/lib/components/booking/utils.d.ts +2 -2
  297. package/lib/components/eftpos/index.d.ts +1 -0
  298. package/lib/components/eftpos/pos.d.ts +1 -0
  299. package/lib/components/eftposPay/amount.d.ts +2 -1
  300. package/lib/components/eftposPay/app.d.ts +1 -0
  301. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  302. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  303. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  304. package/lib/components/eftposPay/const.d.ts +4 -1
  305. package/lib/components/eftposPay/const.js +2 -0
  306. package/lib/components/eftposPay/device.d.ts +2 -1
  307. package/lib/components/eftposPay/hooks.d.ts +2 -2
  308. package/lib/components/eftposPay/hooks.js +11 -4
  309. package/lib/components/eftposPay/index.js +1 -1
  310. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  311. package/lib/components/eftposPay/linkly/const.js +102 -0
  312. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  313. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  314. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  315. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  316. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  317. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  318. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  319. package/lib/components/eftposPay/linkly/index.js +208 -0
  320. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  321. package/lib/components/eftposPay/linkly/service.js +55 -0
  322. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  323. package/lib/components/eftposPay/manufacturer.js +6 -0
  324. package/lib/components/eftposPay/pay.d.ts +1 -1
  325. package/lib/components/eftposPay/pay.js +13 -2
  326. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  327. package/lib/components/eftposPay/store/index.d.ts +6 -6
  328. package/lib/components/eftposPay/tip.d.ts +1 -0
  329. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  330. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  331. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  332. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
  333. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  334. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  335. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  336. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  337. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  338. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  339. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  340. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  341. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  342. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  344. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  345. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  346. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  347. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  348. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  349. package/lib/components/eventBooking/index.d.ts +1 -0
  350. package/lib/components/eventBooking/locales.d.ts +24 -0
  351. package/lib/components/eventBooking/locales.js +27 -3
  352. package/lib/components/login/index.d.ts +1 -0
  353. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  355. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  356. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  357. package/lib/components/pay/toC/model.d.ts +9 -1
  358. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  359. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  360. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  361. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  362. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  363. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  364. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  365. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  366. package/lib/components/productExtension/index.d.ts +1 -0
  367. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  368. package/lib/components/schedules/calendar/index.d.ts +1 -0
  369. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  370. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  371. package/lib/components/schedules/model.d.ts +9 -1
  372. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  373. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  374. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  375. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  376. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  377. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  378. package/lib/components/schedules/products/list/index.d.ts +1 -0
  379. package/lib/components/schedules/resources/index.d.ts +1 -0
  380. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  381. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  382. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  383. package/lib/components/schedules/schedules/index.d.ts +1 -0
  384. package/lib/components/schedules/utils.d.ts +1 -1
  385. package/lib/components/schedules/utils.js +1 -1
  386. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  387. package/lib/components/shoppingCart/index.d.ts +1 -0
  388. package/lib/components/taxSelect/index.d.ts +1 -0
  389. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  390. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  391. package/lib/components/ticketBooking/components/ticketBooking/index.js +120 -1
  392. package/lib/components/ticketBooking/index.d.ts +1 -0
  393. package/lib/components/ticketBooking/locales.d.ts +164 -146
  394. package/lib/components/ticketBooking/locales.js +22 -4
  395. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  396. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  397. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  398. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  399. package/lib/components/wallet/Detail/model.d.ts +13 -1
  400. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  401. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  402. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  403. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  404. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  405. package/lib/components/wallet/model.d.ts +9 -1
  406. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  407. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  408. package/lib/utils/index.d.ts +1 -1
  409. package/package.json +2 -2
@@ -98,6 +98,7 @@ var CartItem = ({ onNext }) => {
98
98
  ...resourceOtherParams,
99
99
  errorList: null
100
100
  });
101
+ val.like_status = "like";
101
102
  appointmentBooking.updateCart({
102
103
  _id: e == null ? void 0 : e._id,
103
104
  resources: (0, import_utils2.updateCartResources)(e, val, currentSelectedResources)
@@ -1,5 +1,5 @@
1
1
  .appointment-cart-item-wrap {
2
- height: calc(100vh - 100px);
2
+ height: calc(var(--vh, 1vh) * 100 - 100px);
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
 
@@ -39,7 +39,7 @@
39
39
  flex-direction: column;
40
40
  align-items: start;
41
41
 
42
- >div {
42
+ > div {
43
43
  display: flex;
44
44
  align-items: center;
45
45
  justify-content: space-between;
@@ -105,4 +105,4 @@
105
105
  flex: none;
106
106
  z-index: 10;
107
107
  }
108
- }
108
+ }
@@ -190,6 +190,10 @@ var Layout = () => {
190
190
  if (isDateSelectedFirst && key === "select-date") return false;
191
191
  return key !== "confirm-information";
192
192
  }, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
193
+ const depositProtocolRequest = (id) => {
194
+ var _a2;
195
+ return (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a2.call(appointmentBooking, id);
196
+ };
193
197
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !isRetailTemplate ? /* @__PURE__ */ import_react.default.createElement(import_Header.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
194
198
  "div",
195
199
  {
@@ -214,7 +218,8 @@ var Layout = () => {
214
218
  onConfirm: () => closePolicy(true),
215
219
  item: policyParams == null ? void 0 : policyParams.content,
216
220
  onChange: () => setLoading(false),
217
- isHideCheckout: false
221
+ isHideCheckout: false,
222
+ depositProtocolRequest
218
223
  }
219
224
  ) : null);
220
225
  };
@@ -107,7 +107,7 @@
107
107
  margin-top: 0;
108
108
 
109
109
  .appointment-cart-item-wrap {
110
- height: calc(100vh - 16px) !important;
110
+ height: calc(var(--vh, 1vh) * 100 - 16px) !important;
111
111
  }
112
112
  }
113
113
  }
@@ -1,3 +1,9 @@
1
1
  import './index.less';
2
+ export declare const DepositContent: (props: {
3
+ isAgreeDepositPolicy: boolean;
4
+ setIsAgreeDepositPolicy: (value: boolean) => void;
5
+ deposit: any;
6
+ depositProtocolRequest?: any;
7
+ }) => JSX.Element;
2
8
  declare const Deposit: () => JSX.Element;
3
9
  export default Deposit;
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/appointmentBooking/components/Deposit/index.tsx
30
30
  var Deposit_exports = {};
31
31
  __export(Deposit_exports, {
32
+ DepositContent: () => DepositContent,
32
33
  default: () => Deposit_default
33
34
  });
34
35
  module.exports = __toCommonJS(Deposit_exports);
@@ -38,9 +39,13 @@ var import_deposit = __toESM(require("../../deposit"));
38
39
  var import_context = require("../../context");
39
40
  var import_utils = require("@pisell/utils");
40
41
  var import_index = require("./index.less");
41
- var Deposit = () => {
42
- const { setIsAgreeDepositPolicy, isAgreeDepositPolicy, summary } = (0, import_context.useAppointmentBookingContext)();
43
- const { deposit } = summary;
42
+ var DepositContent = (props) => {
43
+ const {
44
+ isAgreeDepositPolicy,
45
+ setIsAgreeDepositPolicy,
46
+ deposit,
47
+ depositProtocolRequest
48
+ } = props;
44
49
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-deposit-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-deposit-top" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit")), /* @__PURE__ */ import_react.default.createElement(
45
50
  import_materials.PisellText.Amount,
46
51
  {
@@ -54,8 +59,35 @@ var Deposit = () => {
54
59
  total: deposit == null ? void 0 : deposit.total,
55
60
  protocols: deposit == null ? void 0 : deposit.protocols,
56
61
  isAgreePolicy: isAgreeDepositPolicy,
57
- onChange: (value) => setIsAgreeDepositPolicy(value)
62
+ onChange: (value) => setIsAgreeDepositPolicy(value),
63
+ depositProtocolRequest
58
64
  }
59
65
  ));
60
66
  };
67
+ var Deposit = () => {
68
+ const {
69
+ setIsAgreeDepositPolicy,
70
+ isAgreeDepositPolicy,
71
+ summary,
72
+ appointmentBooking
73
+ } = (0, import_context.useAppointmentBookingContext)();
74
+ const { deposit } = summary;
75
+ const depositProtocolRequest = (id) => {
76
+ var _a;
77
+ return (_a = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a.call(appointmentBooking, id);
78
+ };
79
+ return /* @__PURE__ */ import_react.default.createElement(
80
+ DepositContent,
81
+ {
82
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
83
+ setIsAgreeDepositPolicy,
84
+ deposit,
85
+ depositProtocolRequest
86
+ }
87
+ );
88
+ };
61
89
  var Deposit_default = Deposit;
90
+ // Annotate the CommonJS export names for ESM import in node:
91
+ 0 && (module.exports = {
92
+ DepositContent
93
+ });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -154,6 +154,7 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
154
154
  const index = carts.findIndex(
155
155
  (n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id))
156
156
  );
157
+ e.like_status = "like";
157
158
  return appointmentBooking.updateCart({
158
159
  _id: (_a = carts == null ? void 0 : carts[index]) == null ? void 0 : _a._id,
159
160
  resources: (0, import_utils.updateCartResources)(carts == null ? void 0 : carts[index], e)
@@ -74,9 +74,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
74
74
  let type = "";
75
75
  if (!isRetailTemplate) {
76
76
  type = await checkProductType(item == null ? void 0 : item.id);
77
- if (type === "session") {
78
- appointmentBooking.openProductDetail(item.id);
79
- }
77
+ appointmentBooking.openProductDetail(item.id);
80
78
  }
81
79
  utils == null ? void 0 : utils.action({
82
80
  type: "pisell1.productDetail",
@@ -86,6 +84,10 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
86
84
  },
87
85
  callback: async (data) => {
88
86
  var _a, _b;
87
+ if (data.isCancel) {
88
+ appointmentBooking.closeProductDetail();
89
+ return;
90
+ }
89
91
  const product = {
90
92
  ...data,
91
93
  options: (data == null ? void 0 : data.option) || []
@@ -96,13 +98,6 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
96
98
  appointmentBooking.storeProduct(product);
97
99
  return;
98
100
  }
99
- if (data == null ? void 0 : data.isCancel) {
100
- if (type === "session") {
101
- appointmentBooking.closeProductDetail();
102
- appointmentBooking.getAvailableDate();
103
- }
104
- return;
105
- }
106
101
  const session = data == null ? void 0 : data.session;
107
102
  if (session) {
108
103
  const startDate = (0, import_dayjs.default)(session == null ? void 0 : session.start_at).format("YYYY-MM-DD");
@@ -114,7 +109,6 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
114
109
  endTime: `${endDate} ${session == null ? void 0 : session.end_time}`
115
110
  }
116
111
  });
117
- appointmentBooking.closeProductDetail();
118
112
  await appointmentBooking.getAvailableDate({
119
113
  startDate,
120
114
  endDate
@@ -132,6 +126,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
132
126
  await appointmentBooking.getAvailableDate();
133
127
  }
134
128
  }
129
+ appointmentBooking.closeProductDetail();
135
130
  if (isDateSelectedFirst) {
136
131
  const index = (currentStep == null ? void 0 : currentStep.index) + 2;
137
132
  if (type === "duration" || appointmentBooking.isCartHasDurationProduct()) {
@@ -36,7 +36,6 @@ var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_materials = require("@pisell/materials");
38
38
  var import_utils = require("@pisell/utils");
39
- var import_context = require("../../../context");
40
39
  var import_index = require("./index.less");
41
40
  var DepositModal = (props) => {
42
41
  const {
@@ -45,9 +44,10 @@ var DepositModal = (props) => {
45
44
  item,
46
45
  onChange,
47
46
  onConfirm,
48
- isHideCheckout = true
47
+ isHideCheckout = true,
48
+ depositProtocolRequest
49
+ // 定金协议请求
49
50
  } = props;
50
- const { appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
51
51
  const [policy, setPolicy] = (0, import_react.useState)(null);
52
52
  const [loading, setLoading] = (0, import_react.useState)(false);
53
53
  const [disabled, setDisabled] = (0, import_react.useState)(false);
@@ -55,9 +55,13 @@ var DepositModal = (props) => {
55
55
  setDisabled(!isHideCheckout);
56
56
  }, [isHideCheckout]);
57
57
  const getPolicy = async (id) => {
58
+ if (!depositProtocolRequest) {
59
+ console.error("depositProtocolRequest is not defined");
60
+ return;
61
+ }
58
62
  setLoading(true);
59
63
  try {
60
- const { data } = await appointmentBooking.getProtocol(id);
64
+ const { data } = await (depositProtocolRequest == null ? void 0 : depositProtocolRequest(id));
61
65
  setPolicy(data);
62
66
  onChange && onChange(data);
63
67
  } catch (error) {
@@ -48,7 +48,8 @@ var Deposit = (props) => {
48
48
  title,
49
49
  isAgreePolicy = true,
50
50
  isShowTitle = true,
51
- onChange
51
+ onChange,
52
+ depositProtocolRequest
52
53
  } = props;
53
54
  const context = (0, import_useEngineContext.default)();
54
55
  const [visible, setVisible] = (0, import_react.useState)(false);
@@ -102,7 +103,8 @@ var Deposit = (props) => {
102
103
  {
103
104
  open: visible,
104
105
  onCancel: () => setVisible(false),
105
- item: policyItem
106
+ item: policyItem,
107
+ depositProtocolRequest
106
108
  }
107
109
  ));
108
110
  };
@@ -58,6 +58,17 @@ var AppointmentBooking = () => {
58
58
  }
59
59
  });
60
60
  }, []);
61
+ (0, import_react.useEffect)(() => {
62
+ const setRealVH = () => {
63
+ const vh = window.innerHeight * 0.01;
64
+ document.documentElement.style.setProperty("--vh", `${vh}px`);
65
+ };
66
+ setRealVH();
67
+ window.addEventListener("resize", setRealVH);
68
+ return () => {
69
+ window.removeEventListener("resize", setRealVH);
70
+ };
71
+ }, []);
61
72
  return /* @__PURE__ */ import_react.default.createElement(
62
73
  "div",
63
74
  {
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  background: #ffffff;
6
- height: 100vh;
6
+ height: calc(var(--vh, 1vh) * 100);
7
7
  overflow-y: auto;
8
8
 
9
9
  .pisell-section-headers {
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 空状态
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @title: 套餐单规格信息
3
+ * @description:
4
+ * @param {any} option
5
+ * @return {*}
6
+ * @Author: zhiwei.Wang
7
+ * @Date: 2024-02-19 09:26
8
+ */
9
+ export declare const formatProductOption: (option: any) => any;
10
+ /**
11
+ * @title: 套餐信息
12
+ * @description:
13
+ * @param {any} bundle
14
+ * @return {*}
15
+ * @Author: zhiwei.Wang
16
+ * @Date: 2024-02-19 09:26
17
+ */
18
+ export declare const formatProductBundle: (bundle: any) => any;
19
+ export interface ResourceItem {
20
+ [key: string]: any;
21
+ }
22
+ /**
23
+ * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
24
+ * @description:
25
+ * @param {object} resource
26
+ * @return {*}
27
+ * @Author: jinglin.tan
28
+ */
29
+ export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
30
+ export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
31
+ /**
32
+ * @title: 格式化商品单价
33
+ * @description:
34
+ * @param {any} item
35
+ * @return {*}
36
+ * @Author: WangHan
37
+ * @Date: 2024-12-23 12:05
38
+ */
39
+ export declare const formatProductPrice: (item: any) => number;
40
+ export declare const formatValues: (state: any) => any;
41
+ export declare const checkHolderIsError: (state: any) => any;
@@ -41,8 +41,8 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
41
41
  var import_materials = require("@pisell/materials");
42
42
  var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
43
43
  var import_index = require("./index.less");
44
- var import_utils2 = require("./utils");
45
44
  var import_ahooks = require("ahooks");
45
+ var import_utils2 = require("./utils");
46
46
  var ShopDiscountHooks = {
47
47
  onInited: "shopDiscount:onInited",
48
48
  onDestroy: "shopDiscount:onDestroy",
@@ -274,8 +274,8 @@ var VoucherCard = (props) => {
274
274
  import_materials.PisellGoodPassCard,
275
275
  {
276
276
  style: { width: "100%" },
277
- mixedSort,
278
277
  dataSource: ((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length) ? availableData : [],
278
+ mixedSort,
279
279
  onChange: (val) => {
280
280
  const shopDiscount2 = pisellos.getModule("shopDiscount");
281
281
  const detail = shopDiscount2.setDiscountSelected({
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
244
  * @Author: WangHan
245
245
  * @Date: 2024-12-24 11:32
246
246
  */
247
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
247
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import '../../../info/service/addService/index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface DurationProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
108
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
+ state: FormState;
110
+ } & {
111
+ dispatch: (params: {
112
+ type: string;
113
+ payload: any;
114
+ }) => void;
115
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  isEdit: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos, DeviceStatus } from './const';
2
3
  import './index.less';
3
4
  interface PosProps {