@pisell/private-materials 6.4.32 โ†’ 6.4.33

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 (218) 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 +5 -5
  7. package/build/lowcode/render/default/view.js +6 -6
  8. package/build/lowcode/view.js +6 -6
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  12. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  14. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  15. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  16. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  17. package/es/components/booking/components/footer/index.js +23 -7
  18. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  19. package/es/components/booking/forms/single/index.d.ts +1 -0
  20. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  21. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  22. package/es/components/booking/info/date/index.d.ts +1 -0
  23. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  24. package/es/components/booking/info/header/index.d.ts +1 -0
  25. package/es/components/booking/info/service/Lists.d.ts +0 -1
  26. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  27. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  28. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  29. package/es/components/booking/info/service2/utils.d.ts +1 -1
  30. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  31. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  32. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  33. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  34. package/es/components/checkout/PaymentModal.js +23 -33
  35. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -1
  36. package/es/components/checkout/components/PaymentResultToast/index.js +1 -1
  37. package/es/components/checkout/components/ScrollableList/index.js +0 -1
  38. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  39. package/es/components/eftpos/index.d.ts +1 -0
  40. package/es/components/eftpos/pos.d.ts +1 -0
  41. package/es/components/eftposPay/amount.d.ts +1 -1
  42. package/es/components/eftposPay/app.d.ts +0 -1
  43. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  44. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  45. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  46. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  47. package/es/components/eftposPay/device.d.ts +1 -1
  48. package/es/components/eftposPay/hooks.d.ts +2 -2
  49. package/es/components/eftposPay/payo/config.d.ts +1 -0
  50. package/es/components/eftposPay/store/index.d.ts +6 -6
  51. package/es/components/eftposPay/tip.d.ts +1 -0
  52. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  53. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  54. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  55. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  56. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  62. package/es/components/login/index.d.ts +1 -0
  63. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  64. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  65. package/es/components/pay/toB/components/MX51/index.js +14 -44
  66. package/es/components/pay/toB/types/index.d.ts +0 -12
  67. package/es/components/pay/toB/types/index.js +0 -4
  68. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  70. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  71. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  72. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  73. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  74. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  75. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  76. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  77. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  78. package/es/components/schedules/calendar/index.d.ts +1 -0
  79. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  80. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  81. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  82. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  83. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  84. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  85. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  86. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  87. package/es/components/schedules/products/list/index.d.ts +1 -0
  88. package/es/components/schedules/resources/index.d.ts +1 -0
  89. package/es/components/schedules/resources/list/index.d.ts +1 -0
  90. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  91. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  92. package/es/components/schedules/schedules/index.d.ts +1 -0
  93. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  94. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  95. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  96. package/es/components/taxSelect/index.d.ts +1 -0
  97. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  98. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  99. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  100. package/es/hooks/usePaymentLogger.d.ts +1 -0
  101. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  102. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  103. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  104. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  105. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  106. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  107. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  108. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  109. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  110. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  111. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  112. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  113. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  114. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  115. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  116. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  117. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  118. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  119. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  120. package/lib/components/booking/components/footer/index.js +8 -7
  121. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  122. package/lib/components/booking/forms/single/index.d.ts +1 -0
  123. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  124. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  125. package/lib/components/booking/info/date/index.d.ts +1 -0
  126. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  127. package/lib/components/booking/info/header/index.d.ts +1 -0
  128. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  129. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  130. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  131. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  132. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  133. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  134. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  135. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  136. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  137. package/lib/components/checkout/PaymentModal.js +7 -17
  138. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -1
  139. package/lib/components/checkout/components/PaymentResultToast/index.js +1 -1
  140. package/lib/components/checkout/components/ScrollableList/index.js +0 -1
  141. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  142. package/lib/components/eftpos/index.d.ts +1 -0
  143. package/lib/components/eftpos/pos.d.ts +1 -0
  144. package/lib/components/eftposPay/amount.d.ts +1 -1
  145. package/lib/components/eftposPay/app.d.ts +0 -1
  146. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  147. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  148. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  149. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  150. package/lib/components/eftposPay/device.d.ts +1 -1
  151. package/lib/components/eftposPay/hooks.d.ts +2 -2
  152. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  153. package/lib/components/eftposPay/store/index.d.ts +6 -6
  154. package/lib/components/eftposPay/tip.d.ts +1 -0
  155. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  156. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  157. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  158. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  159. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  160. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  161. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  162. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  163. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  164. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  165. package/lib/components/login/index.d.ts +1 -0
  166. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  167. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  168. package/lib/components/pay/toB/components/MX51/index.js +12 -37
  169. package/lib/components/pay/toB/types/index.d.ts +0 -12
  170. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  171. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  172. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  173. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  174. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  175. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  176. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  177. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  178. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  179. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  180. package/lib/components/schedules/calendar/index.d.ts +1 -0
  181. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  182. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  183. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  184. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  185. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  186. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  187. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  188. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  189. package/lib/components/schedules/products/list/index.d.ts +1 -0
  190. package/lib/components/schedules/resources/index.d.ts +1 -0
  191. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  192. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  193. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  194. package/lib/components/schedules/schedules/index.d.ts +1 -0
  195. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  196. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  197. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  198. package/lib/components/taxSelect/index.d.ts +1 -0
  199. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  200. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  201. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  202. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  203. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  204. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  205. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  206. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  207. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  208. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  209. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  210. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  211. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  212. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  213. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  214. package/package.json +1 -1
  215. package/es/hooks/printer.d.ts +0 -4
  216. package/es/hooks/printer.js +0 -35
  217. package/lib/hooks/printer.d.ts +0 -4
  218. package/lib/hooks/printer.js +0 -60
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface LoginProps {
3
4
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayMethod, PayMethodGroup } from '../../types';
3
2
  import './index.less';
4
3
  declare const ToBPayCardGroup: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ToBPayTitle: (props: {
2
3
  amount: number | string;
3
4
  }) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { forwardRef, useImperativeHandle } from 'react';
2
+ import { webPayment } from '@pisell/utils';
2
3
  import useLogger from "../../../../../hooks/useLogger";
3
- import useEngineContext from "../../../../../hooks/useEngineContext";
4
4
  var getUuid = function getUuid() {
5
5
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxx'.replace(/[xy]/g, function (c) {
6
6
  var r = Math.random() * 16 | 0;
@@ -9,10 +9,7 @@ var getUuid = function getUuid() {
9
9
  });
10
10
  };
11
11
  var MX51 = function MX51(props, ref) {
12
- var _context$appHelper;
13
12
  var logger = useLogger();
14
- var context = useEngineContext();
15
- var action = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.action;
16
13
  var onOpen = function onOpen(_ref) {
17
14
  var data = _ref.data,
18
15
  payCallback = _ref.payCallback;
@@ -36,47 +33,20 @@ var MX51 = function MX51(props, ref) {
36
33
  params: newData
37
34
  }
38
35
  });
39
-
40
- // ้€š่ฟ‡action่ฐƒ็”จmx51ๆ”ฏไป˜
41
- action({
42
- type: 'webpos.handleMX51Pay',
43
- data: newData,
44
- callback: function callback(res) {
45
- var isSame = false;
46
- if (res !== null && res !== void 0 && res.uniquePaymentNumber) {
47
- // jsbridge่ฐƒ็”จๅœบๆ™ฏ็ป“ๆžœ
48
- var _res = res;
49
- // ๅˆคๆ–ญๆ˜ฏๅฆๆ˜ฏๅŒไธ€ไธชๆ”ฏไป˜
50
- isSame = (_res === null || _res === void 0 ? void 0 : _res.uniquePaymentNumber) === uniquePaymentNumber;
51
- if (isSame) {
52
- payCallback === null || payCallback === void 0 || payCallback(_res);
53
- }
54
- } else {
55
- var _res2$data, _res2$data2;
56
- // ๅŽŸ็”Ÿ่ฐƒ็”จๅœบๆ™ฏ็ป“ๆžœ
57
- var _res2 = res;
58
- // ่ฝฌๆขไธบMX51PayResult็ฑปๅž‹๏ผŒไธŠๅฑ‚่ฐƒ็”จ้œ€่ฆ
59
- var newRes = {
60
- result: (_res2 === null || _res2 === void 0 ? void 0 : _res2.code) == '200' ? true : false,
61
- msg: _res2 === null || _res2 === void 0 ? void 0 : _res2.msg,
62
- amount: _res2 === null || _res2 === void 0 || (_res2$data = _res2.data) === null || _res2$data === void 0 ? void 0 : _res2$data.amount,
63
- surcharge: _res2 === null || _res2 === void 0 || (_res2$data2 = _res2.data) === null || _res2$data2 === void 0 ? void 0 : _res2$data2.surcharge,
64
- uniquePaymentNumber: _res2 === null || _res2 === void 0 ? void 0 : _res2.uuid
65
- };
66
- // ๅˆคๆ–ญๆ˜ฏๅฆๆ˜ฏๅŒไธ€ไธชๆ”ฏไป˜
67
- isSame = (_res2 === null || _res2 === void 0 ? void 0 : _res2.uuid) === uniquePaymentNumber;
68
- if (isSame) {
69
- payCallback === null || payCallback === void 0 || payCallback(newRes);
70
- }
36
+ // ้€š่ฟ‡jsbridge่ฐƒ็”จmx51ๆ”ฏไป˜
37
+ webPayment(newData, function (res) {
38
+ // ๅˆคๆ–ญๆ˜ฏๅฆๆ˜ฏๅŒไธ€ไธชๆ”ฏไป˜
39
+ var isSame = (res === null || res === void 0 ? void 0 : res.uniquePaymentNumber) === uniquePaymentNumber;
40
+ logger === null || logger === void 0 || logger.addLog({
41
+ type: 'info',
42
+ title: 'ToB_MX51_onOpen_callback',
43
+ metadata: {
44
+ msg: isSame ? 'uniquePaymentNumberไธ€่‡ด' : 'uniquePaymentNumberไธไธ€่‡ด',
45
+ res: res
71
46
  }
72
- logger === null || logger === void 0 || logger.addLog({
73
- type: 'info',
74
- title: 'ToB_MX51_onOpen_callback',
75
- metadata: {
76
- msg: isSame ? 'ไบคๆ˜“ๆตๆฐดๅทไธ€่‡ด' : 'ไบคๆ˜“ๆตๆฐดๅทไธไธ€่‡ด',
77
- res: res
78
- }
79
- });
47
+ });
48
+ if (isSame) {
49
+ payCallback === null || payCallback === void 0 || payCallback(res);
80
50
  }
81
51
  });
82
52
  };
@@ -58,15 +58,3 @@ export interface MX51PayResult {
58
58
  surcharge: number;
59
59
  uniquePaymentNumber: string;
60
60
  }
61
- /**
62
- * @title ๅŽŸ็”ŸMX51ๆ”ฏไป˜็ป“ๆžœ
63
- */
64
- export interface NativeMX51PayResult {
65
- code: string;
66
- msg?: string;
67
- data: {
68
- amount: number;
69
- surcharge: number;
70
- };
71
- uuid: string;
72
- }
@@ -11,8 +11,4 @@ export * from "./storeTypes";
11
11
  /**
12
12
  * @title: MX51ๆ”ฏไป˜็ป“ๆžœ
13
13
  */
14
-
15
- /**
16
- * @title ๅŽŸ็”ŸMX51ๆ”ฏไป˜็ป“ๆžœ
17
- */
18
14
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
3
4
  export default ThreedsLoading;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -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
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItemPreview;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Calendar: () => JSX.Element;
3
4
  export default Calendar;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ScheduleItem } from "../../type";
2
3
  import "./index.less";
3
4
  declare type ScheduleDetailListPropsType = {
@@ -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
  declare const ResourcesModule: ({ product }: {
2
3
  product: any;
3
4
  }) => JSX.Element;
@@ -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 ProductDetailDrawer: () => JSX.Element;
3
4
  export default ProductDetailDrawer;
@@ -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
  interface ProductListProps {
3
4
  loading: boolean;
@@ -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 type ResourcesListProps = {
3
4
  list: 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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface LogData {
2
3
  key: string;
3
4
  value: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from './types';
2
3
  import './index.less';
3
4
  declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRStepStatus } from '../types';
2
3
  import '../index.less';
3
4
  declare const VerifyError: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VerifyingEmailLink: (props: {
3
4
  onVerifyLink: () => Promise<void>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
3
2
  export * from './Sales';
4
3
  export default SalesModel;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: ็ฉบ็Šถๆ€
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -59,6 +59,7 @@ var import_materials = require("@pisell/materials");
59
59
  var import_useCustomer = require("../../../ticketBooking/hooks/pisellos/useCustomer");
60
60
  var import_ahooks = require("ahooks");
61
61
  var import_lodash = require("lodash");
62
+ var import_hooks = require("../../../appointmentBooking/hooks");
62
63
  var Footer = (props) => {
63
64
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
64
65
  const { state, buttons, dispatch, source } = props;
@@ -482,10 +483,10 @@ var Footer = (props) => {
482
483
  setPaymentCallback(() => (paymentResult) => {
483
484
  var _a2, _b2, _c2, _d2;
484
485
  console.log("Payment result:", paymentResult);
486
+ setIsPaymentModalOpen(false);
485
487
  if ((paymentResult == null ? void 0 : paymentResult.status) === "success") {
486
488
  console.log("Payment completed successfully");
487
489
  (_b2 = (_a2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a2.bookingTicket) == null ? void 0 : _b2.clearAllCart();
488
- setIsPaymentModalOpen(false);
489
490
  setPaymentModalData(null);
490
491
  setPaymentCallback(null);
491
492
  } else if ((paymentResult == null ? void 0 : paymentResult.status) === "cancelled") {
@@ -493,12 +494,10 @@ var Footer = (props) => {
493
494
  if (res == null ? void 0 : res.order_id) {
494
495
  (_d2 = (_c2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _c2.booking) == null ? void 0 : _d2.voidBooking(res.order_id);
495
496
  }
496
- setIsPaymentModalOpen(false);
497
497
  setPaymentModalData(null);
498
498
  setPaymentCallback(null);
499
499
  } else {
500
500
  console.log("Payment status:", paymentResult == null ? void 0 : paymentResult.status);
501
- setIsPaymentModalOpen(false);
502
501
  setPaymentModalData(null);
503
502
  setPaymentCallback(null);
504
503
  }
@@ -1195,10 +1194,10 @@ var Footer = (props) => {
1195
1194
  const { selectCustomer } = (0, import_useCustomer.useCustomer)({
1196
1195
  changeCustomerToGlobalState
1197
1196
  });
1197
+ const shopDiscount = (0, import_hooks.useShopDiscount)();
1198
1198
  const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
1199
1199
  const handleClearAllAndReset = () => {
1200
- var _a2, _b2;
1201
- (_b2 = (_a2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a2.bookingTicket) == null ? void 0 : _b2.clearAllCart();
1200
+ var _a2;
1202
1201
  clearAllScanListenersTaskQueue();
1203
1202
  dispatch({
1204
1203
  type: "setService",
@@ -1236,6 +1235,7 @@ var Footer = (props) => {
1236
1235
  orderNote: ""
1237
1236
  }
1238
1237
  });
1238
+ (_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
1239
1239
  };
1240
1240
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
1241
1241
  "span",
@@ -1325,12 +1325,13 @@ var Footer = (props) => {
1325
1325
  state,
1326
1326
  dispatch,
1327
1327
  onClose: (reset) => {
1328
- console.log("๐Ÿ”„ Footer: Closing PaymentModal");
1329
1328
  setIsPaymentModalOpen(false);
1330
1329
  setPaymentModalData(null);
1331
1330
  setPaymentCallback(null);
1332
1331
  if (reset) {
1333
- handleClearAllAndReset();
1332
+ setTimeout(() => {
1333
+ handleClearAllAndReset();
1334
+ }, 0);
1334
1335
  }
1335
1336
  }
1336
1337
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  modal: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: ่กจๅ•้€‰ๆ‹ฉๅ™จ
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => 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,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;