@pisell/private-materials 3.3.25 → 3.3.27

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 (253) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/Sales/Customer/index.js +3 -1
  12. package/es/components/Sales/Event/Detail.js +5 -1
  13. package/es/components/Sales/Event/serve.d.ts +3 -0
  14. package/es/components/Sales/Init/index.d.ts +1 -0
  15. package/es/components/Sales/Init/index.js +3 -2
  16. package/es/components/Sales/Step/index.d.ts +2 -0
  17. package/es/components/Sales/Step/index.js +13 -4
  18. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +5 -5
  19. package/es/components/appointmentBooking/components/Services/index.js +2 -0
  20. package/es/components/appointmentBooking/deposit/index.js +2 -2
  21. package/es/components/booking/addons/model.d.ts +1 -10
  22. package/es/components/booking/addons/model.js +5 -5
  23. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  24. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  25. package/es/components/booking/components/browserSelect/index.js +1 -1
  26. package/es/components/booking/components/footer/index.d.ts +1 -0
  27. package/es/components/booking/components/footer/utils.js +16 -15
  28. package/es/components/booking/forms/model.d.ts +1 -10
  29. package/es/components/booking/forms/model.js +5 -5
  30. package/es/components/booking/forms/single/index.d.ts +1 -0
  31. package/es/components/booking/hooks/useQuotation.d.ts +4 -0
  32. package/es/components/booking/hooks/useQuotation.js +256 -0
  33. package/es/components/booking/info/model.d.ts +1 -10
  34. package/es/components/booking/info/service/addService/index.js +4 -4
  35. package/es/components/booking/info/service/editService/index.js +6 -3
  36. package/es/components/booking/info/service/index.js +4 -1
  37. package/es/components/booking/info/service/like/index.js +1 -1
  38. package/es/components/booking/info/service2/Group/utils.js +1 -1
  39. package/es/components/booking/info/service2/hooks/useSelectPet.js +6 -4
  40. package/es/components/booking/info/service2/index.js +4 -1
  41. package/es/components/booking/info/utils.js +1 -1
  42. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  43. package/es/components/booking/info2/service/addService/index.js +29 -9
  44. package/es/components/booking/info2/service/editService/index.js +2 -0
  45. package/es/components/booking/info2/service/index.js +4 -1
  46. package/es/components/booking/locales.d.ts +6 -0
  47. package/es/components/booking/locales.js +9 -3
  48. package/es/components/booking/materiels/startTime/index.js +1 -1
  49. package/es/components/booking/model.d.ts +1 -9
  50. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  51. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  52. package/es/components/booking/notes/model.d.ts +1 -10
  53. package/es/components/booking/notes/model.js +5 -5
  54. package/es/components/booking/payments/model.d.ts +1 -10
  55. package/es/components/booking/payments/model.js +5 -5
  56. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +122 -31
  57. package/es/components/eventBooking/components/Provider/Event/index.js +20 -4
  58. package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
  61. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +5 -2
  62. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  63. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
  64. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  65. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
  66. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  67. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  68. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
  69. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  70. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
  72. package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  73. package/es/components/eventBooking/index.js +2 -2
  74. package/es/components/eventBooking/locales.d.ts +6 -0
  75. package/es/components/eventBooking/locales.js +166 -160
  76. package/es/components/listComponent/index.js +5 -5
  77. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  78. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
  79. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  80. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
  81. package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  82. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  83. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  84. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  85. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
  86. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  87. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  88. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
  89. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  90. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  91. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
  92. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  93. package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  94. package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
  95. package/es/components/pay/toC/WalletPassBlock/index.less +82 -13
  96. package/es/components/pay/toC/index.js +138 -89
  97. package/es/components/pay/toC/locales.d.ts +69 -3
  98. package/es/components/pay/toC/locales.js +132 -6
  99. package/es/components/pay/toC/model.d.ts +5 -9
  100. package/es/components/pay/toC/model.js +9 -0
  101. package/es/components/pay/toC/serve.d.ts +23 -0
  102. package/es/components/pay/toC/serve.js +34 -2
  103. package/es/components/pay/toC/utils.d.ts +3 -1
  104. package/es/components/pay/toC/utils.js +8 -3
  105. package/es/components/productExtension/card/index.js +3 -3
  106. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  107. package/es/components/productExtension/fields/Forms/index.js +12 -12
  108. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  109. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  110. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  111. package/es/components/productExtension/server.js +2 -2
  112. package/es/components/productSelect/components/productGroup/index.less +4 -12
  113. package/es/components/productSelect/index.less +1 -1
  114. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  115. package/es/components/schedules/calendar/index.js +4 -4
  116. package/es/components/schedules/calendar/serve.js +2 -2
  117. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  118. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  119. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  120. package/es/components/schedules/components/ResourceList/index.js +1 -1
  121. package/es/components/schedules/components/Search/index.js +5 -5
  122. package/es/components/schedules/model.d.ts +1 -9
  123. package/es/components/schedules/model.js +5 -5
  124. package/es/components/schedules/openHours/index.js +1 -1
  125. package/es/components/schedules/openHours/serve.js +2 -2
  126. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  127. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  128. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  129. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  130. package/es/components/schedules/products/serve.js +2 -2
  131. package/es/components/schedules/products/utils.js +5 -5
  132. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  133. package/es/components/schedules/resources/detail/index.js +10 -10
  134. package/es/components/schedules/resources/list/index.js +2 -2
  135. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  136. package/es/components/schedules/resources/serve.js +2 -2
  137. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  138. package/es/components/schedules/utils.js +4 -4
  139. package/es/components/selectModal/index.js +2 -2
  140. package/es/components/ticketBooking/components/addServiceVariant/addService.js +15 -20
  141. package/es/components/ticketBooking/components/menuBar/index.less +0 -1
  142. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -4
  143. package/es/components/wallet/Detail/model.d.ts +1 -13
  144. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  145. package/es/components/wallet/PointCard/model.d.ts +1 -13
  146. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  147. package/es/components/wallet/Voucher/model.d.ts +1 -13
  148. package/es/components/wallet/model.d.ts +1 -9
  149. package/es/hooks/useComponents.js +1 -1
  150. package/es/hooks/useLocale.d.ts +2 -0
  151. package/es/hooks/useLocale.js +7 -0
  152. package/es/hooks/useLoginUser.d.ts +2 -0
  153. package/es/hooks/useLoginUser.js +19 -0
  154. package/lib/components/Sales/Customer/index.js +3 -1
  155. package/lib/components/Sales/Event/Detail.js +5 -1
  156. package/lib/components/Sales/Event/serve.d.ts +3 -0
  157. package/lib/components/Sales/Init/index.d.ts +1 -0
  158. package/lib/components/Sales/Init/index.js +3 -2
  159. package/lib/components/Sales/Step/index.d.ts +2 -0
  160. package/lib/components/Sales/Step/index.js +13 -4
  161. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +2 -2
  162. package/lib/components/appointmentBooking/components/Services/index.js +2 -0
  163. package/lib/components/appointmentBooking/deposit/index.js +2 -2
  164. package/lib/components/booking/addons/model.d.ts +1 -10
  165. package/lib/components/booking/components/footer/index.d.ts +1 -0
  166. package/lib/components/booking/components/footer/utils.js +5 -4
  167. package/lib/components/booking/forms/model.d.ts +1 -10
  168. package/lib/components/booking/forms/single/index.d.ts +1 -0
  169. package/lib/components/booking/hooks/useQuotation.d.ts +4 -0
  170. package/lib/components/booking/hooks/useQuotation.js +210 -0
  171. package/lib/components/booking/info/model.d.ts +1 -10
  172. package/lib/components/booking/info/service/addService/index.js +2 -3
  173. package/lib/components/booking/info/service/editService/index.js +5 -2
  174. package/lib/components/booking/info/service/index.js +3 -1
  175. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  176. package/lib/components/booking/info/service2/hooks/useSelectPet.js +5 -3
  177. package/lib/components/booking/info/service2/index.js +3 -1
  178. package/lib/components/booking/info/utils.js +1 -1
  179. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  180. package/lib/components/booking/info2/service/addService/index.js +25 -17
  181. package/lib/components/booking/info2/service/editService/index.js +2 -1
  182. package/lib/components/booking/info2/service/index.js +3 -1
  183. package/lib/components/booking/locales.d.ts +6 -0
  184. package/lib/components/booking/locales.js +9 -3
  185. package/lib/components/booking/model.d.ts +1 -9
  186. package/lib/components/booking/notes/model.d.ts +1 -10
  187. package/lib/components/booking/payments/model.d.ts +1 -10
  188. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +52 -4
  189. package/lib/components/eventBooking/components/Provider/Event/index.js +15 -3
  190. package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
  193. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +3 -1
  194. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  195. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
  196. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  197. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
  198. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  199. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  200. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
  201. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  202. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  203. package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
  204. package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  205. package/lib/components/eventBooking/index.js +2 -2
  206. package/lib/components/eventBooking/locales.d.ts +6 -0
  207. package/lib/components/eventBooking/locales.js +10 -4
  208. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  209. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
  210. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  211. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
  212. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  213. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  214. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  215. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  216. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
  217. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  218. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  219. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
  220. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  221. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  222. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
  223. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  224. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  225. package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
  226. package/lib/components/pay/toC/WalletPassBlock/index.less +82 -13
  227. package/lib/components/pay/toC/index.js +35 -9
  228. package/lib/components/pay/toC/locales.d.ts +69 -3
  229. package/lib/components/pay/toC/locales.js +72 -6
  230. package/lib/components/pay/toC/model.d.ts +5 -9
  231. package/lib/components/pay/toC/model.js +10 -0
  232. package/lib/components/pay/toC/serve.d.ts +23 -0
  233. package/lib/components/pay/toC/serve.js +12 -6
  234. package/lib/components/pay/toC/utils.d.ts +3 -1
  235. package/lib/components/pay/toC/utils.js +8 -3
  236. package/lib/components/productSelect/components/productGroup/index.less +4 -12
  237. package/lib/components/productSelect/index.less +1 -1
  238. package/lib/components/schedules/model.d.ts +1 -9
  239. package/lib/components/schedules/utils.js +1 -1
  240. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -16
  241. package/lib/components/ticketBooking/components/menuBar/index.less +0 -1
  242. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -4
  243. package/lib/components/wallet/Detail/model.d.ts +1 -13
  244. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  245. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  246. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  247. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  248. package/lib/components/wallet/model.d.ts +1 -9
  249. package/lib/hooks/useLocale.d.ts +2 -0
  250. package/lib/hooks/useLocale.js +41 -0
  251. package/lib/hooks/useLoginUser.d.ts +2 -0
  252. package/lib/hooks/useLoginUser.js +50 -0
  253. package/package.json +2 -2
@@ -1,7 +1,6 @@
1
1
  .pisell-product-select-group {
2
2
  .group-title {
3
3
  color: var(--ps-category-text-color, #000);
4
- font-family: Inter;
5
4
  font-size: 18px;
6
5
  font-style: normal;
7
6
  font-weight: 600;
@@ -84,7 +83,6 @@
84
83
  background: var(--Error-100, #fee4e2);
85
84
  color: var(--Error-700, #b42318);
86
85
  text-align: center;
87
- font-family: Inter;
88
86
  font-size: 14px;
89
87
  font-style: normal;
90
88
  font-weight: 500;
@@ -114,8 +112,7 @@
114
112
  row-gap: 8px;
115
113
  min-height: 92px;
116
114
  .title {
117
- color: var(--ps-card-text, #1B1B1B);
118
- font-family: Inter;
115
+ color: var(--ps-card-text, #1b1b1b);
119
116
  font-size: 18px;
120
117
  font-style: normal;
121
118
  font-weight: 600;
@@ -130,9 +127,8 @@
130
127
  .stock,
131
128
  .specs {
132
129
  overflow: hidden;
133
- color: var(--ps-color-text-secondary, #4E4E4E);
130
+ color: var(--ps-color-text-secondary, #4e4e4e);
134
131
  text-overflow: ellipsis;
135
- font-family: Inter;
136
132
  font-size: 14px;
137
133
  font-style: normal;
138
134
  font-weight: 500;
@@ -161,7 +157,6 @@
161
157
  mix-blend-mode: multiply;
162
158
  color: var(--Error-700, #b42318);
163
159
  text-align: center;
164
- font-family: Inter;
165
160
  font-size: 14px;
166
161
  font-style: normal;
167
162
  font-weight: 500;
@@ -174,16 +169,14 @@
174
169
  gap: 8px;
175
170
  }
176
171
  .price {
177
- color: var(--ps-card-text, #1B1B1B);
178
- font-family: Inter;
172
+ color: var(--ps-card-text, #1b1b1b);
179
173
  font-size: 18px;
180
174
  font-style: normal;
181
175
  font-weight: 600;
182
176
  line-height: 28px;
183
177
  }
184
178
  .original-price {
185
- color: var(--ps-color-text-secondary, #4E4E4E);
186
- font-family: Inter;
179
+ color: var(--ps-color-text-secondary, #4e4e4e);
187
180
  font-size: 16px;
188
181
  font-style: normal;
189
182
  font-weight: 400;
@@ -197,7 +190,6 @@
197
190
 
198
191
  .remark {
199
192
  color: var(--Warning-600, #dc6803);
200
- font-family: Inter;
201
193
  font-size: 14px;
202
194
  font-style: normal;
203
195
  font-weight: 600;
@@ -50,7 +50,7 @@
50
50
 
51
51
  .booking-pisell-tabs-tab {
52
52
  .booking-pisell-tabs-tab-content {
53
- background: var(--ps-tab-item-bg, #FFFFFF) !important;
53
+ background: var(--ps-tab-item-bg, #ffffff) !important;
54
54
  font-weight: 400;
55
55
  }
56
56
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
+ request = {};
30
31
  constructor() {
31
- this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -47,7 +47,7 @@ var import_serviceManager = require("../../../booking/info/service/serviceManage
47
47
  var import_productSelect = __toESM(require("../../../productSelect"));
48
48
  var import_index = require("./index.less");
49
49
  var AddSerivce = (props) => {
50
- var _a, _b, _c, _d, _e, _f, _g, _h;
50
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
51
51
  const { onEdit, state, dispatch, renderMode = "current" } = props;
52
52
  const [loading, setLoading] = (0, import_react.useState)(false);
53
53
  const context = (0, import_useEngineContext.default)();
@@ -63,6 +63,10 @@ var AddSerivce = (props) => {
63
63
  state == null ? void 0 : state.renderType
64
64
  );
65
65
  const [currentProduct, setCurrentProduct] = (0, import_react.useState)(null);
66
+ const customerId = (0, import_react.useMemo)(() => {
67
+ var _a2, _b2;
68
+ return ((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) || void 0;
69
+ }, [(_g = (_f = state.client) == null ? void 0 : _f.value) == null ? void 0 : _g.id]);
66
70
  const setDefaultService = async (list) => {
67
71
  if (state.renderType !== "eventBooking") {
68
72
  return;
@@ -134,11 +138,8 @@ var AddSerivce = (props) => {
134
138
  with_count: ["bundleGroup", "optionGroup"],
135
139
  order_by_string: "sort:desc",
136
140
  status: "published",
137
- ...state.isBookingCreatePage ? { schedule_date: params == null ? void 0 : params.schedule_date } : {
138
- _config: {
139
- useCache: true
140
- }
141
- }
141
+ schedule_date: params == null ? void 0 : params.schedule_date,
142
+ customer_id: params == null ? void 0 : params.customer_id
142
143
  });
143
144
  setLoading(false);
144
145
  if (!state.service.addModal) {
@@ -173,6 +174,7 @@ var AddSerivce = (props) => {
173
174
  package: true
174
175
  },
175
176
  is_eject: isEject ? 1 : 0,
177
+ customer_id: customerId,
176
178
  isOS: isSession
177
179
  },
178
180
  onCancel: () => {
@@ -269,20 +271,15 @@ var AddSerivce = (props) => {
269
271
  }
270
272
  }
271
273
  return _list;
272
- }, [(_f = state.service) == null ? void 0 : _f.services, state == null ? void 0 : state.activeCartId]);
274
+ }, [(_h = state.service) == null ? void 0 : _h.services, state == null ? void 0 : state.activeCartId]);
273
275
  const currentDate = (0, import_react.useMemo)(() => {
274
276
  return state.date.value.format("YYYY-MM-DD");
275
277
  }, [state.date.value]);
276
278
  (0, import_react.useEffect)(() => {
277
279
  if (renderMode === "current") {
278
- getServices({ schedule_date: currentDate });
279
- }
280
- }, [renderMode, currentDate]);
281
- (0, import_react.useEffect)(() => {
282
- if (state.renderType === "eventBooking" && state.modalOpen) {
283
- getServices({ schedule_date: currentDate });
280
+ getServices({ schedule_date: currentDate, customer_id: customerId });
284
281
  }
285
- }, [state.renderType, state.modalOpen]);
282
+ }, [renderMode, currentDate, customerId]);
286
283
  return (0, import_react.useMemo)(() => {
287
284
  if (renderMode === "current") {
288
285
  return /* @__PURE__ */ import_react.default.createElement(
@@ -295,13 +292,13 @@ var AddSerivce = (props) => {
295
292
  },
296
293
  onChange: handleSelectProduct,
297
294
  value: currentProduct == null ? void 0 : currentProduct.id,
298
- loading
295
+ loading: !renderList.length && loading
299
296
  }
300
297
  );
301
298
  }
302
299
  return null;
303
300
  }, [
304
- (_h = (_g = state.service) == null ? void 0 : _g.cacheItem) == null ? void 0 : _h.autoClose,
301
+ (_j = (_i = state.service) == null ? void 0 : _i.cacheItem) == null ? void 0 : _j.autoClose,
305
302
  state.service.addModal,
306
303
  import_utils.locales,
307
304
  renderList,
@@ -61,7 +61,6 @@
61
61
  > div {
62
62
  color: #fff;
63
63
  text-align: center;
64
- font-family: Inter;
65
64
  font-size: 8px;
66
65
  font-style: normal;
67
66
  font-weight: 400;
@@ -1,11 +1,9 @@
1
1
  .pisell-ticket-booking-wrapper {
2
-
3
-
4
2
  .pisell-lowcode__booking-tab-pane-footer {
5
3
  padding: 16px;
6
4
  }
7
5
  .create-booking-page-info-wrap-create {
8
- background-color: #1B1B1B;
6
+ background-color: #1b1b1b;
9
7
  .booking-info {
10
8
  .booking-info-create-new,
11
9
  .pisell-lowcode__booking-field-title,
@@ -15,4 +13,4 @@
15
13
  }
16
14
  }
17
15
  }
18
- }
16
+ }
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -0,0 +1,2 @@
1
+ declare const useLocale: () => any;
2
+ export default useLocale;
@@ -0,0 +1,41 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/hooks/useLocale.ts
30
+ var useLocale_exports = {};
31
+ __export(useLocale_exports, {
32
+ default: () => useLocale_default
33
+ });
34
+ module.exports = __toCommonJS(useLocale_exports);
35
+ var import_useEngineContext = __toESM(require("./useEngineContext"));
36
+ var useLocale = () => {
37
+ var _a, _b;
38
+ const context = (0, import_useEngineContext.default)();
39
+ return ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en";
40
+ };
41
+ var useLocale_default = useLocale;
@@ -0,0 +1,2 @@
1
+ declare const useLoginUser: () => any;
2
+ export default useLoginUser;
@@ -0,0 +1,50 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/hooks/useLoginUser.ts
30
+ var useLoginUser_exports = {};
31
+ __export(useLoginUser_exports, {
32
+ default: () => useLoginUser_default
33
+ });
34
+ module.exports = __toCommonJS(useLoginUser_exports);
35
+ var import_react = require("react");
36
+ var import_useEngineContext = __toESM(require("./useEngineContext"));
37
+ var useLoginUser = () => {
38
+ const context = (0, import_useEngineContext.default)();
39
+ const { store, storage, getStore } = context.appHelper.utils || {};
40
+ const user = (0, import_react.useMemo)(() => {
41
+ var _a, _b, _c;
42
+ const _store = getStore();
43
+ let userInfo = (_c = (_b = (_a = _store.getState) == null ? void 0 : _a.call(_store)) == null ? void 0 : _b.global) == null ? void 0 : _c.userInfo;
44
+ const localUserInfo = JSON.parse((storage == null ? void 0 : storage.get("customer")) || "{}");
45
+ userInfo = (userInfo == null ? void 0 : userInfo.id) ? userInfo : localUserInfo;
46
+ return userInfo;
47
+ }, [store]);
48
+ return user;
49
+ };
50
+ var useLoginUser_default = useLoginUser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.25",
3
+ "version": "3.3.27",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,8 +59,8 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
+ "@pisell/materials": "3.3.8",
62
63
  "@pisell/utils": "1.0.42",
63
- "@pisell/materials": "3.3.7",
64
64
  "@pisell/icon": "0.0.11",
65
65
  "@pisell/date-picker": "3.0.2"
66
66
  },