@pisell/private-materials 3.3.81 → 3.3.83

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 (169) 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 +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +5 -5
  11. package/es/businessModel/SalesModel/Sales/index.js +4 -37
  12. package/es/components/Sales/Resource/index.js +2 -2
  13. package/es/components/Sales/Resource/serve.d.ts +0 -7
  14. package/es/components/Sales/Resource/serve.js +0 -10
  15. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  16. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  17. package/es/components/appointmentBooking/components/Header/index.js +14 -8
  18. package/es/components/appointmentBooking/components/Services/index.js +36 -38
  19. package/es/components/appointmentBooking/components/Voucher/index.js +1 -1
  20. package/es/components/appointmentBooking/index.js +0 -14
  21. package/es/components/appointmentBooking/index.less +1 -1
  22. package/es/components/appointmentBooking/locales.d.ts +3 -0
  23. package/es/components/appointmentBooking/locales.js +3 -0
  24. package/es/components/booking/components/footer/utils.d.ts +0 -1
  25. package/es/components/booking/components/footer/utils.js +1 -1
  26. package/es/components/booking/components/voucher/index.js +2 -2
  27. package/es/components/booking/info/service2/utils.js +2 -3
  28. package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
  29. package/es/components/booking/info2/service/addService/utils.js +13 -43
  30. package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
  31. package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
  32. package/es/components/booking/info2/utilsByBooking.js +0 -9
  33. package/es/components/booking/locales.d.ts +0 -3
  34. package/es/components/booking/locales.js +0 -3
  35. package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
  36. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -19
  37. package/es/components/eventBooking/index.js +7 -21
  38. package/es/components/eventBooking/locales.js +3 -3
  39. package/es/components/index.d.ts +1 -3
  40. package/es/components/index.js +1 -3
  41. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  42. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  43. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  44. package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
  45. package/es/components/ticketBooking/locales.d.ts +146 -164
  46. package/es/components/ticketBooking/locales.js +147 -195
  47. package/es/index.d.ts +0 -2
  48. package/es/index.js +1 -3
  49. package/lib/businessModel/SalesModel/Sales/index.js +8 -22
  50. package/lib/components/Sales/Resource/index.js +1 -1
  51. package/lib/components/Sales/Resource/serve.d.ts +0 -7
  52. package/lib/components/Sales/Resource/serve.js +2 -9
  53. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  54. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  55. package/lib/components/appointmentBooking/components/Header/index.js +3 -2
  56. package/lib/components/appointmentBooking/components/Services/index.js +18 -19
  57. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -1
  58. package/lib/components/appointmentBooking/index.js +0 -11
  59. package/lib/components/appointmentBooking/index.less +1 -1
  60. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  61. package/lib/components/appointmentBooking/locales.js +3 -0
  62. package/lib/components/booking/components/footer/utils.d.ts +0 -1
  63. package/lib/components/booking/components/footer/utils.js +0 -2
  64. package/lib/components/booking/components/voucher/index.js +23 -11
  65. package/lib/components/booking/info/service2/utils.js +2 -2
  66. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
  67. package/lib/components/booking/info2/service/addService/utils.js +4 -26
  68. package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
  69. package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
  70. package/lib/components/booking/info2/utilsByBooking.js +0 -6
  71. package/lib/components/booking/locales.d.ts +0 -3
  72. package/lib/components/booking/locales.js +0 -3
  73. package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
  74. package/lib/components/eventBooking/components/bookingDetailModal/index.js +3 -9
  75. package/lib/components/eventBooking/index.js +7 -11
  76. package/lib/components/eventBooking/locales.js +3 -3
  77. package/lib/components/index.d.ts +1 -3
  78. package/lib/components/index.js +0 -6
  79. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  80. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  81. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  82. package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
  83. package/lib/components/ticketBooking/locales.d.ts +146 -164
  84. package/lib/components/ticketBooking/locales.js +4 -22
  85. package/lib/index.d.ts +0 -2
  86. package/lib/index.js +0 -6
  87. package/package.json +4 -4
  88. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  89. package/es/components/booking/editBookingModal/index.js +0 -386
  90. package/es/components/booking/editBookingModal/index.less +0 -8
  91. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  92. package/es/components/booking/editBookingModal/locales.js +0 -20
  93. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  94. package/es/components/booking/editBookingModal/mock.js +0 -2993
  95. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  96. package/es/components/booking/editBookingModal/serve.js +0 -288
  97. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  98. package/es/components/booking/editBookingModal/type.js +0 -1
  99. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  100. package/es/components/booking/editBookingModal/utils.js +0 -157
  101. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  102. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
  103. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  104. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
  105. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  106. package/es/components/stepController/components/Content/index.d.ts +0 -7
  107. package/es/components/stepController/components/Content/index.js +0 -9
  108. package/es/components/stepController/components/Content/index.less +0 -8
  109. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  110. package/es/components/stepController/components/Footer/index.js +0 -15
  111. package/es/components/stepController/components/Footer/index.less +0 -39
  112. package/es/components/stepController/components/Header/index.d.ts +0 -20
  113. package/es/components/stepController/components/Header/index.js +0 -97
  114. package/es/components/stepController/components/Header/index.less +0 -21
  115. package/es/components/stepController/index.d.ts +0 -5
  116. package/es/components/stepController/index.js +0 -64
  117. package/es/components/stepController/index.less +0 -11
  118. package/es/components/stepController/locales.d.ts +0 -27
  119. package/es/components/stepController/locales.js +0 -32
  120. package/es/components/stepController/types.d.ts +0 -23
  121. package/es/components/stepController/types.js +0 -1
  122. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  123. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  124. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  125. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  126. package/es/hooks/useWindowSize.d.ts +0 -5
  127. package/es/hooks/useWindowSize.js +0 -26
  128. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  129. package/lib/components/booking/editBookingModal/index.js +0 -363
  130. package/lib/components/booking/editBookingModal/index.less +0 -8
  131. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  132. package/lib/components/booking/editBookingModal/locales.js +0 -44
  133. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  134. package/lib/components/booking/editBookingModal/mock.js +0 -3314
  135. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  136. package/lib/components/booking/editBookingModal/serve.js +0 -178
  137. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  138. package/lib/components/booking/editBookingModal/type.js +0 -17
  139. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  140. package/lib/components/booking/editBookingModal/utils.js +0 -158
  141. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  142. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
  143. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  144. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
  145. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  146. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  147. package/lib/components/stepController/components/Content/index.js +0 -40
  148. package/lib/components/stepController/components/Content/index.less +0 -8
  149. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  150. package/lib/components/stepController/components/Footer/index.js +0 -49
  151. package/lib/components/stepController/components/Footer/index.less +0 -39
  152. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  153. package/lib/components/stepController/components/Header/index.js +0 -104
  154. package/lib/components/stepController/components/Header/index.less +0 -21
  155. package/lib/components/stepController/index.d.ts +0 -5
  156. package/lib/components/stepController/index.js +0 -89
  157. package/lib/components/stepController/index.less +0 -11
  158. package/lib/components/stepController/locales.d.ts +0 -27
  159. package/lib/components/stepController/locales.js +0 -50
  160. package/lib/components/stepController/types.d.ts +0 -23
  161. package/lib/components/stepController/types.js +0 -17
  162. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  163. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  164. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  165. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
  166. package/lib/hooks/useWindowSize.d.ts +0 -5
  167. package/lib/hooks/useWindowSize.js +0 -51
  168. package/lowcode/edit-booking-modal/meta.ts +0 -53
  169. package/lowcode/step-controller/meta.ts +0 -88
@@ -22,22 +22,14 @@ import { getErrorList } from "../../../utilsByBooking";
22
22
  import { isArray } from 'lodash';
23
23
  import { getAutoAllocationStorage, setAutoAllocationStorage } from "../utils";
24
24
  import { useUpdate } from 'ahooks';
25
- import { QuestionCircleOutlined } from '@ant-design/icons';
25
+ import { QuestionCircleOutlined } from "@ant-design/icons";
26
26
  var Resources = function Resources(_ref, ref) {
27
27
  var _cacheItem$_data2, _cacheItem$_data4;
28
28
  var state = _ref.state,
29
29
  cacheItem = _ref.cacheItem,
30
30
  getCurrentCacheItem = _ref.getCurrentCacheItem,
31
31
  onChange = _ref.onChange,
32
- value = _ref.value,
33
- _ref$config = _ref.config,
34
- config = _ref$config === void 0 ? {
35
- // 是否显示自动分配
36
- autoAllocation: true,
37
- // 是否显示资源错误图标
38
- resourceErrorIcon: true,
39
- disabled: false
40
- } : _ref$config;
32
+ value = _ref.value;
41
33
  var _useState = useState(false),
42
34
  _useState2 = _slicedToArray(_useState, 2),
43
35
  showError = _useState2[0],
@@ -152,7 +144,7 @@ var Resources = function Resources(_ref, ref) {
152
144
  relation_type: d.relation_type
153
145
  }), d[label]);
154
146
  });
155
- }, [config === null || config === void 0 ? void 0 : config.resourceErrorIcon]);
147
+ }, []);
156
148
 
157
149
  /**
158
150
  * @title: 检查当前资源最小选择数量
@@ -201,7 +193,6 @@ var Resources = function Resources(_ref, ref) {
201
193
  }, /*#__PURE__*/React.createElement(Form.Item, {
202
194
  label: item.title,
203
195
  required: true,
204
- labelCol: config === null || config === void 0 ? void 0 : config.labelCol,
205
196
  extra: showError && item.select_type.min > (cur === null || cur === void 0 ? void 0 : cur.length) ? /*#__PURE__*/React.createElement("span", {
206
197
  style: {
207
198
  color: '#ff4d4f'
@@ -210,17 +201,13 @@ var Resources = function Resources(_ref, ref) {
210
201
  }, /*#__PURE__*/React.createElement("div", {
211
202
  className: "resource-col"
212
203
  }, item.select_type.type === 'multiple' ? null : /*#__PURE__*/React.createElement(Button, {
213
- className: "resource-col-like-wrap ".concat(config !== null && config !== void 0 && config.disabled ? 'resource-col-like-wrap-disabled' : ''),
204
+ className: "resource-col-like-wrap",
214
205
  onClick: function onClick() {
215
206
  var _cur$;
216
- if (config !== null && config !== void 0 && config.disabled) {
217
- return;
218
- }
219
207
  setLikeStatus((cur === null || cur === void 0 || (_cur$ = cur[0]) === null || _cur$ === void 0 ? void 0 : _cur$.like_status) === 'like' ? 'common' : 'like', item.form_id, 'like_status');
220
208
  }
221
209
  }, /*#__PURE__*/React.createElement(Like, {
222
- status: cur === null || cur === void 0 || (_cur$2 = cur[0]) === null || _cur$2 === void 0 ? void 0 : _cur$2.like_status,
223
- className: "".concat(config !== null && config !== void 0 && config.disabled ? 'like-icon-disabled' : '')
210
+ status: cur === null || cur === void 0 || (_cur$2 = cur[0]) === null || _cur$2 === void 0 ? void 0 : _cur$2.like_status
224
211
  })), /*#__PURE__*/React.createElement(MaxLengthSelect, {
225
212
  className: "resource-col-select",
226
213
  size: "large",
@@ -241,16 +228,15 @@ var Resources = function Resources(_ref, ref) {
241
228
  showSearch: true,
242
229
  filterOption: function filterOption(str, option) {
243
230
  return ((option === null || option === void 0 ? void 0 : option.labelText) || '').toLowerCase().includes((str || '').toLowerCase());
244
- },
245
- disabled: config === null || config === void 0 ? void 0 : config.disabled
246
- }, renderOptions(item.renderList, 'id', config !== null && config !== void 0 && config.resourceErrorIcon ? 'label' : 'labelText', 'resource')), config !== null && config !== void 0 && config.autoAllocation ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Checkbox, {
231
+ }
232
+ }, renderOptions(item.renderList, 'id', 'label', 'resource')), /*#__PURE__*/React.createElement(Checkbox, {
247
233
  checked: getIsAutoAllocation(item.form_id),
248
234
  onChange: function onChange(e) {
249
235
  handleCheckAutoAllocation(item.form_id, e.target.checked);
250
236
  }
251
237
  }), /*#__PURE__*/React.createElement(Tooltip, {
252
238
  title: locales.getText('page.booking.text.resource.check-auto-allocation-tip')
253
- }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null))) : null)), state.renderType !== 'eventBooking' && (errors || []).map(function (d) {
239
+ }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null)))), state.renderType !== 'eventBooking' && (errors || []).map(function (d) {
254
240
  return /*#__PURE__*/React.createElement(Alert, {
255
241
  key: d.type,
256
242
  message: d.label,
@@ -15,12 +15,6 @@
15
15
  .like-resource {}
16
16
  }
17
17
 
18
- .resource-col-like-wrap-disabled,
19
- .like-icon-disabled {
20
- opacity: 0.5;
21
- cursor: not-allowed;
22
- }
23
-
24
18
  .resource-col-select {
25
19
  flex: 1;
26
20
  }
@@ -260,15 +260,6 @@ export var getErrorList = function getErrorList(resource, cacheItem) {
260
260
  }
261
261
  }
262
262
  }
263
-
264
- // 平行资源日历拖动优化需求
265
- // 拖入到未绑定的资源中
266
- if (resource.unbound) {
267
- list.push({
268
- label: locales.getText('pisell1.text.resource-error-message-unbound'),
269
- type: "time"
270
- });
271
- }
272
263
  return list;
273
264
  };
274
265
 
@@ -110,7 +110,6 @@ declare const _default: {
110
110
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
111
111
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
112
112
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
113
- 'pisell1.text.resource-error-message-unbound': string;
114
113
  'pisell1.text.no-addons': string;
115
114
  'pisell1.text.no-resource': string;
116
115
  'pisell1.text.no-payments': string;
@@ -390,7 +389,6 @@ declare const _default: {
390
389
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
391
390
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
392
391
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
393
- 'pisell1.text.resource-error-message-unbound': string;
394
392
  'pisell2.text.flexible': string;
395
393
  'pisell2.text.order-discount': string;
396
394
  'pisell2.text.no-product-added': string;
@@ -662,7 +660,6 @@ declare const _default: {
662
660
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
663
661
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
664
662
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
665
- 'pisell1.text.resource-error-message-unbound': string;
666
663
  'pisell2.text.flexible': string;
667
664
  'pisell2.text.order-discount': string;
668
665
  'pisell2.text.no-product-added': string;
@@ -128,7 +128,6 @@ export default {
128
128
  'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
129
129
  return "".concat(x, " is fully booked between ").concat(y, " and ").concat(z, ", but your team member can still book appointments.");
130
130
  },
131
- 'pisell1.text.resource-error-message-unbound': 'This booking product is not associated with the target resource.',
132
131
  'pisell1.text.no-addons': 'No addons',
133
132
  'pisell1.text.no-resource': 'No resource',
134
133
  'pisell1.text.no-payments': 'No payments',
@@ -455,7 +454,6 @@ export default {
455
454
  'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
456
455
  return "".concat(x, "\u5728").concat(y, "\u5230").concat(z, "\u4E4B\u95F4\u5DF2\u7EA6\u6EE1\uFF0C\u4F46\u60A8\u7684\u56E2\u961F\u6210\u5458\u4ECD\u7136\u53EF\u4EE5\u9884\u7EA6\u3002");
457
456
  },
458
- 'pisell1.text.resource-error-message-unbound': '该预约商品未关联目标资源。',
459
457
  'pisell2.text.flexible': "灵活",
460
458
  'pisell2.text.order-discount': "折扣",
461
459
  'pisell2.text.no-product-added': '未添加商品',
@@ -774,7 +772,6 @@ export default {
774
772
  'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
775
773
  return "".concat(x, "\u5728").concat(y, "\u5230").concat(z, "\u4E4B\u9593\u5DF2\u7D04\u6EFF\uFF0C\u4F46\u60A8\u7684\u5718\u968A\u6210\u54E1\u4ECD\u7136\u53EF\u4EE5\u9810\u7D04\u3002");
776
774
  },
777
- 'pisell1.text.resource-error-message-unbound': '該預約商品未關聯目標資源。',
778
775
  'pisell2.text.flexible': "靈活",
779
776
  'pisell2.text.order-discount': "折扣",
780
777
  'pisell2.text.no-product-added': '未添加商品',
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useEffect, useState } from 'react';
8
8
  import { isMobile, locales } from '@pisell/utils';
9
9
  import { Skeleton } from 'antd';
10
- import { useEvent, useSales, useEventDetail, useStep, useCustomer } from "../../../../Sales";
10
+ import { useEvent, useSales, useEventDetail, useStep } from "../../../../Sales";
11
11
  import BookingServiceList from "../../bookingServiceList";
12
12
  import BookingDetailModal from "../../bookingDetailModal";
13
13
  import "./index.less";
@@ -31,8 +31,6 @@ var Event = function Event() {
31
31
  lists = _useState2[0],
32
32
  setLists = _useState2[1];
33
33
  var customer = useLoginUser();
34
- var _useCustomer = useCustomer(),
35
- appUtils = _useCustomer.appUtils;
36
34
  useEffect(function () {
37
35
  var _data$stepData;
38
36
  var eventList = (eventData === null || eventData === void 0 ? void 0 : eventData.eventList) || [];
@@ -47,23 +45,16 @@ var Event = function Event() {
47
45
  }
48
46
  }, [eventData === null || eventData === void 0 ? void 0 : eventData.eventList]);
49
47
  useEffect(function () {
50
- var _data$resourceData, _appUtils$getHistory, _history$location;
48
+ var _data$resourceData;
51
49
  var id = data === null || data === void 0 || (_data$resourceData = data.resourceData) === null || _data$resourceData === void 0 || (_data$resourceData = _data$resourceData.currentResourceItem) === null || _data$resourceData === void 0 ? void 0 : _data$resourceData.id;
52
50
  if (!id) return;
53
- var history = (appUtils === null || appUtils === void 0 || (_appUtils$getHistory = appUtils.getHistory) === null || _appUtils$getHistory === void 0 ? void 0 : _appUtils$getHistory.call(appUtils)) || {};
54
- var query = history === null || history === void 0 || (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.query;
55
- var params = {
51
+ getEventList.run({
56
52
  event_item_resource_id: id,
57
53
  skip: 1,
58
54
  num: 100,
59
55
  customer_id: customer === null || customer === void 0 ? void 0 : customer.id,
60
56
  open_quotation: 1
61
- };
62
- if (query !== null && query !== void 0 && query.ids) {
63
- var _query$ids;
64
- params.ids = query === null || query === void 0 || (_query$ids = query.ids) === null || _query$ids === void 0 ? void 0 : _query$ids.split(',');
65
- }
66
- getEventList.run(params);
57
+ });
67
58
  }, [data === null || data === void 0 || (_data$resourceData2 = data.resourceData) === null || _data$resourceData2 === void 0 || (_data$resourceData2 = _data$resourceData2.currentResourceItem) === null || _data$resourceData2 === void 0 ? void 0 : _data$resourceData2.id, customer === null || customer === void 0 ? void 0 : customer.id]);
68
59
 
69
60
  /**
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useMemo, useRef, useState, useEffect } from 'react';
17
17
  import { PisellModal, PisellAnchor, PisellImageCarousels } from '@pisell/materials';
18
18
  import EventCard from "../eventCard";
19
- import { useCart, useEventDetail, useInit } from "../../../Sales";
19
+ import { useCart, useEventDetail } from "../../../Sales";
20
20
  import { isMobile, locales } from '@pisell/utils';
21
21
  import Schedule from "./components/Schedule";
22
22
  import Resource from "./components/Resource";
@@ -25,7 +25,7 @@ import OrderProductModal from "../Provider/OrderProductModal/index";
25
25
  import "./index.less";
26
26
  import useEngineContext from "../../../../hooks/useEngineContext";
27
27
  var BookingDetailModal = function BookingDetailModal(props) {
28
- var _initData$boardSettin2, _detail$introduction2;
28
+ var _detail$introduction2;
29
29
  var modalContentRef = useRef(null);
30
30
  var context = useEngineContext();
31
31
  var _ref = context.appHelper || {},
@@ -43,8 +43,6 @@ var BookingDetailModal = function BookingDetailModal(props) {
43
43
  addToCart = _useCart.addToCart,
44
44
  checkBeforeAddToCart = _useCart.checkBeforeAddToCart,
45
45
  checkBeforeAddToCartResquest = _useCart.checkBeforeAddToCartResquest;
46
- var _useInit = useInit(),
47
- initData = _useInit.initData;
48
46
  var _useState = useState('introduction'),
49
47
  _useState2 = _slicedToArray(_useState, 2),
50
48
  activeTab = _useState2[0],
@@ -61,20 +59,6 @@ var BookingDetailModal = function BookingDetailModal(props) {
61
59
  var isUserClickRef = useRef(false); // 添加用户点击标记
62
60
  var scrollTimeoutRef = useRef(null);
63
61
 
64
- /**
65
- * @title: 按钮确认文案
66
- * @description:
67
- * @param {*} useMemo
68
- * @return {*}
69
- * @Author: WangHan
70
- * @Date: 2025-06-26 15:34
71
- */
72
- var buttonText = useMemo(function () {
73
- var _initData$boardSettin, _utils$translation;
74
- var config = (initData === null || initData === void 0 || (_initData$boardSettin = initData.boardSetting) === null || _initData$boardSettin === void 0 || (_initData$boardSettin = _initData$boardSettin.config) === null || _initData$boardSettin === void 0 ? void 0 : _initData$boardSettin.product_display_setting) || {};
75
- return (utils === null || utils === void 0 || (_utils$translation = utils.translation) === null || _utils$translation === void 0 ? void 0 : _utils$translation.call(utils, config === null || config === void 0 ? void 0 : config.booking_event_v2_product_detail_button)) || locales.getText('pisell2.event.add.to.cart');
76
- }, [initData === null || initData === void 0 || (_initData$boardSettin2 = initData.boardSetting) === null || _initData$boardSettin2 === void 0 || (_initData$boardSettin2 = _initData$boardSettin2.config) === null || _initData$boardSettin2 === void 0 ? void 0 : _initData$boardSettin2.product_display_setting]);
77
-
78
62
  /**
79
63
  * @title: 详情锚点
80
64
  * @description:
@@ -393,7 +377,7 @@ var BookingDetailModal = function BookingDetailModal(props) {
393
377
  destroyOnClose: true,
394
378
  className: "booking-detail-modal",
395
379
  onCancel: onCloseEventDetail,
396
- okText: buttonText,
380
+ okText: locales.getText('pisell2.event.add.to.cart'),
397
381
  cancelVisible: false,
398
382
  onOk: handleOk,
399
383
  width: isMobile() ? '100%' : 600,
@@ -36,28 +36,14 @@ var Content = function Content() {
36
36
  * @Author: WangHan
37
37
  * @Date: 2025-01-17 14:25
38
38
  */
39
- // useEffect(() => {
40
- // if (!form_id) return;
41
-
42
- // getResourceList.run({
43
- // form_id: form_id,
44
- // shop_id: shop_id,
45
- // form_data_status: 'active',
46
- // });
47
- // }, [form_id]);
48
39
  useEffect(function () {
49
- var _utils$getHistory, _history$location;
50
- var history = (utils === null || utils === void 0 || (_utils$getHistory = utils.getHistory) === null || _utils$getHistory === void 0 ? void 0 : _utils$getHistory.call(utils)) || {};
51
- var query = history === null || history === void 0 || (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.query;
52
- var params = {
53
- front_end_cache_id: (query === null || query === void 0 ? void 0 : query.cacheId) || ''
54
- };
55
- if (query !== null && query !== void 0 && query.ids) {
56
- var _query$ids;
57
- params.event_item_ids = query === null || query === void 0 || (_query$ids = query.ids) === null || _query$ids === void 0 ? void 0 : _query$ids.split(',');
58
- }
59
- getResourceList.run(params);
60
- }, []);
40
+ if (!form_id) return;
41
+ getResourceList.run({
42
+ form_id: form_id,
43
+ shop_id: shop_id,
44
+ form_data_status: 'active'
45
+ });
46
+ }, [form_id]);
61
47
  return /*#__PURE__*/React.createElement("div", {
62
48
  className: "event-booking-wrap ".concat(isMobile() ? 'event-booking-mobile-wrap' : '')
63
49
  }, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(EventContent, null), isMobile() && (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key) !== 'select-category' ? /*#__PURE__*/React.createElement(Footer, null) : null);
@@ -35,7 +35,7 @@ export default {
35
35
  'pisell2.event.campus': 'Campus',
36
36
  'pisell2.event.resource': 'Location',
37
37
  'pisell2.event.booking.options': 'Booking options',
38
- 'pisell2.event.add.to.cart': 'Add to Cart',
38
+ 'pisell2.event.add.to.cart': 'Add to cart',
39
39
  'pisell2.event.description': 'Description',
40
40
  'pisell2.event.view.more': 'View more',
41
41
  'pisell2.event.view.less': 'View less',
@@ -120,7 +120,7 @@ export default {
120
120
  'pisell2.event.campus': '校区',
121
121
  'pisell2.event.resource': '资源',
122
122
  'pisell2.event.booking.options': '预约选项',
123
- 'pisell2.event.add.to.cart': '加入购物车',
123
+ 'pisell2.event.add.to.cart': '添加到购物车',
124
124
  'pisell2.event.description': '描述',
125
125
  'pisell2.event.view.more': '查看更多',
126
126
  'pisell2.event.view.less': '收起',
@@ -205,7 +205,7 @@ export default {
205
205
  'pisell2.event.campus': '校區',
206
206
  'pisell2.event.resource': '資源',
207
207
  'pisell2.event.booking.options': '預約選項',
208
- 'pisell2.event.add.to.cart': '加入購物車',
208
+ 'pisell2.event.add.to.cart': '添加到購物車',
209
209
  'pisell2.event.description': '描述',
210
210
  'pisell2.event.view.more': '查看更多',
211
211
  'pisell2.event.view.less': '收起',
@@ -15,6 +15,4 @@ import WorkspaceListDetail from './workSpaceListDetail/';
15
15
  import WorkspaceList from './workSpaceList';
16
16
  import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
17
  import SubTotal from './subTotal';
18
- import StepController from './stepController';
19
- import EditBookingModal from './booking/editBookingModal';
20
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, StepController, EditBookingModal };
18
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
@@ -15,6 +15,4 @@ import WorkspaceListDetail from "./workSpaceListDetail/";
15
15
  import WorkspaceList from "./workSpaceList";
16
16
  import PisellSelectCustomerModal from "./pisellSelectCustomerModal";
17
17
  import SubTotal from "./subTotal";
18
- import StepController from "./stepController";
19
- import EditBookingModal from "./booking/editBookingModal";
20
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, StepController, EditBookingModal };
18
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal };
@@ -35,7 +35,7 @@ var isOfflinePayment = function isOfflinePayment(type) {
35
35
  return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
36
36
  };
37
37
  var PaymentMethods = function PaymentMethods(props, ref) {
38
- var _context$appHelper, _interaction$utils, _interaction$utils$is;
38
+ var _context$appHelper;
39
39
  var MWCreditCardRef = useRef(null);
40
40
  var SuperPayAliPayH5Ref = useRef(null);
41
41
  var StripePayRef = useRef(null);
@@ -118,11 +118,10 @@ var PaymentMethods = function PaymentMethods(props, ref) {
118
118
  return _ref2.apply(this, arguments);
119
119
  };
120
120
  }();
121
- console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils), interaction, context);
122
121
  useEffect(function () {
123
- var _interaction$utils2, _interaction$utils2$i, _interaction$utils3, _interaction$utils3$i;
124
- console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAppEnv) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2));
125
- if (interaction !== null && interaction !== void 0 && (_interaction$utils3 = interaction.utils) !== null && _interaction$utils3 !== void 0 && (_interaction$utils3$i = _interaction$utils3.isAppEnv) !== null && _interaction$utils3$i !== void 0 && _interaction$utils3$i.call(_interaction$utils3)) {
122
+ var _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
123
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils));
124
+ if (interaction !== null && interaction !== void 0 && (_interaction$utils2 = interaction.utils) !== null && _interaction$utils2 !== void 0 && (_interaction$utils2$i = _interaction$utils2.isAppEnv) !== null && _interaction$utils2$i !== void 0 && _interaction$utils2$i.call(_interaction$utils2)) {
126
125
  interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
127
126
  console.log('paymentResult', strResult);
128
127
  if (!isJson(strResult)) return;
@@ -494,7 +494,7 @@ var AddSerivce = function AddSerivce(props) {
494
494
  isTitle: 1,
495
495
  isSubtitle: 1,
496
496
  isPrice: 1,
497
- isOriginPrice: 0,
497
+ isOriginPrice: 1,
498
498
  isStock: 1
499
499
  }
500
500
  }), /*#__PURE__*/React.createElement(NotAvailable, {
@@ -1,4 +1,3 @@
1
1
  import './index.less';
2
- export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
2
  declare const TicketBooking: () => JSX.Element;
4
3
  export default TicketBooking;