@pisell/private-materials 6.4.73 → 6.4.75

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 (235) 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 +4 -4
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +5 -5
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  15. package/es/components/booking/components/footer/index.js +62 -53
  16. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  17. package/es/components/booking/forms/model.d.ts +10 -1
  18. package/es/components/booking/forms/table/index.d.ts +1 -0
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  20. package/es/components/booking/info/model.d.ts +10 -1
  21. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  22. package/es/components/booking/info/service/like/index.d.ts +1 -0
  23. package/es/components/booking/info/service2/utils.d.ts +1 -1
  24. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  25. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  26. package/es/components/booking/model.d.ts +9 -1
  27. package/es/components/booking/notes/model.d.ts +10 -1
  28. package/es/components/booking/payments/model.d.ts +10 -1
  29. package/es/components/booking/utils.d.ts +2 -2
  30. package/es/components/checkout/PaymentModal.js +178 -108
  31. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  32. package/es/components/checkout/components/AdditionalModule/index.js +50 -12
  33. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  34. package/es/components/checkout/components/AmountSummary/index.less +1 -1
  35. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  36. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  37. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  38. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  39. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  40. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  41. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  42. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  43. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  44. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  45. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  46. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  47. package/es/components/checkout/index.less +1 -1
  48. package/es/components/checkout/locales.d.ts +3 -0
  49. package/es/components/checkout/locales.js +3 -0
  50. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  51. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  52. package/es/components/eftpos/form/index.d.ts +1 -0
  53. package/es/components/eftpos/group/index.d.ts +1 -0
  54. package/es/components/eftpos/hooks.d.ts +1 -0
  55. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  56. package/es/components/eftpos/icon/device.d.ts +1 -0
  57. package/es/components/eftpos/receipt/index.d.ts +1 -0
  58. package/es/components/eftposPay/amount.d.ts +1 -1
  59. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  60. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  61. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  63. package/es/components/eftposPay/device.d.ts +1 -1
  64. package/es/components/eftposPay/hooks.d.ts +2 -2
  65. package/es/components/eftposPay/store/index.d.ts +4 -4
  66. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  67. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  77. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  79. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  80. package/es/components/pay/toC/model.d.ts +9 -1
  81. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  82. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  83. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  84. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  85. package/es/components/schedules/model.d.ts +9 -1
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  88. package/es/components/schedules/products/index.d.ts +1 -0
  89. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  90. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  91. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  92. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  93. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  94. package/es/components/ticketBooking/locales.d.ts +6 -0
  95. package/es/components/ticketBooking/locales.js +9 -3
  96. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  97. package/es/components/wallet/Detail/model.d.ts +13 -1
  98. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  99. package/es/components/wallet/PointCard/model.d.ts +13 -1
  100. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  101. package/es/components/wallet/Voucher/model.d.ts +13 -1
  102. package/es/components/wallet/model.d.ts +9 -1
  103. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  104. package/es/plus/clientName/index.d.ts +1 -0
  105. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  106. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  107. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  108. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  109. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  110. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  111. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  112. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  113. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  114. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +11 -7
  115. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  116. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  117. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  118. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  119. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  120. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  121. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  122. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  123. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  124. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  125. package/lib/components/booking/addons/model.d.ts +10 -1
  126. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  127. package/lib/components/booking/components/footer/index.js +15 -8
  128. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  129. package/lib/components/booking/forms/model.d.ts +10 -1
  130. package/lib/components/booking/forms/table/index.d.ts +1 -0
  131. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  132. package/lib/components/booking/info/model.d.ts +10 -1
  133. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  134. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  135. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  136. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  137. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  138. package/lib/components/booking/model.d.ts +9 -1
  139. package/lib/components/booking/notes/model.d.ts +10 -1
  140. package/lib/components/booking/payments/model.d.ts +10 -1
  141. package/lib/components/booking/utils.d.ts +2 -2
  142. package/lib/components/checkout/PaymentModal.js +73 -11
  143. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  144. package/lib/components/checkout/components/AdditionalModule/index.js +50 -11
  145. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  146. package/lib/components/checkout/components/AmountSummary/index.less +1 -1
  147. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  148. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  149. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  150. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  151. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  152. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  153. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  154. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  155. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  156. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  157. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  158. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  159. package/lib/components/checkout/index.less +1 -1
  160. package/lib/components/checkout/locales.d.ts +3 -0
  161. package/lib/components/checkout/locales.js +3 -0
  162. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  163. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  164. package/lib/components/eftpos/form/index.d.ts +1 -0
  165. package/lib/components/eftpos/group/index.d.ts +1 -0
  166. package/lib/components/eftpos/hooks.d.ts +1 -0
  167. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  168. package/lib/components/eftpos/icon/device.d.ts +1 -0
  169. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  170. package/lib/components/eftposPay/amount.d.ts +1 -1
  171. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  172. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  173. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  174. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  175. package/lib/components/eftposPay/device.d.ts +1 -1
  176. package/lib/components/eftposPay/hooks.d.ts +2 -2
  177. package/lib/components/eftposPay/store/index.d.ts +4 -4
  178. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  179. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  180. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  181. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  182. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  183. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  184. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  185. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  186. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  187. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  188. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  189. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  190. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  191. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  192. package/lib/components/pay/toC/model.d.ts +9 -1
  193. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  194. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  195. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  196. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  197. package/lib/components/schedules/model.d.ts +9 -1
  198. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  199. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  200. package/lib/components/schedules/products/index.d.ts +1 -0
  201. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  202. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  203. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  204. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  205. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  206. package/lib/components/ticketBooking/locales.d.ts +6 -0
  207. package/lib/components/ticketBooking/locales.js +9 -3
  208. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  209. package/lib/components/wallet/Detail/model.d.ts +13 -1
  210. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  211. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  212. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  213. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  214. package/lib/components/wallet/model.d.ts +9 -1
  215. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  216. package/lib/plus/clientName/index.d.ts +1 -0
  217. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  218. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  219. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  220. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  221. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  222. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  223. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  224. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  225. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  226. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +9 -5
  227. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  228. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  229. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  230. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  231. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  232. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  233. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  234. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  235. package/package.json +1 -1
@@ -71,7 +71,7 @@
71
71
  grid-template-rows: auto auto;
72
72
  gap: 8px 16px;
73
73
  background-color: #f6f2ff;
74
- padding: 16px 16px 0 16px;
74
+ padding: 16px 16px 8px 16px;
75
75
  border-radius: 0 0 12px 12px;
76
76
  width: 100%; // 确保容器占满宽度
77
77
 
@@ -141,6 +141,7 @@ declare const _default: {
141
141
  'pisell2.checkout.modal.close-price-adjustment': string;
142
142
  'pisell2.checkout.modal.reset-price-adjustment': string;
143
143
  'pisell2.checkout.modal.done-price-adjustment': string;
144
+ 'pisell2.checkout.modal.price-adjustment-tips': string;
144
145
  'pisell2.checkout.send-payment-link.modal-title': string;
145
146
  'pisell2.checkout.send-payment-link.email-address': string;
146
147
  'pisell2.checkout.send-payment-link.email-placeholder': string;
@@ -302,6 +303,7 @@ declare const _default: {
302
303
  'pisell2.checkout.modal.close-price-adjustment': string;
303
304
  'pisell2.checkout.modal.reset-price-adjustment': string;
304
305
  'pisell2.checkout.modal.done-price-adjustment': string;
306
+ 'pisell2.checkout.modal.price-adjustment-tips': string;
305
307
  'pisell2.checkout.send-payment-link.modal-title': string;
306
308
  'pisell2.checkout.send-payment-link.email-address': string;
307
309
  'pisell2.checkout.send-payment-link.email-placeholder': string;
@@ -479,6 +481,7 @@ declare const _default: {
479
481
  'pisell2.checkout.modal.close-price-adjustment': string;
480
482
  'pisell2.checkout.modal.reset-price-adjustment': string;
481
483
  'pisell2.checkout.modal.done-price-adjustment': string;
484
+ 'pisell2.checkout.modal.price-adjustment-tips': string;
482
485
  'pisell2.checkout.send-payment-link.modal-title': string;
483
486
  'pisell2.checkout.send-payment-link.email-address': string;
484
487
  'pisell2.checkout.send-payment-link.email-placeholder': string;
@@ -180,6 +180,7 @@ export default {
180
180
  'pisell2.checkout.modal.close-price-adjustment': 'Close price adjustment modal',
181
181
  'pisell2.checkout.modal.reset-price-adjustment': 'Reset',
182
182
  'pisell2.checkout.modal.done-price-adjustment': 'Done',
183
+ 'pisell2.checkout.modal.price-adjustment-tips': 'Changing amount will update order total',
183
184
  // Send Payment Link Modal
184
185
  'pisell2.checkout.send-payment-link.modal-title': 'Send Payment Link',
185
186
  'pisell2.checkout.send-payment-link.email-address': 'Email Address',
@@ -380,6 +381,7 @@ export default {
380
381
  'pisell2.checkout.modal.close-price-adjustment': '关闭价格调整弹窗',
381
382
  'pisell2.checkout.modal.reset-price-adjustment': '重置',
382
383
  'pisell2.checkout.modal.done-price-adjustment': '完成',
384
+ 'pisell2.checkout.modal.price-adjustment-tips': '修改金额将更新订单总额',
383
385
  // Send Payment Link Modal
384
386
  'pisell2.checkout.send-payment-link.modal-title': '发送支付链接',
385
387
  'pisell2.checkout.send-payment-link.email-address': '邮箱地址',
@@ -618,6 +620,7 @@ export default {
618
620
  'pisell2.checkout.modal.close-price-adjustment': '關閉價格調整彈窗',
619
621
  'pisell2.checkout.modal.reset-price-adjustment': '重置',
620
622
  'pisell2.checkout.modal.done-price-adjustment': '完成',
623
+ 'pisell2.checkout.modal.price-adjustment-tips': '修改金額將更新訂單總額',
621
624
  // Send Payment Link Modal
622
625
  'pisell2.checkout.send-payment-link.modal-title': '發送支付鏈接',
623
626
  'pisell2.checkout.send-payment-link.email-address': '郵箱地址',
@@ -140,15 +140,17 @@ export var displayPaymentResultToast = /*#__PURE__*/function () {
140
140
  }
141
141
  _context.next = 5;
142
142
  return showPaymentResultToastSuccess({
143
+ mask: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) || false,
143
144
  title: calculateTitle(paymentStatus),
144
145
  subtitle: calculateSubtitle(paymentStatus, orderTotalAmount, gapAmount, getData),
145
146
  autoClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
146
147
  autoCloseDelay: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoCloseDelay) || 3000,
148
+ clickOutsideToClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
147
149
  showCountdownProgress: true,
148
150
  actionButtons: actionButtons || [],
149
151
  onClose: onToastClose || function () {},
150
152
  // 提供默认空函数
151
- closable: false // 控制关闭按钮显示
153
+ closable: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) // 控制关闭按钮显示
152
154
  });
153
155
  case 5:
154
156
  _context.next = 15;
@@ -160,10 +162,14 @@ export var displayPaymentResultToast = /*#__PURE__*/function () {
160
162
  }
161
163
  _context.next = 10;
162
164
  return showPaymentResultToastSuccess({
165
+ mask: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) || false,
163
166
  title: calculateTitle(paymentStatus),
164
167
  subtitle: calculateSubtitle(paymentStatus, orderTotalAmount, gapAmount, getData),
165
168
  autoClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
166
169
  actionButtons: actionButtons || [],
170
+ clickOutsideToClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
171
+ closable: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose),
172
+ // 控制关闭按钮显示
167
173
  onClose: onToastClose || function () {} // 提供默认空函数
168
174
  });
169
175
  case 10:
@@ -176,10 +182,14 @@ export var displayPaymentResultToast = /*#__PURE__*/function () {
176
182
  }
177
183
  _context.next = 15;
178
184
  return showPaymentResultToastFailed({
185
+ mask: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose) || false,
179
186
  title: calculateTitle(paymentStatus, failureReason),
180
187
  subtitle: calculateSubtitle(paymentStatus, orderTotalAmount / 100, gapAmount, getData),
181
188
  autoClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
182
189
  actionButtons: actionButtons || [],
190
+ clickOutsideToClose: (autoCloseConfig === null || autoCloseConfig === void 0 ? void 0 : autoCloseConfig.autoClose) || false,
191
+ closable: !(autoCloseConfig !== null && autoCloseConfig !== void 0 && autoCloseConfig.autoClose),
192
+ // 控制关闭按钮显示
183
193
  onClose: onToastClose || function () {} // 提供默认空函数
184
194
  });
185
195
  case 15:
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  pedding?: string;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 获取 Tyro 资源
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -29,4 +30,11 @@ export interface PayGroup {
29
30
  _order: any;
30
31
  front_order_uuid?: string;
31
32
  }
32
- export declare const Provider: any, Context: any;
33
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
+ state: FormState;
35
+ } & {
36
+ dispatch: (params: {
37
+ type: string;
38
+ payload: any;
39
+ }) => void;
40
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from "../type";
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type CurrentDayProps = {
3
4
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetail: ({ form, currentProduct, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailByDate: () => JSX.Element;
3
4
  export default ProductDetailByDate;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const RelationProduct: ({ value, onChange, }: {
3
4
  value?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  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; }
5
5
  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; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React, { useMemo } from 'react';
7
+ import React, { useMemo, useState, useEffect } from 'react';
8
8
  import { LeftOutlined, RightOutlined } from '@ant-design/icons';
9
9
  import { DatePicker, SelectTime } from '@pisell/materials';
10
10
  import { useMemoizedFn } from 'ahooks';
@@ -13,12 +13,65 @@ import dayjs from 'dayjs';
13
13
  import classNames from 'classnames';
14
14
  import { locales } from '@pisell/utils';
15
15
  import "./index.less";
16
+ import { Iconfont } from '@pisell/materials';
16
17
  var TimeBar = function TimeBar(props) {
17
- var _state$modalState6;
18
+ var _state$modalState7;
18
19
  var state = props.globalState,
19
20
  setGlobalState = props.setGlobalState,
20
21
  locale = props.locale,
21
22
  onCreateClick = props.onCreateClick;
23
+ var _useState = useState(true),
24
+ _useState2 = _slicedToArray(_useState, 2),
25
+ collapsed = _useState2[0],
26
+ setCollapsed = _useState2[1];
27
+ var _useState3 = useState(1),
28
+ _useState4 = _slicedToArray(_useState3, 2),
29
+ scaleCompensation = _useState4[0],
30
+ setScaleCompensation = _useState4[1];
31
+
32
+ // 获取 body 的 scale 值并计算补偿
33
+ useEffect(function () {
34
+ var getBodyScale = function getBodyScale() {
35
+ var body = document.body;
36
+ var computedStyle = window.getComputedStyle(body);
37
+ var transform = computedStyle.transform;
38
+ if (transform && transform !== 'none') {
39
+ // 解析 transform matrix 获取 scale 值
40
+ // matrix(scaleX, skewY, skewX, scaleY, translateX, translateY)
41
+ var matrix = transform.match(/matrix\(([^)]+)\)/);
42
+ if (matrix) {
43
+ var values = matrix[1].split(',').map(function (v) {
44
+ return parseFloat(v.trim());
45
+ });
46
+ // scaleX 通常是 matrix 的第一个值
47
+ var scale = values[0] || 1;
48
+ return scale;
49
+ }
50
+ }
51
+ return 1;
52
+ };
53
+ var updateScale = function updateScale() {
54
+ var scale = getBodyScale();
55
+ // 目标高度是 40px,需要补偿 scale 的影响
56
+ // 实际设置高度 = 目标高度 / scale
57
+ setScaleCompensation(scale);
58
+ };
59
+ updateScale();
60
+
61
+ // 监听 body 的 transform 变化(使用 MutationObserver)
62
+ var observer = new MutationObserver(updateScale);
63
+ observer.observe(document.body, {
64
+ attributes: true,
65
+ attributeFilter: ['style', 'class']
66
+ });
67
+
68
+ // 也监听窗口大小变化(某些情况下 scale 可能随窗口变化)
69
+ window.addEventListener('resize', updateScale);
70
+ return function () {
71
+ observer.disconnect();
72
+ window.removeEventListener('resize', updateScale);
73
+ };
74
+ }, []);
22
75
  var _onClickNext = useMemoizedFn(function () {
23
76
  var _state$modalState, _props$onDateChange, _props$setIntervalTim;
24
77
  var currentTime = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.date) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
@@ -57,8 +110,52 @@ var TimeBar = function TimeBar(props) {
57
110
  });
58
111
  (_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, timeString === dayjs().format('HH:mm'));
59
112
  });
113
+ var _onToggleCollapse = useMemoizedFn(function () {
114
+ setCollapsed(!collapsed);
115
+ });
60
116
  return useMemo(function () {
61
- var _state$modalState4, _state$modalState5;
117
+ var _state$modalState5, _state$modalState6;
118
+ // 收起状态
119
+ if (collapsed) {
120
+ var _state$modalState4;
121
+ var currentDate = state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value;
122
+ var isToday = currentDate && currentDate.isSame(dayjs(), 'day');
123
+ var displayText = isToday ? locales.getText('pisell2.ticket-booking.today') : (currentDate === null || currentDate === void 0 ? void 0 : currentDate.format('YYYY-MM-DD')) || '';
124
+
125
+ // 计算补偿后的高度:目标高度 / scale
126
+ var targetHeight = 40;
127
+ var compensatedHeight = targetHeight / scaleCompensation;
128
+ return /*#__PURE__*/React.createElement("div", {
129
+ className: classNames('pisell-ticket-booking-time-bar', 'collapsed'),
130
+ style: {
131
+ height: "".concat(compensatedHeight, "px"),
132
+ minHeight: "".concat(compensatedHeight, "px"),
133
+ maxHeight: "".concat(compensatedHeight, "px")
134
+ }
135
+ }, /*#__PURE__*/React.createElement("div", {
136
+ className: "pisell-ticket-booking-time-bar-collapsed-content",
137
+ style: {
138
+ height: "".concat(compensatedHeight, "px")
139
+ }
140
+ }, /*#__PURE__*/React.createElement("span", {
141
+ className: "pisell-ticket-booking-time-bar-collapsed-today",
142
+ style: {
143
+ lineHeight: "".concat(compensatedHeight, "px")
144
+ }
145
+ }, displayText), /*#__PURE__*/React.createElement(Button, {
146
+ type: "link",
147
+ size: "small",
148
+ className: "pisell-ticket-booking-time-bar-collapsed-expand",
149
+ onClick: _onToggleCollapse,
150
+ style: {
151
+ lineHeight: "".concat(compensatedHeight, "px")
152
+ }
153
+ }, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.expand')), /*#__PURE__*/React.createElement(Iconfont, {
154
+ type: "pisell2-chevron-right-double"
155
+ }))));
156
+ }
157
+
158
+ // 展开状态
62
159
  return /*#__PURE__*/React.createElement("div", {
63
160
  className: "pisell-ticket-booking-time-bar",
64
161
  style: {
@@ -85,7 +182,7 @@ var TimeBar = function TimeBar(props) {
85
182
  }
86
183
  }, /*#__PURE__*/React.createElement(DatePicker, {
87
184
  inputReadOnly: true,
88
- value: state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value,
185
+ value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value,
89
186
  format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
90
187
  onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
91
188
  size: "large",
@@ -101,7 +198,7 @@ var TimeBar = function TimeBar(props) {
101
198
  'booking-page-date-picker-select': state.isTimeChange
102
199
  })
103
200
  }, /*#__PURE__*/React.createElement(SelectTime, {
104
- value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value.format('HH:mm'),
201
+ value: state === null || state === void 0 || (_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value.format('HH:mm'),
105
202
  onChange: _onDateTimeChange,
106
203
  popoverProps: {
107
204
  style: {
@@ -124,7 +221,15 @@ var TimeBar = function TimeBar(props) {
124
221
  },
125
222
  size: "large",
126
223
  type: "primary"
127
- }, locales.getText('pisell2.ticket-booking.create-new')));
128
- }, [(_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
224
+ }, locales.getText('pisell2.ticket-booking.create-new')), /*#__PURE__*/React.createElement(Button, {
225
+ type: "link",
226
+ style: {
227
+ marginLeft: 'auto'
228
+ },
229
+ onClick: _onToggleCollapse
230
+ }, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.collapse')), /*#__PURE__*/React.createElement(Iconfont, {
231
+ type: "pisell2-chevron-left-double"
232
+ })));
233
+ }, [collapsed, (_state$modalState7 = state.modalState) === null || _state$modalState7 === void 0 || (_state$modalState7 = _state$modalState7.date) === null || _state$modalState7 === void 0 ? void 0 : _state$modalState7.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale, _onToggleCollapse, scaleCompensation]);
129
234
  };
130
235
  export default TimeBar;