@pisell/private-materials 3.3.86 → 3.3.88

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 (291) 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 +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/Sales/index.js +4 -37
  12. package/es/components/Sales/Resource/index.js +2 -2
  13. package/es/components/Sales/Resource/serve.d.ts +0 -7
  14. package/es/components/Sales/Resource/serve.js +0 -10
  15. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  16. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  17. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  18. package/es/components/appointmentBooking/components/Voucher/index.js +1 -1
  19. package/es/components/appointmentBooking/index.js +0 -14
  20. package/es/components/appointmentBooking/index.less +1 -1
  21. package/es/components/appointmentBooking/locales.d.ts +3 -0
  22. package/es/components/appointmentBooking/locales.js +3 -0
  23. package/es/components/booking/addons/model.d.ts +1 -10
  24. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  25. package/es/components/booking/components/browserSelect/index.js +1 -1
  26. package/es/components/booking/components/footer/utils.d.ts +0 -1
  27. package/es/components/booking/components/footer/utils.js +5 -6
  28. package/es/components/booking/components/voucher/index.js +2 -2
  29. package/es/components/booking/forms/model.d.ts +1 -10
  30. package/es/components/booking/forms/model.js +5 -5
  31. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  32. package/es/components/booking/info/model.d.ts +1 -10
  33. package/es/components/booking/info/service/addService/index.js +3 -3
  34. package/es/components/booking/info/service/like/index.js +1 -1
  35. package/es/components/booking/info/service2/utils.js +2 -3
  36. package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
  37. package/es/components/booking/info2/service/addService/utils.js +13 -44
  38. package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
  39. package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
  40. package/es/components/booking/info2/utilsByBooking.js +0 -9
  41. package/es/components/booking/locales.d.ts +0 -3
  42. package/es/components/booking/locales.js +0 -3
  43. package/es/components/booking/materiels/startTime/index.js +1 -1
  44. package/es/components/booking/model.d.ts +1 -9
  45. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  46. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  47. package/es/components/booking/notes/model.d.ts +1 -10
  48. package/es/components/booking/notes/model.js +5 -5
  49. package/es/components/booking/payments/model.d.ts +1 -10
  50. package/es/components/booking/payments/model.js +5 -5
  51. package/es/components/eftposPay/const.d.ts +1 -4
  52. package/es/components/eftposPay/const.js +1 -3
  53. package/es/components/eftposPay/hooks.d.ts +1 -1
  54. package/es/components/eftposPay/hooks.js +1 -3
  55. package/es/components/eftposPay/index.js +1 -1
  56. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  57. package/es/components/eftposPay/manufacturer.js +0 -4
  58. package/es/components/eftposPay/pay.d.ts +1 -1
  59. package/es/components/eftposPay/pay.js +2 -6
  60. package/es/components/eftposPay/store/index.d.ts +1 -1
  61. package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
  62. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -19
  63. package/es/components/eventBooking/index.js +7 -21
  64. package/es/components/eventBooking/locales.js +3 -3
  65. package/es/components/index.d.ts +1 -3
  66. package/es/components/index.js +1 -3
  67. package/es/components/listComponent/index.js +5 -5
  68. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  69. package/es/components/pay/toC/model.d.ts +1 -9
  70. package/es/components/productExtension/card/index.js +3 -3
  71. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  72. package/es/components/productExtension/fields/Forms/index.js +12 -12
  73. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  74. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  75. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  76. package/es/components/productExtension/server.js +2 -2
  77. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  78. package/es/components/schedules/calendar/index.js +4 -4
  79. package/es/components/schedules/calendar/serve.js +2 -2
  80. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  81. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  82. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  83. package/es/components/schedules/components/ResourceList/index.js +1 -1
  84. package/es/components/schedules/components/Search/index.js +5 -5
  85. package/es/components/schedules/model.d.ts +1 -9
  86. package/es/components/schedules/model.js +5 -5
  87. package/es/components/schedules/openHours/index.js +1 -1
  88. package/es/components/schedules/openHours/serve.js +2 -2
  89. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  90. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  91. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  92. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  93. package/es/components/schedules/products/serve.js +2 -2
  94. package/es/components/schedules/products/utils.js +5 -5
  95. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  96. package/es/components/schedules/resources/detail/index.js +10 -10
  97. package/es/components/schedules/resources/list/index.js +2 -2
  98. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  99. package/es/components/schedules/resources/serve.js +2 -2
  100. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  101. package/es/components/schedules/utils.d.ts +1 -1
  102. package/es/components/schedules/utils.js +4 -4
  103. package/es/components/selectModal/index.js +2 -2
  104. package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -5
  105. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  106. package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
  107. package/es/components/ticketBooking/locales.d.ts +146 -164
  108. package/es/components/ticketBooking/locales.js +147 -195
  109. package/es/components/wallet/Detail/model.d.ts +1 -13
  110. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  111. package/es/components/wallet/PointCard/model.d.ts +1 -13
  112. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  113. package/es/components/wallet/Voucher/model.d.ts +1 -13
  114. package/es/components/wallet/model.d.ts +1 -9
  115. package/es/hooks/useComponents.js +1 -1
  116. package/es/index.d.ts +0 -2
  117. package/es/index.js +1 -3
  118. package/es/utils/index.d.ts +1 -1
  119. package/lib/businessModel/SalesModel/Sales/index.js +8 -22
  120. package/lib/components/Sales/Resource/index.js +1 -1
  121. package/lib/components/Sales/Resource/serve.d.ts +0 -7
  122. package/lib/components/Sales/Resource/serve.js +2 -9
  123. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  124. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  125. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  126. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -1
  127. package/lib/components/appointmentBooking/index.js +0 -11
  128. package/lib/components/appointmentBooking/index.less +1 -1
  129. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  130. package/lib/components/appointmentBooking/locales.js +3 -0
  131. package/lib/components/booking/addons/model.d.ts +1 -10
  132. package/lib/components/booking/components/footer/utils.d.ts +0 -1
  133. package/lib/components/booking/components/footer/utils.js +2 -7
  134. package/lib/components/booking/components/voucher/index.js +23 -11
  135. package/lib/components/booking/forms/model.d.ts +1 -10
  136. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  137. package/lib/components/booking/info/model.d.ts +1 -10
  138. package/lib/components/booking/info/service/addService/index.js +1 -1
  139. package/lib/components/booking/info/service2/utils.js +2 -2
  140. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
  141. package/lib/components/booking/info2/service/addService/utils.js +4 -27
  142. package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
  143. package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
  144. package/lib/components/booking/info2/utilsByBooking.js +0 -6
  145. package/lib/components/booking/locales.d.ts +0 -3
  146. package/lib/components/booking/locales.js +0 -3
  147. package/lib/components/booking/model.d.ts +1 -9
  148. package/lib/components/booking/notes/model.d.ts +1 -10
  149. package/lib/components/booking/payments/model.d.ts +1 -10
  150. package/lib/components/eftposPay/const.d.ts +1 -4
  151. package/lib/components/eftposPay/const.js +0 -2
  152. package/lib/components/eftposPay/hooks.d.ts +1 -1
  153. package/lib/components/eftposPay/hooks.js +4 -11
  154. package/lib/components/eftposPay/index.js +1 -1
  155. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  156. package/lib/components/eftposPay/manufacturer.js +0 -6
  157. package/lib/components/eftposPay/pay.d.ts +1 -1
  158. package/lib/components/eftposPay/pay.js +2 -13
  159. package/lib/components/eftposPay/store/index.d.ts +1 -1
  160. package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
  161. package/lib/components/eventBooking/components/bookingDetailModal/index.js +3 -9
  162. package/lib/components/eventBooking/index.js +7 -11
  163. package/lib/components/eventBooking/locales.js +3 -3
  164. package/lib/components/index.d.ts +1 -3
  165. package/lib/components/index.js +0 -6
  166. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  167. package/lib/components/pay/toC/model.d.ts +1 -9
  168. package/lib/components/schedules/model.d.ts +1 -9
  169. package/lib/components/schedules/utils.d.ts +1 -1
  170. package/lib/components/schedules/utils.js +1 -1
  171. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +6 -4
  172. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  173. package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
  174. package/lib/components/ticketBooking/locales.d.ts +146 -164
  175. package/lib/components/ticketBooking/locales.js +4 -22
  176. package/lib/components/wallet/Detail/model.d.ts +1 -13
  177. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  178. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  179. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  180. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  181. package/lib/components/wallet/model.d.ts +1 -9
  182. package/lib/index.d.ts +0 -2
  183. package/lib/index.js +0 -6
  184. package/lib/utils/index.d.ts +1 -1
  185. package/package.json +4 -4
  186. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  187. package/es/components/booking/editBookingModal/index.js +0 -386
  188. package/es/components/booking/editBookingModal/index.less +0 -8
  189. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  190. package/es/components/booking/editBookingModal/locales.js +0 -20
  191. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  192. package/es/components/booking/editBookingModal/mock.js +0 -2993
  193. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  194. package/es/components/booking/editBookingModal/serve.js +0 -288
  195. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  196. package/es/components/booking/editBookingModal/type.js +0 -1
  197. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  198. package/es/components/booking/editBookingModal/utils.js +0 -157
  199. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  200. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
  201. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  202. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
  203. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  204. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  205. package/es/components/eftposPay/linkly/const.js +0 -82
  206. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  207. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  208. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  209. package/es/components/eftposPay/linkly/hooks/normal.js +0 -318
  210. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  211. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  212. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  213. package/es/components/eftposPay/linkly/index.js +0 -197
  214. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  215. package/es/components/eftposPay/linkly/service.js +0 -73
  216. package/es/components/stepController/components/Content/index.d.ts +0 -7
  217. package/es/components/stepController/components/Content/index.js +0 -9
  218. package/es/components/stepController/components/Content/index.less +0 -8
  219. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  220. package/es/components/stepController/components/Footer/index.js +0 -15
  221. package/es/components/stepController/components/Footer/index.less +0 -39
  222. package/es/components/stepController/components/Header/index.d.ts +0 -20
  223. package/es/components/stepController/components/Header/index.js +0 -97
  224. package/es/components/stepController/components/Header/index.less +0 -21
  225. package/es/components/stepController/index.d.ts +0 -5
  226. package/es/components/stepController/index.js +0 -64
  227. package/es/components/stepController/index.less +0 -11
  228. package/es/components/stepController/locales.d.ts +0 -27
  229. package/es/components/stepController/locales.js +0 -32
  230. package/es/components/stepController/types.d.ts +0 -23
  231. package/es/components/stepController/types.js +0 -1
  232. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  233. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  234. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  235. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  236. package/es/hooks/useWindowSize.d.ts +0 -5
  237. package/es/hooks/useWindowSize.js +0 -26
  238. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  239. package/lib/components/booking/editBookingModal/index.js +0 -363
  240. package/lib/components/booking/editBookingModal/index.less +0 -8
  241. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  242. package/lib/components/booking/editBookingModal/locales.js +0 -44
  243. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  244. package/lib/components/booking/editBookingModal/mock.js +0 -3314
  245. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  246. package/lib/components/booking/editBookingModal/serve.js +0 -178
  247. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  248. package/lib/components/booking/editBookingModal/type.js +0 -17
  249. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  250. package/lib/components/booking/editBookingModal/utils.js +0 -158
  251. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  252. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
  253. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  254. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
  255. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  256. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  257. package/lib/components/eftposPay/linkly/const.js +0 -102
  258. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  259. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  260. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  261. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -239
  262. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  263. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  264. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  265. package/lib/components/eftposPay/linkly/index.js +0 -208
  266. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  267. package/lib/components/eftposPay/linkly/service.js +0 -55
  268. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  269. package/lib/components/stepController/components/Content/index.js +0 -40
  270. package/lib/components/stepController/components/Content/index.less +0 -8
  271. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  272. package/lib/components/stepController/components/Footer/index.js +0 -49
  273. package/lib/components/stepController/components/Footer/index.less +0 -39
  274. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  275. package/lib/components/stepController/components/Header/index.js +0 -104
  276. package/lib/components/stepController/components/Header/index.less +0 -21
  277. package/lib/components/stepController/index.d.ts +0 -5
  278. package/lib/components/stepController/index.js +0 -89
  279. package/lib/components/stepController/index.less +0 -11
  280. package/lib/components/stepController/locales.d.ts +0 -27
  281. package/lib/components/stepController/locales.js +0 -50
  282. package/lib/components/stepController/types.d.ts +0 -23
  283. package/lib/components/stepController/types.js +0 -17
  284. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  285. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  286. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  287. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
  288. package/lib/hooks/useWindowSize.d.ts +0 -5
  289. package/lib/hooks/useWindowSize.js +0 -51
  290. package/lowcode/edit-booking-modal/meta.ts +0 -53
  291. package/lowcode/step-controller/meta.ts +0 -88
@@ -154,7 +154,6 @@ var locales_default = {
154
154
  "pisell1.text.resource-error-message-1": (x, y) => `${x} doesn't provide ${y}, but your team member can still book appointments.`,
155
155
  "pisell1.text.resource-error-message-2": (x, y, z) => `${x} isn't available between ${y} and ${z}, but your team member can still book appointments.`,
156
156
  "pisell1.text.resource-error-message-3": (x, y, z) => `${x} is fully booked between ${y} and ${z}, but your team member can still book appointments.`,
157
- "pisell1.text.resource-error-message-unbound": "This booking product is not associated with the target resource.",
158
157
  "pisell1.text.no-addons": "No addons",
159
158
  "pisell1.text.no-resource": "No resource",
160
159
  "pisell1.text.no-payments": "No payments",
@@ -466,7 +465,6 @@ var locales_default = {
466
465
  "pisell1.text.resource-error-message-1": (x, y) => `${x} 不提供 ${y},但您的团队成员仍然可以预约。`,
467
466
  "pisell1.text.resource-error-message-2": (x, y, z) => `${x}在${y}到${z}之间不提供服务,但您的团队成员仍然可以预约。`,
468
467
  "pisell1.text.resource-error-message-3": (x, y, z) => `${x}在${y}到${z}之间已约满,但您的团队成员仍然可以预约。`,
469
- "pisell1.text.resource-error-message-unbound": "该预约商品未关联目标资源。",
470
468
  "pisell2.text.flexible": "灵活",
471
469
  "pisell2.text.order-discount": "折扣",
472
470
  "pisell2.text.no-product-added": "未添加商品",
@@ -770,7 +768,6 @@ var locales_default = {
770
768
  "pisell1.text.resource-error-message-1": (x, y) => `${x} 不提供 ${y},但您的團隊成員仍然可以預約。`,
771
769
  "pisell1.text.resource-error-message-2": (x, y, z) => `${x}在${y}到${z}之間不提供服務,但您的團隊成員仍然可以預約。`,
772
770
  "pisell1.text.resource-error-message-3": (x, y, z) => `${x}在${y}到${z}之間已約滿,但您的團隊成員仍然可以預約。`,
773
- "pisell1.text.resource-error-message-unbound": "該預約商品未關聯目標資源。",
774
771
  "pisell2.text.flexible": "靈活",
775
772
  "pisell2.text.order-discount": "折扣",
776
773
  "pisell2.text.no-product-added": "未添加商品",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -5,8 +5,7 @@ export declare enum EftposEnum {
5
5
  Tyro = "tyro",
6
6
  /** 后端支付 - 支付 + 退款 */
7
7
  Windcave = "windcave",
8
- Stripe = "stripe",
9
- Linkly = "linkly"
8
+ Stripe = "stripe"
10
9
  }
11
10
  export declare enum StatusEnum {
12
11
  Loading = "loading",
@@ -148,8 +147,6 @@ export declare enum PayStatus {
148
147
  'Success' = "200",
149
148
  /** 未生成交易记录 */
150
149
  'NoPay' = "4004",
151
- /** 配对失效 */
152
- 'PairingFailure' = "606020",
153
150
  /** 支付失败 */
154
151
  'Unknown' = "701000",
155
152
  /** 交易请求超时 */
@@ -35,7 +35,6 @@ var EftposEnum = /* @__PURE__ */ ((EftposEnum2) => {
35
35
  EftposEnum2["Tyro"] = "tyro";
36
36
  EftposEnum2["Windcave"] = "windcave";
37
37
  EftposEnum2["Stripe"] = "stripe";
38
- EftposEnum2["Linkly"] = "linkly";
39
38
  return EftposEnum2;
40
39
  })(EftposEnum || {});
41
40
  var StatusEnum = /* @__PURE__ */ ((StatusEnum2) => {
@@ -89,7 +88,6 @@ var PayRouteEnum = /* @__PURE__ */ ((PayRouteEnum2) => {
89
88
  var PayStatus = /* @__PURE__ */ ((PayStatus2) => {
90
89
  PayStatus2["Success"] = "200";
91
90
  PayStatus2["NoPay"] = "4004";
92
- PayStatus2["PairingFailure"] = "606020";
93
91
  PayStatus2["Unknown"] = "701000";
94
92
  PayStatus2["Timeout"] = "701001";
95
93
  PayStatus2["PayOtherEftposFailed"] = "701003";
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
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<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -128,7 +128,6 @@ var useFail = (index) => {
128
128
  return;
129
129
  }
130
130
  const [code] = [`${res.code}`];
131
- console.log("code---->>>>>>>", code);
132
131
  if (code === import_const.PayStatus.Unknown) {
133
132
  steps[index].title = import_utils.locales.getText("page.eftpos-pay.text.failed")(
134
133
  modeRef.current
@@ -169,12 +168,8 @@ var useFail = (index) => {
169
168
  if (isMark) {
170
169
  if (clientRef.current === import_const2.ClientEnum.User) {
171
170
  steps[index].status = "fail";
172
- steps[index].title = import_utils.locales.getText(
173
- "page.eftpos-pay.text.timedout.title"
174
- );
175
- steps[index].fail = import_utils.locales.getText(
176
- "page.eftpos-pay.text.transaction.eftpos.fail.other"
177
- );
171
+ steps[index].title = import_utils.locales.getText("page.eftpos-pay.text.timedout.title");
172
+ steps[index].fail = import_utils.locales.getText("page.eftpos-pay.text.transaction.eftpos.fail.other");
178
173
  steps[index].custom = steps[index].custom ? { ...steps[index].custom, isPosNetworkError: true } : { isPosNetworkError: true };
179
174
  dispatch((0, import_store.updateSteps)(steps));
180
175
  dispatch((0, import_store.updateComponent)("Fail"));
@@ -315,9 +310,7 @@ ${import_utils.locales.getText(
315
310
  )}
316
311
  ${import_utils.locales.getText(
317
312
  "page.eftpos-pay.text.transaction.eftpos.fail.if"
318
- )(modeRef.current)}` : import_utils.locales.getText(
319
- "page.eftpos-pay.text.transaction.eftpos.fail.other"
320
- );
313
+ )(modeRef.current)}` : import_utils.locales.getText("page.eftpos-pay.text.transaction.eftpos.fail.other");
321
314
  steps[index].status = "warn";
322
315
  steps[index].custom = steps[index].custom ? { ...steps[index].custom, isPosNetworkError: true } : { isPosNetworkError: true };
323
316
  dispatch((0, import_store.updateSteps)(steps));
@@ -366,7 +359,7 @@ ${import_utils.locales.getText(
366
359
  );
367
360
  return;
368
361
  }
369
- if (code === import_const.PayStatus.UserConfigError || code === import_const.PayStatus.PairingFailure) {
362
+ if (code === import_const.PayStatus.UserConfigError) {
370
363
  steps[index].title = import_utils.locales.getText(
371
364
  "page.eftpos-pay.text.transaction.user.config.title"
372
365
  );
@@ -139,7 +139,7 @@ var eftposPay_default = (props) => {
139
139
  }, [mode, state]);
140
140
  (0, import_react.useEffect)(() => {
141
141
  document.body.id = "body";
142
- console.log("初始化 ........112218017777");
142
+ console.log("初始化 ........11221801");
143
143
  }, []);
144
144
  console.log("props?.params?.device_number = ", (_e = props == null ? void 0 : props.params) == null ? void 0 : _e.device_number);
145
145
  const api = (0, import_react.useMemo)(() => {
@@ -3,5 +3,4 @@ export { getAmonunt } from './helper';
3
3
  export { default as Payo } from './payo';
4
4
  export { default as Windcave } from './windcave/windcave';
5
5
  export { default as Tyro } from './tyro';
6
- export { default as Linkly } from './linkly';
7
6
  export declare const getInitState: (type: string, params?: any) => State;
@@ -29,7 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/eftposPay/manufacturer.tsx
30
30
  var manufacturer_exports = {};
31
31
  __export(manufacturer_exports, {
32
- Linkly: () => import_linkly.default,
33
32
  Payo: () => import_payo.default,
34
33
  Tyro: () => import_tyro.default,
35
34
  Windcave: () => import_windcave.default,
@@ -41,12 +40,10 @@ var import_const = require("./const");
41
40
  var import_const2 = __toESM(require("./payo/const"));
42
41
  var import_const3 = __toESM(require("./tyro/const"));
43
42
  var import_const4 = __toESM(require("./windcave/const"));
44
- var import_const5 = __toESM(require("./linkly/const"));
45
43
  var import_helper = require("./helper");
46
44
  var import_payo = __toESM(require("./payo"));
47
45
  var import_windcave = __toESM(require("./windcave/windcave"));
48
46
  var import_tyro = __toESM(require("./tyro"));
49
- var import_linkly = __toESM(require("./linkly"));
50
47
  var getInitState = (type, params) => {
51
48
  switch (type) {
52
49
  case import_const.EftposEnum.Payo:
@@ -55,15 +52,12 @@ var getInitState = (type, params) => {
55
52
  return (0, import_const4.default)(params);
56
53
  case import_const.EftposEnum.Tyro:
57
54
  return (0, import_const3.default)(params);
58
- case import_const.EftposEnum.Linkly:
59
- return (0, import_const5.default)(params);
60
55
  default:
61
56
  throw new Error("未知的厂商类型");
62
57
  }
63
58
  };
64
59
  // Annotate the CommonJS export names for ESM import in node:
65
60
  0 && (module.exports = {
66
- Linkly,
67
61
  Payo,
68
62
  Tyro,
69
63
  Windcave,
@@ -6,7 +6,7 @@ import './index.less';
6
6
  * @Author: hongbing.wang
7
7
  * @Date: 2024-08-20 14:59
8
8
  */
9
- declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client, }: PayProps & {
9
+ declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client }: PayProps & {
10
10
  terminal: {
11
11
  network: boolean;
12
12
  };
@@ -145,7 +145,6 @@ var Pay = ({
145
145
  }
146
146
  };
147
147
  }, []);
148
- console.log("data =>>>>>> ", data);
149
148
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.render ? /* @__PURE__ */ import_react.default.createElement(
150
149
  "div",
151
150
  {
@@ -161,16 +160,7 @@ var Pay = ({
161
160
  }
162
161
  ),
163
162
  data.eftpos === "payo" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Payo, { api, onChange }, data.warn && data.status !== import_const.StatusEnum.Success && client === import_const.ClientEnum.Merchant ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn" }, data.warn) : null, data.status === import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, import_utils.locales.getText("page.eftpos-pay.text.transaction.end")) : null) : null,
164
- data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(
165
- import_manufacturer.Tyro,
166
- {
167
- api,
168
- onChange,
169
- key: data.key,
170
- url: tyroUrl,
171
- version: tyroVersion
172
- }
173
- ) : null,
163
+ data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Tyro, { api, onChange, key: data.key, url: tyroUrl, version: tyroVersion }) : null,
174
164
  data.eftpos === "windcave" ? /* @__PURE__ */ import_react.default.createElement(
175
165
  import_manufacturer.Windcave,
176
166
  {
@@ -179,8 +169,7 @@ var Pay = ({
179
169
  key: data.key,
180
170
  formatAmount
181
171
  }
182
- ) : null,
183
- data.eftpos === "linkly" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Linkly, { key: data.key, api, onChange }) : null
172
+ ) : null
184
173
  ) : null, data.type === import_const.PayRouteEnum.Unset && Comm ? /* @__PURE__ */ import_react.default.createElement(
185
174
  Comm,
186
175
  {
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "stripe" | "payo" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -48,7 +48,6 @@ var Event = () => {
48
48
  const { onOpenEventDetail, open } = (0, import_Sales.useEventDetail)();
49
49
  const [lists, setLists] = (0, import_react.useState)();
50
50
  const customer = (0, import_useLoginUser.default)();
51
- const { appUtils } = (0, import_Sales.useCustomer)();
52
51
  (0, import_react.useEffect)(() => {
53
52
  var _a2;
54
53
  const eventList = (eventData == null ? void 0 : eventData.eventList) || [];
@@ -60,22 +59,16 @@ var Event = () => {
60
59
  }
61
60
  }, [eventData == null ? void 0 : eventData.eventList]);
62
61
  (0, import_react.useEffect)(() => {
63
- var _a2, _b2, _c, _d, _e;
62
+ var _a2, _b2;
64
63
  const id = (_b2 = (_a2 = data == null ? void 0 : data.resourceData) == null ? void 0 : _a2.currentResourceItem) == null ? void 0 : _b2.id;
65
64
  if (!id) return;
66
- const history = ((_c = appUtils == null ? void 0 : appUtils.getHistory) == null ? void 0 : _c.call(appUtils)) || {};
67
- const query = (_d = history == null ? void 0 : history.location) == null ? void 0 : _d.query;
68
- const params = {
65
+ getEventList.run({
69
66
  event_item_resource_id: id,
70
67
  skip: 1,
71
68
  num: 100,
72
69
  customer_id: customer == null ? void 0 : customer.id,
73
70
  open_quotation: 1
74
- };
75
- if (query == null ? void 0 : query.ids) {
76
- params.ids = (_e = query == null ? void 0 : query.ids) == null ? void 0 : _e.split(",");
77
- }
78
- getEventList.run(params);
71
+ });
79
72
  }, [(_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.currentResourceItem) == null ? void 0 : _b.id, customer == null ? void 0 : customer.id]);
80
73
  const handleClick = (item) => {
81
74
  selectEvent(item);
@@ -44,7 +44,7 @@ var import_OrderProductModal = __toESM(require("../Provider/OrderProductModal/in
44
44
  var import_index = require("./index.less");
45
45
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
46
46
  var BookingDetailModal = (props) => {
47
- var _a, _b, _c;
47
+ var _a;
48
48
  const modalContentRef = (0, import_react.useRef)(null);
49
49
  const context = (0, import_useEngineContext.default)();
50
50
  const { utils } = context.appHelper || {};
@@ -58,17 +58,11 @@ var BookingDetailModal = (props) => {
58
58
  checkBeforeSelectEventDetail
59
59
  } = (0, import_Sales.useEventDetail)();
60
60
  const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
61
- const { initData } = (0, import_Sales.useInit)();
62
61
  const [activeTab, setActiveTab] = (0, import_react.useState)("introduction");
63
62
  const [isScrolling, setIsScrolling] = (0, import_react.useState)(false);
64
63
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
65
64
  const isUserClickRef = (0, import_react.useRef)(false);
66
65
  const scrollTimeoutRef = (0, import_react.useRef)(null);
67
- const buttonText = (0, import_react.useMemo)(() => {
68
- var _a2, _b2, _c2;
69
- const config = ((_b2 = (_a2 = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a2.config) == null ? void 0 : _b2.product_display_setting) || {};
70
- return ((_c2 = utils == null ? void 0 : utils.translation) == null ? void 0 : _c2.call(utils, config == null ? void 0 : config.booking_event_v2_product_detail_button)) || import_utils.locales.getText("pisell2.event.add.to.cart");
71
- }, [(_b = (_a = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a.config) == null ? void 0 : _b.product_display_setting]);
72
66
  const anchorOptions = (0, import_react.useMemo)(
73
67
  () => [
74
68
  {
@@ -97,7 +91,7 @@ var BookingDetailModal = (props) => {
97
91
  const images = (0, import_react.useMemo)(() => {
98
92
  var _a2;
99
93
  return ((_a2 = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a2.images) || [];
100
- }, [(_c = detail == null ? void 0 : detail.introduction) == null ? void 0 : _c.images]);
94
+ }, [(_a = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a.images]);
101
95
  (0, import_react.useEffect)(() => {
102
96
  if (!modalContentRef.current) return;
103
97
  let isCurrentlyScrolling = false;
@@ -289,7 +283,7 @@ var BookingDetailModal = (props) => {
289
283
  destroyOnClose: true,
290
284
  className: "booking-detail-modal",
291
285
  onCancel: onCloseEventDetail,
292
- okText: buttonText,
286
+ okText: import_utils.locales.getText("pisell2.event.add.to.cart"),
293
287
  cancelVisible: false,
294
288
  onOk: handleOk,
295
289
  width: (0, import_utils.isMobile)() ? "100%" : 600,
@@ -55,17 +55,13 @@ var Content = () => {
55
55
  getBoardSetting.run({ item_type: "event_booking_v2" });
56
56
  }, []);
57
57
  (0, import_react.useEffect)(() => {
58
- var _a2, _b, _c;
59
- const history = ((_a2 = utils == null ? void 0 : utils.getHistory) == null ? void 0 : _a2.call(utils)) || {};
60
- const query = (_b = history == null ? void 0 : history.location) == null ? void 0 : _b.query;
61
- const params = {
62
- front_end_cache_id: (query == null ? void 0 : query.cacheId) || ""
63
- };
64
- if (query == null ? void 0 : query.ids) {
65
- params.event_item_ids = (_c = query == null ? void 0 : query.ids) == null ? void 0 : _c.split(",");
66
- }
67
- getResourceList.run(params);
68
- }, []);
58
+ if (!form_id) return;
59
+ getResourceList.run({
60
+ form_id,
61
+ shop_id,
62
+ form_data_status: "active"
63
+ });
64
+ }, [form_id]);
69
65
  return /* @__PURE__ */ import_react.default.createElement(
70
66
  "div",
71
67
  {
@@ -51,7 +51,7 @@ var locales_default = {
51
51
  "pisell2.event.campus": "Campus",
52
52
  "pisell2.event.resource": "Location",
53
53
  "pisell2.event.booking.options": "Booking options",
54
- "pisell2.event.add.to.cart": "Add to Cart",
54
+ "pisell2.event.add.to.cart": "Add to cart",
55
55
  "pisell2.event.description": "Description",
56
56
  "pisell2.event.view.more": "View more",
57
57
  "pisell2.event.view.less": "View less",
@@ -124,7 +124,7 @@ var locales_default = {
124
124
  "pisell2.event.campus": "校区",
125
125
  "pisell2.event.resource": "资源",
126
126
  "pisell2.event.booking.options": "预约选项",
127
- "pisell2.event.add.to.cart": "加入购物车",
127
+ "pisell2.event.add.to.cart": "添加到购物车",
128
128
  "pisell2.event.description": "描述",
129
129
  "pisell2.event.view.more": "查看更多",
130
130
  "pisell2.event.view.less": "收起",
@@ -197,7 +197,7 @@ var locales_default = {
197
197
  "pisell2.event.campus": "校區",
198
198
  "pisell2.event.resource": "資源",
199
199
  "pisell2.event.booking.options": "預約選項",
200
- "pisell2.event.add.to.cart": "加入購物車",
200
+ "pisell2.event.add.to.cart": "添加到購物車",
201
201
  "pisell2.event.description": "描述",
202
202
  "pisell2.event.view.more": "查看更多",
203
203
  "pisell2.event.view.less": "收起",
@@ -15,6 +15,4 @@ import WorkspaceListDetail from './workSpaceListDetail/';
15
15
  import WorkspaceList from './workSpaceList';
16
16
  import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
17
  import SubTotal from './subTotal';
18
- import StepController from './stepController';
19
- import EditBookingModal from './booking/editBookingModal';
20
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, StepController, EditBookingModal };
18
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
@@ -34,13 +34,11 @@ __export(components_exports, {
34
34
  BookingForms: () => import_forms.default,
35
35
  BookingInfo: () => import_info.default,
36
36
  BookingNotes: () => import_notes.default,
37
- EditBookingModal: () => import_editBookingModal.default,
38
37
  Login: () => import_login.default,
39
38
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
40
39
  ProductExtension: () => import_productExtension.default,
41
40
  RuleSetting: () => import_ruleSetting.default,
42
41
  Schedules: () => import_schedules.default,
43
- StepController: () => import_stepController.default,
44
42
  SubTotal: () => import_subTotal.default,
45
43
  TaxSelect: () => import_taxSelect.default,
46
44
  ToCPay: () => import_toC.default,
@@ -67,8 +65,6 @@ var import_workSpaceListDetail = __toESM(require("./workSpaceListDetail/"));
67
65
  var import_workSpaceList = __toESM(require("./workSpaceList"));
68
66
  var import_pisellSelectCustomerModal = __toESM(require("./pisellSelectCustomerModal"));
69
67
  var import_subTotal = __toESM(require("./subTotal"));
70
- var import_stepController = __toESM(require("./stepController"));
71
- var import_editBookingModal = __toESM(require("./booking/editBookingModal"));
72
68
  // Annotate the CommonJS export names for ESM import in node:
73
69
  0 && (module.exports = {
74
70
  Booking,
@@ -76,13 +72,11 @@ var import_editBookingModal = __toESM(require("./booking/editBookingModal"));
76
72
  BookingForms,
77
73
  BookingInfo,
78
74
  BookingNotes,
79
- EditBookingModal,
80
75
  Login,
81
76
  PisellSelectCustomerModal,
82
77
  ProductExtension,
83
78
  RuleSetting,
84
79
  Schedules,
85
- StepController,
86
80
  SubTotal,
87
81
  TaxSelect,
88
82
  ToCPay,
@@ -65,7 +65,7 @@ var isOfflinePayment = (type) => {
65
65
  ].includes(type);
66
66
  };
67
67
  var PaymentMethods = (props, ref) => {
68
- var _a, _b, _c;
68
+ var _a;
69
69
  const MWCreditCardRef2 = (0, import_react.useRef)(null);
70
70
  const SuperPayAliPayH5Ref2 = (0, import_react.useRef)(null);
71
71
  const StripePayRef2 = (0, import_react.useRef)(null);
@@ -83,9 +83,9 @@ var PaymentMethods = (props, ref) => {
83
83
  const context = (0, import_useEngineContext.default)();
84
84
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
85
85
  const init = async ({ type, payGroup }) => {
86
- var _a2, _b2;
86
+ var _a2, _b;
87
87
  const waitAmount = (payGroup == null ? void 0 : payGroup.wait_amount) || 0;
88
- const cards = (_b2 = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b2.length;
88
+ const cards = (_b = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b.length;
89
89
  if (cards && (waitAmount <= 0 || isOfflinePayment(type))) {
90
90
  try {
91
91
  await (0, import_serve.walletPassPay)((0, import_utils.formatWalletPassParams)(payGroup));
@@ -115,11 +115,10 @@ var PaymentMethods = (props, ref) => {
115
115
  }
116
116
  await onPayByType({ type, payGroup });
117
117
  };
118
- console.log("paymentResult isAppEnv", (_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b), interaction, context);
119
118
  (0, import_react.useEffect)(() => {
120
- var _a2, _b2, _c2, _d;
121
- console.log("paymentResult isAppEnv", (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b2.call(_a2));
122
- if ((_d = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d.call(_c2)) {
119
+ var _a2, _b, _c, _d;
120
+ console.log("paymentResult isAppEnv", (_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b.call(_a2));
121
+ if ((_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.isAppEnv) == null ? void 0 : _d.call(_c)) {
123
122
  interaction.utils.mountFunction("global", "paymentResult", (strResult) => {
124
123
  console.log("paymentResult", strResult);
125
124
  if (!(0, import_utils2.isJson)(strResult)) return;
@@ -135,18 +134,18 @@ var PaymentMethods = (props, ref) => {
135
134
  }
136
135
  }, []);
137
136
  const onPayByType = async ({ type, payGroup }) => {
138
- var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
137
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
139
138
  console.log(type, payGroup);
140
139
  if (type === "mw.apple") {
141
140
  await ((_a2 = ApplePayRef2.current) == null ? void 0 : _a2.init({ payGroup }));
142
141
  return;
143
142
  }
144
143
  if (type === "mw.google") {
145
- await ((_b2 = GooglePayRef2.current) == null ? void 0 : _b2.init({ payGroup }));
144
+ await ((_b = GooglePayRef2.current) == null ? void 0 : _b.init({ payGroup }));
146
145
  return;
147
146
  }
148
147
  if (type === "mw.credit_card") {
149
- (_c2 = MWCreditCardRef2.current) == null ? void 0 : _c2.init({ payGroup });
148
+ (_c = MWCreditCardRef2.current) == null ? void 0 : _c.init({ payGroup });
150
149
  return;
151
150
  }
152
151
  if (type === "superpay.alipay.h5") {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
+ request = {};
30
31
  constructor() {
31
- this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -38,7 +38,6 @@ var import_ahooks = require("ahooks");
38
38
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
39
39
  var import_utils2 = require("../../../booking/utils");
40
40
  var import_utils3 = require("../../../booking/info2/service/addService/utils");
41
- var import_status = require("../../../booking/info/service2/status");
42
41
  var import_utils4 = require("../../../booking/info/service2/utils");
43
42
  var import_utils5 = require("../../../booking/info/utils");
44
43
  var import_serve = require("../../../booking/info/service/serve");
@@ -327,7 +326,10 @@ var AddSerivce = (props) => {
327
326
  title: "addService",
328
327
  content: [
329
328
  { key: "添加数据", value: JSON.stringify(sendData) },
330
- { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss") }
329
+ {
330
+ key: "日期",
331
+ value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
332
+ }
331
333
  ]
332
334
  });
333
335
  }
@@ -364,7 +366,7 @@ var AddSerivce = (props) => {
364
366
  if ((0, import_utils4.isDaysBooking)(state)) {
365
367
  if (!(0, import_utils4.holderId)(state)) {
366
368
  _list = _list.filter(
367
- (item) => !import_status.appointmentTypes.includes(item.extension_type)
369
+ (item) => (0, import_utils4.isNormalProductByDurationSchedule)(item)
368
370
  );
369
371
  }
370
372
  }
@@ -404,7 +406,7 @@ var AddSerivce = (props) => {
404
406
  isTitle: 1,
405
407
  isSubtitle: 1,
406
408
  isPrice: 1,
407
- isOriginPrice: 0,
409
+ isOriginPrice: 1,
408
410
  isStock: 1
409
411
  }
410
412
  }
@@ -1,4 +1,3 @@
1
1
  import './index.less';
2
- export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
2
  declare const TicketBooking: () => JSX.Element;
4
3
  export default TicketBooking;