@pisell/private-materials 6.6.94 → 6.6.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 (303) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/businessModel/SalesModel/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/index.d.ts +1 -0
  20. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  21. package/es/components/booking/components/footer/index.d.ts +1 -0
  22. package/es/components/booking/components/footer/utils.d.ts +67 -0
  23. package/es/components/booking/components/footer/utils.js +0 -13
  24. package/es/components/booking/components/voucher/index.d.ts +3 -0
  25. package/es/components/booking/components/voucher/index.js +3 -42
  26. package/es/components/booking/deposit/index.d.ts +1 -0
  27. package/es/components/booking/forms/footer.d.ts +1 -0
  28. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  29. package/es/components/booking/forms/single/index.d.ts +1 -0
  30. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  31. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  32. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  33. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  34. package/es/components/booking/info/index.d.ts +1 -0
  35. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  36. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  37. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  38. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  39. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  41. package/es/components/booking/info2/service/editService/index.d.ts +8 -0
  42. package/es/components/booking/info2/service/editService/index.js +11 -31
  43. package/es/components/booking/info2/service/editService/utils.d.ts +41 -0
  44. package/es/components/booking/info2/service/editService/utils.js +19 -128
  45. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  46. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  47. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  48. package/es/components/checkout/PaymentPlugin.d.ts +1 -0
  49. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  50. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  51. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  52. package/es/components/eftpos/SettlementModal/index.d.ts +1 -0
  53. package/es/components/eftpos/index.d.ts +1 -0
  54. package/es/components/eftposPay/amount.d.ts +1 -0
  55. package/es/components/eftposPay/app.d.ts +1 -0
  56. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  57. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  58. package/es/components/eftposPay/index.d.ts +1 -0
  59. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  60. package/es/components/eftposPay/pay.d.ts +1 -0
  61. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  76. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  78. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  81. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  82. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  83. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  84. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  85. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  86. package/es/components/eventBooking/index.d.ts +1 -0
  87. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  88. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  89. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  90. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  91. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  93. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  94. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  95. package/es/components/pisellCashCounting/hooks.d.ts +1 -0
  96. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  97. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  98. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  99. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  100. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  101. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  102. package/es/components/productExtension/index.d.ts +1 -0
  103. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  104. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  105. package/es/components/ruleSetting/index.d.ts +1 -0
  106. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  107. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  108. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  109. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  110. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  111. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  112. package/es/components/shoppingCart/index.d.ts +1 -0
  113. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  114. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  115. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  116. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  117. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  118. package/es/components/ticketBooking/index.d.ts +1 -0
  119. package/es/components/ticketBooking/utils/index.d.ts +103 -0
  120. package/es/components/ticketBooking/utils/index.js +4 -4
  121. package/es/components/walletList/index.d.ts +1 -0
  122. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  123. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  124. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  125. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  126. package/es/plus/clinetSearch/Add/index.js +4 -2
  127. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  128. package/es/plus/noteModal/AddTempModal.d.ts +1 -0
  129. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  130. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  131. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  132. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  133. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  134. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  135. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  136. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  137. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  138. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  139. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  140. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  141. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  142. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  143. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  144. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  145. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  146. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  147. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  148. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  149. package/es/plus/walletPassGallery/index.d.ts +1 -0
  150. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  151. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  152. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  153. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  154. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  155. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  156. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  157. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  158. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  159. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  160. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  161. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  162. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  163. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  164. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  165. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  166. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  167. package/lib/components/appointmentBooking/index.d.ts +1 -0
  168. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  169. package/lib/components/booking/components/footer/index.d.ts +1 -0
  170. package/lib/components/booking/components/footer/utils.d.ts +67 -0
  171. package/lib/components/booking/components/footer/utils.js +1 -8
  172. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  173. package/lib/components/booking/components/voucher/index.js +3 -43
  174. package/lib/components/booking/deposit/index.d.ts +1 -0
  175. package/lib/components/booking/forms/footer.d.ts +1 -0
  176. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  177. package/lib/components/booking/forms/single/index.d.ts +1 -0
  178. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  179. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  180. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  181. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  182. package/lib/components/booking/info/index.d.ts +1 -0
  183. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  184. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  185. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  186. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  187. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  188. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  189. package/lib/components/booking/info2/service/editService/index.d.ts +8 -0
  190. package/lib/components/booking/info2/service/editService/index.js +12 -38
  191. package/lib/components/booking/info2/service/editService/utils.d.ts +41 -0
  192. package/lib/components/booking/info2/service/editService/utils.js +12 -94
  193. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  194. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  195. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  196. package/lib/components/checkout/PaymentPlugin.d.ts +1 -0
  197. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  198. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  199. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  200. package/lib/components/eftpos/SettlementModal/index.d.ts +1 -0
  201. package/lib/components/eftpos/index.d.ts +1 -0
  202. package/lib/components/eftposPay/amount.d.ts +1 -0
  203. package/lib/components/eftposPay/app.d.ts +1 -0
  204. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  205. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  206. package/lib/components/eftposPay/index.d.ts +1 -0
  207. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  208. package/lib/components/eftposPay/pay.d.ts +1 -0
  209. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  210. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  211. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  212. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  213. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  214. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  215. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  216. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  217. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  218. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  219. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  220. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  221. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  222. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  223. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  224. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  225. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  227. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  228. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  229. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  230. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  231. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  232. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  233. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  234. package/lib/components/eventBooking/index.d.ts +1 -0
  235. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  236. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  237. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  238. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  239. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  240. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  241. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  242. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  243. package/lib/components/pisellCashCounting/hooks.d.ts +1 -0
  244. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  245. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  246. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  247. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  248. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  249. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  250. package/lib/components/productExtension/index.d.ts +1 -0
  251. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  252. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  253. package/lib/components/ruleSetting/index.d.ts +1 -0
  254. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  255. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  256. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  257. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  258. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  259. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  260. package/lib/components/shoppingCart/index.d.ts +1 -0
  261. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  262. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  263. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  264. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  265. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  266. package/lib/components/ticketBooking/index.d.ts +1 -0
  267. package/lib/components/ticketBooking/utils/index.d.ts +103 -0
  268. package/lib/components/ticketBooking/utils/index.js +2 -2
  269. package/lib/components/walletList/index.d.ts +1 -0
  270. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  271. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  272. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  273. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  274. package/lib/plus/clinetSearch/Add/index.js +1 -0
  275. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  276. package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
  277. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  278. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  279. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  280. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  281. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  282. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  283. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  284. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  285. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  286. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  287. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  288. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  289. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  290. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  291. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  292. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  293. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  294. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  295. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  296. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  297. package/lib/plus/walletPassGallery/index.d.ts +1 -0
  298. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  299. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  300. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  301. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  302. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  303. package/package.json +4 -4
@@ -87,14 +87,6 @@ var VoucherCard = (props) => {
87
87
  const { selectCustomer } = (0, import_pisellos.useCustomer)({
88
88
  changeCustomerToGlobalState
89
89
  });
90
- (0, import_react.useEffect)(() => {
91
- var _a2;
92
- (_a2 = shopDiscount == null ? void 0 : shopDiscount.setEntitlementPassEnabled) == null ? void 0 : _a2.call(shopDiscount, isBooking4Shop);
93
- return () => {
94
- var _a3;
95
- return (_a3 = shopDiscount == null ? void 0 : shopDiscount.setEntitlementPassEnabled) == null ? void 0 : _a3.call(shopDiscount, false);
96
- };
97
- }, [shopDiscount, isBooking4Shop]);
98
90
  (0, import_ahooks.useDebounceEffect)(
99
91
  () => {
100
92
  if (isBooking4Shop) {
@@ -340,44 +332,12 @@ var VoucherCard = (props) => {
340
332
  };
341
333
  const availableData = (0, import_react.useMemo)(() => {
342
334
  if (!isBooking4Shop) return [];
343
- return discountList.filter((item) => !!item.isAvailable).flatMap((discount) => {
344
- var _a2, _b2, _c2;
345
- const currentRow = {
335
+ return discountList.filter((item) => !!item.isAvailable).map((discount) => {
336
+ return {
346
337
  ...discount,
347
- // 原卡片仍读取 isSelected,历史扣次不代表本次勾选。
348
- isSelected: discount.tag === "entitlement_pass" && !discount.isDisabled ? !!discount.isSelected && (((_a2 = discount.appliedProductDetails) == null ? void 0 : _a2.length) || 0) > (((_b2 = discount.committedAppliedProductDetails) == null ? void 0 : _b2.length) || 0) : discount.isSelected,
349
- isDisabled: discount.isDisabled || (discount.tag === "entitlement_pass" ? !discount.isAvailable : discount.isDisabledForProductUsed) || disabled,
338
+ isDisabled: discount.isDisabled || discount.isDisabledForProductUsed || disabled,
350
339
  savedAmount: shopDiscount.calcDiscountApplicableProductTotalPrice(discount)
351
340
  };
352
- const committedDetails = discount.tag === "entitlement_pass" ? discount.committedAppliedProductDetails || [] : [];
353
- if (!committedDetails.length) return [currentRow];
354
- const historyRow = {
355
- ...discount,
356
- displayKey: `${discount.id}-last-settlement`,
357
- isEditMode: true,
358
- isSelected: true,
359
- isDisabled: true,
360
- appliedProductDetails: committedDetails,
361
- savedAmount: shopDiscount.calcDiscountApplicableProductTotalPrice({
362
- ...discount,
363
- savedAmount: 0,
364
- appliedProductDetails: committedDetails
365
- })
366
- };
367
- const currentDetails = (discount.appliedProductDetails || []).slice(committedDetails.length);
368
- const canApplyToNewProducts = !discount.isDisabled && (((_c2 = discount.applicableProductDetails) == null ? void 0 : _c2.length) || 0) > 0;
369
- if (!currentDetails.length && !canApplyToNewProducts) return [historyRow];
370
- return [historyRow, {
371
- ...currentRow,
372
- displayKey: `${discount.id}-current`,
373
- isEditMode: false,
374
- appliedProductDetails: currentDetails,
375
- savedAmount: shopDiscount.calcDiscountApplicableProductTotalPrice({
376
- ...discount,
377
- savedAmount: 0,
378
- appliedProductDetails: currentDetails
379
- })
380
- }];
381
341
  });
382
342
  }, [discountList, isBooking4Shop, disabled]);
383
343
  if (!isBooking4Shop) return null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => JSX.Element;
2
3
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const calculateTotalPrice: (data: any) => number;
2
3
  declare const useQuotation: (state: any, dispatch: any) => {
3
4
  dom: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const ContactInfoMode: () => JSX.Element;
2
3
  export default ContactInfoMode;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import './index.less';
4
+ export interface EditServiceRef {
5
+ init: (cacheItem?: any) => void;
6
+ }
7
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
8
+ export default _default;
@@ -92,9 +92,6 @@ var Info = (_, ref) => {
92
92
  const resourcesRef = (0, import_react.useRef)(null);
93
93
  const isChangeTotal = (0, import_react.useRef)(false);
94
94
  const shouldReallocateBundlePriceRef = (0, import_react.useRef)(false);
95
- const isEntitlementPrice = (0, import_utils8.hasEntitlementDiscount)(
96
- state.service.cacheItem
97
- );
98
95
  const [noteModalOpen, setNoteModalOpen] = (0, import_react.useState)(false);
99
96
  const [open, setOpen] = (0, import_react.useState)(false);
100
97
  const [currentTab, setCurrentTab] = (0, import_react.useState)("batch_edit");
@@ -250,7 +247,7 @@ var Info = (_, ref) => {
250
247
  }
251
248
  };
252
249
  const onFinish = (values, cacheItem) => {
253
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q2, _r2;
250
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q2;
254
251
  let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
255
252
  if (isShowTimeAndResource && !isSuccess) {
256
253
  return;
@@ -284,8 +281,7 @@ var Info = (_, ref) => {
284
281
  _extend.startDate = startDate;
285
282
  _extend.endDate = endDate;
286
283
  }
287
- const isManualPriceChange = isChangeTotal.current && !(0, import_utils8.hasEntitlementDiscount)(_item);
288
- const shouldReallocatePrice = isManualPriceChange || shouldReallocateBundlePriceRef.current;
284
+ const shouldReallocatePrice = isChangeTotal.current || shouldReallocateBundlePriceRef.current;
289
285
  if (shouldReallocatePrice) {
290
286
  const discountRatio = new import_decimal.default(values.total).div(_item._extend.origin_total);
291
287
  const bundles2 = ((_c2 = _extend == null ? void 0 : _extend.other) == null ? void 0 : _c2.bundle) || [];
@@ -310,9 +306,7 @@ var Info = (_, ref) => {
310
306
  _item._time = (/* @__PURE__ */ new Date()).getTime();
311
307
  _item._serviceKey = (0, import_utils3.genServiceKey)(_item);
312
308
  _item._holderKey = (0, import_utils3.genHolderKey)(_item);
313
- const previousItem = _list.find((item) => item._id === _item._id) ?? _list.find((item) => isSameBookingServiceItem(item, _item));
314
- const isEntitlementQuantityChange = (0, import_utils8.hasEntitlementDiscount)(previousItem) && Number(_item._extend.quantity || 1) !== Number(((_e2 = previousItem == null ? void 0 : previousItem._extend) == null ? void 0 : _e2.quantity) || 1);
315
- if (!isEntitlementQuantityChange && (((_g2 = (_f2 = _item._extend) == null ? void 0 : _f2.holder_id) == null ? void 0 : _g2.length) > 1 || ((_h2 = _item._extend) == null ? void 0 : _h2.quantity) > 1 && ((_j2 = (_i2 = _item._extend) == null ? void 0 : _i2.holder_id) == null ? void 0 : _j2.length) >= 1)) {
309
+ if (((_f2 = (_e2 = _item._extend) == null ? void 0 : _e2.holder_id) == null ? void 0 : _f2.length) > 1 || ((_g2 = _item._extend) == null ? void 0 : _g2.quantity) > 1 && ((_i2 = (_h2 = _item._extend) == null ? void 0 : _h2.holder_id) == null ? void 0 : _i2.length) >= 1) {
316
310
  let holder_ids = _item._extend.holder_id;
317
311
  _item._extend.holder_id = holder_ids[0];
318
312
  holder_ids = holder_ids.slice(1);
@@ -331,8 +325,8 @@ var Info = (_, ref) => {
331
325
  }
332
326
  }
333
327
  let _id = _item == null ? void 0 : _item._id;
334
- let groupId = (_k2 = _item == null ? void 0 : _item._extend) == null ? void 0 : _k2.groupId;
335
- const origin_total = (_o2 = (_n2 = (_m2 = (_l2 = _item._extend) == null ? void 0 : _l2.items) == null ? void 0 : _m2[0]) == null ? void 0 : _n2._extend) == null ? void 0 : _o2.origin_total;
328
+ let groupId = (_j2 = _item == null ? void 0 : _item._extend) == null ? void 0 : _j2.groupId;
329
+ const origin_total = (_n2 = (_m2 = (_l2 = (_k2 = _item._extend) == null ? void 0 : _k2.items) == null ? void 0 : _l2[0]) == null ? void 0 : _m2._extend) == null ? void 0 : _n2.origin_total;
336
330
  if (groupId) {
337
331
  if (shouldReallocatePrice) {
338
332
  _item = deleteDiscountList(_item, true);
@@ -345,7 +339,7 @@ var Info = (_, ref) => {
345
339
  } else {
346
340
  _item = (0, import_utils8.setProductPrice)(_item, {
347
341
  newTotal: values.total,
348
- origin_total: origin_total ?? ((_p2 = _item._extend) == null ? void 0 : _p2.origin_total)
342
+ origin_total: origin_total ?? ((_o2 = _item._extend) == null ? void 0 : _o2.origin_total)
349
343
  });
350
344
  const matchById = _list.some((d) => d._id === _id);
351
345
  const matchByBooking = !matchById && _list.some((d) => isSameBookingServiceItem(d, _item));
@@ -354,32 +348,13 @@ var Info = (_, ref) => {
354
348
  _item = deleteDiscountList(_item, true);
355
349
  }
356
350
  if (matchById) {
357
- _list = _list.flatMap((d) => {
358
- if (d._id !== _id) return [d];
359
- return (0, import_utils8.updateEntitlementQuantity)(
360
- d,
361
- { ..._item, new: 0 }
362
- ).map((item) => ({
363
- ...item,
364
- _serviceKey: (0, import_utils3.genServiceKey)(item),
365
- _holderKey: (0, import_utils3.genHolderKey)(item)
366
- }));
367
- });
351
+ _list = _list.map((d) => d._id === _id ? { ..._item, new: 0 } : d);
368
352
  } else {
369
353
  let replaced = false;
370
354
  _list = _list.reduce((acc, d) => {
371
355
  if (isSameBookingServiceItem(d, _item)) {
372
356
  if (!replaced) {
373
- acc.push(
374
- ...(0, import_utils8.updateEntitlementQuantity)(
375
- d,
376
- { ..._item, new: 0, _id: d._id }
377
- ).map((item) => ({
378
- ...item,
379
- _serviceKey: (0, import_utils3.genServiceKey)(item),
380
- _holderKey: (0, import_utils3.genHolderKey)(item)
381
- }))
382
- );
357
+ acc.push({ ..._item, new: 0, _id: d._id });
383
358
  replaced = true;
384
359
  }
385
360
  } else {
@@ -396,7 +371,7 @@ var Info = (_, ref) => {
396
371
  (0, import_utils6.deleteCacheParams)();
397
372
  console.log("_onFinish", _list);
398
373
  form.resetFields();
399
- if (!!((_q2 = state.service.cacheItem) == null ? void 0 : _q2.new)) {
374
+ if (!!((_p2 = state.service.cacheItem) == null ? void 0 : _p2.new)) {
400
375
  window.dispatchEvent(
401
376
  new CustomEvent("onAddNewService", {
402
377
  detail: {
@@ -405,7 +380,7 @@ var Info = (_, ref) => {
405
380
  })
406
381
  );
407
382
  }
408
- (_r2 = window.closeBookingEditModal) == null ? void 0 : _r2.call(window);
383
+ (_q2 = window.closeBookingEditModal) == null ? void 0 : _q2.call(window);
409
384
  _list.sort((a, b) => {
410
385
  var _a3, _b3;
411
386
  const aHasHolderId = ((_a3 = a._extend) == null ? void 0 : _a3.holder_id) && (Array.isArray(a._extend.holder_id) ? a._extend.holder_id.length > 0 : true);
@@ -775,7 +750,7 @@ var Info = (_, ref) => {
775
750
  precision: 2,
776
751
  prefix: state.amountSymbol,
777
752
  onChange: handleTotalChange,
778
- disabled: state.channelDisabledEdit || isEntitlementPrice,
753
+ disabled: state.channelDisabledEdit,
779
754
  originalValue: ((_f2 = (_e2 = state.service.cacheItem) == null ? void 0 : _e2._extend) == null ? void 0 : _f2.origin_total) || 0,
780
755
  placeholder: ((_h2 = (_g2 = state.service.cacheItem) == null ? void 0 : _g2._extend) == null ? void 0 : _h2.origin_total) || "0",
781
756
  size: "large",
@@ -792,8 +767,7 @@ var Info = (_, ref) => {
792
767
  useTotal,
793
768
  (_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total,
794
769
  state.amountSymbol,
795
- state.channelDisabledEdit,
796
- isEntitlementPrice
770
+ state.channelDisabledEdit
797
771
  ]);
798
772
  const reason = (0, import_react.useMemo)(() => {
799
773
  return isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
@@ -0,0 +1,41 @@
1
+ /**
2
+ 1. 在进入编辑服务前
3
+
4
+ 计算出各种需要的列表
5
+
6
+ 设置默认值
7
+
8
+ 判断是否需要进入编辑服务页
9
+ */
10
+ export declare const getAutoAllocationStorage: (id: string | number) => any;
11
+ export declare const setAutoAllocationStorage: (data: {
12
+ [key: string]: boolean;
13
+ }) => void;
14
+ /**
15
+ * 手动折扣后给商品价格和子商品价格重新计算
16
+ *
17
+ * 计算逻辑:
18
+ * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
19
+ * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
20
+ *
21
+ * @param cacheItem - 缓存的商品项
22
+ * @param newTotal - 折扣后的新总价
23
+ * @param origin_total - 原始总价
24
+ */
25
+ export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
26
+ newTotal: number;
27
+ origin_total: number;
28
+ }) => any;
29
+ /**
30
+ * 获取商品所有折扣列表 包含子商品
31
+ * @param cacheItem - 缓存的商品项
32
+ * @returns 折扣列表
33
+ */
34
+ export declare const getProductAllDiscountList: (cacheItem: any) => any[];
35
+ /**
36
+ * 合并 bundle 数据,基于 id 和 product_id 匹配,price 优先使用 originalOther 中的值
37
+ * @param other - callback 返回的新数据
38
+ * @param originalOther - 编辑前的原始数据 (item._extend.other)
39
+ * @returns 合并后的 other
40
+ */
41
+ export declare const mergeBundleWithOriginalPrice: (other: any, originalOther: any) => any;
@@ -31,100 +31,20 @@ var utils_exports = {};
31
31
  __export(utils_exports, {
32
32
  getAutoAllocationStorage: () => getAutoAllocationStorage,
33
33
  getProductAllDiscountList: () => getProductAllDiscountList,
34
- hasEntitlementDiscount: () => hasEntitlementDiscount,
35
34
  mergeBundleWithOriginalPrice: () => mergeBundleWithOriginalPrice,
36
35
  setAutoAllocationStorage: () => setAutoAllocationStorage,
37
- setProductPrice: () => setProductPrice,
38
- updateEntitlementQuantity: () => updateEntitlementQuantity
36
+ setProductPrice: () => setProductPrice
39
37
  });
40
38
  module.exports = __toCommonJS(utils_exports);
41
39
  var import_utils = require("@pisell/utils");
40
+ var import_utils2 = require("@pisell/utils");
42
41
  var import_decimal = __toESM(require("decimal.js"));
43
- var import_lodash = require("lodash");
44
- var import_utils2 = require("../../../components/footer/utils");
45
- var import_utils3 = require("../../../utils");
46
- var isEntitlementDiscount = (discount) => ((discount == null ? void 0 : discount.tag) || (discount == null ? void 0 : discount.type)) === "entitlement_pass";
47
- var getServiceDiscounts = (item) => {
48
- var _a, _b;
49
- return [
50
- ...(item == null ? void 0 : item.discount_list) || [],
51
- ...(((_b = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []).flatMap((bundle) => bundle.discount_list || [])
52
- ];
53
- };
54
- var hasEntitlementDiscount = (item) => getServiceDiscounts(item).some(isEntitlementDiscount);
55
- var updateEntitlementQuantity = (previous, next) => {
56
- var _a, _b, _c, _d;
57
- const discounts = getServiceDiscounts(previous);
58
- const persisted = [previous == null ? void 0 : previous.booking_id, previous == null ? void 0 : previous.order_detail_id, (_a = previous == null ? void 0 : previous._extend) == null ? void 0 : _a.order_detail_id].some((value) => Number(value) > 0) || discounts.some((discount) => isEntitlementDiscount(discount) && discount.id);
59
- const previousQuantity = Number(((_b = previous == null ? void 0 : previous._extend) == null ? void 0 : _b.quantity) || 1);
60
- const nextQuantity = Number(next._extend.quantity || 1);
61
- if (!persisted || !hasEntitlementDiscount(previous) || nextQuantity === previousQuantity) {
62
- return [next];
63
- }
64
- if (nextQuantity < previousQuantity) {
65
- return [{
66
- ...previous,
67
- _extend: {
68
- ...previous._extend,
69
- quantity: nextQuantity,
70
- ...Array.isArray(next._extend.holder_id) ? { holder_id: next._extend.holder_id.slice(0, nextQuantity) } : {},
71
- other: { ...previous._extend.other, quantity: nextQuantity }
72
- },
73
- discount_list: (previous.discount_list || []).map((discount) => {
74
- var _a2, _b2;
75
- if (!isEntitlementDiscount(discount) || ((_a2 = discount.metadata) == null ? void 0 : _a2.custom_product_bundle_map_id)) return discount;
76
- const num = Math.min(Number(((_b2 = discount.metadata) == null ? void 0 : _b2.num) ?? previousQuantity), nextQuantity);
77
- return { ...discount, _num: num, metadata: { ...discount.metadata, num } };
78
- })
79
- }];
80
- }
81
- const appended = (0, import_lodash.cloneDeep)(next);
82
- const uid = (0, import_utils.getUniqueId)();
83
- appended._id = uid;
84
- appended.booking_id = 0;
85
- appended.order_detail_id = 0;
86
- appended.new = 0;
87
- appended.discount_list = [];
88
- appended.discount_amount = 0;
89
- appended.metadata = { ...appended.metadata, unique_identification_number: uid };
90
- delete appended.metadata.entitlement_source_identity;
91
- delete appended.metadata.entitlement_source_product_uid;
92
- if (appended._origin) delete appended._origin.booking_id;
93
- const extend = appended._extend;
94
- extend.order_detail_id = 0;
95
- extend.unique_identification_number = uid;
96
- extend.quantity = nextQuantity - previousQuantity;
97
- if (Array.isArray(extend.holder_id)) {
98
- const holders = extend.holder_id.slice(previousQuantity, nextQuantity);
99
- extend.holder_id = holders.length ? holders : void 0;
100
- }
101
- extend.other = { ...extend.other, quantity: extend.quantity };
102
- extend.other.bundle = (extend.other.bundle || []).map((bundle) => {
103
- var _a2, _b2, _c2;
104
- const price = bundle.original_price ?? ((_c2 = (_b2 = (_a2 = bundle.discount_list) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.discount) == null ? void 0 : _c2.original_amount) ?? bundle.product_price ?? bundle.price;
105
- const bundleUid = (0, import_utils.getUniqueId)();
106
- const metadata = { ...bundle.metadata, custom_product_bundle_map_id: bundleUid, unique_identification_number: bundleUid };
107
- delete metadata.entitlement_source_identity;
108
- return { ...bundle, _id: bundleUid, price, bundle_selling_price: price, discount_list: [], metadata };
109
- });
110
- const mainDiscount = (next.discount_list || []).find((discount) => {
111
- var _a2, _b2;
112
- return !((_a2 = discount.metadata) == null ? void 0 : _a2.custom_product_bundle_map_id) && ((_b2 = discount.discount) == null ? void 0 : _b2.original_amount) != null;
113
- });
114
- if (mainDiscount && ((_d = (_c = previous == null ? void 0 : previous._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.product_variant_id) === extend.other.product_variant_id) {
115
- extend.price = Number(mainDiscount.discount.original_amount);
116
- if (extend.other.product_variant_id) extend.other.price = extend.price;
117
- }
118
- extend.main_product_selling_price = (0, import_utils3.getMainPrice)(appended);
119
- extend.total = (0, import_utils3.getProductTotalPrice)(appended);
120
- extend.origin_total = extend.total;
121
- return [previous, appended];
122
- };
42
+ var import_utils3 = require("../../../components/footer/utils");
123
43
  var getAutoAllocationStorage = (id) => {
124
44
  const value = localStorage.getItem("resource-auto-allocation");
125
45
  if (value) {
126
46
  const valueObj = JSON.parse(value);
127
- return (0, import_utils.isBoolean)(valueObj[id]) ? valueObj[id] : true;
47
+ return (0, import_utils2.isBoolean)(valueObj[id]) ? valueObj[id] : true;
128
48
  }
129
49
  return true;
130
50
  };
@@ -138,8 +58,8 @@ var setAutoAllocationStorage = (data) => {
138
58
  }
139
59
  };
140
60
  var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
141
- var _a, _b, _c, _d, _e, _f, _g, _h;
142
- if (hasEntitlementDiscount(cacheItem) || ((cacheItem == null ? void 0 : cacheItem.discount_list) || []).some((item) => ["good_pass", "discount_card", "product_discount_card"].includes(
61
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
62
+ if (((_a = cacheItem == null ? void 0 : cacheItem.discount_list) == null ? void 0 : _a.length) && ((cacheItem == null ? void 0 : cacheItem.discount_list) || []).some((item) => ["good_pass", "discount_card", "product_discount_card"].includes(
143
63
  item.type
144
64
  ))) {
145
65
  return cacheItem;
@@ -149,16 +69,16 @@ var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
149
69
  }
150
70
  const discountRatio = new import_decimal.default(newTotal).div(new import_decimal.default(origin_total));
151
71
  let subTotal = new import_decimal.default(0);
152
- if (((_a = cacheItem._extend.other) == null ? void 0 : _a.bundle) && (0, import_utils.isArr)((_b = cacheItem._extend.other) == null ? void 0 : _b.bundle)) {
153
- (_d = (_c = cacheItem._extend.other) == null ? void 0 : _c.bundle) == null ? void 0 : _d.forEach((bundle) => {
72
+ if (((_b = cacheItem._extend.other) == null ? void 0 : _b.bundle) && (0, import_utils.isArr)((_c = cacheItem._extend.other) == null ? void 0 : _c.bundle)) {
73
+ (_e = (_d = cacheItem._extend.other) == null ? void 0 : _d.bundle) == null ? void 0 : _e.forEach((bundle) => {
154
74
  const newPrice = new import_decimal.default(bundle.original_price || bundle.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
155
75
  const quantity = bundle.num ?? bundle.quantity ?? 1;
156
76
  subTotal = subTotal.add(new import_decimal.default(newPrice).mul(quantity));
157
77
  bundle.price = newPrice;
158
78
  });
159
79
  }
160
- if (((_e = cacheItem._extend.other) == null ? void 0 : _e.option) && (0, import_utils.isArr)((_f = cacheItem._extend.other) == null ? void 0 : _f.option)) {
161
- (_h = (_g = cacheItem._extend.other) == null ? void 0 : _g.option) == null ? void 0 : _h.forEach((option) => {
80
+ if (((_f = cacheItem._extend.other) == null ? void 0 : _f.option) && (0, import_utils.isArr)((_g = cacheItem._extend.other) == null ? void 0 : _g.option)) {
81
+ (_i = (_h = cacheItem._extend.other) == null ? void 0 : _h.option) == null ? void 0 : _i.forEach((option) => {
162
82
  const newPrice = new import_decimal.default(option.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
163
83
  const quantity = option.num ?? option.quantity ?? 1;
164
84
  subTotal = subTotal.add(new import_decimal.default(newPrice).mul(quantity));
@@ -171,7 +91,7 @@ var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
171
91
  var getProductAllDiscountList = (cacheItem) => {
172
92
  var _a, _b;
173
93
  const discountList = [...cacheItem.discount_list || []];
174
- const bundleDiscountList = (0, import_utils2.getBundleDiscountList)(((_b = (_a = cacheItem._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []) || [];
94
+ const bundleDiscountList = (0, import_utils3.getBundleDiscountList)(((_b = (_a = cacheItem._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []) || [];
175
95
  discountList.push(...bundleDiscountList);
176
96
  return discountList;
177
97
  };
@@ -193,9 +113,7 @@ var mergeBundleWithOriginalPrice = (other, originalOther) => {
193
113
  0 && (module.exports = {
194
114
  getAutoAllocationStorage,
195
115
  getProductAllDiscountList,
196
- hasEntitlementDiscount,
197
116
  mergeBundleWithOriginalPrice,
198
117
  setAutoAllocationStorage,
199
- setProductPrice,
200
- updateEntitlementQuantity
118
+ setProductPrice
201
119
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PaymentPlugin: () => JSX.Element;
2
3
  export default PaymentPlugin;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface IScanResult {
3
4
  status: 'success' | 'failed';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellWalletPassCardProps } from '../../types';
2
3
  export declare const TestModule: () => JSX.Element;
3
4
  declare const ConflictModal: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DiscountWalletProps {
3
4
  isCardMode: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SettlementModal: ({ open, onClose, data, }: {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos, DeviceStatus } from './const';
2
3
  import './index.less';
3
4
  interface PosProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
3
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Linkly: ({ api, onChange }: any) => JSX.Element;
2
3
  export default Linkly;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ContinueButton: () => JSX.Element;
3
4
  export default ContinueButton;
@@ -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 Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: () => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;