@pisell/private-materials 3.0.83 → 3.0.85

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 (75) 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 +2 -2
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +2 -2
  9. package/es/components/booking/components/addButton/index.js +3 -3
  10. package/es/components/booking/components/customSelect/index.d.ts +3 -0
  11. package/es/components/booking/components/customSelect/index.js +10 -4
  12. package/es/components/booking/components/customSelect/index.less +0 -1
  13. package/es/components/booking/components/drawer/index.d.ts +1 -0
  14. package/es/components/booking/components/drawer/index.js +4 -2
  15. package/es/components/booking/forms/format.d.ts +1 -0
  16. package/es/components/booking/forms/format.js +14 -0
  17. package/es/components/booking/info/client/index.js +3 -0
  18. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +40 -0
  19. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +379 -0
  20. package/es/components/booking/info/clientVariant/index.d.ts +1 -0
  21. package/es/components/booking/info/clientVariant/index.js +1 -0
  22. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +22 -0
  23. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +348 -0
  24. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
  25. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  26. package/es/components/booking/info/clientVariant/vertical/index.js +247 -0
  27. package/es/components/booking/info/clientVariant/vertical/index.less +83 -0
  28. package/es/components/booking/info/index.js +1 -1
  29. package/es/components/booking/info/pet/index.d.ts +11 -1
  30. package/es/components/booking/info/pet/index.js +44 -29
  31. package/es/components/booking/info/pet/index.less +3 -0
  32. package/es/components/booking/info/service/addService/index.js +1 -1
  33. package/es/components/booking/info/service/editService/index.js +12 -4
  34. package/es/components/booking/info/utils.d.ts +1 -0
  35. package/es/components/booking/info/utils.js +12 -0
  36. package/es/components/booking/locales.d.ts +6 -0
  37. package/es/components/booking/locales.js +9 -3
  38. package/es/components/booking/model.d.ts +2 -0
  39. package/es/index.d.ts +1 -0
  40. package/es/index.js +1 -0
  41. package/lib/components/booking/components/addButton/index.js +2 -2
  42. package/lib/components/booking/components/customSelect/index.d.ts +3 -0
  43. package/lib/components/booking/components/customSelect/index.js +10 -4
  44. package/lib/components/booking/components/customSelect/index.less +0 -1
  45. package/lib/components/booking/components/drawer/index.d.ts +1 -0
  46. package/lib/components/booking/components/drawer/index.js +2 -2
  47. package/lib/components/booking/forms/format.d.ts +1 -0
  48. package/lib/components/booking/forms/format.js +17 -2
  49. package/lib/components/booking/info/client/index.js +2 -1
  50. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +40 -0
  51. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +309 -0
  52. package/lib/components/booking/info/clientVariant/index.d.ts +1 -0
  53. package/lib/components/booking/info/clientVariant/index.js +39 -0
  54. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +22 -0
  55. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +356 -0
  56. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
  57. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  58. package/lib/components/booking/info/clientVariant/vertical/index.js +277 -0
  59. package/lib/components/booking/info/clientVariant/vertical/index.less +83 -0
  60. package/lib/components/booking/info/index.js +1 -1
  61. package/lib/components/booking/info/pet/index.d.ts +11 -1
  62. package/lib/components/booking/info/pet/index.js +23 -12
  63. package/lib/components/booking/info/pet/index.less +3 -0
  64. package/lib/components/booking/info/service/addService/index.js +1 -1
  65. package/lib/components/booking/info/service/editService/index.js +18 -14
  66. package/lib/components/booking/info/utils.d.ts +1 -0
  67. package/lib/components/booking/info/utils.js +16 -2
  68. package/lib/components/booking/locales.d.ts +6 -0
  69. package/lib/components/booking/locales.js +9 -3
  70. package/lib/components/booking/model.d.ts +2 -0
  71. package/lib/index.d.ts +1 -0
  72. package/lib/index.js +5 -2
  73. package/lowcode/booking-vertical-client/meta.ts +124 -0
  74. package/lowcode/vertical-client/meta.ts +71 -0
  75. package/package.json +1 -1
@@ -0,0 +1,247 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ import React, { useEffect, useMemo, useRef } from 'react';
14
+ import User01 from '@pisell/icon/es/User01';
15
+ import { Avatar, Button, Dropdown, Skeleton, Space } from 'antd';
16
+ import { image, locales } from '@pisell/utils';
17
+ import { DownOutlined, PlusOutlined } from '@ant-design/icons';
18
+ import useClientFn from "../hooks/useClientFn";
19
+ import SelectDrawer from "./SelectDrawer";
20
+ import Pet from "../../pet";
21
+ import "./index.less";
22
+ import useEngineContext from "../../../../../hooks/useEngineContext";
23
+ var VerticalClient = function VerticalClient(props) {
24
+ var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig8, _state$bookingConfig9, _state$bookingConfig10, _state$bookingConfig11, _state$pet3, _state$pet4, _state$client$value, _state$client$value2, _state$client$value3, _state$client$value4, _state$client$value5, _state$pet5, _state$pet5$value, _context$appHelper, _context$appHelper$ut, _context$appHelper$ut2, _state$bookingConfig12, _state$client;
25
+ var globalState = props.globalState,
26
+ setGlobalState = props.setGlobalState;
27
+ var modalRef = useRef();
28
+ var state = globalState;
29
+ var stateRef = useRef(state);
30
+ var prevCustomerId = useRef(null);
31
+ var context = useEngineContext();
32
+ stateRef.current = state;
33
+ var _useClientFn = useClientFn({
34
+ state: state,
35
+ setGlobalState: setGlobalState,
36
+ modalRef: modalRef
37
+ }),
38
+ isWalkIn = _useClientFn.isWalkIn,
39
+ setClient = _useClientFn.setClient,
40
+ handleSelectClient = _useClientFn.handleSelectClient,
41
+ menuChange = _useClientFn.menuChange,
42
+ handleViewClient = _useClientFn.handleViewClient,
43
+ menus = _useClientFn.menus,
44
+ handleCreateItem = _useClientFn.handleCreateItem,
45
+ getClients = _useClientFn.getClients,
46
+ params = _useClientFn.params,
47
+ searchChange = _useClientFn.searchChange,
48
+ loading = _useClientFn.loading,
49
+ loadMore = _useClientFn.loadMore,
50
+ handleOpenClientModal = _useClientFn.handleOpenClientModal,
51
+ getNickname = _useClientFn.getNickname;
52
+ var renderList = useMemo(function () {
53
+ var _list = _toConsumableArray(state.client.clients);
54
+ return _list;
55
+ }, [state.client.clients]);
56
+ var handleClose = function handleClose() {
57
+ setTimeout(function () {
58
+ setClient({
59
+ showModal: false
60
+ });
61
+ });
62
+ };
63
+ var petDispatch = function petDispatch(_ref) {
64
+ var type = _ref.type,
65
+ payload = _ref.payload;
66
+ if (type === 'setPet') {
67
+ setGlobalState({
68
+ pet: _objectSpread(_objectSpread({}, stateRef.current.pet), payload)
69
+ });
70
+ }
71
+ };
72
+ var boardConfig = useMemo(function () {
73
+ var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
74
+ return (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : _state$bookingConfig$2.appointment_subject) || {};
75
+ }, [state === null || state === void 0 ? void 0 : (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : (_state$bookingConfig3 = _state$bookingConfig2.config) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.basic]);
76
+ useEffect(function () {
77
+ var _state$bookingConfig4, _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7;
78
+ if ((state === null || state === void 0 ? void 0 : (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 ? void 0 : (_state$bookingConfig5 = _state$bookingConfig4.config) === null || _state$bookingConfig5 === void 0 ? void 0 : (_state$bookingConfig6 = _state$bookingConfig5.basic) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.appointment_customer) === null || _state$bookingConfig7 === void 0 ? void 0 : _state$bookingConfig7.type) === 'customer' && state !== null && state !== void 0 && state.modalOpen && !(state !== null && state !== void 0 && state.bookingId)) {
79
+ handleOpenClientModal();
80
+ } else {
81
+ modalRef.current.close();
82
+ setClient({
83
+ showModal: false
84
+ });
85
+ }
86
+ }, [state === null || state === void 0 ? void 0 : (_state$bookingConfig8 = state.bookingConfig) === null || _state$bookingConfig8 === void 0 ? void 0 : (_state$bookingConfig9 = _state$bookingConfig8.config) === null || _state$bookingConfig9 === void 0 ? void 0 : (_state$bookingConfig10 = _state$bookingConfig9.basic) === null || _state$bookingConfig10 === void 0 ? void 0 : (_state$bookingConfig11 = _state$bookingConfig10.appointment_customer) === null || _state$bookingConfig11 === void 0 ? void 0 : _state$bookingConfig11.type, state === null || state === void 0 ? void 0 : state.modalOpen]);
87
+ var handleSelectPet = function handleSelectPet(val) {
88
+ setGlobalState({
89
+ pet: _objectSpread(_objectSpread({}, state.pet), {}, {
90
+ edit: true,
91
+ value: val
92
+ })
93
+ });
94
+ };
95
+ var handleOpenModal = function handleOpenModal() {
96
+ handleOpenClientModal();
97
+ };
98
+ var handleAddPet = function handleAddPet(_client) {
99
+ var _state$pet$formData;
100
+ var _data = {
101
+ formDataConfig: _objectSpread({}, ((_state$pet$formData = state.pet.formData) === null || _state$pet$formData === void 0 ? void 0 : _state$pet$formData[0]) || {})
102
+ };
103
+ _data.customerId = _client.id;
104
+ state.action({
105
+ type: 'pisell1.goCustomFormAddData',
106
+ data: _data,
107
+ callback: function callback(res) {
108
+ var newClients = stateRef.current.client.clients.map(function (item) {
109
+ if (item.id === _client.id) {
110
+ var newFormRecordObj = res.reduce(function (p, c) {
111
+ return _objectSpread(_objectSpread({}, p), {}, _defineProperty({}, c.key, c.value));
112
+ }, {});
113
+ return _objectSpread(_objectSpread({}, item), {}, {
114
+ form_record: [].concat(_toConsumableArray(item.form_record), [_objectSpread(_objectSpread({}, newFormRecordObj), {}, {
115
+ id: newFormRecordObj.form_record_id,
116
+ data: newFormRecordObj
117
+ })])
118
+ });
119
+ }
120
+ return item;
121
+ });
122
+ setClient({
123
+ clients: newClients
124
+ });
125
+ // getClients(params);
126
+ }
127
+ });
128
+ };
129
+
130
+ var previewItemTitleRender = function previewItemTitleRender(value, index, values) {
131
+ var _value$customer, _value$customer2, _value$customer3, _value$customer4, _state$pet$formData2, _state$pet$formData2$;
132
+ var title = getNickname(value.customer) || (value === null || value === void 0 ? void 0 : (_value$customer = value.customer) === null || _value$customer === void 0 ? void 0 : _value$customer.email) || (value === null || value === void 0 ? void 0 : (_value$customer2 = value.customer) === null || _value$customer2 === void 0 ? void 0 : _value$customer2.phone) || '';
133
+ if ((value === null || value === void 0 ? void 0 : (_value$customer3 = value.customer) === null || _value$customer3 === void 0 ? void 0 : _value$customer3.id) === prevCustomerId.current) {
134
+ if (values.length === index + 1) {
135
+ prevCustomerId.current = null;
136
+ }
137
+ return null;
138
+ }
139
+ prevCustomerId.current = value === null || value === void 0 ? void 0 : (_value$customer4 = value.customer) === null || _value$customer4 === void 0 ? void 0 : _value$customer4.id;
140
+ if (values.length === index + 1) {
141
+ prevCustomerId.current = null;
142
+ }
143
+ return /*#__PURE__*/React.createElement("div", {
144
+ className: "pisell-lowcode__booking-pet-title"
145
+ }, title, " ' ", ((_state$pet$formData2 = state.pet.formData) === null || _state$pet$formData2 === void 0 ? void 0 : (_state$pet$formData2$ = _state$pet$formData2[0]) === null || _state$pet$formData2$ === void 0 ? void 0 : _state$pet$formData2$.title) || '');
146
+ };
147
+ var isShowAddBtn = useMemo(function () {
148
+ var _state$pet, _state$pet$formData3, _state$pet$formData3$, _state$pet2, _state$pet2$value, _state$pet2$value$for;
149
+ var formId = (_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : (_state$pet$formData3 = _state$pet.formData) === null || _state$pet$formData3 === void 0 ? void 0 : (_state$pet$formData3$ = _state$pet$formData3[0]) === null || _state$pet$formData3$ === void 0 ? void 0 : _state$pet$formData3$.form_id;
150
+ if ((!isWalkIn || (_state$pet2 = state.pet) !== null && _state$pet2 !== void 0 && (_state$pet2$value = _state$pet2.value) !== null && _state$pet2$value !== void 0 && (_state$pet2$value$for = _state$pet2$value[formId]) !== null && _state$pet2$value$for !== void 0 && _state$pet2$value$for.length) && !(state !== null && state !== void 0 && state.disabledEdit) && boardConfig.type === 'form') {
151
+ return true;
152
+ }
153
+ return false;
154
+ }, [isWalkIn, state === null || state === void 0 ? void 0 : state.disabledEdit, (_state$pet3 = state.pet) === null || _state$pet3 === void 0 ? void 0 : _state$pet3.value, (_state$pet4 = state.pet) === null || _state$pet4 === void 0 ? void 0 : _state$pet4.formData, boardConfig.type]);
155
+ return /*#__PURE__*/React.createElement("div", {
156
+ className: "pisell-lowcode__booking-vertical-client-wrap"
157
+ }, /*#__PURE__*/React.createElement("div", {
158
+ className: "pisell-lowcode__booking-vertical-client",
159
+ onClick: function onClick() {
160
+ if (!isWalkIn || state !== null && state !== void 0 && state.disableEventBookingEdit) {
161
+ return;
162
+ }
163
+ handleOpenClientModal();
164
+ }
165
+ }, /*#__PURE__*/React.createElement(Skeleton, {
166
+ loading: state.loading,
167
+ active: true,
168
+ round: true
169
+ }, /*#__PURE__*/React.createElement(Avatar, {
170
+ className: "pisell-lowcode__booking-client-avatar",
171
+ src: image.ali((_state$client$value = state.client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.cover, 100),
172
+ size: 64,
173
+ icon: /*#__PURE__*/React.createElement(User01, {
174
+ className: "pisell-lowcode__booking-client-list-item-avatar-icon"
175
+ })
176
+ }), isWalkIn ? /*#__PURE__*/React.createElement("div", {
177
+ className: "pisell-lowcode__booking-client-info-desc"
178
+ }, /*#__PURE__*/React.createElement("div", {
179
+ className: "pisell-lowcode__booking-client-title"
180
+ }, locales.getText('pisell2.text.add-client')), /*#__PURE__*/React.createElement("div", {
181
+ className: "pisell-lowcode__booking-client-desc-item"
182
+ }, locales.getText('pisell2.text.leave-empty-for-walk-in'))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
183
+ className: "pisell-lowcode__booking-client-title"
184
+ }, getNickname(state.client.value)), (_state$client$value2 = state.client.value) !== null && _state$client$value2 !== void 0 && _state$client$value2.email ? /*#__PURE__*/React.createElement("div", {
185
+ className: "pisell-lowcode__booking-client-desc-item"
186
+ }, (_state$client$value3 = state.client.value) === null || _state$client$value3 === void 0 ? void 0 : _state$client$value3.email) : null, (_state$client$value4 = state.client.value) !== null && _state$client$value4 !== void 0 && _state$client$value4.phone ? /*#__PURE__*/React.createElement("div", {
187
+ className: "pisell-lowcode__booking-client-desc-item"
188
+ }, (_state$client$value5 = state.client.value) === null || _state$client$value5 === void 0 ? void 0 : _state$client$value5.phone) : null), !isWalkIn && /*#__PURE__*/React.createElement("div", {
189
+ className: "pisell-lowcode__booking-client-action-wrap"
190
+ }, !state.disabledEdit && /*#__PURE__*/React.createElement(Dropdown, {
191
+ menu: {
192
+ items: menus,
193
+ onClick: menuChange
194
+ },
195
+ placement: "bottomRight"
196
+ }, /*#__PURE__*/React.createElement(Button, {
197
+ onClick: function onClick(e) {
198
+ return e.stopPropagation();
199
+ }
200
+ }, /*#__PURE__*/React.createElement(Space, null, locales.getText('pisell2.text.actions'), /*#__PURE__*/React.createElement(DownOutlined, null)))), /*#__PURE__*/React.createElement(Button, {
201
+ onClick: function onClick(e) {
202
+ e.stopPropagation();
203
+ handleViewClient();
204
+ }
205
+ }, locales.getText('pisell2.text.view-profile'))))), /*#__PURE__*/React.createElement("div", {
206
+ className: "pisell-lowcode__booking-vertical-pet"
207
+ }, !(state !== null && state !== void 0 && state.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, boardConfig.type === 'form' ? /*#__PURE__*/React.createElement(Pet, {
208
+ clientChangeNotSetPet: true,
209
+ state: state,
210
+ dispatch: petDispatch,
211
+ hideTitle: !((_state$pet5 = state.pet) !== null && _state$pet5 !== void 0 && (_state$pet5$value = _state$pet5.value) !== null && _state$pet5$value !== void 0 && _state$pet5$value.length),
212
+ handleOpenModal: handleOpenModal,
213
+ addButtonProps: {
214
+ onClick: handleOpenClientModal,
215
+ style: {
216
+ display: 'none'
217
+ }
218
+ },
219
+ previewItemTitleRender: previewItemTitleRender
220
+ }) : null) : null), isShowAddBtn && /*#__PURE__*/React.createElement("div", {
221
+ className: "pisell-lowcode__booking-vertical-footer"
222
+ }, /*#__PURE__*/React.createElement(Button, {
223
+ icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
224
+ onClick: handleOpenClientModal,
225
+ block: true,
226
+ size: "large"
227
+ }, locales.getText('pisell2.text.add'))), /*#__PURE__*/React.createElement(SelectDrawer, {
228
+ modalOpen: state.modalOpen,
229
+ loading: loading,
230
+ autoFocus: !(context !== null && context !== void 0 && (_context$appHelper = context.appHelper) !== null && _context$appHelper !== void 0 && (_context$appHelper$ut = _context$appHelper.utils) !== null && _context$appHelper$ut !== void 0 && (_context$appHelper$ut2 = _context$appHelper$ut.isTerminal) !== null && _context$appHelper$ut2 !== void 0 && _context$appHelper$ut2.call(_context$appHelper$ut)),
231
+ ref: modalRef,
232
+ onClose: handleClose,
233
+ handleSelectClient: handleSelectClient,
234
+ handleCreateItem: handleCreateItem,
235
+ childrenValue: state.pet.value,
236
+ handleSelectPet: handleSelectPet,
237
+ formData: state.pet.formData,
238
+ searchChange: searchChange,
239
+ options: renderList,
240
+ holder: state === null || state === void 0 ? void 0 : (_state$bookingConfig12 = state.bookingConfig) === null || _state$bookingConfig12 === void 0 ? void 0 : _state$bookingConfig12.holder,
241
+ client: state === null || state === void 0 ? void 0 : (_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.value,
242
+ loadMore: loadMore,
243
+ showPet: (boardConfig === null || boardConfig === void 0 ? void 0 : boardConfig.type) === 'form',
244
+ handleAddPet: handleAddPet
245
+ }));
246
+ };
247
+ export default VerticalClient;
@@ -0,0 +1,83 @@
1
+ .pisell-lowcode__booking-vertical-client-wrap {
2
+ position: relative;
3
+ overflow: hidden;
4
+ height: 100%;
5
+ width: 100%;
6
+ border-right: 1px solid var(--Gray-200, #EAECF0);
7
+ background: var(--Gray-50, #F9FAFB);
8
+ display: flex;
9
+ flex-direction: column;
10
+ .pisell-lowcode-drawer-content {
11
+ border-right: 1px solid var(--Gray-200, #EAECF0);
12
+ }
13
+ .pisell-lowcode__booking-drawer-title-wrap {
14
+ padding: 24px 24px 0;
15
+ }
16
+ .pisell-lowcode__booking-drawer-back {
17
+ margin-right: 6px;
18
+ }
19
+ .pisell-lowcode__booking-drawer-back, .pisell-lowcode__booking-drawer-title {
20
+ font-size: 18px;
21
+ }
22
+ }
23
+ .pisell-lowcode__booking-vertical-client {
24
+ padding: 24px 16px;
25
+ display: flex;
26
+ flex-direction: column;
27
+ align-items: center;
28
+ width: 100%;
29
+ border-bottom: 1px solid var(--Gray-200, #EAECF0);
30
+ .pisell-lowcode__booking-client-avatar {
31
+ margin-bottom: 16px;
32
+ }
33
+ .pisell-lowcode__booking-client-title {
34
+ color: var(--Gray-900, #101828);
35
+ font-size: 16px;
36
+ font-style: normal;
37
+ font-weight: 600;
38
+ line-height: 24px; /* 150% */
39
+ text-align: center;
40
+ }
41
+ .pisell-lowcode__booking-client-desc-item {
42
+ color: var(--Gray-400, #98A2B3);
43
+ font-size: 14px;
44
+ font-style: normal;
45
+ font-weight: 400;
46
+ line-height: 20px; /* 142.857% */
47
+ text-align: center;
48
+ max-width: 200px;
49
+ word-break:break-word
50
+ }
51
+ .pisell-lowcode__booking-client-action-wrap {
52
+ display: flex;
53
+ gap: 16px;
54
+ justify-content: center;
55
+ margin-top: 16px;
56
+ }
57
+ }
58
+
59
+ .pisell-lowcode__booking-vertical-pet {
60
+ padding: 0 24px 24px;
61
+ flex:1;
62
+ overflow: auto;
63
+ }
64
+ .pisell-lowcode__booking-pet-title {
65
+ color: var(--Gray-700, #344054);
66
+ font-size: 14px;
67
+ font-style: normal;
68
+ font-weight: 500;
69
+ line-height: 20px;
70
+ margin-bottom: 8px;
71
+ word-break: break-word;
72
+ }
73
+
74
+ .pisell-lowcode__booking-vertical-footer {
75
+ display: flex;
76
+ padding: var(--rateStarSize, 20px) 32px;
77
+ flex-direction: column;
78
+ align-items: flex-start;
79
+ gap: 16px;
80
+ border-top: 1px solid var(--Gray-200, #EAECF0);
81
+ background: var(--Base-White, #FFF);
82
+ box-shadow: 0px -4px 8px -2px rgba(16, 24, 40, 0.10), 0px -2px 4px -2px rgba(16, 24, 40, 0.06);
83
+ }
@@ -93,7 +93,7 @@ var Info = Provider(function (props) {
93
93
  }) : /*#__PURE__*/React.createElement("div", {
94
94
  className: "",
95
95
  style: {
96
- height: 20
96
+ height: 0
97
97
  }
98
98
  });
99
99
  }, [globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, modal.state, modal.dispatch, globalState === null || globalState === void 0 ? void 0 : globalState.renderType]);
@@ -1,4 +1,14 @@
1
1
  import React from "react";
2
2
  import "./index.less";
3
- declare const Pet: () => React.JSX.Element;
3
+ import { InfoProps } from "../../forms/forms";
4
+ interface PetProps {
5
+ state?: any;
6
+ dispatch?: any;
7
+ hideTitle?: boolean;
8
+ addButtonProps?: InfoProps['addButtonProps'];
9
+ handleOpenModal?: () => void;
10
+ clientChangeNotSetPet?: boolean;
11
+ previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
12
+ }
13
+ declare const Pet: (props: PetProps) => React.JSX.Element;
4
14
  export default Pet;
@@ -25,7 +25,7 @@ import { Avatar, Skeleton, Button } from "antd";
25
25
  import "./index.less";
26
26
  import { locales } from "@pisell/utils";
27
27
  import FormsCom from "../../forms/forms";
28
- import { changeFormValues } from "../../forms/format";
28
+ import { changeFormValues, sortFormValues } from "../../forms/format";
29
29
  import { isWalkIn } from "../../utils";
30
30
  import useEngineContext from "../../../../hooks/useEngineContext";
31
31
  var defaultParams = {
@@ -34,8 +34,13 @@ var defaultParams = {
34
34
  total: 0,
35
35
  keyword: ""
36
36
  };
37
- var Pet = function Pet() {
38
- var _context$appHelper, _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$bookingConfig6, _state$client$value2, _state$client8, _state$client8$value, _state$pet5, _state$pet5$formData, _state$pet5$formData$, _state$pet5$formData$2, _state$client9;
37
+ var Pet = function Pet(props) {
38
+ var _context$appHelper, _state2, _state2$bookingConfig, _state2$bookingConfig2, _state2$bookingConfig3, _state$bookingConfig3, _state$client$value2, _state$client9, _state$client9$value, _state$pet5, _state$pet5$formData, _state$pet5$formData$, _state$pet5$formData$2, _state$client10;
39
+ var hideTitle = props.hideTitle,
40
+ addButtonProps = props.addButtonProps,
41
+ handleOpenModal = props.handleOpenModal,
42
+ clientChangeNotSetPet = props.clientChangeNotSetPet,
43
+ previewItemTitleRender = props.previewItemTitleRender;
39
44
  var _useState = useState(false),
40
45
  _useState2 = _slicedToArray(_useState, 2),
41
46
  loadLoading = _useState2[0],
@@ -58,11 +63,13 @@ var Pet = function Pet() {
58
63
  _useState8 = _slicedToArray(_useState7, 2),
59
64
  params = _useState8[0],
60
65
  setParams = _useState8[1];
66
+ state = state || (props === null || props === void 0 ? void 0 : props.state);
67
+ dispatch = dispatch || (props === null || props === void 0 ? void 0 : props.dispatch);
61
68
  // board设置, 获取预约主体
62
69
  var boardParams = useMemo(function () {
63
- var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
64
- return (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : _state$bookingConfig$2.appointment_subject) || {};
65
- }, [state === null || state === void 0 ? void 0 : (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : (_state$bookingConfig3 = _state$bookingConfig2.config) === null || _state$bookingConfig3 === void 0 ? void 0 : (_state$bookingConfig4 = _state$bookingConfig3.basic) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.appointment_subject]);
70
+ var _state, _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
71
+ return ((_state = state) === null || _state === void 0 ? void 0 : (_state$bookingConfig = _state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : _state$bookingConfig$2.appointment_subject) || {};
72
+ }, [(_state2 = state) === null || _state2 === void 0 ? void 0 : (_state2$bookingConfig = _state2.bookingConfig) === null || _state2$bookingConfig === void 0 ? void 0 : (_state2$bookingConfig2 = _state2$bookingConfig.config) === null || _state2$bookingConfig2 === void 0 ? void 0 : (_state2$bookingConfig3 = _state2$bookingConfig2.basic) === null || _state2$bookingConfig3 === void 0 ? void 0 : _state2$bookingConfig3.appointment_subject]);
66
73
 
67
74
  /**
68
75
  * @title: 预约主体
@@ -73,8 +80,8 @@ var Pet = function Pet() {
73
80
  * @Date: 2024-01-27 14:22
74
81
  */
75
82
  var petForm = useMemo(function () {
76
- var _state$bookingConfig5;
77
- var _holder = (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 ? void 0 : _state$bookingConfig5.holder;
83
+ var _state$bookingConfig2;
84
+ var _holder = (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.holder;
78
85
  if (!_holder) {
79
86
  return null;
80
87
  }
@@ -85,7 +92,7 @@ var Pet = function Pet() {
85
92
  relation_type: "appointment_booking",
86
93
  form_record: []
87
94
  });
88
- }, [(_state$bookingConfig6 = state.bookingConfig) === null || _state$bookingConfig6 === void 0 ? void 0 : _state$bookingConfig6.holder]);
95
+ }, [(_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.holder]);
89
96
 
90
97
  /**
91
98
  * @title: 获取表单数据
@@ -181,6 +188,8 @@ var Pet = function Pet() {
181
188
  payload,
182
189
  _state$bookingDetail4,
183
190
  _state$bookingDetail5,
191
+ _state$client3,
192
+ _state$client3$value,
184
193
  records,
185
194
  _args2 = arguments;
186
195
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -227,12 +236,13 @@ var Pet = function Pet() {
227
236
  }
228
237
  _context2.next = 16;
229
238
  return state.apis.getFormRecords({
230
- form_record_ids: (_state$bookingDetail4 = state.bookingDetail) === null || _state$bookingDetail4 === void 0 ? void 0 : (_state$bookingDetail5 = _state$bookingDetail4.holder) === null || _state$bookingDetail5 === void 0 ? void 0 : _state$bookingDetail5.form_record
239
+ form_record_ids: (_state$bookingDetail4 = state.bookingDetail) === null || _state$bookingDetail4 === void 0 ? void 0 : (_state$bookingDetail5 = _state$bookingDetail4.holder) === null || _state$bookingDetail5 === void 0 ? void 0 : _state$bookingDetail5.form_record,
240
+ with: ['customer']
231
241
  });
232
242
  case 16:
233
243
  records = _context2.sent;
234
244
  console.log("records", records);
235
- values[boardParams === null || boardParams === void 0 ? void 0 : boardParams.form_id] = records;
245
+ values[boardParams === null || boardParams === void 0 ? void 0 : boardParams.form_id] = sortFormValues(records, (_state$client3 = state.client) === null || _state$client3 === void 0 ? void 0 : (_state$client3$value = _state$client3.value) === null || _state$client3$value === void 0 ? void 0 : _state$client3$value.id);
236
246
  payload.value = values;
237
247
  setValueLoading(false);
238
248
  case 21:
@@ -259,14 +269,14 @@ var Pet = function Pet() {
259
269
  };
260
270
  }();
261
271
  var handleViewItem = function handleViewItem(item) {
262
- var _state$client3, _state$client3$value;
272
+ var _state$client4, _state$client4$value;
263
273
  var _data = {
264
274
  formDataConfig: _objectSpread({}, petForm),
265
275
  record: item
266
276
  };
267
- if (petForm.data_range === "customer" && !isWalkIn((_state$client3 = state.client) === null || _state$client3 === void 0 ? void 0 : (_state$client3$value = _state$client3.value) === null || _state$client3$value === void 0 ? void 0 : _state$client3$value.id)) {
268
- var _state$client4, _state$client4$value;
269
- _data.customerId = (_state$client4 = state.client) === null || _state$client4 === void 0 ? void 0 : (_state$client4$value = _state$client4.value) === null || _state$client4$value === void 0 ? void 0 : _state$client4$value.id;
277
+ if (petForm.data_range === "customer" && !isWalkIn((_state$client4 = state.client) === null || _state$client4 === void 0 ? void 0 : (_state$client4$value = _state$client4.value) === null || _state$client4$value === void 0 ? void 0 : _state$client4$value.id)) {
278
+ var _state$client5, _state$client5$value;
279
+ _data.customerId = (_state$client5 = state.client) === null || _state$client5 === void 0 ? void 0 : (_state$client5$value = _state$client5.value) === null || _state$client5$value === void 0 ? void 0 : _state$client5$value.id;
270
280
  }
271
281
  state.action({
272
282
  type: "pisell1.goCustomFormDetail",
@@ -278,7 +288,9 @@ var Pet = function Pet() {
278
288
  return d.form_record_id !== item.form_record_id;
279
289
  });
280
290
  } else {
281
- var obj = {};
291
+ var obj = {
292
+ customer: item === null || item === void 0 ? void 0 : item.customer
293
+ };
282
294
  var _iterator = _createForOfIteratorHelper(res),
283
295
  _step;
284
296
  try {
@@ -303,14 +315,14 @@ var Pet = function Pet() {
303
315
  });
304
316
  };
305
317
  var handleEditItem = function handleEditItem(item) {
306
- var _state$client5, _state$client5$value;
318
+ var _state$client6, _state$client6$value;
307
319
  var _data = {
308
320
  formDataConfig: _objectSpread({}, petForm),
309
321
  record: item
310
322
  };
311
- if (petForm.data_range === "customer" && !isWalkIn((_state$client5 = state.client) === null || _state$client5 === void 0 ? void 0 : (_state$client5$value = _state$client5.value) === null || _state$client5$value === void 0 ? void 0 : _state$client5$value.id)) {
312
- var _state$client6, _state$client6$value;
313
- _data.customerId = (_state$client6 = state.client) === null || _state$client6 === void 0 ? void 0 : (_state$client6$value = _state$client6.value) === null || _state$client6$value === void 0 ? void 0 : _state$client6$value.id;
323
+ if (petForm.data_range === "customer" && !isWalkIn((_state$client6 = state.client) === null || _state$client6 === void 0 ? void 0 : (_state$client6$value = _state$client6.value) === null || _state$client6$value === void 0 ? void 0 : _state$client6$value.id)) {
324
+ var _state$client7, _state$client7$value;
325
+ _data.customerId = (_state$client7 = state.client) === null || _state$client7 === void 0 ? void 0 : (_state$client7$value = _state$client7.value) === null || _state$client7$value === void 0 ? void 0 : _state$client7$value.id;
314
326
  }
315
327
  state.action({
316
328
  type: "pisell1.editCustomFormRecord",
@@ -344,10 +356,11 @@ var Pet = function Pet() {
344
356
 
345
357
  // 当客户id 发生改变时, 检测当前表单是否是该客户的, 如果不是则移除
346
358
  useEffect(function () {
347
- var _state$pet, _state$client7, _state$client7$value, _state$pet2;
359
+ var _state$pet, _state$client8, _state$client8$value, _state$pet2;
360
+ if (clientChangeNotSetPet) return;
348
361
  var changeFormValuesData = changeFormValues({
349
362
  values: ((_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : _state$pet.value) || {},
350
- clientId: (_state$client7 = state.client) === null || _state$client7 === void 0 ? void 0 : (_state$client7$value = _state$client7.value) === null || _state$client7$value === void 0 ? void 0 : _state$client7$value.id,
363
+ clientId: (_state$client8 = state.client) === null || _state$client8 === void 0 ? void 0 : (_state$client8$value = _state$client8.value) === null || _state$client8$value === void 0 ? void 0 : _state$client8$value.id,
351
364
  forms: ((_state$pet2 = state.pet) === null || _state$pet2 === void 0 ? void 0 : _state$pet2.formData) || []
352
365
  });
353
366
  setTimeout(function () {
@@ -358,7 +371,7 @@ var Pet = function Pet() {
358
371
  }
359
372
  });
360
373
  });
361
- }, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id]);
374
+ }, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id, clientChangeNotSetPet]);
362
375
  var handleUpdateForm = function handleUpdateForm() {
363
376
  if (state.bookingId) {
364
377
  // 编辑时 必须获取详情后在获取预约主体信息
@@ -376,7 +389,7 @@ var Pet = function Pet() {
376
389
  setTimeout(function () {
377
390
  handleUpdateForm();
378
391
  }, 10);
379
- }, [state.bookingId, state.bookingDetail, boardParams.form_id, boardParams.type, (_state$client8 = state.client) === null || _state$client8 === void 0 ? void 0 : (_state$client8$value = _state$client8.value) === null || _state$client8$value === void 0 ? void 0 : _state$client8$value.id, state.renderType, petForm]);
392
+ }, [state.bookingId, state.bookingDetail, boardParams.form_id, boardParams.type, state.renderType, petForm, clientChangeNotSetPet ? (_state$client9 = state.client) === null || _state$client9 === void 0 ? void 0 : (_state$client9$value = _state$client9.value) === null || _state$client9$value === void 0 ? void 0 : _state$client9$value.id : undefined]);
380
393
  var _addCallback = function addCallback(_params) {
381
394
  var _state$pet3, _state$pet3$formData;
382
395
  var _formData = (_state$pet3 = state.pet) === null || _state$pet3 === void 0 ? void 0 : (_state$pet3$formData = _state$pet3.formData) === null || _state$pet3$formData === void 0 ? void 0 : _state$pet3$formData[0];
@@ -420,7 +433,7 @@ var Pet = function Pet() {
420
433
  active: true,
421
434
  round: true
422
435
  }, /*#__PURE__*/React.createElement(FormsCom, {
423
- hideTitle: true,
436
+ hideTitle: hideTitle,
424
437
  watch: {
425
438
  value: state.pet.value
426
439
  },
@@ -433,7 +446,7 @@ var Pet = function Pet() {
433
446
  modalOpen: state.modalOpen,
434
447
  value: state.pet.value,
435
448
  onChange: onValueChange,
436
- client: (_state$client9 = state.client) === null || _state$client9 === void 0 ? void 0 : _state$client9.value,
449
+ client: (_state$client10 = state.client) === null || _state$client10 === void 0 ? void 0 : _state$client10.value,
437
450
  customSelectProps: {
438
451
  loading: loading,
439
452
  handleViewItem: handleViewItem,
@@ -449,7 +462,9 @@ var Pet = function Pet() {
449
462
  loadMore: loadMore,
450
463
  filterItem: function filterItem() {
451
464
  return true;
452
- }
465
+ },
466
+ handleOpenModal: handleOpenModal,
467
+ previewItemTitleRender: previewItemTitleRender
453
468
  },
454
469
  optionRender: function optionRender(item) {
455
470
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
@@ -484,7 +499,7 @@ var Pet = function Pet() {
484
499
  }
485
500
  }, locales.getText("pisell2.text.edit"))));
486
501
  },
487
- addButtonProps: {
502
+ addButtonProps: _objectSpread({
488
503
  style: {
489
504
  margin: 0
490
505
  },
@@ -507,7 +522,7 @@ var Pet = function Pet() {
507
522
  }
508
523
  return addCallback;
509
524
  }()
510
- }
525
+ }, addButtonProps)
511
526
  })));
512
527
  };
513
528
  export default Pet;
@@ -97,6 +97,9 @@
97
97
  font-size: 14px;
98
98
  font-style: normal;
99
99
  font-weight: 400;
100
+ & > div {
101
+ min-width: 100% !important;
102
+ }
100
103
  }
101
104
  }
102
105
 
@@ -282,7 +282,7 @@ var Info = function Info() {
282
282
  var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5, _state$service4, _state$service4$value;
283
283
  // Salonip 不要这个
284
284
 
285
- if (shopList.includes((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.global) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id)) {
285
+ if (shopList.includes((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.global) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id) || state.closeAutoOpenService) {
286
286
  return;
287
287
  }
288
288
 
@@ -507,7 +507,8 @@ var Info = function Info() {
507
507
  while (1) switch (_context2.prev = _context2.next) {
508
508
  case 0:
509
509
  setResourceLoading(true);
510
- _context2.next = 3;
510
+ _context2.prev = 1;
511
+ _context2.next = 4;
511
512
  return state.apis.getResources({
512
513
  skip: 1,
513
514
  num: 1000,
@@ -517,7 +518,7 @@ var Info = function Info() {
517
518
  abort: true
518
519
  }
519
520
  });
520
- case 3:
521
+ case 4:
521
522
  data = _context2.sent;
522
523
  // 合并无资源
523
524
  _list = [getNoResource()].concat((data === null || data === void 0 ? void 0 : data.list) || []);
@@ -527,12 +528,19 @@ var Info = function Info() {
527
528
  resourcesOrigin: _list
528
529
  }
529
530
  });
531
+ _context2.next = 12;
532
+ break;
533
+ case 9:
534
+ _context2.prev = 9;
535
+ _context2.t0 = _context2["catch"](1);
536
+ console.log(_context2.t0, 'err');
537
+ case 12:
530
538
  setResourceLoading(false);
531
- case 7:
539
+ case 13:
532
540
  case "end":
533
541
  return _context2.stop();
534
542
  }
535
- }, _callee2);
543
+ }, _callee2, null, [[1, 9]]);
536
544
  }));
537
545
  return function getResourcesData() {
538
546
  return _ref3.apply(this, arguments);
@@ -1 +1,2 @@
1
1
  export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
2
+ export declare const uniqueByField: (arr: any[], field: string) => any[];