@pisell/private-materials 3.3.95 → 3.3.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +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/components/Sales/Cart/index.js +5 -1
  12. package/es/components/Sales/Cart/utils.d.ts +40 -0
  13. package/es/components/Sales/Cart/utils.js +167 -0
  14. package/es/components/Sales/Checkout/index.d.ts +4 -0
  15. package/es/components/Sales/Checkout/index.js +52 -8
  16. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  17. package/es/components/Sales/Checkout/serve.js +16 -2
  18. package/es/components/Sales/Checkout/utils.js +7 -1
  19. package/es/components/Sales/Summary/index.d.ts +10 -0
  20. package/es/components/Sales/Summary/index.js +17 -2
  21. package/es/components/Sales/Summary/serve.d.ts +1 -0
  22. package/es/components/Sales/Summary/serve.js +6 -0
  23. package/es/components/Sales/Summary/utils.d.ts +15 -0
  24. package/es/components/Sales/Summary/utils.js +43 -1
  25. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  26. package/es/components/appointmentBooking/components/Content/index.js +15 -1
  27. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  28. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  29. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  30. package/es/components/appointmentBooking/components/Services/index.js +23 -27
  31. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  32. package/es/components/appointmentBooking/deposit/index.js +4 -2
  33. package/es/components/appointmentBooking/index.js +14 -0
  34. package/es/components/appointmentBooking/index.less +1 -1
  35. package/es/components/booking/addons/model.d.ts +1 -10
  36. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  37. package/es/components/booking/components/browserSelect/index.js +1 -1
  38. package/es/components/booking/components/voucher/index.js +2 -2
  39. package/es/components/booking/forms/model.d.ts +1 -10
  40. package/es/components/booking/forms/model.js +5 -5
  41. package/es/components/booking/info/index.d.ts +0 -1
  42. package/es/components/booking/info/model.d.ts +1 -10
  43. package/es/components/booking/info/model.js +5 -0
  44. package/es/components/booking/info/service/Lists.d.ts +1 -0
  45. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  46. package/es/components/booking/info/service/like/index.js +1 -1
  47. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  48. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  49. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  50. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  51. package/es/components/booking/materiels/startTime/index.js +1 -1
  52. package/es/components/booking/model.d.ts +1 -9
  53. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  54. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  55. package/es/components/booking/notes/model.d.ts +1 -10
  56. package/es/components/booking/notes/model.js +5 -5
  57. package/es/components/booking/payments/model.d.ts +1 -10
  58. package/es/components/booking/payments/model.js +5 -5
  59. package/es/components/booking/utils.d.ts +2 -2
  60. package/es/components/eftposPay/amount.d.ts +1 -1
  61. package/es/components/eftposPay/app.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  63. package/es/components/eftposPay/const.d.ts +4 -1
  64. package/es/components/eftposPay/const.js +3 -1
  65. package/es/components/eftposPay/device.d.ts +1 -1
  66. package/es/components/eftposPay/hooks.d.ts +2 -2
  67. package/es/components/eftposPay/hooks.js +3 -1
  68. package/es/components/eftposPay/index.js +1 -1
  69. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  70. package/es/components/eftposPay/linkly/const.js +82 -0
  71. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  72. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  73. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  74. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  75. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  76. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  77. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  78. package/es/components/eftposPay/linkly/index.js +197 -0
  79. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  80. package/es/components/eftposPay/linkly/service.js +81 -0
  81. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  82. package/es/components/eftposPay/manufacturer.js +4 -0
  83. package/es/components/eftposPay/pay.d.ts +1 -1
  84. package/es/components/eftposPay/pay.js +6 -2
  85. package/es/components/eftposPay/payo/config.js +30 -3
  86. package/es/components/eftposPay/store/index.d.ts +4 -4
  87. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  88. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  89. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  90. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  91. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  92. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -1
  93. package/es/components/eventBooking/locales.d.ts +24 -0
  94. package/es/components/eventBooking/locales.js +27 -3
  95. package/es/components/listComponent/index.js +5 -5
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  97. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  98. package/es/components/pay/toC/model.d.ts +1 -9
  99. package/es/components/productExtension/card/index.js +3 -3
  100. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  101. package/es/components/productExtension/fields/Forms/index.js +12 -12
  102. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  103. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  104. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  105. package/es/components/productExtension/server.js +2 -2
  106. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  107. package/es/components/schedules/calendar/index.js +4 -4
  108. package/es/components/schedules/calendar/serve.js +2 -2
  109. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  110. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  111. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  112. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  113. package/es/components/schedules/components/ResourceList/index.js +1 -1
  114. package/es/components/schedules/components/Search/index.js +5 -5
  115. package/es/components/schedules/model.d.ts +1 -9
  116. package/es/components/schedules/model.js +5 -5
  117. package/es/components/schedules/openHours/index.js +1 -1
  118. package/es/components/schedules/openHours/serve.js +2 -2
  119. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  120. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  121. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  122. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  123. package/es/components/schedules/products/index.d.ts +1 -0
  124. package/es/components/schedules/products/serve.js +2 -2
  125. package/es/components/schedules/products/utils.js +5 -5
  126. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  127. package/es/components/schedules/resources/detail/index.js +10 -10
  128. package/es/components/schedules/resources/list/index.js +2 -2
  129. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  130. package/es/components/schedules/resources/serve.js +2 -2
  131. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  132. package/es/components/schedules/utils.d.ts +1 -1
  133. package/es/components/schedules/utils.js +4 -4
  134. package/es/components/selectModal/index.js +2 -2
  135. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  136. package/es/components/ticketBooking/components/ticketBooking/index.js +120 -1
  137. package/es/components/ticketBooking/locales.d.ts +164 -146
  138. package/es/components/ticketBooking/locales.js +195 -147
  139. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  140. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  141. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  142. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  143. package/es/components/wallet/Detail/model.d.ts +1 -13
  144. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  145. package/es/components/wallet/PointCard/model.d.ts +1 -13
  146. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  147. package/es/components/wallet/Voucher/model.d.ts +1 -13
  148. package/es/components/wallet/model.d.ts +1 -9
  149. package/es/hooks/useComponents.js +1 -1
  150. package/es/utils/index.d.ts +1 -1
  151. package/lib/components/Sales/Cart/index.js +1 -0
  152. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  153. package/lib/components/Sales/Cart/utils.js +117 -0
  154. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  155. package/lib/components/Sales/Checkout/index.js +39 -7
  156. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  157. package/lib/components/Sales/Checkout/serve.js +7 -2
  158. package/lib/components/Sales/Checkout/utils.js +2 -0
  159. package/lib/components/Sales/Summary/index.d.ts +10 -0
  160. package/lib/components/Sales/Summary/index.js +7 -1
  161. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  162. package/lib/components/Sales/Summary/serve.js +32 -0
  163. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  164. package/lib/components/Sales/Summary/utils.js +30 -1
  165. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  166. package/lib/components/appointmentBooking/components/Content/index.js +6 -1
  167. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  168. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  169. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  170. package/lib/components/appointmentBooking/components/Services/index.js +6 -11
  171. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  172. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  173. package/lib/components/appointmentBooking/index.js +11 -0
  174. package/lib/components/appointmentBooking/index.less +1 -1
  175. package/lib/components/booking/addons/model.d.ts +1 -10
  176. package/lib/components/booking/components/voucher/index.js +2 -2
  177. package/lib/components/booking/forms/model.d.ts +1 -10
  178. package/lib/components/booking/info/index.d.ts +0 -1
  179. package/lib/components/booking/info/model.d.ts +1 -10
  180. package/lib/components/booking/info/model.js +3 -0
  181. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  182. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  183. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  184. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  185. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  186. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  187. package/lib/components/booking/model.d.ts +1 -9
  188. package/lib/components/booking/notes/model.d.ts +1 -10
  189. package/lib/components/booking/payments/model.d.ts +1 -10
  190. package/lib/components/booking/utils.d.ts +2 -2
  191. package/lib/components/eftposPay/amount.d.ts +1 -1
  192. package/lib/components/eftposPay/app.d.ts +1 -0
  193. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  194. package/lib/components/eftposPay/const.d.ts +4 -1
  195. package/lib/components/eftposPay/const.js +2 -0
  196. package/lib/components/eftposPay/device.d.ts +1 -1
  197. package/lib/components/eftposPay/hooks.d.ts +2 -2
  198. package/lib/components/eftposPay/hooks.js +11 -4
  199. package/lib/components/eftposPay/index.js +1 -1
  200. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  201. package/lib/components/eftposPay/linkly/const.js +102 -0
  202. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  203. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  204. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  205. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  206. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  207. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  208. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  209. package/lib/components/eftposPay/linkly/index.js +208 -0
  210. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  211. package/lib/components/eftposPay/linkly/service.js +55 -0
  212. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  213. package/lib/components/eftposPay/manufacturer.js +6 -0
  214. package/lib/components/eftposPay/pay.d.ts +1 -1
  215. package/lib/components/eftposPay/pay.js +13 -2
  216. package/lib/components/eftposPay/payo/config.js +22 -2
  217. package/lib/components/eftposPay/store/index.d.ts +4 -4
  218. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
  219. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  220. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  221. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  222. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  223. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  224. package/lib/components/eventBooking/locales.d.ts +24 -0
  225. package/lib/components/eventBooking/locales.js +27 -3
  226. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  227. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  228. package/lib/components/pay/toC/model.d.ts +1 -9
  229. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  230. package/lib/components/schedules/model.d.ts +1 -9
  231. package/lib/components/schedules/products/index.d.ts +1 -0
  232. package/lib/components/schedules/utils.d.ts +1 -1
  233. package/lib/components/schedules/utils.js +1 -1
  234. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  235. package/lib/components/ticketBooking/components/ticketBooking/index.js +120 -1
  236. package/lib/components/ticketBooking/locales.d.ts +164 -146
  237. package/lib/components/ticketBooking/locales.js +22 -4
  238. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  239. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  240. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  241. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  242. package/lib/components/wallet/Detail/model.d.ts +1 -13
  243. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  244. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  245. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  246. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  247. package/lib/components/wallet/model.d.ts +1 -9
  248. package/lib/utils/index.d.ts +1 -1
  249. package/package.json +3 -3
@@ -71,6 +71,14 @@ declare const _default: {
71
71
  'pisell2.event.capacity.limit.reached.tip': string;
72
72
  'pisell2.event.schedule.item.expand': string;
73
73
  'pisell2.event.schedule.item.collapse': string;
74
+ 'pisell2.appointment.deposit': string;
75
+ 'pisell2.appointment.deposit.agreed': string;
76
+ 'pisell2.appointment.deposit.agree.policy': string;
77
+ 'pisell2.appointment.deposit.and': string;
78
+ 'pisell2.appointment.deposit.amount.tip1': string;
79
+ 'pisell2.appointment.deposit.amount.tip2': string;
80
+ 'pisell2.appointment.deposit.close': string;
81
+ 'pisell2.appointment.booking.empty.data': string;
74
82
  };
75
83
  'zh-CN': {
76
84
  'pisell2.event.calendar.limit.unavailable': string;
@@ -144,6 +152,14 @@ declare const _default: {
144
152
  'pisell2.event.capacity.limit.reached.tip': string;
145
153
  'pisell2.event.schedule.item.expand': string;
146
154
  'pisell2.event.schedule.item.collapse': string;
155
+ 'pisell2.appointment.deposit': string;
156
+ 'pisell2.appointment.deposit.agreed': string;
157
+ 'pisell2.appointment.deposit.agree.policy': string;
158
+ 'pisell2.appointment.deposit.and': string;
159
+ 'pisell2.appointment.deposit.amount.tip1': string;
160
+ 'pisell2.appointment.deposit.amount.tip2': string;
161
+ 'pisell2.appointment.deposit.close': string;
162
+ 'pisell2.appointment.booking.empty.data': string;
147
163
  };
148
164
  'zh-HK': {
149
165
  'pisell2.event.calendar.limit.unavailable': string;
@@ -217,6 +233,14 @@ declare const _default: {
217
233
  'pisell2.event.capacity.limit.reached.tip': string;
218
234
  'pisell2.event.schedule.item.expand': string;
219
235
  'pisell2.event.schedule.item.collapse': string;
236
+ 'pisell2.appointment.deposit': string;
237
+ 'pisell2.appointment.deposit.agreed': string;
238
+ 'pisell2.appointment.deposit.agree.policy': string;
239
+ 'pisell2.appointment.deposit.and': string;
240
+ 'pisell2.appointment.deposit.amount.tip1': string;
241
+ 'pisell2.appointment.deposit.amount.tip2': string;
242
+ 'pisell2.appointment.deposit.close': string;
243
+ 'pisell2.appointment.booking.empty.data': string;
220
244
  };
221
245
  };
222
246
  export default _default;
@@ -94,7 +94,15 @@ var locales_default = {
94
94
  "pisell2.event.capacity.limit.reached.title": "Capacity limit reached",
95
95
  "pisell2.event.capacity.limit.reached.tip": "One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.",
96
96
  "pisell2.event.schedule.item.expand": "See more",
97
- "pisell2.event.schedule.item.collapse": "See less"
97
+ "pisell2.event.schedule.item.collapse": "See less",
98
+ "pisell2.appointment.deposit": "Deposit",
99
+ "pisell2.appointment.deposit.agreed": "I have read and agree to the ",
100
+ "pisell2.appointment.deposit.agree.policy": "You need to agree the policy to proceed",
101
+ "pisell2.appointment.deposit.and": " & ",
102
+ "pisell2.appointment.deposit.amount.tip1": " needs to be paid as deposit.",
103
+ "pisell2.appointment.deposit.amount.tip2": " ",
104
+ "pisell2.appointment.deposit.close": "Close",
105
+ "pisell2.appointment.booking.empty.data": "No data"
98
106
  },
99
107
  "zh-CN": {
100
108
  "pisell2.event.calendar.limit.unavailable": "不可预约",
@@ -167,7 +175,15 @@ var locales_default = {
167
175
  "pisell2.event.capacity.limit.reached.title": "活动名额已满",
168
176
  "pisell2.event.capacity.limit.reached.tip": "购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。",
169
177
  "pisell2.event.schedule.item.expand": "查看更多",
170
- "pisell2.event.schedule.item.collapse": "收起"
178
+ "pisell2.event.schedule.item.collapse": "收起",
179
+ "pisell2.appointment.deposit": "定金",
180
+ "pisell2.appointment.deposit.agreed": "我已阅读并同意 ",
181
+ "pisell2.appointment.deposit.agree.policy": "您需要同意协议才能继续",
182
+ "pisell2.appointment.deposit.and": " 和 ",
183
+ "pisell2.appointment.deposit.amount.tip1": "请支付 ",
184
+ "pisell2.appointment.deposit.amount.tip2": " 定金。",
185
+ "pisell2.appointment.deposit.close": "关闭",
186
+ "pisell2.appointment.booking.empty.data": "暂无数据"
171
187
  },
172
188
  "zh-HK": {
173
189
  "pisell2.event.calendar.limit.unavailable": "不可預約",
@@ -240,6 +256,14 @@ var locales_default = {
240
256
  "pisell2.event.capacity.limit.reached.title": "活動名額已滿",
241
257
  "pisell2.event.capacity.limit.reached.tip": "購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。",
242
258
  "pisell2.event.schedule.item.expand": "查看更多",
243
- "pisell2.event.schedule.item.collapse": "收起"
259
+ "pisell2.event.schedule.item.collapse": "收起",
260
+ "pisell2.appointment.deposit": "定金",
261
+ "pisell2.appointment.deposit.agreed": "我已閱讀並同意 ",
262
+ "pisell2.appointment.deposit.agree.policy": "您需要同意協議才能繼續",
263
+ "pisell2.appointment.deposit.and": " 和 ",
264
+ "pisell2.appointment.deposit.amount.tip1": "請支付 ",
265
+ "pisell2.appointment.deposit.amount.tip2": " 定金。",
266
+ "pisell2.appointment.deposit.close": "关闭",
267
+ "pisell2.appointment.booking.empty.data": "暫無數據"
244
268
  }
245
269
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -65,7 +65,7 @@ var isOfflinePayment = (type) => {
65
65
  ].includes(type);
66
66
  };
67
67
  var PaymentMethods = (props, ref) => {
68
- var _a;
68
+ var _a, _b, _c;
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, _b;
86
+ var _a2, _b2;
87
87
  const waitAmount = (payGroup == null ? void 0 : payGroup.wait_amount) || 0;
88
- const cards = (_b = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b.length;
88
+ const cards = (_b2 = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b2.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,10 +115,11 @@ 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);
118
119
  (0, import_react.useEffect)(() => {
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)) {
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)) {
122
123
  interaction.utils.mountFunction("global", "paymentResult", (strResult) => {
123
124
  console.log("paymentResult", strResult);
124
125
  if (!(0, import_utils2.isJson)(strResult)) return;
@@ -134,18 +135,18 @@ var PaymentMethods = (props, ref) => {
134
135
  }
135
136
  }, []);
136
137
  const onPayByType = async ({ type, payGroup }) => {
137
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
138
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
138
139
  console.log(type, payGroup);
139
140
  if (type === "mw.apple") {
140
141
  await ((_a2 = ApplePayRef2.current) == null ? void 0 : _a2.init({ payGroup }));
141
142
  return;
142
143
  }
143
144
  if (type === "mw.google") {
144
- await ((_b = GooglePayRef2.current) == null ? void 0 : _b.init({ payGroup }));
145
+ await ((_b2 = GooglePayRef2.current) == null ? void 0 : _b2.init({ payGroup }));
145
146
  return;
146
147
  }
147
148
  if (type === "mw.credit_card") {
148
- (_c = MWCreditCardRef2.current) == null ? void 0 : _c.init({ payGroup });
149
+ (_c2 = MWCreditCardRef2.current) == null ? void 0 : _c2.init({ payGroup });
149
150
  return;
150
151
  }
151
152
  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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type CurrentDayProps = {
3
4
  onClose: () => void;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Products: () => JSX.Element;
3
4
  export default Products;
@@ -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;
@@ -406,7 +406,7 @@ var AddSerivce = (props) => {
406
406
  isTitle: 1,
407
407
  isSubtitle: 1,
408
408
  isPrice: 1,
409
- isOriginPrice: 1,
409
+ isOriginPrice: 0,
410
410
  isStock: 1
411
411
  }
412
412
  }
@@ -46,6 +46,9 @@ var import_utils2 = require("../../utils");
46
46
  var import_addServiceVariant = __toESM(require("../addServiceVariant"));
47
47
  var import_timeBar = __toESM(require("../timeBar"));
48
48
  var import_index = require("./index.less");
49
+ var import_utils3 = require("../../../booking/info/service2/utils");
50
+ var import_amount = require("../../../booking/components/footer/amount");
51
+ var import_formatProductMessage = __toESM(require("../../utils/formatProductMessage"));
49
52
  var _formatBookingDetail = (data, modalState) => {
50
53
  var _a, _b, _c, _d;
51
54
  let {
@@ -189,7 +192,17 @@ var TicketBooking = () => {
189
192
  const [state, setState] = (0, import_miniRedux.useStore)();
190
193
  const engineContext = (0, import_useEngineContext.default)();
191
194
  const { props: engineProps } = engineContext.engine;
192
- const { action, isTerminal, lowcodeRef, interaction, store, storage, Toast } = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
195
+ const {
196
+ action,
197
+ isTerminal,
198
+ lowcodeRef,
199
+ interaction,
200
+ store,
201
+ storage,
202
+ Toast,
203
+ getSymbolic,
204
+ translation
205
+ } = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
193
206
  const _persistentRef = (0, import_react.useRef)(false);
194
207
  const _initStateRef = (0, import_react.useRef)({});
195
208
  const _listTimerRef = (0, import_react.useRef)();
@@ -276,6 +289,112 @@ var TicketBooking = () => {
276
289
  intervalSetTime: isInterval
277
290
  });
278
291
  };
292
+ (0, import_react.useEffect)(() => {
293
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
294
+ const cartItems = (_b = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.service) == null ? void 0 : _b.value;
295
+ if (!Array.isArray(cartItems) || cartItems.length === 0) {
296
+ (_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.postMessageToApp) == null ? void 0 : _d.call(_c, {
297
+ module: "cds",
298
+ key: "cartUpdate",
299
+ data: {
300
+ currency_symbol: getSymbolic(),
301
+ total: "0",
302
+ // 小计
303
+ products: [],
304
+ fees: []
305
+ }
306
+ });
307
+ }
308
+ const total = (0, import_amount.getSumTotal)(state.modalState, true);
309
+ let formatedProducts = [];
310
+ try {
311
+ formatedProducts = (0, import_utils3.formatProducts)(
312
+ cartItems,
313
+ state.modalState,
314
+ false,
315
+ true,
316
+ true
317
+ );
318
+ } catch (error) {
319
+ console.error(error);
320
+ }
321
+ console.log("formatedProducts", total, formatedProducts);
322
+ let fees = [];
323
+ let products = [];
324
+ for (const item of formatedProducts) {
325
+ const { id, name, image, origin_total, total: total2, num, note, _origin } = item;
326
+ (_e = _origin == null ? void 0 : _origin.discount_list) == null ? void 0 : _e.forEach((dl) => {
327
+ fees.push({
328
+ isReduce: dl.type === "good_pass",
329
+ title: translation(dl == null ? void 0 : dl.discount.title),
330
+ price: dl.amount,
331
+ type: dl.type
332
+ });
333
+ });
334
+ let msg = "";
335
+ try {
336
+ msg = (0, import_formatProductMessage.default)(
337
+ {
338
+ ...item,
339
+ currency_symbol: getSymbolic()
340
+ },
341
+ (_f = engineContext.appHelper) == null ? void 0 : _f.utils
342
+ );
343
+ } catch (error) {
344
+ console.error(error);
345
+ }
346
+ let _item = {
347
+ productID: id,
348
+ title: name,
349
+ cover: image,
350
+ // 封面图
351
+ price: total2,
352
+ // 售价
353
+ buyCount: num,
354
+ // 购买数量
355
+ productFormatMessage: msg,
356
+ note
357
+ };
358
+ if (origin_total !== total2) _item.modifyPrice = origin_total;
359
+ products.push(_item);
360
+ }
361
+ console.log(
362
+ "formatedProducts",
363
+ (_g = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _g(products.length)
364
+ );
365
+ if (products.length > 0) {
366
+ fees.unshift({
367
+ title: import_utils.locales.getText("pisell2.product.card.subtotal"),
368
+ price: total.productAmount,
369
+ type: "subtotal",
370
+ message: (_h = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _h(
371
+ products.length
372
+ )
373
+ });
374
+ }
375
+ console.log("start post message, config:", {
376
+ module: "cds",
377
+ key: "cartUpdate",
378
+ data: {
379
+ currency_symbol: getSymbolic(),
380
+ total: total.productAmount,
381
+ // 小计
382
+ products,
383
+ fees
384
+ }
385
+ });
386
+ (_j = (_i = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _i.postMessageToApp) == null ? void 0 : _j.call(_i, {
387
+ module: "cds",
388
+ key: "cartUpdate",
389
+ data: {
390
+ currency_symbol: getSymbolic(),
391
+ total: total.expectAmount,
392
+ // 小计
393
+ products,
394
+ fees
395
+ }
396
+ });
397
+ }, [state.modalState]);
279
398
  const _setModalState = (props) => {
280
399
  var _a2, _b;
281
400
  console.log("同步state到外层", props);