@pisell/private-materials 6.2.34 → 6.2.36

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 (269) 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/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/index.d.ts +1 -0
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  17. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  19. package/es/components/booking/components/voucher/index.js +5 -0
  20. package/es/components/booking/deposit/ClientItem/index.js +1 -1
  21. package/es/components/booking/deposit/DepositItem/index.js +1 -1
  22. package/es/components/booking/deposit/index.d.ts +1 -0
  23. package/es/components/booking/forms/single/index.d.ts +1 -0
  24. package/es/components/booking/hooks/useQuotation.js +1 -1
  25. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  26. package/es/components/booking/info/clientVariant/utils.d.ts +2 -0
  27. package/es/components/booking/info/clientVariant/utils.js +7 -0
  28. package/es/components/booking/info/clientVariant/vertical/index.js +3 -2
  29. package/es/components/booking/info/date/index.d.ts +1 -0
  30. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  31. package/es/components/booking/info/header/index.d.ts +1 -0
  32. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  33. package/es/components/booking/info/notes/index.d.ts +1 -0
  34. package/es/components/booking/info/service/Lists.d.ts +1 -0
  35. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  36. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  37. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  38. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  39. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  40. package/es/components/booking/info/service2/utils.d.ts +1 -1
  41. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  42. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  43. package/es/components/booking/info2/service/addService/utils.js +2 -1
  44. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  45. package/es/components/booking/info2/service/editService/index.js +37 -29
  46. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  47. package/es/components/booking/info2/utilsByBooking.js +4 -4
  48. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  49. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  50. package/es/components/booking/materiels/duration/index.js +1 -1
  51. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  52. package/es/components/booking/materiels/startTime/index.js +1 -1
  53. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  54. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  55. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  56. package/es/components/booking/utils.js +3 -3
  57. package/es/components/eftpos/index.d.ts +1 -0
  58. package/es/components/eftpos/pos.d.ts +1 -0
  59. package/es/components/eftposPay/amount.d.ts +2 -1
  60. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  61. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  62. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  63. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  64. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  65. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  66. package/es/components/eftposPay/device.d.ts +2 -1
  67. package/es/components/eftposPay/hooks.d.ts +1 -1
  68. package/es/components/eftposPay/index.d.ts +1 -0
  69. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  70. package/es/components/eftposPay/pay.d.ts +1 -0
  71. package/es/components/eftposPay/payo/config.d.ts +1 -0
  72. package/es/components/eftposPay/store/index.d.ts +3 -3
  73. package/es/components/eftposPay/tip.d.ts +1 -0
  74. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  75. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  76. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  81. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  85. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  86. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  88. package/es/components/eventBooking/index.d.ts +1 -0
  89. package/es/components/login/index.d.ts +1 -0
  90. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  92. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  93. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  94. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  95. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  96. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  97. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  98. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  99. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  100. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  101. package/es/components/productExtension/index.d.ts +1 -0
  102. package/es/components/productSelect/components/TabProduct/index.js +7 -2
  103. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  104. package/es/components/ruleSetting/index.d.ts +1 -0
  105. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  106. package/es/components/schedules/calendar/index.d.ts +1 -0
  107. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  108. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  109. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  110. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  111. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  112. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  113. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  114. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  115. package/es/components/schedules/products/list/index.d.ts +1 -0
  116. package/es/components/schedules/resources/index.d.ts +1 -0
  117. package/es/components/schedules/resources/list/index.d.ts +1 -0
  118. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  119. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  120. package/es/components/schedules/schedules/index.d.ts +1 -0
  121. package/es/components/shoppingCart/components/Cart/Product.js +1 -1
  122. package/es/components/shoppingCart/index.d.ts +1 -0
  123. package/es/components/taxSelect/index.d.ts +1 -0
  124. package/es/components/ticketBooking/components/addServiceVariant/addService.js +170 -89
  125. package/es/components/ticketBooking/components/timeBar/index.js +3 -3
  126. package/es/components/ticketBooking/locales.js +3 -3
  127. package/es/components/ticketBooking/utils/index.d.ts +3 -1
  128. package/es/components/ticketBooking/utils/index.js +18 -2
  129. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  130. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  131. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  132. package/es/plus/clientName/index.d.ts +1 -0
  133. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  134. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  135. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  136. package/es/pro/pisellNumberSelector/index.js +3 -3
  137. package/es/pro/pisellPhoneKeyboard/index.js +1 -1
  138. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  139. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  140. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  141. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  142. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  143. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  144. package/lib/components/appointmentBooking/index.d.ts +1 -0
  145. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  146. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  147. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  148. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  149. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  150. package/lib/components/booking/components/voucher/index.js +5 -0
  151. package/lib/components/booking/deposit/ClientItem/index.js +1 -1
  152. package/lib/components/booking/deposit/DepositItem/index.js +1 -1
  153. package/lib/components/booking/deposit/index.d.ts +1 -0
  154. package/lib/components/booking/forms/single/index.d.ts +1 -0
  155. package/lib/components/booking/hooks/useQuotation.js +1 -1
  156. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  157. package/lib/components/booking/info/clientVariant/utils.d.ts +2 -0
  158. package/lib/components/booking/info/clientVariant/utils.js +13 -2
  159. package/lib/components/booking/info/clientVariant/vertical/index.js +7 -6
  160. package/lib/components/booking/info/date/index.d.ts +1 -0
  161. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  162. package/lib/components/booking/info/header/index.d.ts +1 -0
  163. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  164. package/lib/components/booking/info/notes/index.d.ts +1 -0
  165. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  166. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  167. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  168. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  169. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  170. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  171. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  172. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  173. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  174. package/lib/components/booking/info2/service/addService/utils.js +3 -3
  175. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  176. package/lib/components/booking/info2/service/editService/index.js +22 -12
  177. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  178. package/lib/components/booking/info2/utilsByBooking.js +7 -8
  179. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  180. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  181. package/lib/components/booking/materiels/duration/index.js +1 -1
  182. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  183. package/lib/components/booking/materiels/startTime/index.js +1 -1
  184. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  185. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  186. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  187. package/lib/components/booking/utils.js +3 -3
  188. package/lib/components/eftpos/index.d.ts +1 -0
  189. package/lib/components/eftpos/pos.d.ts +1 -0
  190. package/lib/components/eftposPay/amount.d.ts +2 -1
  191. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  192. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  193. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  194. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  195. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  196. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  197. package/lib/components/eftposPay/device.d.ts +2 -1
  198. package/lib/components/eftposPay/hooks.d.ts +1 -1
  199. package/lib/components/eftposPay/index.d.ts +1 -0
  200. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  201. package/lib/components/eftposPay/pay.d.ts +1 -0
  202. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  203. package/lib/components/eftposPay/store/index.d.ts +3 -3
  204. package/lib/components/eftposPay/tip.d.ts +1 -0
  205. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  206. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  207. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  208. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  209. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  210. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  211. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  212. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  213. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  214. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  215. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  216. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  217. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  218. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  219. package/lib/components/eventBooking/index.d.ts +1 -0
  220. package/lib/components/login/index.d.ts +1 -0
  221. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  222. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  223. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  224. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  225. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  226. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  227. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  228. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  229. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  230. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  231. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  232. package/lib/components/productExtension/index.d.ts +1 -0
  233. package/lib/components/productSelect/components/TabProduct/index.js +7 -1
  234. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  235. package/lib/components/ruleSetting/index.d.ts +1 -0
  236. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  237. package/lib/components/schedules/calendar/index.d.ts +1 -0
  238. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  239. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  240. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  241. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  242. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  243. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  244. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  245. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  246. package/lib/components/schedules/products/list/index.d.ts +1 -0
  247. package/lib/components/schedules/resources/index.d.ts +1 -0
  248. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  249. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  250. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  251. package/lib/components/schedules/schedules/index.d.ts +1 -0
  252. package/lib/components/shoppingCart/components/Cart/Product.js +6 -4
  253. package/lib/components/shoppingCart/index.d.ts +1 -0
  254. package/lib/components/taxSelect/index.d.ts +1 -0
  255. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +85 -12
  256. package/lib/components/ticketBooking/components/timeBar/index.js +89 -70
  257. package/lib/components/ticketBooking/locales.js +3 -3
  258. package/lib/components/ticketBooking/utils/index.d.ts +3 -1
  259. package/lib/components/ticketBooking/utils/index.js +21 -0
  260. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  261. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  262. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  263. package/lib/plus/clientName/index.d.ts +1 -0
  264. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  265. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  266. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  267. package/lib/pro/pisellNumberSelector/index.js +3 -3
  268. package/lib/pro/pisellPhoneKeyboard/index.js +1 -1
  269. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1 +1,3 @@
1
1
  export declare const getWaiverTitle: (waiverForm: any[]) => string;
2
+ export declare const setClientVariantClose: (fn: any) => void;
3
+ export declare const getClientVariantClose: () => (() => void) | null;
@@ -19,7 +19,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/components/booking/info/clientVariant/utils.ts
20
20
  var utils_exports = {};
21
21
  __export(utils_exports, {
22
- getWaiverTitle: () => getWaiverTitle
22
+ getClientVariantClose: () => getClientVariantClose,
23
+ getWaiverTitle: () => getWaiverTitle,
24
+ setClientVariantClose: () => setClientVariantClose
23
25
  });
24
26
  module.exports = __toCommonJS(utils_exports);
25
27
  var import_utils = require("@pisell/utils");
@@ -28,7 +30,16 @@ var getWaiverTitle = (waiverForm) => {
28
30
  return `${item.form_title || ""}:${item.is_filled ? import_utils.locales.getText("pisell2.text.filled") : import_utils.locales.getText("pisell2.text.not-filled")}`;
29
31
  }).join(";");
30
32
  };
33
+ var clientVariantClose;
34
+ var setClientVariantClose = (fn) => {
35
+ clientVariantClose = fn;
36
+ };
37
+ var getClientVariantClose = () => {
38
+ return clientVariantClose;
39
+ };
31
40
  // Annotate the CommonJS export names for ESM import in node:
32
41
  0 && (module.exports = {
33
- getWaiverTitle
42
+ getClientVariantClose,
43
+ getWaiverTitle,
44
+ setClientVariantClose
34
45
  });
@@ -54,7 +54,7 @@ var import_useAddHolder = __toESM(require("../../hooks/useAddHolder"));
54
54
  var import_utils5 = require("../utils");
55
55
  var import_useGetHolderList = __toESM(require("../../hooks/useGetHolderList"));
56
56
  var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
57
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O;
57
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P;
58
58
  const { globalState, setGlobalState } = props;
59
59
  const modalRef = (0, import_react.useRef)();
60
60
  const state = globalState;
@@ -377,6 +377,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
377
377
  setSearch: (_b2 = modalRef.current) == null ? void 0 : _b2.setSearch
378
378
  };
379
379
  });
380
+ (0, import_utils5.setClientVariantClose)((_z = modalRef.current) == null ? void 0 : _z.close);
380
381
  const isOpenDeleteProduct = (0, import_react.useMemo)(() => {
381
382
  if (!(0, import_utils3.isDayBooking)(state)) return false;
382
383
  const pets = (0, import_utils3.getPets)(state);
@@ -444,11 +445,11 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
444
445
  import_antd.Avatar,
445
446
  {
446
447
  className: "pisell-lowcode__booking-client-avatar",
447
- src: import_utils.image.ali((_z = state.client.value) == null ? void 0 : _z.cover, 100),
448
+ src: import_utils.image.ali((_A = state.client.value) == null ? void 0 : _A.cover, 100),
448
449
  size: 64,
449
450
  icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
450
451
  }
451
- ), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((_A = state.client.value) == null ? void 0 : _A.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_B = state.client.value) == null ? void 0 : _B.email) : null, ((_C = state.client.value) == null ? void 0 : _C.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_D = state.client.value) == null ? void 0 : _D.phone) : null, !!((_F = (_E = state.client.value) == null ? void 0 : _E.waiver_form) == null ? void 0 : _F.length) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-waiver", title: (0, import_utils5.getWaiverTitle)((_G = state.client.value) == null ? void 0 : _G.waiver_form) }, (_J = (_I = (_H = state.client.value) == null ? void 0 : _H.waiver_form) == null ? void 0 : _I.map) == null ? void 0 : _J.call(_I, (item) => {
452
+ ), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((_B = state.client.value) == null ? void 0 : _B.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_C = state.client.value) == null ? void 0 : _C.email) : null, ((_D = state.client.value) == null ? void 0 : _D.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_E = state.client.value) == null ? void 0 : _E.phone) : null, !!((_G = (_F = state.client.value) == null ? void 0 : _F.waiver_form) == null ? void 0 : _G.length) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-waiver", title: (0, import_utils5.getWaiverTitle)((_H = state.client.value) == null ? void 0 : _H.waiver_form) }, (_K = (_J = (_I = state.client.value) == null ? void 0 : _I.waiver_form) == null ? void 0 : _J.map) == null ? void 0 : _K.call(_J, (item) => {
452
453
  return /* @__PURE__ */ import_react.default.createElement("span", null, item.form_title, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-client-waiver-colon" }, ":"), item.is_filled ? /* @__PURE__ */ import_react.default.createElement(
453
454
  "span",
454
455
  {
@@ -513,7 +514,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
513
514
  showHeader: !state.isBookingCreatePage,
514
515
  modalOpen: state.modalOpen,
515
516
  loading,
516
- autoFocus: !((_M = (_L = (_K = context == null ? void 0 : context.appHelper) == null ? void 0 : _K.utils) == null ? void 0 : _L.isTerminal) == null ? void 0 : _M.call(_L)),
517
+ autoFocus: !((_N = (_M = (_L = context == null ? void 0 : context.appHelper) == null ? void 0 : _L.utils) == null ? void 0 : _M.isTerminal) == null ? void 0 : _N.call(_M)),
517
518
  ref: modalRef,
518
519
  onClose: handleClose,
519
520
  handleSelectClient: _handleSelectClient,
@@ -523,8 +524,8 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
523
524
  formData: state.pet.formData,
524
525
  searchChange,
525
526
  options: renderList,
526
- holder: (_N = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _N.holder,
527
- client: (_O = state == null ? void 0 : state.client) == null ? void 0 : _O.value,
527
+ holder: (_O = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _O.holder,
528
+ client: (_P = state == null ? void 0 : state.client) == null ? void 0 : _P.value,
528
529
  loadMore,
529
530
  showPet: (boardConfig == null ? void 0 : boardConfig.type) === "form",
530
531
  handleAddPet,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -384,7 +384,7 @@ var getIsAutoClose = (cacheItem) => {
384
384
  );
385
385
  };
386
386
  var getProductExtend = ({ cacheItem, state, isDisabledTime }) => {
387
- var _a, _b, _c, _d;
387
+ var _a, _b, _c, _d, _e, _f, _g;
388
388
  const isNew = cacheItem.new || !cacheItem._extend.endDate;
389
389
  let _cacheItem = { ...cacheItem };
390
390
  const resourcesOriginMap = state.service.resourcesOriginMap || {};
@@ -432,7 +432,7 @@ var getProductExtend = ({ cacheItem, state, isDisabledTime }) => {
432
432
  state
433
433
  });
434
434
  if ((0, import_utils.getDuration)(_cacheItem == null ? void 0 : _cacheItem.duration) === "flexible") {
435
- _cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
435
+ _cacheItem._extend.duration = (_e = (_d = (_c = _cacheItem._data.timeObj) == null ? void 0 : _c.durationSlicesBasedOnTime) == null ? void 0 : _d[0]) == null ? void 0 : _e.value;
436
436
  const { startDate, endDate } = (0, import_utils.getServiceTimes)({
437
437
  _extend: _cacheItem._extend
438
438
  });
@@ -466,7 +466,7 @@ var getProductExtend = ({ cacheItem, state, isDisabledTime }) => {
466
466
  {
467
467
  extraResources,
468
468
  // 此数据用来控制 该商品所展示的资源是自身关联的, 还是全部的
469
- resourceTab: (_d = (_c = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.resource_tab,
469
+ resourceTab: (_g = (_f = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _f.config) == null ? void 0 : _g.resource_tab,
470
470
  resourcesOrigin: state.service.resourcesOrigin
471
471
  }
472
472
  );
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -174,7 +174,7 @@ var Info = (_, ref) => {
174
174
  form.setFieldsValue({ discount });
175
175
  };
176
176
  const onFinish = (values) => {
177
- var _a2, _b2;
177
+ var _a2, _b2, _c2;
178
178
  let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
179
179
  if (isShowTimeAndResource && !isSuccess) {
180
180
  return;
@@ -221,6 +221,15 @@ var Info = (_, ref) => {
221
221
  (0, import_utils3.deleteCacheParams)();
222
222
  console.log("_onFinish", _list);
223
223
  form.resetFields();
224
+ if (!!((_c2 = state.service.cacheItem) == null ? void 0 : _c2.new)) {
225
+ window.dispatchEvent(
226
+ new CustomEvent("onAddNewService", {
227
+ detail: {
228
+ cacheItem: { ...state.service.cacheItem }
229
+ }
230
+ })
231
+ );
232
+ }
224
233
  dispatch({
225
234
  type: "setService",
226
235
  payload: {
@@ -457,6 +466,18 @@ var Info = (_, ref) => {
457
466
  }, [state.renderType, isNormalProduct]);
458
467
  const SelectTime = (_p = window.BaseMaterials) == null ? void 0 : _p.SelectTime;
459
468
  const isNoSpecAndPackage = (0, import_utilsByBooking.getIsNoSpecAndPackage)(state.service.cacheItem);
469
+ const handleNoteConfirm = (noteValue) => {
470
+ form.setFieldsValue({ note: noteValue });
471
+ setNoteModalOpen(false);
472
+ };
473
+ const handleNoteDelete = () => {
474
+ form.setFieldsValue({ note: "" });
475
+ setNoteModalOpen(false);
476
+ };
477
+ const handleNoteCancel = () => {
478
+ setNoteModalOpen(false);
479
+ };
480
+ console.log(isShowTimeAndResource, "isShowTimeAndResource");
460
481
  const productName = (0, import_react.useMemo)(() => {
461
482
  var _a2, _b2, _c2;
462
483
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
@@ -673,17 +694,6 @@ var Info = (_, ref) => {
673
694
  setVal(false);
674
695
  }
675
696
  }, [isShowTimeAndResource]);
676
- const handleNoteConfirm = (noteValue) => {
677
- form.setFieldsValue({ note: noteValue });
678
- setNoteModalOpen(false);
679
- };
680
- const handleNoteDelete = () => {
681
- form.setFieldsValue({ note: "" });
682
- setNoteModalOpen(false);
683
- };
684
- const handleNoteCancel = () => {
685
- setNoteModalOpen(false);
686
- };
687
697
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
688
698
  import_drawer.default,
689
699
  {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -42,8 +42,7 @@ module.exports = __toCommonJS(utilsByBooking_exports);
42
42
  var import_dayjs = __toESM(require("dayjs"));
43
43
  var import_utils = require("@pisell/utils");
44
44
  var import_utils2 = require("../utils");
45
- var import_utils3 = require("../info/service2/utils");
46
- var import_utils4 = require("../../ticketBooking/components/addServiceVariant/utils");
45
+ var import_utils3 = require("../../ticketBooking/components/addServiceVariant/utils");
47
46
  var getUseableEventCount = (eventList, current) => {
48
47
  return (eventList || []).reduce((pre, event) => {
49
48
  return pre - event.pax;
@@ -211,7 +210,7 @@ var getAppointmentTimingPreference = (state) => {
211
210
  return ((_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.information_tab) == null ? void 0 : _c.appointment_timing_preference) || "sequential";
212
211
  };
213
212
  var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
214
- var _a, _b, _c, _d;
213
+ var _a, _b, _c, _d, _e;
215
214
  if (cacheItem == null ? void 0 : cacheItem.isCustomItem) {
216
215
  return {
217
216
  duration: null
@@ -224,7 +223,7 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
224
223
  // 时长: 当前商品时长 > 第一个时长
225
224
  duration: (0, import_utils2.findNextDuration)(
226
225
  cacheItem.duration,
227
- timeObj.durationSlicesBasedOnTime,
226
+ timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime,
228
227
  (_b = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _b.value
229
228
  )
230
229
  };
@@ -235,7 +234,7 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
235
234
  _extend.start_time = lastServerStartDate.format("HH:mm");
236
235
  } else {
237
236
  if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
238
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
237
+ _extend.start_time = timeObj == null ? void 0 : timeObj.timeSlices[((_c = timeObj == null ? void 0 : timeObj.timeSlices) == null ? void 0 : _c.length) - 1].value;
239
238
  } else {
240
239
  _extend.start_time = lastServerEndDate.format("HH:mm");
241
240
  }
@@ -268,7 +267,7 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
268
267
  const { startDate, endDate } = (0, import_utils2.getServiceTimes)({ _extend });
269
268
  _extend.startDate = startDate;
270
269
  _extend.endDate = endDate;
271
- const session = (_d = (_c = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.session;
270
+ const session = (_e = (_d = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.session;
272
271
  if ((0, import_utils2.isSessionProduct)(cacheItem) && session) {
273
272
  _extend.start_date = session.start_at;
274
273
  _extend.startDate = session.start_at;
@@ -281,13 +280,13 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
281
280
  };
282
281
  var getIsNoSpecAndPackage = (product) => {
283
282
  var _a, _b, _c, _d;
284
- if (!(0, import_utils3.isNormalProductByDurationSchedule)(product)) {
283
+ if ((product == null ? void 0 : product.extension_type) !== "normal") {
285
284
  return false;
286
285
  }
287
286
  if (product == null ? void 0 : product.isEditBooking) {
288
287
  return ((_a = product == null ? void 0 : product.product_bundle) == null ? void 0 : _a.length) === 0 && (product == null ? void 0 : product.product_variant_id) === 0 && (((_c = (_b = product == null ? void 0 : product.product_sku) == null ? void 0 : _b.option) == null ? void 0 : _c.length) || 0) === 0;
289
288
  }
290
- return (product == null ? void 0 : product.is_bundle) === 0 && (((_d = product == null ? void 0 : product.variant) == null ? void 0 : _d.length) || 0) === 0 && !(0, import_utils4.isOption)(product);
289
+ return (product == null ? void 0 : product.is_bundle) === 0 && (((_d = product == null ? void 0 : product.variant) == null ? void 0 : _d.length) || 0) === 0 && !(0, import_utils3.isOption)(product);
291
290
  };
292
291
  // Annotate the CommonJS export names for ESM import in node:
293
292
  0 && (module.exports = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface DurationProps extends SelectProps {
3
4
  locale?: string;
@@ -77,7 +77,7 @@ var Duration = (props) => {
77
77
  });
78
78
  }
79
79
  return durationSlicesBasedOnTime;
80
- }, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
80
+ }, [timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
81
81
  (0, import_react.useEffect)(() => {
82
82
  timeObjChange == null ? void 0 : timeObjChange(times);
83
83
  }, [times]);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -52,6 +52,6 @@ var StartTime = (props) => {
52
52
  },
53
53
  []
54
54
  );
55
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(timeObj.timeSlices));
55
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(timeObj == null ? void 0 : timeObj.timeSlices));
56
56
  };
57
57
  var startTime_default = StartTime;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  isEdit: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  title?: string;
@@ -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;
@@ -550,7 +550,7 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
550
550
  }
551
551
  return findNextDuration(
552
552
  cacheItem.duration,
553
- timeObj.durationSlicesBasedOnTime,
553
+ timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime,
554
554
  (_a = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _a.value
555
555
  );
556
556
  };
@@ -566,14 +566,14 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
566
566
  _extend.start_time = lastServerStartDate.format("HH:mm");
567
567
  } else {
568
568
  if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
569
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
569
+ _extend.start_time = timeObj == null ? void 0 : timeObj.timeSlices[(timeObj == null ? void 0 : timeObj.timeSlices.length) - 1].value;
570
570
  } else {
571
571
  _extend.start_time = lastServerEndDate.format("HH:mm");
572
572
  }
573
573
  }
574
574
  } else {
575
575
  let findNextSliceProps = {
576
- timeSlices: timeObj.timeSlices,
576
+ timeSlices: timeObj == null ? void 0 : timeObj.timeSlices,
577
577
  index: 0,
578
578
  date: ""
579
579
  };
@@ -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 { DeviceProp } from "./const";
2
3
  interface PosProps {
3
4
  eftposName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -8,7 +9,7 @@ import { PosProps } from './const';
8
9
  */
9
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
11
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
13
  [keys: string]: unknown;
13
14
  } | undefined, other?: any) => void) | undefined;
14
15
  onClose: () => void;
@@ -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 { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 断网(客户端)提示页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 取消签名确认页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps, PosProps } from './const';
2
3
  import './device.less';
3
4
  /**
@@ -10,7 +11,7 @@ import './device.less';
10
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
12
  api: PayProps['api'];
12
13
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
15
  [keys: string]: unknown;
15
16
  } | undefined, other?: any) => void) | undefined;
16
17
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -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 { StatusEnum } from '../const';
2
3
  export declare const POS: ({ api, onChange, }: {
3
4
  api: {
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -303,12 +303,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './tip.less';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 按钮操作区
3
4
  * @description: 仅包含签名
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;