@pisell/private-materials 3.3.93 → 3.3.95

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 (317) 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 +8 -8
  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/index.d.ts +1 -0
  12. package/es/components/Sales/Cart/index.js +1 -5
  13. package/es/components/Sales/Cart/utils.d.ts +0 -40
  14. package/es/components/Sales/Cart/utils.js +0 -167
  15. package/es/components/Sales/Checkout/index.d.ts +0 -4
  16. package/es/components/Sales/Checkout/index.js +8 -52
  17. package/es/components/Sales/Checkout/serve.d.ts +0 -13
  18. package/es/components/Sales/Checkout/serve.js +2 -16
  19. package/es/components/Sales/Checkout/utils.js +1 -7
  20. package/es/components/Sales/Summary/index.d.ts +0 -10
  21. package/es/components/Sales/Summary/index.js +2 -17
  22. package/es/components/Sales/Summary/serve.d.ts +0 -1
  23. package/es/components/Sales/Summary/serve.js +0 -6
  24. package/es/components/Sales/Summary/utils.d.ts +1 -16
  25. package/es/components/Sales/Summary/utils.js +1 -43
  26. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  27. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  28. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  29. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  30. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  31. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  32. package/es/components/appointmentBooking/deposit/index.js +2 -4
  33. package/es/components/appointmentBooking/index.js +0 -14
  34. package/es/components/appointmentBooking/index.less +1 -1
  35. package/es/components/booking/addons/model.d.ts +10 -1
  36. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  37. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  38. package/es/components/booking/components/browserSelect/index.js +1 -1
  39. package/es/components/booking/components/footer/utils.js +46 -17
  40. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  41. package/es/components/booking/components/voucher/index.js +2 -2
  42. package/es/components/booking/forms/model.d.ts +10 -1
  43. package/es/components/booking/forms/model.js +5 -5
  44. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  45. package/es/components/booking/forms/table/index.d.ts +1 -0
  46. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  47. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  48. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  49. package/es/components/booking/info/index.d.ts +1 -0
  50. package/es/components/booking/info/model.d.ts +10 -1
  51. package/es/components/booking/info/service/like/index.d.ts +1 -0
  52. package/es/components/booking/info/service/like/index.js +1 -1
  53. package/es/components/booking/info/service2/utils.js +3 -2
  54. package/es/components/booking/materiels/startTime/index.js +1 -1
  55. package/es/components/booking/model.d.ts +9 -1
  56. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  57. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  58. package/es/components/booking/notes/model.d.ts +10 -1
  59. package/es/components/booking/notes/model.js +5 -5
  60. package/es/components/booking/payments/model.d.ts +10 -1
  61. package/es/components/booking/payments/model.js +5 -5
  62. package/es/components/booking/utils.d.ts +2 -2
  63. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  64. package/es/components/eftpos/form/index.d.ts +1 -0
  65. package/es/components/eftpos/group/index.d.ts +1 -0
  66. package/es/components/eftpos/hooks.d.ts +1 -0
  67. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  68. package/es/components/eftpos/icon/device.d.ts +1 -0
  69. package/es/components/eftpos/receipt/index.d.ts +1 -0
  70. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  71. package/es/components/eftposPay/amount.d.ts +1 -1
  72. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  73. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  74. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  75. package/es/components/eftposPay/const.d.ts +1 -4
  76. package/es/components/eftposPay/const.js +1 -3
  77. package/es/components/eftposPay/device.d.ts +1 -1
  78. package/es/components/eftposPay/hooks.d.ts +2 -2
  79. package/es/components/eftposPay/hooks.js +1 -3
  80. package/es/components/eftposPay/index.js +1 -1
  81. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  82. package/es/components/eftposPay/manufacturer.js +0 -4
  83. package/es/components/eftposPay/pay.d.ts +1 -1
  84. package/es/components/eftposPay/pay.js +2 -6
  85. package/es/components/eftposPay/store/index.d.ts +4 -4
  86. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  88. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  89. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingDetailModal/index.js +1 -3
  95. package/es/components/eventBooking/locales.d.ts +0 -24
  96. package/es/components/eventBooking/locales.js +3 -27
  97. package/es/components/index.d.ts +2 -2
  98. package/es/components/index.js +2 -2
  99. package/es/components/listComponent/index.js +5 -5
  100. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  101. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  102. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  103. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  104. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  105. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  106. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  107. package/es/components/pay/toC/model.d.ts +9 -1
  108. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  109. package/es/components/productExtension/card/index.js +3 -3
  110. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  111. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  112. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  113. package/es/components/productExtension/fields/Forms/index.js +12 -12
  114. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  115. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  116. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  117. package/es/components/productExtension/server.js +2 -2
  118. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  119. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  120. package/es/components/schedules/calendar/index.js +4 -4
  121. package/es/components/schedules/calendar/serve.js +2 -2
  122. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  123. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  124. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  125. package/es/components/schedules/components/ResourceList/index.js +1 -1
  126. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  127. package/es/components/schedules/components/Search/index.js +5 -5
  128. package/es/components/schedules/model.d.ts +9 -1
  129. package/es/components/schedules/model.js +5 -5
  130. package/es/components/schedules/openHours/index.js +1 -1
  131. package/es/components/schedules/openHours/serve.js +2 -2
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  133. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  134. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  135. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  136. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  137. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  138. package/es/components/schedules/products/serve.js +2 -2
  139. package/es/components/schedules/products/utils.js +5 -5
  140. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  141. package/es/components/schedules/resources/detail/index.js +10 -10
  142. package/es/components/schedules/resources/list/index.js +2 -2
  143. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  144. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  145. package/es/components/schedules/resources/serve.js +2 -2
  146. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  147. package/es/components/schedules/utils.js +4 -4
  148. package/es/components/selectModal/index.js +2 -2
  149. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  150. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  151. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  152. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  153. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  154. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -120
  155. package/es/components/ticketBooking/locales.d.ts +146 -164
  156. package/es/components/ticketBooking/locales.js +147 -195
  157. package/es/components/ticketBooking/utils/index.js +2 -1
  158. package/es/components/wallet/Detail/model.d.ts +13 -1
  159. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  160. package/es/components/wallet/PointCard/model.d.ts +13 -1
  161. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  162. package/es/components/wallet/Voucher/model.d.ts +13 -1
  163. package/es/components/wallet/model.d.ts +9 -1
  164. package/es/hooks/useComponents.js +1 -1
  165. package/es/index.d.ts +1 -1
  166. package/es/index.js +2 -2
  167. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  168. package/lib/components/Sales/Cart/index.js +0 -1
  169. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  170. package/lib/components/Sales/Cart/utils.js +0 -117
  171. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  172. package/lib/components/Sales/Checkout/index.js +7 -39
  173. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  174. package/lib/components/Sales/Checkout/serve.js +2 -7
  175. package/lib/components/Sales/Checkout/utils.js +0 -2
  176. package/lib/components/Sales/Summary/index.d.ts +0 -10
  177. package/lib/components/Sales/Summary/index.js +1 -7
  178. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  179. package/lib/components/Sales/Summary/serve.js +0 -32
  180. package/lib/components/Sales/Summary/utils.d.ts +1 -16
  181. package/lib/components/Sales/Summary/utils.js +1 -30
  182. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  183. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  184. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  185. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  186. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  187. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  188. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  189. package/lib/components/appointmentBooking/index.js +0 -11
  190. package/lib/components/appointmentBooking/index.less +1 -1
  191. package/lib/components/booking/addons/model.d.ts +10 -1
  192. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  193. package/lib/components/booking/components/footer/utils.js +25 -7
  194. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  195. package/lib/components/booking/components/voucher/index.js +2 -2
  196. package/lib/components/booking/forms/model.d.ts +10 -1
  197. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  198. package/lib/components/booking/forms/table/index.d.ts +1 -0
  199. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  200. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  201. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  202. package/lib/components/booking/info/index.d.ts +1 -0
  203. package/lib/components/booking/info/model.d.ts +10 -1
  204. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  205. package/lib/components/booking/info/service2/utils.js +3 -2
  206. package/lib/components/booking/model.d.ts +9 -1
  207. package/lib/components/booking/notes/model.d.ts +10 -1
  208. package/lib/components/booking/payments/model.d.ts +10 -1
  209. package/lib/components/booking/utils.d.ts +2 -2
  210. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  211. package/lib/components/eftpos/form/index.d.ts +1 -0
  212. package/lib/components/eftpos/group/index.d.ts +1 -0
  213. package/lib/components/eftpos/hooks.d.ts +1 -0
  214. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  215. package/lib/components/eftpos/icon/device.d.ts +1 -0
  216. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  217. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  218. package/lib/components/eftposPay/amount.d.ts +1 -1
  219. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  220. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  221. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  222. package/lib/components/eftposPay/const.d.ts +1 -4
  223. package/lib/components/eftposPay/const.js +0 -2
  224. package/lib/components/eftposPay/device.d.ts +1 -1
  225. package/lib/components/eftposPay/hooks.d.ts +2 -2
  226. package/lib/components/eftposPay/hooks.js +4 -11
  227. package/lib/components/eftposPay/index.js +1 -1
  228. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  229. package/lib/components/eftposPay/manufacturer.js +0 -6
  230. package/lib/components/eftposPay/pay.d.ts +1 -1
  231. package/lib/components/eftposPay/pay.js +2 -13
  232. package/lib/components/eftposPay/store/index.d.ts +4 -4
  233. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  234. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  235. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  236. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  237. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  238. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  239. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  240. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  241. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  242. package/lib/components/eventBooking/locales.d.ts +0 -24
  243. package/lib/components/eventBooking/locales.js +3 -27
  244. package/lib/components/index.d.ts +2 -2
  245. package/lib/components/index.js +1 -1
  246. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  247. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  248. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  249. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  250. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  251. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  252. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  253. package/lib/components/pay/toC/model.d.ts +9 -1
  254. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  255. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  256. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  257. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  258. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  259. package/lib/components/schedules/model.d.ts +9 -1
  260. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  261. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  262. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  263. package/lib/components/schedules/utils.js +1 -1
  264. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  265. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  266. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  267. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  268. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  269. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -120
  270. package/lib/components/ticketBooking/locales.d.ts +146 -164
  271. package/lib/components/ticketBooking/locales.js +4 -22
  272. package/lib/components/ticketBooking/utils/index.js +2 -1
  273. package/lib/components/wallet/Detail/model.d.ts +13 -1
  274. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  275. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  276. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  277. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  278. package/lib/components/wallet/model.d.ts +9 -1
  279. package/lib/index.d.ts +1 -1
  280. package/lib/index.js +1 -1
  281. package/package.json +4 -4
  282. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  283. package/es/components/eftposPay/linkly/const.js +0 -82
  284. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  285. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  286. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  287. package/es/components/eftposPay/linkly/hooks/normal.js +0 -321
  288. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  289. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  290. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  291. package/es/components/eftposPay/linkly/index.js +0 -197
  292. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  293. package/es/components/eftposPay/linkly/service.js +0 -81
  294. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  295. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  296. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  297. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  298. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  299. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  300. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  301. package/lib/components/eftposPay/linkly/const.js +0 -102
  302. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  303. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  304. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  305. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -242
  306. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  307. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  308. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  309. package/lib/components/eftposPay/linkly/index.js +0 -208
  310. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  311. package/lib/components/eftposPay/linkly/service.js +0 -55
  312. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  313. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  314. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  315. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  316. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  317. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -46,9 +46,6 @@ 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"));
52
49
  var _formatBookingDetail = (data, modalState) => {
53
50
  var _a, _b, _c, _d;
54
51
  let {
@@ -192,17 +189,7 @@ var TicketBooking = () => {
192
189
  const [state, setState] = (0, import_miniRedux.useStore)();
193
190
  const engineContext = (0, import_useEngineContext.default)();
194
191
  const { props: engineProps } = engineContext.engine;
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;
192
+ const { action, isTerminal, lowcodeRef, interaction, store, storage, Toast } = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
206
193
  const _persistentRef = (0, import_react.useRef)(false);
207
194
  const _initStateRef = (0, import_react.useRef)({});
208
195
  const _listTimerRef = (0, import_react.useRef)();
@@ -289,112 +276,6 @@ var TicketBooking = () => {
289
276
  intervalSetTime: isInterval
290
277
  });
291
278
  };
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]);
398
279
  const _setModalState = (props) => {
399
280
  var _a2, _b;
400
281
  console.log("同步state到外层", props);
@@ -1,171 +1,153 @@
1
1
  declare const _default: {
2
2
  en: {
3
- 'pisell2.ticket-booking.info': string;
4
- 'pisell2.ticket-booking.notes': string;
5
- 'pisell2.ticket-booking.forms': string;
6
- 'pisell2.ticket-booking.sales': string;
7
- 'pisell2.ticket-booking.payment': string;
8
- 'pisell2.ticket-booking.unsaved-changes': string;
9
- 'pisell2.ticket-booking.exit-confirm': string;
10
- 'pisell2.ticket-booking.go-back': string;
11
- 'pisell2.ticket-booking.exit': string;
12
- 'pisell2.ticket-booking.deposit': string;
13
- 'pisell2.ticket-booking.copy-success': string;
14
- 'pisell2.ticket-booking.no-data': string;
15
- 'pisell2.ticket-booking.authorized': string;
16
- 'pisell2.ticket-booking.paid': string;
17
- 'pisell2.ticket-booking.partially-paid': string;
18
- 'pisell2.ticket-booking.partially-refunded': string;
19
- 'pisell2.ticket-booking.payment-pending': string;
20
- 'pisell2.ticket-booking.refunded': string;
21
- 'pisell2.ticket-booking.unpaid': string;
22
- 'pisell2.ticket-booking.voided': string;
23
- 'pisell2.ticket-booking.pending': string;
24
- 'pisell2.ticket-booking.all': string;
25
- 'pisell2.ticket-booking.not-started': string;
26
- 'pisell2.ticket-booking.started': string;
27
- 'pisell2.ticket-booking.finished': string;
28
- 'pisell2.ticket-booking.canceled': string;
29
- 'pisell2.ticket-booking.inform': string;
30
- 'pisell2.ticket-booking.check-management': string;
31
- 'pisell2.ticket-booking.confirm': string;
32
- 'pisell2.ticket-booking.dashboard': string;
33
- 'pisell2.ticket-booking.booking-list': string;
34
- 'pisell2.ticket-booking.full-data': string;
35
- 'pisell2.ticket-booking.today': string;
36
- 'pisell2.ticket-booking.now': string;
37
- 'pisell2.ticket-booking.start-time': string;
38
- 'pisell2.ticket-booking.create-time': string;
39
- 'pisell2.ticket-booking.customer': string;
40
- 'pisell2.ticket-booking.total': string;
41
- 'pisell2.ticket-booking.search': string;
42
- 'pisell2.ticket-booking.refresh-success': string;
43
- 'pisell2.ticket-booking.loading': string;
44
- 'pisell2.ticket-booking.appointment-not-found': string;
45
- 'pisell2.ticket-booking.scan': string;
46
- 'pisell2.ticket-booking.create-new': string;
47
- 'pisell2.ticket-booking.add-to-cart': string;
48
- 'pisell2.ticket-booking.not-available-title': string;
49
- 'pisell2.ticket-booking.not-available-ok': string;
50
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
51
- 'pisell2.product.card.cart-items': (number: number) => string;
52
- 'pisell2.product.card.subtotal': string;
53
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
54
- 'pisell2.product.card.day': (val: number) => string;
55
- 'pisell2.product.card.day.event': (val: number) => string;
56
- 'pisell2.product.card.minute': (val: number) => string;
3
+ "pisell2.ticket-booking.info": string;
4
+ "pisell2.ticket-booking.notes": string;
5
+ "pisell2.ticket-booking.forms": string;
6
+ "pisell2.ticket-booking.sales": string;
7
+ "pisell2.ticket-booking.payment": string;
8
+ "pisell2.ticket-booking.unsaved-changes": string;
9
+ "pisell2.ticket-booking.exit-confirm": string;
10
+ "pisell2.ticket-booking.go-back": string;
11
+ "pisell2.ticket-booking.exit": string;
12
+ "pisell2.ticket-booking.deposit": string;
13
+ "pisell2.ticket-booking.copy-success": string;
14
+ "pisell2.ticket-booking.no-data": string;
15
+ "pisell2.ticket-booking.authorized": string;
16
+ "pisell2.ticket-booking.paid": string;
17
+ "pisell2.ticket-booking.partially-paid": string;
18
+ "pisell2.ticket-booking.partially-refunded": string;
19
+ "pisell2.ticket-booking.payment-pending": string;
20
+ "pisell2.ticket-booking.refunded": string;
21
+ "pisell2.ticket-booking.unpaid": string;
22
+ "pisell2.ticket-booking.voided": string;
23
+ "pisell2.ticket-booking.pending": string;
24
+ "pisell2.ticket-booking.all": string;
25
+ "pisell2.ticket-booking.not-started": string;
26
+ "pisell2.ticket-booking.started": string;
27
+ "pisell2.ticket-booking.finished": string;
28
+ "pisell2.ticket-booking.canceled": string;
29
+ "pisell2.ticket-booking.inform": string;
30
+ "pisell2.ticket-booking.check-management": string;
31
+ "pisell2.ticket-booking.confirm": string;
32
+ "pisell2.ticket-booking.dashboard": string;
33
+ "pisell2.ticket-booking.booking-list": string;
34
+ "pisell2.ticket-booking.full-data": string;
35
+ "pisell2.ticket-booking.today": string;
36
+ "pisell2.ticket-booking.now": string;
37
+ "pisell2.ticket-booking.start-time": string;
38
+ "pisell2.ticket-booking.create-time": string;
39
+ "pisell2.ticket-booking.customer": string;
40
+ "pisell2.ticket-booking.total": string;
41
+ "pisell2.ticket-booking.search": string;
42
+ "pisell2.ticket-booking.refresh-success": string;
43
+ "pisell2.ticket-booking.loading": string;
44
+ "pisell2.ticket-booking.appointment-not-found": string;
45
+ "pisell2.ticket-booking.scan": string;
46
+ "pisell2.ticket-booking.create-new": string;
47
+ "pisell2.ticket-booking.add-to-cart": string;
48
+ "pisell2.ticket-booking.not-available-title": string;
49
+ "pisell2.ticket-booking.not-available-ok": string;
50
+ "pisell2.ticket-booking.in-cart": (number: number) => string;
57
51
  };
58
- 'zh-CN': {
59
- 'pisell2.ticket-booking.info': string;
60
- 'pisell2.ticket-booking.notes': string;
61
- 'pisell2.ticket-booking.forms': string;
62
- 'pisell2.ticket-booking.sales': string;
63
- 'pisell2.ticket-booking.payment': string;
64
- 'pisell2.ticket-booking.unsaved-changes': string;
65
- 'pisell2.ticket-booking.exit-confirm': string;
66
- 'pisell2.ticket-booking.go-back': string;
67
- 'pisell2.ticket-booking.exit': string;
68
- 'pisell2.ticket-booking.deposit': string;
69
- 'pisell2.ticket-booking.copy-success': string;
70
- 'pisell2.ticket-booking.no-data': string;
71
- 'pisell2.ticket-booking.authorized': string;
72
- 'pisell2.ticket-booking.paid': string;
73
- 'pisell2.ticket-booking.partially-paid': string;
74
- 'pisell2.ticket-booking.partially-refunded': string;
75
- 'pisell2.ticket-booking.payment-pending': string;
76
- 'pisell2.ticket-booking.refunded': string;
77
- 'pisell2.ticket-booking.unpaid': string;
78
- 'pisell2.ticket-booking.voided': string;
79
- 'pisell2.ticket-booking.pending': string;
80
- 'pisell2.ticket-booking.all': string;
81
- 'pisell2.ticket-booking.not-started': string;
82
- 'pisell2.ticket-booking.started': string;
83
- 'pisell2.ticket-booking.finished': string;
84
- 'pisell2.ticket-booking.canceled': string;
85
- 'pisell2.ticket-booking.inform': string;
86
- 'pisell2.ticket-booking.check-management': string;
87
- 'pisell2.ticket-booking.confirm': string;
88
- 'pisell2.ticket-booking.dashboard': string;
89
- 'pisell2.ticket-booking.booking-list': string;
90
- 'pisell2.ticket-booking.full-data': string;
91
- 'pisell2.ticket-booking.today': string;
92
- 'pisell2.ticket-booking.now': string;
93
- 'pisell2.ticket-booking.start-time': string;
94
- 'pisell2.ticket-booking.create-time': string;
95
- 'pisell2.ticket-booking.customer': string;
96
- 'pisell2.ticket-booking.total': string;
97
- 'pisell2.ticket-booking.search': string;
98
- 'pisell2.ticket-booking.refresh-success': string;
99
- 'pisell2.ticket-booking.loading': string;
100
- 'pisell2.ticket-booking.appointment-not-found': string;
101
- 'pisell2.ticket-booking.scan': string;
102
- 'pisell2.ticket-booking.create-new': string;
103
- 'pisell2.ticket-booking.add-to-cart': string;
104
- 'pisell2.ticket-booking.not-available-title': string;
105
- 'pisell2.ticket-booking.not-available-ok': string;
106
- 'pisell2.product.card.cart-items': (number: number) => string;
107
- 'pisell2.product.card.subtotal': string;
108
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
109
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
110
- 'pisell2.product.card.day': (val: number) => string;
111
- 'pisell2.product.card.day.event': (val: number) => string;
112
- 'pisell2.product.card.minute': (val: number) => string;
52
+ "zh-CN": {
53
+ "pisell2.ticket-booking.info": string;
54
+ "pisell2.ticket-booking.notes": string;
55
+ "pisell2.ticket-booking.forms": string;
56
+ "pisell2.ticket-booking.sales": string;
57
+ "pisell2.ticket-booking.payment": string;
58
+ "pisell2.ticket-booking.unsaved-changes": string;
59
+ "pisell2.ticket-booking.exit-confirm": string;
60
+ "pisell2.ticket-booking.go-back": string;
61
+ "pisell2.ticket-booking.exit": string;
62
+ "pisell2.ticket-booking.deposit": string;
63
+ "pisell2.ticket-booking.copy-success": string;
64
+ "pisell2.ticket-booking.no-data": string;
65
+ "pisell2.ticket-booking.authorized": string;
66
+ "pisell2.ticket-booking.paid": string;
67
+ "pisell2.ticket-booking.partially-paid": string;
68
+ "pisell2.ticket-booking.partially-refunded": string;
69
+ "pisell2.ticket-booking.payment-pending": string;
70
+ "pisell2.ticket-booking.refunded": string;
71
+ "pisell2.ticket-booking.unpaid": string;
72
+ "pisell2.ticket-booking.voided": string;
73
+ "pisell2.ticket-booking.pending": string;
74
+ "pisell2.ticket-booking.all": string;
75
+ "pisell2.ticket-booking.not-started": string;
76
+ "pisell2.ticket-booking.started": string;
77
+ "pisell2.ticket-booking.finished": string;
78
+ "pisell2.ticket-booking.canceled": string;
79
+ "pisell2.ticket-booking.inform": string;
80
+ "pisell2.ticket-booking.check-management": string;
81
+ "pisell2.ticket-booking.confirm": string;
82
+ "pisell2.ticket-booking.dashboard": string;
83
+ "pisell2.ticket-booking.booking-list": string;
84
+ "pisell2.ticket-booking.full-data": string;
85
+ "pisell2.ticket-booking.today": string;
86
+ "pisell2.ticket-booking.now": string;
87
+ "pisell2.ticket-booking.start-time": string;
88
+ "pisell2.ticket-booking.create-time": string;
89
+ "pisell2.ticket-booking.customer": string;
90
+ "pisell2.ticket-booking.total": string;
91
+ "pisell2.ticket-booking.search": string;
92
+ "pisell2.ticket-booking.refresh-success": string;
93
+ "pisell2.ticket-booking.loading": string;
94
+ "pisell2.ticket-booking.appointment-not-found": string;
95
+ "pisell2.ticket-booking.scan": string;
96
+ "pisell2.ticket-booking.create-new": string;
97
+ "pisell2.ticket-booking.add-to-cart": string;
98
+ "pisell2.ticket-booking.not-available-title": string;
99
+ "pisell2.ticket-booking.not-available-ok": string;
100
+ "pisell2.ticket-booking.in-cart": (number: number) => string;
113
101
  };
114
- 'zh-HK': {
115
- 'pisell2.ticket-booking.info': string;
116
- 'pisell2.ticket-booking.notes': string;
117
- 'pisell2.ticket-booking.forms': string;
118
- 'pisell2.ticket-booking.sales': string;
119
- 'pisell2.ticket-booking.payment': string;
120
- 'pisell2.ticket-booking.unsaved-changes': string;
121
- 'pisell2.ticket-booking.exit-confirm': string;
122
- 'pisell2.ticket-booking.go-back': string;
123
- 'pisell2.ticket-booking.exit': string;
124
- 'pisell2.ticket-booking.deposit': string;
125
- 'pisell2.ticket-booking.copy-success': string;
126
- 'pisell2.ticket-booking.no-data': string;
127
- 'pisell2.ticket-booking.authorized': string;
128
- 'pisell2.ticket-booking.paid': string;
129
- 'pisell2.ticket-booking.partially-paid': string;
130
- 'pisell2.ticket-booking.partially-refunded': string;
131
- 'pisell2.ticket-booking.payment-pending': string;
132
- 'pisell2.ticket-booking.refunded': string;
133
- 'pisell2.ticket-booking.unpaid': string;
134
- 'pisell2.ticket-booking.voided': string;
135
- 'pisell2.ticket-booking.pending': string;
136
- 'pisell2.ticket-booking.all': string;
137
- 'pisell2.ticket-booking.not-started': string;
138
- 'pisell2.ticket-booking.started': string;
139
- 'pisell2.ticket-booking.finished': string;
140
- 'pisell2.ticket-booking.canceled': string;
141
- 'pisell2.ticket-booking.inform': string;
142
- 'pisell2.ticket-booking.check-management': string;
143
- 'pisell2.ticket-booking.confirm': string;
144
- 'pisell2.ticket-booking.dashboard': string;
145
- 'pisell2.ticket-booking.booking-list': string;
146
- 'pisell2.ticket-booking.full-data': string;
147
- 'pisell2.ticket-booking.today': string;
148
- 'pisell2.ticket-booking.now': string;
149
- 'pisell2.ticket-booking.start-time': string;
150
- 'pisell2.ticket-booking.create-time': string;
151
- 'pisell2.ticket-booking.customer': string;
152
- 'pisell2.ticket-booking.total': string;
153
- 'pisell2.ticket-booking.search': string;
154
- 'pisell2.ticket-booking.refresh-success': string;
155
- 'pisell2.ticket-booking.loading': string;
156
- 'pisell2.ticket-booking.appointment-not-found': string;
157
- 'pisell2.ticket-booking.scan': string;
158
- 'pisell2.ticket-booking.create-new': string;
159
- 'pisell2.ticket-booking.add-to-cart': string;
160
- 'pisell2.ticket-booking.not-available-title': string;
161
- 'pisell2.ticket-booking.not-available-ok': string;
162
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
163
- 'pisell2.product.card.cart-items': (number: number) => string;
164
- 'pisell2.product.card.subtotal': string;
165
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
166
- 'pisell2.product.card.day': (val: number) => string;
167
- 'pisell2.product.card.day.event': (val: number) => string;
168
- 'pisell2.product.card.minute': (val: number) => string;
102
+ "zh-HK": {
103
+ "pisell2.ticket-booking.info": string;
104
+ "pisell2.ticket-booking.notes": string;
105
+ "pisell2.ticket-booking.forms": string;
106
+ "pisell2.ticket-booking.sales": string;
107
+ "pisell2.ticket-booking.payment": string;
108
+ "pisell2.ticket-booking.unsaved-changes": string;
109
+ "pisell2.ticket-booking.exit-confirm": string;
110
+ "pisell2.ticket-booking.go-back": string;
111
+ "pisell2.ticket-booking.exit": string;
112
+ "pisell2.ticket-booking.deposit": string;
113
+ "pisell2.ticket-booking.copy-success": string;
114
+ "pisell2.ticket-booking.no-data": string;
115
+ "pisell2.ticket-booking.authorized": string;
116
+ "pisell2.ticket-booking.paid": string;
117
+ "pisell2.ticket-booking.partially-paid": string;
118
+ "pisell2.ticket-booking.partially-refunded": string;
119
+ "pisell2.ticket-booking.payment-pending": string;
120
+ "pisell2.ticket-booking.refunded": string;
121
+ "pisell2.ticket-booking.unpaid": string;
122
+ "pisell2.ticket-booking.voided": string;
123
+ "pisell2.ticket-booking.pending": string;
124
+ "pisell2.ticket-booking.all": string;
125
+ "pisell2.ticket-booking.not-started": string;
126
+ "pisell2.ticket-booking.started": string;
127
+ "pisell2.ticket-booking.finished": string;
128
+ "pisell2.ticket-booking.canceled": string;
129
+ "pisell2.ticket-booking.inform": string;
130
+ "pisell2.ticket-booking.check-management": string;
131
+ "pisell2.ticket-booking.confirm": string;
132
+ "pisell2.ticket-booking.dashboard": string;
133
+ "pisell2.ticket-booking.booking-list": string;
134
+ "pisell2.ticket-booking.full-data": string;
135
+ "pisell2.ticket-booking.today": string;
136
+ "pisell2.ticket-booking.now": string;
137
+ "pisell2.ticket-booking.start-time": string;
138
+ "pisell2.ticket-booking.create-time": string;
139
+ "pisell2.ticket-booking.customer": string;
140
+ "pisell2.ticket-booking.total": string;
141
+ "pisell2.ticket-booking.search": string;
142
+ "pisell2.ticket-booking.refresh-success": string;
143
+ "pisell2.ticket-booking.loading": string;
144
+ "pisell2.ticket-booking.appointment-not-found": string;
145
+ "pisell2.ticket-booking.scan": string;
146
+ "pisell2.ticket-booking.create-new": string;
147
+ "pisell2.ticket-booking.add-to-cart": string;
148
+ "pisell2.ticket-booking.not-available-title": string;
149
+ "pisell2.ticket-booking.not-available-ok": string;
150
+ "pisell2.ticket-booking.in-cart": (number: number) => string;
169
151
  };
170
152
  };
171
153
  export default _default;
@@ -23,7 +23,7 @@ __export(locales_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(locales_exports);
25
25
  var locales_default = {
26
- en: {
26
+ "en": {
27
27
  "pisell2.ticket-booking.info": "Info",
28
28
  "pisell2.ticket-booking.notes": "Notes",
29
29
  "pisell2.ticket-booking.forms": "Forms",
@@ -71,13 +71,7 @@ var locales_default = {
71
71
  "pisell2.ticket-booking.add-to-cart": "Added to Cart",
72
72
  "pisell2.ticket-booking.not-available-title": "Sorry, Not available at current time.",
73
73
  "pisell2.ticket-booking.not-available-ok": "OK",
74
- "pisell2.ticket-booking.in-cart": (number) => `${number} in cart`,
75
- "pisell2.product.card.cart-items": (number) => `${number}items`,
76
- "pisell2.product.card.subtotal": "Subtotal",
77
- "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`,
78
- "pisell2.product.card.day": (val) => `${val > 1 ? " days" : " day"}`,
79
- "pisell2.product.card.day.event": (val) => `${val > 1 ? " events" : " event"}`,
80
- "pisell2.product.card.minute": (val) => `${val > 1 ? " minutes" : " minute"}`
74
+ "pisell2.ticket-booking.in-cart": (number) => `${number} in cart`
81
75
  },
82
76
  "zh-CN": {
83
77
  "pisell2.ticket-booking.info": "信息",
@@ -127,13 +121,7 @@ var locales_default = {
127
121
  "pisell2.ticket-booking.add-to-cart": "已加入购物车",
128
122
  "pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售时间。",
129
123
  "pisell2.ticket-booking.not-available-ok": "好的",
130
- "pisell2.product.card.cart-items": (number) => `${number}件商品`,
131
- "pisell2.product.card.subtotal": "小计",
132
- "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`,
133
- "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`,
134
- "pisell2.product.card.day": (val) => "天",
135
- "pisell2.product.card.day.event": (val) => "个活动",
136
- "pisell2.product.card.minute": (val) => "分钟"
124
+ "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`
137
125
  },
138
126
  "zh-HK": {
139
127
  "pisell2.ticket-booking.info": "資訊",
@@ -183,12 +171,6 @@ var locales_default = {
183
171
  "pisell2.ticket-booking.add-to-cart": "已加入购物车",
184
172
  "pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售時間。",
185
173
  "pisell2.ticket-booking.not-available-ok": "好的",
186
- "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`,
187
- "pisell2.product.card.cart-items": (number) => `${number}件商品`,
188
- "pisell2.product.card.subtotal": "小計",
189
- "pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`,
190
- "pisell2.product.card.day": (val) => "天",
191
- "pisell2.product.card.day.event": (val) => "个活動",
192
- "pisell2.product.card.minute": (val) => "分鐘"
174
+ "pisell2.ticket-booking.in-cart": (number) => `已有${number}件`
193
175
  }
194
176
  };
@@ -120,7 +120,8 @@ var restoreProductOtherData = (data) => {
120
120
  quantity: bundleItem.num,
121
121
  product_option_item_id: optionItem.option_group_item_id
122
122
  };
123
- })
123
+ }),
124
+ price: (bundleItem == null ? void 0 : bundleItem.bundle_sum_type) === "markdown" ? `-${Number(bundleItem.bundle_sum_price)}` : Number(bundleItem.bundle_sum_price)
124
125
  };
125
126
  }),
126
127
  product_variant_id: 0,
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;