@pisell/private-materials 3.0.13 → 3.0.14-2.gray

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 (1051) hide show
  1. package/build/lowcode/assets-daily.json +19 -11
  2. package/build/lowcode/assets-dev.json +10 -2
  3. package/build/lowcode/assets-prod.json +19 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +25 -14
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +20 -9
  11. package/es/components/booking/addons/index.d.ts +2 -2
  12. package/es/components/booking/addons/index.js +257 -70
  13. package/es/components/booking/addons/model.d.ts +2 -1
  14. package/es/components/booking/components/TabProduct/index.d.ts +1 -1
  15. package/es/components/booking/components/TabProduct/index.js +64 -61
  16. package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
  17. package/es/components/booking/components/TabProduct/productItem/index.js +27 -8
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.js +21 -8
  19. package/es/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
  20. package/es/components/booking/components/TabProduct/tabs/index.less +4 -1
  21. package/es/components/booking/components/addButton/index.d.ts +9 -8
  22. package/es/components/booking/components/addButton/index.js +10 -6
  23. package/es/components/booking/components/collapsibleList/index.d.ts +11 -0
  24. package/es/components/booking/components/collapsibleList/index.js +99 -0
  25. package/es/components/booking/components/collapsibleList/index.less +61 -0
  26. package/es/components/booking/components/collapsibleList/utils.d.ts +2 -0
  27. package/es/components/booking/components/collapsibleList/utils.js +21 -0
  28. package/es/components/booking/components/customSelect/index.d.ts +7 -3
  29. package/es/components/booking/components/customSelect/index.js +125 -52
  30. package/es/components/booking/components/customSelect/index.less +0 -1
  31. package/es/components/booking/components/drawer/index.d.ts +3 -1
  32. package/es/components/booking/components/drawer/index.js +8 -1
  33. package/es/components/booking/components/drawer/index.less +10 -3
  34. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
  35. package/es/components/booking/components/footer/FooterMenus/index.js +71 -22
  36. package/es/components/booking/components/footer/amount.d.ts +1 -0
  37. package/es/components/booking/components/footer/amount.js +74 -36
  38. package/es/components/booking/components/footer/index.d.ts +2 -2
  39. package/es/components/booking/components/footer/index.js +560 -107
  40. package/es/components/booking/components/footer/serve.d.ts +1 -0
  41. package/es/components/booking/components/footer/serve.js +21 -0
  42. package/es/components/booking/components/footer/utils.d.ts +18 -0
  43. package/es/components/booking/components/footer/utils.js +118 -15
  44. package/es/components/booking/components/tabPane/index.less +1 -0
  45. package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
  46. package/es/components/booking/deposit/ClientItem/index.js +43 -0
  47. package/es/components/booking/deposit/ClientItem/index.less +37 -0
  48. package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
  49. package/es/components/booking/deposit/DepositItem/index.js +117 -0
  50. package/es/components/booking/deposit/DepositItem/index.less +112 -0
  51. package/es/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
  52. package/es/components/booking/deposit/EditDepositModal/index.js +134 -0
  53. package/es/components/booking/deposit/EditDepositModal/index.less +44 -0
  54. package/es/components/booking/deposit/index.d.ts +3 -0
  55. package/es/components/booking/deposit/index.js +196 -0
  56. package/es/components/booking/deposit/index.less +3 -0
  57. package/es/components/booking/deposit/serve.d.ts +8 -0
  58. package/es/components/booking/deposit/serve.js +27 -0
  59. package/es/components/booking/forms/format.d.ts +1 -0
  60. package/es/components/booking/forms/format.js +14 -0
  61. package/es/components/booking/forms/forms.d.ts +3 -2
  62. package/es/components/booking/forms/forms.js +66 -60
  63. package/es/components/booking/forms/index.d.ts +1 -1
  64. package/es/components/booking/forms/index.js +153 -67
  65. package/es/components/booking/forms/model.d.ts +2 -1
  66. package/es/components/booking/forms/serve.d.ts +9 -0
  67. package/es/components/booking/forms/serve.js +25 -0
  68. package/es/components/booking/forms/single/RenderValueById.d.ts +6 -0
  69. package/es/components/booking/forms/single/RenderValueById.js +79 -0
  70. package/es/components/booking/forms/single/index.d.ts +1 -1
  71. package/es/components/booking/forms/single/index.js +48 -82
  72. package/es/components/booking/index.d.ts +1 -1
  73. package/es/components/booking/index.js +2 -2
  74. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  75. package/es/components/booking/info/addServiceVariant/index.js +33 -0
  76. package/es/components/booking/info/client/index.d.ts +4 -4
  77. package/es/components/booking/info/client/index.js +220 -116
  78. package/es/components/booking/info/client/serve.d.ts +2 -0
  79. package/es/components/booking/info/client/serve.js +51 -0
  80. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +44 -0
  81. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +391 -0
  82. package/es/components/booking/info/clientVariant/index.d.ts +1 -0
  83. package/es/components/booking/info/clientVariant/index.js +1 -0
  84. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +23 -0
  85. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +413 -0
  86. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
  87. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  88. package/es/components/booking/info/clientVariant/vertical/index.js +374 -0
  89. package/es/components/booking/info/clientVariant/vertical/index.less +101 -0
  90. package/es/components/booking/info/date/index.js +1 -1
  91. package/es/components/booking/info/date/index.less +1 -1
  92. package/es/components/booking/info/header/index.d.ts +2 -2
  93. package/es/components/booking/info/header/index.js +501 -44
  94. package/es/components/booking/info/header/index.less +117 -2
  95. package/es/components/booking/info/index.d.ts +1 -1
  96. package/es/components/booking/info/index.js +46 -16
  97. package/es/components/booking/info/index.less +9 -0
  98. package/es/components/booking/info/model.d.ts +3 -2
  99. package/es/components/booking/info/model.js +21 -12
  100. package/es/components/booking/info/notes/index.d.ts +3 -0
  101. package/es/components/booking/info/notes/index.js +87 -0
  102. package/es/components/booking/info/pet/index.d.ts +13 -3
  103. package/es/components/booking/info/pet/index.js +340 -201
  104. package/es/components/booking/info/pet/index.less +3 -0
  105. package/es/components/booking/info/service/actions/index.d.ts +6 -0
  106. package/es/components/booking/info/service/actions/index.js +73 -0
  107. package/es/components/booking/info/service/actions/index.less +9 -0
  108. package/es/components/booking/info/service/addService/index.d.ts +11 -3
  109. package/es/components/booking/info/service/addService/index.js +358 -99
  110. package/es/components/booking/info/service/addService/index.less +27 -1
  111. package/es/components/booking/info/service/addService/utils.d.ts +61 -0
  112. package/es/components/booking/info/service/addService/utils.js +260 -0
  113. package/es/components/booking/info/service/addTimeModal/index.d.ts +4 -0
  114. package/es/components/booking/info/service/addTimeModal/index.js +691 -0
  115. package/es/components/booking/info/service/addTimeModal/index.less +138 -0
  116. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  117. package/es/components/booking/info/service/addTimeModal/serve.js +50 -0
  118. package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  119. package/es/components/booking/info/service/addTimeModal/utils.js +174 -0
  120. package/es/components/booking/info/service/editService/index.d.ts +7 -4
  121. package/es/components/booking/info/service/editService/index.js +495 -332
  122. package/es/components/booking/info/service/editService/index.less +32 -1
  123. package/es/components/booking/info/service/index.d.ts +4 -4
  124. package/es/components/booking/info/service/index.js +44 -127
  125. package/es/components/booking/info/service/index.less +2 -96
  126. package/es/components/booking/info/service/serve.d.ts +1 -0
  127. package/es/components/booking/info/service/serve.js +21 -0
  128. package/es/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
  129. package/es/components/booking/info/service/serviceItem/Sales/index.js +0 -0
  130. package/es/components/booking/info/service/serviceItem/Sales/index.less +0 -0
  131. package/es/components/booking/info/service/serviceItem/index.d.ts +4 -0
  132. package/es/components/booking/info/service/serviceItem/index.js +85 -0
  133. package/es/components/booking/info/service/serviceItem/index.less +125 -0
  134. package/es/components/booking/info/service/serviceList/index.d.ts +6 -0
  135. package/es/components/booking/info/service/serviceList/index.js +109 -0
  136. package/es/components/booking/info/service/serviceList/index.less +0 -0
  137. package/es/components/booking/info/utils.d.ts +23 -0
  138. package/es/components/booking/info/utils.js +86 -0
  139. package/es/components/booking/locales.d.ts +219 -0
  140. package/es/components/booking/locales.js +272 -13
  141. package/es/components/booking/model.d.ts +25 -1
  142. package/es/components/booking/model.js +9 -9
  143. package/es/components/booking/notes/index.d.ts +1 -1
  144. package/es/components/booking/notes/index.js +13 -10
  145. package/es/components/booking/notes/model.d.ts +2 -1
  146. package/es/components/booking/payments/index.d.ts +1 -1
  147. package/es/components/booking/payments/index.js +7 -10
  148. package/es/components/booking/payments/model.d.ts +2 -1
  149. package/es/components/booking/utils.d.ts +66 -1
  150. package/es/components/booking/utils.js +247 -98
  151. package/es/components/eftpos/const.d.ts +64 -0
  152. package/es/components/eftpos/const.js +159 -0
  153. package/es/components/eftpos/device.d.ts +9 -0
  154. package/es/components/eftpos/device.js +34 -0
  155. package/es/components/eftpos/deviceList/index.d.ts +3 -0
  156. package/es/components/eftpos/deviceList/index.js +52 -0
  157. package/es/components/eftpos/form/index.d.ts +21 -0
  158. package/es/components/eftpos/form/index.js +96 -0
  159. package/es/components/eftpos/group/index.d.ts +7 -0
  160. package/es/components/eftpos/group/index.js +65 -0
  161. package/es/components/eftpos/hooks.d.ts +34 -0
  162. package/es/components/eftpos/hooks.js +118 -0
  163. package/es/components/eftpos/icon/apiKey.d.ts +5 -0
  164. package/es/components/eftpos/icon/apiKey.js +17 -0
  165. package/es/components/eftpos/icon/device.d.ts +5 -0
  166. package/es/components/eftpos/icon/device.js +19 -0
  167. package/es/components/eftpos/index.d.ts +47 -0
  168. package/es/components/eftpos/index.js +606 -0
  169. package/es/components/eftpos/index.less +206 -0
  170. package/es/components/eftpos/locales.d.ts +99 -0
  171. package/es/components/eftpos/locales.js +122 -0
  172. package/es/components/eftpos/log.d.ts +8 -0
  173. package/es/components/eftpos/log.js +85 -0
  174. package/es/components/eftpos/pos.d.ts +9 -0
  175. package/es/components/eftpos/pos.js +36 -0
  176. package/es/components/eftpos/surcharge/index.css +17 -0
  177. package/es/components/eftpos/surcharge/index.d.ts +31 -0
  178. package/es/components/eftpos/surcharge/index.js +195 -0
  179. package/es/components/eftpos/table.d.ts +21 -0
  180. package/es/components/eftpos/table.js +377 -0
  181. package/es/components/eftposPay/amount.d.ts +20 -0
  182. package/es/components/eftposPay/amount.js +279 -0
  183. package/es/components/eftposPay/component/alert/index.d.ts +6 -0
  184. package/es/components/eftposPay/component/alert/index.js +11 -0
  185. package/es/components/eftposPay/component/alert/index.less +29 -0
  186. package/es/components/eftposPay/component/alert/warn.d.ts +3 -0
  187. package/es/components/eftposPay/component/alert/warn.js +45 -0
  188. package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  189. package/es/components/eftposPay/component/fail/failCustom.js +144 -0
  190. package/es/components/eftposPay/component/fail/index.d.ts +4 -0
  191. package/es/components/eftposPay/component/fail/index.js +139 -0
  192. package/es/components/eftposPay/component/fail/network.d.ts +9 -0
  193. package/es/components/eftposPay/component/fail/network.js +61 -0
  194. package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
  195. package/es/components/eftposPay/component/fail/unknow.js +58 -0
  196. package/es/components/eftposPay/component/header/index.d.ts +10 -0
  197. package/es/components/eftposPay/component/header/index.js +69 -0
  198. package/es/components/eftposPay/component/header/index.less +35 -0
  199. package/es/components/eftposPay/component/header/titlebar.d.ts +13 -0
  200. package/es/components/eftposPay/component/header/titlebar.js +39 -0
  201. package/es/components/eftposPay/component/header/titlebar.less +17 -0
  202. package/es/components/eftposPay/component/manual/index.d.ts +10 -0
  203. package/es/components/eftposPay/component/manual/index.js +248 -0
  204. package/es/components/eftposPay/component/manual/index.less +137 -0
  205. package/es/components/eftposPay/component/signature/index.d.ts +9 -0
  206. package/es/components/eftposPay/component/signature/index.js +81 -0
  207. package/es/components/eftposPay/component/step/index.d.ts +12 -0
  208. package/es/components/eftposPay/component/step/index.js +31 -0
  209. package/es/components/eftposPay/component/step/step.d.ts +9 -0
  210. package/es/components/eftposPay/component/step/step.js +23 -0
  211. package/es/components/eftposPay/const.d.ts +147 -0
  212. package/es/components/eftposPay/const.js +50 -0
  213. package/es/components/eftposPay/device.d.ts +22 -0
  214. package/es/components/eftposPay/device.js +171 -0
  215. package/es/components/eftposPay/device.less +61 -0
  216. package/es/components/eftposPay/helper.d.ts +66 -0
  217. package/es/components/eftposPay/helper.js +195 -0
  218. package/es/components/eftposPay/hooks.d.ts +33 -0
  219. package/es/components/eftposPay/hooks.js +308 -0
  220. package/es/components/eftposPay/index.d.ts +5 -0
  221. package/es/components/eftposPay/index.js +279 -0
  222. package/es/components/eftposPay/index.less +271 -0
  223. package/es/components/eftposPay/locales.d.ts +309 -0
  224. package/es/components/eftposPay/locales.js +729 -0
  225. package/es/components/eftposPay/manufacturer.d.ts +6 -0
  226. package/es/components/eftposPay/manufacturer.js +33 -0
  227. package/es/components/eftposPay/pay.d.ts +20 -0
  228. package/es/components/eftposPay/pay.js +188 -0
  229. package/es/components/eftposPay/payo/config.d.ts +11 -0
  230. package/es/components/eftposPay/payo/config.js +224 -0
  231. package/es/components/eftposPay/payo/const.d.ts +26 -0
  232. package/es/components/eftposPay/payo/const.js +146 -0
  233. package/es/components/eftposPay/payo/hooks.d.ts +10 -0
  234. package/es/components/eftposPay/payo/hooks.js +130 -0
  235. package/es/components/eftposPay/payo/index.d.ts +7 -0
  236. package/es/components/eftposPay/payo/index.js +35 -0
  237. package/es/components/eftposPay/store/index.d.ts +340 -0
  238. package/es/components/eftposPay/store/index.js +356 -0
  239. package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
  240. package/es/components/eftposPay/store/useThunkReducer.js +31 -0
  241. package/es/components/eftposPay/tyro/const.d.ts +17 -0
  242. package/es/components/eftposPay/tyro/const.js +122 -0
  243. package/es/components/eftposPay/tyro/hooks.d.ts +14 -0
  244. package/es/components/eftposPay/tyro/hooks.js +40 -0
  245. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  246. package/es/components/eftposPay/tyro/index.js +575 -0
  247. package/es/components/eftposPay/var.less +9 -0
  248. package/es/components/eftposPay/windcave/const.d.ts +119 -0
  249. package/es/components/eftposPay/windcave/const.js +263 -0
  250. package/es/components/eftposPay/windcave/helper.d.ts +23 -0
  251. package/es/components/eftposPay/windcave/helper.js +447 -0
  252. package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
  253. package/es/components/eftposPay/windcave/receiptAction.js +374 -0
  254. package/es/components/eftposPay/windcave/timer.d.ts +29 -0
  255. package/es/components/eftposPay/windcave/timer.js +198 -0
  256. package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
  257. package/es/components/eftposPay/windcave/windcave.js +299 -0
  258. package/es/components/index.d.ts +5 -1
  259. package/es/components/index.js +5 -1
  260. package/es/components/listComponent/index.d.ts +15 -0
  261. package/es/components/listComponent/index.js +75 -0
  262. package/es/components/pay/toC/PayAmount/index.d.ts +15 -0
  263. package/es/components/pay/toC/PayAmount/index.js +25 -0
  264. package/es/components/pay/toC/PayAmount/index.less +21 -0
  265. package/es/components/pay/toC/PayCountdown/index.d.ts +15 -0
  266. package/es/components/pay/toC/PayCountdown/index.js +26 -0
  267. package/es/components/pay/toC/PayCountdown/index.less +22 -0
  268. package/es/components/pay/toC/PaymentList/index.d.ts +19 -0
  269. package/es/components/pay/toC/PaymentList/index.js +349 -0
  270. package/es/components/pay/toC/PaymentList/index.less +112 -0
  271. package/es/components/pay/toC/PaymentList/mock.d.ts +88 -0
  272. package/es/components/pay/toC/PaymentList/mock.js +128 -0
  273. package/es/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
  274. package/es/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
  275. package/es/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
  276. package/es/components/pay/toC/PaymentList/payment/cash.svg +8 -0
  277. package/es/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
  278. package/es/components/pay/toC/PaymentList/payment/custom.svg +10 -0
  279. package/es/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
  280. package/es/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
  281. package/es/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
  282. package/es/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
  283. package/es/components/pay/toC/PaymentList/serve.d.ts +28 -0
  284. package/es/components/pay/toC/PaymentList/serve.js +142 -0
  285. package/es/components/pay/toC/PaymentList/status.d.ts +4 -0
  286. package/es/components/pay/toC/PaymentList/status.js +100 -0
  287. package/es/components/pay/toC/PaymentList/utils.d.ts +10 -0
  288. package/es/components/pay/toC/PaymentList/utils.js +53 -0
  289. package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  290. package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +113 -0
  291. package/es/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
  292. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
  293. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +74 -0
  294. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
  295. package/es/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
  296. package/es/components/pay/toC/PaymentMethods/CashManual/index.js +79 -0
  297. package/es/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
  298. package/es/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
  299. package/es/components/pay/toC/PaymentMethods/CashManual/serve.js +27 -0
  300. package/es/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
  301. package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +78 -0
  302. package/es/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
  303. package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
  304. package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.js +27 -0
  305. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  306. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +109 -0
  307. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
  308. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  309. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +41 -0
  310. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  311. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +109 -0
  312. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
  313. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  314. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +41 -0
  315. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
  316. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +65 -0
  317. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
  318. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  319. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +36 -0
  320. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  321. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +109 -0
  322. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
  323. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  324. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +41 -0
  325. package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  326. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +110 -0
  327. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
  328. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +349 -0
  329. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
  330. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
  331. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +375 -0
  332. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
  333. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
  334. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +37 -0
  335. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
  336. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +21 -0
  337. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
  338. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
  339. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +222 -0
  340. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
  341. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
  342. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +130 -0
  343. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
  344. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  345. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +524 -0
  346. package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
  347. package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -0
  348. package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
  349. package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
  350. package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +27 -0
  351. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  352. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +61 -0
  353. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  354. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +121 -0
  355. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
  356. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
  357. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +33 -0
  358. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
  359. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +30 -0
  360. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
  361. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +37 -0
  362. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
  363. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +13 -0
  364. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  365. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +15 -0
  366. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
  367. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
  368. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  369. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +108 -0
  370. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
  371. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +113 -0
  372. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
  373. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
  374. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +96 -0
  375. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
  376. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
  377. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +33 -0
  378. package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  379. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +78 -0
  380. package/es/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
  381. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  382. package/es/components/pay/toC/PaymentMethods/StripePay/serve.js +36 -0
  383. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  384. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +108 -0
  385. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
  386. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  387. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +41 -0
  388. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  389. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +109 -0
  390. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
  391. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  392. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +41 -0
  393. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
  394. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +142 -0
  395. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
  396. package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
  397. package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +19 -0
  398. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
  399. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +344 -0
  400. package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
  401. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
  402. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +114 -0
  403. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
  404. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +40 -0
  405. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  406. package/es/components/pay/toC/PaymentMethods/index.js +316 -0
  407. package/es/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
  408. package/es/components/pay/toC/WalletPassBlock/index.js +72 -0
  409. package/es/components/pay/toC/WalletPassBlock/index.less +65 -0
  410. package/es/components/pay/toC/index.d.ts +3 -0
  411. package/es/components/pay/toC/index.js +719 -0
  412. package/es/components/pay/toC/index.less +22 -0
  413. package/es/components/pay/toC/locales.d.ts +217 -0
  414. package/es/components/pay/toC/locales.js +216 -0
  415. package/es/components/pay/toC/model.d.ts +35 -0
  416. package/es/components/pay/toC/model.js +43 -0
  417. package/es/components/pay/toC/payGroup.d.ts +48 -0
  418. package/es/components/pay/toC/payGroup.js +105 -0
  419. package/es/components/pay/toC/serve.d.ts +34 -0
  420. package/es/components/pay/toC/serve.js +148 -0
  421. package/es/components/pay/toC/status.d.ts +12 -0
  422. package/es/components/pay/toC/status.js +116 -0
  423. package/es/components/pay/toC/utils.d.ts +38 -0
  424. package/es/components/pay/toC/utils.js +61 -0
  425. package/es/components/productExtension/card/index.d.ts +10 -0
  426. package/es/components/productExtension/card/index.js +20 -0
  427. package/es/components/productExtension/card/index.less +34 -0
  428. package/es/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
  429. package/es/components/productExtension/fields/Actor/Container/index.js +34 -0
  430. package/es/components/productExtension/fields/Actor/Container/index.less +19 -0
  431. package/es/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
  432. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +94 -0
  433. package/es/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
  434. package/es/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
  435. package/es/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
  436. package/es/components/productExtension/fields/Actor/index.d.ts +5 -0
  437. package/es/components/productExtension/fields/Actor/index.js +23 -0
  438. package/es/components/productExtension/fields/Forms/index.d.ts +10 -0
  439. package/es/components/productExtension/fields/Forms/index.js +184 -0
  440. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
  441. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +30 -0
  442. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
  443. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +4 -0
  444. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +39 -0
  445. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.less +62 -0
  446. package/es/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
  447. package/es/components/productExtension/fields/SelectProducts/index.js +99 -0
  448. package/es/components/productExtension/fields/SelectProducts/index.less +30 -0
  449. package/es/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
  450. package/es/components/productExtension/fields/SelectProducts/mock.js +0 -0
  451. package/es/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
  452. package/es/components/productExtension/fields/SelectProducts/server.js +29 -0
  453. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
  454. package/es/components/productExtension/fields/SelectResourcesTable/index.js +213 -0
  455. package/es/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
  456. package/es/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
  457. package/es/components/productExtension/fields/SelectResourcesTable/mock.js +5072 -0
  458. package/es/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
  459. package/es/components/productExtension/fields/SelectResourcesTable/server.js +49 -0
  460. package/es/components/productExtension/fields/index.d.ts +1 -0
  461. package/es/components/productExtension/fields/index.js +33 -0
  462. package/es/components/productExtension/index.d.ts +8 -0
  463. package/es/components/productExtension/index.js +83 -0
  464. package/es/components/productExtension/index.less +0 -0
  465. package/es/components/productExtension/locales.d.ts +48 -0
  466. package/es/components/productExtension/locales.js +47 -0
  467. package/es/components/productExtension/server.d.ts +1 -0
  468. package/es/components/productExtension/server.js +29 -0
  469. package/es/components/ruleSetting/index.d.ts +10 -0
  470. package/es/components/ruleSetting/index.js +337 -0
  471. package/es/components/ruleSetting/index.less +81 -0
  472. package/es/components/ruleSetting/locales.d.ts +48 -0
  473. package/es/components/ruleSetting/locales.js +47 -0
  474. package/es/components/ruleSetting/ruleBorder/index.d.ts +10 -0
  475. package/es/components/ruleSetting/ruleBorder/index.js +66 -0
  476. package/es/components/ruleSetting/ruleBorder/index.less +30 -0
  477. package/es/components/ruleSetting/server.d.ts +4 -0
  478. package/es/components/ruleSetting/server.js +149 -0
  479. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
  480. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +40 -0
  481. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
  482. package/es/components/schedules/components/ScheduleList/index.d.ts +5 -4
  483. package/es/components/schedules/components/ScheduleList/index.js +53 -43
  484. package/es/components/schedules/hooks/useSchedulesDataSource.js +5 -3
  485. package/es/components/schedules/index.d.ts +1 -1
  486. package/es/components/schedules/locales.d.ts +3 -0
  487. package/es/components/schedules/locales.js +6 -3
  488. package/es/components/schedules/model.d.ts +2 -1
  489. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
  490. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +134 -8
  491. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +20 -0
  492. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
  493. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +20 -5
  494. package/es/components/schedules/products/list/index.d.ts +2 -2
  495. package/es/components/schedules/products/list/index.js +8 -8
  496. package/es/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
  497. package/es/components/schedules/schedules/AllSchedules/index.js +9 -6
  498. package/es/components/schedules/schedules/AllSchedules/index.less +11 -3
  499. package/es/components/schedules/schedules/index.js +3 -2
  500. package/es/components/schedules/schedules/serve.d.ts +7 -0
  501. package/es/components/schedules/schedules/serve.js +24 -3
  502. package/es/components/schedules/schedules/utils.d.ts +22 -0
  503. package/es/components/schedules/schedules/utils.js +143 -1
  504. package/es/components/schedules/type.d.ts +7 -0
  505. package/es/components/selectModal/index.d.ts +24 -0
  506. package/es/components/selectModal/index.js +108 -0
  507. package/es/components/selectModal/index.less +0 -0
  508. package/es/components/tabProduct/card/index.d.ts +2 -2
  509. package/es/components/tabProduct/card/index.js +3 -4
  510. package/es/components/tabProduct/index.d.ts +7 -4
  511. package/es/components/tabProduct/index.js +35 -25
  512. package/es/components/tabProduct/tabs/index.d.ts +3 -3
  513. package/es/components/tabProduct/tabs/index.js +34 -21
  514. package/es/components/taxSelect/index.d.ts +12 -0
  515. package/es/components/taxSelect/index.js +141 -0
  516. package/es/components/taxSelect/index.less +12 -0
  517. package/es/components/taxSelect/locales.d.ts +24 -0
  518. package/es/components/taxSelect/locales.js +23 -0
  519. package/es/hooks/usePrefix.d.ts +1 -0
  520. package/es/hooks/usePrefix.js +10 -0
  521. package/es/index.d.ts +9 -0
  522. package/es/index.js +10 -1
  523. package/es/utils/index.d.ts +23 -0
  524. package/es/utils/index.js +78 -0
  525. package/es/utils/load.d.ts +11 -0
  526. package/es/utils/load.js +85 -0
  527. package/lib/components/booking/addons/index.d.ts +2 -2
  528. package/lib/components/booking/addons/index.js +238 -51
  529. package/lib/components/booking/addons/model.d.ts +2 -1
  530. package/lib/components/booking/components/TabProduct/index.d.ts +1 -1
  531. package/lib/components/booking/components/TabProduct/index.js +62 -59
  532. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
  533. package/lib/components/booking/components/TabProduct/productItem/index.js +16 -3
  534. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +33 -8
  535. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
  536. package/lib/components/booking/components/TabProduct/tabs/index.less +4 -1
  537. package/lib/components/booking/components/addButton/index.d.ts +9 -8
  538. package/lib/components/booking/components/addButton/index.js +10 -7
  539. package/lib/components/booking/components/collapsibleList/index.d.ts +11 -0
  540. package/lib/components/booking/components/collapsibleList/index.js +94 -0
  541. package/lib/components/booking/components/collapsibleList/index.less +61 -0
  542. package/lib/components/booking/components/collapsibleList/utils.d.ts +2 -0
  543. package/lib/components/booking/components/collapsibleList/utils.js +46 -0
  544. package/lib/components/booking/components/customSelect/index.d.ts +7 -3
  545. package/lib/components/booking/components/customSelect/index.js +50 -16
  546. package/lib/components/booking/components/customSelect/index.less +0 -1
  547. package/lib/components/booking/components/drawer/index.d.ts +3 -1
  548. package/lib/components/booking/components/drawer/index.js +5 -1
  549. package/lib/components/booking/components/drawer/index.less +10 -3
  550. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
  551. package/lib/components/booking/components/footer/FooterMenus/index.js +4 -21
  552. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  553. package/lib/components/booking/components/footer/amount.js +30 -12
  554. package/lib/components/booking/components/footer/index.d.ts +2 -2
  555. package/lib/components/booking/components/footer/index.js +416 -29
  556. package/lib/components/booking/components/footer/serve.d.ts +1 -0
  557. package/lib/components/booking/components/footer/serve.js +30 -0
  558. package/lib/components/booking/components/footer/utils.d.ts +18 -0
  559. package/lib/components/booking/components/footer/utils.js +81 -14
  560. package/lib/components/booking/components/tabPane/index.less +1 -0
  561. package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
  562. package/lib/components/booking/deposit/ClientItem/index.js +71 -0
  563. package/lib/components/booking/deposit/ClientItem/index.less +37 -0
  564. package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
  565. package/lib/components/booking/deposit/DepositItem/index.js +127 -0
  566. package/lib/components/booking/deposit/DepositItem/index.less +112 -0
  567. package/lib/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
  568. package/lib/components/booking/deposit/EditDepositModal/index.js +132 -0
  569. package/lib/components/booking/deposit/EditDepositModal/index.less +44 -0
  570. package/lib/components/booking/deposit/index.d.ts +3 -0
  571. package/lib/components/booking/deposit/index.js +232 -0
  572. package/lib/components/booking/deposit/index.less +3 -0
  573. package/lib/components/booking/deposit/serve.d.ts +8 -0
  574. package/lib/components/booking/deposit/serve.js +30 -0
  575. package/lib/components/booking/forms/format.d.ts +1 -0
  576. package/lib/components/booking/forms/format.js +17 -2
  577. package/lib/components/booking/forms/forms.d.ts +3 -2
  578. package/lib/components/booking/forms/forms.js +95 -77
  579. package/lib/components/booking/forms/index.d.ts +1 -1
  580. package/lib/components/booking/forms/index.js +52 -9
  581. package/lib/components/booking/forms/model.d.ts +2 -1
  582. package/lib/components/booking/forms/serve.d.ts +9 -0
  583. package/lib/components/booking/forms/serve.js +30 -0
  584. package/lib/components/booking/forms/single/RenderValueById.d.ts +6 -0
  585. package/lib/components/booking/forms/single/RenderValueById.js +106 -0
  586. package/lib/components/booking/forms/single/index.d.ts +1 -1
  587. package/lib/components/booking/forms/single/index.js +32 -52
  588. package/lib/components/booking/index.d.ts +1 -1
  589. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  590. package/lib/components/booking/info/addServiceVariant/index.js +58 -0
  591. package/lib/components/booking/info/client/index.d.ts +4 -4
  592. package/lib/components/booking/info/client/index.js +99 -58
  593. package/lib/components/booking/info/client/serve.d.ts +2 -0
  594. package/lib/components/booking/info/client/serve.js +39 -0
  595. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +44 -0
  596. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +317 -0
  597. package/lib/components/booking/info/clientVariant/index.d.ts +1 -0
  598. package/lib/components/booking/info/clientVariant/index.js +39 -0
  599. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +23 -0
  600. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +364 -0
  601. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
  602. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  603. package/lib/components/booking/info/clientVariant/vertical/index.js +404 -0
  604. package/lib/components/booking/info/clientVariant/vertical/index.less +101 -0
  605. package/lib/components/booking/info/date/index.js +1 -1
  606. package/lib/components/booking/info/date/index.less +1 -1
  607. package/lib/components/booking/info/header/index.d.ts +2 -2
  608. package/lib/components/booking/info/header/index.js +258 -11
  609. package/lib/components/booking/info/header/index.less +117 -2
  610. package/lib/components/booking/info/index.d.ts +1 -1
  611. package/lib/components/booking/info/index.js +44 -12
  612. package/lib/components/booking/info/index.less +9 -0
  613. package/lib/components/booking/info/model.d.ts +3 -2
  614. package/lib/components/booking/info/model.js +17 -8
  615. package/lib/components/booking/info/notes/index.d.ts +3 -0
  616. package/lib/components/booking/info/notes/index.js +115 -0
  617. package/lib/components/booking/info/pet/index.d.ts +13 -3
  618. package/lib/components/booking/info/pet/index.js +252 -110
  619. package/lib/components/booking/info/pet/index.less +3 -0
  620. package/lib/components/booking/info/service/actions/index.d.ts +6 -0
  621. package/lib/components/booking/info/service/actions/index.js +97 -0
  622. package/lib/components/booking/info/service/actions/index.less +9 -0
  623. package/lib/components/booking/info/service/addService/index.d.ts +11 -3
  624. package/lib/components/booking/info/service/addService/index.js +300 -84
  625. package/lib/components/booking/info/service/addService/index.less +27 -1
  626. package/lib/components/booking/info/service/addService/utils.d.ts +61 -0
  627. package/lib/components/booking/info/service/addService/utils.js +214 -0
  628. package/lib/components/booking/info/service/addTimeModal/index.d.ts +4 -0
  629. package/lib/components/booking/info/service/addTimeModal/index.js +581 -0
  630. package/lib/components/booking/info/service/addTimeModal/index.less +138 -0
  631. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  632. package/lib/components/booking/info/service/addTimeModal/serve.js +39 -0
  633. package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  634. package/lib/components/booking/info/service/addTimeModal/utils.js +155 -0
  635. package/lib/components/booking/info/service/editService/index.d.ts +7 -4
  636. package/lib/components/booking/info/service/editService/index.js +395 -266
  637. package/lib/components/booking/info/service/editService/index.less +32 -1
  638. package/lib/components/booking/info/service/index.d.ts +4 -4
  639. package/lib/components/booking/info/service/index.js +32 -111
  640. package/lib/components/booking/info/service/index.less +2 -96
  641. package/lib/components/booking/info/service/serve.d.ts +1 -0
  642. package/lib/components/booking/info/service/serve.js +30 -0
  643. package/lib/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
  644. package/lib/components/booking/info/service/serviceItem/Sales/index.js +0 -0
  645. package/lib/components/booking/info/service/serviceItem/Sales/index.less +0 -0
  646. package/lib/components/booking/info/service/serviceItem/index.d.ts +4 -0
  647. package/lib/components/booking/info/service/serviceItem/index.js +111 -0
  648. package/lib/components/booking/info/service/serviceItem/index.less +125 -0
  649. package/lib/components/booking/info/service/serviceList/index.d.ts +6 -0
  650. package/lib/components/booking/info/service/serviceList/index.js +130 -0
  651. package/lib/components/booking/info/service/serviceList/index.less +0 -0
  652. package/lib/components/booking/info/utils.d.ts +23 -0
  653. package/lib/components/booking/info/utils.js +88 -0
  654. package/lib/components/booking/locales.d.ts +219 -0
  655. package/lib/components/booking/locales.js +279 -13
  656. package/lib/components/booking/model.d.ts +25 -1
  657. package/lib/components/booking/notes/index.d.ts +1 -1
  658. package/lib/components/booking/notes/index.js +9 -7
  659. package/lib/components/booking/notes/model.d.ts +2 -1
  660. package/lib/components/booking/payments/index.d.ts +1 -1
  661. package/lib/components/booking/payments/index.js +7 -10
  662. package/lib/components/booking/payments/model.d.ts +2 -1
  663. package/lib/components/booking/utils.d.ts +66 -1
  664. package/lib/components/booking/utils.js +199 -62
  665. package/lib/components/eftpos/const.d.ts +64 -0
  666. package/lib/components/eftpos/const.js +124 -0
  667. package/lib/components/eftpos/device.d.ts +9 -0
  668. package/lib/components/eftpos/device.js +55 -0
  669. package/lib/components/eftpos/deviceList/index.d.ts +3 -0
  670. package/lib/components/eftpos/deviceList/index.js +70 -0
  671. package/lib/components/eftpos/form/index.d.ts +21 -0
  672. package/lib/components/eftpos/form/index.js +112 -0
  673. package/lib/components/eftpos/group/index.d.ts +7 -0
  674. package/lib/components/eftpos/group/index.js +75 -0
  675. package/lib/components/eftpos/hooks.d.ts +34 -0
  676. package/lib/components/eftpos/hooks.js +106 -0
  677. package/lib/components/eftpos/icon/apiKey.d.ts +5 -0
  678. package/lib/components/eftpos/icon/apiKey.js +57 -0
  679. package/lib/components/eftpos/icon/device.d.ts +5 -0
  680. package/lib/components/eftpos/icon/device.js +57 -0
  681. package/lib/components/eftpos/index.d.ts +47 -0
  682. package/lib/components/eftpos/index.js +459 -0
  683. package/lib/components/eftpos/index.less +206 -0
  684. package/lib/components/eftpos/locales.d.ts +99 -0
  685. package/lib/components/eftpos/locales.js +140 -0
  686. package/lib/components/eftpos/log.d.ts +8 -0
  687. package/lib/components/eftpos/log.js +87 -0
  688. package/lib/components/eftpos/pos.d.ts +9 -0
  689. package/lib/components/eftpos/pos.js +56 -0
  690. package/lib/components/eftpos/surcharge/index.css +17 -0
  691. package/lib/components/eftpos/surcharge/index.d.ts +31 -0
  692. package/lib/components/eftpos/surcharge/index.js +155 -0
  693. package/lib/components/eftpos/table.d.ts +21 -0
  694. package/lib/components/eftpos/table.js +292 -0
  695. package/lib/components/eftposPay/amount.d.ts +20 -0
  696. package/lib/components/eftposPay/amount.js +215 -0
  697. package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
  698. package/lib/components/eftposPay/component/alert/index.js +38 -0
  699. package/lib/components/eftposPay/component/alert/index.less +29 -0
  700. package/lib/components/eftposPay/component/alert/warn.d.ts +3 -0
  701. package/lib/components/eftposPay/component/alert/warn.js +80 -0
  702. package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  703. package/lib/components/eftposPay/component/fail/failCustom.js +141 -0
  704. package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
  705. package/lib/components/eftposPay/component/fail/index.js +145 -0
  706. package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
  707. package/lib/components/eftposPay/component/fail/network.js +65 -0
  708. package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
  709. package/lib/components/eftposPay/component/fail/unknow.js +72 -0
  710. package/lib/components/eftposPay/component/header/index.d.ts +10 -0
  711. package/lib/components/eftposPay/component/header/index.js +93 -0
  712. package/lib/components/eftposPay/component/header/index.less +35 -0
  713. package/lib/components/eftposPay/component/header/titlebar.d.ts +13 -0
  714. package/lib/components/eftposPay/component/header/titlebar.js +55 -0
  715. package/lib/components/eftposPay/component/header/titlebar.less +17 -0
  716. package/lib/components/eftposPay/component/manual/index.d.ts +10 -0
  717. package/lib/components/eftposPay/component/manual/index.js +193 -0
  718. package/lib/components/eftposPay/component/manual/index.less +137 -0
  719. package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
  720. package/lib/components/eftposPay/component/signature/index.js +80 -0
  721. package/lib/components/eftposPay/component/step/index.d.ts +12 -0
  722. package/lib/components/eftposPay/component/step/index.js +71 -0
  723. package/lib/components/eftposPay/component/step/step.d.ts +9 -0
  724. package/lib/components/eftposPay/component/step/step.js +59 -0
  725. package/lib/components/eftposPay/const.d.ts +147 -0
  726. package/lib/components/eftposPay/const.js +88 -0
  727. package/lib/components/eftposPay/device.d.ts +22 -0
  728. package/lib/components/eftposPay/device.js +152 -0
  729. package/lib/components/eftposPay/device.less +61 -0
  730. package/lib/components/eftposPay/helper.d.ts +66 -0
  731. package/lib/components/eftposPay/helper.js +175 -0
  732. package/lib/components/eftposPay/hooks.d.ts +33 -0
  733. package/lib/components/eftposPay/hooks.js +375 -0
  734. package/lib/components/eftposPay/index.d.ts +5 -0
  735. package/lib/components/eftposPay/index.js +244 -0
  736. package/lib/components/eftposPay/index.less +271 -0
  737. package/lib/components/eftposPay/locales.d.ts +309 -0
  738. package/lib/components/eftposPay/locales.js +653 -0
  739. package/lib/components/eftposPay/manufacturer.d.ts +6 -0
  740. package/lib/components/eftposPay/manufacturer.js +66 -0
  741. package/lib/components/eftposPay/pay.d.ts +20 -0
  742. package/lib/components/eftposPay/pay.js +183 -0
  743. package/lib/components/eftposPay/payo/config.d.ts +11 -0
  744. package/lib/components/eftposPay/payo/config.js +230 -0
  745. package/lib/components/eftposPay/payo/const.d.ts +26 -0
  746. package/lib/components/eftposPay/payo/const.js +131 -0
  747. package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
  748. package/lib/components/eftposPay/payo/hooks.js +97 -0
  749. package/lib/components/eftposPay/payo/index.d.ts +7 -0
  750. package/lib/components/eftposPay/payo/index.js +63 -0
  751. package/lib/components/eftposPay/store/index.d.ts +340 -0
  752. package/lib/components/eftposPay/store/index.js +312 -0
  753. package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
  754. package/lib/components/eftposPay/store/useThunkReducer.js +53 -0
  755. package/lib/components/eftposPay/tyro/const.d.ts +17 -0
  756. package/lib/components/eftposPay/tyro/const.js +114 -0
  757. package/lib/components/eftposPay/tyro/hooks.d.ts +14 -0
  758. package/lib/components/eftposPay/tyro/hooks.js +61 -0
  759. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  760. package/lib/components/eftposPay/tyro/index.js +558 -0
  761. package/lib/components/eftposPay/var.less +9 -0
  762. package/lib/components/eftposPay/windcave/const.d.ts +119 -0
  763. package/lib/components/eftposPay/windcave/const.js +249 -0
  764. package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
  765. package/lib/components/eftposPay/windcave/helper.js +493 -0
  766. package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
  767. package/lib/components/eftposPay/windcave/receiptAction.js +354 -0
  768. package/lib/components/eftposPay/windcave/timer.d.ts +29 -0
  769. package/lib/components/eftposPay/windcave/timer.js +131 -0
  770. package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
  771. package/lib/components/eftposPay/windcave/windcave.js +283 -0
  772. package/lib/components/index.d.ts +5 -1
  773. package/lib/components/index.js +14 -2
  774. package/lib/components/listComponent/index.d.ts +15 -0
  775. package/lib/components/listComponent/index.js +85 -0
  776. package/lib/components/pay/toC/PayAmount/index.d.ts +15 -0
  777. package/lib/components/pay/toC/PayAmount/index.js +42 -0
  778. package/lib/components/pay/toC/PayAmount/index.less +21 -0
  779. package/lib/components/pay/toC/PayCountdown/index.d.ts +15 -0
  780. package/lib/components/pay/toC/PayCountdown/index.js +49 -0
  781. package/lib/components/pay/toC/PayCountdown/index.less +22 -0
  782. package/lib/components/pay/toC/PaymentList/index.d.ts +19 -0
  783. package/lib/components/pay/toC/PaymentList/index.js +259 -0
  784. package/lib/components/pay/toC/PaymentList/index.less +112 -0
  785. package/lib/components/pay/toC/PaymentList/mock.d.ts +88 -0
  786. package/lib/components/pay/toC/PaymentList/mock.js +174 -0
  787. package/lib/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
  788. package/lib/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
  789. package/lib/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
  790. package/lib/components/pay/toC/PaymentList/payment/cash.svg +8 -0
  791. package/lib/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
  792. package/lib/components/pay/toC/PaymentList/payment/custom.svg +10 -0
  793. package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
  794. package/lib/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
  795. package/lib/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
  796. package/lib/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
  797. package/lib/components/pay/toC/PaymentList/serve.d.ts +28 -0
  798. package/lib/components/pay/toC/PaymentList/serve.js +86 -0
  799. package/lib/components/pay/toC/PaymentList/status.d.ts +4 -0
  800. package/lib/components/pay/toC/PaymentList/status.js +132 -0
  801. package/lib/components/pay/toC/PaymentList/utils.d.ts +10 -0
  802. package/lib/components/pay/toC/PaymentList/utils.js +52 -0
  803. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  804. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +96 -0
  805. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
  806. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
  807. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +68 -0
  808. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
  809. package/lib/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
  810. package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +56 -0
  811. package/lib/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
  812. package/lib/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
  813. package/lib/components/pay/toC/PaymentMethods/CashManual/serve.js +33 -0
  814. package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
  815. package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +56 -0
  816. package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
  817. package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
  818. package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.js +33 -0
  819. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  820. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +89 -0
  821. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
  822. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  823. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +44 -0
  824. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  825. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +89 -0
  826. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
  827. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  828. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +44 -0
  829. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
  830. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +61 -0
  831. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
  832. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  833. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +43 -0
  834. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  835. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +89 -0
  836. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
  837. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  838. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +44 -0
  839. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  840. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +95 -0
  841. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
  842. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +270 -0
  843. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
  844. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
  845. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +224 -0
  846. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
  847. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
  848. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +39 -0
  849. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
  850. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +52 -0
  851. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
  852. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
  853. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +139 -0
  854. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
  855. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
  856. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +80 -0
  857. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
  858. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  859. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +336 -0
  860. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
  861. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +53 -0
  862. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
  863. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
  864. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +33 -0
  865. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  866. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +76 -0
  867. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  868. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +107 -0
  869. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
  870. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
  871. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +30 -0
  872. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
  873. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +44 -0
  874. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
  875. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +69 -0
  876. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
  877. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +44 -0
  878. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  879. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +48 -0
  880. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
  881. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
  882. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  883. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +124 -0
  884. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
  885. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +94 -0
  886. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
  887. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
  888. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +81 -0
  889. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
  890. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
  891. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +30 -0
  892. package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  893. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +71 -0
  894. package/lib/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
  895. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  896. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.js +43 -0
  897. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  898. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +88 -0
  899. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
  900. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  901. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +44 -0
  902. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  903. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +87 -0
  904. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
  905. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  906. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +44 -0
  907. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
  908. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +126 -0
  909. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
  910. package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
  911. package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +56 -0
  912. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
  913. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +284 -0
  914. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
  915. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
  916. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +54 -0
  917. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
  918. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +70 -0
  919. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  920. package/lib/components/pay/toC/PaymentMethods/index.js +176 -0
  921. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
  922. package/lib/components/pay/toC/WalletPassBlock/index.js +97 -0
  923. package/lib/components/pay/toC/WalletPassBlock/index.less +65 -0
  924. package/lib/components/pay/toC/index.d.ts +3 -0
  925. package/lib/components/pay/toC/index.js +396 -0
  926. package/lib/components/pay/toC/index.less +22 -0
  927. package/lib/components/pay/toC/locales.d.ts +217 -0
  928. package/lib/components/pay/toC/locales.js +240 -0
  929. package/lib/components/pay/toC/model.d.ts +35 -0
  930. package/lib/components/pay/toC/model.js +60 -0
  931. package/lib/components/pay/toC/payGroup.d.ts +48 -0
  932. package/lib/components/pay/toC/payGroup.js +77 -0
  933. package/lib/components/pay/toC/serve.d.ts +34 -0
  934. package/lib/components/pay/toC/serve.js +78 -0
  935. package/lib/components/pay/toC/status.d.ts +12 -0
  936. package/lib/components/pay/toC/status.js +122 -0
  937. package/lib/components/pay/toC/utils.d.ts +38 -0
  938. package/lib/components/pay/toC/utils.js +69 -0
  939. package/lib/components/productExtension/card/index.d.ts +10 -0
  940. package/lib/components/productExtension/card/index.js +57 -0
  941. package/lib/components/productExtension/card/index.less +34 -0
  942. package/lib/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
  943. package/lib/components/productExtension/fields/Actor/Container/index.js +64 -0
  944. package/lib/components/productExtension/fields/Actor/Container/index.less +19 -0
  945. package/lib/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
  946. package/lib/components/productExtension/fields/Actor/CutOffTime/index.js +128 -0
  947. package/lib/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
  948. package/lib/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
  949. package/lib/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
  950. package/lib/components/productExtension/fields/Actor/index.d.ts +5 -0
  951. package/lib/components/productExtension/fields/Actor/index.js +56 -0
  952. package/lib/components/productExtension/fields/Forms/index.d.ts +10 -0
  953. package/lib/components/productExtension/fields/Forms/index.js +108 -0
  954. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
  955. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +65 -0
  956. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
  957. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +4 -0
  958. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +79 -0
  959. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.less +62 -0
  960. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
  961. package/lib/components/productExtension/fields/SelectProducts/index.js +126 -0
  962. package/lib/components/productExtension/fields/SelectProducts/index.less +30 -0
  963. package/lib/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
  964. package/lib/components/productExtension/fields/SelectProducts/mock.js +0 -0
  965. package/lib/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
  966. package/lib/components/productExtension/fields/SelectProducts/server.js +33 -0
  967. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
  968. package/lib/components/productExtension/fields/SelectResourcesTable/index.js +188 -0
  969. package/lib/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
  970. package/lib/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
  971. package/lib/components/productExtension/fields/SelectResourcesTable/mock.js +12723 -0
  972. package/lib/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
  973. package/lib/components/productExtension/fields/SelectResourcesTable/server.js +39 -0
  974. package/lib/components/productExtension/fields/index.d.ts +1 -0
  975. package/lib/components/productExtension/fields/index.js +69 -0
  976. package/lib/components/productExtension/index.d.ts +8 -0
  977. package/lib/components/productExtension/index.js +112 -0
  978. package/lib/components/productExtension/index.less +0 -0
  979. package/lib/components/productExtension/locales.d.ts +48 -0
  980. package/lib/components/productExtension/locales.js +71 -0
  981. package/lib/components/productExtension/server.d.ts +1 -0
  982. package/lib/components/productExtension/server.js +33 -0
  983. package/lib/components/ruleSetting/index.d.ts +10 -0
  984. package/lib/components/ruleSetting/index.js +381 -0
  985. package/lib/components/ruleSetting/index.less +81 -0
  986. package/lib/components/ruleSetting/locales.d.ts +48 -0
  987. package/lib/components/ruleSetting/locales.js +71 -0
  988. package/lib/components/ruleSetting/ruleBorder/index.d.ts +10 -0
  989. package/lib/components/ruleSetting/ruleBorder/index.js +89 -0
  990. package/lib/components/ruleSetting/ruleBorder/index.less +30 -0
  991. package/lib/components/ruleSetting/server.d.ts +4 -0
  992. package/lib/components/ruleSetting/server.js +107 -0
  993. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
  994. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +77 -0
  995. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
  996. package/lib/components/schedules/components/ScheduleList/index.d.ts +5 -4
  997. package/lib/components/schedules/components/ScheduleList/index.js +38 -31
  998. package/lib/components/schedules/hooks/useSchedulesDataSource.js +8 -2
  999. package/lib/components/schedules/index.d.ts +1 -1
  1000. package/lib/components/schedules/locales.d.ts +3 -0
  1001. package/lib/components/schedules/locales.js +6 -3
  1002. package/lib/components/schedules/model.d.ts +2 -1
  1003. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
  1004. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +100 -9
  1005. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +20 -0
  1006. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
  1007. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +18 -4
  1008. package/lib/components/schedules/products/list/index.d.ts +2 -2
  1009. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
  1010. package/lib/components/schedules/schedules/AllSchedules/index.js +3 -2
  1011. package/lib/components/schedules/schedules/AllSchedules/index.less +11 -3
  1012. package/lib/components/schedules/schedules/index.js +2 -2
  1013. package/lib/components/schedules/schedules/serve.d.ts +7 -0
  1014. package/lib/components/schedules/schedules/serve.js +5 -2
  1015. package/lib/components/schedules/schedules/utils.d.ts +22 -0
  1016. package/lib/components/schedules/schedules/utils.js +98 -0
  1017. package/lib/components/schedules/type.d.ts +7 -0
  1018. package/lib/components/selectModal/index.d.ts +24 -0
  1019. package/lib/components/selectModal/index.js +133 -0
  1020. package/lib/components/selectModal/index.less +0 -0
  1021. package/lib/components/tabProduct/card/index.d.ts +2 -2
  1022. package/lib/components/tabProduct/card/index.js +1 -2
  1023. package/lib/components/tabProduct/index.d.ts +7 -4
  1024. package/lib/components/tabProduct/index.js +21 -13
  1025. package/lib/components/tabProduct/tabs/index.d.ts +3 -3
  1026. package/lib/components/tabProduct/tabs/index.js +10 -6
  1027. package/lib/components/taxSelect/index.d.ts +12 -0
  1028. package/lib/components/taxSelect/index.js +161 -0
  1029. package/lib/components/taxSelect/index.less +12 -0
  1030. package/lib/components/taxSelect/locales.d.ts +24 -0
  1031. package/lib/components/taxSelect/locales.js +47 -0
  1032. package/lib/hooks/usePrefix.d.ts +1 -0
  1033. package/lib/hooks/usePrefix.js +44 -0
  1034. package/lib/index.d.ts +9 -0
  1035. package/lib/index.js +29 -2
  1036. package/lib/utils/index.d.ts +23 -0
  1037. package/lib/utils/index.js +70 -0
  1038. package/lib/utils/load.d.ts +11 -0
  1039. package/lib/utils/load.js +100 -0
  1040. package/lowcode/booking-deposit/meta.ts +93 -0
  1041. package/lowcode/booking-vertical-add-service/meta.ts +124 -0
  1042. package/lowcode/booking-vertical-client/meta.ts +124 -0
  1043. package/lowcode/eftpos/meta.ts +229 -0
  1044. package/lowcode/eftpos-pay/meta.ts +155 -0
  1045. package/lowcode/product-extension/meta.ts +131 -0
  1046. package/lowcode/rule-setting/meta.ts +74 -0
  1047. package/lowcode/tax-select/meta.ts +107 -0
  1048. package/lowcode/toc-pay/meta.ts +59 -0
  1049. package/lowcode/vertical-add-service/meta.ts +71 -0
  1050. package/lowcode/vertical-client/meta.ts +71 -0
  1051. package/package.json +6 -4
@@ -1,69 +1,76 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
2
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
4
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
5
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
6
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
7
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
8
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
11
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
13
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
14
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
14
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
15
15
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
16
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
17
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
18
18
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
19
19
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
20
20
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
- import React, { useContext, useEffect, useMemo, useState } from "react";
22
- import User01 from "@pisell/icon/es/User01";
21
+ import React, { useContext, useEffect, useMemo, useState } from 'react';
22
+ import User01 from '@pisell/icon/es/User01';
23
23
  import { Context } from "../model";
24
- import { Avatar } from "antd";
24
+ import { Avatar, Skeleton, Button } from 'antd';
25
25
  import "./index.less";
26
- import { locales } from "@pisell/utils";
26
+ import { locales } from '@pisell/utils';
27
27
  import FormsCom from "../../forms/forms";
28
- import { changeFormValues } from "../../forms/format";
28
+ import { changeFormValues, sortFormValues } from "../../forms/format";
29
29
  import { isWalkIn } from "../../utils";
30
- var Pet = function Pet() {
31
- var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$pet, _state$client$value2, _state$client8, _state$client8$value, _state$client9;
30
+ import useEngineContext from "../../../../hooks/useEngineContext";
31
+ import { useMemoizedFn } from "ahooks";
32
+ var defaultParams = {
33
+ skip: 1,
34
+ num: 20,
35
+ total: 0,
36
+ keyword: ''
37
+ };
38
+ var Pet = function Pet(props) {
39
+ var _context$appHelper, _state2, _state2$bookingConfig, _state2$bookingConfig2, _state2$bookingConfig3, _state$bookingConfig3, _state$client$value2, _state$client9, _state$client9$value, _state$pet5, _state$pet5$formData, _state$pet5$formData$, _state$pet5$formData$2, _state$client11;
40
+ var hideTitle = props.hideTitle,
41
+ addButtonProps = props.addButtonProps,
42
+ handleOpenModal = props.handleOpenModal,
43
+ clientChangeNotSetPet = props.clientChangeNotSetPet,
44
+ previewItemTitleRender = props.previewItemTitleRender;
32
45
  var _useState = useState(false),
33
46
  _useState2 = _slicedToArray(_useState, 2),
34
- loading = _useState2[0],
35
- setLoading = _useState2[1];
47
+ loadLoading = _useState2[0],
48
+ setLoadLoading = _useState2[1];
49
+ var _useState3 = useState(false),
50
+ _useState4 = _slicedToArray(_useState3, 2),
51
+ loading = _useState4[0],
52
+ setLoading = _useState4[1];
36
53
  var _useContext = useContext(Context),
37
54
  state = _useContext.state,
38
55
  dispatch = _useContext.dispatch;
39
- var _useState3 = useState(false),
40
- _useState4 = _slicedToArray(_useState3, 2),
41
- valueLoading = _useState4[0],
42
- setValueLoading = _useState4[1];
43
-
56
+ var _useState5 = useState(false),
57
+ _useState6 = _slicedToArray(_useState5, 2),
58
+ valueLoading = _useState6[0],
59
+ setValueLoading = _useState6[1];
60
+ var context = useEngineContext();
61
+ var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
62
+ isTerminal = _ref.isTerminal;
63
+ var _useState7 = useState(defaultParams),
64
+ _useState8 = _slicedToArray(_useState7, 2),
65
+ params = _useState8[0],
66
+ setParams = _useState8[1];
67
+ state = state || (props === null || props === void 0 ? void 0 : props.state);
68
+ dispatch = dispatch || (props === null || props === void 0 ? void 0 : props.dispatch);
44
69
  // board设置, 获取预约主体
45
- var params = useMemo(function () {
46
- var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
47
- return (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : _state$bookingConfig$2.appointment_subject) || {};
48
- }, [state === null || state === void 0 ? void 0 : (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : (_state$bookingConfig3 = _state$bookingConfig2.config) === null || _state$bookingConfig3 === void 0 ? void 0 : (_state$bookingConfig4 = _state$bookingConfig3.basic) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.appointment_subject]);
49
-
50
- // useEffect(() => {
51
- // if (state.pet.originValue && state.pet.pets.length) {
52
- // let _val = {
53
- // [state.pet.originValue.form_id]: (state.pet.pets || []).filter((d) =>
54
- // (state.pet.originValue?.form_record || []).includes(d.form_record_id)
55
- // ),
56
- // };
57
- // console.log("_val", state.pet.originValue, state.pet.pets);
58
- // dispatch({
59
- // type: "setPet",
60
- // payload: {
61
- // value: _val,
62
- // originValue: null,
63
- // },
64
- // });
65
- // }
66
- // }, [state.pet.originValue, state.pet.pets]);
70
+ var boardParams = useMemo(function () {
71
+ var _state, _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
72
+ return ((_state = state) === null || _state === void 0 ? void 0 : (_state$bookingConfig = _state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : _state$bookingConfig$2.appointment_subject) || {};
73
+ }, [(_state2 = state) === null || _state2 === void 0 ? void 0 : (_state2$bookingConfig = _state2.bookingConfig) === null || _state2$bookingConfig === void 0 ? void 0 : (_state2$bookingConfig2 = _state2$bookingConfig.config) === null || _state2$bookingConfig2 === void 0 ? void 0 : (_state2$bookingConfig3 = _state2$bookingConfig2.basic) === null || _state2$bookingConfig3 === void 0 ? void 0 : _state2$bookingConfig3.appointment_subject]);
67
74
 
68
75
  /**
69
76
  * @title: 预约主体
@@ -74,8 +81,19 @@ var Pet = function Pet() {
74
81
  * @Date: 2024-01-27 14:22
75
82
  */
76
83
  var petForm = useMemo(function () {
77
- return (state.pet.formData || [])[0];
78
- }, [state.pet.formData]);
84
+ var _state$bookingConfig2;
85
+ var _holder = (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.holder;
86
+ if (!_holder) {
87
+ return null;
88
+ }
89
+ return _objectSpread(_objectSpread(_objectSpread({}, _holder), _holder === null || _holder === void 0 ? void 0 : _holder.form), {}, {
90
+ options: [],
91
+ form_id: _holder.form.id,
92
+ field: _holder.form.form_field,
93
+ relation_type: 'appointment_booking',
94
+ form_record: []
95
+ });
96
+ }, [(_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.holder]);
79
97
 
80
98
  /**
81
99
  * @title: 获取表单数据
@@ -86,57 +104,71 @@ var Pet = function Pet() {
86
104
  * @Date: 2024-01-27 14:22
87
105
  */
88
106
  var getFormData = /*#__PURE__*/function () {
89
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
107
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
90
108
  var _state$client, _state$client$value;
91
- var formData, _list, noClient, _params, _state$client2, _state$client2$value, data;
109
+ var formData,
110
+ _params,
111
+ _list,
112
+ noClient,
113
+ _values,
114
+ _state$client2,
115
+ _state$client2$value,
116
+ data,
117
+ _args = arguments;
92
118
  return _regeneratorRuntime().wrap(function _callee$(_context) {
93
119
  while (1) switch (_context.prev = _context.next) {
94
120
  case 0:
95
- formData = _ref.formData;
121
+ formData = _ref2.formData;
122
+ _params = _args.length > 1 && _args[1] !== undefined ? _args[1] : defaultParams;
96
123
  setLoading(true);
97
124
  _list = []; // 只要不是 客户表单并且没选择客户, 都获取数据
98
- noClient = formData.data_range === "customer" && isWalkIn((_state$client = state.client) === null || _state$client === void 0 ? void 0 : (_state$client$value = _state$client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id);
125
+ noClient = formData.data_range === 'customer' && isWalkIn((_state$client = state.client) === null || _state$client === void 0 ? void 0 : (_state$client$value = _state$client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id);
99
126
  if (noClient) {
100
- _context.next = 11;
127
+ _context.next = 14;
101
128
  break;
102
129
  }
103
- _params = {
104
- form_id: params.form_id,
105
- skip: 1,
106
- num: 999
107
- };
108
- if (formData.data_range === "customer") {
109
- _params.customer_id = (_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : (_state$client2$value = _state$client2.value) === null || _state$client2$value === void 0 ? void 0 : _state$client2$value.id;
130
+ _values = _objectSpread(_objectSpread({
131
+ form_id: boardParams.form_id
132
+ }, _params), {}, {
133
+ source_shop_customer: petForm === null || petForm === void 0 ? void 0 : petForm.is_franchisor
134
+ });
135
+ if (formData.data_range === 'customer') {
136
+ _values.customer_id = (_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : (_state$client2$value = _state$client2.value) === null || _state$client2$value === void 0 ? void 0 : _state$client2$value.id;
110
137
  }
111
- _context.next = 9;
112
- return state.apis.getPetsData(_params);
113
- case 9:
138
+ _context.next = 10;
139
+ return state.apis.getPetsData(_values);
140
+ case 10:
114
141
  data = _context.sent;
115
- _list = (data === null || data === void 0 ? void 0 : data.list) || [];
116
- case 11:
142
+ _list = _toConsumableArray(formData.options);
143
+ if (_params.skip === 1) {
144
+ _list = (data === null || data === void 0 ? void 0 : data.list) || [];
145
+ } else {
146
+ _list = _list.concat((data === null || data === void 0 ? void 0 : data.list) || []);
147
+ }
148
+ setParams(_objectSpread(_objectSpread(_objectSpread({}, params), _params), {}, {
149
+ total: (data === null || data === void 0 ? void 0 : data.count) || 0
150
+ }));
151
+ case 14:
117
152
  dispatch({
118
- type: "setPet",
153
+ type: 'setPet',
119
154
  payload: {
120
- formData: [_objectSpread(_objectSpread(_objectSpread({}, formData), formData.form), {}, {
121
- form_id: formData.form.id,
122
- options: _list,
123
- type: formData.type
155
+ formData: [_objectSpread(_objectSpread({}, formData), {}, {
156
+ options: _list
124
157
  })],
125
158
  pets: _list
126
159
  }
127
160
  });
128
161
  setLoading(false);
129
- case 13:
162
+ case 16:
130
163
  case "end":
131
164
  return _context.stop();
132
165
  }
133
166
  }, _callee);
134
167
  }));
135
168
  return function getFormData(_x2) {
136
- return _ref2.apply(this, arguments);
169
+ return _ref3.apply(this, arguments);
137
170
  };
138
171
  }();
139
- console.log("values", (_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : _state$pet.value);
140
172
 
141
173
  /**
142
174
  * @title: 获取预约主体表单
@@ -146,95 +178,120 @@ var Pet = function Pet() {
146
178
  * @Date: 2024-01-27 14:20
147
179
  */
148
180
  var getForms = /*#__PURE__*/function () {
149
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
181
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
182
+ var _state$bookingDetail, _state$bookingDetail$, _state$bookingDetail$2;
150
183
  var isUpdateValue,
151
184
  values,
152
185
  isSetValue,
153
- _state$bookingDetail,
154
- _state$bookingDetail$,
155
186
  formData,
187
+ _state$bookingDetail2,
188
+ _state$bookingDetail3,
189
+ payload,
190
+ _state$bookingDetail4,
191
+ _state$bookingDetail5,
192
+ _state$client3,
193
+ _state$client3$value,
194
+ records,
156
195
  _args2 = arguments;
157
196
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
158
197
  while (1) switch (_context2.prev = _context2.next) {
159
198
  case 0:
160
199
  isUpdateValue = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : true;
161
- setLoading(true);
200
+ // setLoading(true);
162
201
  values = _objectSpread({}, state.pet.value);
163
- isSetValue = isUpdateValue && values[params === null || params === void 0 ? void 0 : params.form_id] === undefined;
202
+ isSetValue = isUpdateValue && values[boardParams === null || boardParams === void 0 ? void 0 : boardParams.form_id] === undefined && ((_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : (_state$bookingDetail$ = _state$bookingDetail.holder) === null || _state$bookingDetail$ === void 0 ? void 0 : (_state$bookingDetail$2 = _state$bookingDetail$.form_record) === null || _state$bookingDetail$2 === void 0 ? void 0 : _state$bookingDetail$2.length);
164
203
  if (isSetValue) {
165
204
  setValueLoading(true);
166
205
  }
167
- _context2.prev = 5;
168
- _context2.next = 8;
206
+ _context2.prev = 4;
207
+ formData = petForm;
208
+ if (!(state.renderType === 'eventBooking')) {
209
+ _context2.next = 12;
210
+ break;
211
+ }
212
+ _context2.next = 9;
169
213
  return state.apis.getForms({
170
- relation_type: "appointment_booking",
171
- relation_id: ((_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : (_state$bookingDetail$ = _state$bookingDetail.bookings) === null || _state$bookingDetail$ === void 0 ? void 0 : _state$bookingDetail$.id) || 0
214
+ relation_type: 'event_booking_v2',
215
+ relation_id: ((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : (_state$bookingDetail3 = _state$bookingDetail2.bookings) === null || _state$bookingDetail3 === void 0 ? void 0 : _state$bookingDetail3.id) || 0
172
216
  // _config: { useCache: true },
173
217
  });
174
- case 8:
218
+ case 9:
175
219
  formData = _context2.sent;
176
220
  // 只要预约主体
177
221
  formData = (formData || []).filter(function (d) {
178
- return d.form_id === (params === null || params === void 0 ? void 0 : params.form_id);
222
+ return d.form_id === (boardParams === null || boardParams === void 0 ? void 0 : boardParams.form_id);
179
223
  })[0];
180
-
224
+ formData = _objectSpread(_objectSpread(_objectSpread({}, formData), formData.form), {}, {
225
+ form_id: formData.form.id,
226
+ options: [],
227
+ type: formData.type
228
+ });
229
+ case 12:
181
230
  // 获取当前预约中填写的值, 只在第一次执行
182
- if (isSetValue) {
183
- values[params === null || params === void 0 ? void 0 : params.form_id] = formData.form_record;
184
- setValueLoading(false);
185
- dispatch({
186
- type: "setPet",
187
- payload: {
188
- value: values
189
- }
190
- });
231
+ payload = {
232
+ formData: [formData]
233
+ };
234
+ if (!isSetValue) {
235
+ _context2.next = 21;
236
+ break;
191
237
  }
192
-
193
- // 获取表单下的数据
194
- _context2.next = 13;
195
- return getFormData({
196
- formData: formData
238
+ _context2.next = 16;
239
+ return state.apis.getFormRecords({
240
+ form_record_ids: (_state$bookingDetail4 = state.bookingDetail) === null || _state$bookingDetail4 === void 0 ? void 0 : (_state$bookingDetail5 = _state$bookingDetail4.holder) === null || _state$bookingDetail5 === void 0 ? void 0 : _state$bookingDetail5.form_record,
241
+ with: ['customer']
197
242
  });
198
- case 13:
199
- _context2.next = 20;
243
+ case 16:
244
+ records = _context2.sent;
245
+ console.log('records', records);
246
+ values[boardParams === null || boardParams === void 0 ? void 0 : boardParams.form_id] = sortFormValues(records, (_state$client3 = state.client) === null || _state$client3 === void 0 ? void 0 : (_state$client3$value = _state$client3.value) === null || _state$client3$value === void 0 ? void 0 : _state$client3$value.id);
247
+ payload.value = values;
248
+ setValueLoading(false);
249
+ case 21:
250
+ dispatch({
251
+ type: 'setPet',
252
+ payload: payload
253
+ });
254
+ _context2.next = 29;
200
255
  break;
201
- case 15:
202
- _context2.prev = 15;
203
- _context2.t0 = _context2["catch"](5);
256
+ case 24:
257
+ _context2.prev = 24;
258
+ _context2.t0 = _context2["catch"](4);
204
259
  setValueLoading(false);
205
260
  setLoading(false);
206
- console.log("form_error", _context2.t0);
207
- case 20:
261
+ console.log('form_error', _context2.t0);
262
+ case 29:
208
263
  case "end":
209
264
  return _context2.stop();
210
265
  }
211
- }, _callee2, null, [[5, 15]]);
266
+ }, _callee2, null, [[4, 24]]);
212
267
  }));
213
268
  return function getForms() {
214
- return _ref3.apply(this, arguments);
269
+ return _ref4.apply(this, arguments);
215
270
  };
216
271
  }();
217
- var handleViewItem = function handleViewItem(item) {
218
- var _state$client3, _state$client3$value;
272
+ var handleViewItem = useMemoizedFn(function (item) {
273
+ var _state$client4, _state$client4$value;
219
274
  var _data = {
220
275
  formDataConfig: _objectSpread({}, petForm),
221
276
  record: item
222
277
  };
223
- if (petForm.data_range === "customer" && !isWalkIn((_state$client3 = state.client) === null || _state$client3 === void 0 ? void 0 : (_state$client3$value = _state$client3.value) === null || _state$client3$value === void 0 ? void 0 : _state$client3$value.id)) {
224
- var _state$client4, _state$client4$value;
225
- _data.customerId = (_state$client4 = state.client) === null || _state$client4 === void 0 ? void 0 : (_state$client4$value = _state$client4.value) === null || _state$client4$value === void 0 ? void 0 : _state$client4$value.id;
278
+ if (petForm.data_range === 'customer' && !isWalkIn((_state$client4 = state.client) === null || _state$client4 === void 0 ? void 0 : (_state$client4$value = _state$client4.value) === null || _state$client4$value === void 0 ? void 0 : _state$client4$value.id)) {
279
+ var _state$client5, _state$client5$value;
280
+ _data.customerId = (_state$client5 = state.client) === null || _state$client5 === void 0 ? void 0 : (_state$client5$value = _state$client5.value) === null || _state$client5$value === void 0 ? void 0 : _state$client5$value.id;
226
281
  }
227
282
  state.action({
228
- type: "pisell1.goCustomFormDetail",
283
+ type: 'pisell1.goCustomFormDetail',
229
284
  data: _data,
230
285
  callback: function callback(res) {
231
286
  var cur = _toConsumableArray(state.pet.value[petForm.form_id] || []);
232
- if (res.type === "delete") {
287
+ if (res.type === 'delete') {
233
288
  cur = cur.filter(function (d) {
234
289
  return d.form_record_id !== item.form_record_id;
235
290
  });
236
291
  } else {
237
- var obj = {};
292
+ var obj = {
293
+ customer: item === null || item === void 0 ? void 0 : item.customer
294
+ };
238
295
  var _iterator = _createForOfIteratorHelper(res),
239
296
  _step;
240
297
  try {
@@ -254,28 +311,28 @@ var Pet = function Pet() {
254
311
  onValueChange({
255
312
  values: _defineProperty({}, petForm.form_id, cur)
256
313
  });
257
- getForms();
314
+ _addCallback();
258
315
  }
259
316
  });
260
- };
261
- var handleEditItem = function handleEditItem(item) {
262
- var _state$client5, _state$client5$value;
317
+ });
318
+ var handleEditItem = useMemoizedFn(function (item) {
319
+ var _state$client6, _state$client6$value;
263
320
  var _data = {
264
321
  formDataConfig: _objectSpread({}, petForm),
265
322
  record: item
266
323
  };
267
- if (petForm.data_range === "customer" && !isWalkIn((_state$client5 = state.client) === null || _state$client5 === void 0 ? void 0 : (_state$client5$value = _state$client5.value) === null || _state$client5$value === void 0 ? void 0 : _state$client5$value.id)) {
268
- var _state$client6, _state$client6$value;
269
- _data.customerId = (_state$client6 = state.client) === null || _state$client6 === void 0 ? void 0 : (_state$client6$value = _state$client6.value) === null || _state$client6$value === void 0 ? void 0 : _state$client6$value.id;
324
+ if (petForm.data_range === 'customer' && !isWalkIn((_state$client6 = state.client) === null || _state$client6 === void 0 ? void 0 : (_state$client6$value = _state$client6.value) === null || _state$client6$value === void 0 ? void 0 : _state$client6$value.id)) {
325
+ var _state$client7, _state$client7$value;
326
+ _data.customerId = (_state$client7 = state.client) === null || _state$client7 === void 0 ? void 0 : (_state$client7$value = _state$client7.value) === null || _state$client7$value === void 0 ? void 0 : _state$client7$value.id;
270
327
  }
271
328
  state.action({
272
- type: "pisell1.editCustomFormRecord",
329
+ type: 'pisell1.editCustomFormRecord',
273
330
  data: _data,
274
331
  callback: function callback() {
275
- getForms();
332
+ _addCallback();
276
333
  }
277
334
  });
278
- };
335
+ });
279
336
 
280
337
  /**
281
338
  * @title: 修改数据
@@ -285,109 +342,191 @@ var Pet = function Pet() {
285
342
  * @Author: zhiwei.Wang
286
343
  * @Date: 2024-01-27 14:16
287
344
  */
288
- var onValueChange = function onValueChange(_ref4) {
289
- var values = _ref4.values,
290
- _ref4$edit = _ref4.edit,
291
- edit = _ref4$edit === void 0 ? true : _ref4$edit;
345
+ var onValueChange = useMemoizedFn(function (_ref5) {
346
+ var values = _ref5.values,
347
+ _ref5$edit = _ref5.edit,
348
+ edit = _ref5$edit === void 0 ? true : _ref5$edit;
292
349
  dispatch({
293
- type: "setPet",
350
+ type: 'setPet',
294
351
  payload: {
295
352
  edit: edit,
296
353
  value: values
297
354
  }
298
355
  });
299
- };
356
+ });
300
357
 
301
358
  // 当客户id 发生改变时, 检测当前表单是否是该客户的, 如果不是则移除
302
359
  useEffect(function () {
303
- var _state$pet2, _state$client7, _state$client7$value, _state$pet3;
360
+ var _state$pet, _state$client8, _state$client8$value, _state$pet2;
361
+ if (clientChangeNotSetPet) return;
304
362
  var changeFormValuesData = changeFormValues({
305
- values: ((_state$pet2 = state.pet) === null || _state$pet2 === void 0 ? void 0 : _state$pet2.value) || {},
306
- clientId: (_state$client7 = state.client) === null || _state$client7 === void 0 ? void 0 : (_state$client7$value = _state$client7.value) === null || _state$client7$value === void 0 ? void 0 : _state$client7$value.id,
307
- forms: ((_state$pet3 = state.pet) === null || _state$pet3 === void 0 ? void 0 : _state$pet3.formData) || []
363
+ values: ((_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : _state$pet.value) || {},
364
+ clientId: (_state$client8 = state.client) === null || _state$client8 === void 0 ? void 0 : (_state$client8$value = _state$client8.value) === null || _state$client8$value === void 0 ? void 0 : _state$client8$value.id,
365
+ forms: ((_state$pet2 = state.pet) === null || _state$pet2 === void 0 ? void 0 : _state$pet2.formData) || []
308
366
  });
309
- dispatch({
310
- type: "setPet",
311
- payload: {
312
- value: changeFormValuesData
313
- }
367
+ setTimeout(function () {
368
+ dispatch({
369
+ type: 'setPet',
370
+ payload: {
371
+ value: changeFormValuesData
372
+ }
373
+ });
314
374
  });
315
- }, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id]);
316
-
317
- // 只有预约主体是表单的时候 才获取数据, 当客户id发生变化时, 也需要重新获取
318
- useEffect(function () {
375
+ }, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id, clientChangeNotSetPet]);
376
+ var handleUpdateForm = function handleUpdateForm() {
319
377
  if (state.bookingId) {
320
378
  // 编辑时 必须获取详情后在获取预约主体信息
321
379
  if (!state.bookingDetail) {
322
380
  return;
323
381
  }
324
382
  }
325
- if (params.form_id && params.type === "form") {
383
+ if (boardParams.form_id && boardParams.type === 'form') {
326
384
  getForms(true);
327
385
  }
328
- }, [state.bookingId, state.bookingDetail, params.form_id, params.type, (_state$client8 = state.client) === null || _state$client8 === void 0 ? void 0 : (_state$client8$value = _state$client8.value) === null || _state$client8$value === void 0 ? void 0 : _state$client8$value.id]);
329
- console.log("state.pet.formData", state.pet.formData);
330
- return /*#__PURE__*/React.createElement("div", {
331
- className: "pisell-lowcode__booking-pet-wraps"
332
- }, /*#__PURE__*/React.createElement(FormsCom, {
333
- hideTitle: true,
334
- watch: {
335
- value: state.pet.value
336
- },
337
- addCallback: function addCallback() {
338
- getForms(false);
339
- },
340
- loading: valueLoading,
341
- forms: state.pet.formData,
342
- action: state.action,
343
- modalOpen: state.modalOpen,
344
- value: state.pet.value,
345
- onChange: onValueChange,
346
- client: (_state$client9 = state.client) === null || _state$client9 === void 0 ? void 0 : _state$client9.value,
347
- customSelectProps: {
348
- // loading: loading,
349
- handleViewItem: handleViewItem,
350
- virtualListHeight: window.innerHeight - 213 - 57 - 16,
351
- disabled: state.disabledEdit
352
- },
353
- optionRender: function optionRender(item) {
354
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
355
- className: "pisell-lowcode__booking-pet-list-item-avatar",
356
- src: item.cover,
357
- icon: /*#__PURE__*/React.createElement(User01, {
358
- className: "pisell-lowcode__booking-pet-list-item-avatar-icon"
359
- })
360
- }), /*#__PURE__*/React.createElement("div", {
361
- className: "pisell-lowcode__booking-pet-list-item-info"
362
- }, /*#__PURE__*/React.createElement("div", {
363
- className: "pisell-lowcode__booking-pet-list-item-info-name"
364
- }, item.main_field), /*#__PURE__*/React.createElement("div", {
365
- className: "pisell-lowcode__booking-pet-list-item-info-desc"
366
- }, /*#__PURE__*/React.createElement("div", {
367
- className: ""
368
- }, item.key_age))), /*#__PURE__*/React.createElement("div", {
369
- className: "pisell-lowcode__booking-pet-list-item-actions"
370
- }, /*#__PURE__*/React.createElement("div", {
371
- className: "pisell-lowcode__booking-pet-list-item-actions-view",
372
- onClick: function onClick(e) {
373
- e.preventDefault();
374
- e.stopPropagation();
375
- handleViewItem(item);
376
- }
377
- }, locales.getText("pisell2.text.view")), /*#__PURE__*/React.createElement("div", {
378
- className: "pisell-lowcode__booking-pet-list-item-actions-edit",
379
- onClick: function onClick(e) {
380
- e.preventDefault();
381
- e.stopPropagation();
382
- handleEditItem(item);
383
- }
384
- }, locales.getText("pisell2.text.edit"))));
385
- },
386
- addButtonProps: {
386
+ };
387
+
388
+ // 只有预约主体是表单的时候 才获取数据, 当客户id发生变化时, 也需要重新获取
389
+ useEffect(function () {
390
+ setTimeout(function () {
391
+ handleUpdateForm();
392
+ }, 10);
393
+ }, [state.bookingId, state.bookingDetail, boardParams.form_id, boardParams.type, state.renderType, petForm, clientChangeNotSetPet ? (_state$client9 = state.client) === null || _state$client9 === void 0 ? void 0 : (_state$client9$value = _state$client9.value) === null || _state$client9$value === void 0 ? void 0 : _state$client9$value.id : undefined]);
394
+ var _addCallback = useMemoizedFn(function (_params) {
395
+ var _state$pet3, _state$pet3$formData;
396
+ var _formData = (_state$pet3 = state.pet) === null || _state$pet3 === void 0 ? void 0 : (_state$pet3$formData = _state$pet3.formData) === null || _state$pet3$formData === void 0 ? void 0 : _state$pet3$formData[0];
397
+ // if (_formData?.type === "multiple" || _formData?.type === "single") {
398
+ getFormData({
399
+ formData: _formData
400
+ }, _params);
401
+ // }
402
+ });
403
+
404
+ var searchChange = useMemoizedFn(function (keyword) {
405
+ var _params = _objectSpread(_objectSpread({}, params), {}, {
406
+ skip: 1,
407
+ keyword: keyword
408
+ });
409
+ _addCallback(_params);
410
+ });
411
+ var loadMore = useMemo(function () {
412
+ var _state$pet4, _state$pet4$formData, _state$pet4$formData$, _state$pet4$formData$2;
413
+ var show = ((_state$pet4 = state.pet) === null || _state$pet4 === void 0 ? void 0 : (_state$pet4$formData = _state$pet4.formData) === null || _state$pet4$formData === void 0 ? void 0 : (_state$pet4$formData$ = _state$pet4$formData[0]) === null || _state$pet4$formData$ === void 0 ? void 0 : (_state$pet4$formData$2 = _state$pet4$formData$.options) === null || _state$pet4$formData$2 === void 0 ? void 0 : _state$pet4$formData$2.length) < params.total || 0;
414
+ return show ? /*#__PURE__*/React.createElement("div", {
415
+ className: "",
387
416
  style: {
388
- margin: 0
417
+ textAlign: 'center',
418
+ padding: '16px 0'
389
419
  }
390
- }
391
- }));
420
+ }, /*#__PURE__*/React.createElement(Button, {
421
+ loading: loadLoading,
422
+ onClick: function onClick() {
423
+ var _params = _objectSpread(_objectSpread({}, params), {}, {
424
+ skip: params.skip + 1
425
+ });
426
+ _addCallback(_params);
427
+ }
428
+ }, locales.getText('pisell2.text.load-more'))) : null;
429
+ }, [loadLoading, params, (_state$pet5 = state.pet) === null || _state$pet5 === void 0 ? void 0 : (_state$pet5$formData = _state$pet5.formData) === null || _state$pet5$formData === void 0 ? void 0 : (_state$pet5$formData$ = _state$pet5$formData[0]) === null || _state$pet5$formData$ === void 0 ? void 0 : (_state$pet5$formData$2 = _state$pet5$formData$.options) === null || _state$pet5$formData$2 === void 0 ? void 0 : _state$pet5$formData$2.length]);
430
+ return useMemo(function () {
431
+ var _state$client10;
432
+ return /*#__PURE__*/React.createElement("div", {
433
+ className: "pisell-lowcode__booking-pet-wraps"
434
+ }, /*#__PURE__*/React.createElement(Skeleton, {
435
+ loading: valueLoading,
436
+ active: true,
437
+ round: true
438
+ }, /*#__PURE__*/React.createElement(FormsCom, {
439
+ hideTitle: hideTitle,
440
+ watch: {
441
+ value: state.pet.value
442
+ },
443
+ addCallback: function addCallback() {
444
+ _addCallback();
445
+ },
446
+ loading: valueLoading,
447
+ forms: state.pet.formData,
448
+ action: state.action,
449
+ modalOpen: state.modalOpen,
450
+ value: state.pet.value,
451
+ onChange: onValueChange,
452
+ client: (_state$client10 = state.client) === null || _state$client10 === void 0 ? void 0 : _state$client10.value,
453
+ customSelectProps: {
454
+ loading: loading,
455
+ handleViewItem: handleViewItem,
456
+ virtualListHeight: window.innerHeight - 213 - 57 - 16,
457
+ disabled: state.disabledEdit,
458
+ autoFocus: !state.isTerminal,
459
+ closeCallback: function closeCallback() {
460
+ searchChange('');
461
+ },
462
+ showDropDown: !state.disableEventBookingEdit,
463
+ searchChange: searchChange,
464
+ searchValue: params.search,
465
+ loadMore: loadMore,
466
+ filterItem: function filterItem() {
467
+ return true;
468
+ },
469
+ handleOpenModal: handleOpenModal,
470
+ previewItemTitleRender: previewItemTitleRender
471
+ },
472
+ optionRender: function optionRender(item) {
473
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
474
+ className: "pisell-lowcode__booking-pet-list-item-avatar",
475
+ src: item.cover,
476
+ icon: /*#__PURE__*/React.createElement(User01, {
477
+ className: "pisell-lowcode__booking-pet-list-item-avatar-icon"
478
+ })
479
+ }), /*#__PURE__*/React.createElement("div", {
480
+ className: "pisell-lowcode__booking-pet-list-item-info"
481
+ }, /*#__PURE__*/React.createElement("div", {
482
+ className: "pisell-lowcode__booking-pet-list-item-info-name"
483
+ }, item.main_field), /*#__PURE__*/React.createElement("div", {
484
+ className: "pisell-lowcode__booking-pet-list-item-info-desc"
485
+ }, /*#__PURE__*/React.createElement("div", {
486
+ className: ""
487
+ }, item.key_age))), /*#__PURE__*/React.createElement("div", {
488
+ className: "pisell-lowcode__booking-pet-list-item-actions"
489
+ }, /*#__PURE__*/React.createElement("div", {
490
+ className: "pisell-lowcode__booking-pet-list-item-actions-view",
491
+ onClick: function onClick(e) {
492
+ e.preventDefault();
493
+ e.stopPropagation();
494
+ handleViewItem(item);
495
+ }
496
+ }, locales.getText('pisell2.text.view')), /*#__PURE__*/React.createElement("div", {
497
+ className: "pisell-lowcode__booking-pet-list-item-actions-edit",
498
+ onClick: function onClick(e) {
499
+ e.preventDefault();
500
+ e.stopPropagation();
501
+ handleEditItem(item);
502
+ }
503
+ }, locales.getText('pisell2.text.edit'))));
504
+ },
505
+ addButtonProps: _objectSpread({
506
+ style: {
507
+ margin: 0
508
+ },
509
+ disabled: state.disableEventBookingEdit,
510
+ showDisabledMessage: !state.disableEventBookingEdit,
511
+ addCallback: function () {
512
+ var _addCallback2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
513
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
514
+ while (1) switch (_context3.prev = _context3.next) {
515
+ case 0:
516
+ _addCallback();
517
+ case 1:
518
+ case "end":
519
+ return _context3.stop();
520
+ }
521
+ }, _callee3);
522
+ }));
523
+ function addCallback() {
524
+ return _addCallback2.apply(this, arguments);
525
+ }
526
+ return addCallback;
527
+ }()
528
+ }, addButtonProps)
529
+ })));
530
+ }, [valueLoading, hideTitle, state.pet.value, state.pet.formData, state.action, state.modalOpen, state.pet.value, (_state$client11 = state.client) === null || _state$client11 === void 0 ? void 0 : _state$client11.value, loading, state.disabledEdit, state.isTerminal, state.disableEventBookingEdit, params.search, loadMore, addButtonProps, state.isBookingCreatePage]);
392
531
  };
393
532
  export default Pet;