@shoper/phoenix_design_system 1.11.11-7 → 1.11.11-8
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.
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js +112 -38
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_content.js +0 -5
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_content.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js +13 -24
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/search.js +95 -279
- package/build/cjs/packages/phoenix/src/components/form/search/search.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js +0 -5
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js +9 -22
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js +1 -15
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js +1 -8
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js +4 -9
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js +4 -9
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js +4 -11
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js +5 -12
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select.js +2 -3
- package/build/cjs/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/cjs/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.js +13 -2
- package/build/cjs/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.js.map +1 -1
- package/build/cjs/packages/phoenix/src/index.js +12 -12
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown.d.ts +12 -4
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown.js +113 -39
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_content.d.ts +0 -2
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_content.js +0 -5
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_content.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.d.ts +1 -2
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.js +14 -25
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/search.d.ts +5 -26
- package/build/esm/packages/phoenix/src/components/form/search/search.js +96 -280
- package/build/esm/packages/phoenix/src/components/form/search/search.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/search_types.d.ts +0 -4
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.d.ts +1 -2
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js +0 -5
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.d.ts +2 -2
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js +9 -22
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js +2 -16
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/message/search_message.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js +1 -8
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.d.ts +1 -2
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js +4 -9
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.d.ts +1 -2
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js +4 -9
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.d.ts +1 -2
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js +4 -11
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.d.ts +1 -2
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js +5 -12
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/select.js +2 -3
- package/build/esm/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.d.ts +2 -1
- package/build/esm/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.js +13 -2
- package/build/esm/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller_types.d.ts +1 -0
- package/build/esm/packages/phoenix/src/index.js +2 -2
- package/package.json +2 -2
|
@@ -15,7 +15,6 @@ var behavior_subject = require('../../../core/classes/behavior_subject/behavior_
|
|
|
15
15
|
var ref_js = require('lit-html/directives/ref.js');
|
|
16
16
|
var context_provider_controller = require('../../../core/context/context_provider_controller.js');
|
|
17
17
|
var global_constants = require('../../../global_constants.js');
|
|
18
|
-
var v4 = require('../../../../../../external/uuid/dist/esm-browser/v4.js');
|
|
19
18
|
var when = require('../../../../../../external/lit/external/lit-html/directives/when.js');
|
|
20
19
|
var search_constants = require('./search_constants.js');
|
|
21
20
|
|
|
@@ -23,11 +22,8 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
23
22
|
constructor() {
|
|
24
23
|
super(...arguments);
|
|
25
24
|
this.view = search_constants.DEFAULT_VIEW;
|
|
26
|
-
this._id = v4['default']();
|
|
27
|
-
this._searchContentContainerId = v4['default']();
|
|
28
25
|
this._searchResultsRef = ref_js.createRef();
|
|
29
26
|
this._searchHistoryRef = ref_js.createRef();
|
|
30
|
-
this._searchMessageRef = ref_js.createRef();
|
|
31
27
|
this._shouldShowHistory = false;
|
|
32
28
|
this._shouldShowResults = false;
|
|
33
29
|
this._shouldShowMessage = false;
|
|
@@ -37,225 +33,84 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
37
33
|
this._historyContext = new behavior_subject.BehaviorSubject({
|
|
38
34
|
showLoadMore: false
|
|
39
35
|
});
|
|
40
|
-
this._activeItemId =
|
|
36
|
+
this._activeItemId = -1;
|
|
41
37
|
this._translations = {};
|
|
42
|
-
this._containerRole = 'grid';
|
|
43
38
|
this._bindKeys = (ev) => {
|
|
39
|
+
var _a;
|
|
44
40
|
switch (ev.key) {
|
|
45
41
|
case 'ArrowDown':
|
|
46
42
|
ev.preventDefault();
|
|
47
|
-
this.
|
|
43
|
+
this._focusOutsideActiveItemsForward();
|
|
44
|
+
this._scroll(search_constants.SCROLL_DIRECTIONS.down);
|
|
48
45
|
break;
|
|
49
46
|
case 'ArrowUp':
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (this._containerRole === 'grid') {
|
|
54
|
-
ev.preventDefault();
|
|
55
|
-
this._handleBackwardGridFocus();
|
|
56
|
-
}
|
|
57
|
-
if (this._containerRole === 'listbox')
|
|
58
|
-
this._handleMoveToInputField();
|
|
59
|
-
break;
|
|
60
|
-
case 'ArrowRight':
|
|
61
|
-
if (this._containerRole === 'grid') {
|
|
62
|
-
ev.preventDefault();
|
|
63
|
-
this._handleForwardGridFocus();
|
|
64
|
-
}
|
|
65
|
-
if (this._containerRole === 'listbox')
|
|
66
|
-
this._handleMoveToInputField();
|
|
47
|
+
ev.preventDefault();
|
|
48
|
+
this._focusOutsideActiveItemsBackward();
|
|
49
|
+
this._scroll(search_constants.SCROLL_DIRECTIONS.up);
|
|
67
50
|
break;
|
|
68
51
|
case 'Enter':
|
|
69
52
|
ev.preventDefault();
|
|
70
|
-
if (this._activeItemId ===
|
|
53
|
+
if (this._activeItemId === -1 || !this._shouldShowResults)
|
|
71
54
|
return;
|
|
72
55
|
this._handleChooseSearchItem();
|
|
73
56
|
break;
|
|
74
57
|
case 'Escape':
|
|
75
58
|
ev.preventDefault();
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
this._shouldShowMessage = false;
|
|
79
|
-
this._hideHistorySuggestionsAndResults();
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
this._inputField.value = '';
|
|
83
|
-
}
|
|
84
|
-
break;
|
|
85
|
-
case 'End':
|
|
86
|
-
ev.preventDefault();
|
|
87
|
-
this._handleFocusOnInputWithCaretEnd();
|
|
88
|
-
break;
|
|
89
|
-
case 'Home':
|
|
90
|
-
ev.preventDefault();
|
|
91
|
-
this._handleFocusOnInputWithCaretStart();
|
|
92
|
-
break;
|
|
93
|
-
case 'Backspace':
|
|
94
|
-
this._handleMoveToInputField();
|
|
59
|
+
this._inputField.blur();
|
|
60
|
+
this._resetSearchView();
|
|
95
61
|
break;
|
|
96
62
|
case 'Tab':
|
|
97
|
-
const isFocusedOnSearchInput = document.activeElement ===
|
|
98
|
-
if (!isFocusedOnSearchInput)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this._handleWriteableCharacter(ev);
|
|
63
|
+
const isFocusedOnSearchInput = !!((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.matches('input[type="search"]'));
|
|
64
|
+
if (!isFocusedOnSearchInput) {
|
|
65
|
+
const searchBar = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.searchBar}`);
|
|
66
|
+
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
67
|
+
this._resetSearchView();
|
|
68
|
+
document.removeEventListener('keyup', this._bindKeys);
|
|
69
|
+
}
|
|
105
70
|
break;
|
|
106
71
|
}
|
|
107
72
|
};
|
|
108
|
-
this.
|
|
109
|
-
if (ev.key !== 'Tab')
|
|
110
|
-
return;
|
|
111
|
-
const isFocusedOnSearchInput = document.activeElement === this._inputField;
|
|
112
|
-
if (ev.shiftKey && !isFocusedOnSearchInput) {
|
|
113
|
-
this._focusOnPreviousElementBeforeSearchInput(ev);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (!isFocusedOnSearchInput) {
|
|
117
|
-
const searchBar = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.searchBar}`);
|
|
118
|
-
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
119
|
-
this._resetSearchView();
|
|
120
|
-
this._removeSearchKeyboardNavigation();
|
|
121
|
-
this._focusOnNextElementAfterSearchInput(ev);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
this._focusOnPreviousElementBeforeSearchInput = async (ev) => {
|
|
125
|
-
ev.preventDefault();
|
|
126
|
-
const searchBar = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.searchBar}`);
|
|
127
|
-
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
128
|
-
this._resetSearchView();
|
|
129
|
-
this._removeSearchKeyboardNavigation();
|
|
130
|
-
utilities.UiDomUtils.getPreviousFocusableElement(this._inputField).focus();
|
|
131
|
-
};
|
|
132
|
-
this._focusOnNextElementAfterSearchInput = async (ev) => {
|
|
133
|
-
ev.preventDefault();
|
|
134
|
-
utilities.UiDomUtils.getNextFocusableElement(this._inputField).focus();
|
|
135
|
-
};
|
|
136
|
-
this._preventScrollingOnSearchContentBrowsing = (ev) => {
|
|
73
|
+
this._focusOutsideActiveItemsForward = () => {
|
|
137
74
|
var _a;
|
|
138
|
-
const
|
|
139
|
-
const
|
|
140
|
-
const hasSearchContainerParent = !!((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest('.search__container'));
|
|
141
|
-
if ((hasArrowBeenPressed || hasHomeOrEndBeenPressed) && hasSearchContainerParent) {
|
|
142
|
-
ev.preventDefault();
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
this._handleForwardListFocus = () => {
|
|
146
|
-
var _a, _b;
|
|
147
|
-
const $searchItemsContainer = this._findSearchItemsContainer();
|
|
148
|
-
if (!$searchItemsContainer)
|
|
149
|
-
return;
|
|
150
|
-
const isActiveElementASearchItem = !!((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.getAttribute('data-search-item-id'));
|
|
151
|
-
const isActiveElementAGridSearchItem = isActiveElementASearchItem && !!((_b = document.activeElement) === null || _b === void 0 ? void 0 : _b.getAttribute('data-search-grid-item'));
|
|
152
|
-
const $listSearchItems = this._findListSearchItems($searchItemsContainer, isActiveElementAGridSearchItem);
|
|
153
|
-
this._handleForwardFocus($listSearchItems);
|
|
154
|
-
};
|
|
155
|
-
this._handleForwardGridFocus = () => {
|
|
156
|
-
const $searchItemsContainer = this._findSearchItemsContainer();
|
|
75
|
+
const $activeElement = document.activeElement;
|
|
76
|
+
const $searchItemsContainer = this._searchHistoryRef.value || this._searchResultsRef.value;
|
|
157
77
|
if (!$searchItemsContainer)
|
|
158
78
|
return;
|
|
159
|
-
const $
|
|
79
|
+
const $searchItems = utilities.UiDomUtils.getFocusableElements($searchItemsContainer).filter(($el) => {
|
|
160
80
|
return !!$el.getAttribute('data-search-item-id');
|
|
161
81
|
});
|
|
162
|
-
this._handleForwardFocus($gridSearchItems);
|
|
163
|
-
};
|
|
164
|
-
this._handleForwardFocus = ($searchItems) => {
|
|
165
|
-
var _a;
|
|
166
|
-
const $activeElement = document.activeElement;
|
|
167
82
|
const indexOfCurrentElement = $searchItems.indexOf($activeElement);
|
|
168
83
|
const indexOfNextElement = indexOfCurrentElement === $searchItems.length - 1 ? 0 : indexOfCurrentElement + 1;
|
|
169
84
|
const $nextSearchItemElement = $searchItems[indexOfNextElement];
|
|
170
85
|
$nextSearchItemElement.focus();
|
|
171
|
-
this.
|
|
172
|
-
};
|
|
173
|
-
this._handleMoveToInputField = () => {
|
|
174
|
-
const isFocusedOnSearchInput = document.activeElement === this._inputField;
|
|
175
|
-
if (isFocusedOnSearchInput)
|
|
176
|
-
return;
|
|
177
|
-
this._inputField.focus();
|
|
178
|
-
};
|
|
179
|
-
this._handleBackwardListFocus = (ev) => {
|
|
180
|
-
var _a, _b;
|
|
181
|
-
const isFocusedOnSearchInput = document.activeElement === this._inputField;
|
|
182
|
-
const hasPopup = this._shouldShowHistory || this._shouldShowHistory || this._shouldShowResults;
|
|
183
|
-
if (isFocusedOnSearchInput || !hasPopup)
|
|
184
|
-
return;
|
|
185
|
-
ev.preventDefault();
|
|
186
|
-
const $searchItemsContainer = this._findSearchItemsContainer();
|
|
187
|
-
if (!$searchItemsContainer)
|
|
188
|
-
return;
|
|
189
|
-
const isActiveElementASearchItem = !!((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.getAttribute('data-search-item-id'));
|
|
190
|
-
const isActiveElementAGridSearchItem = isActiveElementASearchItem && !!((_b = document.activeElement) === null || _b === void 0 ? void 0 : _b.getAttribute('data-search-grid-item'));
|
|
191
|
-
const $listSearchItems = this._findListSearchItems($searchItemsContainer, isActiveElementAGridSearchItem);
|
|
192
|
-
this._handleBackwardFocus($listSearchItems);
|
|
86
|
+
this._activeItemId = (_a = Number($nextSearchItemElement.getAttribute('data-search-item-id'))) !== null && _a !== void 0 ? _a : -1;
|
|
193
87
|
};
|
|
194
|
-
this.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const isGridSearchItem = !!searchItemId && $el.getAttribute('data-search-grid-item');
|
|
199
|
-
return shouldFindGridList ? isGridSearchItem : isListSearchItem;
|
|
200
|
-
});
|
|
201
|
-
};
|
|
202
|
-
this._handleBackwardGridFocus = () => {
|
|
203
|
-
const $searchItemsContainer = this._findSearchItemsContainer();
|
|
88
|
+
this._focusOutsideActiveItemsBackward = () => {
|
|
89
|
+
var _a;
|
|
90
|
+
const $activeElement = document.activeElement;
|
|
91
|
+
const $searchItemsContainer = this._searchHistoryRef.value || this._searchResultsRef.value;
|
|
204
92
|
if (!$searchItemsContainer)
|
|
205
93
|
return;
|
|
206
|
-
const $
|
|
94
|
+
const $searchItems = utilities.UiDomUtils.getFocusableElements($searchItemsContainer).filter(($el) => {
|
|
207
95
|
return !!$el.getAttribute('data-search-item-id');
|
|
208
96
|
});
|
|
209
|
-
this._handleBackwardFocus($gridSearchItems);
|
|
210
|
-
};
|
|
211
|
-
this._findSearchItemsContainer = () => {
|
|
212
|
-
const containers = [
|
|
213
|
-
this._searchHistoryRef.value,
|
|
214
|
-
this._searchResultsRef.value,
|
|
215
|
-
this._searchMessageRef.value
|
|
216
|
-
];
|
|
217
|
-
return containers.find(container => container && !utilities.UiDomUtils.isElementEmpty(container));
|
|
218
|
-
};
|
|
219
|
-
this._handleBackwardFocus = ($searchItems) => {
|
|
220
|
-
var _a;
|
|
221
|
-
const $activeElement = document.activeElement;
|
|
222
97
|
const indexOfCurrentElement = $searchItems.indexOf($activeElement);
|
|
223
98
|
const indexOfPreviousElement = indexOfCurrentElement === 0 ? $searchItems.length - 1 : indexOfCurrentElement - 1;
|
|
224
99
|
const $previousSearchItemElement = $searchItems[indexOfPreviousElement];
|
|
225
100
|
$previousSearchItemElement.focus();
|
|
226
|
-
this.
|
|
101
|
+
this._activeItemId = (_a = Number($previousSearchItemElement.getAttribute('data-search-item-id'))) !== null && _a !== void 0 ? _a : -1;
|
|
227
102
|
};
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
};
|
|
238
|
-
this._handleFocusOnInputWithCaretEnd = () => {
|
|
239
|
-
const isFocusedOnSearchInput = document.activeElement === this._inputField;
|
|
240
|
-
if (isFocusedOnSearchInput)
|
|
241
|
-
return;
|
|
242
|
-
this._inputField.focus();
|
|
243
|
-
const endPosition = this._inputField.value.length;
|
|
244
|
-
this._inputField.setSelectionRange(endPosition, endPosition);
|
|
245
|
-
};
|
|
246
|
-
this._handleFocusOnInputWithCaretStart = () => {
|
|
247
|
-
this._inputField.focus();
|
|
248
|
-
this._inputField.setSelectionRange(0, 0);
|
|
249
|
-
};
|
|
250
|
-
this._handleWriteableCharacter = (ev) => {
|
|
251
|
-
const isFocusedOnSearchInput = document.activeElement === this._inputField;
|
|
252
|
-
if (isFocusedOnSearchInput)
|
|
253
|
-
return;
|
|
254
|
-
this._inputField.focus();
|
|
255
|
-
const isAPrintableCharacter = ev.key.match(/\P{C}/u);
|
|
256
|
-
if (ev.key.length !== 1 || !isAPrintableCharacter) {
|
|
257
|
-
ev.preventDefault();
|
|
103
|
+
this._getSearchItemsCount = () => {
|
|
104
|
+
if (this._shouldShowHistory)
|
|
105
|
+
return this._historyLimitedContent.length;
|
|
106
|
+
let searchItemsCount = this._searchResults.products.length +
|
|
107
|
+
this._searchResults.categories.length +
|
|
108
|
+
this._searchResults.suggestions.length +
|
|
109
|
+
this._searchResults.producers.length;
|
|
110
|
+
if (this._searchResults.products.length && this._searchResults.suggestions.length) {
|
|
111
|
+
searchItemsCount += 1;
|
|
258
112
|
}
|
|
113
|
+
return searchItemsCount;
|
|
259
114
|
};
|
|
260
115
|
this._hideSuggesterOnClickOutside = (ev) => {
|
|
261
116
|
const outsideClick = typeof ev.composedPath === 'function' && !ev.composedPath().includes(this);
|
|
@@ -270,12 +125,6 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
270
125
|
? this.classList.remove(search_constants.SEARCH_CLASS_NAMES.mobileOpened)
|
|
271
126
|
: this.classList.add(search_constants.SEARCH_CLASS_NAMES.mobileOpened);
|
|
272
127
|
};
|
|
273
|
-
this._preventSubmitOnSearchClear = (ev) => {
|
|
274
|
-
const $searchClear = this.querySelector(search_constants.SEARCH_COMPONENT_NAMES.clearButton);
|
|
275
|
-
if (ev.key === 'Enter' && ev.target === $searchClear) {
|
|
276
|
-
ev.preventDefault();
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
128
|
}
|
|
280
129
|
async connectedCallback() {
|
|
281
130
|
super.connectedCallback();
|
|
@@ -314,9 +163,7 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
314
163
|
disconnectedCallback() {
|
|
315
164
|
super.disconnectedCallback();
|
|
316
165
|
document.removeEventListener('click', this._hideSuggesterOnClickOutside);
|
|
317
|
-
document.removeEventListener('keydown', this._preventScrollingOnSearchContentBrowsing);
|
|
318
166
|
window.removeEventListener('resize', this._switchTypeOfSearchView);
|
|
319
|
-
this._searchForm.removeEventListener('keydown', this._preventSubmitOnSearchClear);
|
|
320
167
|
}
|
|
321
168
|
_setupContext() {
|
|
322
169
|
this._historyContextProvider = new context_provider_controller.ContextProviderController(this);
|
|
@@ -325,11 +172,8 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
325
172
|
_setupInitialSearchPhrase() {
|
|
326
173
|
var _a;
|
|
327
174
|
const searchInput = this.querySelector('input[type="search"]');
|
|
328
|
-
const searchForm = this.closest('form');
|
|
329
175
|
if (searchInput)
|
|
330
176
|
this._inputField = searchInput;
|
|
331
|
-
if (searchForm)
|
|
332
|
-
this._searchForm = searchForm;
|
|
333
177
|
if (!((_a = this._inputField) === null || _a === void 0 ? void 0 : _a.value))
|
|
334
178
|
return;
|
|
335
179
|
this._searchPhrase = this._inputField.value;
|
|
@@ -348,17 +192,11 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
348
192
|
}
|
|
349
193
|
_setupListeners() {
|
|
350
194
|
this.addEventListener(search_constants.SEARCH_CUSTOM_EVENT_NAMES.focusin, (ev) => {
|
|
351
|
-
var _a, _b, _c;
|
|
352
|
-
const $target = (_a = ev.detail) === null || _a === void 0 ? void 0 : _a.relatedTarget;
|
|
353
|
-
if ($target === null || $target === void 0 ? void 0 : $target.closest(`[id="${this._searchContentContainerId}"]`))
|
|
354
|
-
return;
|
|
355
195
|
const searchBar = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.searchBar}`);
|
|
356
196
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.add(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
357
|
-
const shouldShowMessage =
|
|
358
|
-
this._updateSearchView(
|
|
359
|
-
document.addEventListener('
|
|
360
|
-
document.addEventListener('keyup', this._handleSearchTabNavigation);
|
|
361
|
-
document.addEventListener('keydown', this._preventScrollingOnSearchContentBrowsing);
|
|
197
|
+
const shouldShowMessage = ev.detail.searchPhrase !== '';
|
|
198
|
+
this._updateSearchView(ev.detail.searchPhrase, shouldShowMessage, false);
|
|
199
|
+
document.addEventListener('keyup', this._bindKeys);
|
|
362
200
|
});
|
|
363
201
|
this.addEventListener(search_constants.SEARCH_CUSTOM_EVENT_NAMES.keyup, (ev) => {
|
|
364
202
|
const shouldShowMessage = ev.detail.searchPhrase !== '';
|
|
@@ -369,7 +207,7 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
369
207
|
this._updateSearchView('', false);
|
|
370
208
|
});
|
|
371
209
|
this.addEventListener(search_constants.SEARCH_CUSTOM_EVENT_NAMES.submit, () => {
|
|
372
|
-
if (this._activeItemId !==
|
|
210
|
+
if (this._activeItemId !== -1)
|
|
373
211
|
return;
|
|
374
212
|
if (this._inputField.value === '') {
|
|
375
213
|
this._updateSearchView(this._inputField.value, true);
|
|
@@ -393,12 +231,10 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
393
231
|
});
|
|
394
232
|
document.addEventListener('click', this._hideSuggesterOnClickOutside);
|
|
395
233
|
window.addEventListener('resize', this._switchTypeOfSearchView);
|
|
396
|
-
this._searchForm.addEventListener('keydown', this._preventSubmitOnSearchClear);
|
|
397
234
|
}
|
|
398
235
|
_updateSearchView(searchPhrase, shouldShowMessage, shouldUpdateSearchPhrase = true) {
|
|
399
236
|
this._shouldShowMessage = shouldShowMessage;
|
|
400
|
-
this.
|
|
401
|
-
this._inputField.setAttribute('aria-activedescendant', '');
|
|
237
|
+
this._activeItemId = -1;
|
|
402
238
|
this._displaySuggester(searchPhrase);
|
|
403
239
|
if (!shouldUpdateSearchPhrase)
|
|
404
240
|
return;
|
|
@@ -436,58 +272,57 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
436
272
|
_handleToggleHistoryAndResults({ shouldShowHistory, shouldShowResults }) {
|
|
437
273
|
this._shouldShowHistory = shouldShowHistory;
|
|
438
274
|
this._shouldShowResults = shouldShowResults;
|
|
439
|
-
this.
|
|
440
|
-
this._toggleSearchContainerAttributes(shouldShowHistory, shouldShowResults);
|
|
275
|
+
this._toggleSearchInputAria(shouldShowHistory, shouldShowResults);
|
|
441
276
|
}
|
|
442
|
-
|
|
277
|
+
_toggleSearchInputAria(shouldShowHistory, shouldShowResults) {
|
|
443
278
|
var _a;
|
|
444
279
|
const $input = (_a = this._searchInput) === null || _a === void 0 ? void 0 : _a.input;
|
|
445
280
|
if (!$input)
|
|
446
281
|
return;
|
|
447
282
|
if (!shouldShowHistory && !shouldShowResults) {
|
|
448
283
|
$input.removeAttribute('aria-label');
|
|
449
|
-
$input.setAttribute('aria-activedescendant', '');
|
|
450
284
|
return;
|
|
451
285
|
}
|
|
452
286
|
$input.setAttribute('aria-expanded', 'true');
|
|
453
|
-
if (shouldShowHistory)
|
|
287
|
+
if (shouldShowHistory)
|
|
454
288
|
$input.setAttribute('aria-label', this.settings.historyGuideAriaLabel);
|
|
455
|
-
|
|
456
|
-
}
|
|
457
|
-
if (shouldShowResults) {
|
|
289
|
+
if (shouldShowResults)
|
|
458
290
|
$input.setAttribute('aria-label', this.settings.suggesterGuideAriaLabel);
|
|
459
|
-
this._inputField.removeAttribute('aria-haspopup');
|
|
460
|
-
}
|
|
461
291
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
292
|
+
_scroll(direction) {
|
|
293
|
+
const searchContainer = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.container}`);
|
|
294
|
+
const maxScrollTop = searchContainer.scrollHeight - searchContainer.clientHeight;
|
|
295
|
+
const activeItem = this.querySelector(`[data-search-item-id="${this._activeItemId}"]`);
|
|
296
|
+
const activeItemHeight = (activeItem === null || activeItem === void 0 ? void 0 : activeItem.getBoundingClientRect().height) || 0;
|
|
297
|
+
let top;
|
|
298
|
+
if (direction === search_constants.SCROLL_DIRECTIONS.up) {
|
|
299
|
+
top = searchContainer.scrollTop == 0 ? 0 : searchContainer.scrollTop + 30 - activeItemHeight;
|
|
465
300
|
}
|
|
466
|
-
|
|
467
|
-
|
|
301
|
+
else {
|
|
302
|
+
top = searchContainer.scrollTop == maxScrollTop ? maxScrollTop : activeItemHeight + searchContainer.scrollTop - 30;
|
|
468
303
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
const $activeSearchItem = this.querySelector(`[data-search-item-id="${this._activeItemId}"]`);
|
|
472
|
-
if (!$activeSearchItem)
|
|
473
|
-
return;
|
|
474
|
-
const $linkElement = $activeSearchItem.querySelector('a');
|
|
475
|
-
const $suggestedElement = $linkElement || $activeSearchItem;
|
|
476
|
-
const $elementToClick = $activeSearchItem.dataset.suggestedValue ? $suggestedElement : $linkElement;
|
|
477
|
-
if (!$elementToClick) {
|
|
478
|
-
$activeSearchItem.click();
|
|
304
|
+
if (this._activeItemId === this._getSearchItemsCount() - 1) {
|
|
305
|
+
top = maxScrollTop;
|
|
479
306
|
}
|
|
480
|
-
|
|
481
|
-
|
|
307
|
+
if (this._activeItemId === 0) {
|
|
308
|
+
top = 0;
|
|
482
309
|
}
|
|
310
|
+
searchContainer === null || searchContainer === void 0 ? void 0 : searchContainer.scrollTo({ top, behavior: 'smooth' });
|
|
311
|
+
}
|
|
312
|
+
_handleChooseSearchItem() {
|
|
313
|
+
const activeSearchItem = this.querySelector(`[data-search-item-id="${this._activeItemId}"]`);
|
|
314
|
+
const elementToClick = activeSearchItem.dataset.suggestedValue
|
|
315
|
+
? activeSearchItem
|
|
316
|
+
: activeSearchItem.querySelector('a');
|
|
317
|
+
elementToClick.click();
|
|
483
318
|
}
|
|
484
319
|
_resetSearchView() {
|
|
485
320
|
this._shouldShowMessage = false;
|
|
486
|
-
this.
|
|
321
|
+
this._activeItemId = -1;
|
|
487
322
|
const searchBar = this.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.searchBar}`);
|
|
488
323
|
searchBar === null || searchBar === void 0 ? void 0 : searchBar.classList.remove(search_constants.SEARCH_CLASS_NAMES.outline);
|
|
489
324
|
this._hideHistorySuggestionsAndResults();
|
|
490
|
-
this.
|
|
325
|
+
document.removeEventListener('keyup', this._bindKeys);
|
|
491
326
|
}
|
|
492
327
|
_submitSearchPhrase(searchPhrase) {
|
|
493
328
|
this._dispatchEventWithSearchPhrase(search_constants.SEARCH_CUSTOM_EVENT_NAMES.searchPhraseSubmitted, searchPhrase);
|
|
@@ -522,48 +357,33 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
522
357
|
<div class="labeled-icon__signature">${this._translations.search}</div>
|
|
523
358
|
</div>
|
|
524
359
|
|
|
525
|
-
${when.when(this._isSuggesterLayerVisible(), () => lit.html
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
360
|
+
${when.when(this._isSuggesterLayerVisible(), () => lit.html `<div class="${search_constants.SEARCH_CLASS_NAMES.container}">
|
|
361
|
+
${when.when(this._shouldShowMessage, () => lit.html `<h-search-message
|
|
362
|
+
.history="${this._historyLimitedContent}"
|
|
363
|
+
.results="${this._searchResults}"
|
|
364
|
+
.translations="${this._translations}"
|
|
365
|
+
search-phrase="${this._searchPhrase}"
|
|
366
|
+
module-instance-id="${this.moduleInstanceId}"
|
|
367
|
+
></h-search-message>`)}
|
|
368
|
+
${when.when(this._shouldShowHistory, () => lit.html `<h-search-history
|
|
369
|
+
${ref_js.ref(this._searchHistoryRef)}
|
|
533
370
|
.history="${this._historyLimitedContent}"
|
|
534
|
-
.results="${this._searchResults}"
|
|
535
371
|
.translations="${this._translations}"
|
|
372
|
+
active-item-id="${this._activeItemId}"
|
|
373
|
+
module-instance-id="${this.moduleInstanceId}"
|
|
374
|
+
></h-search-history>`)}
|
|
375
|
+
${when.when(this._shouldShowResults, () => lit.html `<h-search-results
|
|
376
|
+
${ref_js.ref(this._searchResultsRef)}
|
|
377
|
+
.results="${this._searchResults}"
|
|
536
378
|
search-phrase="${this._searchPhrase}"
|
|
379
|
+
.settings="${this.settings}"
|
|
380
|
+
locale="${this.locale}"
|
|
381
|
+
view="${this.view}"
|
|
382
|
+
.translations="${this._translations}"
|
|
383
|
+
active-item-id="${this._activeItemId}"
|
|
537
384
|
module-instance-id="${this.moduleInstanceId}"
|
|
538
|
-
></h-search-
|
|
539
|
-
|
|
540
|
-
${ref_js.ref(this._searchHistoryRef)}
|
|
541
|
-
.history="${this._historyLimitedContent}"
|
|
542
|
-
.translations="${this._translations}"
|
|
543
|
-
active-item-id="${this._activeItemId}"
|
|
544
|
-
search-id="${this._id}"
|
|
545
|
-
module-instance-id="${this.moduleInstanceId}"
|
|
546
|
-
></h-search-history>`)}
|
|
547
|
-
${when.when(this._shouldShowResults, () => lit.html `<h-search-results
|
|
548
|
-
${ref_js.ref(this._searchResultsRef)}
|
|
549
|
-
.results="${this._searchResults}"
|
|
550
|
-
search-phrase="${this._searchPhrase}"
|
|
551
|
-
.settings="${this.settings}"
|
|
552
|
-
locale="${this.locale}"
|
|
553
|
-
view="${this.view}"
|
|
554
|
-
.translations="${this._translations}"
|
|
555
|
-
active-item-id="${this._activeItemId}"
|
|
556
|
-
search-id="${this._id}"
|
|
557
|
-
module-instance-id="${this.moduleInstanceId}"
|
|
558
|
-
></h-search-results>`)}
|
|
559
|
-
</div>
|
|
560
|
-
`, () => lit.html `
|
|
561
|
-
<div
|
|
562
|
-
class="${search_constants.SEARCH_CLASS_NAMES.container}"
|
|
563
|
-
id="${this._searchContentContainerId}"
|
|
564
|
-
role="${this._containerRole}"
|
|
565
|
-
hidden
|
|
566
|
-
></div>`)}
|
|
385
|
+
></h-search-results>`)}
|
|
386
|
+
</div>`)}
|
|
567
387
|
`;
|
|
568
388
|
}
|
|
569
389
|
};
|
|
@@ -617,16 +437,12 @@ tslib_es6.__decorate([
|
|
|
617
437
|
], exports.HSearch.prototype, "_historyContext", void 0);
|
|
618
438
|
tslib_es6.__decorate([
|
|
619
439
|
decorators.state(),
|
|
620
|
-
tslib_es6.__metadata("design:type",
|
|
440
|
+
tslib_es6.__metadata("design:type", Number)
|
|
621
441
|
], exports.HSearch.prototype, "_activeItemId", void 0);
|
|
622
442
|
tslib_es6.__decorate([
|
|
623
443
|
decorators.state(),
|
|
624
444
|
tslib_es6.__metadata("design:type", Object)
|
|
625
445
|
], exports.HSearch.prototype, "_translations", void 0);
|
|
626
|
-
tslib_es6.__decorate([
|
|
627
|
-
decorators.state(),
|
|
628
|
-
tslib_es6.__metadata("design:type", String)
|
|
629
|
-
], exports.HSearch.prototype, "_containerRole", void 0);
|
|
630
446
|
exports.HSearch = tslib_es6.__decorate([
|
|
631
447
|
phoenix_custom_element.phoenixCustomElement(search_constants.SEARCH_COMPONENT_NAMES.search)
|
|
632
448
|
], exports.HSearch);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,qEAA6E;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js
CHANGED
|
@@ -32,11 +32,6 @@ exports.HSearchClear = class HSearchClear extends phoenix_light_lit_element.Phoe
|
|
|
32
32
|
this._searchContextSetup();
|
|
33
33
|
this.addEventListener('click', this._dispatchClearEvent);
|
|
34
34
|
}
|
|
35
|
-
updated(_changedProperties) {
|
|
36
|
-
super.updated(_changedProperties);
|
|
37
|
-
const newTabIndex = this._shouldShow ? '0' : '-1';
|
|
38
|
-
this.setAttribute('tabindex', newTabIndex);
|
|
39
|
-
}
|
|
40
35
|
async _searchContextSetup() {
|
|
41
36
|
try {
|
|
42
37
|
this._searchContextConsumer = new context_consumer_controller.ContextConsumerController(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|