@pisell/private-materials 3.2.20 → 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 +2 -2
@@ -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;
@@ -47,6 +47,7 @@ var Info = function Info(_, ref) {
47
47
  state = _useContext.state,
48
48
  dispatch = _useContext.dispatch;
49
49
  var resourcesRef = useRef(null);
50
+ var isChangeTotal = useRef(false);
50
51
 
51
52
  // 当前商品信息+ 表单信息
52
53
  var getCurrentCacheItem = function getCurrentCacheItem(_cacheItem) {
@@ -241,6 +242,10 @@ var Info = function Info(_, ref) {
241
242
  })) {
242
243
  _list.push(_item);
243
244
  } else {
245
+ // 手动改价时移除优惠券使用
246
+ if (isChangeTotal.current) {
247
+ delete _item.discount_list;
248
+ }
244
249
  _list = _list.map(function (d) {
245
250
  return d._id === _id ? _objectSpread(_objectSpread({}, _item), {}, {
246
251
  new: 0
@@ -466,6 +471,9 @@ var Info = function Info(_, ref) {
466
471
  init: setEditData
467
472
  };
468
473
  });
474
+ var handleTotalChange = function handleTotalChange(number) {
475
+ isChangeTotal.current = true;
476
+ };
469
477
  console.log('state.service.value', state.service.value);
470
478
  var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
471
479
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
@@ -535,6 +543,7 @@ var Info = function Info(_, ref) {
535
543
  min: 0,
536
544
  precision: 2,
537
545
  prefix: state.amountSymbol,
546
+ onChange: handleTotalChange,
538
547
  disabled: state.channelDisabledEdit,
539
548
  originValue: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || 0,
540
549
  placeholder: ((_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.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;
@@ -276,7 +276,13 @@ export default {
276
276
  'pisell2.text.change.pet.confirm': 'Keep (Add to open items)',
277
277
  'pisell2.text.change.pet.cancel': 'Discard (Clear items)',
278
278
  'pisell2.text.booking-list': "List",
279
- 'pisell2.text.edit-booking': "Edit"
279
+ 'pisell2.text.edit-booking': "Edit",
280
+ 'pisell2.text.goodpass': "GoodPass",
281
+ 'pisell2.text.goodpass.product-vouchers': "Product Vouchers",
282
+ 'pisell2.text.goodpass.view-more': "View More",
283
+ 'pisell2.text.goodpass.code': "Code",
284
+ 'pisell2.text.goodpass.enter-code': "Enter Code",
285
+ 'pisell2.text.goodpass.code-invalid': "Current code is invalid"
280
286
  },
281
287
  'zh-CN': {
282
288
  'pisell2.text.refunded-amount': '已退金额',
@@ -559,7 +565,13 @@ export default {
559
565
  'pisell2.text.change.pet.confirm': '保留(添加到未分配中)',
560
566
  'pisell2.text.change.pet.cancel': '不保留(清空商品)',
561
567
  'pisell2.text.booking-list': "列表",
562
- 'pisell2.text.edit-booking': "编辑"
568
+ 'pisell2.text.edit-booking': "编辑",
569
+ 'pisell2.text.goodpass': "商品券",
570
+ 'pisell2.text.goodpass.product-vouchers': "商品兑换券",
571
+ 'pisell2.text.goodpass.view-more': "查看更多",
572
+ 'pisell2.text.goodpass.code': "券码",
573
+ 'pisell2.text.goodpass.enter-code': "请输入券码",
574
+ 'pisell2.text.goodpass.code-invalid': "当前券码不可用"
563
575
  },
564
576
  'zh-HK': {
565
577
  'pisell2.text.refunded-amount': '已退金額',
@@ -842,6 +854,12 @@ export default {
842
854
  'pisell2.text.change.pet.confirm': '保留(添加到未分配中)',
843
855
  'pisell2.text.change.pet.cancel': '不保留(清空商品)',
844
856
  'pisell2.text.booking-list': "列表",
845
- 'pisell2.text.edit-booking': "編輯"
857
+ 'pisell2.text.edit-booking': "編輯",
858
+ 'pisell2.text.goodpass': "商品券",
859
+ 'pisell2.text.goodpass.product-vouchers': "商品兌換券",
860
+ 'pisell2.text.goodpass.view-more': "查看更多",
861
+ 'pisell2.text.goodpass.code': "券碼",
862
+ 'pisell2.text.goodpass.enter-code': "請輸入券碼",
863
+ 'pisell2.text.goodpass.code-invalid': "當前券碼不可用"
846
864
  }
847
865
  };
@@ -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;
@@ -158,6 +158,7 @@ var Payments = Provider(function (props) {
158
158
  header: locales.getText("pisell2.text.payments"),
159
159
  footer: state.bookingId && /*#__PURE__*/React.createElement(Footer, {
160
160
  state: state,
161
+ dispatch: dispatch,
161
162
  source: "payment"
162
163
  }),
163
164
  loading: loading && state.bookingId
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resources: () => JSX.Element;
3
4
  export default Resources;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const RelationProduct: ({ value, onChange, }: {
3
4
  value?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ScheduleItem } from '../../type';
2
3
  import './index.less';
3
4
  declare type AllSchedulesPropsType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DrawerProps } from "antd";
2
3
  import { ScheduleItem } from "../../type";
3
4
  import "./index.less";
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SchedulesConnect: () => JSX.Element;
2
3
  export default SchedulesConnect;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { shoppingCartProps } from './type';
2
3
  declare const shoppingCart: ({ onCard, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
3
4
  export default shoppingCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {