@pisell/private-materials 3.4.37 → 3.4.39

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 (163) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Event/Detail.js +4 -3
  13. package/es/components/Sales/Summary/utils.d.ts +1 -1
  14. package/es/components/appointmentBooking/components/Content/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 +1 -0
  17. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/index.d.ts +1 -0
  19. package/es/components/booking/components/footer/index.d.ts +1 -0
  20. package/es/components/booking/deposit/index.d.ts +1 -0
  21. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  22. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  23. package/es/components/booking/info/header/index.d.ts +1 -0
  24. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  25. package/es/components/booking/info/index.d.ts +1 -0
  26. package/es/components/booking/info/service/Lists.d.ts +1 -0
  27. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  28. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  29. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  30. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  31. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  32. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  33. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  34. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  35. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  36. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  37. package/es/components/booking/utils.d.ts +2 -2
  38. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  39. package/es/components/eftposPay/amount.d.ts +1 -1
  40. package/es/components/eftposPay/app.d.ts +1 -0
  41. package/es/components/eftposPay/device.d.ts +2 -1
  42. package/es/components/eftposPay/hooks.d.ts +1 -1
  43. package/es/components/eftposPay/index.d.ts +1 -0
  44. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  45. package/es/components/eftposPay/store/index.d.ts +2 -2
  46. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  47. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  48. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  49. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  50. package/es/components/eventBooking/index.d.ts +1 -0
  51. package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
  52. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
  53. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  54. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  55. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  56. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  57. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  58. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
  59. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  60. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
  61. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
  62. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  63. package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
  64. package/es/components/pay/toC/index.js +3 -2
  65. package/es/components/pay/toC/locales.d.ts +9 -0
  66. package/es/components/pay/toC/locales.js +12 -3
  67. package/es/components/pay/toC/model.d.ts +1 -0
  68. package/es/components/pay/toC/serve.d.ts +5 -0
  69. package/es/components/pay/toC/serve.js +9 -1
  70. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  71. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  72. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  73. package/es/components/productExtension/index.d.ts +1 -0
  74. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  75. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  76. package/es/components/ruleSetting/index.d.ts +1 -0
  77. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  78. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  79. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  80. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  81. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  82. package/es/components/taxSelect/index.d.ts +1 -0
  83. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  84. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  85. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  86. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  87. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  88. package/lib/components/Sales/Event/Detail.js +3 -2
  89. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  90. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  91. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  92. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  93. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  94. package/lib/components/appointmentBooking/index.d.ts +1 -0
  95. package/lib/components/booking/components/footer/index.d.ts +1 -0
  96. package/lib/components/booking/deposit/index.d.ts +1 -0
  97. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  98. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  99. package/lib/components/booking/info/header/index.d.ts +1 -0
  100. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  101. package/lib/components/booking/info/index.d.ts +1 -0
  102. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  103. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  104. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  105. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  106. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  107. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  108. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  109. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  110. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  111. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  112. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  113. package/lib/components/booking/utils.d.ts +2 -2
  114. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  115. package/lib/components/eftposPay/amount.d.ts +1 -1
  116. package/lib/components/eftposPay/app.d.ts +1 -0
  117. package/lib/components/eftposPay/device.d.ts +2 -1
  118. package/lib/components/eftposPay/hooks.d.ts +1 -1
  119. package/lib/components/eftposPay/index.d.ts +1 -0
  120. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  121. package/lib/components/eftposPay/store/index.d.ts +2 -2
  122. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  123. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  124. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  125. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  126. package/lib/components/eventBooking/index.d.ts +1 -0
  127. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
  128. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
  129. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  130. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  131. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  132. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  133. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  134. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
  135. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  136. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
  137. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
  138. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  139. package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
  140. package/lib/components/pay/toC/index.js +2 -1
  141. package/lib/components/pay/toC/locales.d.ts +9 -0
  142. package/lib/components/pay/toC/locales.js +12 -3
  143. package/lib/components/pay/toC/model.d.ts +1 -0
  144. package/lib/components/pay/toC/serve.d.ts +5 -0
  145. package/lib/components/pay/toC/serve.js +3 -0
  146. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  147. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  148. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  149. package/lib/components/productExtension/index.d.ts +1 -0
  150. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  151. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  152. package/lib/components/ruleSetting/index.d.ts +1 -0
  153. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  154. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  155. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  156. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  157. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  158. package/lib/components/taxSelect/index.d.ts +1 -0
  159. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  160. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  161. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  162. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  163. package/package.json +4 -4
@@ -0,0 +1,126 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
+ import { useMemoizedFn } from 'ahooks';
17
+ import { useState, useEffect } from 'react';
18
+ /**
19
+ * 支付跳转 Hook
20
+ * 用于处理跳转到外部支付页面的逻辑,包括:
21
+ * 1. 保存跳转标记到 history state
22
+ * 2. 跳转到外部支付页面
23
+ * 3. 监听页面返回事件
24
+ * 4. 返回后更新状态
25
+ */
26
+ export var usePaymentRedirect = function usePaymentRedirect(options) {
27
+ var orderId = options.orderId,
28
+ paymentType = options.paymentType,
29
+ onAfterReturn = options.onAfterReturn;
30
+ var _useState = useState(false),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ isReturned = _useState2[0],
33
+ setIsReturned = _useState2[1];
34
+
35
+ /**
36
+ * 执行跳转
37
+ */
38
+ var handleRedirect = useMemoizedFn( /*#__PURE__*/function () {
39
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url) {
40
+ var currentState;
41
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
42
+ while (1) switch (_context.prev = _context.next) {
43
+ case 0:
44
+ _context.prev = 0;
45
+ // 使用 History State 保存跳转标记
46
+ currentState = window.history.state || {};
47
+ window.history.replaceState(_objectSpread(_objectSpread({}, currentState), {}, {
48
+ paymentRedirected: true,
49
+ paymentType: paymentType,
50
+ orderId: orderId,
51
+ timestamp: Date.now()
52
+ }), '', window.location.href);
53
+
54
+ // 跳转到外部支付页面
55
+ window.location.href = url;
56
+ _context.next = 9;
57
+ break;
58
+ case 6:
59
+ _context.prev = 6;
60
+ _context.t0 = _context["catch"](0);
61
+ throw _context.t0;
62
+ case 9:
63
+ case "end":
64
+ return _context.stop();
65
+ }
66
+ }, _callee, null, [[0, 6]]);
67
+ }));
68
+ return function (_x) {
69
+ return _ref.apply(this, arguments);
70
+ };
71
+ }());
72
+
73
+ /**
74
+ * 重置状态
75
+ */
76
+ var resetState = useMemoizedFn(function () {
77
+ setIsReturned(false);
78
+ });
79
+
80
+ /**
81
+ * 监听页面显示事件(包括浏览器返回按钮)
82
+ */
83
+ useEffect(function () {
84
+ var handlePageShow = function handlePageShow(event) {
85
+ if (!orderId) return;
86
+
87
+ // 检查 History State 中是否有跳转标记
88
+ var historyState = window.history.state;
89
+ if (historyState !== null && historyState !== void 0 && historyState.paymentRedirected && (historyState === null || historyState === void 0 ? void 0 : historyState.paymentType) === paymentType && (historyState === null || historyState === void 0 ? void 0 : historyState.orderId) === orderId) {
90
+ console.log("\u68C0\u6D4B\u5230\u4ECE ".concat(paymentType, " \u8FD4\u56DE, event.persisted:"), event.persisted);
91
+
92
+ // 从支付页面返回,设置返回状态
93
+ setIsReturned(true);
94
+
95
+ // 执行返回后的回调
96
+ if (onAfterReturn) {
97
+ onAfterReturn();
98
+ }
99
+
100
+ // 清除标记,避免重复触发
101
+ var newState = _objectSpread({}, historyState);
102
+ delete newState.paymentRedirected;
103
+ delete newState.paymentType;
104
+ delete newState.timestamp;
105
+ delete newState.orderId;
106
+ window.history.replaceState(newState, '', window.location.href);
107
+ }
108
+ };
109
+
110
+ // 首次加载时也检查一次
111
+ handlePageShow({
112
+ persisted: false
113
+ });
114
+
115
+ // 监听 pageshow 事件(浏览器返回时触发)
116
+ window.addEventListener('pageshow', handlePageShow);
117
+ return function () {
118
+ window.removeEventListener('pageshow', handlePageShow);
119
+ };
120
+ }, [orderId, paymentType]);
121
+ return {
122
+ isReturned: isReturned,
123
+ handleRedirect: handleRedirect,
124
+ resetState: resetState
125
+ };
126
+ };
@@ -17,7 +17,7 @@ import React, { useState, useMemo, useContext, useRef, useImperativeHandle, forw
17
17
  import { Decimal } from 'decimal.js';
18
18
  import { useMemoizedFn, useUpdateEffect } from 'ahooks';
19
19
  import { PisellModal, PisellText, PisellContainer, PisellLoading, PisellToast } from '@pisell/materials';
20
- import { detectIncognito, locales, copyToClipboard } from '@pisell/utils';
20
+ import { detectIncognito, locales, copyToClipboard, getUniqueId } from '@pisell/utils';
21
21
  import PayCountdown from "./PayCountdown";
22
22
  import PayAmount from "./PayAmount";
23
23
  import WalletPassBlock from "./WalletPassBlock";
@@ -121,7 +121,8 @@ var ToCPay = function ToCPay(props, ref) {
121
121
  status: 'init',
122
122
  // 将支付回调储存在store, 方便其他模块调用
123
123
  payCallback: props.callback,
124
- history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history
124
+ history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history,
125
+ front_order_uuid: getUniqueId('front_order_uuid_')
125
126
  // 支付组
126
127
  // payGroup: {
127
128
  // order_id: initProps?.order?.order_id,
@@ -94,6 +94,9 @@ declare const _default: {
94
94
  'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
95
95
  'tocPay.text.bestValueCombination': string;
96
96
  'tocPay.text.viewDetail': string;
97
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': string;
98
+ 'tocPay.text.paymentCompletedAndViewOrder': string;
99
+ 'tocPay.text.paymentFailed': string;
97
100
  };
98
101
  'zh-CN': {
99
102
  'tocPay.text.checkout': string;
@@ -189,6 +192,9 @@ declare const _default: {
189
192
  'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
190
193
  'tocPay.text.bestValueCombination': string;
191
194
  'tocPay.text.viewDetail': string;
195
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': string;
196
+ 'tocPay.text.paymentCompletedAndViewOrder': string;
197
+ 'tocPay.text.paymentFailed': string;
192
198
  };
193
199
  'zh-HK': {
194
200
  'tocPay.text.checkout': string;
@@ -284,6 +290,9 @@ declare const _default: {
284
290
  'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
285
291
  'tocPay.text.bestValueCombination': string;
286
292
  'tocPay.text.viewDetail': string;
293
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': string;
294
+ 'tocPay.text.paymentCompletedAndViewOrder': string;
295
+ 'tocPay.text.paymentFailed': string;
287
296
  };
288
297
  };
289
298
  export default _default;
@@ -113,7 +113,10 @@ export default {
113
113
  return "You can select multiple ".concat(walletName, " to combine for payment");
114
114
  },
115
115
  'tocPay.text.bestValueCombination': 'Best value combination',
116
- 'tocPay.text.viewDetail': 'View detail'
116
+ 'tocPay.text.viewDetail': 'View detail',
117
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': 'Go Back / Choose Another Payment',
118
+ 'tocPay.text.paymentCompletedAndViewOrder': 'Payment Completed / View Order',
119
+ 'tocPay.text.paymentFailed': 'Not paid yet, please check if the payment is successful'
117
120
  },
118
121
  'zh-CN': {
119
122
  'tocPay.text.checkout': '结账',
@@ -228,7 +231,10 @@ export default {
228
231
  return "\u60A8\u53EF\u4EE5\u9009\u62E9\u591A\u4E2A".concat(walletName, "\u8FDB\u884C\u7EC4\u5408\u4ED8\u6B3E");
229
232
  },
230
233
  'tocPay.text.bestValueCombination': '最佳组合',
231
- 'tocPay.text.viewDetail': '查看详情'
234
+ 'tocPay.text.viewDetail': '查看详情',
235
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': '返回 / 选择其他支付方式',
236
+ 'tocPay.text.paymentCompletedAndViewOrder': '支付完成 / 查看订单',
237
+ 'tocPay.text.paymentFailed': "未支付完成,请检查是否支付成功"
232
238
  },
233
239
  'zh-HK': {
234
240
  'tocPay.text.checkout': '結帳',
@@ -343,6 +349,9 @@ export default {
343
349
  return "\u60A8\u53EF\u4EE5\u9078\u64C7\u591A\u500B".concat(walletName, "\u9032\u884C\u7D44\u5408\u4ED8\u6B3E");
344
350
  },
345
351
  'tocPay.text.bestValueCombination': '最佳組合',
346
- 'tocPay.text.viewDetail': '查看詳情'
352
+ 'tocPay.text.viewDetail': '查看詳情',
353
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': '返回 / 選擇其他支付方式',
354
+ 'tocPay.text.paymentCompletedAndViewOrder': '支付完成 / 查看訂單',
355
+ 'tocPay.text.paymentFailed': "未支付完成,请检查是否支付成功"
347
356
  }
348
357
  };
@@ -28,6 +28,7 @@ export interface PayGroup {
28
28
  payment_priority?: string[];
29
29
  pay_number?: string;
30
30
  _order: any;
31
+ front_order_uuid?: string;
31
32
  }
32
33
  export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
34
  state: FormState;
@@ -55,3 +55,8 @@ export declare const getWalletNameAndPopupStatus: (values: {
55
55
  popup_status?: 1 | 0;
56
56
  };
57
57
  }>;
58
+ /**
59
+ * @title: 获取支付结果
60
+ * @description: 获取支付结果
61
+ */
62
+ export declare const getPaymentResult: (values: any) => Promise<any>;
@@ -177,4 +177,12 @@ export var getWalletNameAndPopupStatus = /*#__PURE__*/function () {
177
177
  return function getWalletNameAndPopupStatus(_x4) {
178
178
  return _ref4.apply(this, arguments);
179
179
  };
180
- }();
180
+ }();
181
+
182
+ /**
183
+ * @title: 获取支付结果
184
+ * @description: 获取支付结果
185
+ */
186
+ export var getPaymentResult = function getPaymentResult(values) {
187
+ return request.getRequest().get("/h5/pay/order/payment/result", values);
188
+ };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import { CustomerCardProps } from './CustomerCard';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TabProduct: (props: any) => JSX.Element;
2
3
  export default TabProduct;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type BoolConfigVal = 0 | 1;
3
4
  export interface ProductCardConfig {
@@ -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
  import { ScheduleItem } from '../../../type';
3
4
  declare type Item = 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 { ProductProps } from '../../type';
2
3
  declare const Product: (props: ProductProps) => JSX.Element;
3
4
  export default Product;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: () => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const index: () => JSX.Element;
3
4
  export default index;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
@@ -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
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -205,9 +205,10 @@ var EventDetailProvider = ({
205
205
  const { introduction, bookingOptions } = detailRef.current || {};
206
206
  const option = (_a = bookingOptions == null ? void 0 : bookingOptions.filter((v) => v.value === id)) == null ? void 0 : _a[0];
207
207
  const setSelectedData = (data) => {
208
+ var _a2;
208
209
  _setDetail({
209
210
  introduction: {
210
- ...introduction,
211
+ ...((_a2 = detailRef == null ? void 0 : detailRef.current) == null ? void 0 : _a2.introduction) || {},
211
212
  price: data == null ? void 0 : data.price,
212
213
  origin_price: data == null ? void 0 : data.original_price
213
214
  },
@@ -219,7 +220,7 @@ var EventDetailProvider = ({
219
220
  if (((_b = option == null ? void 0 : option._originData) == null ? void 0 : _b.is_eject) === 0) {
220
221
  getProductDetailRequest.runAsync(id, {
221
222
  open_deposit: 1,
222
- front_end_cache_id: ((_c = introduction == null ? void 0 : introduction._originData) == null ? void 0 : _c.id) + "_" + id
223
+ front_end_cache_id: ((_c = eventRef == null ? void 0 : eventRef.current) == null ? void 0 : _c.id) + "_" + id
223
224
  }).then((res) => {
224
225
  var _a2;
225
226
  const custom_deposit_data = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.custom_deposit_data;
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../booking/components/voucher/index.less';
2
3
  import './index.less';
3
4
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Deposit: (props: any) => JSX.Element;
3
4
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const calculateTotalPrice: (data: any) => number;
2
3
  declare const useQuotation: (state: any, dispatch: any) => {
3
4
  dom: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -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: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "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 { PayProps, PosProps } from './const';
2
3
  import './device.less';
3
4
  /**
@@ -10,7 +11,7 @@ import './device.less';
10
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
12
  api: PayProps['api'];
12
13
  className?: string | undefined;
13
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
15
  [keys: string]: unknown;
15
16
  } | undefined, other?: any) => void) | undefined;
16
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<"loading" | "success" | "warn" | "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>;
@@ -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;