@pisell/private-materials 6.2.9 → 6.2.10

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 (245) 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/Cart/utils.js +8 -13
  10. package/es/components/appointmentBooking/components/Content/index.js +87 -8
  11. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  12. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  13. package/es/components/appointmentBooking/hooks.js +28 -30
  14. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  15. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  16. package/es/components/productSelect/index.d.ts +2 -0
  17. package/es/components/ticketBooking/components/menuBar/index.js +38 -2
  18. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  19. package/es/components/ticketBooking/locales.d.ts +3 -0
  20. package/es/components/ticketBooking/locales.js +6 -3
  21. package/es/components/walletList/index.js +4 -4
  22. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  23. package/lib/components/appointmentBooking/components/Content/index.js +44 -7
  24. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  25. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  26. package/lib/components/appointmentBooking/hooks.js +5 -16
  27. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  28. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  29. package/lib/components/productSelect/index.d.ts +2 -0
  30. package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
  31. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  32. package/lib/components/ticketBooking/locales.d.ts +3 -0
  33. package/lib/components/ticketBooking/locales.js +6 -3
  34. package/lib/components/walletList/index.js +3 -3
  35. package/package.json +4 -4
  36. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  37. package/es/components/Sales/Cart/index.d.ts +0 -53
  38. package/es/components/Sales/Cart/utils.d.ts +0 -63
  39. package/es/components/Sales/Checkout/index.d.ts +0 -37
  40. package/es/components/Sales/Checkout/serve.d.ts +0 -15
  41. package/es/components/Sales/Checkout/utils.d.ts +0 -40
  42. package/es/components/Sales/Customer/index.d.ts +0 -25
  43. package/es/components/Sales/Resource/index.d.ts +0 -26
  44. package/es/components/Sales/Resource/serve.d.ts +0 -12
  45. package/es/components/Sales/Summary/index.d.ts +0 -35
  46. package/es/components/Sales/Summary/serve.d.ts +0 -1
  47. package/es/components/Sales/Summary/utils.d.ts +0 -51
  48. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  49. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
  50. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  51. package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  52. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
  53. package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  54. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  55. package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
  56. package/es/components/appointmentBooking/index.d.ts +0 -3
  57. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  58. package/es/components/booking/components/footer/index.d.ts +0 -11
  59. package/es/components/booking/components/footer/utils.d.ts +0 -41
  60. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  61. package/es/components/booking/components/voucher/index.d.ts +0 -3
  62. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  63. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  64. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  65. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  66. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  67. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  68. package/es/components/booking/hooks/useClearCart.d.ts +0 -2
  69. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  70. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  71. package/es/components/booking/info/client/index.d.ts +0 -4
  72. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  73. package/es/components/booking/info/index.d.ts +0 -3
  74. package/es/components/booking/info/model.d.ts +0 -5
  75. package/es/components/booking/info/service/Lists.d.ts +0 -2
  76. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  77. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  78. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  79. package/es/components/booking/info/service2/utils.d.ts +0 -247
  80. package/es/components/booking/info/utils.d.ts +0 -50
  81. package/es/components/booking/info2/index.d.ts +0 -12
  82. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  83. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  84. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  85. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  86. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  87. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  88. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  89. package/es/components/booking/info2/service/index.d.ts +0 -4
  90. package/es/components/booking/info2/utils.d.ts +0 -4
  91. package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
  92. package/es/components/booking/locales.d.ts +0 -828
  93. package/es/components/booking/materiels/duration/index.d.ts +0 -13
  94. package/es/components/booking/model.d.ts +0 -108
  95. package/es/components/eftposPay/const.d.ts +0 -184
  96. package/es/components/eftposPay/hooks.d.ts +0 -35
  97. package/es/components/eftposPay/index.d.ts +0 -4
  98. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  99. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  100. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  101. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  102. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  103. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  104. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  105. package/es/components/eftposPay/pay.d.ts +0 -20
  106. package/es/components/eftposPay/payo/config.d.ts +0 -12
  107. package/es/components/eftposPay/store/index.d.ts +0 -355
  108. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  109. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  110. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  111. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  112. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
  113. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  114. package/es/components/eventBooking/index.d.ts +0 -3
  115. package/es/components/eventBooking/locales.d.ts +0 -246
  116. package/es/components/index.d.ts +0 -20
  117. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  118. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
  119. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
  120. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  121. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  122. package/es/components/pay/toC/index.d.ts +0 -3
  123. package/es/components/pay/toC/locales.d.ts +0 -289
  124. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  125. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  126. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
  127. package/es/components/stepController/components/Content/index.d.ts +0 -7
  128. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  129. package/es/components/stepController/components/Header/index.d.ts +0 -20
  130. package/es/components/stepController/index.d.ts +0 -5
  131. package/es/components/stepController/locales.d.ts +0 -27
  132. package/es/components/stepController/types.d.ts +0 -23
  133. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  134. package/es/components/ticketBooking/serve.d.ts +0 -287
  135. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  136. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  137. package/es/components/ticketBooking/utils/index.d.ts +0 -23
  138. package/es/hooks/useWindowSize.d.ts +0 -5
  139. package/es/index.d.ts +0 -47
  140. package/es/utils/index.d.ts +0 -23
  141. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  142. package/lib/components/Sales/Cart/index.d.ts +0 -53
  143. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  144. package/lib/components/Sales/Checkout/index.d.ts +0 -37
  145. package/lib/components/Sales/Checkout/serve.d.ts +0 -15
  146. package/lib/components/Sales/Checkout/utils.d.ts +0 -40
  147. package/lib/components/Sales/Customer/index.d.ts +0 -25
  148. package/lib/components/Sales/Resource/index.d.ts +0 -26
  149. package/lib/components/Sales/Resource/serve.d.ts +0 -12
  150. package/lib/components/Sales/Summary/index.d.ts +0 -35
  151. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  152. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  153. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  154. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
  155. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  156. package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  157. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
  158. package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  159. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  160. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
  161. package/lib/components/appointmentBooking/index.d.ts +0 -3
  162. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  163. package/lib/components/booking/components/footer/index.d.ts +0 -11
  164. package/lib/components/booking/components/footer/utils.d.ts +0 -41
  165. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  166. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  167. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  168. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  169. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  170. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  171. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  172. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  173. package/lib/components/booking/hooks/useClearCart.d.ts +0 -2
  174. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  175. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  176. package/lib/components/booking/info/client/index.d.ts +0 -4
  177. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  178. package/lib/components/booking/info/index.d.ts +0 -3
  179. package/lib/components/booking/info/model.d.ts +0 -5
  180. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  181. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  182. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  183. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  184. package/lib/components/booking/info/service2/utils.d.ts +0 -247
  185. package/lib/components/booking/info/utils.d.ts +0 -50
  186. package/lib/components/booking/info2/index.d.ts +0 -12
  187. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  188. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  189. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  190. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  191. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  192. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  193. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  194. package/lib/components/booking/info2/service/index.d.ts +0 -4
  195. package/lib/components/booking/info2/utils.d.ts +0 -4
  196. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
  197. package/lib/components/booking/locales.d.ts +0 -828
  198. package/lib/components/booking/materiels/duration/index.d.ts +0 -13
  199. package/lib/components/booking/model.d.ts +0 -108
  200. package/lib/components/eftposPay/const.d.ts +0 -184
  201. package/lib/components/eftposPay/hooks.d.ts +0 -35
  202. package/lib/components/eftposPay/index.d.ts +0 -4
  203. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  204. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  205. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  206. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  207. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  208. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  209. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  210. package/lib/components/eftposPay/pay.d.ts +0 -20
  211. package/lib/components/eftposPay/payo/config.d.ts +0 -12
  212. package/lib/components/eftposPay/store/index.d.ts +0 -355
  213. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  214. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  215. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  216. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  217. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
  218. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  219. package/lib/components/eventBooking/index.d.ts +0 -3
  220. package/lib/components/eventBooking/locales.d.ts +0 -246
  221. package/lib/components/index.d.ts +0 -20
  222. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  223. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
  224. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
  225. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  226. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  227. package/lib/components/pay/toC/index.d.ts +0 -3
  228. package/lib/components/pay/toC/locales.d.ts +0 -289
  229. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  230. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  231. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
  232. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  233. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  234. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  235. package/lib/components/stepController/index.d.ts +0 -5
  236. package/lib/components/stepController/locales.d.ts +0 -27
  237. package/lib/components/stepController/types.d.ts +0 -23
  238. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  239. package/lib/components/ticketBooking/serve.d.ts +0 -287
  240. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  241. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  242. package/lib/components/ticketBooking/utils/index.d.ts +0 -23
  243. package/lib/hooks/useWindowSize.d.ts +0 -5
  244. package/lib/index.d.ts +0 -47
  245. package/lib/utils/index.d.ts +0 -23
@@ -14,6 +14,8 @@ interface ProductSelectProps {
14
14
  value?: number;
15
15
  loading?: boolean;
16
16
  scrollDom?: string;
17
+ /** 某些设置了固定头部的情况 */
18
+ offsetDom?: string;
17
19
  style?: React.CSSProperties;
18
20
  emptyDescription?: string;
19
21
  token?: Partial<ProductSelectToken>;
@@ -1,8 +1,20 @@
1
1
  import React from 'react';
2
2
  import { useNetworkStatus, NetworkStatus, NetworkStatusColor } from "../../hooks/useNetworkStatus";
3
3
  import "./index.less";
4
+ import { Menu } from 'antd';
5
+ import { SettingOutlined } from '@ant-design/icons';
6
+ import { locales } from "@pisell/utils";
7
+ import { ConfigProvider } from "@pisell/materials";
4
8
  var index = function index() {
5
9
  var status = useNetworkStatus();
10
+ var items = [{
11
+ key: '1',
12
+ icon: /*#__PURE__*/React.createElement(SettingOutlined, null),
13
+ children: [{
14
+ key: 'reload',
15
+ label: locales.getText('pisell2.ticket-booking.reload')
16
+ }]
17
+ }];
6
18
  var getStatusText = function getStatusText(status) {
7
19
  switch (status) {
8
20
  case NetworkStatus.GOOD:
@@ -13,9 +25,15 @@ var index = function index() {
13
25
  return 'Offline';
14
26
  }
15
27
  };
28
+ var handleClick = function handleClick(_ref) {
29
+ var key = _ref.key;
30
+ if (key === 'reload') {
31
+ window.location.reload();
32
+ }
33
+ };
16
34
  return /*#__PURE__*/React.createElement("div", {
17
35
  className: "pisell-ticket-booking-menu-bar"
18
- }, /*#__PURE__*/React.createElement("div", {
36
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
19
37
  className: "logo-wrapper"
20
38
  }, /*#__PURE__*/React.createElement("svg", {
21
39
  xmlns: "http://www.w3.org/2000/svg",
@@ -42,7 +60,25 @@ var index = function index() {
42
60
  "stroke-width": "1.5",
43
61
  "stroke-linecap": "round",
44
62
  "stroke-linejoin": "round"
45
- })))), /*#__PURE__*/React.createElement("div", {
63
+ }))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ConfigProvider, {
64
+ theme: {
65
+ components: {
66
+ Menu: {
67
+ collapsedIconSize: 32,
68
+ itemHeight: 48,
69
+ groupTitleFontSize: 16,
70
+ fontSize: 16
71
+ }
72
+ }
73
+ }
74
+ }, /*#__PURE__*/React.createElement(Menu, {
75
+ className: "pisell-ticket-booking-menu",
76
+ mode: "inline",
77
+ theme: "dark",
78
+ inlineCollapsed: true,
79
+ items: items,
80
+ onClick: handleClick
81
+ }))), /*#__PURE__*/React.createElement("div", {
46
82
  className: "status-wrapper"
47
83
  }, /*#__PURE__*/React.createElement("div", {
48
84
  className: "network-status",
@@ -3,6 +3,14 @@
3
3
  padding-left: 6px;
4
4
  width: 86px;
5
5
  position: relative;
6
+ display: flex;
7
+ flex-direction: column;
8
+ justify-content: space-between;
9
+ padding-bottom: 44px;
10
+
11
+ .pisell-ticket-booking-menu {
12
+ background-color: transparent;
13
+ }
6
14
 
7
15
  .logo-wrapper {
8
16
  margin-top: 24px;
@@ -54,6 +54,7 @@ declare const _default: {
54
54
  'pisell2.product.card.day': (val: number) => string;
55
55
  'pisell2.product.card.day.event': (val: number) => string;
56
56
  'pisell2.product.card.minute': (val: number) => string;
57
+ "pisell2.ticket-booking.reload": string;
57
58
  };
58
59
  'zh-CN': {
59
60
  'pisell2.ticket-booking.info': string;
@@ -110,6 +111,7 @@ declare const _default: {
110
111
  'pisell2.product.card.day': (val: number) => string;
111
112
  'pisell2.product.card.day.event': (val: number) => string;
112
113
  'pisell2.product.card.minute': (val: number) => string;
114
+ "pisell2.ticket-booking.reload": string;
113
115
  };
114
116
  'zh-HK': {
115
117
  'pisell2.ticket-booking.info': string;
@@ -166,6 +168,7 @@ declare const _default: {
166
168
  'pisell2.product.card.day': (val: number) => string;
167
169
  'pisell2.product.card.day.event': (val: number) => string;
168
170
  'pisell2.product.card.minute': (val: number) => string;
171
+ "pisell2.ticket-booking.reload": string;
169
172
  };
170
173
  };
171
174
  export default _default;
@@ -65,7 +65,8 @@ export default {
65
65
  },
66
66
  'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
67
67
  return "".concat(val > 1 ? ' minutes' : ' minute');
68
- }
68
+ },
69
+ "pisell2.ticket-booking.reload": 'Reload'
69
70
  },
70
71
  'zh-CN': {
71
72
  'pisell2.ticket-booking.info': '信息',
@@ -133,7 +134,8 @@ export default {
133
134
  },
134
135
  'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
135
136
  return '分钟';
136
- }
137
+ },
138
+ "pisell2.ticket-booking.reload": '重新加载'
137
139
  },
138
140
  'zh-HK': {
139
141
  'pisell2.ticket-booking.info': '資訊',
@@ -201,6 +203,7 @@ export default {
201
203
  },
202
204
  'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
203
205
  return '分鐘';
204
- }
206
+ },
207
+ "pisell2.ticket-booking.reload": '重新載入'
205
208
  }
206
209
  };
@@ -141,7 +141,7 @@ var DEFAULT_BALANCE = {
141
141
  discount_card_count: 0
142
142
  };
143
143
  var WalletList = Provider(function (props) {
144
- var _utils$getStore, _dvaStore$core, _store$getState;
144
+ var _utils$getStore, _context$engine, _store$getState;
145
145
  var _props$globalState = props.globalState,
146
146
  globalState = _props$globalState === void 0 ? {} : _props$globalState; // 接收globalState属性
147
147
  var _useContext = useContext(Context),
@@ -152,8 +152,8 @@ var WalletList = Provider(function (props) {
152
152
  constants = _ref.constants,
153
153
  utils = _ref.utils;
154
154
  var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
155
- locales.init(localeTexts, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
156
155
  // 添加组件挂载状态引用
156
+ locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en'); // 添加组件挂载状态引用
157
157
  var isMountedRef = useRef(true);
158
158
  var carouselRef = useRef(null);
159
159
  var store = utils.store;
@@ -587,7 +587,7 @@ var WalletList = Provider(function (props) {
587
587
  };
588
588
  }();
589
589
  var renderWalletCard = function renderWalletCard(item) {
590
- var _dvaStore$core2;
590
+ var _dvaStore$core;
591
591
  var code = item.code,
592
592
  shop = item.shop,
593
593
  wallet = item.wallet,
@@ -643,7 +643,7 @@ var WalletList = Provider(function (props) {
643
643
  iconImg: icon,
644
644
  symbol: symbol,
645
645
  cardNo: code,
646
- walletName: getLocalizedName(name, dvaStore === null || dvaStore === void 0 || (_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.translateLocale),
646
+ walletName: getLocalizedName(name, dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale),
647
647
  shopName: shopName,
648
648
  codeType: barcodetype,
649
649
  items: cardItems,
@@ -25,7 +25,6 @@ __export(utils_exports, {
25
25
  handleAddHolder: () => handleAddHolder
26
26
  });
27
27
  module.exports = __toCommonJS(utils_exports);
28
- var import_utils = require("../../utils");
29
28
  var checkLogin = async ({
30
29
  isLogin,
31
30
  openLoginModal,
@@ -38,16 +37,7 @@ var checkLogin = async ({
38
37
  if (!isLogin) {
39
38
  openLoginModal({
40
39
  callback: (status) => {
41
- var _a;
42
40
  if (status === "success") {
43
- if (!isFormSubject) {
44
- const user = JSON.parse(((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("customer")) || "{}");
45
- const currentUser = (0, import_utils.formatCustomer)(user);
46
- const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
47
- appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
48
- } else {
49
- getHolders();
50
- }
51
41
  }
52
42
  }
53
43
  });
@@ -48,8 +48,11 @@ var import_context = require("../../context");
48
48
  var import_PolicyModal = __toESM(require("../../deposit/components/PolicyModal"));
49
49
  var import_hooks = require("../../hooks");
50
50
  var import_index = require("./index.less");
51
+ var import_useComponents = __toESM(require("../../../../hooks/useComponents"));
52
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
53
+ var import_utils2 = require("../../utils");
51
54
  var Layout = () => {
52
- var _a, _b, _c, _d, _e;
55
+ var _a, _b, _c, _d, _e, _f;
53
56
  const stepRef = (0, import_react.useRef)();
54
57
  const {
55
58
  currentStep,
@@ -68,9 +71,37 @@ var Layout = () => {
68
71
  const { getHolders } = (0, import_hooks.useAppointmentBookingAccount)();
69
72
  const { removeStep } = (0, import_hooks.useAppointmentBookingStep)();
70
73
  const { shopDiscount } = (0, import_hooks.useShopDiscount)();
74
+ const { customPageData } = (_a = (0, import_useEngineContext.default)().engine) == null ? void 0 : _a.props;
75
+ const [CustomComponent] = (0, import_useComponents.default)({
76
+ components: ["CustomComponent"]
77
+ });
78
+ console.log("CustomComponent:", CustomComponent, typeof CustomComponent, CustomComponent == null ? void 0 : CustomComponent.$$typeof);
71
79
  (0, import_hooks.useAppointmentBookingCart)();
72
80
  (0, import_hooks.useAppointmentBookingStep)();
73
81
  const [params, setParams] = (0, import_react.useState)({});
82
+ const utils = (0, import_hooks.contextUtils)();
83
+ const context = (0, import_useEngineContext.default)();
84
+ const { pubsub } = context.appHelper.utils;
85
+ (0, import_react.useEffect)(() => {
86
+ const handleLoginSuccess = async () => {
87
+ var _a2;
88
+ if (!isFormSubject) {
89
+ const user = JSON.parse(((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("customer")) || "{}");
90
+ const currentUser = (0, import_utils2.formatCustomer)(user);
91
+ const accountLists = await appointmentBooking.getAccounts();
92
+ const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
93
+ appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
94
+ } else {
95
+ if (!isRetailTemplate) {
96
+ getHolders();
97
+ }
98
+ }
99
+ };
100
+ pubsub.subscribe("pisell1.login.success", handleLoginSuccess);
101
+ return () => {
102
+ pubsub.unsubscribe("pisell1.login.success");
103
+ };
104
+ }, []);
74
105
  (0, import_react.useEffect)(() => {
75
106
  appointmentBooking.removeStep("fill-form");
76
107
  return () => {
@@ -126,7 +157,7 @@ var Layout = () => {
126
157
  top: 0,
127
158
  behavior: "smooth"
128
159
  });
129
- }, [(_a = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a.key]);
160
+ }, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
130
161
  const components = {
131
162
  // 选择服务
132
163
  "select-service": import_Services.default,
@@ -151,8 +182,14 @@ var Layout = () => {
151
182
  } else {
152
183
  Com2 = components[key];
153
184
  }
154
- return /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef });
155
- }, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
185
+ if (key === "select-service") {
186
+ return /* @__PURE__ */ import_react.default.createElement(CustomComponent, { block: customPageData == null ? void 0 : customPageData.block, customComponents: {
187
+ product_list: /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef })
188
+ } });
189
+ } else {
190
+ return /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef });
191
+ }
192
+ }, [(_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key]);
156
193
  (0, import_react.useEffect)(() => {
157
194
  var _a2, _b2;
158
195
  if ((0, import_utils.isMobile)()) {
@@ -170,7 +207,7 @@ var Layout = () => {
170
207
  content.style.overflowY = "auto";
171
208
  }
172
209
  }
173
- }, [(_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key]);
210
+ }, [(_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key]);
174
211
  const isShowCartCom = (0, import_react.useMemo)(() => {
175
212
  var _a2;
176
213
  const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
@@ -182,14 +219,14 @@ var Layout = () => {
182
219
  var _a3, _b2;
183
220
  return (_b2 = (_a3 = stepRef == null ? void 0 : stepRef.current) == null ? void 0 : _a3.next) == null ? void 0 : _b2.call(_a3);
184
221
  } }));
185
- }, [isDateSelectedFirst, (_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key]);
222
+ }, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
186
223
  const isFooter = (0, import_react.useMemo)(() => {
187
224
  var _a2;
188
225
  if (!(0, import_utils.isMobile)()) return false;
189
226
  const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
190
227
  if (isDateSelectedFirst && key === "select-date") return false;
191
228
  return key !== "confirm-information";
192
- }, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
229
+ }, [isDateSelectedFirst, (_f = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _f.key]);
193
230
  const depositProtocolRequest = (id) => {
194
231
  var _a2;
195
232
  return (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a2.call(appointmentBooking, id);
@@ -166,12 +166,17 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
166
166
  }
167
167
  return (productListBlock == null ? void 0 : productListBlock.setting) || {};
168
168
  }, [context]);
169
+ const _isMobile = (0, import_react.useMemo)(() => {
170
+ if (typeof import_utils.isMobile === "function") return (0, import_utils.isMobile)();
171
+ return import_utils.isMobile;
172
+ }, import_utils.isMobile);
169
173
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-service-wrap" }, /* @__PURE__ */ import_react.default.createElement(
170
174
  import_productSelect.default,
171
175
  {
172
176
  dataSource: products,
173
177
  onChange: handleSelectProduct,
174
- scrollDom: (0, import_utils.isMobile)() ? ".parallel-content-wrap" : ".parallel-booking-wrap",
178
+ scrollDom: _isMobile ? ".parallel-content-wrap" : ".parallel-booking-wrap",
179
+ offsetDom: _isMobile ? "" : ".pisell-section-headers",
175
180
  loading: productLoading,
176
181
  emptyDescription: import_utils.locales.getText(
177
182
  "pisell2.appointment.booking.empty.service"
@@ -41,7 +41,6 @@ var import_utils = require("@pisell/utils");
41
41
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
42
42
  var import_materials = require("@pisell/materials");
43
43
  var import_hooks = require("../../hooks");
44
- var import_utils2 = require("../../utils");
45
44
  var import_voucher = require("../../../booking/components/voucher/index.less");
46
45
  var import_index = require("./index.less");
47
46
  var ShopDiscountHooks = {
@@ -154,16 +153,6 @@ var VoucherCard = (props) => {
154
153
  if (!action) return;
155
154
  openLoginModal({
156
155
  callback: (status) => {
157
- var _a2, _b2, _c;
158
- const user = (_c = (_b2 = (_a2 = utils.store) == null ? void 0 : _a2.getState()) == null ? void 0 : _b2.global) == null ? void 0 : _c.userInfo;
159
- const currentUser2 = (0, import_utils2.formatCustomer)(user);
160
- const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
161
- if (status === "success") {
162
- appointmentBooking.setLoginAccount(
163
- meAccount == null ? void 0 : meAccount.id,
164
- currentUser2
165
- );
166
- }
167
156
  }
168
157
  });
169
158
  }
@@ -265,23 +265,12 @@ var useAppointmentBookingStep = () => {
265
265
  };
266
266
  const checkLogin = async () => {
267
267
  if (!isLogin) {
268
- const accountLists = await appointmentBooking.getAccounts();
268
+ const { pubsub } = utils;
269
+ pubsub.once("pisell1.login.success", () => {
270
+ checkHolder();
271
+ });
269
272
  return openLoginModal({
270
273
  callback: (status) => {
271
- var _a3;
272
- if (status === "success") {
273
- if (!isFormSubject) {
274
- const user = JSON.parse(((_a3 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a3.get("customer")) || "{}");
275
- const currentUser = (0, import_utils2.formatCustomer)(user);
276
- const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
277
- appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
278
- } else {
279
- if (!isRetailTemplate) {
280
- getHolders();
281
- }
282
- }
283
- checkHolder();
284
- }
285
274
  }
286
275
  });
287
276
  } else {
@@ -390,7 +379,7 @@ var useAppointmentBookingLogin = () => {
390
379
  utils.action({
391
380
  type: "pisell1.login",
392
381
  data: {
393
- type: "plugin"
382
+ // type: 'plugin'
394
383
  },
395
384
  callback
396
385
  });
@@ -39,7 +39,15 @@ var import_ahooks = require("ahooks");
39
39
  var import_utils = require("@pisell/utils");
40
40
  var import_tabs = __toESM(require("./tabs"));
41
41
  var import_productGroup = __toESM(require("../productGroup"));
42
- var io = null;
42
+ var getOffsetTopRelativeToScrollContainer = (targetElement, scrollContainer) => {
43
+ if (!targetElement || !scrollContainer) return 0;
44
+ if (targetElement === scrollContainer) {
45
+ return 0;
46
+ }
47
+ const targetRect = targetElement.getBoundingClientRect();
48
+ const containerRect = scrollContainer.getBoundingClientRect();
49
+ return targetRect.top - containerRect.top + scrollContainer.scrollTop;
50
+ };
43
51
  var TabProduct = (props) => {
44
52
  const {
45
53
  showTab = true,
@@ -48,6 +56,7 @@ var TabProduct = (props) => {
48
56
  onChange,
49
57
  amountSymbol = "$",
50
58
  scrollDom,
59
+ offsetDom,
51
60
  value: currentProductId,
52
61
  loading,
53
62
  emptyDescription,
@@ -55,6 +64,8 @@ var TabProduct = (props) => {
55
64
  } = props;
56
65
  const tabsRef = (0, import_react.useRef)();
57
66
  const [currentGroupId, setCurrentGroupId] = (0, import_react.useState)(1);
67
+ const tabLocatingRef = (0, import_react.useRef)(false);
68
+ const ioRef = (0, import_react.useRef)(null);
58
69
  (0, import_react.useEffect)(() => {
59
70
  if (list == null ? void 0 : list.length) {
60
71
  setCurrentGroupId(list[0].id);
@@ -62,6 +73,9 @@ var TabProduct = (props) => {
62
73
  handleObserver();
63
74
  });
64
75
  }
76
+ return () => {
77
+ handleUnobserver();
78
+ };
65
79
  }, [list]);
66
80
  const debouncedScroll = (0, import_ahooks.useDebounceFn)(
67
81
  (id) => {
@@ -75,18 +89,23 @@ var TabProduct = (props) => {
75
89
  const _marginTop = 270;
76
90
  const _marginBottom = window.innerHeight - 70 - 200 - 70;
77
91
  const _rootMargin = `${_marginTop * -1}px 0px ${_marginBottom * -1}px 0px`;
78
- io = new IntersectionObserver(
92
+ ioRef.current = new IntersectionObserver(
79
93
  (entries) => {
80
- var _a, _b;
94
+ var _a;
81
95
  const enteringEntries = entries.filter((entry) => entry.isIntersecting);
82
96
  if (enteringEntries.length > 0) {
83
97
  const topMostEntry = enteringEntries.reduce((top, current) => {
84
98
  return current.boundingClientRect.top < top.boundingClientRect.top ? current : top;
85
99
  });
86
- const [name, id] = (_b = (_a = topMostEntry == null ? void 0 : topMostEntry.target) == null ? void 0 : _a.id) == null ? void 0 : _b.split("-");
87
- const newGroupId = Number(id);
88
- setCurrentGroupId(newGroupId);
89
- debouncedScroll.run(id);
100
+ const targetId = (_a = topMostEntry == null ? void 0 : topMostEntry.target) == null ? void 0 : _a.id;
101
+ if (targetId) {
102
+ const [name, id] = targetId.split("-");
103
+ const newGroupId = Number(id);
104
+ if (!tabLocatingRef.current && !isNaN(newGroupId)) {
105
+ setCurrentGroupId(newGroupId);
106
+ debouncedScroll.run(id);
107
+ }
108
+ }
90
109
  }
91
110
  },
92
111
  {
@@ -94,24 +113,28 @@ var TabProduct = (props) => {
94
113
  rootMargin: _rootMargin
95
114
  }
96
115
  );
97
- if (list == null ? void 0 : list.length) {
116
+ if ((list == null ? void 0 : list.length) && ioRef.current) {
98
117
  for (const item of list) {
99
118
  const _item = document.querySelector(`#list-${item.id}`);
100
119
  if (_item) {
101
- io.observe(_item);
120
+ ioRef.current.observe(_item);
102
121
  }
103
122
  }
104
123
  }
105
124
  });
106
125
  const handleUnobserver = (0, import_ahooks.useMemoizedFn)(() => {
107
- if ((list == null ? void 0 : list.length) && io) {
126
+ if ((list == null ? void 0 : list.length) && ioRef.current) {
108
127
  for (const item of list) {
109
128
  const _item = document.querySelector(`#list-${item.id}`);
110
129
  if (_item) {
111
- io.unobserve(_item);
130
+ ioRef.current.unobserve(_item);
112
131
  }
113
132
  }
114
133
  }
134
+ if (ioRef.current) {
135
+ ioRef.current.disconnect();
136
+ ioRef.current = null;
137
+ }
115
138
  });
116
139
  const renderContent = () => {
117
140
  if (loading) {
@@ -126,7 +149,7 @@ var TabProduct = (props) => {
126
149
  );
127
150
  }
128
151
  return list.map((item, i) => {
129
- return /* @__PURE__ */ import_react.default.createElement("div", { id: `list-${item.id}`, key: i }, /* @__PURE__ */ import_react.default.createElement(
152
+ return /* @__PURE__ */ import_react.default.createElement("div", { id: `list-${item.id}`, key: `list-${item.id}` }, /* @__PURE__ */ import_react.default.createElement(
130
153
  import_productGroup.default,
131
154
  {
132
155
  onSelectProduct: onChange,
@@ -148,7 +171,7 @@ var TabProduct = (props) => {
148
171
  }
149
172
  ), /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-pisell-tabs-content" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton.Button, { active: true, size: "large", shape: "round" })));
150
173
  }, []);
151
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showTab ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-tabs-wrapper" }, loading ? tabSkeleton : /* @__PURE__ */ import_react.default.createElement(
174
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showTab && list && list.length > 1 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-tabs-wrapper" }, loading ? tabSkeleton : /* @__PURE__ */ import_react.default.createElement(
152
175
  import_tabs.default,
153
176
  {
154
177
  ref: tabsRef,
@@ -157,33 +180,47 @@ var TabProduct = (props) => {
157
180
  tab: currentGroupId,
158
181
  onChange: (e) => {
159
182
  var _a;
160
- let comWrapper = document.querySelector(
161
- ".pisell-product-select-wrapper"
162
- );
163
- let categoryDom = document.querySelector(
164
- ".pisell-product-select-tabs-wrapper"
165
- );
166
- let wrapperOffsetTop = comWrapper.offsetTop;
167
- let top = 0;
168
- if (categoryDom) {
169
- top = categoryDom.offsetHeight;
170
- }
171
- const dom = document == null ? void 0 : document.querySelector("#list-" + e);
172
- const main = document == null ? void 0 : document.querySelector(scrollDom);
173
- if (dom && main) {
174
- if (e === ((_a = list[0]) == null ? void 0 : _a.id)) {
175
- main.scrollTop = 0;
176
- } else {
177
- main.scrollTop = dom.offsetTop - top - wrapperOffsetTop;
183
+ try {
184
+ const productSelectWrapper = document.querySelector(
185
+ ".pisell-product-select-wrapper"
186
+ );
187
+ const tabsWrapper = document.querySelector(
188
+ ".pisell-product-select-tabs-wrapper"
189
+ );
190
+ let tabsHeight = 0;
191
+ if (tabsWrapper) {
192
+ tabsHeight = tabsWrapper.offsetHeight;
193
+ }
194
+ const targetListElement = document == null ? void 0 : document.querySelector("#list-" + e);
195
+ const scrollContainer = scrollDom ? document == null ? void 0 : document.querySelector(scrollDom) : null;
196
+ const offsetElement = offsetDom ? document == null ? void 0 : document.querySelector(offsetDom) : null;
197
+ const extraOffset = offsetElement ? offsetElement.clientHeight : 0;
198
+ handleUnobserver();
199
+ tabLocatingRef.current = true;
200
+ if (targetListElement && scrollContainer) {
201
+ if (e === ((_a = list[0]) == null ? void 0 : _a.id)) {
202
+ if (productSelectWrapper) {
203
+ const wrapperOffsetTop = getOffsetTopRelativeToScrollContainer(productSelectWrapper, scrollContainer);
204
+ scrollContainer.scrollTop = wrapperOffsetTop - extraOffset;
205
+ }
206
+ } else {
207
+ const listOffsetTop = getOffsetTopRelativeToScrollContainer(targetListElement, scrollContainer);
208
+ scrollContainer.scrollTop = listOffsetTop - tabsHeight - extraOffset;
209
+ }
178
210
  }
211
+ setCurrentGroupId(e);
212
+ debouncedScroll.run(e);
213
+ setTimeout(() => {
214
+ tabLocatingRef.current = false;
215
+ handleObserver();
216
+ }, 500);
217
+ } catch (error) {
218
+ console.error("Tab onChange error:", error);
219
+ tabLocatingRef.current = false;
220
+ setCurrentGroupId(e);
179
221
  }
180
- handleUnobserver();
181
- setCurrentGroupId(e);
182
- setTimeout(() => {
183
- handleObserver();
184
- }, 1e3);
185
222
  }
186
223
  }
187
- )) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-product-list" }, renderContent()));
224
+ )) : /* @__PURE__ */ import_react.default.createElement("p", null, /* @__PURE__ */ import_react.default.createElement("br", null)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-product-list" }, renderContent()));
188
225
  };
189
226
  var TabProduct_default = TabProduct;
@@ -107,6 +107,7 @@
107
107
  text-overflow: ellipsis;
108
108
  overflow: hidden;
109
109
  white-space: nowrap;
110
+ user-select: none;
110
111
  }
111
112
 
112
113
  &:hover {
@@ -14,6 +14,8 @@ interface ProductSelectProps {
14
14
  value?: number;
15
15
  loading?: boolean;
16
16
  scrollDom?: string;
17
+ /** 某些设置了固定头部的情况 */
18
+ offsetDom?: string;
17
19
  style?: React.CSSProperties;
18
20
  emptyDescription?: string;
19
21
  token?: Partial<ProductSelectToken>;