@pisell/private-materials 3.2.21 → 3.2.22

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 (249) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +6 -6
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/appointmentBooking/components/Cart/Item/index.js +7 -2
  12. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Date/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  17. package/es/components/appointmentBooking/components/Voucher/index.js +228 -0
  18. package/es/components/appointmentBooking/components/Voucher/index.less +26 -0
  19. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  20. package/es/components/appointmentBooking/hooks.js +4 -0
  21. package/es/components/appointmentBooking/index.d.ts +1 -0
  22. package/es/components/appointmentBooking/locales.d.ts +27 -0
  23. package/es/components/appointmentBooking/locales.js +30 -3
  24. package/es/components/appointmentBooking/utils.js +3 -1
  25. package/es/components/booking/addons/index.js +1 -0
  26. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  27. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  28. package/es/components/booking/components/footer/index.js +5 -1
  29. package/es/components/booking/components/footer/utils.js +18 -2
  30. package/es/components/booking/components/voucher/index.d.ts +3 -0
  31. package/es/components/booking/components/voucher/index.js +237 -0
  32. package/es/components/booking/components/voucher/index.less +88 -0
  33. package/es/components/booking/components/voucher/pisellGoodPassCard/index.d.ts +47 -0
  34. package/es/components/booking/components/voucher/pisellGoodPassCard/index.js +115 -0
  35. package/es/components/booking/components/voucher/pisellGoodPassCard/index.less +52 -0
  36. package/es/components/booking/deposit/index.d.ts +1 -0
  37. package/es/components/booking/forms/single/index.d.ts +1 -0
  38. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  39. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  40. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  41. package/es/components/booking/info/date/index.d.ts +1 -0
  42. package/es/components/booking/info/header/index.d.ts +1 -0
  43. package/es/components/booking/info/index.d.ts +1 -0
  44. package/es/components/booking/info/notes/index.d.ts +1 -0
  45. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  46. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  47. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  48. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  49. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  50. package/es/components/booking/info/service2/utils.d.ts +1 -1
  51. package/es/components/booking/info/utils.js +1 -1
  52. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  53. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  54. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  55. package/es/components/booking/info2/service/editService/index.js +9 -0
  56. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  57. package/es/components/booking/locales.d.ts +18 -0
  58. package/es/components/booking/locales.js +21 -3
  59. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  60. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  61. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  62. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  63. package/es/components/booking/payments/index.js +1 -0
  64. package/es/components/eftpos/form/index.d.ts +1 -0
  65. package/es/components/eftpos/hooks.d.ts +1 -0
  66. package/es/components/eftpos/index.d.ts +1 -0
  67. package/es/components/eftpos/pos.d.ts +1 -0
  68. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  69. package/es/components/eftposPay/amount.d.ts +1 -1
  70. package/es/components/eftposPay/app.d.ts +1 -0
  71. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  72. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  73. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  74. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  75. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  76. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  77. package/es/components/eftposPay/device.d.ts +1 -1
  78. package/es/components/eftposPay/hooks.d.ts +1 -1
  79. package/es/components/eftposPay/index.d.ts +1 -0
  80. package/es/components/eftposPay/pay.d.ts +1 -0
  81. package/es/components/eftposPay/store/index.d.ts +3 -3
  82. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
  87. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  89. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  91. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  93. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  94. package/es/components/eventBooking/index.d.ts +1 -0
  95. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  100. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  101. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  102. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  103. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  104. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  105. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  106. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  107. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  108. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  109. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  110. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  111. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  112. package/es/components/schedules/products/index.d.ts +1 -0
  113. package/es/components/schedules/resources/index.d.ts +1 -0
  114. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  115. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  116. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  117. package/es/components/schedules/schedules/index.d.ts +1 -0
  118. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  119. package/es/components/shoppingCart/index.d.ts +1 -0
  120. package/es/components/taxSelect/index.d.ts +1 -0
  121. package/es/components/wallet/Detail/index.js +20 -14
  122. package/es/components/wallet/Voucher/index.js +1 -0
  123. package/es/components/wallet/index.js +15 -1
  124. package/es/components/wallet/locales.d.ts +3 -0
  125. package/es/components/wallet/locales.js +3 -0
  126. package/es/components/wallet/model.d.ts +1 -1
  127. package/es/components/wallet/utils/formatUtils.js +1 -1
  128. package/es/components/walletList/index.js +5 -1
  129. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  130. package/lib/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  131. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  132. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  133. package/lib/components/appointmentBooking/components/Date/index.d.ts +1 -0
  134. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  135. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  136. package/lib/components/appointmentBooking/components/Voucher/index.js +209 -0
  137. package/lib/components/appointmentBooking/components/Voucher/index.less +26 -0
  138. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  139. package/lib/components/appointmentBooking/hooks.js +8 -2
  140. package/lib/components/appointmentBooking/index.d.ts +1 -0
  141. package/lib/components/appointmentBooking/locales.d.ts +27 -0
  142. package/lib/components/appointmentBooking/locales.js +30 -3
  143. package/lib/components/appointmentBooking/utils.js +3 -1
  144. package/lib/components/booking/addons/index.js +1 -1
  145. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  146. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  147. package/lib/components/booking/components/footer/index.js +2 -1
  148. package/lib/components/booking/components/footer/utils.js +18 -1
  149. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  150. package/lib/components/booking/components/voucher/index.js +211 -0
  151. package/lib/components/booking/components/voucher/index.less +88 -0
  152. package/lib/components/booking/components/voucher/pisellGoodPassCard/index.d.ts +47 -0
  153. package/lib/components/booking/components/voucher/pisellGoodPassCard/index.js +109 -0
  154. package/lib/components/booking/components/voucher/pisellGoodPassCard/index.less +52 -0
  155. package/lib/components/booking/deposit/index.d.ts +1 -0
  156. package/lib/components/booking/forms/single/index.d.ts +1 -0
  157. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  158. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  159. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  160. package/lib/components/booking/info/date/index.d.ts +1 -0
  161. package/lib/components/booking/info/header/index.d.ts +1 -0
  162. package/lib/components/booking/info/index.d.ts +1 -0
  163. package/lib/components/booking/info/notes/index.d.ts +1 -0
  164. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  165. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  166. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  167. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  168. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  169. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  170. package/lib/components/booking/info/utils.js +1 -1
  171. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  172. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  173. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  174. package/lib/components/booking/info2/service/editService/index.js +8 -0
  175. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  176. package/lib/components/booking/locales.d.ts +18 -0
  177. package/lib/components/booking/locales.js +21 -3
  178. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  179. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  180. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  181. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  182. package/lib/components/booking/payments/index.js +1 -1
  183. package/lib/components/eftpos/form/index.d.ts +1 -0
  184. package/lib/components/eftpos/hooks.d.ts +1 -0
  185. package/lib/components/eftpos/index.d.ts +1 -0
  186. package/lib/components/eftpos/pos.d.ts +1 -0
  187. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  188. package/lib/components/eftposPay/amount.d.ts +1 -1
  189. package/lib/components/eftposPay/app.d.ts +1 -0
  190. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  191. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  192. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  193. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  194. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  195. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  196. package/lib/components/eftposPay/device.d.ts +1 -1
  197. package/lib/components/eftposPay/hooks.d.ts +1 -1
  198. package/lib/components/eftposPay/index.d.ts +1 -0
  199. package/lib/components/eftposPay/pay.d.ts +1 -0
  200. package/lib/components/eftposPay/store/index.d.ts +3 -3
  201. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  202. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  203. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  204. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  205. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
  206. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  207. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  208. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  209. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  210. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  211. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  212. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  213. package/lib/components/eventBooking/index.d.ts +1 -0
  214. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  215. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  216. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  217. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  218. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  219. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  220. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  221. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  222. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  223. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  224. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  225. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  226. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  227. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  228. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  229. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  230. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  231. package/lib/components/schedules/products/index.d.ts +1 -0
  232. package/lib/components/schedules/resources/index.d.ts +1 -0
  233. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  234. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  235. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  236. package/lib/components/schedules/schedules/index.d.ts +1 -0
  237. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  238. package/lib/components/shoppingCart/index.d.ts +1 -0
  239. package/lib/components/taxSelect/index.d.ts +1 -0
  240. package/lib/components/wallet/Detail/index.js +6 -1
  241. package/lib/components/wallet/Voucher/index.js +1 -0
  242. package/lib/components/wallet/index.js +15 -1
  243. package/lib/components/wallet/locales.d.ts +3 -0
  244. package/lib/components/wallet/locales.js +3 -0
  245. package/lib/components/wallet/model.d.ts +1 -1
  246. package/lib/components/wallet/utils/formatUtils.js +1 -1
  247. package/lib/components/walletList/index.js +6 -2
  248. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  249. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
3
2
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -237,4 +237,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
237
237
  * @Author: WangHan
238
238
  * @Date: 2024-12-24 11:32
239
239
  */
240
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
240
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -99,7 +99,7 @@ var isBooking4Shop = (shopId, renderType) => {
99
99
  if (renderType === "eventBooking") {
100
100
  return false;
101
101
  }
102
- const booking4Shops = [9, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586];
102
+ const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586];
103
103
  return booking4Shops.includes(shopId);
104
104
  };
105
105
  function generateDateRange(start, end) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import '../../../info/service/addService/index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -59,6 +59,7 @@ var Info = (_, ref) => {
59
59
  const useDuration = import_antd.Form.useWatch("duration", form);
60
60
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
61
61
  const resourcesRef = (0, import_react.useRef)(null);
62
+ const isChangeTotal = (0, import_react.useRef)(false);
62
63
  const getCurrentCacheItem = (_cacheItem) => {
63
64
  let values = form.getFieldsValue();
64
65
  let _item = _cacheItem || state.service.cacheItem;
@@ -184,6 +185,9 @@ var Info = (_, ref) => {
184
185
  if (!_list.some((d) => d._id === _id)) {
185
186
  _list.push(_item);
186
187
  } else {
188
+ if (isChangeTotal.current) {
189
+ delete _item.discount_list;
190
+ }
187
191
  _list = _list.map((d) => d._id === _id ? { ..._item, new: 0 } : d);
188
192
  }
189
193
  (0, import_utils3.deleteCacheParams)();
@@ -353,6 +357,9 @@ var Info = (_, ref) => {
353
357
  init: setEditData
354
358
  };
355
359
  });
360
+ const handleTotalChange = (number) => {
361
+ isChangeTotal.current = true;
362
+ };
356
363
  console.log("state.service.value", state.service.value);
357
364
  const SelectTime = (_n = window.BaseMaterials) == null ? void 0 : _n.SelectTime;
358
365
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
@@ -403,6 +410,7 @@ var Info = (_, ref) => {
403
410
  min: 0,
404
411
  precision: 2,
405
412
  prefix: state.amountSymbol,
413
+ onChange: handleTotalChange,
406
414
  disabled: state.channelDisabledEdit,
407
415
  originValue: ((_x = (_w = state.service.cacheItem) == null ? void 0 : _w._extend) == null ? void 0 : _x.origin_total) || 0,
408
416
  placeholder: ((_z = (_y = state.service.cacheItem) == null ? void 0 : _y._extend) == null ? void 0 : _z.origin_total) || "0"
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -240,6 +240,12 @@ declare const _default: {
240
240
  'pisell2.text.change.pet.cancel': string;
241
241
  'pisell2.text.booking-list': string;
242
242
  'pisell2.text.edit-booking': string;
243
+ 'pisell2.text.goodpass': string;
244
+ 'pisell2.text.goodpass.product-vouchers': string;
245
+ 'pisell2.text.goodpass.view-more': string;
246
+ 'pisell2.text.goodpass.code': string;
247
+ 'pisell2.text.goodpass.enter-code': string;
248
+ 'pisell2.text.goodpass.code-invalid': string;
243
249
  };
244
250
  'zh-CN': {
245
251
  'pisell2.text.refunded-amount': string;
@@ -482,6 +488,12 @@ declare const _default: {
482
488
  'pisell2.text.change.pet.cancel': string;
483
489
  'pisell2.text.booking-list': string;
484
490
  'pisell2.text.edit-booking': string;
491
+ 'pisell2.text.goodpass': string;
492
+ 'pisell2.text.goodpass.product-vouchers': string;
493
+ 'pisell2.text.goodpass.view-more': string;
494
+ 'pisell2.text.goodpass.code': string;
495
+ 'pisell2.text.goodpass.enter-code': string;
496
+ 'pisell2.text.goodpass.code-invalid': string;
485
497
  };
486
498
  'zh-HK': {
487
499
  'pisell2.text.refunded-amount': string;
@@ -724,6 +736,12 @@ declare const _default: {
724
736
  'pisell2.text.change.pet.cancel': string;
725
737
  'pisell2.text.booking-list': string;
726
738
  'pisell2.text.edit-booking': string;
739
+ 'pisell2.text.goodpass': string;
740
+ 'pisell2.text.goodpass.product-vouchers': string;
741
+ 'pisell2.text.goodpass.view-more': string;
742
+ 'pisell2.text.goodpass.code': string;
743
+ 'pisell2.text.goodpass.enter-code': string;
744
+ 'pisell2.text.goodpass.code-invalid': string;
727
745
  };
728
746
  };
729
747
  export default _default;
@@ -295,7 +295,13 @@ var locales_default = {
295
295
  "pisell2.text.change.pet.confirm": "Keep (Add to open items)",
296
296
  "pisell2.text.change.pet.cancel": "Discard (Clear items)",
297
297
  "pisell2.text.booking-list": "List",
298
- "pisell2.text.edit-booking": "Edit"
298
+ "pisell2.text.edit-booking": "Edit",
299
+ "pisell2.text.goodpass": "GoodPass",
300
+ "pisell2.text.goodpass.product-vouchers": "Product Vouchers",
301
+ "pisell2.text.goodpass.view-more": "View More",
302
+ "pisell2.text.goodpass.code": "Code",
303
+ "pisell2.text.goodpass.enter-code": "Enter Code",
304
+ "pisell2.text.goodpass.code-invalid": "Current code is invalid"
299
305
  },
300
306
  "zh-CN": {
301
307
  "pisell2.text.refunded-amount": "已退金额",
@@ -563,7 +569,13 @@ var locales_default = {
563
569
  "pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
564
570
  "pisell2.text.change.pet.cancel": "不保留(清空商品)",
565
571
  "pisell2.text.booking-list": "列表",
566
- "pisell2.text.edit-booking": "编辑"
572
+ "pisell2.text.edit-booking": "编辑",
573
+ "pisell2.text.goodpass": "商品券",
574
+ "pisell2.text.goodpass.product-vouchers": "商品兑换券",
575
+ "pisell2.text.goodpass.view-more": "查看更多",
576
+ "pisell2.text.goodpass.code": "券码",
577
+ "pisell2.text.goodpass.enter-code": "请输入券码",
578
+ "pisell2.text.goodpass.code-invalid": "当前券码不可用"
567
579
  },
568
580
  "zh-HK": {
569
581
  "pisell2.text.refunded-amount": "已退金額",
@@ -831,6 +843,12 @@ var locales_default = {
831
843
  "pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
832
844
  "pisell2.text.change.pet.cancel": "不保留(清空商品)",
833
845
  "pisell2.text.booking-list": "列表",
834
- "pisell2.text.edit-booking": "編輯"
846
+ "pisell2.text.edit-booking": "編輯",
847
+ "pisell2.text.goodpass": "商品券",
848
+ "pisell2.text.goodpass.product-vouchers": "商品兌換券",
849
+ "pisell2.text.goodpass.view-more": "查看更多",
850
+ "pisell2.text.goodpass.code": "券碼",
851
+ "pisell2.text.goodpass.enter-code": "請輸入券碼",
852
+ "pisell2.text.goodpass.code-invalid": "當前券碼不可用"
835
853
  }
836
854
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface DurationProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -112,7 +112,7 @@ var Payments = (0, import_model.Provider)((props) => {
112
112
  import_tabPane.default,
113
113
  {
114
114
  header: import_utils.locales.getText("pisell2.text.payments"),
115
- footer: state.bookingId && /* @__PURE__ */ import_react.default.createElement(import_footer.default, { state, source: "payment" }),
115
+ footer: state.bookingId && /* @__PURE__ */ import_react.default.createElement(import_footer.default, { state, dispatch, source: "payment" }),
116
116
  loading: loading && state.bookingId
117
117
  },
118
118
  /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-customer-pay-title" }, import_utils.locales.getText("pisell2.text.customerpay")),
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos, DeviceStatus } from './const';
2
3
  import './index.less';
3
4
  interface PosProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DeviceProp } from "./const";
2
3
  interface PosProps {
3
4
  eftposName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.css';
2
3
  /**
3
4
  * @title: 自定义组件设置
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
3
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 断网(客户端)提示页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 取消签名确认页
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -303,12 +303,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EmptyHolderModal: (props: any) => JSX.Element;
4
3
  export default EmptyHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Information: () => JSX.Element;
3
+ export default Information;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OrderProductModal: (props: any) => JSX.Element;
4
3
  export default OrderProductModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
3
2
  export default RemoveOptionConfirmModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ThreedsLoading: ({ title }: any) => JSX.Element;
3
4
  export default ThreedsLoading;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const StripePayment: () => JSX.Element;
2
3
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ScheduleItem } from '../../../type';
3
4
  declare type Item = any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from 'antd';
2
3
  import { ScheduleItem } from '../../type';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
3
4
  export default AddSchedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Value = number[];
3
4
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetail: ({ form, currentProduct, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailDrawer: () => JSX.Element;
3
4
  export default ProductDetailDrawer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Products: () => JSX.Element;
3
4
  export default Products;