@backstage/plugin-search 0.5.4 → 0.5.5

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.
@@ -1,8 +1,7 @@
1
1
  import { createApiRef, useApi, AnalyticsContext, useAnalytics, configApiRef, createRouteRef, createPlugin, createApiFactory, discoveryApiRef, identityApiRef, createRoutableExtension, createComponentExtension, useRouteRef } from '@backstage/core-plugin-api';
2
2
  import { ResponseError } from '@backstage/errors';
3
3
  import qs from 'qs';
4
- import * as React from 'react';
5
- import React__default, { createContext, useState, useCallback, useEffect, useContext, Fragment, cloneElement } from 'react';
4
+ import React, { createContext, useState, useCallback, useEffect, useContext, Fragment, cloneElement } from 'react';
6
5
  import FilterListIcon from '@material-ui/icons/FilterList';
7
6
  import { makeStyles, IconButton, Typography, Card, CardHeader, Button, Divider, CardContent, Select, MenuItem, List, ListItem, Checkbox, ListItemText, InputBase, InputAdornment, FormControl, FormLabel, FormControlLabel, InputLabel, ListItemIcon, Box, Dialog, DialogTitle, Paper, DialogContent, Grid, DialogActions, Accordion, AccordionSummary, AccordionDetails, Tabs, Tab, Chip } from '@material-ui/core';
8
7
  import useDebounce from 'react-use/lib/useDebounce';
@@ -10,11 +9,11 @@ import SearchIcon from '@material-ui/icons/Search';
10
9
  import ClearButton from '@material-ui/icons/Clear';
11
10
  import useAsync from 'react-use/lib/useAsync';
12
11
  import usePrevious from 'react-use/lib/usePrevious';
12
+ import LaunchIcon from '@material-ui/icons/Launch';
13
13
  import { makeStyles as makeStyles$1 } from '@material-ui/core/styles';
14
14
  import { Link, Progress, ResponseErrorPanel, EmptyState, Table, useQueryParamState, Page, Header, Content, SidebarSearchField } from '@backstage/core-components';
15
15
  import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos';
16
16
  import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos';
17
- import { createSvgIcon } from '@material-ui/core/utils';
18
17
  import { useOutlet, useLocation } from 'react-router';
19
18
  import InputBase$1 from '@material-ui/core/InputBase';
20
19
  import IconButton$1 from '@material-ui/core/IconButton';
@@ -62,13 +61,13 @@ const FiltersButton$1 = ({
62
61
  handleToggleFilters
63
62
  }) => {
64
63
  const classes = useStyles$b();
65
- return /* @__PURE__ */ React__default.createElement("div", {
64
+ return /* @__PURE__ */ React.createElement("div", {
66
65
  className: classes.filters
67
- }, /* @__PURE__ */ React__default.createElement(IconButton, {
66
+ }, /* @__PURE__ */ React.createElement(IconButton, {
68
67
  className: classes.icon,
69
68
  "aria-label": "settings",
70
69
  onClick: handleToggleFilters
71
- }, /* @__PURE__ */ React__default.createElement(FilterListIcon, null)), /* @__PURE__ */ React__default.createElement(Typography, {
70
+ }, /* @__PURE__ */ React.createElement(FilterListIcon, null)), /* @__PURE__ */ React.createElement(Typography, {
72
71
  variant: "h6"
73
72
  }, "Filters (", numberOfSelectedFilters ? numberOfSelectedFilters : 0, ")"));
74
73
  };
@@ -93,21 +92,21 @@ const Filters$1 = ({
93
92
  updateChecked
94
93
  }) => {
95
94
  const classes = useStyles$a();
96
- return /* @__PURE__ */ React__default.createElement(Card, {
95
+ return /* @__PURE__ */ React.createElement(Card, {
97
96
  className: classes.filters
98
- }, /* @__PURE__ */ React__default.createElement(CardHeader, {
99
- title: /* @__PURE__ */ React__default.createElement(Typography, {
97
+ }, /* @__PURE__ */ React.createElement(CardHeader, {
98
+ title: /* @__PURE__ */ React.createElement(Typography, {
100
99
  variant: "h6"
101
100
  }, "Filters"),
102
- action: /* @__PURE__ */ React__default.createElement(Button, {
101
+ action: /* @__PURE__ */ React.createElement(Button, {
103
102
  color: "primary",
104
103
  onClick: () => resetFilters()
105
104
  }, "CLEAR ALL")
106
- }), /* @__PURE__ */ React__default.createElement(Divider, null), filterOptions.kind.length === 0 && filterOptions.lifecycle.length === 0 && /* @__PURE__ */ React__default.createElement(CardContent, null, /* @__PURE__ */ React__default.createElement(Typography, {
105
+ }), /* @__PURE__ */ React.createElement(Divider, null), filterOptions.kind.length === 0 && filterOptions.lifecycle.length === 0 && /* @__PURE__ */ React.createElement(CardContent, null, /* @__PURE__ */ React.createElement(Typography, {
107
106
  variant: "subtitle2"
108
- }, "Filters cannot be applied to available results")), filterOptions.kind.length > 0 && /* @__PURE__ */ React__default.createElement(CardContent, null, /* @__PURE__ */ React__default.createElement(Typography, {
107
+ }, "Filters cannot be applied to available results")), filterOptions.kind.length > 0 && /* @__PURE__ */ React.createElement(CardContent, null, /* @__PURE__ */ React.createElement(Typography, {
109
108
  variant: "subtitle2"
110
- }, "Kind"), /* @__PURE__ */ React__default.createElement(Select, {
109
+ }, "Kind"), /* @__PURE__ */ React.createElement(Select, {
111
110
  id: "outlined-select",
112
111
  onChange: (e) => {
113
112
  var _a;
@@ -116,22 +115,22 @@ const Filters$1 = ({
116
115
  variant: "outlined",
117
116
  className: classes.dropdown,
118
117
  value: filters.selected
119
- }, filterOptions.kind.map((filter) => /* @__PURE__ */ React__default.createElement(MenuItem, {
118
+ }, filterOptions.kind.map((filter) => /* @__PURE__ */ React.createElement(MenuItem, {
120
119
  selected: filter === "",
121
120
  dense: true,
122
121
  key: filter,
123
122
  value: filter
124
- }, filter)))), filterOptions.lifecycle.length > 0 && /* @__PURE__ */ React__default.createElement(CardContent, null, /* @__PURE__ */ React__default.createElement(Typography, {
123
+ }, filter)))), filterOptions.lifecycle.length > 0 && /* @__PURE__ */ React.createElement(CardContent, null, /* @__PURE__ */ React.createElement(Typography, {
125
124
  variant: "subtitle2"
126
- }, "Lifecycle"), /* @__PURE__ */ React__default.createElement(List, {
125
+ }, "Lifecycle"), /* @__PURE__ */ React.createElement(List, {
127
126
  disablePadding: true,
128
127
  dense: true
129
- }, filterOptions.lifecycle.map((filter) => /* @__PURE__ */ React__default.createElement(ListItem, {
128
+ }, filterOptions.lifecycle.map((filter) => /* @__PURE__ */ React.createElement(ListItem, {
130
129
  key: filter,
131
130
  dense: true,
132
131
  button: true,
133
132
  onClick: () => updateChecked(filter)
134
- }, /* @__PURE__ */ React__default.createElement(Checkbox, {
133
+ }, /* @__PURE__ */ React.createElement(Checkbox, {
135
134
  edge: "start",
136
135
  disableRipple: true,
137
136
  className: classes.checkbox,
@@ -140,7 +139,7 @@ const Filters$1 = ({
140
139
  tabIndex: -1,
141
140
  value: filter,
142
141
  name: filter
143
- }), /* @__PURE__ */ React__default.createElement(ListItemText, {
142
+ }), /* @__PURE__ */ React.createElement(ListItemText, {
144
143
  id: filter,
145
144
  primary: filter
146
145
  }))))));
@@ -201,9 +200,9 @@ const SearchContextProvider = ({
201
200
  fetchNextPage: hasNextPage ? fetchNextPage : void 0,
202
201
  fetchPreviousPage: hasPreviousPage ? fetchPreviousPage : void 0
203
202
  };
204
- return /* @__PURE__ */ React__default.createElement(AnalyticsContext, {
203
+ return /* @__PURE__ */ React.createElement(AnalyticsContext, {
205
204
  attributes: { searchTypes: types.sort().join(",") }
206
- }, /* @__PURE__ */ React__default.createElement(SearchContext.Provider, {
205
+ }, /* @__PURE__ */ React.createElement(SearchContext.Provider, {
207
206
  value,
208
207
  children
209
208
  }));
@@ -224,7 +223,7 @@ const TrackSearch = ({ children }) => {
224
223
  analytics.captureEvent("search", term);
225
224
  }
226
225
  }, [analytics, term]);
227
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children);
226
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
228
227
  };
229
228
 
230
229
  const useSearchContextCheck = () => {
@@ -264,19 +263,19 @@ const SearchBarBase = ({
264
263
  onChange("");
265
264
  }, [onChange]);
266
265
  const placeholder = `Search in ${configApi.getOptionalString("app.title") || "Backstage"}`;
267
- const startAdornment = /* @__PURE__ */ React__default.createElement(InputAdornment, {
266
+ const startAdornment = /* @__PURE__ */ React.createElement(InputAdornment, {
268
267
  position: "start"
269
- }, /* @__PURE__ */ React__default.createElement(IconButton, {
268
+ }, /* @__PURE__ */ React.createElement(IconButton, {
270
269
  "aria-label": "Query",
271
270
  disabled: true
272
- }, /* @__PURE__ */ React__default.createElement(SearchIcon, null)));
273
- const endAdornment = /* @__PURE__ */ React__default.createElement(InputAdornment, {
271
+ }, /* @__PURE__ */ React.createElement(SearchIcon, null)));
272
+ const endAdornment = /* @__PURE__ */ React.createElement(InputAdornment, {
274
273
  position: "end"
275
- }, /* @__PURE__ */ React__default.createElement(IconButton, {
274
+ }, /* @__PURE__ */ React.createElement(IconButton, {
276
275
  "aria-label": "Clear",
277
276
  onClick: handleClear
278
- }, /* @__PURE__ */ React__default.createElement(ClearButton, null)));
279
- const searchBar = /* @__PURE__ */ React__default.createElement(TrackSearch, null, /* @__PURE__ */ React__default.createElement(InputBase, {
277
+ }, /* @__PURE__ */ React.createElement(ClearButton, null)));
278
+ const searchBar = /* @__PURE__ */ React.createElement(TrackSearch, null, /* @__PURE__ */ React.createElement(InputBase, {
280
279
  "data-testid": "search-bar-next",
281
280
  value,
282
281
  placeholder,
@@ -288,7 +287,7 @@ const SearchBarBase = ({
288
287
  onKeyDown: handleKeyDown,
289
288
  ...props
290
289
  }));
291
- return hasSearchContext ? searchBar : /* @__PURE__ */ React__default.createElement(SearchContextProvider, null, searchBar);
290
+ return hasSearchContext ? searchBar : /* @__PURE__ */ React.createElement(SearchContextProvider, null, searchBar);
292
291
  };
293
292
  const SearchBar$1 = ({ onChange, ...props }) => {
294
293
  const { term, setTerm } = useSearch();
@@ -299,7 +298,7 @@ const SearchBar$1 = ({ onChange, ...props }) => {
299
298
  setTerm(newValue);
300
299
  }
301
300
  };
302
- return /* @__PURE__ */ React__default.createElement(SearchBarBase, {
301
+ return /* @__PURE__ */ React.createElement(SearchBarBase, {
303
302
  value: term,
304
303
  onChange: handleChange,
305
304
  ...props
@@ -338,17 +337,17 @@ const CheckboxFilter = ({
338
337
  return items.length ? { ...others, [name]: items } : others;
339
338
  });
340
339
  };
341
- return /* @__PURE__ */ React__default.createElement(FormControl, {
340
+ return /* @__PURE__ */ React.createElement(FormControl, {
342
341
  className,
343
342
  fullWidth: true,
344
343
  "data-testid": "search-checkboxfilter-next"
345
- }, /* @__PURE__ */ React__default.createElement(FormLabel, {
344
+ }, /* @__PURE__ */ React.createElement(FormLabel, {
346
345
  className: classes.label
347
346
  }, name), values.map((value) => {
348
347
  var _a;
349
- return /* @__PURE__ */ React__default.createElement(FormControlLabel, {
348
+ return /* @__PURE__ */ React.createElement(FormControlLabel, {
350
349
  key: value,
351
- control: /* @__PURE__ */ React__default.createElement(Checkbox, {
350
+ control: /* @__PURE__ */ React.createElement(Checkbox, {
352
351
  color: "primary",
353
352
  tabIndex: -1,
354
353
  inputProps: { "aria-labelledby": value },
@@ -386,58 +385,54 @@ const SelectFilter = ({
386
385
  return value ? { ...others, [name]: value } : others;
387
386
  });
388
387
  };
389
- return /* @__PURE__ */ React__default.createElement(FormControl, {
388
+ return /* @__PURE__ */ React.createElement(FormControl, {
390
389
  className,
391
390
  variant: "filled",
392
391
  fullWidth: true,
393
392
  "data-testid": "search-selectfilter-next"
394
- }, /* @__PURE__ */ React__default.createElement(InputLabel, {
393
+ }, /* @__PURE__ */ React.createElement(InputLabel, {
395
394
  className: classes.label,
396
395
  margin: "dense"
397
- }, name), /* @__PURE__ */ React__default.createElement(Select, {
396
+ }, name), /* @__PURE__ */ React.createElement(Select, {
398
397
  variant: "outlined",
399
398
  value: filters[name] || "",
400
399
  onChange: handleChange
401
- }, /* @__PURE__ */ React__default.createElement(MenuItem, {
400
+ }, /* @__PURE__ */ React.createElement(MenuItem, {
402
401
  value: ""
403
- }, /* @__PURE__ */ React__default.createElement("em", null, "All")), values.map((value) => /* @__PURE__ */ React__default.createElement(MenuItem, {
402
+ }, /* @__PURE__ */ React.createElement("em", null, "All")), values.map((value) => /* @__PURE__ */ React.createElement(MenuItem, {
404
403
  key: value,
405
404
  value
406
405
  }, value))));
407
406
  };
408
- const SearchFilter = ({ component: Element, ...props }) => /* @__PURE__ */ React__default.createElement(Element, {
407
+ const SearchFilter = ({ component: Element, ...props }) => /* @__PURE__ */ React.createElement(Element, {
409
408
  ...props
410
409
  });
411
- SearchFilter.Checkbox = (props) => /* @__PURE__ */ React__default.createElement(SearchFilter, {
410
+ SearchFilter.Checkbox = (props) => /* @__PURE__ */ React.createElement(SearchFilter, {
412
411
  ...props,
413
412
  component: CheckboxFilter
414
413
  });
415
- SearchFilter.Select = (props) => /* @__PURE__ */ React__default.createElement(SearchFilter, {
414
+ SearchFilter.Select = (props) => /* @__PURE__ */ React.createElement(SearchFilter, {
416
415
  ...props,
417
416
  component: SelectFilter
418
417
  });
419
418
  const SearchFilterNext = SearchFilter;
420
419
 
421
- var Launch = createSvgIcon( /*#__PURE__*/React.createElement("path", {
422
- d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"
423
- }), 'Launch');
424
-
425
420
  const DefaultResultListItem$1 = ({
426
421
  result,
427
422
  icon,
428
423
  secondaryAction
429
424
  }) => {
430
- return /* @__PURE__ */ React__default.createElement(Link, {
425
+ return /* @__PURE__ */ React.createElement(Link, {
431
426
  to: result.location
432
- }, /* @__PURE__ */ React__default.createElement(ListItem, {
427
+ }, /* @__PURE__ */ React.createElement(ListItem, {
433
428
  alignItems: "center"
434
- }, icon && /* @__PURE__ */ React__default.createElement(ListItemIcon, null, icon), /* @__PURE__ */ React__default.createElement(ListItemText, {
429
+ }, icon && /* @__PURE__ */ React.createElement(ListItemIcon, null, icon), /* @__PURE__ */ React.createElement(ListItemText, {
435
430
  primaryTypographyProps: { variant: "h6" },
436
431
  primary: result.title,
437
432
  secondary: result.text
438
- }), secondaryAction && /* @__PURE__ */ React__default.createElement(Box, {
433
+ }), secondaryAction && /* @__PURE__ */ React.createElement(Box, {
439
434
  alignItems: "flex-end"
440
- }, secondaryAction)), /* @__PURE__ */ React__default.createElement(Divider, null));
435
+ }, secondaryAction)), /* @__PURE__ */ React.createElement(Divider, null));
441
436
  };
442
437
 
443
438
  const SearchResultComponent = ({ children }) => {
@@ -445,21 +440,21 @@ const SearchResultComponent = ({ children }) => {
445
440
  result: { loading, error, value }
446
441
  } = useSearch();
447
442
  if (loading) {
448
- return /* @__PURE__ */ React__default.createElement(Progress, null);
443
+ return /* @__PURE__ */ React.createElement(Progress, null);
449
444
  }
450
445
  if (error) {
451
- return /* @__PURE__ */ React__default.createElement(ResponseErrorPanel, {
446
+ return /* @__PURE__ */ React.createElement(ResponseErrorPanel, {
452
447
  title: "Error encountered while fetching search results",
453
448
  error
454
449
  });
455
450
  }
456
451
  if (!(value == null ? void 0 : value.results.length)) {
457
- return /* @__PURE__ */ React__default.createElement(EmptyState, {
452
+ return /* @__PURE__ */ React.createElement(EmptyState, {
458
453
  missing: "data",
459
454
  title: "Sorry, no results were found"
460
455
  });
461
456
  }
462
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children({ results: value.results }));
457
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, children({ results: value.results }));
463
458
  };
464
459
 
465
460
  const useStyles$8 = makeStyles((theme) => ({
@@ -474,21 +469,21 @@ const SearchResultPager = () => {
474
469
  const { fetchNextPage, fetchPreviousPage } = useSearch();
475
470
  const classes = useStyles$8();
476
471
  if (!fetchNextPage && !fetchPreviousPage) {
477
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null);
472
+ return /* @__PURE__ */ React.createElement(React.Fragment, null);
478
473
  }
479
- return /* @__PURE__ */ React__default.createElement("nav", {
474
+ return /* @__PURE__ */ React.createElement("nav", {
480
475
  "arial-label": "pagination navigation",
481
476
  className: classes.root
482
- }, /* @__PURE__ */ React__default.createElement(Button, {
477
+ }, /* @__PURE__ */ React.createElement(Button, {
483
478
  "aria-label": "previous page",
484
479
  disabled: !fetchPreviousPage,
485
480
  onClick: fetchPreviousPage,
486
- startIcon: /* @__PURE__ */ React__default.createElement(ArrowBackIosIcon, null)
487
- }, "Previous"), /* @__PURE__ */ React__default.createElement(Button, {
481
+ startIcon: /* @__PURE__ */ React.createElement(ArrowBackIosIcon, null)
482
+ }, "Previous"), /* @__PURE__ */ React.createElement(Button, {
488
483
  "aria-label": "next page",
489
484
  disabled: !fetchNextPage,
490
485
  onClick: fetchNextPage,
491
- endIcon: /* @__PURE__ */ React__default.createElement(ArrowForwardIosIcon, null)
486
+ endIcon: /* @__PURE__ */ React.createElement(ArrowForwardIosIcon, null)
492
487
  }, "Next"));
493
488
  };
494
489
 
@@ -516,54 +511,54 @@ const searchPlugin = createPlugin({
516
511
  });
517
512
  const SearchPage$1 = searchPlugin.provide(createRoutableExtension({
518
513
  name: "SearchPage",
519
- component: () => import('./index-5842ad6f.esm.js').then((m) => m.SearchPage),
514
+ component: () => import('./index-c93144ea.esm.js').then((m) => m.SearchPage),
520
515
  mountPoint: rootRouteRef
521
516
  }));
522
517
  const SearchPageNext = searchPlugin.provide(createRoutableExtension({
523
518
  name: "SearchPageNext",
524
- component: () => import('./index-5842ad6f.esm.js').then((m) => m.SearchPage),
519
+ component: () => import('./index-c93144ea.esm.js').then((m) => m.SearchPage),
525
520
  mountPoint: rootNextRouteRef
526
521
  }));
527
522
  searchPlugin.provide(createComponentExtension({
528
523
  name: "SearchBar",
529
524
  component: {
530
- lazy: () => import('./index-05b04684.esm.js').then((m) => m.SearchBar)
525
+ lazy: () => import('./index-0938232c.esm.js').then((m) => m.SearchBar)
531
526
  }
532
527
  }));
533
528
  const SearchBarNext = searchPlugin.provide(createComponentExtension({
534
529
  name: "SearchBarNext",
535
530
  component: {
536
- lazy: () => import('./index-05b04684.esm.js').then((m) => m.SearchBar)
531
+ lazy: () => import('./index-0938232c.esm.js').then((m) => m.SearchBar)
537
532
  }
538
533
  }));
539
534
  const SearchResult$1 = searchPlugin.provide(createComponentExtension({
540
535
  name: "SearchResult",
541
536
  component: {
542
- lazy: () => import('./index-53fbff6a.esm.js').then((m) => m.SearchResult)
537
+ lazy: () => import('./index-6640d668.esm.js').then((m) => m.SearchResult)
543
538
  }
544
539
  }));
545
540
  searchPlugin.provide(createComponentExtension({
546
541
  name: "SearchResultNext",
547
542
  component: {
548
- lazy: () => import('./index-53fbff6a.esm.js').then((m) => m.SearchResult)
543
+ lazy: () => import('./index-6640d668.esm.js').then((m) => m.SearchResult)
549
544
  }
550
545
  }));
551
546
  const SidebarSearchModal = searchPlugin.provide(createComponentExtension({
552
547
  name: "SidebarSearchModal",
553
548
  component: {
554
- lazy: () => import('./index-82c9eaed.esm.js').then((m) => m.SidebarSearchModal)
549
+ lazy: () => import('./index-c5ac9263.esm.js').then((m) => m.SidebarSearchModal)
555
550
  }
556
551
  }));
557
552
  const DefaultResultListItem = searchPlugin.provide(createComponentExtension({
558
553
  name: "DefaultResultListItem",
559
554
  component: {
560
- lazy: () => import('./index-da49c2d7.esm.js').then((m) => m.DefaultResultListItem)
555
+ lazy: () => import('./index-a1aff68f.esm.js').then((m) => m.DefaultResultListItem)
561
556
  }
562
557
  }));
563
558
  const HomePageSearchBar = searchPlugin.provide(createComponentExtension({
564
559
  name: "HomePageSearchBar",
565
560
  component: {
566
- lazy: () => import('./index-b090f4cf.esm.js').then((m) => m.HomePageSearchBar)
561
+ lazy: () => import('./index-e8d39ffc.esm.js').then((m) => m.HomePageSearchBar)
567
562
  }
568
563
  }));
569
564
 
@@ -590,7 +585,7 @@ const Modal = ({ open = true, toggleModal }) => {
590
585
  const handleKeyPress = () => {
591
586
  handleResultClick();
592
587
  };
593
- return /* @__PURE__ */ React__default.createElement(Dialog, {
588
+ return /* @__PURE__ */ React.createElement(Dialog, {
594
589
  classes: {
595
590
  paperFullWidth: classes.paperFullWidth
596
591
  },
@@ -599,45 +594,45 @@ const Modal = ({ open = true, toggleModal }) => {
599
594
  open,
600
595
  fullWidth: true,
601
596
  maxWidth: "lg"
602
- }, /* @__PURE__ */ React__default.createElement(DialogTitle, null, /* @__PURE__ */ React__default.createElement(Paper, {
597
+ }, /* @__PURE__ */ React.createElement(DialogTitle, null, /* @__PURE__ */ React.createElement(Paper, {
603
598
  className: classes.container
604
- }, /* @__PURE__ */ React__default.createElement(SearchBar$1, {
599
+ }, /* @__PURE__ */ React.createElement(SearchBar$1, {
605
600
  className: classes.input
606
- }))), /* @__PURE__ */ React__default.createElement(DialogContent, null, /* @__PURE__ */ React__default.createElement(Grid, {
601
+ }))), /* @__PURE__ */ React.createElement(DialogContent, null, /* @__PURE__ */ React.createElement(Grid, {
607
602
  container: true,
608
603
  direction: "row-reverse",
609
604
  justifyContent: "flex-start",
610
605
  alignItems: "center"
611
- }, /* @__PURE__ */ React__default.createElement(Grid, {
606
+ }, /* @__PURE__ */ React.createElement(Grid, {
612
607
  item: true
613
- }, /* @__PURE__ */ React__default.createElement(Link, {
608
+ }, /* @__PURE__ */ React.createElement(Link, {
614
609
  onClick: toggleModal,
615
610
  to: `${getSearchLink()}?query=${term}`
616
- }, /* @__PURE__ */ React__default.createElement("span", {
611
+ }, /* @__PURE__ */ React.createElement("span", {
617
612
  className: classes.viewResultsLink
618
- }, "View Full Results"), /* @__PURE__ */ React__default.createElement(Launch, {
613
+ }, "View Full Results"), /* @__PURE__ */ React.createElement(LaunchIcon, {
619
614
  color: "primary"
620
- })))), /* @__PURE__ */ React__default.createElement(Divider, null), /* @__PURE__ */ React__default.createElement(SearchResultComponent, null, ({ results }) => /* @__PURE__ */ React__default.createElement(List, null, results.map(({ document }) => /* @__PURE__ */ React__default.createElement("div", {
615
+ })))), /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(SearchResultComponent, null, ({ results }) => /* @__PURE__ */ React.createElement(List, null, results.map(({ document }) => /* @__PURE__ */ React.createElement("div", {
621
616
  role: "button",
622
617
  tabIndex: 0,
623
618
  key: `${document.location}-btn`,
624
619
  onClick: handleResultClick,
625
620
  onKeyPress: handleKeyPress
626
- }, /* @__PURE__ */ React__default.createElement(DefaultResultListItem$1, {
621
+ }, /* @__PURE__ */ React.createElement(DefaultResultListItem$1, {
627
622
  key: document.location,
628
623
  result: document
629
- })))))), /* @__PURE__ */ React__default.createElement(DialogActions, {
624
+ })))))), /* @__PURE__ */ React.createElement(DialogActions, {
630
625
  className: classes.dialogActionsContainer
631
- }, /* @__PURE__ */ React__default.createElement(Grid, {
626
+ }, /* @__PURE__ */ React.createElement(Grid, {
632
627
  container: true,
633
628
  direction: "row"
634
- }, /* @__PURE__ */ React__default.createElement(Grid, {
629
+ }, /* @__PURE__ */ React.createElement(Grid, {
635
630
  item: true,
636
631
  xs: 12
637
- }, /* @__PURE__ */ React__default.createElement(SearchResultPager, null)))));
632
+ }, /* @__PURE__ */ React.createElement(SearchResultPager, null)))));
638
633
  };
639
634
  const SearchModal = ({ open = true, toggleModal }) => {
640
- return /* @__PURE__ */ React__default.createElement(SearchContextProvider, null, /* @__PURE__ */ React__default.createElement(Modal, {
635
+ return /* @__PURE__ */ React.createElement(SearchContextProvider, null, /* @__PURE__ */ React.createElement(Modal, {
641
636
  open,
642
637
  toggleModal
643
638
  }));
@@ -658,24 +653,24 @@ const SearchBar = ({
658
653
  handleClearSearchBar
659
654
  }) => {
660
655
  const classes = useStyles$6();
661
- return /* @__PURE__ */ React__default.createElement(Paper, {
656
+ return /* @__PURE__ */ React.createElement(Paper, {
662
657
  component: "form",
663
658
  onSubmit: (e) => handleSearch(e),
664
659
  className: classes.root
665
- }, /* @__PURE__ */ React__default.createElement(IconButton$1, {
660
+ }, /* @__PURE__ */ React.createElement(IconButton$1, {
666
661
  disabled: true,
667
662
  type: "submit",
668
663
  "aria-label": "search"
669
- }, /* @__PURE__ */ React__default.createElement(SearchIcon, null)), /* @__PURE__ */ React__default.createElement(InputBase$1, {
664
+ }, /* @__PURE__ */ React.createElement(SearchIcon, null)), /* @__PURE__ */ React.createElement(InputBase$1, {
670
665
  className: classes.input,
671
666
  placeholder: "Search in Backstage",
672
667
  value: searchQuery,
673
668
  onChange: (e) => handleSearch(e),
674
669
  inputProps: { "aria-label": "search backstage" }
675
- }), /* @__PURE__ */ React__default.createElement(IconButton$1, {
670
+ }), /* @__PURE__ */ React.createElement(IconButton$1, {
676
671
  "aria-label": "search",
677
672
  onClick: () => handleClearSearchBar()
678
- }, /* @__PURE__ */ React__default.createElement(ClearButton, null)));
673
+ }, /* @__PURE__ */ React.createElement(ClearButton, null)));
679
674
  };
680
675
 
681
676
  const useStyles$5 = makeStyles((theme) => ({
@@ -692,13 +687,13 @@ const FiltersButton = ({
692
687
  handleToggleFilters
693
688
  }) => {
694
689
  const classes = useStyles$5();
695
- return /* @__PURE__ */ React__default.createElement("div", {
690
+ return /* @__PURE__ */ React.createElement("div", {
696
691
  className: classes.filters
697
- }, /* @__PURE__ */ React__default.createElement(IconButton, {
692
+ }, /* @__PURE__ */ React.createElement(IconButton, {
698
693
  className: classes.icon,
699
694
  "aria-label": "settings",
700
695
  onClick: handleToggleFilters
701
- }, /* @__PURE__ */ React__default.createElement(FilterListIcon, null)), /* @__PURE__ */ React__default.createElement(Typography, {
696
+ }, /* @__PURE__ */ React.createElement(FilterListIcon, null)), /* @__PURE__ */ React.createElement(Typography, {
702
697
  variant: "h6"
703
698
  }, "Filters (", numberOfSelectedFilters ? numberOfSelectedFilters : 0, ")"));
704
699
  };
@@ -723,21 +718,21 @@ const Filters = ({
723
718
  updateChecked
724
719
  }) => {
725
720
  const classes = useStyles$4();
726
- return /* @__PURE__ */ React__default.createElement(Card, {
721
+ return /* @__PURE__ */ React.createElement(Card, {
727
722
  className: classes.filters
728
- }, /* @__PURE__ */ React__default.createElement(CardHeader, {
729
- title: /* @__PURE__ */ React__default.createElement(Typography, {
723
+ }, /* @__PURE__ */ React.createElement(CardHeader, {
724
+ title: /* @__PURE__ */ React.createElement(Typography, {
730
725
  variant: "h6"
731
726
  }, "Filters"),
732
- action: /* @__PURE__ */ React__default.createElement(Button, {
727
+ action: /* @__PURE__ */ React.createElement(Button, {
733
728
  color: "primary",
734
729
  onClick: () => resetFilters()
735
730
  }, "CLEAR ALL")
736
- }), /* @__PURE__ */ React__default.createElement(Divider, null), filterOptions.kind.length === 0 && filterOptions.lifecycle.length === 0 && /* @__PURE__ */ React__default.createElement(CardContent, null, /* @__PURE__ */ React__default.createElement(Typography, {
731
+ }), /* @__PURE__ */ React.createElement(Divider, null), filterOptions.kind.length === 0 && filterOptions.lifecycle.length === 0 && /* @__PURE__ */ React.createElement(CardContent, null, /* @__PURE__ */ React.createElement(Typography, {
737
732
  variant: "subtitle2"
738
- }, "Filters cannot be applied to available results")), filterOptions.kind.length > 0 && /* @__PURE__ */ React__default.createElement(CardContent, null, /* @__PURE__ */ React__default.createElement(Typography, {
733
+ }, "Filters cannot be applied to available results")), filterOptions.kind.length > 0 && /* @__PURE__ */ React.createElement(CardContent, null, /* @__PURE__ */ React.createElement(Typography, {
739
734
  variant: "subtitle2"
740
- }, "Kind"), /* @__PURE__ */ React__default.createElement(Select, {
735
+ }, "Kind"), /* @__PURE__ */ React.createElement(Select, {
741
736
  id: "outlined-select",
742
737
  onChange: (e) => {
743
738
  var _a;
@@ -746,22 +741,22 @@ const Filters = ({
746
741
  variant: "outlined",
747
742
  className: classes.dropdown,
748
743
  value: filters.selected
749
- }, filterOptions.kind.map((filter) => /* @__PURE__ */ React__default.createElement(MenuItem, {
744
+ }, filterOptions.kind.map((filter) => /* @__PURE__ */ React.createElement(MenuItem, {
750
745
  selected: filter === "",
751
746
  dense: true,
752
747
  key: filter,
753
748
  value: filter
754
- }, filter)))), filterOptions.lifecycle.length > 0 && /* @__PURE__ */ React__default.createElement(CardContent, null, /* @__PURE__ */ React__default.createElement(Typography, {
749
+ }, filter)))), filterOptions.lifecycle.length > 0 && /* @__PURE__ */ React.createElement(CardContent, null, /* @__PURE__ */ React.createElement(Typography, {
755
750
  variant: "subtitle2"
756
- }, "Lifecycle"), /* @__PURE__ */ React__default.createElement(List, {
751
+ }, "Lifecycle"), /* @__PURE__ */ React.createElement(List, {
757
752
  disablePadding: true,
758
753
  dense: true
759
- }, filterOptions.lifecycle.map((filter) => /* @__PURE__ */ React__default.createElement(ListItem, {
754
+ }, filterOptions.lifecycle.map((filter) => /* @__PURE__ */ React.createElement(ListItem, {
760
755
  key: filter,
761
756
  dense: true,
762
757
  button: true,
763
758
  onClick: () => updateChecked(filter)
764
- }, /* @__PURE__ */ React__default.createElement(Checkbox, {
759
+ }, /* @__PURE__ */ React.createElement(Checkbox, {
765
760
  edge: "start",
766
761
  disableRipple: true,
767
762
  className: classes.checkbox,
@@ -770,7 +765,7 @@ const Filters = ({
770
765
  tabIndex: -1,
771
766
  value: filter,
772
767
  name: filter
773
- }), /* @__PURE__ */ React__default.createElement(ListItemText, {
768
+ }), /* @__PURE__ */ React.createElement(ListItemText, {
774
769
  id: filter,
775
770
  primary: filter
776
771
  }))))));
@@ -797,7 +792,7 @@ const columns = [
797
792
  title: "Name",
798
793
  field: "name",
799
794
  highlight: true,
800
- render: (result) => /* @__PURE__ */ React__default.createElement(Link, {
795
+ render: (result) => /* @__PURE__ */ React.createElement(Link, {
801
796
  to: result.url || ""
802
797
  }, result.name)
803
798
  },
@@ -825,22 +820,22 @@ const TableHeader = ({
825
820
  handleToggleFilters
826
821
  }) => {
827
822
  const classes = useStyles$3();
828
- return /* @__PURE__ */ React__default.createElement("div", {
823
+ return /* @__PURE__ */ React.createElement("div", {
829
824
  className: classes.tableHeader
830
- }, /* @__PURE__ */ React__default.createElement(FiltersButton, {
825
+ }, /* @__PURE__ */ React.createElement(FiltersButton, {
831
826
  numberOfSelectedFilters,
832
827
  handleToggleFilters
833
- }), /* @__PURE__ */ React__default.createElement(Divider, {
828
+ }), /* @__PURE__ */ React.createElement(Divider, {
834
829
  className: classes.divider,
835
830
  orientation: "vertical"
836
- }), /* @__PURE__ */ React__default.createElement(Grid, {
831
+ }), /* @__PURE__ */ React.createElement(Grid, {
837
832
  item: true,
838
833
  xs: 12
839
- }, searchQuery ? /* @__PURE__ */ React__default.createElement(Typography, {
834
+ }, searchQuery ? /* @__PURE__ */ React.createElement(Typography, {
840
835
  variant: "h6"
841
- }, `${numberOfResults} `, numberOfResults > 1 ? `results for ` : `result for `, /* @__PURE__ */ React__default.createElement("span", {
836
+ }, `${numberOfResults} `, numberOfResults > 1 ? `results for ` : `result for `, /* @__PURE__ */ React.createElement("span", {
842
837
  className: classes.searchQuery
843
- }, '"', searchQuery, '"'), " ") : /* @__PURE__ */ React__default.createElement(Typography, {
838
+ }, '"', searchQuery, '"'), " ") : /* @__PURE__ */ React.createElement(Typography, {
844
839
  variant: "h6"
845
840
  }, `${numberOfResults} results`)));
846
841
  };
@@ -889,15 +884,15 @@ const SearchResult = ({ searchQuery }) => {
889
884
  }
890
885
  }, [selectedFilters, searchQuery, results]);
891
886
  if (loading) {
892
- return /* @__PURE__ */ React__default.createElement(Progress, null);
887
+ return /* @__PURE__ */ React.createElement(Progress, null);
893
888
  }
894
889
  if (error) {
895
- return /* @__PURE__ */ React__default.createElement(Alert, {
890
+ return /* @__PURE__ */ React.createElement(Alert, {
896
891
  severity: "error"
897
892
  }, "Error encountered while fetching search results. ", error.toString());
898
893
  }
899
894
  if (!results || results.length === 0) {
900
- return /* @__PURE__ */ React__default.createElement(EmptyState, {
895
+ return /* @__PURE__ */ React.createElement(EmptyState, {
901
896
  missing: "data",
902
897
  title: "Sorry, no results were found"
903
898
  });
@@ -939,25 +934,25 @@ const SearchResult = ({ searchQuery }) => {
939
934
  kind: [],
940
935
  lifecycle: []
941
936
  });
942
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Grid, {
937
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Grid, {
943
938
  container: true
944
- }, showFilters && /* @__PURE__ */ React__default.createElement(Grid, {
939
+ }, showFilters && /* @__PURE__ */ React.createElement(Grid, {
945
940
  item: true,
946
941
  xs: 3
947
- }, /* @__PURE__ */ React__default.createElement(Filters, {
942
+ }, /* @__PURE__ */ React.createElement(Filters, {
948
943
  filters: selectedFilters,
949
944
  filterOptions,
950
945
  resetFilters,
951
946
  updateSelected,
952
947
  updateChecked
953
- })), /* @__PURE__ */ React__default.createElement(Grid, {
948
+ })), /* @__PURE__ */ React.createElement(Grid, {
954
949
  item: true,
955
950
  xs: showFilters ? 9 : 12
956
- }, /* @__PURE__ */ React__default.createElement(Table, {
951
+ }, /* @__PURE__ */ React.createElement(Table, {
957
952
  options: { paging: true, pageSize: 20, search: false },
958
953
  data: filteredResults,
959
954
  columns,
960
- title: /* @__PURE__ */ React__default.createElement(TableHeader, {
955
+ title: /* @__PURE__ */ React.createElement(TableHeader, {
961
956
  searchQuery,
962
957
  numberOfResults: filteredResults.length,
963
958
  numberOfSelectedFilters: (selectedFilters.selected !== "" ? 1 : 0) + selectedFilters.checked.length,
@@ -980,24 +975,24 @@ const LegacySearchPage = () => {
980
975
  const handleClearSearchBar = () => {
981
976
  setSearchQuery("");
982
977
  };
983
- return /* @__PURE__ */ React__default.createElement(Page, {
978
+ return /* @__PURE__ */ React.createElement(Page, {
984
979
  themeId: "home"
985
- }, /* @__PURE__ */ React__default.createElement(Header, {
980
+ }, /* @__PURE__ */ React.createElement(Header, {
986
981
  title: "Search"
987
- }), /* @__PURE__ */ React__default.createElement(Content, null, /* @__PURE__ */ React__default.createElement(Grid, {
982
+ }), /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(Grid, {
988
983
  container: true,
989
984
  direction: "row"
990
- }, /* @__PURE__ */ React__default.createElement(Grid, {
985
+ }, /* @__PURE__ */ React.createElement(Grid, {
991
986
  item: true,
992
987
  xs: 12
993
- }, /* @__PURE__ */ React__default.createElement(SearchBar, {
988
+ }, /* @__PURE__ */ React.createElement(SearchBar, {
994
989
  handleSearch,
995
990
  handleClearSearchBar,
996
991
  searchQuery
997
- })), /* @__PURE__ */ React__default.createElement(Grid, {
992
+ })), /* @__PURE__ */ React.createElement(Grid, {
998
993
  item: true,
999
994
  xs: 12
1000
- }, /* @__PURE__ */ React__default.createElement(SearchResult, {
995
+ }, /* @__PURE__ */ React.createElement(SearchResult, {
1001
996
  searchQuery: (queryString != null ? queryString : "").toLocaleLowerCase("en-US")
1002
997
  })))));
1003
998
  };
@@ -1047,7 +1042,7 @@ const UrlUpdater = () => {
1047
1042
  };
1048
1043
  const SearchPage = () => {
1049
1044
  const outlet = useOutlet();
1050
- return /* @__PURE__ */ React__default.createElement(SearchContextProvider, null, /* @__PURE__ */ React__default.createElement(UrlUpdater, null), outlet || /* @__PURE__ */ React__default.createElement(LegacySearchPage, null));
1045
+ return /* @__PURE__ */ React.createElement(SearchContextProvider, null, /* @__PURE__ */ React.createElement(UrlUpdater, null), outlet || /* @__PURE__ */ React.createElement(LegacySearchPage, null));
1051
1046
  };
1052
1047
 
1053
1048
  const useStyles$2 = makeStyles((theme) => ({
@@ -1108,48 +1103,48 @@ const SearchTypeAccordion = (props) => {
1108
1103
  {
1109
1104
  value: "",
1110
1105
  name: "All",
1111
- icon: /* @__PURE__ */ React__default.createElement(AllIcon, null)
1106
+ icon: /* @__PURE__ */ React.createElement(AllIcon, null)
1112
1107
  },
1113
1108
  ...givenTypes
1114
1109
  ];
1115
1110
  const selected = types[0] || "";
1116
- return /* @__PURE__ */ React__default.createElement(Card, {
1111
+ return /* @__PURE__ */ React.createElement(Card, {
1117
1112
  className: classes.card
1118
- }, /* @__PURE__ */ React__default.createElement(CardHeader, {
1113
+ }, /* @__PURE__ */ React.createElement(CardHeader, {
1119
1114
  title: name,
1120
1115
  titleTypographyProps: { variant: "overline" }
1121
- }), /* @__PURE__ */ React__default.createElement(CardContent, {
1116
+ }), /* @__PURE__ */ React.createElement(CardContent, {
1122
1117
  className: classes.cardContent
1123
- }, /* @__PURE__ */ React__default.createElement(Accordion, {
1118
+ }, /* @__PURE__ */ React.createElement(Accordion, {
1124
1119
  className: classes.accordion,
1125
1120
  expanded,
1126
1121
  onChange: toggleExpanded
1127
- }, /* @__PURE__ */ React__default.createElement(AccordionSummary, {
1122
+ }, /* @__PURE__ */ React.createElement(AccordionSummary, {
1128
1123
  classes: {
1129
1124
  root: classes.accordionSummary,
1130
1125
  content: classes.accordionSummaryContent
1131
1126
  },
1132
- expandIcon: /* @__PURE__ */ React__default.createElement(ExpandMoreIcon, {
1127
+ expandIcon: /* @__PURE__ */ React.createElement(ExpandMoreIcon, {
1133
1128
  className: classes.icon
1134
1129
  }),
1135
1130
  IconButtonProps: { size: "small" }
1136
- }, expanded ? "Collapse" : definedTypes.filter((t) => t.value === selected)[0].name), /* @__PURE__ */ React__default.createElement(AccordionDetails, {
1131
+ }, expanded ? "Collapse" : definedTypes.filter((t) => t.value === selected)[0].name), /* @__PURE__ */ React.createElement(AccordionDetails, {
1137
1132
  classes: { root: classes.accordionDetails }
1138
- }, /* @__PURE__ */ React__default.createElement(List, {
1133
+ }, /* @__PURE__ */ React.createElement(List, {
1139
1134
  className: classes.list,
1140
1135
  component: "nav",
1141
1136
  "aria-label": "filter by type",
1142
1137
  disablePadding: true,
1143
1138
  dense: true
1144
- }, definedTypes.map((type) => /* @__PURE__ */ React__default.createElement(Fragment, {
1139
+ }, definedTypes.map((type) => /* @__PURE__ */ React.createElement(Fragment, {
1145
1140
  key: type.value
1146
- }, /* @__PURE__ */ React__default.createElement(Divider, null), /* @__PURE__ */ React__default.createElement(ListItem, {
1141
+ }, /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(ListItem, {
1147
1142
  selected: types[0] === type.value || types.length === 0 && type.value === "",
1148
1143
  onClick: handleClick(type.value),
1149
1144
  button: true
1150
- }, /* @__PURE__ */ React__default.createElement(ListItemIcon, null, cloneElement(type.icon, {
1145
+ }, /* @__PURE__ */ React.createElement(ListItemIcon, null, cloneElement(type.icon, {
1151
1146
  className: classes.listItemIcon
1152
- })), /* @__PURE__ */ React__default.createElement(ListItemText, {
1147
+ })), /* @__PURE__ */ React.createElement(ListItemText, {
1153
1148
  primary: type.name
1154
1149
  })))))))));
1155
1150
  };
@@ -1187,12 +1182,12 @@ const SearchTypeTabs = (props) => {
1187
1182
  },
1188
1183
  ...givenTypes
1189
1184
  ];
1190
- return /* @__PURE__ */ React__default.createElement(Tabs, {
1185
+ return /* @__PURE__ */ React.createElement(Tabs, {
1191
1186
  className: classes.tabs,
1192
1187
  indicatorColor: "primary",
1193
1188
  value: types.length === 0 ? "" : types[0],
1194
1189
  onChange: changeTab
1195
- }, definedTypes.map((type) => /* @__PURE__ */ React__default.createElement(Tab, {
1190
+ }, definedTypes.map((type) => /* @__PURE__ */ React.createElement(Tab, {
1196
1191
  className: classes.tab,
1197
1192
  disableRipple: true,
1198
1193
  label: type.name,
@@ -1230,44 +1225,44 @@ const SearchType = (props) => {
1230
1225
  const value = e.target.value;
1231
1226
  setTypes(value);
1232
1227
  };
1233
- return /* @__PURE__ */ React__default.createElement(FormControl, {
1228
+ return /* @__PURE__ */ React.createElement(FormControl, {
1234
1229
  className,
1235
1230
  variant: "filled",
1236
1231
  fullWidth: true,
1237
1232
  "data-testid": "search-typefilter-next"
1238
- }, /* @__PURE__ */ React__default.createElement(InputLabel, {
1233
+ }, /* @__PURE__ */ React.createElement(InputLabel, {
1239
1234
  className: classes.label,
1240
1235
  margin: "dense"
1241
- }, name), /* @__PURE__ */ React__default.createElement(Select, {
1236
+ }, name), /* @__PURE__ */ React.createElement(Select, {
1242
1237
  multiple: true,
1243
1238
  variant: "outlined",
1244
1239
  value: types,
1245
1240
  onChange: handleChange,
1246
1241
  placeholder: "All Results",
1247
- renderValue: (selected) => /* @__PURE__ */ React__default.createElement("div", {
1242
+ renderValue: (selected) => /* @__PURE__ */ React.createElement("div", {
1248
1243
  className: classes.chips
1249
- }, selected.map((value) => /* @__PURE__ */ React__default.createElement(Chip, {
1244
+ }, selected.map((value) => /* @__PURE__ */ React.createElement(Chip, {
1250
1245
  key: value,
1251
1246
  label: value,
1252
1247
  className: classes.chip,
1253
1248
  size: "small"
1254
1249
  })))
1255
- }, values.map((value) => /* @__PURE__ */ React__default.createElement(MenuItem, {
1250
+ }, values.map((value) => /* @__PURE__ */ React.createElement(MenuItem, {
1256
1251
  key: value,
1257
1252
  value
1258
- }, /* @__PURE__ */ React__default.createElement(Checkbox, {
1253
+ }, /* @__PURE__ */ React.createElement(Checkbox, {
1259
1254
  checked: types.indexOf(value) > -1
1260
- }), /* @__PURE__ */ React__default.createElement(ListItemText, {
1255
+ }), /* @__PURE__ */ React.createElement(ListItemText, {
1261
1256
  primary: value
1262
1257
  })))));
1263
1258
  };
1264
1259
  SearchType.Accordion = (props) => {
1265
- return /* @__PURE__ */ React__default.createElement(SearchTypeAccordion, {
1260
+ return /* @__PURE__ */ React.createElement(SearchTypeAccordion, {
1266
1261
  ...props
1267
1262
  });
1268
1263
  };
1269
1264
  SearchType.Tabs = (props) => {
1270
- return /* @__PURE__ */ React__default.createElement(SearchTypeTabs, {
1265
+ return /* @__PURE__ */ React.createElement(SearchTypeTabs, {
1271
1266
  ...props
1272
1267
  });
1273
1268
  };
@@ -1279,7 +1274,7 @@ const SidebarSearch = (props) => {
1279
1274
  const queryString = qs.stringify({ query }, { addQueryPrefix: true });
1280
1275
  navigate(`${searchRoute()}${queryString}`);
1281
1276
  }, [navigate, searchRoute]);
1282
- return /* @__PURE__ */ React__default.createElement(SidebarSearchField, {
1277
+ return /* @__PURE__ */ React.createElement(SidebarSearchField, {
1283
1278
  icon: props.icon,
1284
1279
  onSearch: handleSearch,
1285
1280
  to: "/search"
@@ -1287,4 +1282,4 @@ const SidebarSearch = (props) => {
1287
1282
  };
1288
1283
 
1289
1284
  export { DefaultResultListItem$1 as D, Filters$1 as F, HomePageSearchBar as H, SearchPage as S, SearchBar$1 as a, SearchBarBase as b, SearchResultComponent as c, SearchModal as d, FiltersButton$1 as e, SearchContextProvider as f, SearchFilter as g, SearchFilterNext as h, SearchResultPager as i, SearchType as j, SidebarSearch as k, DefaultResultListItem as l, SearchBarNext as m, SearchPage$1 as n, SearchPageNext as o, searchPlugin as p, SearchResult$1 as q, rootRouteRef as r, searchApiRef as s, SidebarSearchModal as t, useSearch as u };
1290
- //# sourceMappingURL=index-9ed6d72a.esm.js.map
1285
+ //# sourceMappingURL=index-8bb5f525.esm.js.map