@pisell/private-materials 6.8.28 → 6.8.29

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 (287) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +8 -8
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/locales.d.ts +363 -0
  11. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
  12. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  13. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  14. package/es/components/booking/components/footer/amount.d.ts +37 -0
  15. package/es/components/booking/components/footer/index.js +43 -44
  16. package/es/components/booking/deposit/index.d.ts +1 -0
  17. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  19. package/es/components/booking/forms/single/index.d.ts +1 -0
  20. package/es/components/booking/info/client/index.d.ts +4 -0
  21. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  22. package/es/components/booking/info/hooks/useInfoHolder.js +0 -1
  23. package/es/components/booking/info/notes/index.d.ts +1 -0
  24. package/es/components/booking/info/service/Lists.d.ts +1 -0
  25. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  26. package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  27. package/es/components/booking/info/service/serve.d.ts +34 -0
  28. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  29. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  30. package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
  31. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  32. package/es/components/booking/info/service2/utils.d.ts +219 -0
  33. package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
  34. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  35. package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
  36. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  37. package/es/components/booking/info2/service/editNormalService/index.js +4 -4
  38. package/es/components/booking/info2/service/editService/index.js +3 -3
  39. package/es/components/booking/info2/service/editService/utils.js +6 -1
  40. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  41. package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
  42. package/es/components/booking/locales.d.ts +951 -0
  43. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  44. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  45. package/es/components/booking/utils/confirmHolderModal.js +3 -4
  46. package/es/components/booking/utils.d.ts +182 -0
  47. package/es/components/booking/utils.js +7 -1
  48. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  49. package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  50. package/es/components/checkout/types.d.ts +130 -0
  51. package/es/components/checkout/utils.d.ts +3 -0
  52. package/es/components/eftposPay/app.d.ts +10 -0
  53. package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  54. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  55. package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
  56. package/es/components/eftposPay/const.d.ts +190 -0
  57. package/es/components/eftposPay/device.d.ts +25 -0
  58. package/es/components/eftposPay/hooks.d.ts +35 -0
  59. package/es/components/eftposPay/index.d.ts +4 -0
  60. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  61. package/es/components/eftposPay/locales.d.ts +330 -0
  62. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  63. package/es/components/eftposPay/pay.d.ts +20 -0
  64. package/es/components/eftposPay/payo/config.d.ts +12 -0
  65. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  66. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  67. package/es/components/eftposPay/windcave/helper.d.ts +23 -0
  68. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  73. package/es/components/list/hooks/index.d.ts +5 -0
  74. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  75. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  76. package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
  77. package/es/components/pay/toB/locales.d.ts +54 -0
  78. package/es/components/pay/toB/store/context.d.ts +3 -0
  79. package/es/components/pay/toB/store/hooks.d.ts +15 -0
  80. package/es/components/pay/toB/store/index.d.ts +3 -0
  81. package/es/components/pay/toB/store/provider.d.ts +4 -0
  82. package/es/components/pay/toB/store/utils.d.ts +13 -0
  83. package/es/components/pay/toB/types/index.d.ts +72 -0
  84. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  86. package/es/components/pay/toC/model.d.ts +32 -0
  87. package/es/components/pay/toC/utils.d.ts +57 -0
  88. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  89. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  90. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  91. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  92. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  93. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  94. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  95. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  96. package/es/components/productExtension/index.d.ts +1 -0
  97. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  98. package/es/components/ruleSetting/locales.d.ts +48 -0
  99. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  100. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  101. package/es/components/shoppingCart/index.d.ts +1 -0
  102. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  103. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  104. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -2
  105. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
  106. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
  107. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  108. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  109. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  110. package/es/components/ticketBooking/utils/index.d.ts +101 -0
  111. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  112. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  113. package/es/hooks/useWindowSize.d.ts +5 -0
  114. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  115. package/es/plus/clinetSearch/locales.d.ts +105 -0
  116. package/es/plus/clinetSearch/types.d.ts +61 -0
  117. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  118. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  119. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  120. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  121. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  122. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  123. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  124. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  125. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  126. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  127. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  128. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  129. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  130. package/es/plus/webPosLogin/locales.d.ts +49 -0
  131. package/es/plus/webPosLogin/types.d.ts +286 -0
  132. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  133. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  134. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  135. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  136. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  137. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  138. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  139. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  140. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  141. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  142. package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  143. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  144. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  145. package/es/pro/skuDetailModal/index.js +17 -2
  146. package/es/pro/skuDetailModal/index.less +1 -1
  147. package/es/test/setup.d.ts +1 -0
  148. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  149. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  150. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
  151. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  152. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  153. package/lib/components/booking/components/footer/amount.d.ts +37 -0
  154. package/lib/components/booking/components/footer/index.js +9 -12
  155. package/lib/components/booking/deposit/index.d.ts +1 -0
  156. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  157. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  158. package/lib/components/booking/forms/single/index.d.ts +1 -0
  159. package/lib/components/booking/info/client/index.d.ts +4 -0
  160. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  161. package/lib/components/booking/info/hooks/useInfoHolder.js +0 -1
  162. package/lib/components/booking/info/notes/index.d.ts +1 -0
  163. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  164. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  165. package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  166. package/lib/components/booking/info/service/serve.d.ts +34 -0
  167. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  168. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  169. package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
  170. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  171. package/lib/components/booking/info/service2/utils.d.ts +219 -0
  172. package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
  173. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  174. package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
  175. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  176. package/lib/components/booking/info2/service/editNormalService/index.js +4 -4
  177. package/lib/components/booking/info2/service/editService/index.js +4 -4
  178. package/lib/components/booking/info2/service/editService/utils.js +4 -1
  179. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  180. package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
  181. package/lib/components/booking/locales.d.ts +951 -0
  182. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  183. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  184. package/lib/components/booking/utils/confirmHolderModal.js +0 -1
  185. package/lib/components/booking/utils.d.ts +182 -0
  186. package/lib/components/booking/utils.js +5 -1
  187. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  188. package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  189. package/lib/components/checkout/types.d.ts +130 -0
  190. package/lib/components/checkout/utils.d.ts +3 -0
  191. package/lib/components/eftposPay/app.d.ts +10 -0
  192. package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  193. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  194. package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
  195. package/lib/components/eftposPay/const.d.ts +190 -0
  196. package/lib/components/eftposPay/device.d.ts +25 -0
  197. package/lib/components/eftposPay/hooks.d.ts +35 -0
  198. package/lib/components/eftposPay/index.d.ts +4 -0
  199. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  200. package/lib/components/eftposPay/locales.d.ts +330 -0
  201. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  202. package/lib/components/eftposPay/pay.d.ts +20 -0
  203. package/lib/components/eftposPay/payo/config.d.ts +12 -0
  204. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  205. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  206. package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
  207. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  208. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  209. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  210. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  211. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  212. package/lib/components/list/hooks/index.d.ts +5 -0
  213. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  214. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  215. package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
  216. package/lib/components/pay/toB/locales.d.ts +54 -0
  217. package/lib/components/pay/toB/store/context.d.ts +3 -0
  218. package/lib/components/pay/toB/store/hooks.d.ts +15 -0
  219. package/lib/components/pay/toB/store/index.d.ts +3 -0
  220. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  221. package/lib/components/pay/toB/store/utils.d.ts +13 -0
  222. package/lib/components/pay/toB/types/index.d.ts +72 -0
  223. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  224. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  225. package/lib/components/pay/toC/model.d.ts +32 -0
  226. package/lib/components/pay/toC/utils.d.ts +57 -0
  227. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  228. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  229. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  230. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  231. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  232. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  233. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  234. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  235. package/lib/components/productExtension/index.d.ts +1 -0
  236. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  237. package/lib/components/ruleSetting/locales.d.ts +48 -0
  238. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  239. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  240. package/lib/components/shoppingCart/index.d.ts +1 -0
  241. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  242. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  243. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
  244. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
  245. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
  246. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  247. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  248. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  249. package/lib/components/ticketBooking/utils/index.d.ts +101 -0
  250. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  251. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  252. package/lib/hooks/useWindowSize.d.ts +5 -0
  253. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  254. package/lib/plus/clinetSearch/locales.d.ts +105 -0
  255. package/lib/plus/clinetSearch/types.d.ts +61 -0
  256. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  257. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  258. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  259. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  260. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  261. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  262. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  263. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  264. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  265. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  266. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  267. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  268. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  269. package/lib/plus/webPosLogin/locales.d.ts +49 -0
  270. package/lib/plus/webPosLogin/types.d.ts +286 -0
  271. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  272. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  273. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  274. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  275. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  276. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  277. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  278. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  279. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  280. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  281. package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  282. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  283. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  284. package/lib/pro/skuDetailModal/index.js +13 -2
  285. package/lib/pro/skuDetailModal/index.less +1 -1
  286. package/lib/test/setup.d.ts +1 -0
  287. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -0,0 +1,363 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.event.calendar.limit.unavailable': string;
4
+ 'pisell2.event.calendar.limit.sold.out': string;
5
+ 'pisell2.event.calendar.limit.call.to.book': string;
6
+ 'pisell2.event.calendar.limit.filling.up.fast': string;
7
+ 'pisell2.event.calendar.limit.lots.of.space': string;
8
+ 'pisell2.event.calendar.booking-closed': string;
9
+ 'pisell2.event.calendar.call-to-book': string;
10
+ 'pisell2.event.calendar.email-to-book': string;
11
+ 'pisell2.event.close.title': string;
12
+ 'pisell2.event.close.tip': string;
13
+ 'pisell2.event.close.continue': string;
14
+ 'pisell2.event.close.exit': string;
15
+ 'pisell2.appointment.step': (step: number) => string;
16
+ 'pisell2.event.select.category': (val: string) => string;
17
+ 'pisell2.event.select.campus': (val: string) => string;
18
+ 'pisell2.event.select.event': string;
19
+ 'pisell2.event.cart': string;
20
+ 'pisell2.event.total': string;
21
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
22
+ 'pisell2.event.continue': string;
23
+ 'pisell2.event.details': string;
24
+ 'pisell2.event.introduction': string;
25
+ 'pisell2.event.schedule': string;
26
+ 'pisell2.event.teacher': string;
27
+ 'pisell2.event.campus': string;
28
+ 'pisell2.event.resource': string;
29
+ 'pisell2.event.booking.options': string;
30
+ 'pisell2.event.add.to.cart': string;
31
+ 'pisell2.event.description': string;
32
+ 'pisell2.event.view.more': string;
33
+ 'pisell2.event.view.less': string;
34
+ 'pisell2.event.holder.modal.title': string;
35
+ 'pisell2.event.confirm': string;
36
+ 'pisell2.event.confirm.information': string;
37
+ 'pisell2.event.confirm.information.tip': string;
38
+ 'pisell2.event.confirm.information.other': string;
39
+ 'pisell2.event.add.others': string;
40
+ 'pisell2.event.checkout': string;
41
+ 'pisell2.event.edit.event': string;
42
+ 'pisell2.event.remove': string;
43
+ 'pisell2.event.option': string;
44
+ 'pisell2.event.order.items.error.title': string;
45
+ 'pisell2.event.order.items.error.tip': (val: number) => string;
46
+ 'pisell2.event.order.items.error.proceed': string;
47
+ 'pisell2.event.order.items.error.return': string;
48
+ 'pisell2.event.order.items.error.back': string;
49
+ 'pisell2.event.order.items.error.continue': string;
50
+ 'pisell2.event.order.items.error.all.tip': string;
51
+ 'pisell2.event.remove.title': string;
52
+ 'pisell2.event.remove.tip': string;
53
+ 'pisell2.event.remove.cancel': string;
54
+ 'pisell2.event.create': string;
55
+ 'pisell2.event.search': string;
56
+ 'pisell2.event.empty.service': string;
57
+ 'pisell2.event.title': (val: number) => string;
58
+ 'pisell2.event.create.form': string;
59
+ 'pisell2.event.empty.event': string;
60
+ 'pisell2.event.error.holder': string;
61
+ 'pisell2.event.price.from': string;
62
+ 'pisell2.event.empty.holder.title': string;
63
+ 'pisell2.event.empty.holder.tip': string;
64
+ 'pisell2.event.empty.holder.continue.tip': string;
65
+ 'pisell2.event.empty.holder.go.back': string;
66
+ 'pisell2.event.empty.holder.continue.anyway': string;
67
+ 'pisell2.event.event.full.title': string;
68
+ 'pisell2.event.event.full.tip': string;
69
+ 'pisell2.event.event.full.ok': string;
70
+ 'pisell2.event.capacity.limit.reached.title': string;
71
+ 'pisell2.event.capacity.limit.reached.tip': string;
72
+ 'pisell2.appointment.booking.empty.service': string;
73
+ 'pisell2.appointment.booking.empty.data': string;
74
+ 'pisell2.appointment.booking.empty.time': string;
75
+ 'pisell2.appointment.service.title': (val: number) => string;
76
+ 'pisell2.appointment.add.guest': string;
77
+ 'pisell2.appointment.edit.service': string;
78
+ 'pisell2.appointment.remove.guest': string;
79
+ 'pisell2.appointment.no.available.service': string;
80
+ 'pisell2.appointment.max.guest': string;
81
+ 'pisell2.appointment.no.available.time': string;
82
+ 'pisell2.appointment.monday': string;
83
+ 'pisell2.appointment.tuesday': string;
84
+ 'pisell2.appointment.wednesday': string;
85
+ 'pisell2.appointment.thursday': string;
86
+ 'pisell2.appointment.friday': string;
87
+ 'pisell2.appointment.saturday': string;
88
+ 'pisell2.appointment.sunday': string;
89
+ 'pisell2.appointment.any.professional': string;
90
+ 'pisell2.appointment.for.maximum.availability': string;
91
+ 'pisell2.appointment.deposit': string;
92
+ 'pisell2.appointment.deposit.agreed': string;
93
+ 'pisell2.appointment.deposit.agree.policy': string;
94
+ 'pisell2.appointment.deposit.and': string;
95
+ 'pisell2.appointment.deposit.amount.tip1': string;
96
+ 'pisell2.appointment.deposit.amount.tip2': string;
97
+ 'pisell2.appointment.deposit.close': string;
98
+ 'pisell2.appointment.tips': string;
99
+ 'pisell2.appointment.tips.content': string;
100
+ 'pisell2.appointment.fill-form': string;
101
+ 'pisell2.appointment.select.holder': (val: string) => string;
102
+ 'pisell2.appointment.select.time': string;
103
+ 'pisell2.appointment.unselect.time': string;
104
+ 'pisell2.appointment.unselect.date': string;
105
+ 'pisell2.appointment.unuse.date': string;
106
+ 'pisell2.appointment.add-guests': string;
107
+ 'pisell2.appointment.policy': string;
108
+ 'pisell2.appointment.policy.confirm': string;
109
+ 'pisell2.appointment.resource.tip': (val: string) => string;
110
+ 'pisell2.text.apply': string;
111
+ 'pisell2.text.goodpass': string;
112
+ 'pisell2.text.goodpass.product-vouchers': string;
113
+ 'pisell2.text.goodpass.view-more': string;
114
+ 'pisell2.text.goodpass.code': string;
115
+ 'pisell2.text.goodpass.enter-code': string;
116
+ 'pisell2.text.goodpass.code-invalid': string;
117
+ 'pisell2.text.goodpass.code-invalid-cart': string;
118
+ 'pisell2.text.goodpass.login': string;
119
+ 'pisell2.text.goodpass.login-tip': string;
120
+ 'pisell2.text.contact-info.title': string;
121
+ };
122
+ 'zh-CN': {
123
+ 'pisell2.event.calendar.limit.unavailable': string;
124
+ 'pisell2.event.calendar.limit.sold.out': string;
125
+ 'pisell2.event.calendar.limit.call.to.book': string;
126
+ 'pisell2.event.calendar.limit.filling.up.fast': string;
127
+ 'pisell2.event.calendar.limit.lots.of.space': string;
128
+ 'pisell2.event.calendar.booking-closed': string;
129
+ 'pisell2.event.calendar.call-to-book': string;
130
+ 'pisell2.event.calendar.email-to-book': string;
131
+ 'pisell2.event.close.title': string;
132
+ 'pisell2.event.close.tip': string;
133
+ 'pisell2.event.close.continue': string;
134
+ 'pisell2.event.close.exit': string;
135
+ 'pisell2.appointment.step': (step: number) => string;
136
+ 'pisell2.event.select.category': (val: string) => string;
137
+ 'pisell2.event.select.event': string;
138
+ 'pisell2.event.select.campus': (val: string) => string;
139
+ 'pisell2.event.cart': string;
140
+ 'pisell2.event.total': string;
141
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
142
+ 'pisell2.event.continue': string;
143
+ 'pisell2.event.details': string;
144
+ 'pisell2.event.introduction': string;
145
+ 'pisell2.event.schedule': string;
146
+ 'pisell2.event.teacher': string;
147
+ 'pisell2.event.campus': string;
148
+ 'pisell2.event.resource': string;
149
+ 'pisell2.event.booking.options': string;
150
+ 'pisell2.event.add.to.cart': string;
151
+ 'pisell2.event.description': string;
152
+ 'pisell2.event.view.more': string;
153
+ 'pisell2.event.view.less': string;
154
+ 'pisell2.event.holder.modal.title': string;
155
+ 'pisell2.event.confirm': string;
156
+ 'pisell2.event.confirm.information': string;
157
+ 'pisell2.event.confirm.information.tip': string;
158
+ 'pisell2.event.confirm.information.other': string;
159
+ 'pisell2.event.add.others': string;
160
+ 'pisell2.event.checkout': string;
161
+ 'pisell2.event.edit.event': string;
162
+ 'pisell2.event.remove': string;
163
+ 'pisell2.event.option': string;
164
+ 'pisell2.event.order.items.error.title': string;
165
+ 'pisell2.event.order.items.error.tip': (val: number) => string;
166
+ 'pisell2.event.order.items.error.proceed': string;
167
+ 'pisell2.event.order.items.error.return': string;
168
+ 'pisell2.event.order.items.error.back': string;
169
+ 'pisell2.event.order.items.error.continue': string;
170
+ 'pisell2.event.order.items.error.all.tip': string;
171
+ 'pisell2.event.remove.title': string;
172
+ 'pisell2.event.remove.tip': string;
173
+ 'pisell2.event.remove.cancel': string;
174
+ 'pisell2.event.create': string;
175
+ 'pisell2.event.search': string;
176
+ 'pisell2.event.empty.service': string;
177
+ 'pisell2.event.title': (val: number) => string;
178
+ 'pisell2.event.create.form': string;
179
+ 'pisell2.event.empty.event': string;
180
+ 'pisell2.event.error.holder': string;
181
+ 'pisell2.event.price.from': string;
182
+ 'pisell2.event.empty.holder.title': string;
183
+ 'pisell2.event.empty.holder.tip': string;
184
+ 'pisell2.event.empty.holder.continue.tip': string;
185
+ 'pisell2.event.empty.holder.go.back': string;
186
+ 'pisell2.event.empty.holder.continue.anyway': string;
187
+ 'pisell2.event.event.full.title': string;
188
+ 'pisell2.event.event.full.tip': string;
189
+ 'pisell2.event.event.full.ok': string;
190
+ 'pisell2.event.capacity.limit.reached.title': string;
191
+ 'pisell2.event.capacity.limit.reached.tip': string;
192
+ 'pisell2.appointment.booking.empty.service': string;
193
+ 'pisell2.appointment.booking.empty.data': string;
194
+ 'pisell2.appointment.booking.empty.time': string;
195
+ 'pisell2.appointment.service.title': (val: number) => string;
196
+ 'pisell2.appointment.add.guest': string;
197
+ 'pisell2.appointment.edit.service': string;
198
+ 'pisell2.appointment.remove.guest': string;
199
+ 'pisell2.appointment.no.available.service': string;
200
+ 'pisell2.appointment.max.guest': string;
201
+ 'pisell2.appointment.no.available.time': string;
202
+ 'pisell2.appointment.monday': string;
203
+ 'pisell2.appointment.tuesday': string;
204
+ 'pisell2.appointment.wednesday': string;
205
+ 'pisell2.appointment.thursday': string;
206
+ 'pisell2.appointment.friday': string;
207
+ 'pisell2.appointment.saturday': string;
208
+ 'pisell2.appointment.sunday': string;
209
+ 'pisell2.appointment.any.professional': string;
210
+ 'pisell2.appointment.for.maximum.availability': string;
211
+ 'pisell2.appointment.deposit': string;
212
+ 'pisell2.appointment.deposit.agreed': string;
213
+ 'pisell2.appointment.deposit.agree.policy': string;
214
+ 'pisell2.appointment.deposit.and': string;
215
+ 'pisell2.appointment.deposit.amount.tip1': string;
216
+ 'pisell2.appointment.deposit.amount.tip2': string;
217
+ 'pisell2.appointment.deposit.close': string;
218
+ 'pisell2.appointment.tips': string;
219
+ 'pisell2.appointment.tips.content': string;
220
+ 'pisell2.appointment.fill-form': string;
221
+ 'pisell2.appointment.select.holder': (val: string) => string;
222
+ 'pisell2.appointment.select.time': string;
223
+ 'pisell2.appointment.unselect.time': string;
224
+ 'pisell2.appointment.unselect.date': string;
225
+ 'pisell2.appointment.unuse.date': string;
226
+ 'pisell2.appointment.add-guests': string;
227
+ 'pisell2.appointment.policy': string;
228
+ 'pisell2.appointment.policy.confirm': string;
229
+ 'pisell2.appointment.resource.tip': (val: string) => string;
230
+ 'pisell2.text.apply': string;
231
+ 'pisell2.text.goodpass': string;
232
+ 'pisell2.text.goodpass.product-vouchers': string;
233
+ 'pisell2.text.goodpass.view-more': string;
234
+ 'pisell2.text.goodpass.code': string;
235
+ 'pisell2.text.goodpass.enter-code': string;
236
+ 'pisell2.text.goodpass.code-invalid': string;
237
+ 'pisell2.text.goodpass.code-invalid-cart': string;
238
+ 'pisell2.text.goodpass.login': string;
239
+ 'pisell2.text.goodpass.login-tip': string;
240
+ 'pisell2.text.contact-info.title': string;
241
+ };
242
+ 'zh-HK': {
243
+ 'pisell2.event.calendar.limit.unavailable': string;
244
+ 'pisell2.event.calendar.limit.sold.out': string;
245
+ 'pisell2.event.calendar.limit.call.to.book': string;
246
+ 'pisell2.event.calendar.limit.filling.up.fast': string;
247
+ 'pisell2.event.calendar.limit.lots.of.space': string;
248
+ 'pisell2.event.calendar.booking-closed': string;
249
+ 'pisell2.event.calendar.call-to-book': string;
250
+ 'pisell2.event.calendar.email-to-book': string;
251
+ 'pisell2.event.close.title': string;
252
+ 'pisell2.event.close.tip': string;
253
+ 'pisell2.event.close.continue': string;
254
+ 'pisell2.event.close.exit': string;
255
+ 'pisell2.appointment.step': (step: number) => string;
256
+ 'pisell2.event.select.category': (val: string) => string;
257
+ 'pisell2.event.select.event': string;
258
+ 'pisell2.event.select.campus': (val: string) => string;
259
+ 'pisell2.event.cart': string;
260
+ 'pisell2.event.total': string;
261
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
262
+ 'pisell2.event.continue': string;
263
+ 'pisell2.event.details': string;
264
+ 'pisell2.event.introduction': string;
265
+ 'pisell2.event.schedule': string;
266
+ 'pisell2.event.teacher': string;
267
+ 'pisell2.event.campus': string;
268
+ 'pisell2.event.resource': string;
269
+ 'pisell2.event.booking.options': string;
270
+ 'pisell2.event.add.to.cart': string;
271
+ 'pisell2.event.description': string;
272
+ 'pisell2.event.view.more': string;
273
+ 'pisell2.event.view.less': string;
274
+ 'pisell2.event.holder.modal.title': string;
275
+ 'pisell2.event.confirm': string;
276
+ 'pisell2.event.confirm.information': string;
277
+ 'pisell2.event.confirm.information.tip': string;
278
+ 'pisell2.event.confirm.information.other': string;
279
+ 'pisell2.event.add.others': string;
280
+ 'pisell2.event.checkout': string;
281
+ 'pisell2.event.edit.event': string;
282
+ 'pisell2.event.remove': string;
283
+ 'pisell2.event.option': string;
284
+ 'pisell2.event.order.items.error.title': string;
285
+ 'pisell2.event.order.items.error.tip': (val: number) => string;
286
+ 'pisell2.event.order.items.error.proceed': string;
287
+ 'pisell2.event.order.items.error.return': string;
288
+ 'pisell2.event.order.items.error.back': string;
289
+ 'pisell2.event.order.items.error.continue': string;
290
+ 'pisell2.event.order.items.error.all.tip': string;
291
+ 'pisell2.event.remove.title': string;
292
+ 'pisell2.event.remove.tip': string;
293
+ 'pisell2.event.remove.cancel': string;
294
+ 'pisell2.event.create': string;
295
+ 'pisell2.event.search': string;
296
+ 'pisell2.event.empty.service': string;
297
+ 'pisell2.event.title': (val: number) => string;
298
+ 'pisell2.event.create.form': string;
299
+ 'pisell2.event.empty.event': string;
300
+ 'pisell2.event.error.holder': string;
301
+ 'pisell2.event.price.from': string;
302
+ 'pisell2.event.empty.holder.title': string;
303
+ 'pisell2.event.empty.holder.tip': string;
304
+ 'pisell2.event.empty.holder.continue.tip': string;
305
+ 'pisell2.event.empty.holder.go.back': string;
306
+ 'pisell2.event.empty.holder.continue.anyway': string;
307
+ 'pisell2.event.event.full.title': string;
308
+ 'pisell2.event.event.full.tip': string;
309
+ 'pisell2.event.event.full.ok': string;
310
+ 'pisell2.event.capacity.limit.reached.title': string;
311
+ 'pisell2.event.capacity.limit.reached.tip': string;
312
+ 'pisell2.appointment.booking.empty.service': string;
313
+ 'pisell2.appointment.booking.empty.data': string;
314
+ 'pisell2.appointment.booking.empty.time': string;
315
+ 'pisell2.appointment.service.title': (val: number) => string;
316
+ 'pisell2.appointment.add.guest': string;
317
+ 'pisell2.appointment.edit.service': string;
318
+ 'pisell2.appointment.remove.guest': string;
319
+ 'pisell2.appointment.no.available.service': string;
320
+ 'pisell2.appointment.max.guest': string;
321
+ 'pisell2.appointment.no.available.time': string;
322
+ 'pisell2.appointment.monday': string;
323
+ 'pisell2.appointment.tuesday': string;
324
+ 'pisell2.appointment.wednesday': string;
325
+ 'pisell2.appointment.thursday': string;
326
+ 'pisell2.appointment.friday': string;
327
+ 'pisell2.appointment.saturday': string;
328
+ 'pisell2.appointment.sunday': string;
329
+ 'pisell2.appointment.any.professional': string;
330
+ 'pisell2.appointment.for.maximum.availability': string;
331
+ 'pisell2.appointment.deposit': string;
332
+ 'pisell2.appointment.deposit.agreed': string;
333
+ 'pisell2.appointment.deposit.agree.policy': string;
334
+ 'pisell2.appointment.deposit.and': string;
335
+ 'pisell2.appointment.deposit.amount.tip1': string;
336
+ 'pisell2.appointment.deposit.amount.tip2': string;
337
+ 'pisell2.appointment.deposit.close': string;
338
+ 'pisell2.appointment.tips': string;
339
+ 'pisell2.appointment.tips.content': string;
340
+ 'pisell2.appointment.fill-form': string;
341
+ 'pisell2.appointment.select.holder': (val: string) => string;
342
+ 'pisell2.appointment.select.time': string;
343
+ 'pisell2.appointment.unselect.time': string;
344
+ 'pisell2.appointment.unselect.date': string;
345
+ 'pisell2.appointment.unuse.date': string;
346
+ 'pisell2.appointment.add-guests': string;
347
+ 'pisell2.appointment.policy': string;
348
+ 'pisell2.appointment.policy.confirm': string;
349
+ 'pisell2.appointment.resource.tip': (val: string) => string;
350
+ 'pisell2.text.apply': string;
351
+ 'pisell2.text.goodpass': string;
352
+ 'pisell2.text.goodpass.product-vouchers': string;
353
+ 'pisell2.text.goodpass.view-more': string;
354
+ 'pisell2.text.goodpass.code': string;
355
+ 'pisell2.text.goodpass.enter-code': string;
356
+ 'pisell2.text.goodpass.code-invalid': string;
357
+ 'pisell2.text.goodpass.code-invalid-cart': string;
358
+ 'pisell2.text.goodpass.login': string;
359
+ 'pisell2.text.goodpass.login-tip': string;
360
+ 'pisell2.text.contact-info.title': string;
361
+ };
362
+ };
363
+ export default _default;
@@ -49,7 +49,6 @@ var SaaSManagermentAuth = function SaaSManagermentAuth(_ref) {
49
49
  // 所有可用的Tab
50
50
  var allTabs = ['pageSetting'];
51
51
  var saveData = function saveData(data) {
52
- debugger;
53
52
  request.post("/api/tenant_channel:update?filter=%7B%22channel_code%22%3A%22".concat(channel, "%22%7D"), _objectSpread(_objectSpread({}, channelData), {}, {
54
53
  metadata: _objectSpread(_objectSpread({}, channelData === null || channelData === void 0 ? void 0 : channelData.metadata), {}, {
55
54
  register_login: data
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -0,0 +1,37 @@
1
+ export declare const getRelationDetailsTotal: (relation_details: any) => number;
2
+ export declare const getIsPriceIncludeTax: (state: any) => any;
3
+ /**
4
+ * 总金额
5
+ * @param state
6
+ * @param options isEdit: 预约信息是否发生变动
7
+ * @returns
8
+ */
9
+ export declare const getSumTotal: (state: any, options: {
10
+ [key: string]: any;
11
+ isEdit: boolean;
12
+ ScheduleModule: any;
13
+ }) => {
14
+ productAmount: number;
15
+ duration: string;
16
+ tax: number;
17
+ taxInfo: {
18
+ title: any;
19
+ rate: any;
20
+ is_price_include_tax: any;
21
+ };
22
+ shopDiscount: number;
23
+ surcharge: any;
24
+ otherAmount: any;
25
+ sumTotalAmount: number;
26
+ paidAmount: any;
27
+ notPaidAmount: number;
28
+ paySurchargeFee: number;
29
+ expectAmount: number;
30
+ actualPaidAmount: any;
31
+ orderPaidAmount: any;
32
+ totalRefundAmount: number;
33
+ dueAmount: number;
34
+ roundingAmount: number;
35
+ originExpectAmount: number;
36
+ originExpectAmountWithoutDiscount: number;
37
+ };
@@ -881,24 +881,23 @@ var Footer = function Footer(props) {
881
881
  }
882
882
  return _context6.abrupt("return");
883
883
  case 7:
884
- debugger;
885
884
  hasUnspecifiedHolderProduct = (_state$service$value2 = state.service.value) === null || _state$service$value2 === void 0 ? void 0 : _state$service$value2.some(function (item) {
886
885
  var _item$_extend, _item$_extend2;
887
886
  return (!((_item$_extend = item._extend) !== null && _item$_extend !== void 0 && _item$_extend.holder_id) || ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 || (_item$_extend2 = _item$_extend2.holder_id) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.length) === 0) && !isNormalProductByDurationSchedule(item);
888
887
  });
889
888
  if (!(!isWalkIn((_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id) && getIsSubjectRequire(state) && hasUnspecifiedHolderProduct)) {
890
- _context6.next = 12;
889
+ _context6.next = 11;
891
890
  break;
892
891
  }
893
- _context6.next = 12;
892
+ _context6.next = 11;
894
893
  return showConfirmHolderModal(state, dispatch);
895
- case 12:
894
+ case 11:
896
895
  if (!(isBooking4Shop && getIsSubjectRequire(state) && checkHolderIsError(state))) {
897
- _context6.next = 14;
896
+ _context6.next = 13;
898
897
  break;
899
898
  }
900
899
  return _context6.abrupt("return");
901
- case 14:
900
+ case 13:
902
901
  // 区分loading, 是点击的checkout 还是save
903
902
  _setLoading = type === 'checkout' ? setCheckoutLoading : setLoading;
904
903
  _setLoading(true);
@@ -907,34 +906,34 @@ var Footer = function Footer(props) {
907
906
  createApi = state.renderType === 'eventBooking' ? createEventBooking : createBooking;
908
907
  saveOtherValue = {};
909
908
  if (!(type === 'save')) {
910
- _context6.next = 27;
909
+ _context6.next = 26;
911
910
  break;
912
911
  }
913
- _context6.next = 23;
912
+ _context6.next = 22;
914
913
  return state === null || state === void 0 || (_state$onSave = state.onSave) === null || _state$onSave === void 0 ? void 0 : _state$onSave.call(state, state.client);
915
- case 23:
914
+ case 22:
916
915
  _context6.t0 = _context6.sent;
917
916
  if (_context6.t0) {
918
- _context6.next = 26;
917
+ _context6.next = 25;
919
918
  break;
920
919
  }
921
920
  _context6.t0 = {};
922
- case 26:
921
+ case 25:
923
922
  saveOtherValue = _context6.t0;
924
- case 27:
925
- _context6.prev = 27;
923
+ case 26:
924
+ _context6.prev = 26;
926
925
  callbackData = null; // 格式化提交的参数
927
926
  values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // checkout 2.0 补充商品总税费字段
928
927
  values.product_tax_fee = total.tax || 0;
929
928
  if (!noSubmit) {
930
- _context6.next = 33;
929
+ _context6.next = 32;
931
930
  break;
932
931
  }
933
932
  return _context6.abrupt("return", values);
934
- case 33:
933
+ case 32:
935
934
  checkout = pisellos.getModule('checkout'); // 如果有 orderid,则应该走更新逻辑
936
935
  if (!editOrderId) {
937
- _context6.next = 43;
936
+ _context6.next = 42;
938
937
  break;
939
938
  }
940
939
  subtotal_info = {
@@ -943,7 +942,7 @@ var Footer = function Footer(props) {
943
942
  total: cloneDeep(total),
944
943
  showDetail: showDetail
945
944
  };
946
- _context6.next = 38;
945
+ _context6.next = 37;
947
946
  return checkout.updateLocalOrderAsync({
948
947
  orderId: editOrderId,
949
948
  orderData: values,
@@ -951,10 +950,10 @@ var Footer = function Footer(props) {
951
950
  autoPayment: true,
952
951
  totalInfo: subtotal_info
953
952
  });
954
- case 38:
955
- _context6.next = 40;
953
+ case 37:
954
+ _context6.next = 39;
956
955
  return checkout.manualSyncOrderAsync();
957
- case 40:
956
+ case 39:
958
957
  res = _context6.sent;
959
958
  if (res.success) {
960
959
  // 回调关闭弹窗
@@ -962,7 +961,7 @@ var Footer = function Footer(props) {
962
961
  _setLoading(false);
963
962
  }
964
963
  return _context6.abrupt("return");
965
- case 43:
964
+ case 42:
966
965
  // 如果是保存,检查是否需要支付定金
967
966
  if (type === 'save') {
968
967
  isNeedDeposit = checkout.checkIsNeedDepositAsync(values.bookings, values.relation_products);
@@ -1026,43 +1025,43 @@ var Footer = function Footer(props) {
1026
1025
 
1027
1026
  // 如果有addons改动, 则先保存
1028
1027
  if (!addonsEdit) {
1029
- _context6.next = 49;
1028
+ _context6.next = 48;
1030
1029
  break;
1031
1030
  }
1032
- _context6.next = 49;
1031
+ _context6.next = 48;
1033
1032
  return handleSaveAddons();
1034
- case 49:
1033
+ case 48:
1035
1034
  if (!infoEdit) {
1036
- _context6.next = 54;
1035
+ _context6.next = 53;
1037
1036
  break;
1038
1037
  }
1039
- _context6.next = 52;
1038
+ _context6.next = 51;
1040
1039
  return api(values, state.bookingId || editOrderId);
1041
- case 52:
1040
+ case 51:
1042
1041
  callbackData = _context6.sent;
1043
1042
  if (messageShow) {
1044
1043
  message.success(locales.getText(state.bookingId ? 'pisell2.text.appointment-updated' : 'pisell2.text.created-successfully'));
1045
1044
  }
1046
- case 54:
1045
+ case 53:
1047
1046
  // 回调关闭弹窗
1048
1047
  state === null || state === void 0 || state.callback(callbackData, type);
1049
1048
  _setLoading(false);
1050
1049
 
1051
1050
  // return数据 checkout时需要
1052
1051
  return _context6.abrupt("return", callbackData || values);
1053
- case 59:
1054
- _context6.prev = 59;
1055
- _context6.t1 = _context6["catch"](27);
1052
+ case 58:
1053
+ _context6.prev = 58;
1054
+ _context6.t1 = _context6["catch"](26);
1056
1055
  console.log(_context6.t1);
1057
1056
  if ((_context6.t1 === null || _context6.t1 === void 0 ? void 0 : _context6.t1.code) === 70101) {
1058
1057
  message.error(_context6.t1 === null || _context6.t1 === void 0 ? void 0 : _context6.t1.message);
1059
1058
  }
1060
1059
  _setLoading(false);
1061
- case 64:
1060
+ case 63:
1062
1061
  case "end":
1063
1062
  return _context6.stop();
1064
1063
  }
1065
- }, _callee6, null, [[27, 59]]);
1064
+ }, _callee6, null, [[26, 58]]);
1066
1065
  }));
1067
1066
  return function handleSave(_x5) {
1068
1067
  return _ref7.apply(this, arguments);
@@ -1786,8 +1785,7 @@ var Footer = function Footer(props) {
1786
1785
  clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
1787
1786
  // 清空所有内容并重置购物车
1788
1787
  var handleClearAllAndReset = function handleClearAllAndReset() {
1789
- var _shopDiscount$clear, _window9;
1790
- debugger;
1788
+ var _shopDiscount$clear;
1791
1789
  // 清空附加服务
1792
1790
  dispatch({
1793
1791
  type: 'setAddons',
@@ -1804,7 +1802,6 @@ var Footer = function Footer(props) {
1804
1802
  // edit: true, // 添加 edit: true 标识
1805
1803
  // },
1806
1804
  // });
1807
- selectCustomer(null);
1808
1805
 
1809
1806
  // 重置时间为当前时间(使用dayjs默认值)
1810
1807
  dispatch({
@@ -1837,16 +1834,18 @@ var Footer = function Footer(props) {
1837
1834
  // 清空商品券
1838
1835
  shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
1839
1836
  setEditOrderId(0);
1840
- (_window9 = window) === null || _window9 === void 0 || (_window9 = _window9.shopApi) === null || _window9 === void 0 || (_window9 = _window9.bookingTicket) === null || _window9 === void 0 || _window9.clearAllCart();
1837
+
1838
+ // (window as any)?.shopApi?.bookingTicket?.clearAllCart();
1841
1839
  // 清空服务项目
1840
+ dispatch({
1841
+ type: 'setService',
1842
+ payload: {
1843
+ value: []
1844
+ }
1845
+ });
1842
1846
  setTimeout(function () {
1843
- dispatch({
1844
- type: 'setService',
1845
- payload: {
1846
- value: []
1847
- }
1848
- });
1849
- }, 200);
1847
+ selectCustomer(null);
1848
+ }, 100);
1850
1849
  clearAllScanListenersTaskQueue();
1851
1850
  };
1852
1851
 
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -0,0 +1,12 @@
1
+ export interface ResourceItem {
2
+ [key: string]: any;
3
+ }
4
+ /**
5
+ * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
6
+ * @description:
7
+ * @param {object} resource
8
+ * @return {*}
9
+ * @Author: jinglin.tan
10
+ */
11
+ export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
12
+ export declare const formatValues: (data: any, values: any) => any;
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;