@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,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 "./index.less";
2
3
  export interface InfoProps {
3
4
  isEdit: boolean;
@@ -64,7 +64,6 @@ var import_lodash = require("lodash");
64
64
  var import_utils2 = require("./utils");
65
65
  var import_usePaymentLogger = __toESM(require("./hooks/usePaymentLogger"));
66
66
  var import_antd = require("antd");
67
- var import_printer = __toESM(require("../../hooks/printer"));
68
67
  var CheckoutHooks = {
69
68
  OnStateAmountChanged: "checkout:onStateAmountChanged",
70
69
  OnBalanceDueAmountChanged: "checkout:onBalanceDueAmountChanged",
@@ -118,7 +117,6 @@ var PaymentContent = (0, import_react.forwardRef)(
118
117
  const walletPassRef = (0, import_react.useRef)(null);
119
118
  const [paymentItems, setPaymentItems] = (0, import_react.useState)([]);
120
119
  const [walletPassData, setWalletPassData] = (0, import_react.useState)({});
121
- const { nativePrint } = (0, import_printer.default)();
122
120
  const isOrderFree = (0, import_react.useMemo)(() => {
123
121
  if (!customAmount) return false;
124
122
  const amount = parseFloat(customAmount);
@@ -301,10 +299,7 @@ var PaymentContent = (0, import_react.forwardRef)(
301
299
  }
302
300
  if (checkoutModule && isModalOpen) {
303
301
  checkoutModule.getPaymentMethodsAsync().then(async (paymentMethods2) => {
304
- const reorderedPaymentMethods = await (0, import_utils2.reorderPaymentMethodList)(
305
- paymentMethods2,
306
- interaction
307
- );
302
+ const reorderedPaymentMethods = await (0, import_utils2.reorderPaymentMethodList)(paymentMethods2, interaction);
308
303
  setPaymentMethods(reorderedPaymentMethods);
309
304
  const isShowCashPayment = paymentMethods2.some(
310
305
  (item) => item.code === "CASHMANUAL"
@@ -517,12 +512,11 @@ var PaymentContent = (0, import_react.forwardRef)(
517
512
  data: {
518
513
  order_id: responseData.order_id,
519
514
  machine_code_print_info: responseData == null ? void 0 : responseData.machine_code_print_info,
520
- small_ticket_data: (_b2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _b2.small_ticket_data,
521
- machine_code_print_info_v2: responseData == null ? void 0 : responseData.machine_code_print_info_v2
515
+ small_ticket_data: (_b2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _b2.small_ticket_data
522
516
  }
523
517
  };
524
518
  console.log("print_order_onOrderSynced_params>>>>", params);
525
- nativePrint(params, (res) => {
519
+ (0, import_utils.webPrint)(params, (res) => {
526
520
  console.log("print_order_onOrderSynced_res>>>>", res);
527
521
  });
528
522
  } catch (error) {
@@ -691,7 +685,7 @@ var PaymentContent = (0, import_react.forwardRef)(
691
685
  data: { order_id: data.orderId }
692
686
  };
693
687
  try {
694
- nativePrint(params, (res) => {
688
+ (0, import_utils.webPrint)(params, (res) => {
695
689
  console.log("handleButtonClick_print-receipt_res>>>>", res);
696
690
  if (!(res == null ? void 0 : res.result)) {
697
691
  Toast == null ? void 0 : Toast.error((res == null ? void 0 : res.msg) || "");
@@ -994,7 +988,6 @@ var PaymentModal = ({
994
988
  const [windowHeight, setWindowHeight] = (0, import_react.useState)(0);
995
989
  const [showRetryModal, setShowRetryModal] = (0, import_react.useState)(false);
996
990
  const Toast = (0, import_useToast.default)();
997
- const { nativePrint } = (0, import_printer.default)();
998
991
  const handleRetry = async () => {
999
992
  const checkoutModule = pisellos == null ? void 0 : pisellos.getModule("checkout");
1000
993
  const res = await (checkoutModule == null ? void 0 : checkoutModule.manualSyncOrderAsync());
@@ -1223,7 +1216,6 @@ var PaymentModal = ({
1223
1216
  order_rounding_setting: getData("order_rounding_setting"),
1224
1217
  shop_wallet_pass_id
1225
1218
  });
1226
- console.time("initCheckoutData");
1227
1219
  const newData = (0, import_lodash.cloneDeep)(data);
1228
1220
  await checkout.createLocalOrderAsync({
1229
1221
  orderData: newData.order_info,
@@ -1231,7 +1223,6 @@ var PaymentModal = ({
1231
1223
  autoPayment: true,
1232
1224
  totalInfo: newData.subtotal_info
1233
1225
  });
1234
- console.timeEnd("initCheckoutData");
1235
1226
  const orderInfo2 = checkout.getCurrentOrderInfo();
1236
1227
  if (orderInfo2 && orderInfo2.totalAmount) {
1237
1228
  setTotalAmount(orderInfo2.totalAmount);
@@ -1279,8 +1270,7 @@ var PaymentModal = ({
1279
1270
  data: {
1280
1271
  order_id: responseData.order_id,
1281
1272
  machine_code_print_info: responseData == null ? void 0 : responseData.machine_code_print_info,
1282
- small_ticket_data: (_c2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _c2.small_ticket_data,
1283
- machine_code_print_info_v2: responseData == null ? void 0 : responseData.machine_code_print_info_v2
1273
+ small_ticket_data: (_c2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _c2.small_ticket_data
1284
1274
  }
1285
1275
  };
1286
1276
  console.log("print_order_onOrderSynced_params>>>>", params);
@@ -1291,7 +1281,7 @@ var PaymentModal = ({
1291
1281
  params
1292
1282
  }
1293
1283
  });
1294
- nativePrint(params, (res) => {
1284
+ (0, import_utils.webPrint)(params, (res) => {
1295
1285
  console.log("print_order_onOrderSynced_res>>>>", res);
1296
1286
  logger == null ? void 0 : logger.addLog({
1297
1287
  type: "info",
@@ -1435,7 +1425,7 @@ var PaymentModal = ({
1435
1425
  data: { order_id: data2.orderId }
1436
1426
  };
1437
1427
  try {
1438
- nativePrint(params, (res) => {
1428
+ (0, import_utils.webPrint)(params, (res) => {
1439
1429
  console.log("handleButtonClick_print-receipt_res>>>>", res);
1440
1430
  if (!(res == null ? void 0 : res.result)) {
1441
1431
  Toast == null ? void 0 : Toast.error((res == null ? void 0 : res.msg) || "");
@@ -46,7 +46,7 @@ var globalPaymentResultToastContext = null;
46
46
  var DEFAULT_TOAST_CONFIG = {
47
47
  width: 680,
48
48
  mask: true,
49
- maskClosable: false,
49
+ maskClosable: true,
50
50
  closable: true,
51
51
  zIndex: 2e3
52
52
  };
@@ -78,7 +78,7 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
78
78
  width,
79
79
  height,
80
80
  mask = true,
81
- maskClosable = false,
81
+ maskClosable = true,
82
82
  closable = true,
83
83
  zIndex
84
84
  } = props;
@@ -216,7 +216,6 @@ var ScrollableList = ({
216
216
  {
217
217
  style: {
218
218
  ...bottomGradientStyle,
219
- width: "100%",
220
219
  border: "none",
221
220
  background: "linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #A78BE1 100%)",
222
221
  ...gradientStyle
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellWalletPassCardProps } from '../../types';
3
2
  export declare const TestModule: () => JSX.Element;
4
3
  declare const ConflictModal: (props: {
@@ -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;
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -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, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ 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" | "warn" | "success" | "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>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusEnum } from '../const';
2
3
  export declare const POS: ({ api, onChange, }: {
3
4
  api: {
@@ -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" | "warn" | "success" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "pay" | "amount" | "deviceList" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | 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" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './tip.less';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -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
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -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 type CallToBookProps = {
4
3
  show: boolean;
@@ -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,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;
@@ -33,8 +33,8 @@ __export(MX51_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(MX51_exports);
35
35
  var import_react = require("react");
36
+ var import_utils = require("@pisell/utils");
36
37
  var import_useLogger = __toESM(require("../../../../../hooks/useLogger"));
37
- var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
38
38
  var getUuid = () => {
39
39
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxx".replace(/[xy]/g, (c) => {
40
40
  const r = Math.random() * 16 | 0;
@@ -43,10 +43,7 @@ var getUuid = () => {
43
43
  });
44
44
  };
45
45
  var MX51 = (props, ref) => {
46
- var _a, _b;
47
46
  const logger = (0, import_useLogger.default)();
48
- const context = (0, import_useEngineContext.default)();
49
- const action = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.action;
50
47
  const onOpen = ({ data, payCallback }) => {
51
48
  const { params, mode } = data;
52
49
  const uniquePaymentNumber = getUuid();
@@ -65,40 +62,18 @@ var MX51 = (props, ref) => {
65
62
  title: "ToB_MX51_onOpen 开始调用",
66
63
  metadata: { params: newData }
67
64
  });
68
- action({
69
- type: "webpos.handleMX51Pay",
70
- data: newData,
71
- callback: (res) => {
72
- var _a2, _b2;
73
- let isSame = false;
74
- if (res == null ? void 0 : res.uniquePaymentNumber) {
75
- const _res = res;
76
- isSame = (_res == null ? void 0 : _res.uniquePaymentNumber) === uniquePaymentNumber;
77
- if (isSame) {
78
- payCallback == null ? void 0 : payCallback(_res);
79
- }
80
- } else {
81
- const _res = res;
82
- const newRes = {
83
- result: (_res == null ? void 0 : _res.code) == "200" ? true : false,
84
- msg: _res == null ? void 0 : _res.msg,
85
- amount: (_a2 = _res == null ? void 0 : _res.data) == null ? void 0 : _a2.amount,
86
- surcharge: (_b2 = _res == null ? void 0 : _res.data) == null ? void 0 : _b2.surcharge,
87
- uniquePaymentNumber: _res == null ? void 0 : _res.uuid
88
- };
89
- isSame = (_res == null ? void 0 : _res.uuid) === uniquePaymentNumber;
90
- if (isSame) {
91
- payCallback == null ? void 0 : payCallback(newRes);
92
- }
65
+ (0, import_utils.webPayment)(newData, (res) => {
66
+ const isSame = (res == null ? void 0 : res.uniquePaymentNumber) === uniquePaymentNumber;
67
+ logger == null ? void 0 : logger.addLog({
68
+ type: "info",
69
+ title: "ToB_MX51_onOpen_callback",
70
+ metadata: {
71
+ msg: isSame ? "uniquePaymentNumber一致" : "uniquePaymentNumber不一致",
72
+ res
93
73
  }
94
- logger == null ? void 0 : logger.addLog({
95
- type: "info",
96
- title: "ToB_MX51_onOpen_callback",
97
- metadata: {
98
- msg: isSame ? "交易流水号一致" : "交易流水号不一致",
99
- res
100
- }
101
- });
74
+ });
75
+ if (isSame) {
76
+ payCallback == null ? void 0 : payCallback(res);
102
77
  }
103
78
  });
104
79
  };
@@ -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
- }
@@ -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;