@infinilabs/discover 0.0.16 → 0.0.18

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 (27) hide show
  1. package/dist/{common-CelpNJ_P.cjs → common-DFB-Krii.cjs} +6 -6
  2. package/dist/{common-6ueRhcZj.js → common-JxI0fO97.js} +273 -268
  3. package/dist/{components-BZTcWo0D.js → components-BtZfYCUr.js} +216 -148
  4. package/dist/{components-DzA4fVqH.cjs → components-w0oW3GpQ.cjs} +46 -44
  5. package/dist/{filter_label-DALDJinr.js → filter_label-BOgCXkdp.js} +2 -2
  6. package/dist/{filter_label-306D4xEc.cjs → filter_label-BVGFM735.cjs} +1 -1
  7. package/dist/{filter_operators-B5A15sKd.cjs → filter_operators-C_4il2ok.cjs} +1 -1
  8. package/dist/{filter_operators-DuazgKuH.js → filter_operators-f_RipGT3.js} +1 -1
  9. package/dist/index.cjs +2 -2
  10. package/dist/index.js +4 -4
  11. package/dist/public-BfModHE8.cjs +3 -0
  12. package/dist/public-seOSIZPc.js +1772 -0
  13. package/dist/{query_bar_top_row-DaHCNARQ.js → query_bar_top_row-D5J6N5L2.js} +2 -2
  14. package/dist/{query_bar_top_row-hkYli4mo.cjs → query_bar_top_row-DigJljNX.cjs} +1 -1
  15. package/dist/{query_bar_top_row-Dzd1EBWC.js → query_bar_top_row-Dp4-frN1.js} +5 -5
  16. package/dist/query_bar_top_row-GViVxtYa.cjs +1 -0
  17. package/dist/{query_string_input-o_vEPSg2.js → query_string_input-BP2qq9Lf.js} +3 -3
  18. package/dist/{query_string_input-jELi9JGI.cjs → query_string_input-DpPUCiXF.cjs} +1 -1
  19. package/dist/query_string_input-DvXZHDE9.cjs +1 -0
  20. package/dist/{query_string_input-B6lvPXEY.js → query_string_input-uI_z3PwX.js} +1 -1
  21. package/dist/{search_bar-aRdyo2C0.cjs → search_bar-BcYGmNoo.cjs} +1 -1
  22. package/dist/{search_bar-Ho9D93zT.js → search_bar-DZMeLETx.js} +6 -6
  23. package/package.json +1 -1
  24. package/dist/public-BWdftR10.cjs +0 -3
  25. package/dist/public-kDgoH8_s.js +0 -1781
  26. package/dist/query_bar_top_row-DFBab9DF.cjs +0 -1
  27. package/dist/query_string_input-wee-LHxT.cjs +0 -1
@@ -1,18 +1,18 @@
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-kDgoH8_s.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-seOSIZPc.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-6ueRhcZj.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-JxI0fO97.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
- import React, { Component, Fragment, createElement, forwardRef, memo, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
9
+ import React, { Component, Fragment, createElement, createRef, forwardRef, memo, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
10
10
  import "@elastic/eui/dist/eui_theme_light.min.css";
11
11
  import { Badge, Button, Card, Empty, Form, Input, InputNumber, Menu, Modal, Popover, Progress, Radio, Select, Space, Spin, Switch, Tabs, Tooltip, Tree, Typography } from "antd";
12
12
  import { EuiCallOut, EuiCodeBlock, EuiFlexGroup, EuiFlexItem, EuiHideFor, EuiIcon, EuiSpacer, EuiTitle, EuiToolTip } from "@elastic/eui";
13
13
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
14
14
  import { CarryOutOutlined } from "@ant-design/icons";
15
- import { AnnotationDomainType, Axis, Chart, DARK_THEME, HistogramBarSeries, LIGHT_THEME, LineAnnotation, Position, RectAnnotation, ScaleType, Settings, TooltipType } from "@elastic/charts";
15
+ import { AnnotationDomainType, Axis, Chart, DARK_THEME, HistogramBarSeries, LIGHT_THEME, LineAnnotation, Position, RectAnnotation, ScaleType, Settings, Tooltip as Tooltip$1 } from "@elastic/charts";
16
16
  import lightEuiTheme from "@elastic/eui/dist/eui_theme_light.json";
17
17
  import darkEuiTheme from "@elastic/eui/dist/eui_theme_dark.json";
18
18
  import { appendIconComponentCache } from "@elastic/eui/es/components/icon/icon";
@@ -1271,40 +1271,40 @@ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((e) => {
1271
1271
  function Z(e) {
1272
1272
  return A(e) === m;
1273
1273
  }
1274
- function KZ(e) {
1274
+ function GZ(e) {
1275
1275
  return A(e) === f;
1276
1276
  }
1277
1277
  function Q(e) {
1278
1278
  return A(e) === u;
1279
1279
  }
1280
- function qZ(e) {
1280
+ function KZ(e) {
1281
1281
  return typeof e == "object" && !!e && e.$$typeof === n;
1282
1282
  }
1283
- function JZ(e) {
1283
+ function qZ(e) {
1284
1284
  return A(e) === g;
1285
1285
  }
1286
- function YZ(e) {
1286
+ function JZ(e) {
1287
1287
  return A(e) === a;
1288
1288
  }
1289
- function XZ(e) {
1289
+ function YZ(e) {
1290
1290
  return A(e) === S;
1291
1291
  }
1292
- function ZZ(e) {
1292
+ function XZ(e) {
1293
1293
  return A(e) === x;
1294
1294
  }
1295
- function QZ(e) {
1295
+ function ZZ(e) {
1296
1296
  return A(e) === i;
1297
1297
  }
1298
- function $Z(e) {
1298
+ function QZ(e) {
1299
1299
  return A(e) === s;
1300
1300
  }
1301
- function eQ(e) {
1301
+ function $Z(e) {
1302
1302
  return A(e) === o;
1303
1303
  }
1304
- function tQ(e) {
1304
+ function eQ(e) {
1305
1305
  return A(e) === y;
1306
1306
  }
1307
- 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 = KZ, e.isContextProvider = Q, e.isElement = qZ, e.isForwardRef = JZ, e.isFragment = YZ, e.isLazy = XZ, e.isMemo = ZZ, e.isPortal = QZ, e.isProfiler = $Z, e.isStrictMode = eQ, e.isSuspense = tQ, e.isValidElementType = O, e.typeOf = A;
1307
+ 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 = GZ, e.isContextProvider = Q, e.isElement = KZ, e.isForwardRef = qZ, e.isFragment = JZ, e.isLazy = YZ, e.isMemo = XZ, e.isPortal = ZZ, e.isProfiler = QZ, e.isStrictMode = $Z, e.isSuspense = eQ, e.isValidElementType = O, e.typeOf = A;
1308
1308
  })();
1309
1309
  })), require_react_is = /* @__PURE__ */ __commonJSMin(((e, t) => {
1310
1310
  process.env.NODE_ENV === "production" ? t.exports = require_react_is_production_min() : t.exports = require_react_is_development();
@@ -1713,26 +1713,55 @@ var partialDataText = "The selected time range does not include this entire buck
1713
1713
  grow: !1,
1714
1714
  children: /* @__PURE__ */ jsx(EuiIcon, { type: "iInCircle" })
1715
1715
  }), /* @__PURE__ */ jsx(EuiFlexItem, { children: partialDataText })]
1716
- });
1717
- const renderEndzoneTooltip = (e, t, n, i, a = !0) => (o) => {
1718
- let s = o.value, u = i ? i(s) : s;
1719
- return t !== void 0 && t > s || n !== void 0 && e !== void 0 && n - e < s ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Prompt, {}), a && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(EuiSpacer, { size: "xs" }), /* @__PURE__ */ jsx("p", { children: u })] })] }) : a ? u : null;
1720
- };
1721
- var import_moment_timezone = /* @__PURE__ */ __toESM(require_moment_timezone(), 1), import_prop_types$1 = /* @__PURE__ */ __toESM(require_prop_types(), 1);
1722
- function getTimezone$1() {
1723
- return import_moment_timezone.default.tz.guess() || (0, import_moment_timezone.default)().format("Z");
1724
- }
1725
- var DiscoverHistogram = class extends Component {
1716
+ }), import_moment_timezone = /* @__PURE__ */ __toESM(require_moment_timezone(), 1), import_prop_types$1 = /* @__PURE__ */ __toESM(require_prop_types(), 1), DiscoverHistogram = class extends Component {
1726
1717
  static propTypes = {
1727
1718
  chartData: import_prop_types$1.default.object,
1728
- timefilterUpdateHandler: import_prop_types$1.default.func
1719
+ timefilterUpdateHandler: import_prop_types$1.default.func,
1720
+ theme: import_prop_types$1.default.string,
1721
+ timeZone: import_prop_types$1.default.string
1722
+ };
1723
+ containerRef = createRef();
1724
+ tooltipCloseTimer = null;
1725
+ TOOLTIP_DELAY = 200;
1726
+ state = {
1727
+ tooltipVisible: !1,
1728
+ tooltipPos: {
1729
+ x: 0,
1730
+ y: 0
1731
+ },
1732
+ pointerEvent: null
1729
1733
  };
1730
- subscription;
1731
- state = {};
1732
- componentDidMount() {}
1733
1734
  componentWillUnmount() {
1734
- this.subscription && this.subscription.unsubscribe();
1735
- }
1735
+ this.tooltipCloseTimer && clearTimeout(this.tooltipCloseTimer);
1736
+ }
1737
+ handleMouseMove = (e) => {
1738
+ if (!this.containerRef.current) return;
1739
+ let t = this.containerRef.current.getBoundingClientRect();
1740
+ this.setState({ tooltipPos: {
1741
+ x: e.clientX - t.left,
1742
+ y: e.clientY - t.top
1743
+ } });
1744
+ };
1745
+ handlePointerUpdate = (e) => {
1746
+ let { chartData: t } = this.props;
1747
+ if (this.tooltipCloseTimer && clearTimeout(this.tooltipCloseTimer), e.type === "Over" && e.x && t?.values) {
1748
+ let n = t.values.find((t) => t.x === e.x);
1749
+ if (n) {
1750
+ let t = {
1751
+ ...e,
1752
+ yValue: n.y
1753
+ };
1754
+ this.setState({
1755
+ pointerEvent: t,
1756
+ tooltipVisible: !0
1757
+ });
1758
+ } else this.tooltipCloseTimer = setTimeout(() => {
1759
+ this.setState({ tooltipVisible: !1 });
1760
+ }, this.TOOLTIP_DELAY);
1761
+ } else this.tooltipCloseTimer = setTimeout(() => {
1762
+ this.setState({ tooltipVisible: !1 });
1763
+ }, this.TOOLTIP_DELAY);
1764
+ };
1736
1765
  onBrushEnd = ({ x: e }) => {
1737
1766
  if (!e) return;
1738
1767
  let [t, n] = e;
@@ -1748,72 +1777,107 @@ var DiscoverHistogram = class extends Component {
1748
1777
  };
1749
1778
  this.props.timefilterUpdateHandler(i);
1750
1779
  };
1751
- formatXValue = (e) => {
1752
- let t = this.props.chartData.xAxisFormat.params?.pattern;
1753
- return (0, import_moment_timezone.default)(e).format(t);
1754
- };
1780
+ formatXValue = (e) => (0, import_moment_timezone.default)(e).format(this.props.chartData.xAxisFormat.params?.pattern);
1781
+ renderCustomTooltip() {
1782
+ let { tooltipVisible: e, tooltipPos: t, pointerEvent: n } = this.state;
1783
+ if (!e || !n) return null;
1784
+ let i = this.containerRef.current?.clientWidth || 0, a = this.containerRef.current?.clientHeight || 0, o = t.x + 180 > i, s = t.y + 80 > a, u = o ? "-100% - 12px" : "12px", f = s ? "-100% - 12px" : "12px";
1785
+ return /* @__PURE__ */ jsxs("div", {
1786
+ className: "absolute z-100 pointer-events-none p-2 rounded-md \n bg-white/98 shadow-[0_6px_16px_0_rgba(0,0,0,0.08),0_3px_6px_-4px_rgba(0,0,0,0.12)] \n w-max min-w-100px dark:bg-[#1f1f1f]",
1787
+ style: {
1788
+ left: `${t.x}px`,
1789
+ top: `${t.y}px`,
1790
+ transform: `translate(calc(${u}), calc(${f}))`,
1791
+ transition: "transform 0.1s cubic-bezier(0.23, 1, 0.32, 1)"
1792
+ },
1793
+ children: [/* @__PURE__ */ jsx("div", {
1794
+ className: "text-[12px] text-black/45 dark:text-white/45 mb-2 leading-none",
1795
+ children: this.formatXValue(n.x)
1796
+ }), /* @__PURE__ */ jsxs("div", {
1797
+ className: "flex justify-between items-center gap-8",
1798
+ children: [/* @__PURE__ */ jsx("div", {
1799
+ className: "flex items-center",
1800
+ children: /* @__PURE__ */ jsx("span", {
1801
+ className: "text-[12px] text-black/85 dark:text-white/85",
1802
+ children: this.props.chartData.yAxisLabel
1803
+ })
1804
+ }), /* @__PURE__ */ jsx("span", {
1805
+ className: "text-[12px] font-600 text-black/85 dark:text-white/85",
1806
+ children: n.yValue?.toLocaleString()
1807
+ })]
1808
+ })]
1809
+ });
1810
+ }
1755
1811
  render() {
1756
- let e = getTimezone$1(), { chartData: t, height: n = 100 } = this.props, { chartsTheme: i, chartsBaseTheme: a } = this.state;
1757
- if (!t) return null;
1758
- let o = t.values, { intervalESValue: s, intervalESUnit: u, interval: f } = t.ordered, p = f.asMilliseconds(), m = t.xAxisOrderedValues, g = m[m.length - 1], y = t.ordered, b = y.min.valueOf(), x = y.max.valueOf(), S = {
1759
- min: Math.min(o[0]?.x, b),
1760
- max: Math.max(x - p, g),
1761
- minInterval: getAdjustedInterval(m, s, u, e)
1762
- }, C = {
1763
- headerFormatter: renderEndzoneTooltip(p, b, x, this.formatXValue),
1764
- type: TooltipType.VerticalCursor
1765
- }, w = { convert: (e) => e };
1766
- return /* @__PURE__ */ jsxs(Chart, {
1767
- size: { height: n },
1768
- children: [
1769
- /* @__PURE__ */ jsx(Settings, {
1770
- xDomain: S,
1771
- onBrushEnd: this.onBrushEnd,
1772
- onElementClick: this.onElementClick(p),
1773
- tooltip: C,
1774
- theme: this.props.theme === "dark" ? DARK_THEME : LIGHT_THEME
1775
- }),
1776
- /* @__PURE__ */ jsx(Axis, {
1777
- id: "discover-histogram-left-axis",
1778
- position: Position.Left,
1779
- ticks: 5,
1780
- title: t.yAxisLabel,
1781
- integersOnly: !0,
1782
- tickFormat: (e) => w.convert(e),
1783
- showGridLines: !0,
1784
- hide: !0
1785
- }),
1786
- /* @__PURE__ */ jsx(Axis, {
1787
- id: "discover-histogram-bottom-axis",
1788
- position: Position.Bottom,
1789
- tickFormat: this.formatXValue,
1790
- ticks: 10,
1791
- hide: !0
1792
- }),
1793
- /* @__PURE__ */ jsx(CurrentTime, {
1794
- isDarkMode: !1,
1795
- domainEnd: x
1796
- }),
1797
- /* @__PURE__ */ jsx(Endzones, {
1798
- isDarkMode: !1,
1799
- domainStart: b,
1800
- domainEnd: x,
1801
- interval: S.minInterval,
1802
- domainMin: S.min,
1803
- domainMax: S.max
1804
- }),
1805
- /* @__PURE__ */ jsx(HistogramBarSeries, {
1806
- id: "discover-histogram",
1807
- minBarHeight: 2,
1808
- xScaleType: ScaleType.Time,
1809
- yScaleType: ScaleType.Linear,
1810
- xAccessor: "x",
1811
- yAccessors: ["y"],
1812
- data: o,
1813
- timeZone: e,
1814
- name: t.yAxisLabel
1815
- })
1816
- ]
1812
+ let { timeZone: e, theme: t, chartData: n, height: i = 100 } = this.props;
1813
+ if (!n) return null;
1814
+ let a = n.values, o = t === "dark", { interval: s } = n.ordered, u = s.asMilliseconds(), f = n.ordered, p = f.min.valueOf(), m = f.max.valueOf(), g = {
1815
+ min: Math.min(a[0]?.x, p),
1816
+ max: Math.max(m - u, n.xAxisOrderedValues[n.xAxisOrderedValues.length - 1]),
1817
+ minInterval: getAdjustedInterval(n.xAxisOrderedValues, n.ordered.intervalESValue, n.ordered.intervalESUnit, e)
1818
+ }, y = { convert: (e) => e };
1819
+ return /* @__PURE__ */ jsxs("div", {
1820
+ ref: this.containerRef,
1821
+ className: "relative w-full h-full",
1822
+ onMouseMove: this.handleMouseMove,
1823
+ onMouseLeave: () => {
1824
+ this.tooltipCloseTimer && clearTimeout(this.tooltipCloseTimer), this.tooltipCloseTimer = setTimeout(() => {
1825
+ this.setState({ tooltipVisible: !1 });
1826
+ }, this.TOOLTIP_DELAY);
1827
+ },
1828
+ children: [this.renderCustomTooltip(p, m, u), /* @__PURE__ */ jsxs(Chart, {
1829
+ size: { height: i },
1830
+ children: [
1831
+ /* @__PURE__ */ jsx(Settings, {
1832
+ xDomain: g,
1833
+ onBrushEnd: this.onBrushEnd,
1834
+ onElementClick: this.onElementClick(u),
1835
+ theme: o ? DARK_THEME : LIGHT_THEME,
1836
+ onPointerUpdate: this.handlePointerUpdate
1837
+ }),
1838
+ /* @__PURE__ */ jsx(Tooltip$1, { customTooltip: () => null }),
1839
+ /* @__PURE__ */ jsx(Axis, {
1840
+ id: "discover-histogram-left-axis",
1841
+ position: Position.Left,
1842
+ ticks: 5,
1843
+ title: n.yAxisLabel,
1844
+ integersOnly: !0,
1845
+ tickFormat: (e) => y.convert(e),
1846
+ showGridLines: !0,
1847
+ hide: !0
1848
+ }),
1849
+ /* @__PURE__ */ jsx(Axis, {
1850
+ id: "discover-histogram-bottom-axis",
1851
+ position: Position.Bottom,
1852
+ tickFormat: this.formatXValue,
1853
+ ticks: 10,
1854
+ hide: !0
1855
+ }),
1856
+ /* @__PURE__ */ jsx(CurrentTime, {
1857
+ isDarkMode: o,
1858
+ domainEnd: m
1859
+ }),
1860
+ /* @__PURE__ */ jsx(Endzones, {
1861
+ isDarkMode: o,
1862
+ domainStart: p,
1863
+ domainEnd: m,
1864
+ interval: g.minInterval,
1865
+ domainMin: g.min,
1866
+ domainMax: g.max
1867
+ }),
1868
+ /* @__PURE__ */ jsx(HistogramBarSeries, {
1869
+ id: "discover-histogram",
1870
+ minBarHeight: 2,
1871
+ xScaleType: ScaleType.Time,
1872
+ yScaleType: ScaleType.Linear,
1873
+ xAccessor: "x",
1874
+ yAccessors: ["y"],
1875
+ data: a,
1876
+ timeZone: e,
1877
+ name: n.yAxisLabel
1878
+ })
1879
+ ]
1880
+ })]
1817
1881
  });
1818
1882
  }
1819
1883
  }, QueryStringManager = class {
@@ -3100,25 +3164,25 @@ function highlight_default(e, t) {
3100
3164
  numberStyle: A,
3101
3165
  startingLineNumber: T,
3102
3166
  codeString: W
3103
- }) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, KZ = isHighlightJs(G) ? "hljs" : "prismjs", Q = y ? Object.assign({}, K, { style: Object.assign({}, Z, f) }) : Object.assign({}, K, {
3104
- className: K.className ? `${KZ} ${K.className}` : KZ,
3167
+ }) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, GZ = isHighlightJs(G) ? "hljs" : "prismjs", Q = y ? Object.assign({}, K, { style: Object.assign({}, Z, f) }) : Object.assign({}, K, {
3168
+ className: K.className ? `${GZ} ${K.className}` : GZ,
3105
3169
  style: Object.assign({}, f)
3106
3170
  });
3107
3171
  if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z, Q, J, /* @__PURE__ */ React.createElement(V, m, W));
3108
3172
  (M === void 0 && L || P) && (M = !0), L ||= defaultRenderer;
3109
- var qZ = [{
3173
+ var KZ = [{
3110
3174
  type: "text",
3111
3175
  value: W
3112
- }], JZ = getCodeTree({
3176
+ }], qZ = getCodeTree({
3113
3177
  astGenerator: G,
3114
3178
  language: i,
3115
3179
  code: W,
3116
- defaultCodeValue: qZ
3180
+ defaultCodeValue: KZ
3117
3181
  });
3118
- JZ.language === null && (JZ.value = qZ);
3119
- var YZ = T + (W.match(/\n/g)?.length ?? 0), XZ = processLines(JZ, M, I, x, C, T, YZ, A, P);
3182
+ qZ.language === null && (qZ.value = KZ);
3183
+ var JZ = T + (W.match(/\n/g)?.length ?? 0), YZ = processLines(qZ, M, I, x, C, T, JZ, A, P);
3120
3184
  return /* @__PURE__ */ React.createElement(z, Q, /* @__PURE__ */ React.createElement(V, m, !C && J, L({
3121
- rows: XZ,
3185
+ rows: YZ,
3122
3186
  stylesheet: s,
3123
3187
  useInlineStyles: y
3124
3188
  })));
@@ -51761,40 +51825,40 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51761
51825
  columns: A.columns
51762
51826
  }));
51763
51827
  }, [A.columns]);
51764
- let { onAddColumn: qZ, onRemoveColumn: JZ, onMoveColumn: YZ, onSetColumns: XZ } = useMemo(() => getStateColumnActions({
51828
+ let { onAddColumn: KZ, onRemoveColumn: qZ, onMoveColumn: JZ, onSetColumns: YZ } = useMemo(() => getStateColumnActions({
51765
51829
  indexPattern: t,
51766
51830
  setAppState: M,
51767
51831
  state: A,
51768
51832
  useNewFieldsApi: !1
51769
- }), [t, A]), ZZ = useCallback((e) => {
51833
+ }), [t, A]), XZ = useCallback((e) => {
51770
51834
  M({
51771
51835
  ...A,
51772
51836
  sort: e
51773
51837
  }), V({ sort: e.reverse() });
51774
- }, [A, t]), QZ = useCallback((e, n, i) => {
51838
+ }, [A, t]), ZZ = useCallback((e, n, i) => {
51775
51839
  typeof e == "string" || e.name;
51776
51840
  let a = generateFilters(filterManager, e, n, i, String(t.id));
51777
51841
  filterManager.addFilters(a), V();
51778
- }, [t, V]), $Z = (e) => {
51842
+ }, [t, V]), QZ = (e) => {
51779
51843
  timefilter.setTime({
51780
51844
  from: moment_default(e.from).toISOString(),
51781
51845
  to: moment_default(e.to).toISOString(),
51782
51846
  mode: "absolute"
51783
51847
  }), V();
51784
- }, eQ = w.hits.hits || [], [tQ, nQ] = useState([]);
51848
+ }, $Z = w.hits.hits || [], [eQ, tQ] = useState([]);
51785
51849
  useMemo(() => {
51786
- eQ.length > 0 ? nQ(R > 0 ? (e) => [...e, ...eQ] : eQ) : R === 0 && nQ([]);
51787
- }, [eQ]);
51788
- let rQ = {
51850
+ $Z.length > 0 ? tQ(R > 0 ? (e) => [...e, ...$Z] : $Z) : R === 0 && tQ([]);
51851
+ }, [$Z]);
51852
+ let nQ = {
51789
51853
  savedSearch: {},
51790
51854
  timefield: t?.getTimeField()?.displayName,
51791
51855
  chartAggConfigs: {}
51792
- }, iQ = {};
51793
- for (let e of tQ) for (let n of Object.keys(t.flattenHit(e, !0))) iQ[n] = (iQ[n] || 0) + 1;
51794
- let aQ = Number.isInteger(w.hits.total?.value) ? w.hits.total?.value : 0, oQ = t?.timeFieldName != "", sQ = useCallback(async ({ _index: e, _id: t, _type: n, _source: i, is_new: a }) => !1, [V]), cQ = useCallback(async ({ _index: e, _id: t, _type: n }) => !1, [V]), lQ = useMemo(() => ({
51795
- saveDocument: sQ,
51796
- deleteDocument: cQ
51797
- }), [sQ, cQ]), uQ = async (e, n, i) => {
51856
+ }, rQ = {};
51857
+ for (let e of eQ) for (let n of Object.keys(t.flattenHit(e, !0))) rQ[n] = (rQ[n] || 0) + 1;
51858
+ let iQ = Number.isInteger(w.hits.total?.value) ? w.hits.total?.value : 0, aQ = t?.timeFieldName != "", oQ = useCallback(async ({ _index: e, _id: t, _type: n, _source: i, is_new: a }) => !1, [V]), sQ = useCallback(async ({ _index: e, _id: t, _type: n }) => !1, [V]), cQ = useMemo(() => ({
51859
+ saveDocument: oQ,
51860
+ deleteDocument: sQ
51861
+ }), [oQ, sQ]), lQ = async (e, n, i) => {
51798
51862
  let a = e?.spec?.name || e?.name;
51799
51863
  if (!a || !o) return;
51800
51864
  if (e.isMulti) a = `${a}.keyword`;
@@ -51830,7 +51894,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51830
51894
  let e = s.sampleRecords === "all" ? y?.aggregations?.top5?.buckets : y?.aggregations?.sample?.top5?.buckets, t = s.sampleRecords === "all" ? y?.aggregations?.top5?.sum_other_doc_count : y?.aggregations?.sample?.sample_count?.value;
51831
51895
  i(e || [], t || 0, y?.error);
51832
51896
  }
51833
- }, dQ = async (e) => {
51897
+ }, uQ = async (e) => {
51834
51898
  L.unsubscribe(), t.timeFieldName = e, n(t);
51835
51899
  let i = [[e, "desc"]];
51836
51900
  M({
@@ -51838,7 +51902,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51838
51902
  columns: ["_source"],
51839
51903
  sort: i
51840
51904
  }), V({ sort: i });
51841
- }, fQ = async (e, n, i) => {
51905
+ }, dQ = async (e, n, i) => {
51842
51906
  if (!o) return;
51843
51907
  J("downloading");
51844
51908
  let { index: a, body: s } = getSearchParams(t, A.interval, A.sort, null, P || {}, e, !1, n, S), u = await o(a, s), f = Array.isArray(u?.hits?.hits) ? u?.hits?.hits : [], p = t.timeFieldName;
@@ -51851,7 +51915,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51851
51915
  showSearchBar: !1,
51852
51916
  showQueryBar: !0,
51853
51917
  showQueryInput: !0,
51854
- showDatePicker: oQ,
51918
+ showDatePicker: aQ,
51855
51919
  showFilterBar: !0,
51856
51920
  useDefaultBehaviors: !0,
51857
51921
  screenTitle: "",
@@ -51878,8 +51942,8 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51878
51942
  },
51879
51943
  indices: e.indices,
51880
51944
  histogramData: Z,
51881
- timefilterUpdateHandler: $Z,
51882
- histogramOpts: rQ,
51945
+ timefilterUpdateHandler: QZ,
51946
+ histogramOpts: nQ,
51883
51947
  timeSetting: {
51884
51948
  ...Q || {},
51885
51949
  showTimeSetting: !0,
@@ -51893,7 +51957,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51893
51957
  value: t
51894
51958
  })),
51895
51959
  onTimeSettingChange: ({ timeField: e, timeInterval: n }) => {
51896
- t.timeFieldName !== e && dQ(e), Q?.stateInterval !== n && U(n);
51960
+ t.timeFieldName !== e && uQ(e), Q?.stateInterval !== n && U(n);
51897
51961
  },
51898
51962
  timeZone: S,
51899
51963
  onTimeZoneChange: C,
@@ -51906,7 +51970,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51906
51970
  children: /* @__PURE__ */ jsx("div", {
51907
51971
  className: "absolute inset-0 flex border-t border-t-solid border-[var(--ant-color-border)]",
51908
51972
  children: G === "none" && R === 0 ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(DiscoverNoResults, {
51909
- timeFieldName: rQ.timefield,
51973
+ timeFieldName: nQ.timefield,
51910
51974
  queryLanguage: A.query?.language || "",
51911
51975
  range: s.range
51912
51976
  }) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [!b.sideBar && /* @__PURE__ */ jsx("div", {
@@ -51914,20 +51978,20 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51914
51978
  children: /* @__PURE__ */ jsx(SidebarMemoized, {
51915
51979
  config: {},
51916
51980
  columns: B,
51917
- fieldCounts: iQ,
51918
- hits: tQ,
51981
+ fieldCounts: rQ,
51982
+ hits: eQ,
51919
51983
  indexPatterns: [t],
51920
- onAddField: qZ,
51921
- onAddFilter: QZ,
51922
- onRemoveField: JZ,
51984
+ onAddField: KZ,
51985
+ onAddFilter: ZZ,
51986
+ onRemoveField: qZ,
51923
51987
  selectedIndexPattern: t,
51924
51988
  setIndexPattern: () => {},
51925
51989
  setAppState: M,
51926
51990
  state: A,
51927
51991
  distinctParams: P,
51928
51992
  onDistinctParamsChange: I,
51929
- total: aQ,
51930
- onFieldAgg: uQ,
51993
+ total: iQ,
51994
+ onFieldAgg: lQ,
51931
51995
  whetherToSample: s.whetherToSample,
51932
51996
  sampleSize: s.sampleSize,
51933
51997
  topNumber: s.topNumber,
@@ -51956,35 +52020,36 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
51956
52020
  collapseState: b,
51957
52021
  setCollapseState: x,
51958
52022
  took: w.took || 1,
51959
- total: aQ,
52023
+ total: iQ,
51960
52024
  timeChartProps: Q,
51961
- onDownloadQuery: fQ,
52025
+ onDownloadQuery: dQ,
51962
52026
  downloading: G === "downloading",
51963
52027
  exportMaxSize: g
51964
52028
  }),
51965
- !b.histogram && rQ.chartAggConfigs && Z && tQ.length !== 0 && /* @__PURE__ */ jsx("div", {
52029
+ !b.histogram && nQ.chartAggConfigs && Z && eQ.length !== 0 && /* @__PURE__ */ jsx("div", {
51966
52030
  className: "dscTimechart",
51967
52031
  children: /* @__PURE__ */ jsx("div", {
51968
52032
  className: "h-100px dscHistogramGrid",
51969
52033
  children: /* @__PURE__ */ jsx(DiscoverHistogram, {
51970
52034
  chartData: Z,
51971
- timefilterUpdateHandler: $Z,
51972
- theme: m
52035
+ timefilterUpdateHandler: QZ,
52036
+ theme: m,
52037
+ timeZone: S
51973
52038
  })
51974
52039
  })
51975
52040
  }),
51976
- tQ && tQ.length > 0 ? /* @__PURE__ */ jsx(table_default, {
52041
+ eQ && eQ.length > 0 ? /* @__PURE__ */ jsx(table_default, {
51977
52042
  columns: B,
51978
52043
  sortOrder: A.sort || [],
51979
52044
  indexPattern: t,
51980
- onFilter: QZ,
51981
- onRemoveColumn: JZ,
51982
- onMoveColumn: YZ,
51983
- onAddColumn: qZ,
51984
- onChangeSortOrder: ZZ,
51985
- document: lQ,
51986
- hits: tQ,
51987
- hitsTotal: aQ,
52045
+ onFilter: ZZ,
52046
+ onRemoveColumn: qZ,
52047
+ onMoveColumn: JZ,
52048
+ onAddColumn: KZ,
52049
+ onChangeSortOrder: XZ,
52050
+ document: cQ,
52051
+ hits: eQ,
52052
+ hitsTotal: iQ,
51988
52053
  queryFrom: R,
51989
52054
  setQueryFrom: (e) => {
51990
52055
  J("next"), z(e);
@@ -52024,12 +52089,15 @@ var components_default = (e) => {
52024
52089
  }), filterManager.removeAll(), timefilter.setTime({
52025
52090
  from: "",
52026
52091
  to: ""
52027
- })), b(n);
52092
+ }), timefilter.setRefreshInterval({ pause: !0 })), b(n);
52028
52093
  let a = [n];
52029
52094
  a.get = (e) => Promise.resolve(a.find((t) => t.id == e)), setIndexPatterns(a), x.current.loadedIndex = e, x.current.pendingIndex = null;
52030
52095
  };
52031
52096
  return useEffect(() => {
52032
- o && services.data.autocomplete.setup({ onSuggestions: o }), i && services.indexPatternService.setup({ getIndexPattern: i });
52097
+ o && services.data.autocomplete.setup({
52098
+ autocomplete: services.data.autocomplete,
52099
+ onSuggestions: o
52100
+ }), i && services.indexPatternService.setup({ getIndexPattern: i });
52033
52101
  }, []), useEffect(() => {
52034
52102
  if (!Array.isArray(n) || n.length === 0) return;
52035
52103
  let e = n.find((e) => e.name === s?.index);