@pisell/private-materials 6.5.15 → 6.5.17

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 (231) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  15. package/es/components/booking/deposit/index.d.ts +0 -1
  16. package/es/components/booking/forms/single/index.d.ts +0 -1
  17. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  18. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  19. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  20. package/es/components/booking/info/header/index.d.ts +0 -1
  21. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  22. package/es/components/booking/info/index.d.ts +0 -1
  23. package/es/components/booking/info/notes/index.d.ts +0 -1
  24. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  25. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  26. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  27. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  28. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  29. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  30. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  31. package/es/components/booking/utils.d.ts +2 -2
  32. package/es/components/checkout/PaymentPlugin.d.ts +0 -1
  33. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  34. package/es/components/eftpos/form/index.d.ts +0 -1
  35. package/es/components/eftpos/hooks.d.ts +0 -1
  36. package/es/components/eftpos/index.d.ts +0 -1
  37. package/es/components/eftpos/pos.d.ts +0 -1
  38. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  39. package/es/components/eftposPay/amount.d.ts +0 -1
  40. package/es/components/eftposPay/app.d.ts +0 -1
  41. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  42. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  43. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  44. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  45. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  46. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  47. package/es/components/eftposPay/hooks.d.ts +2 -2
  48. package/es/components/eftposPay/index.d.ts +0 -1
  49. package/es/components/eftposPay/pay.d.ts +0 -1
  50. package/es/components/eftposPay/store/index.d.ts +4 -4
  51. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  52. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  53. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  54. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  61. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  62. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  63. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  68. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  69. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  70. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  71. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  72. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  73. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  74. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  75. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  76. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  77. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  78. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  79. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  80. package/es/components/schedules/products/index.d.ts +0 -1
  81. package/es/components/schedules/resources/index.d.ts +0 -1
  82. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  83. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  84. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  85. package/es/components/schedules/schedules/index.d.ts +0 -1
  86. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  87. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  88. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  89. package/es/components/taxSelect/index.d.ts +0 -1
  90. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
  91. package/es/components/ticketBooking/components/addServiceVariant/addService.js +14 -3
  92. package/es/components/ticketBooking/components/menuBar/index.js +5 -4
  93. package/es/components/ticketBooking/components/menuBar/index.less +5 -0
  94. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -0
  95. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
  96. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +36 -12
  97. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  98. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  99. package/es/hooks/useEngineContext.d.ts +1 -0
  100. package/es/hooks/useEngineContext.js +7 -0
  101. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  102. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  103. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  104. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  105. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  106. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
  107. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
  108. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
  109. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  110. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  111. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  112. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  113. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  114. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  115. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  116. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  117. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  118. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  119. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  120. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  121. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  122. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  123. package/lib/components/appointmentBooking/index.d.ts +0 -1
  124. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  125. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  126. package/lib/components/booking/deposit/index.d.ts +0 -1
  127. package/lib/components/booking/forms/single/index.d.ts +0 -1
  128. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  129. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  130. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  131. package/lib/components/booking/info/header/index.d.ts +0 -1
  132. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  133. package/lib/components/booking/info/index.d.ts +0 -1
  134. package/lib/components/booking/info/notes/index.d.ts +0 -1
  135. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  136. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  137. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  138. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  139. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  140. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  141. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  142. package/lib/components/booking/utils.d.ts +2 -2
  143. package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
  144. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  145. package/lib/components/eftpos/form/index.d.ts +0 -1
  146. package/lib/components/eftpos/hooks.d.ts +0 -1
  147. package/lib/components/eftpos/index.d.ts +0 -1
  148. package/lib/components/eftpos/pos.d.ts +0 -1
  149. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  150. package/lib/components/eftposPay/amount.d.ts +0 -1
  151. package/lib/components/eftposPay/app.d.ts +0 -1
  152. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  153. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  154. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  155. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  156. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  157. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  158. package/lib/components/eftposPay/hooks.d.ts +2 -2
  159. package/lib/components/eftposPay/index.d.ts +0 -1
  160. package/lib/components/eftposPay/pay.d.ts +0 -1
  161. package/lib/components/eftposPay/store/index.d.ts +4 -4
  162. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  163. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  164. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  165. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  166. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  167. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  168. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  170. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  171. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  172. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  173. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  174. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  175. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  176. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  177. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  178. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  179. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  180. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  181. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  182. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  183. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  184. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  185. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  186. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  187. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  188. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  189. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  190. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  191. package/lib/components/schedules/products/index.d.ts +0 -1
  192. package/lib/components/schedules/resources/index.d.ts +0 -1
  193. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  194. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  195. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  196. package/lib/components/schedules/schedules/index.d.ts +0 -1
  197. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  198. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  199. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  200. package/lib/components/taxSelect/index.d.ts +0 -1
  201. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
  202. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -2
  203. package/lib/components/ticketBooking/components/menuBar/index.js +5 -4
  204. package/lib/components/ticketBooking/components/menuBar/index.less +5 -0
  205. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -0
  206. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
  207. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +23 -5
  208. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  209. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  210. package/lib/hooks/useEngineContext.d.ts +1 -0
  211. package/lib/hooks/useEngineContext.js +10 -2
  212. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  213. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  214. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  215. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  216. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  217. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
  218. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
  219. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
  220. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  221. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  222. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  223. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  224. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  225. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  226. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  227. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  228. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  229. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  230. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  231. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -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: "loading" | "warn" | "success" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "warn" | "success" | "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 './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 EmptyHolderModal: (props: any) => JSX.Element;
3
4
  export default EmptyHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const OrderProductModal: (props: any) => JSX.Element;
3
4
  export default OrderProductModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
2
3
  export default RemoveOptionConfirmModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CallToBookProps = {
3
4
  show: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
4
  export default ScheduleTimeItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayMethod } from '../../types';
2
3
  import './index.less';
3
4
  declare const ToBPayCard: ({ data, onChange, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ToBPayFooter: (props: {
2
3
  loading: boolean;
3
4
  submitDisabled: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
4
3
  export default ThreedsLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface CustomerListProps {
3
4
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from 'antd';
3
2
  import { ScheduleItem } from '../../type';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
4
3
  export default AddSchedules;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type Value = number[];
4
3
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailDrawer: () => JSX.Element;
4
3
  export default ProductDetailDrawer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: () => JSX.Element;
4
3
  export default Resources;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from '../../type';
3
2
  import './index.less';
4
3
  declare type AllSchedulesPropsType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DrawerProps } from "antd";
3
2
  import { ScheduleItem } from "../../type";
4
3
  import "./index.less";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SchedulesConnect: () => JSX.Element;
3
2
  export default SchedulesConnect;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
2
3
  export default useAddService;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
2
3
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  import "./index.less";
4
3
  interface TaxSelectProps {
@@ -1,6 +1,18 @@
1
1
  .sku-list-container {
2
2
  height: 100%;
3
3
  background-color: #4e4e4e;
4
+ .empty-content {
5
+ .empty-icon-wrapper {
6
+ .empty-default-icon {
7
+ color: rgba(255, 255, 255, 0.8) !important;
8
+ }
9
+ }
10
+ .empty-inner {
11
+ .empty-text {
12
+ color: rgba(255, 255, 255, 0.8) !important;
13
+ }
14
+ }
15
+ }
4
16
  .sku-list {
5
17
  background-color: #4e4e4e;
6
18
  overflow: auto;
@@ -74,6 +74,7 @@ var AddSerivce = (props) => {
74
74
  productDisplayConfig
75
75
  } = props;
76
76
  const context = (0, import_useEngineContext.default)();
77
+ const platform = (0, import_useEngineContext.usePlatform)();
77
78
  const notAvailableRef = (0, import_react.useRef)(null);
78
79
  const isLoadedServiceRef = (0, import_react.useRef)(false);
79
80
  import_utils2.request.setRequest(context.appHelper.utils.request);
@@ -111,7 +112,7 @@ var AddSerivce = (props) => {
111
112
  return stateValue;
112
113
  }
113
114
  };
114
- const { getProducts, products, loading, getScheduleTimePoints } = (0, import_pisellos.useProducts)();
115
+ const { getProducts, products, loading, getScheduleTimePoints } = (0, import_pisellos.useProducts)(notAvailableRef);
115
116
  (0, import_react.useEffect)(() => {
116
117
  if (onGetProductsReady && getProducts) {
117
118
  onGetProductsReady(getProducts);
@@ -515,7 +516,7 @@ var AddSerivce = (props) => {
515
516
  return state.date.value.format("YYYY-MM-DD HH:mm:ss");
516
517
  }, [state.date.value]);
517
518
  (0, import_react.useEffect)(() => {
518
- if (renderMode === "current" && state.bookingConfig) {
519
+ if (renderMode === "current" && state.bookingConfig && platform !== "shop") {
519
520
  getProducts({
520
521
  schedule_date: currentDate,
521
522
  customer_id: customerId,
@@ -527,6 +528,16 @@ var AddSerivce = (props) => {
527
528
  });
528
529
  }
529
530
  }, [renderMode, customerId, menuList]);
531
+ (0, import_react.useEffect)(() => {
532
+ if (renderMode === "current" && state.bookingConfig && platform === "shop") {
533
+ getProducts({
534
+ schedule_date: currentDate,
535
+ customer_id: customerId,
536
+ menu_list_ids: menuList,
537
+ schedule_datetime: currentDatetime
538
+ });
539
+ }
540
+ }, [renderMode, currentDate, customerId, menuList, currentDatetime]);
530
541
  const finalDisplayConfig = (0, import_react.useMemo)(() => {
531
542
  var _a2, _b2;
532
543
  const resolvedConfig = (0, import_ProductDisplayAdapter.resolveProductDisplayConfig)(productDisplayConfig);
@@ -55,14 +55,15 @@ var index = (props) => {
55
55
  }
56
56
  ];
57
57
  const items = [
58
+ {
59
+ key: "reload",
60
+ label: import_utils.locales.getText("pisell2.ticket-booking.reload"),
61
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null)
62
+ },
58
63
  {
59
64
  key: "1",
60
65
  icon: /* @__PURE__ */ import_react.default.createElement(import_icons.SettingOutlined, null),
61
66
  children: [
62
- {
63
- key: "reload",
64
- label: import_utils.locales.getText("pisell2.ticket-booking.reload")
65
- },
66
67
  {
67
68
  key: "version",
68
69
  label: "6.4.38"
@@ -120,5 +120,10 @@
120
120
  bottom: 44px;
121
121
  left: 6px;
122
122
  z-index: 99999;
123
+ .pisell-lowcode-menu {
124
+ li {
125
+ padding-top: 6px;
126
+ }
127
+ }
123
128
  }
124
129
  }
@@ -1218,6 +1218,7 @@ var TicketBooking = (props) => {
1218
1218
  ), isShowFloatButtons && /* @__PURE__ */ import_react.default.createElement(import_floatButtons.default, { items: floatButtons })), isShowTimeBar && /* @__PURE__ */ import_react.default.createElement(
1219
1219
  import_timeBar.default,
1220
1220
  {
1221
+ setNowTime: _getProducts,
1221
1222
  onCreateClick: handleCreateClick,
1222
1223
  setGlobalState: setState,
1223
1224
  globalState: state,
@@ -7,7 +7,7 @@ interface IGetProductsParams {
7
7
  interface IGetScheduleTimePointsParams {
8
8
  menu_list_ids?: number[];
9
9
  }
10
- export declare const useProducts: () => {
10
+ export declare const useProducts: (notAvailableRef: any) => {
11
11
  getScheduleTimePoints: (params?: IGetScheduleTimePointsParams) => Promise<void>;
12
12
  getProducts: (params?: IGetProductsParams) => Promise<void>;
13
13
  products: any[];
@@ -37,23 +37,38 @@ var import_bookingTicket = require("./bookingTicket");
37
37
  var import_react = require("react");
38
38
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
39
39
  var import_dayjs = __toESM(require("dayjs"));
40
- var useProducts = () => {
40
+ var useProducts = (notAvailableRef) => {
41
41
  const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
42
42
  const context = (0, import_useEngineContext.default)();
43
+ const platform = (0, import_useEngineContext.usePlatform)();
43
44
  const [products, setProducts] = (0, import_react.useState)([]);
44
45
  const [loading, setLoading] = (0, import_react.useState)(true);
46
+ const isFirstLoadRef = (0, import_react.useRef)(true);
45
47
  const [scheduleTimePoints, setScheduleTimePoints] = (0, import_react.useState)([]);
46
48
  const scheduledTaskQueueIdRef = (0, import_react.useRef)("booking-schedule-products");
47
49
  const paramsRef = (0, import_react.useRef)(void 0);
48
50
  const getProducts = (0, import_ahooks.useMemoizedFn)(async (params) => {
51
+ var _a;
49
52
  setLoading(true);
50
- paramsRef.current = params;
51
- const products2 = await bookingTicket.loadProducts(params);
52
- setProducts(products2);
53
- setLoading(false);
53
+ try {
54
+ paramsRef.current = params;
55
+ const products2 = await bookingTicket.loadProducts(params);
56
+ setProducts(products2);
57
+ setLoading(false);
58
+ isFirstLoadRef.current = false;
59
+ } catch (error) {
60
+ if ((error == null ? void 0 : error.code) === 607100 && (isFirstLoadRef.current || products.length > 0)) {
61
+ (_a = notAvailableRef.current) == null ? void 0 : _a.open();
62
+ }
63
+ setLoading(false);
64
+ isFirstLoadRef.current = false;
65
+ }
54
66
  });
55
67
  (0, import_react.useEffect)(() => {
56
68
  var _a, _b, _c;
69
+ if (platform === "shop") {
70
+ return;
71
+ }
57
72
  try {
58
73
  const app = (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b);
59
74
  if (!app || !app.tasksManager) {
@@ -114,6 +129,9 @@ var useProducts = () => {
114
129
  };
115
130
  }, [scheduleTimePoints]);
116
131
  const getScheduleTimePoints = (0, import_ahooks.useMemoizedFn)(async (params) => {
132
+ if (platform === "shop") {
133
+ return;
134
+ }
117
135
  const scheduleTimePoints2 = await bookingTicket.getScheduleTimePoints(params);
118
136
  setScheduleTimePoints(scheduleTimePoints2);
119
137
  });
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
1
  declare const useEngineContext: () => any;
2
2
  export declare const usePisellOS: () => any;
3
+ export declare const usePlatform: () => any;
3
4
  export default useEngineContext;
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var useEngineContext_exports = {};
21
21
  __export(useEngineContext_exports, {
22
22
  default: () => useEngineContext_default,
23
- usePisellOS: () => usePisellOS
23
+ usePisellOS: () => usePisellOS,
24
+ usePlatform: () => usePlatform
24
25
  });
25
26
  module.exports = __toCommonJS(useEngineContext_exports);
26
27
  var import_react = require("react");
@@ -40,8 +41,15 @@ var usePisellOS = () => {
40
41
  const { pisellos } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
41
42
  return pisellos;
42
43
  };
44
+ var usePlatform = () => {
45
+ var _a;
46
+ const context = useEngineContext();
47
+ const { platform } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.constants) || {};
48
+ return platform;
49
+ };
43
50
  var useEngineContext_default = useEngineContext;
44
51
  // Annotate the CommonJS export names for ESM import in node:
45
52
  0 && (module.exports = {
46
- usePisellOS
53
+ usePisellOS,
54
+ usePlatform
47
55
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA1: (props: any) => JSX.Element;
4
3
  export default SkuCardA1;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA2: (props: any) => JSX.Element;
4
3
  export default SkuCardA2;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA5: (props: any) => JSX.Element;
4
3
  export default SkuCardA5;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA9: (props: any) => JSX.Element;
4
3
  export default SkuCardA9;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardCustom: (props: any) => JSX.Element;
4
3
  export default SkuCardCustom;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const CardCom: ({ props, className }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Cover: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Price: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const SubTitle: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Title: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductCardConfig } from '../../type';
4
3
  declare const TooltipTags: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WarningLists: (props: any) => JSX.Element | null;
4
3
  export default WarningLists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SkuCard: {
3
2
  (props: any): JSX.Element | null;
4
3
  A1: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SCOProps } from './types';
3
2
  import './index.less';
4
3
  declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VertifyEmail: (props: {
3
4
  email: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import './index.less';
3
4
  interface PisellPhoneKeyboardProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CashKeyboardBaseProps } from './types';
2
3
  import './index.less';
3
4
  declare const CashKeyboardIntact: (props: CashKeyboardBaseProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CashKeyboardBaseProps } from './types';
3
2
  export interface CashKeyboardProps extends CashKeyboardBaseProps {
4
3
  containerProps?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useRightItems: (props: {
2
3
  rightItemsStyle?: any;
3
4
  doneText?: string;