PageSourceSearch

https://bloggeressentials.site/8975/bundles/plugin/opensearchDashb…/opensearchDashboardsLegacy.plugin.js

js bloggeressentials.site collected 2026-10-01 16:18:49 UTC 11,045 bytes, 1 lines download raw bytes

1(function(modules){function webpackJsonpCallback(data){var chunkIds=data[0];var moreModules=data[1];var moduleId,chunkId,i=0,resolves=[];for(;i<chunkIds.length;i++){chunkId=chunkIds[i];if(Object.prototype.hasOwnProperty.call(installedChunks,chunkId)&&installedChunks[chunkId]){resolves.push(installedChunks[chunkId][0])}installedChunks[chunkId]=0}for(moduleId in moreModules){if(Object.prototype.hasOwnProperty.call(moreModules,moduleId)){modules[moduleId]=moreModules[moduleId]}}if(parentJsonpFunction)parentJsonpFunction(data);while(resolves.length){resolves.shift()()}}var installedModules={};var installedChunks={0:0};function jsonpScriptSrc(chunkId){return __webpack_require__.p+"opensearchDashboardsLegacy.chunk."+chunkId+".js"}function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.e=function requireEnsure(chunkId){var promises=[];var installedChunkData=installedChunks[chunkId];if(installedChunkData!==0){if(installedChunkData){promises.push(installedChunkData[2])}else{var promise=new Promise((function(resolve,reject){installedChunkData=installedChunks[chunkId]=[resolve,reject]}));promises.push(installedChunkData[2]=promise);var script=document.createElement("script");var onScriptComplete;script.charset="utf-8";script.timeout=120;if(__webpack_require__.nc){script.setAttribute("nonce",__webpack_require__.nc)}script.src=jsonpScriptSrc(chunkId);var error=new Error;onScriptComplete=function(event){script.onerror=script.onload=null;clearTimeout(timeout);var chunk=installedChunks[chunkId];if(chunk!==0){if(chunk){var errorType=event&&(event.type==="load"?"missing":event.type);var realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")";error.name="ChunkLoadError";error.type=errorType;error.request=realSrc;chunk[1](error)}installedChunks[chunkId]=undefined}};var timeout=setTimeout((function(){onScriptComplete({type:"timeout",target:script})}),12e4);script.onerror=script.onload=onScriptComplete;document.head.appendChild(script)}}return Promise.all(promises)};__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:true,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.t=function(value,mode){if(mode&1)value=__webpack_require__(value);if(mode&8)return value;if(mode&4&&typeof value==="object"&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:true,value:value});if(mode&2&&typeof value!="string")for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";__webpack_require__.oe=function(err){console.error(err);throw err};var jsonpArray=window["opensearchDashboardsLegacy_bundle_jsonpfunction"]=window["opensearchDashboardsLegacy_bundle_jsonpfunction"]||[];var oldJsonpFunction=jsonpArray.push.bind(jsonpArray);jsonpArray.push=webpackJsonpCallback;jsonpArray=jsonpArray.slice();for(var i=0;i<jsonpArray.length;i++)webpackJsonpCallback(jsonpArray[i]);var parentJsonpFunction=oldJsonpFunction;return __webpack_require__(__webpack_require__.s=2)})([function(module,exports){module.exports=__osdSharedDeps__.OsdI18n},function(module,exports){module.exports=__osdSharedDeps__.Lodash},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_val_loader_dist_cjs_js_key_opensearchDashboardsLegacy_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3);var _node_modules_val_loader_dist_cjs_js_key_opensearchDashboardsLegacy_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_val_loader_dist_cjs_js_key_opensearchDashboardsLegacy_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0__);__osdBundles__.define("plugin/opensearchDashboardsLegacy/public",__webpack_require__,4)},function(module,exports,__webpack_require__){__webpack_require__.p=window.__osdPublicPath__["opensearchDashboardsLegacy"]},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,"plugin",(function(){return public_plugin}));__webpack_require__.d(__webpack_exports__,"OpenSearchDashboardsLegacyPlugin",(function(){return plugin_OpenSearchDashboardsLegacyPlugin}));__webpack_require__.d(__webpack_exports__,"ToastNotifications",(function(){return ToastNotifications}));__webpack_require__.d(__webpack_exports__,"formatOpenSearchMsg",(function(){return formatOpenSearchMsg}));__webpack_require__.d(__webpack_exports__,"formatMsg",(function(){return formatMsg}));__webpack_require__.d(__webpack_exports__,"formatStack",(function(){return formatStack}));__webpack_require__.d(__webpack_exports__,"addFatalError",(function(){return addFatalError}));function getDashboardConfig(hideWriteControls){let _hideWriteControls=hideWriteControls;return{turnHideWriteControlsOn(){_hideWriteControls=true},getHideWriteControls(){return _hideWriteControls}}}function buildCSS(){let maxHeight=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let truncateGradientHeight=arguments.length>1&&arguments[1]!==undefined?arguments[1]:15;return`\n.truncate-by-height {\n  max-height: ${maxHeight>0?`${maxHeight}px !important`:"none"};\n  display: inline-block;\n}\n.truncate-by-height:before {\n  top:  ${maxHeight>0?maxHeight-truncateGradientHeight:truncateGradientHeight*-1}px;\n}\n`}function injectHeaderStyle(uiSettings){const style=document.createElement("style");style.setAttribute("id","style-compile");document.getElementsByTagName("head")[0].appendChild(style);uiSettings.get$("truncate:maxHeight").subscribe(value=>{style.innerHTML=buildCSS(value)})}class plugin_OpenSearchDashboardsLegacyPlugin{constructor(initializerContext){this.initializerContext=initializerContext}setup(core){return{}}start(_ref){var _application$capabili;let{application:application,http:{basePath:basePath},uiSettings:uiSettings}=_ref;injectHeaderStyle(uiSettings);return{dashboardConfig:getDashboardConfig(!((_application$capabili=application.capabilities)!==null&&_application$capabili!==void 0&&(_application$capabili=_application$capabili.dashboard)!==null&&_application$capabili!==void 0&&_application$capabili.showWriteControls)),loadFontAwesome:async()=>{await __webpack_require__.e(1).then(__webpack_require__.bind(null,27))},config:this.initializerContext.config.get()}}}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class ToastNotifications{constructor(toasts){this.toasts=toasts;_defineProperty(this,"list",[]);_defineProperty(this,"onChangeCallback",void 0);_defineProperty(this,"onChange",callback=>{this.onChangeCallback=callback});_defineProperty(this,"add",toastOrTitle=>this.toasts.add(toastOrTitle));_defineProperty(this,"remove",toast=>this.toasts.remove(toast));_defineProperty(this,"addSuccess",toastOrTitle=>this.toasts.addSuccess(toastOrTitle));_defineProperty(this,"addWarning",toastOrTitle=>this.toasts.addWarning(toastOrTitle));_defineProperty(this,"addDanger",toastOrTitle=>this.toasts.addDanger(toastOrTitle));_defineProperty(this,"addError",(error,options)=>this.toasts.addError(error,options));toasts.get$().subscribe(list=>{this.list=list;if(this.onChangeCallback){this.onChangeCallback()}})}}var external_osdSharedDeps_Lodash_=__webpack_require__(1);var external_osdSharedDeps_Lodash_default=__webpack_require__.n(external_osdSharedDeps_Lodash_);const getRootCause=err=>external_osdSharedDeps_Lodash_default.a.get(err,"resp.error.root_cause");const formatOpenSearchMsg=err=>{const rootCause=getRootCause(err);if(!Array.isArray(rootCause)){return}return rootCause.map(cause=>cause.reason).join("\n")};var external_osdSharedDeps_OsdI18n_=__webpack_require__(0);const has=external_osdSharedDeps_Lodash_default.a.has;function formatMsg(err){let source=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";let message="";if(source){message+=source+": "}const opensearchMsg=formatOpenSearchMsg(err);if(typeof err==="string"){message+=err}else if(opensearchMsg){message+=opensearchMsg}else if(err instanceof Error){message+=formatMsg.describeError(err)}else if(has(err,"status")&&has(err,"data")){if(err.status===-1){message+=external_osdSharedDeps_OsdI18n_["i18n"].translate("opensearch_dashboards_legacy.notify.toaster.unavailableServerErrorMessage",{defaultMessage:"An HTTP request has failed to connect. "+"Please check if the OpenSearch Dashboards server is running and that your browser has a working connection, "+"or contact your system administrator."})}else{message+=external_osdSharedDeps_OsdI18n_["i18n"].translate("opensearch_dashboards_legacy.notify.toaster.errorStatusMessage",{defaultMessage:"Error {errStatus} {errStatusText}: {errMessage}",values:{errStatus:err.status,errStatusText:err.statusText,errMessage:err.data.message}})}}return message}formatMsg.describeError=function(err){if(!err)return undefined;if(err.shortMessage)return err.shortMessage;if(err.body&&err.body.message)return err.body.message;if(err.message)return err.message;return""+err};function formatStack(err){if(err.stack&&err.stack.indexOf(err.message)===-1){return external_osdSharedDeps_OsdI18n_["i18n"].translate("opensearch_dashboards_legacy.notify.toaster.errorMessage",{defaultMessage:`Error: {errorMessage}\n      {errorStack}`,values:{errorMessage:err.message,errorStack:err.stack}})}return err.stack}function addFatalError(fatalErrors,error,location){fatalErrors.add(error,location)}const public_plugin=initializerContext=>new plugin_OpenSearchDashboardsLegacyPlugin(initializerContext)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.