@infinilabs/discover 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{common-CelpNJ_P.cjs → common-DFB-Krii.cjs} +6 -6
- package/dist/{common-6ueRhcZj.js → common-JxI0fO97.js} +273 -268
- package/dist/{components-CE9wRhe0.cjs → components-BKgGEqZw.cjs} +30 -30
- package/dist/{components-CrZSuHV0.js → components-pN-LOhT1.js} +128 -126
- package/dist/{filter_label-DALDJinr.js → filter_label-BOgCXkdp.js} +2 -2
- package/dist/{filter_label-306D4xEc.cjs → filter_label-BVGFM735.cjs} +1 -1
- package/dist/{filter_operators-B5A15sKd.cjs → filter_operators-C_4il2ok.cjs} +1 -1
- package/dist/{filter_operators-DuazgKuH.js → filter_operators-f_RipGT3.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/public-Bx6wrsVs.cjs +3 -0
- package/dist/public-Dl-sayDC.js +1772 -0
- package/dist/{query_bar_top_row-BkGqf3Jb.js → query_bar_top_row-83f1zxSt.js} +5 -5
- package/dist/query_bar_top_row-DDjAUkXM.cjs +1 -0
- package/dist/{query_bar_top_row-D8E4Yeez.js → query_bar_top_row-DYPW2fOi.js} +2 -2
- package/dist/{query_bar_top_row-D6zSvxU6.cjs → query_bar_top_row-DtRPVxwD.cjs} +1 -1
- package/dist/query_string_input-4uM0Yc8u.cjs +1 -0
- package/dist/{query_string_input-9NdNKVYE.js → query_string_input-CW47Aiqa.js} +3 -3
- package/dist/{query_string_input-CPlUSSQb.cjs → query_string_input-DCG_NvC6.cjs} +1 -1
- package/dist/{query_string_input-BmPfUSeL.js → query_string_input-umBiW2tP.js} +1 -1
- package/dist/{search_bar-h6E7kqZs.cjs → search_bar-2k0kTSU-.cjs} +1 -1
- package/dist/{search_bar-BAeoohZi.js → search_bar-CTJsCo8R.js} +6 -6
- package/package.json +1 -1
- package/dist/public-CZIzm_ir.js +0 -1781
- package/dist/public-wwZIE8-Q.cjs +0 -3
- package/dist/query_bar_top_row-B0YEZZ5h.cjs +0 -1
- package/dist/query_string_input-BckKyWPD.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-
|
|
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-Dl-sayDC.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-
|
|
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
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";
|
|
@@ -1265,46 +1265,46 @@ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
var M = p, N = m, P = f, F = u, I = n, L = g, R = a, z = S, B = x, V = i, U = s, W = o, G = y, K = !1;
|
|
1268
|
-
function
|
|
1269
|
-
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
1268
|
+
function UZ(e) {
|
|
1269
|
+
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), J(e) || A(e) === p;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function J(e) {
|
|
1272
1272
|
return A(e) === m;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function WZ(e) {
|
|
1275
1275
|
return A(e) === f;
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Z(e) {
|
|
1278
1278
|
return A(e) === u;
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function GZ(e) {
|
|
1281
1281
|
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Q(e) {
|
|
1284
1284
|
return A(e) === g;
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function KZ(e) {
|
|
1287
1287
|
return A(e) === a;
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function qZ(e) {
|
|
1290
1290
|
return A(e) === S;
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function JZ(e) {
|
|
1293
1293
|
return A(e) === x;
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function YZ(e) {
|
|
1296
1296
|
return A(e) === i;
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function XZ(e) {
|
|
1299
1299
|
return A(e) === s;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function ZZ(e) {
|
|
1302
1302
|
return A(e) === o;
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function QZ(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 =
|
|
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 = UZ, e.isConcurrentMode = J, e.isContextConsumer = WZ, e.isContextProvider = Z, e.isElement = GZ, e.isForwardRef = Q, e.isFragment = KZ, e.isLazy = qZ, e.isMemo = JZ, e.isPortal = YZ, e.isProfiler = XZ, e.isStrictMode = ZZ, e.isSuspense = QZ, 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();
|
|
@@ -3158,31 +3158,31 @@ function highlight_default(e, t) {
|
|
|
3158
3158
|
style: _objectSpread(_objectSpread({}, s["code[class*=\"language-\"]"]), s[`code[class*="language-${i}"]`])
|
|
3159
3159
|
} : p, g = n.useInlineStyles, y = g === void 0 ? !0 : g, b = n.showLineNumbers, x = b === void 0 ? !1 : b, S = n.showInlineLineNumbers, C = S === void 0 ? !0 : S, w = n.startingLineNumber, T = w === void 0 ? 1 : w, E = n.lineNumberContainerStyle, O = n.lineNumberStyle, A = O === void 0 ? {} : O, M = n.wrapLines, N = n.wrapLongLines, P = N === void 0 ? !1 : N, F = n.lineProps, I = F === void 0 ? {} : F, L = n.renderer, R = n.PreTag, z = R === void 0 ? "pre" : R, B = n.CodeTag, V = B === void 0 ? "code" : B, U = n.code, W = U === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : U, G = n.astGenerator, K = _objectWithoutProperties$1(n, _excluded$1);
|
|
3160
3160
|
G ||= e;
|
|
3161
|
-
var
|
|
3161
|
+
var UZ = x ? /* @__PURE__ */ React.createElement(AllLineNumbers, {
|
|
3162
3162
|
containerStyle: E,
|
|
3163
3163
|
codeStyle: m.style || {},
|
|
3164
3164
|
numberStyle: A,
|
|
3165
3165
|
startingLineNumber: T,
|
|
3166
3166
|
codeString: W
|
|
3167
|
-
}) : null,
|
|
3168
|
-
className: K.className ? `${
|
|
3167
|
+
}) : null, J = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, WZ = isHighlightJs(G) ? "hljs" : "prismjs", Z = y ? Object.assign({}, K, { style: Object.assign({}, J, f) }) : Object.assign({}, K, {
|
|
3168
|
+
className: K.className ? `${WZ} ${K.className}` : WZ,
|
|
3169
3169
|
style: Object.assign({}, f)
|
|
3170
3170
|
});
|
|
3171
|
-
if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z,
|
|
3171
|
+
if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z, Z, UZ, /* @__PURE__ */ React.createElement(V, m, W));
|
|
3172
3172
|
(M === void 0 && L || P) && (M = !0), L ||= defaultRenderer;
|
|
3173
|
-
var
|
|
3173
|
+
var GZ = [{
|
|
3174
3174
|
type: "text",
|
|
3175
3175
|
value: W
|
|
3176
|
-
}],
|
|
3176
|
+
}], Q = getCodeTree({
|
|
3177
3177
|
astGenerator: G,
|
|
3178
3178
|
language: i,
|
|
3179
3179
|
code: W,
|
|
3180
|
-
defaultCodeValue:
|
|
3180
|
+
defaultCodeValue: GZ
|
|
3181
3181
|
});
|
|
3182
|
-
|
|
3183
|
-
var
|
|
3184
|
-
return /* @__PURE__ */ React.createElement(z,
|
|
3185
|
-
rows:
|
|
3182
|
+
Q.language === null && (Q.value = GZ);
|
|
3183
|
+
var KZ = T + (W.match(/\n/g)?.length ?? 0), qZ = processLines(Q, M, I, x, C, T, KZ, A, P);
|
|
3184
|
+
return /* @__PURE__ */ React.createElement(z, Z, /* @__PURE__ */ React.createElement(V, m, !C && UZ, L({
|
|
3185
|
+
rows: qZ,
|
|
3186
3186
|
stylesheet: s,
|
|
3187
3187
|
useInlineStyles: y
|
|
3188
3188
|
})));
|
|
@@ -21714,7 +21714,7 @@ function Ve({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: i, lan
|
|
|
21714
21714
|
let [A, M] = useState(!1), [N, P] = useState(!0), F = useRef(null), I = useRef(null), L = useRef(null), R = useRef(T), z = useRef(w), B = useRef(), V = useRef(i), U = se(o), W = useRef(!1), G = useRef(!1);
|
|
21715
21715
|
k(() => {
|
|
21716
21716
|
let e = loader.init();
|
|
21717
|
-
return e.then((e) => (F.current = e) && P(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => I.current ?
|
|
21717
|
+
return e.then((e) => (F.current = e) && P(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => I.current ? UZ() : e.cancel();
|
|
21718
21718
|
}), l(() => {
|
|
21719
21719
|
let s = h$1(F.current, e || i || "", t || a || "", o || n || "");
|
|
21720
21720
|
s !== I.current?.getModel() && (g && _.set(U, I.current?.saveViewState()), I.current?.setModel(s), g && I.current?.restoreViewState(_.get(o)));
|
|
@@ -21784,7 +21784,7 @@ function Ve({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: i, lan
|
|
|
21784
21784
|
}
|
|
21785
21785
|
return () => {};
|
|
21786
21786
|
}, [A, O]);
|
|
21787
|
-
function
|
|
21787
|
+
function UZ() {
|
|
21788
21788
|
B.current?.dispose(), y ? g && _.set(o, I.current.saveViewState()) : I.current.getModel()?.dispose(), I.current.dispose();
|
|
21789
21789
|
}
|
|
21790
21790
|
return React.createElement(H, {
|
|
@@ -51636,8 +51636,8 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51636
51636
|
hits: []
|
|
51637
51637
|
},
|
|
51638
51638
|
aggregations: { counts: { buckets: [] } }
|
|
51639
|
-
}), E = useRef();
|
|
51640
|
-
useEffect(() => {
|
|
51639
|
+
}), E = useRef(), A = useRef(), M = useRef(s);
|
|
51640
|
+
M.current = s, useEffect(() => {
|
|
51641
51641
|
s.range && s.range[0] && s.range[1] && timefilter.setTime({
|
|
51642
51642
|
from: s.range[0],
|
|
51643
51643
|
to: s.range[1]
|
|
@@ -51646,67 +51646,67 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51646
51646
|
store: FilterStateStore.APP_STATE
|
|
51647
51647
|
})));
|
|
51648
51648
|
}, []);
|
|
51649
|
-
let [
|
|
51649
|
+
let [N, P] = useState({
|
|
51650
51650
|
columns: s.columns || ["_source"],
|
|
51651
51651
|
interval: "15s",
|
|
51652
51652
|
sort: s.sort || []
|
|
51653
|
-
}),
|
|
51653
|
+
}), F = {
|
|
51654
51654
|
type: "string",
|
|
51655
51655
|
field: "",
|
|
51656
51656
|
enabled: !1
|
|
51657
|
-
}, [
|
|
51658
|
-
|
|
51659
|
-
...
|
|
51657
|
+
}, [I, L] = React.useState(F), R = (e) => {
|
|
51658
|
+
L({
|
|
51659
|
+
...I,
|
|
51660
51660
|
...e
|
|
51661
51661
|
});
|
|
51662
51662
|
};
|
|
51663
51663
|
useMemo(() => {
|
|
51664
|
-
|
|
51665
|
-
...
|
|
51666
|
-
type:
|
|
51667
|
-
field:
|
|
51664
|
+
L({
|
|
51665
|
+
...I,
|
|
51666
|
+
type: F.type,
|
|
51667
|
+
field: F.field
|
|
51668
51668
|
});
|
|
51669
51669
|
}, [t]), useEffect(() => {
|
|
51670
|
-
if (t) if (
|
|
51671
|
-
...
|
|
51672
|
-
type:
|
|
51673
|
-
field:
|
|
51670
|
+
if (t) if (L({
|
|
51671
|
+
...I,
|
|
51672
|
+
type: F.type,
|
|
51673
|
+
field: F.field
|
|
51674
51674
|
}), t?.timeFieldName) {
|
|
51675
51675
|
let e = [[t?.timeFieldName, "desc"]];
|
|
51676
|
-
|
|
51677
|
-
...
|
|
51676
|
+
P({
|
|
51677
|
+
...N,
|
|
51678
51678
|
columns: ["_source"],
|
|
51679
51679
|
sort: e
|
|
51680
|
-
}),
|
|
51681
|
-
} else
|
|
51682
|
-
...
|
|
51680
|
+
}), A.current?.({ sort: e });
|
|
51681
|
+
} else P({
|
|
51682
|
+
...N,
|
|
51683
51683
|
columns: ["_source"],
|
|
51684
51684
|
sort: []
|
|
51685
|
-
}),
|
|
51685
|
+
}), A.current?.({ sort: [] });
|
|
51686
51686
|
}, [t]);
|
|
51687
|
-
let
|
|
51687
|
+
let z = useMemo(() => {
|
|
51688
51688
|
let e = new Subscription();
|
|
51689
51689
|
return e.add(timefilter.getAutoRefreshFetch$().subscribe({ next: () => {
|
|
51690
|
-
|
|
51690
|
+
A.current?.();
|
|
51691
51691
|
} })), e;
|
|
51692
|
-
}, [t]), [
|
|
51692
|
+
}, [t]), [B, V] = React.useState(0), U = N.columns, G = useCallback(async (e) => {
|
|
51693
51693
|
if (!t || !o) return;
|
|
51694
|
-
|
|
51695
|
-
let n = e?.sort ||
|
|
51694
|
+
Z((e) => e === "next" ? e : "loading"), e?.isScrollLoad || V(0);
|
|
51695
|
+
let n = e?.sort || N.sort, i = getSearchParams(t, e?.interval || N.interval, e?.sort || N.sort, e?.aggs || null, I || {}, e?.isScrollLoad ? B : 0, !1, 20, S), a = (0, import_lodash.cloneDeep)(i?.body?.query?.bool?.filter || []);
|
|
51696
51696
|
if (a.length > 0) {
|
|
51697
51697
|
let t = a[a.length - 1];
|
|
51698
51698
|
t?.hasOwnProperty("range") && (e?.rangeFilter ? (a[a.length - 1] = (0, import_lodash.cloneDeep)(e?.rangeFilter), i.body.query.bool.filter = a) : E.current = t);
|
|
51699
51699
|
}
|
|
51700
|
-
let { index:
|
|
51701
|
-
(!
|
|
51702
|
-
let { query:
|
|
51700
|
+
let { index: s, body: f } = i, p = await o(s, f);
|
|
51701
|
+
(!p || !p.hits) && (p.hits = { hits: [] }), T(p);
|
|
51702
|
+
let { query: m } = queryStringManager.getQuery(), g = filterManager.getFilters(), y = M.current;
|
|
51703
51703
|
u({
|
|
51704
|
-
...
|
|
51705
|
-
query:
|
|
51704
|
+
...y,
|
|
51705
|
+
query: m == y.query ? y.query : m,
|
|
51706
51706
|
range: [timefilter._time?.from, timefilter._time?.to],
|
|
51707
51707
|
sort: n,
|
|
51708
51708
|
timeField: t.timeFieldName,
|
|
51709
|
-
filters:
|
|
51709
|
+
filters: g.map((e) => {
|
|
51710
51710
|
let { meta: t, query: n } = e, { value: i, ...a } = t || {};
|
|
51711
51711
|
return {
|
|
51712
51712
|
meta: a,
|
|
@@ -51715,31 +51715,30 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51715
51715
|
})
|
|
51716
51716
|
});
|
|
51717
51717
|
}, [
|
|
51718
|
-
|
|
51719
|
-
|
|
51718
|
+
N.interval,
|
|
51719
|
+
N.sort,
|
|
51720
51720
|
t,
|
|
51721
|
-
|
|
51722
|
-
|
|
51721
|
+
I,
|
|
51722
|
+
B,
|
|
51723
51723
|
t?.timeFieldName,
|
|
51724
|
-
s,
|
|
51725
51724
|
S
|
|
51726
51725
|
]);
|
|
51727
|
-
useEffect(() => {
|
|
51728
|
-
|
|
51726
|
+
A.current = G, useEffect(() => {
|
|
51727
|
+
B > 0 && A.current?.({
|
|
51729
51728
|
isScrollLoad: !0,
|
|
51730
51729
|
rangeFilter: E.current
|
|
51731
51730
|
});
|
|
51732
|
-
}, [
|
|
51733
|
-
isFrist ? isFrist = !isFrist :
|
|
51731
|
+
}, [B]), useEffect(() => {
|
|
51732
|
+
isFrist ? isFrist = !isFrist : A.current?.();
|
|
51734
51733
|
}, [e.indices]);
|
|
51735
|
-
let
|
|
51736
|
-
e &&
|
|
51737
|
-
...
|
|
51734
|
+
let UZ = (e) => {
|
|
51735
|
+
e && P({
|
|
51736
|
+
...N,
|
|
51738
51737
|
interval: e
|
|
51739
51738
|
});
|
|
51740
|
-
}, [
|
|
51741
|
-
if (!w.hits.hits || w.hits.hits.length == 0) return
|
|
51742
|
-
if (!t?.timeFieldName || !w.aggregations || !w.aggregations.counts) return
|
|
51739
|
+
}, [J, Z] = useState("loading"), { histogramData: GZ, timeChartProps: Q } = useMemo(() => {
|
|
51740
|
+
if (!w.hits.hits || w.hits.hits.length == 0) return Z("none"), {};
|
|
51741
|
+
if (!t?.timeFieldName || !w.aggregations || !w.aggregations.counts) return Z("ready"), {
|
|
51743
51742
|
histogramData: null,
|
|
51744
51743
|
timeChartProps: null
|
|
51745
51744
|
};
|
|
@@ -51747,7 +51746,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51747
51746
|
w.aggregations.counts.buckets.forEach((t) => {
|
|
51748
51747
|
e.push(t);
|
|
51749
51748
|
});
|
|
51750
|
-
let n, i = getTimeBuckets(
|
|
51749
|
+
let n, i = getTimeBuckets(N.interval);
|
|
51751
51750
|
if (i) n = timefilter;
|
|
51752
51751
|
else {
|
|
51753
51752
|
let t = e[0]?.key, a = e[e.length - 1]?.key;
|
|
@@ -51761,7 +51760,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51761
51760
|
o.setBounds(e), o.setInterval(w.aggregations.counts.interval), i = o;
|
|
51762
51761
|
}
|
|
51763
51762
|
}
|
|
51764
|
-
if (!i) return
|
|
51763
|
+
if (!i) return Z("ready"), {
|
|
51765
51764
|
histogramData: null,
|
|
51766
51765
|
timeChartProps: null
|
|
51767
51766
|
};
|
|
@@ -51795,15 +51794,15 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51795
51794
|
label: "Count"
|
|
51796
51795
|
}
|
|
51797
51796
|
};
|
|
51798
|
-
|
|
51797
|
+
Z("ready");
|
|
51799
51798
|
let u = {
|
|
51800
51799
|
timeRange: {
|
|
51801
51800
|
from: n?.getBounds().min,
|
|
51802
51801
|
to: n?.getBounds().max
|
|
51803
51802
|
},
|
|
51804
|
-
stateInterval:
|
|
51803
|
+
stateInterval: N.interval || w.aggregations.counts.interval || "15s",
|
|
51805
51804
|
options: intervalOptions,
|
|
51806
|
-
onIntervalChange:
|
|
51805
|
+
onIntervalChange: UZ,
|
|
51807
51806
|
bucketInterval: {
|
|
51808
51807
|
...a,
|
|
51809
51808
|
timeFieldName: t?.timeFieldName
|
|
@@ -51817,37 +51816,37 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51817
51816
|
w,
|
|
51818
51817
|
t,
|
|
51819
51818
|
t?.timeFieldName,
|
|
51820
|
-
|
|
51819
|
+
N.interval
|
|
51821
51820
|
]);
|
|
51822
51821
|
useEffect(() => {
|
|
51823
51822
|
u((e) => ({
|
|
51824
51823
|
...e,
|
|
51825
|
-
columns:
|
|
51824
|
+
columns: N.columns
|
|
51826
51825
|
}));
|
|
51827
|
-
}, [
|
|
51826
|
+
}, [N.columns]);
|
|
51828
51827
|
let { onAddColumn: KZ, onRemoveColumn: qZ, onMoveColumn: JZ, onSetColumns: YZ } = useMemo(() => getStateColumnActions({
|
|
51829
51828
|
indexPattern: t,
|
|
51830
|
-
setAppState:
|
|
51831
|
-
state:
|
|
51829
|
+
setAppState: P,
|
|
51830
|
+
state: N,
|
|
51832
51831
|
useNewFieldsApi: !1
|
|
51833
|
-
}), [t,
|
|
51834
|
-
|
|
51835
|
-
...
|
|
51832
|
+
}), [t, N]), XZ = useCallback((e) => {
|
|
51833
|
+
P({
|
|
51834
|
+
...N,
|
|
51836
51835
|
sort: e
|
|
51837
|
-
}),
|
|
51838
|
-
}, [
|
|
51836
|
+
}), A.current?.({ sort: [...e].reverse() });
|
|
51837
|
+
}, [N, t]), ZZ = useCallback((e, n, i) => {
|
|
51839
51838
|
typeof e == "string" || e.name;
|
|
51840
51839
|
let a = generateFilters(filterManager, e, n, i, String(t.id));
|
|
51841
|
-
filterManager.addFilters(a),
|
|
51842
|
-
}, [t,
|
|
51840
|
+
filterManager.addFilters(a), G();
|
|
51841
|
+
}, [t, G]), QZ = (e) => {
|
|
51843
51842
|
timefilter.setTime({
|
|
51844
51843
|
from: moment_default(e.from).toISOString(),
|
|
51845
51844
|
to: moment_default(e.to).toISOString(),
|
|
51846
51845
|
mode: "absolute"
|
|
51847
|
-
}),
|
|
51846
|
+
}), G();
|
|
51848
51847
|
}, $Z = w.hits.hits || [], [eQ, tQ] = useState([]);
|
|
51849
51848
|
useMemo(() => {
|
|
51850
|
-
$Z.length > 0 ? tQ(
|
|
51849
|
+
$Z.length > 0 ? tQ(B > 0 ? (e) => [...e, ...$Z] : $Z) : B === 0 && tQ([]);
|
|
51851
51850
|
}, [$Z]);
|
|
51852
51851
|
let nQ = {
|
|
51853
51852
|
savedSearch: {},
|
|
@@ -51855,7 +51854,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51855
51854
|
chartAggConfigs: {}
|
|
51856
51855
|
}, rQ = {};
|
|
51857
51856
|
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, [
|
|
51857
|
+
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, [G]), sQ = useCallback(async ({ _index: e, _id: t, _type: n }) => !1, [G]), cQ = useMemo(() => ({
|
|
51859
51858
|
saveDocument: oQ,
|
|
51860
51859
|
deleteDocument: sQ
|
|
51861
51860
|
}), [oQ, sQ]), lQ = async (e, n, i) => {
|
|
@@ -51884,7 +51883,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51884
51883
|
size: s.topNumber || 5,
|
|
51885
51884
|
shard_size: 25
|
|
51886
51885
|
} }
|
|
51887
|
-
}, f = getSearchParams(t,
|
|
51886
|
+
}, f = getSearchParams(t, N.interval, N.sort, u, I || {}, 0, !0, 0, S), p = f?.body?.query?.bool?.filter || [];
|
|
51888
51887
|
if (p.length > 0 && E.current) {
|
|
51889
51888
|
let e = p[p.length - 1], t = (0, import_lodash.cloneDeep)(E.current);
|
|
51890
51889
|
e?.hasOwnProperty("range") ? (p[p.length - 1] = t, f.body.query.bool.filter = p) : p.push(t), f.body.query.bool.filter = p;
|
|
@@ -51895,18 +51894,18 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51895
51894
|
i(e || [], t || 0, y?.error);
|
|
51896
51895
|
}
|
|
51897
51896
|
}, uQ = async (e) => {
|
|
51898
|
-
|
|
51897
|
+
z.unsubscribe(), t.timeFieldName = e, n(t);
|
|
51899
51898
|
let i = [[e, "desc"]];
|
|
51900
|
-
|
|
51901
|
-
...
|
|
51899
|
+
P({
|
|
51900
|
+
...N,
|
|
51902
51901
|
columns: ["_source"],
|
|
51903
51902
|
sort: i
|
|
51904
|
-
}),
|
|
51903
|
+
}), G({ sort: i });
|
|
51905
51904
|
}, dQ = async (e, n, i) => {
|
|
51906
51905
|
if (!o) return;
|
|
51907
|
-
|
|
51908
|
-
let { index: a, body: s } = getSearchParams(t,
|
|
51909
|
-
i?.(f,
|
|
51906
|
+
Z("downloading");
|
|
51907
|
+
let { index: a, body: s } = getSearchParams(t, N.interval, N.sort, null, I || {}, e, !1, n, S), u = await o(a, s), f = Array.isArray(u?.hits?.hits) ? u?.hits?.hits : [], p = t.timeFieldName;
|
|
51908
|
+
i?.(f, U, p), Z("ready");
|
|
51910
51909
|
};
|
|
51911
51910
|
return /* @__PURE__ */ jsxs(Card, {
|
|
51912
51911
|
className: "h-full",
|
|
@@ -51932,16 +51931,16 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51932
51931
|
queryString: queryStringManager,
|
|
51933
51932
|
timefilter,
|
|
51934
51933
|
storage,
|
|
51935
|
-
onQuerySubmit:
|
|
51934
|
+
onQuerySubmit: G,
|
|
51936
51935
|
services,
|
|
51937
51936
|
dateRangeFrom: s.range && s.range[0],
|
|
51938
51937
|
dateRangeTo: s.range && s.range[1],
|
|
51939
51938
|
selectedIndexPattern: t,
|
|
51940
51939
|
setIndexPattern: (e) => {
|
|
51941
|
-
|
|
51940
|
+
z.unsubscribe(), i(e);
|
|
51942
51941
|
},
|
|
51943
51942
|
indices: e.indices,
|
|
51944
|
-
histogramData:
|
|
51943
|
+
histogramData: GZ,
|
|
51945
51944
|
timefilterUpdateHandler: QZ,
|
|
51946
51945
|
histogramOpts: nQ,
|
|
51947
51946
|
timeSetting: {
|
|
@@ -51957,7 +51956,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51957
51956
|
value: t
|
|
51958
51957
|
})),
|
|
51959
51958
|
onTimeSettingChange: ({ timeField: e, timeInterval: n }) => {
|
|
51960
|
-
t.timeFieldName !== e && uQ(e), Q?.stateInterval !== n &&
|
|
51959
|
+
t.timeFieldName !== e && uQ(e), Q?.stateInterval !== n && UZ(n);
|
|
51961
51960
|
},
|
|
51962
51961
|
timeZone: S,
|
|
51963
51962
|
onTimeZoneChange: C,
|
|
@@ -51969,15 +51968,15 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51969
51968
|
className: "flex-1 min-h-0 relative",
|
|
51970
51969
|
children: /* @__PURE__ */ jsx("div", {
|
|
51971
51970
|
className: "absolute inset-0 flex border-t border-t-solid border-[var(--ant-color-border)]",
|
|
51972
|
-
children:
|
|
51971
|
+
children: J === "none" && B === 0 ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(DiscoverNoResults, {
|
|
51973
51972
|
timeFieldName: nQ.timefield,
|
|
51974
|
-
queryLanguage:
|
|
51973
|
+
queryLanguage: N.query?.language || "",
|
|
51975
51974
|
range: s.range
|
|
51976
51975
|
}) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [!b.sideBar && /* @__PURE__ */ jsx("div", {
|
|
51977
51976
|
className: "h-full w-300px p-8px border-r border-r-solid border-[var(--ant-color-border)] overflow-y-auto infini-discover-side",
|
|
51978
51977
|
children: /* @__PURE__ */ jsx(SidebarMemoized, {
|
|
51979
51978
|
config: {},
|
|
51980
|
-
columns:
|
|
51979
|
+
columns: U,
|
|
51981
51980
|
fieldCounts: rQ,
|
|
51982
51981
|
hits: eQ,
|
|
51983
51982
|
indexPatterns: [t],
|
|
@@ -51986,10 +51985,10 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51986
51985
|
onRemoveField: qZ,
|
|
51987
51986
|
selectedIndexPattern: t,
|
|
51988
51987
|
setIndexPattern: () => {},
|
|
51989
|
-
setAppState:
|
|
51990
|
-
state:
|
|
51991
|
-
distinctParams:
|
|
51992
|
-
onDistinctParamsChange:
|
|
51988
|
+
setAppState: P,
|
|
51989
|
+
state: N,
|
|
51990
|
+
distinctParams: I,
|
|
51991
|
+
onDistinctParamsChange: R,
|
|
51993
51992
|
total: iQ,
|
|
51994
51993
|
onFieldAgg: lQ,
|
|
51995
51994
|
whetherToSample: s.whetherToSample,
|
|
@@ -52006,7 +52005,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
52006
52005
|
className: "flex-1 flex flex-col h-full overflow-hidden relative",
|
|
52007
52006
|
children: [
|
|
52008
52007
|
/* @__PURE__ */ jsx("div", {
|
|
52009
|
-
style: { display:
|
|
52008
|
+
style: { display: J !== "loading" && J !== "downloading" ? "none" : "" },
|
|
52010
52009
|
children: /* @__PURE__ */ jsx("div", {
|
|
52011
52010
|
className: "dscOverlay",
|
|
52012
52011
|
children: /* @__PURE__ */ jsx(LoadingSpinner, {})
|
|
@@ -52015,7 +52014,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
52015
52014
|
/* @__PURE__ */ jsx(ResultHeader, {
|
|
52016
52015
|
showCollapse: {
|
|
52017
52016
|
sideBar: !0,
|
|
52018
|
-
histogram: !!
|
|
52017
|
+
histogram: !!GZ
|
|
52019
52018
|
},
|
|
52020
52019
|
collapseState: b,
|
|
52021
52020
|
setCollapseState: x,
|
|
@@ -52023,15 +52022,15 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
52023
52022
|
total: iQ,
|
|
52024
52023
|
timeChartProps: Q,
|
|
52025
52024
|
onDownloadQuery: dQ,
|
|
52026
|
-
downloading:
|
|
52025
|
+
downloading: J === "downloading",
|
|
52027
52026
|
exportMaxSize: g
|
|
52028
52027
|
}),
|
|
52029
|
-
!b.histogram && nQ.chartAggConfigs &&
|
|
52028
|
+
!b.histogram && nQ.chartAggConfigs && GZ && eQ.length !== 0 && /* @__PURE__ */ jsx("div", {
|
|
52030
52029
|
className: "dscTimechart",
|
|
52031
52030
|
children: /* @__PURE__ */ jsx("div", {
|
|
52032
52031
|
className: "h-100px dscHistogramGrid",
|
|
52033
52032
|
children: /* @__PURE__ */ jsx(DiscoverHistogram, {
|
|
52034
|
-
chartData:
|
|
52033
|
+
chartData: GZ,
|
|
52035
52034
|
timefilterUpdateHandler: QZ,
|
|
52036
52035
|
theme: m,
|
|
52037
52036
|
timeZone: S
|
|
@@ -52039,8 +52038,8 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
52039
52038
|
})
|
|
52040
52039
|
}),
|
|
52041
52040
|
eQ && eQ.length > 0 ? /* @__PURE__ */ jsx(table_default, {
|
|
52042
|
-
columns:
|
|
52043
|
-
sortOrder:
|
|
52041
|
+
columns: U,
|
|
52042
|
+
sortOrder: N.sort || [],
|
|
52044
52043
|
indexPattern: t,
|
|
52045
52044
|
onFilter: ZZ,
|
|
52046
52045
|
onRemoveColumn: qZ,
|
|
@@ -52050,9 +52049,9 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
52050
52049
|
document: cQ,
|
|
52051
52050
|
hits: eQ,
|
|
52052
52051
|
hitsTotal: iQ,
|
|
52053
|
-
queryFrom:
|
|
52052
|
+
queryFrom: B,
|
|
52054
52053
|
setQueryFrom: (e) => {
|
|
52055
|
-
|
|
52054
|
+
Z("next"), V(e);
|
|
52056
52055
|
},
|
|
52057
52056
|
theme: m
|
|
52058
52057
|
}) : null
|
|
@@ -52094,7 +52093,10 @@ var components_default = (e) => {
|
|
|
52094
52093
|
a.get = (e) => Promise.resolve(a.find((t) => t.id == e)), setIndexPatterns(a), x.current.loadedIndex = e, x.current.pendingIndex = null;
|
|
52095
52094
|
};
|
|
52096
52095
|
return useEffect(() => {
|
|
52097
|
-
o && services.data.autocomplete.setup({
|
|
52096
|
+
o && services.data.autocomplete.setup({
|
|
52097
|
+
autocomplete: services.data.autocomplete,
|
|
52098
|
+
onSuggestions: o
|
|
52099
|
+
}), i && services.indexPatternService.setup({ getIndexPattern: i });
|
|
52098
52100
|
}, []), useEffect(() => {
|
|
52099
52101
|
if (!Array.isArray(n) || n.length === 0) return;
|
|
52100
52102
|
let e = n.find((e) => e.name === s?.index);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./lodash-Gv_ptthU.js";
|
|
2
2
|
import "./common-1_7zA8Zc.js";
|
|
3
3
|
import "./lib-Cdf3LT56.js";
|
|
4
|
-
import { W as FILTERS } from "./common-
|
|
5
|
-
import { n as existsOperator, r as isOneOfOperator } from "./filter_operators-
|
|
4
|
+
import { W as FILTERS } from "./common-JxI0fO97.js";
|
|
5
|
+
import { n as existsOperator, r as isOneOfOperator } from "./filter_operators-f_RipGT3.js";
|
|
6
6
|
import React, { Fragment } from "react";
|
|
7
7
|
import { EuiTextColor } from "@elastic/eui";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-Bt4DEX77.cjs`);require(`./lodash-DZJGw-mv.cjs`),require(`./common-CZAeFul_.cjs`),require(`./lib-BbQB6wY_.cjs`);const t=require(`./common-
|
|
1
|
+
const e=require(`./chunk-Bt4DEX77.cjs`);require(`./lodash-DZJGw-mv.cjs`),require(`./common-CZAeFul_.cjs`),require(`./lib-BbQB6wY_.cjs`);const t=require(`./common-DFB-Krii.cjs`),n=require(`./filter_operators-C_4il2ok.cjs`);let r=require(`react`);r=e.a(r);let i=require(`@elastic/eui`),a=require(`react/jsx-runtime`);function o({filter:e,valueLabel:o,filterLabelStatus:s}){let c=e.meta.negate?` 'NOT '`:``,l=e.meta.negate&&!e.meta.disabled?(0,a.jsx)(i.EuiTextColor,{color:`danger`,children:c}):c,u=e=>(0,a.jsx)(`span`,{className:`globalFilterLabel__value text-[var(--ant-color-success-active)]`,children:e});if(e.meta.alias!==null)return(0,a.jsxs)(r.Fragment,{children:[l,e.meta.alias,s&&(0,a.jsxs)(a.Fragment,{children:[`: `,u(o)]})]});switch(e.meta.type){case t.W.EXISTS:return(0,a.jsxs)(r.Fragment,{children:[l,e.meta.key,`: `,u(`${n.n.message}`)]});case t.W.GEO_BOUNDING_BOX:return(0,a.jsxs)(r.Fragment,{children:[l,e.meta.key,`: `,u(o)]});case t.W.GEO_POLYGON:return(0,a.jsxs)(r.Fragment,{children:[l,e.meta.key,`: `,u(o)]});case t.W.PHRASES:return(0,a.jsxs)(r.Fragment,{children:[l,e.meta.key,`: `,u(`${n.r.message} ${o}`)]});case t.W.QUERY_STRING:return(0,a.jsxs)(r.Fragment,{children:[l,u(`${o}`)]});case t.W.PHRASE:case t.W.RANGE:return(0,a.jsxs)(r.Fragment,{children:[l,e.meta.key,`: `,u(o)]});default:return(0,a.jsxs)(r.Fragment,{children:[l,u(`${JSON.stringify(e.query)||e.meta.value}`)]})}}exports.default=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./common-
|
|
1
|
+
const e=require(`./common-DFB-Krii.cjs`),t={message:`is`,type:e.W.PHRASE,negate:!1},n={message:`is not`,type:e.W.PHRASE,negate:!0},r={message:`is one of`,type:e.W.PHRASES,negate:!1,fieldTypes:[`string`,`number`,`date`,`ip`,`geo_point`,`geo_shape`]},i={message:`is not one of`,type:e.W.PHRASES,negate:!0,fieldTypes:[`string`,`number`,`date`,`ip`,`geo_point`,`geo_shape`]},a={message:`is between`,type:e.W.RANGE,negate:!1,fieldTypes:[`number`,`date`,`ip`]},o={message:`is not between`,type:e.W.RANGE,negate:!0,fieldTypes:[`number`,`date`,`ip`]},s={message:`exists`,type:e.W.EXISTS,negate:!1},c={message:`does not exist`,type:e.W.EXISTS,negate:!0},l=[t,n,r,i,a,o,s,c];Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
|