@infinilabs/discover 0.0.10 → 0.0.11

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 (25) hide show
  1. package/dist/{common-DdqCJH2k.js → common-6ueRhcZj.js} +6 -25
  2. package/dist/{common-UQWB-U1Y.cjs → common-CelpNJ_P.cjs} +1 -1
  3. package/dist/{components-BlrfeVrP.js → components-B5oz0qEP.js} +99 -88
  4. package/dist/{components-Dc5fqDVz.cjs → components-BNkPixQf.cjs} +11 -11
  5. package/dist/{filter_label-CZsqde0V.cjs → filter_label-306D4xEc.cjs} +1 -1
  6. package/dist/{filter_label-RRNeRMU_.js → filter_label-DALDJinr.js} +2 -2
  7. package/dist/{filter_operators-CDDjlPlY.cjs → filter_operators-B5A15sKd.cjs} +1 -1
  8. package/dist/{filter_operators-Bmd98ibg.js → filter_operators-DuazgKuH.js} +1 -1
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.js +3 -3
  11. package/dist/{public-BGDT-6rG.js → public-BaKflCPD.js} +4 -4
  12. package/dist/{public-Dh7WhKNc.cjs → public-DjY6WiHp.cjs} +2 -2
  13. package/dist/query_bar_top_row-CV0kPChU.cjs +1 -0
  14. package/dist/{query_bar_top_row-D9_jfN4c.cjs → query_bar_top_row-DO4GCOmg.cjs} +1 -1
  15. package/dist/{query_bar_top_row-CrUVoXjZ.js → query_bar_top_row-DeMRmbAY.js} +2 -2
  16. package/dist/{query_bar_top_row-BG7wbH01.js → query_bar_top_row-Dvzwn66c.js} +5 -5
  17. package/dist/{query_string_input-C0kvb7DP.js → query_string_input-BXzxHlzv.js} +3 -3
  18. package/dist/{query_string_input-C5mPxmmy.js → query_string_input-BaxQWru0.js} +1 -1
  19. package/dist/query_string_input-DMTiuoIc.cjs +1 -0
  20. package/dist/{query_string_input-BqbKShcL.cjs → query_string_input-GgsObT5K.cjs} +1 -1
  21. package/dist/{search_bar-CmoMPhTc.cjs → search_bar-B289tHqc.cjs} +1 -1
  22. package/dist/{search_bar-B5MxDsdy.js → search_bar-ln1L6itL.js} +6 -6
  23. package/package.json +1 -1
  24. package/dist/query_bar_top_row-l6GlgbBY.cjs +0 -1
  25. package/dist/query_string_input-DbqRnRky.cjs +0 -1
@@ -1,10 +1,10 @@
1
1
  import { o as __toESM, r as __export, t as __commonJSMin } from "./chunk-D-4zIDrl.js";
2
- import { C as BehaviorSubject, E as Subscription, T as operate, _ as onRedirectNoIndexPattern, b as FilterManager, d as baseFormattersPublic, f as getTimezone, g as onUnsupportedTimePattern, h as IndexPatternsApiClient, l as generateFilters, m as SavedObjectsClientPublicToCommon, n as search, p as deserializeFieldFormat, u as createSearchBar, v as TimeHistory, w as createOperatorSubscriber, x as AutocompleteService, y as Timefilter } from "./public-BGDT-6rG.js";
2
+ import { C as BehaviorSubject, E as Subscription, T as operate, _ as onRedirectNoIndexPattern, b as FilterManager, d as baseFormattersPublic, f as getTimezone, g as onUnsupportedTimePattern, h as IndexPatternsApiClient, l as generateFilters, m as SavedObjectsClientPublicToCommon, n as search, p as deserializeFieldFormat, u as createSearchBar, v as TimeHistory, w as createOperatorSubscriber, x as AutocompleteService, y as Timefilter } from "./public-BaKflCPD.js";
3
3
  import { a as createHashHistory, c as require_object_assign, d as FieldIcon, i as setIndexPatterns$1, l as require_url, o as _extends, t as getIndexPatterns, u as FieldButton } from "./services-C8UxrSbr.js";
4
4
  import { t as require_classnames } from "./classnames-BCXlvRQ0.js";
5
5
  import { t as require_lodash } from "./lodash-Gv_ptthU.js";
6
6
  import { n as createGetterSetter } from "./common-1_7zA8Zc.js";
7
- import { C as intervalOptions$1, K as FilterStateStore, P as FieldFormatsRegistry, S as TimeBuckets, bt as init_moment, k as IndexPatternsService, xt as moment_default, yt as require_moment_timezone, z as buildEsQuery } from "./common-DdqCJH2k.js";
7
+ import { C as intervalOptions$1, K as FilterStateStore, P as FieldFormatsRegistry, S as TimeBuckets, bt as init_moment, k as IndexPatternsService, xt as moment_default, yt as require_moment_timezone, z as buildEsQuery } from "./common-6ueRhcZj.js";
8
8
  import { $ as DEFAULT_FONT_FAMILY, $a as IEnvironmentService, $c as isLowerAsciiLetter, $i as listHighlightForeground, $l as illegalArgument, $n as mapObservableArrayCached, $o as registerEditorCommand, $r as LineTokens, $s as getDomNodePagePosition, $t as FindInput, A as observableCodeEditor, Aa as editorWarningBorder, Ac as disposableTimeout, Ai as renderLabelWithIcons, Al as URI, An as ActionBar, Ao as LRUCache, Ar as WORKSPACE_EXTENSION, As as ICodeEditorService, At as IStandaloneThemeService, Au as isObject, B as diffDeleteDecorationEmpty, Ba as foreground, Bc as commonSuffixLength, Bi as Widget, Bl as PauseableEmitter, Bn as IStorageService, Bo as ILanguageService, Br as EditOperation, Bs as ModifierKeyEmitter, Bt as HighlightedLabel, Bu as groupBy, C as EditorState, Ca as editorInlayHintForeground, Cc as AsyncIterableObject, Ci as fuzzyScoreGracefulAggressive, Cl as TokenizationRegistry, Cn as IMarkerDecorationsService, Co as UnicodeTextModelHighlighter, Cr as GoToLineNLS, Cs as ThemeIcon, Ct as RenderLineInput, Cu as deepClone, D as bindContextKey, Da as editorInlayHintTypeForeground, Dc as TimeoutTimer, Di as matchesWords, Dl as Selection, Dn as IMarkerService, Do as OverviewRulerLane, Dr as QuickOutlineNLS, Ds as toAction, Dt as AccessibilitySignal, Du as isDefined, E as DiffEditorWidget, Ea as editorInlayHintTypeBackground, Ec as RunOnceScheduler, Ei as matchesSubString, El as Codicon, En as IMarkerData, Eo as InjectedTextCursorStops, Er as QuickHelpNLS, Es as SubmenuAction, Et as registerEditorFeature, Eu as assertType, F as isHotReloadEnabled, Fa as overviewRulerSelectionHighlightForeground, Fc as StandardKeyboardEvent, Fi as HoverWidget, Fl as CancellationToken, Fn as defaultCountBadgeStyles, Fo as ILanguageConfigurationService, Fr as TernarySearchTree, Fs as PixelRatio, Ft as registerIcon, Fu as binarySearch, G as DisposableCancellationTokenSource, Ga as transparent, Gc as escapeRegExpCharacters, Gi as IContextMenuService, Gl as RefCountedDisposable, Gn as getBaseLayerHoverDelegate, Go as createTrustedTypesPolicy, Gr as status, Gs as append, Gt as WorkbenchTreeElementCanExpand, Gu as reverseOrder, H as diffLineDeleteDecorationBackgroundWithIndicator, Ha as asCssVariable, Hc as compareIgnoreCase, Hi as Gesture, Hl as Disposable, Hn as isLocalizedString, Ho as StringBuilder, Hr as IBulkEditService, Hs as addDisposableListener, Ht as WorkbenchAsyncDataTree, Hu as isNonEmptyArray, I as IDiffProviderFactoryService, Ia as widgetBorder, Ic as KeyCodeChord, Ii as KeyDownAction, Il as CancellationTokenSource, In as defaultInputBoxStyles, Io as PLAINTEXT_LANGUAGE_ID, Ir as IEditorProgressService, Is as $, It as widgetClose, Iu as coalesce, J as StableEditorScrollState, Ja as ISemanticTokensStylingService, Jc as getLeadingWhitespace, Ji as WorkbenchHoverDelegate, Jl as isDisposable, Jn as DataTransfers, Jo as EditorCommand, Jr as MarkdownRenderer, Js as createStyleSheet2, Jt as IsWindowsContext, K as appendRemoveOnDispose, Ka as score, Kc as firstNonWhitespaceIndex, Ki as IContextViewService, Kl as combinedDisposable, Kn as createInstantHoverDelegate, Ko as EditorAction, Kr as CONTEXT_ACCESSIBILITY_MODE_ENABLED, Ks as clearNode, Kt as InputFocusedContext, L as diffAddDecoration, La as widgetShadow, Lc as isFirefox, Li as getHoverAccessibleViewHint, Ll as cancelOnDispose, Ln as defaultListStyles, Lo as Extensions$1, Lr as IProgressService, Ls as Dimension, Lt as KeybindingLabel, Lu as compareBy, M as reactToChangeWithStore, Ma as editorWidgetBackground, Mc as raceCancellation, Mi as IOpenerService, Ml as dirname$1, Mn as TextOnlyMenuEntryActionViewItem, Mo as SetMap, Mr as isSingleFolderWorkspaceIdentifier, Ms as createDecorator, Mt as HC_LIGHT_THEME_NAME, Mu as isUndefined, N as WorkbenchToolBar, Na as editorWidgetBorder, Nc as timeout, Ni as ClickAction, Nl as sep, Nn as createActionViewItem, No as CharacterSet, Nr as isStandaloneEditorWorkspace, Ns as EditorZoom, Nt as VS_DARK_THEME_NAME, Nu as Permutation, O as observableConfigValue, Oa as editorSelectionBackground, Oc as createCancelableAsyncIterable, Oi as or, Ol as Range, On as MarkerSeverity, Oo as shouldSynchronizeModel, Or as ToggleHighContrastNLS, Os as ITextModelService, Ot as IAccessibilitySignalService, Ou as isFunction, P as readHotReloadableExport, Pa as overviewRulerFindMatchForeground, Pc as StandardMouseEvent, Pi as HoverAction, Pl as KeyChord, Pn as createAndFillInActionBarActions, Po as LcsDiff, Pr as toWorkspaceIdentifier, Ps as applyFontInfo, Pt as VS_LIGHT_THEME_NAME, Pu as asArray, Q as isModelDecorationVisible, Qa as ILanguageFeatureDebounceService, Qc as isLowSurrogate, Qi as listFocusHighlightForeground, Ql as CancellationError, Qn as derivedObservableWithCache, Qo as registerEditorAction, Qr as nullTokenizeEncoded, Qs as getComputedStyle, Qt as Sash, R as diffAddDecorationEmpty, Ra as activeContrastBorder, Rc as InvisibleCharacters, Ri as DomScrollableElement, Rl as Emitter, Rn as defaultToggleStyles, Ro as Mimes, Rr as Progress$1, Rs as EventHelper, Rt as unthemedKeybindingLabelOptions, Ru as distinct, S as isDiffEditor, Sa as editorInlayHintBackground, Sc as matchesSomeScheme, Si as fuzzyScore, Sl as SymbolKinds, Sn as CursorColumns, So as mapFindFirst, Sr as IWorkspaceTrustManagementService, Ss as ICommandService, St as TabFocus, Su as localize2, T as TextModelCancellationTokenSource, Ta as editorInlayHintParameterForeground, Tc as Delayer, Ti as matchesPrefix, Tl as isLocationLink, Tn as overviewRulerRangeHighlight, To as GlyphMarginLane, Tr as QuickCommandNLS, Ts as Separator, Tt as LineDecoration, Tu as assertIsDefined, U as diffWholeLineAddDecoration, Ua as oneOf, Uc as containsRTL, Ui as GlobalPointerMoveMonitor, Ul as DisposableStore, Un as ActionViewItem, Uo as VSBuffer, Ur as ResourceTextEdit, Us as addStandardDisposableGenericMouseDownListener, Ut as WorkbenchListFocusContextKey, Uu as numberComparator, V as diffLineAddDecorationBackgroundWithIndicator, Va as iconForeground, Vc as compare, Vi as EventType, Vl as StopWatch, Vn as WillSaveStateReason, Vo as IConfigurationService, Vr as editorConfigurationBaseNode, Vs as WindowIdleValue, Vt as IListService, Vu as isFalsyOrEmpty, W as diffWholeLineDeleteDecoration, Wa as registerColor, Wc as containsUppercaseCharacter, Wi as IKeybindingService, Wl as MutableDisposable, Wn as List, Wo as IndentAction, Wr as alert, Ws as addStandardDisposableListener, Wt as WorkbenchTreeElementCanCollapse, Wu as quickSelect, X as isModelDecorationInComment, Xa as countEOL, Xc as isFalsyOrWhitespace, Xi as quickInputListFocusForeground, Xl as createSingleCallFunction, Xn as waitForState, Xo as MultiCommand, Xr as NullState, Xs as getActiveElement, Xt as SplitView, Y as CodeEditorWidget, Ya as toMultilineTokens2, Yc as isBasicASCII, Yi as quickInputListFocusBackground, Yl as toDisposable, Yn as ObservablePromise, Yo as EditorExtensionsRegistry, Yr as openLinkFromMarkdown, Ys as getActiveDocument, Yt as Sizing, Z as isModelDecorationInString, Za as TokenMetadata, Zc as isHighSurrogate, Zi as quickInputListFocusIconForeground, Zl as BugIndicatingError, Zn as constObservable, Zo as MultiEditorAction, Zr as nullTokenize, Zs as getClientArea, Zt as OrthogonalEdge, _ as formatDocumentWithSelectedProvider, _a as editorForeground, _c as svgElem, _i as stripIcons, _l as InlineEditTriggerKind, _n as DenseKeyProvider, _o as TextLength, _r as transaction, _s as ContextKeyEqualsExpr, _t as ClipboardEventUtils, _u as isNative, a as MarkerSeverity$1, aa as inputForeground, ac as h, ai as isEmptyMarkdownString, al as stripWildcards, an as Button$1, ao as IThemeService, ar as autorunOpts, as as ITelemetryService, at as getIndentMetadata, au as EditorOptions, b as getCodeEditor, ba as editorInfoBorder, bc as Schemas, bi as anyScore, bl as SelectedSuggestionInfo, bn as lengthZero, bo as findFirstMax, br as itemsEquals, bs as RawContextKey, bt as getColumnOfNodeOffset, bu as language, c as Range$1, ca as editorActiveLinkForeground, cc as isAncestor, ci as basename, cl as mainWindow, cn as ItemActivation, co as isDark, cr as derivedDisposable, cs as MenuId, ct as ProcessedIndentRulesSupport, cu as unicodeHighlightConfigKeys, d as Token$1, da as editorErrorForeground, dc as reset, di as extUri, dl as DocumentHighlightKind, dn as ModelDecorationOptions, do as ITextResourceConfigurationService, dr as derivedWithSetter, ds as SubmenuItemAction, dt as WordPartOperations, du as Iterable, ea as inputActiveOptionBackground, ec as getShadowRoot, ei as getStandardTokenTypeAtPosition, el as isUpperAsciiLetter, en as HistoryInputBox, eo as clamp, er as observableFromEvent, es as registerEditorContribution, et as CoreEditingCommands, eu as isCancellationError, f as Uri, fa as editorFindMatchForeground, fc as runAtThisOrScheduleAtNextAnimationFrame, fi as extname, fl as DocumentPasteTriggerKind, fn as TextModel, fo as Color, fr as derivedWithStore, fs as isIMenuItem, ft as MoveOperations, fu as OS, g as formatDocumentRangesWithSelectedProvider, ga as editorFindRangeHighlightBorder, gc as size, gi as relativePath, gl as InlineCompletionTriggerKind, gn as TextBufferTokenizer, go as TextEdit, gr as subtransaction, gs as assertNever, gt as CursorState, gu as isMacintosh, h as languages, ha as editorFindMatchHighlightForeground, hc as show, hi as originalFSPath, hl as InlayHintKind, hn as LanguageAgnosticBracketTokens, ho as SingleTextEdit, hr as observableValue, hs as Registry, ht as ReplaceCommandThatSelectsText, hu as isLittleEndian, i as KeyMod, ia as inputBorder, ic as getWindow, ii as MarkdownString, il as splitLinesIncludeSeparators, in as CountBadge, io as severity_default, ir as autorun, is as ILogService, it as getGoodIndentForLine, iu as EditorFontLigatures, j as reactToChange, ja as editorWarningForeground, jc as first, ji as DomEmitter, jl as basename$1, jn as MenuEntryActionViewItem, jo as ResourceMap, jr as isEmptyWorkspaceIdentifier, js as IInstantiationService, jt as HC_BLACK_THEME_NAME, ju as isString, k as HideUnchangedRegionsFeature, ka as editorSelectionHighlight, kc as createCancelablePromise, ki as renderIcon, kl as Position$1, kn as IEditorWorkerService, ko as getMapForWordSeparators, kr as IWorkspaceContextService, ks as IModelService, kt as IClipboardService, ku as isNumber, l as Selection$1, la as editorBackground, lc as isHTMLElement, li as basenameOrAuthority, ll as Command, ln as Extensions, lo as isHighContrast, lr as derivedHandleChanges, ls as MenuItemAction, lt as CursorMoveCommands, lu as USUAL_WORD_SEPARATORS, m as editor_api_exports, ma as editorFindMatchHighlightBorder, mc as setVisibility, mi as joinPath, ml as HoverVerbosityAction, mn as parseDocument, mo as RGBA, mr as disposableObservableValue, ms as KeybindingsRegistry, mt as ReplaceCommandThatPreservesSelection, mu as isLinux, n as Emitter$1, na as inputActiveOptionForeground, nc as getTotalHeight, ni as IdGenerator, nl as noBreakWhitespace, nn as RegexToggle, no as Severity, nr as observableSignalFromEvent, ns as registerModelAndPositionCommand, nt as TypeOperations, nu as onUnexpectedExternalError, o as MarkerTag, oa as minimapFindMatch, oc as hide, oi as isMarkdownString, ol as trim, on as Toggle, oo as registerThemingParticipant, or as autorunWithStore, os as Action2, ot as ShiftCommand, ou as ShowLightbulbIconMode, p as editor, pa as editorFindMatchHighlight, pc as runWhenWindowIdle, pi as isEqual, pl as FoldingRangeKind, pn as computeIndentLevel, po as HSVA, pr as asyncTransaction, ps as registerAction2, pt as ReplaceCommand, pu as isIOS, q as applyStyle, qa as hasDriveLetter, qc as format, qi as IHoverService, ql as dispose, qn as getDefaultHoverDelegate, qo as EditorAction2, qr as IAccessibilityService, qs as createCSSRule, qt as IsWebContext, r as KeyCode, ra as inputBackground, rc as getTotalWidth, ri as defaultGenerator, rl as splitLines, rn as WholeWordsToggle, ro as IDialogService, rr as recomputeInitiallyAndOnChange, rs as registerMultiEditorAction, rt as EnterOperation, ru as EDITOR_FONT_DEFAULTS, s as Position$2, sa as minimapSelectionOccurrenceHighlight, sc as isActiveElement, si as DataUri, sl as Lazy, sn as IQuickInputService, so as themeColorFromId, sr as derived, ss as IMenuService, st as getEnterAction, su as inUntrustedWorkspace, t as CancellationTokenSource$1, ta as inputActiveOptionBorder, tc as getTopLeftOffset, ti as renderMarkdown, tl as lastNonWhitespaceIndex, tn as CaseSensitiveToggle, to as INotificationService, tr as observableSignal, ts as registerInstantiatedEditorAction, tt as EditorContextKeys, tu as onUnexpectedError, u as SelectionDirection, ua as editorErrorBorder, uc as removeCSSRulesContainingSelector, ui as dirname, ul as CompletionItemKinds, un as ModelDecorationInjectedTextOptions, uo as ILanguageFeaturesService, ur as derivedOpts, us as MenuRegistry, ut as WordOperations, uu as LinkedList, v as getOnTypeFormattingEdits, va as editorHoverBackground, vc as trackFocus, vi as FuzzyScore, vl as NewSymbolNameTag, vn as lengthAdd, vo as LineRange, vr as equalsIfDefined, vs as ContextKeyExpr, vt as CopyOptions, vu as isWeb, w as EditorStateCancellationTokenSource, wa as editorInlayHintParameterBackground, wc as DeferredPromise, wi as matchesContiguousSubString, wl as getAriaLabelForSymbol, wn as ghostTextForeground, wo as SearchParams, wr as InspectTokensNLS, ws as Action, wt as renderViewLine, wu as mixin, x as isCodeEditor, xa as editorInfoForeground, xc as matchesScheme, xi as createMatches, xl as SignatureHelpTriggerKind, xn as normalizeIndentation, xo as findLast, xr as structuralEquals, xs as CommandsRegistry, xt as DynamicCssRules, xu as localize, y as FormattingEdit, ya as editorHoverBorder, yc as hash, yi as FuzzyScoreOptions, yl as NewSymbolNameTriggerKind, yn as lengthGetColumnCountIfZeroLineCount, yo as findFirstIdxMonotonousOrArrLen, yr as itemEquals, ys as IContextKeyService, yt as InMemoryClipboardMetadataManager, yu as isWindows, z as diffDeleteDecoration, za as contrastBorder, zc as commonPrefixLength, zi as ScrollableElement, zl as Event, zn as getListStyles, zo as registerSingleton, zr as ILabelService, zs as EventType$1, zt as IconLabel, zu as equals } from "./editor.api-B3Kwz8AU.js";
9
9
  import React, { Component, Fragment, createElement, forwardRef, memo, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
10
10
  import "@elastic/eui/dist/eui_theme_light.min.css";
@@ -1263,40 +1263,40 @@ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((e) => {
1263
1263
  function Z(e) {
1264
1264
  return A(e) === m;
1265
1265
  }
1266
- function zZ(e) {
1266
+ function BZ(e) {
1267
1267
  return A(e) === f;
1268
1268
  }
1269
- function BZ(e) {
1269
+ function VZ(e) {
1270
1270
  return A(e) === u;
1271
1271
  }
1272
- function VZ(e) {
1272
+ function HZ(e) {
1273
1273
  return typeof e == "object" && !!e && e.$$typeof === n;
1274
1274
  }
1275
- function HZ(e) {
1275
+ function UZ(e) {
1276
1276
  return A(e) === g;
1277
1277
  }
1278
- function UZ(e) {
1278
+ function WZ(e) {
1279
1279
  return A(e) === a;
1280
1280
  }
1281
- function WZ(e) {
1281
+ function GZ(e) {
1282
1282
  return A(e) === S;
1283
1283
  }
1284
- function GZ(e) {
1284
+ function KZ(e) {
1285
1285
  return A(e) === x;
1286
1286
  }
1287
- function KZ(e) {
1287
+ function qZ(e) {
1288
1288
  return A(e) === i;
1289
1289
  }
1290
- function qZ(e) {
1290
+ function Q(e) {
1291
1291
  return A(e) === s;
1292
1292
  }
1293
- function Q(e) {
1293
+ function JZ(e) {
1294
1294
  return A(e) === o;
1295
1295
  }
1296
- function JZ(e) {
1296
+ function YZ(e) {
1297
1297
  return A(e) === y;
1298
1298
  }
1299
- e.AsyncMode = M, e.ConcurrentMode = N, e.ContextConsumer = P, e.ContextProvider = F, e.Element = I, e.ForwardRef = L, e.Fragment = R, e.Lazy = z, e.Memo = B, e.Portal = V, e.Profiler = U, e.StrictMode = W, e.Suspense = G, e.isAsyncMode = J, e.isConcurrentMode = Z, e.isContextConsumer = zZ, e.isContextProvider = BZ, e.isElement = VZ, e.isForwardRef = HZ, e.isFragment = UZ, e.isLazy = WZ, e.isMemo = GZ, e.isPortal = KZ, e.isProfiler = qZ, e.isStrictMode = Q, e.isSuspense = JZ, e.isValidElementType = O, e.typeOf = A;
1299
+ e.AsyncMode = M, e.ConcurrentMode = N, e.ContextConsumer = P, e.ContextProvider = F, e.Element = I, e.ForwardRef = L, e.Fragment = R, e.Lazy = z, e.Memo = B, e.Portal = V, e.Profiler = U, e.StrictMode = W, e.Suspense = G, e.isAsyncMode = J, e.isConcurrentMode = Z, e.isContextConsumer = BZ, e.isContextProvider = VZ, e.isElement = HZ, e.isForwardRef = UZ, e.isFragment = WZ, e.isLazy = GZ, e.isMemo = KZ, e.isPortal = qZ, e.isProfiler = Q, e.isStrictMode = JZ, e.isSuspense = YZ, e.isValidElementType = O, e.typeOf = A;
1300
1300
  })();
1301
1301
  })), require_react_is = /* @__PURE__ */ __commonJSMin(((e, t) => {
1302
1302
  process.env.NODE_ENV === "production" ? t.exports = require_react_is_production_min() : t.exports = require_react_is_development();
@@ -3084,25 +3084,25 @@ function highlight_default(e, t) {
3084
3084
  numberStyle: A,
3085
3085
  startingLineNumber: T,
3086
3086
  codeString: W
3087
- }) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, zZ = isHighlightJs(G) ? "hljs" : "prismjs", BZ = y ? Object.assign({}, K, { style: Object.assign({}, Z, f) }) : Object.assign({}, K, {
3088
- className: K.className ? `${zZ} ${K.className}` : zZ,
3087
+ }) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, BZ = isHighlightJs(G) ? "hljs" : "prismjs", VZ = y ? Object.assign({}, K, { style: Object.assign({}, Z, f) }) : Object.assign({}, K, {
3088
+ className: K.className ? `${BZ} ${K.className}` : BZ,
3089
3089
  style: Object.assign({}, f)
3090
3090
  });
3091
- if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z, BZ, J, /* @__PURE__ */ React.createElement(V, m, W));
3091
+ if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z, VZ, J, /* @__PURE__ */ React.createElement(V, m, W));
3092
3092
  (M === void 0 && L || P) && (M = !0), L ||= defaultRenderer;
3093
- var VZ = [{
3093
+ var HZ = [{
3094
3094
  type: "text",
3095
3095
  value: W
3096
- }], HZ = getCodeTree({
3096
+ }], UZ = getCodeTree({
3097
3097
  astGenerator: G,
3098
3098
  language: i,
3099
3099
  code: W,
3100
- defaultCodeValue: VZ
3100
+ defaultCodeValue: HZ
3101
3101
  });
3102
- HZ.language === null && (HZ.value = VZ);
3103
- var UZ = T + (W.match(/\n/g)?.length ?? 0), WZ = processLines(HZ, M, I, x, C, T, UZ, A, P);
3104
- return /* @__PURE__ */ React.createElement(z, BZ, /* @__PURE__ */ React.createElement(V, m, !C && J, L({
3105
- rows: WZ,
3102
+ UZ.language === null && (UZ.value = HZ);
3103
+ var WZ = T + (W.match(/\n/g)?.length ?? 0), GZ = processLines(UZ, M, I, x, C, T, WZ, A, P);
3104
+ return /* @__PURE__ */ React.createElement(z, VZ, /* @__PURE__ */ React.createElement(V, m, !C && J, L({
3105
+ rows: GZ,
3106
3106
  stylesheet: s,
3107
3107
  useInlineStyles: y
3108
3108
  })));
@@ -51572,25 +51572,40 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51572
51572
  ...N,
51573
51573
  ...e
51574
51574
  });
51575
- }, I = () => {
51575
+ };
51576
+ useMemo(() => {
51576
51577
  P({
51577
51578
  ...N,
51578
51579
  type: M.type,
51579
51580
  field: M.field
51580
51581
  });
51581
- };
51582
- useMemo(() => {
51583
- I();
51582
+ }, [t]), useEffect(() => {
51583
+ if (t) if (P({
51584
+ ...N,
51585
+ type: M.type,
51586
+ field: M.field
51587
+ }), t?.timeFieldName) {
51588
+ let e = [[t?.timeFieldName, "desc"]];
51589
+ A({
51590
+ ...O,
51591
+ columns: ["_source"],
51592
+ sort: e
51593
+ }), B({ sort: e });
51594
+ } else A({
51595
+ ...O,
51596
+ columns: ["_source"],
51597
+ sort: []
51598
+ }), B({ sort: [] });
51584
51599
  }, [t]);
51585
- let L = useMemo(() => {
51600
+ let I = useMemo(() => {
51586
51601
  let e = new Subscription();
51587
51602
  return e.add(timefilter.getAutoRefreshFetch$().subscribe({ next: () => {
51588
- V();
51603
+ B();
51589
51604
  } })), e;
51590
- }, [t]), [R, z] = React.useState(0), B = O.columns, V = useCallback(async (e) => {
51605
+ }, [t]), [L, R] = React.useState(0), z = O.columns, B = useCallback(async (e) => {
51591
51606
  if (!t || !o) return;
51592
- K((e) => e === "next" ? e : "loading"), e?.isScrollLoad || z(0);
51593
- let n = e?.sort || O.sort, i = getSearchParams(t, e?.interval || O.interval, e?.sort || O.sort, e?.aggs || null, N || {}, e?.isScrollLoad ? R : 0, !1), a = (0, import_lodash.cloneDeep)(i?.body?.query?.bool?.filter || []);
51607
+ G((e) => e === "next" ? e : "loading"), e?.isScrollLoad || R(0);
51608
+ let n = e?.sort || O.sort, i = getSearchParams(t, e?.interval || O.interval, e?.sort || O.sort, e?.aggs || null, N || {}, e?.isScrollLoad ? L : 0, !1), a = (0, import_lodash.cloneDeep)(i?.body?.query?.bool?.filter || []);
51594
51609
  if (a.length > 0) {
51595
51610
  let t = a[a.length - 1];
51596
51611
  t?.hasOwnProperty("range") && (e?.rangeFilter ? (a[a.length - 1] = (0, import_lodash.cloneDeep)(e?.rangeFilter), i.body.query.bool.filter = a) : E.current = t);
@@ -51617,26 +51632,26 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51617
51632
  O.sort,
51618
51633
  t,
51619
51634
  N,
51620
- R,
51635
+ L,
51621
51636
  t?.timeFieldName,
51622
51637
  s
51623
51638
  ]);
51624
51639
  useEffect(() => {
51625
- R > 0 && V({
51640
+ L > 0 && B({
51626
51641
  isScrollLoad: !0,
51627
51642
  rangeFilter: E.current
51628
51643
  });
51629
- }, [R]), useEffect(() => {
51630
- isFrist ? isFrist = !isFrist : V();
51644
+ }, [L]), useEffect(() => {
51645
+ isFrist ? isFrist = !isFrist : B();
51631
51646
  }, [e.indices]);
51632
- let U = useCallback((e) => {
51647
+ let V = useCallback((e) => {
51633
51648
  e && A({
51634
51649
  ...O,
51635
51650
  interval: e
51636
51651
  });
51637
- }, [A, t]), [G, K] = useState("loading"), { histogramData: J, timeChartProps: Z } = useMemo(() => {
51638
- if (!w.hits.hits || w.hits.hits.length == 0) return K("none"), {};
51639
- if (!t?.timeFieldName || !w.aggregations || !w.aggregations.counts) return K("ready"), {
51652
+ }, [A, t]), [U, G] = useState("loading"), { histogramData: K, timeChartProps: J } = useMemo(() => {
51653
+ if (!w.hits.hits || w.hits.hits.length == 0) return G("none"), {};
51654
+ if (!t?.timeFieldName || !w.aggregations || !w.aggregations.counts) return G("ready"), {
51640
51655
  histogramData: null,
51641
51656
  timeChartProps: null
51642
51657
  };
@@ -51674,7 +51689,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51674
51689
  label: "Count"
51675
51690
  }
51676
51691
  };
51677
- K("ready");
51692
+ G("ready");
51678
51693
  let o = {
51679
51694
  timeRange: {
51680
51695
  from: timefilter.getBounds().min,
@@ -51682,7 +51697,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51682
51697
  },
51683
51698
  stateInterval: O.interval || "15s",
51684
51699
  options: intervalOptions,
51685
- onIntervalChange: U,
51700
+ onIntervalChange: V,
51686
51701
  bucketInterval: {
51687
51702
  ...n,
51688
51703
  timeFieldName: t?.timeFieldName
@@ -51703,19 +51718,8 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51703
51718
  ...e,
51704
51719
  columns: O.columns
51705
51720
  }));
51706
- }, [O.columns]), useEffect(() => {
51707
- if (t) if (t?.timeFieldName) {
51708
- let e = [[t?.timeFieldName, "desc"]];
51709
- A({
51710
- ...O,
51711
- sort: e
51712
- }), V({ sort: e });
51713
- } else A({
51714
- ...O,
51715
- sort: []
51716
- }), V({ sort: [] });
51717
- }, [t]);
51718
- let { onAddColumn: BZ, onRemoveColumn: VZ, onMoveColumn: HZ, onSetColumns: UZ } = useMemo(() => getStateColumnActions({
51721
+ }, [O.columns]);
51722
+ let { onAddColumn: Z, onRemoveColumn: VZ, onMoveColumn: HZ, onSetColumns: UZ } = useMemo(() => getStateColumnActions({
51719
51723
  indexPattern: t,
51720
51724
  setAppState: A,
51721
51725
  state: O,
@@ -51724,20 +51728,20 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51724
51728
  A({
51725
51729
  ...O,
51726
51730
  sort: e
51727
- }), V({ sort: e.reverse() });
51731
+ }), B({ sort: e.reverse() });
51728
51732
  }, [O, t]), GZ = useCallback((e, n, i) => {
51729
51733
  typeof e == "string" || e.name;
51730
51734
  let a = generateFilters(filterManager, e, n, i, String(t.id));
51731
- filterManager.addFilters(a), V();
51732
- }, [t, V]), KZ = useCallback((e) => {
51735
+ filterManager.addFilters(a), B();
51736
+ }, [t, B]), KZ = useCallback((e) => {
51733
51737
  timefilter.setTime({
51734
51738
  from: moment_default(e.from).toISOString(),
51735
51739
  to: moment_default(e.to).toISOString(),
51736
51740
  mode: "absolute"
51737
- }), V();
51741
+ }), B();
51738
51742
  }, [timefilter]), qZ = w.hits.hits || [], [Q, JZ] = useState([]);
51739
51743
  useMemo(() => {
51740
- qZ.length > 0 ? JZ(R > 0 ? (e) => [...e, ...qZ] : qZ) : R === 0 && JZ([]);
51744
+ qZ.length > 0 ? JZ(L > 0 ? (e) => [...e, ...qZ] : qZ) : L === 0 && JZ([]);
51741
51745
  }, [qZ]);
51742
51746
  let YZ = {
51743
51747
  savedSearch: {},
@@ -51745,7 +51749,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51745
51749
  chartAggConfigs: {}
51746
51750
  }, XZ = {};
51747
51751
  for (let e of Q) for (let n of Object.keys(t.flattenHit(e, !0))) XZ[n] = (XZ[n] || 0) + 1;
51748
- let ZZ = Number.isInteger(w.hits.total?.value) ? w.hits.total?.value : 0, QZ = t?.timeFieldName != "", $Z = useCallback(async ({ _index: e, _id: t, _type: n, _source: i, is_new: a }) => !1, [V]), eQ = useCallback(async ({ _index: e, _id: t, _type: n }) => !1, [V]), tQ = useMemo(() => ({
51752
+ let ZZ = Number.isInteger(w.hits.total?.value) ? w.hits.total?.value : 0, QZ = t?.timeFieldName != "", $Z = useCallback(async ({ _index: e, _id: t, _type: n, _source: i, is_new: a }) => !1, [B]), eQ = useCallback(async ({ _index: e, _id: t, _type: n }) => !1, [B]), tQ = useMemo(() => ({
51749
51753
  saveDocument: $Z,
51750
51754
  deleteDocument: eQ
51751
51755
  }), [$Z, eQ]), nQ = async (e, n, i) => {
@@ -51785,18 +51789,18 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51785
51789
  i(e || [], t || 0);
51786
51790
  }
51787
51791
  }, rQ = async (e) => {
51788
- L.unsubscribe(), t.timeFieldName = e, n(t);
51792
+ I.unsubscribe(), t.timeFieldName = e, n(t);
51789
51793
  let i = [[e, "desc"]];
51790
51794
  A({
51791
51795
  ...O,
51792
51796
  columns: ["_source"],
51793
51797
  sort: i
51794
- }), V({ sort: i });
51798
+ }), B({ sort: i });
51795
51799
  }, iQ = async (e, n, i) => {
51796
51800
  if (!o) return;
51797
- K("downloading");
51801
+ G("downloading");
51798
51802
  let { index: a, body: s } = getSearchParams(t, O.interval, O.sort, null, N || {}, e, !1, n), u = await o(a, s), f = Array.isArray(u?.hits?.hits) ? u?.hits?.hits : [], p = t.timeFieldName;
51799
- i?.(f, B, p), K("ready");
51803
+ i?.(f, z, p), G("ready");
51800
51804
  };
51801
51805
  return /* @__PURE__ */ jsxs(Card, {
51802
51806
  className: "h-full",
@@ -51822,32 +51826,32 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51822
51826
  queryString: queryStringManager,
51823
51827
  timefilter,
51824
51828
  storage,
51825
- onQuerySubmit: V,
51829
+ onQuerySubmit: B,
51826
51830
  services,
51827
51831
  dateRangeFrom: s.range && s.range[0],
51828
51832
  dateRangeTo: s.range && s.range[1],
51829
51833
  selectedIndexPattern: t,
51830
51834
  setIndexPattern: (e) => {
51831
- L.unsubscribe(), i(e);
51835
+ I.unsubscribe(), i(e);
51832
51836
  },
51833
51837
  indices: e.indices,
51834
- histogramData: J,
51838
+ histogramData: K,
51835
51839
  timefilterUpdateHandler: KZ,
51836
51840
  histogramOpts: YZ,
51837
51841
  timeSetting: {
51838
- ...Z || {},
51842
+ ...J || {},
51839
51843
  showTimeSetting: !0,
51840
51844
  showTimeField: !0,
51841
51845
  timeField: t.timeFieldName,
51842
51846
  timeFields: t.fields.filter((e) => e.spec.type === "date").map((e) => e.displayName),
51843
51847
  showTimeInterval: !1,
51844
- timeInterval: Z?.stateInterval,
51848
+ timeInterval: J?.stateInterval,
51845
51849
  timeIntervals: intervalOptions?.map(({ display: e, val: t }) => ({
51846
51850
  label: e,
51847
51851
  value: t
51848
51852
  })),
51849
51853
  onTimeSettingChange: ({ timeField: e, timeInterval: n }) => {
51850
- t.timeFieldName !== e && rQ(e), Z?.stateInterval !== n && U(n);
51854
+ t.timeFieldName !== e && rQ(e), J?.stateInterval !== n && V(n);
51851
51855
  },
51852
51856
  timeZone: S,
51853
51857
  onTimeZoneChange: C,
@@ -51859,7 +51863,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51859
51863
  className: "flex-1 min-h-0 relative",
51860
51864
  children: /* @__PURE__ */ jsx("div", {
51861
51865
  className: "absolute inset-0 flex border-t border-t-solid border-[var(--ant-color-border)]",
51862
- children: G === "none" && R === 0 ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(DiscoverNoResults, {
51866
+ children: U === "none" && L === 0 ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(DiscoverNoResults, {
51863
51867
  timeFieldName: YZ.timefield,
51864
51868
  queryLanguage: O.query?.language || "",
51865
51869
  range: s.range
@@ -51867,11 +51871,11 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51867
51871
  className: "h-full w-300px p-8px border-r border-r-solid border-[var(--ant-color-border)] overflow-y-auto infini-discover-side",
51868
51872
  children: /* @__PURE__ */ jsx(SidebarMemoized, {
51869
51873
  config: {},
51870
- columns: B,
51874
+ columns: z,
51871
51875
  fieldCounts: XZ,
51872
51876
  hits: Q,
51873
51877
  indexPatterns: [t],
51874
- onAddField: BZ,
51878
+ onAddField: Z,
51875
51879
  onAddFilter: GZ,
51876
51880
  onRemoveField: VZ,
51877
51881
  selectedIndexPattern: t,
@@ -51896,7 +51900,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51896
51900
  className: "flex-1 flex flex-col h-full overflow-hidden relative",
51897
51901
  children: [
51898
51902
  /* @__PURE__ */ jsx("div", {
51899
- style: { display: G !== "loading" && G !== "downloading" ? "none" : "" },
51903
+ style: { display: U !== "loading" && U !== "downloading" ? "none" : "" },
51900
51904
  children: /* @__PURE__ */ jsx("div", {
51901
51905
  className: "dscOverlay",
51902
51906
  children: /* @__PURE__ */ jsx(LoadingSpinner, {})
@@ -51905,43 +51909,43 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51905
51909
  /* @__PURE__ */ jsx(ResultHeader, {
51906
51910
  showCollapse: {
51907
51911
  sideBar: !0,
51908
- histogram: !!J
51912
+ histogram: !!K
51909
51913
  },
51910
51914
  collapseState: b,
51911
51915
  setCollapseState: x,
51912
51916
  took: w.took || 1,
51913
51917
  total: ZZ,
51914
- timeChartProps: Z,
51918
+ timeChartProps: J,
51915
51919
  onDownloadQuery: iQ,
51916
- downloading: G === "downloading",
51920
+ downloading: U === "downloading",
51917
51921
  exportMaxSize: g
51918
51922
  }),
51919
- !b.histogram && YZ.chartAggConfigs && J && Q.length !== 0 && /* @__PURE__ */ jsx("div", {
51923
+ !b.histogram && YZ.chartAggConfigs && K && Q.length !== 0 && /* @__PURE__ */ jsx("div", {
51920
51924
  className: "dscTimechart",
51921
51925
  children: /* @__PURE__ */ jsx("div", {
51922
51926
  className: "h-100px dscHistogramGrid",
51923
51927
  children: /* @__PURE__ */ jsx(DiscoverHistogram, {
51924
- chartData: J,
51928
+ chartData: K,
51925
51929
  timefilterUpdateHandler: KZ,
51926
51930
  theme: m
51927
51931
  })
51928
51932
  })
51929
51933
  }),
51930
51934
  Q && Q.length > 0 ? /* @__PURE__ */ jsx(table_default, {
51931
- columns: B,
51935
+ columns: z,
51932
51936
  sortOrder: O.sort || [],
51933
51937
  indexPattern: t,
51934
51938
  onFilter: GZ,
51935
51939
  onRemoveColumn: VZ,
51936
51940
  onMoveColumn: HZ,
51937
- onAddColumn: BZ,
51941
+ onAddColumn: Z,
51938
51942
  onChangeSortOrder: WZ,
51939
51943
  document: tQ,
51940
51944
  hits: Q,
51941
51945
  hitsTotal: ZZ,
51942
- queryFrom: R,
51946
+ queryFrom: L,
51943
51947
  setQueryFrom: (e) => {
51944
- K("next"), z(e);
51948
+ G("next"), R(e);
51945
51949
  },
51946
51950
  theme: m
51947
51951
  }) : null
@@ -51968,9 +51972,16 @@ var components_default = (e) => {
51968
51972
  let i = [];
51969
51973
  n.fields.forEach((e) => {
51970
51974
  e.spec.type === "date" && i.push(e.spec.name);
51971
- }), i && i.length >= 1 && (t && i.includes(t) ? n.timeFieldName = t : n.timeFieldName === "" && (n.timeFieldName = i[0])), n.id !== s?.index && u((e) => ({
51972
- ...e,
51973
- index: n.id
51975
+ }), i && i.length >= 1 && (t && i.includes(t) ? n.timeFieldName = t : n.timeFieldName === "" && (n.timeFieldName = i[0])), n.id !== s?.index && (u({
51976
+ index: n.id,
51977
+ columns: ["_source"],
51978
+ sort: []
51979
+ }), queryStringManager.setQuery({
51980
+ query: "",
51981
+ language: "kuery"
51982
+ }), filterManager.removeAll(), timefilter.setTime({
51983
+ from: "",
51984
+ to: ""
51974
51985
  })), b(n);
51975
51986
  let a = [n];
51976
51987
  a.get = (e) => Promise.resolve(a.find((t) => t.id == e)), setIndexPatterns(a), x.current.loadedIndex = e, x.current.pendingIndex = null;