pandorafms/pandora_console/include/visual-console-client/vc.main.min.js

7 lines
111 KiB
JavaScript
Raw Normal View History

2021-08-05 11:57:31 +02:00
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"n",(function(){return i})),n.d(t,"m",(function(){return o})),n.d(t,"s",(function(){return s})),n.d(t,"k",(function(){return a})),n.d(t,"l",(function(){return l})),n.d(t,"o",(function(){return p})),n.d(t,"r",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"h",(function(){return m})),n.d(t,"p",(function(){return f})),n.d(t,"d",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return g})),n.d(t,"q",(function(){return y})),n.d(t,"c",(function(){return E})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return k})),n.d(t,"t",(function(){return M})),n.d(t,"e",(function(){return x}));n(9),n(4),n(5),n(12);var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){return"number"==typeof e?e:"string"==typeof e&&e.length>0&&!isNaN(parseInt(e))?parseInt(e):t}function o(e,t){return"number"==typeof e?e:"string"==typeof e&&e.length>0&&!isNaN(parseFloat(e))?parseFloat(e):t}function s(e){return null==e||0===e.length}function a(e,t){return"string"==typeof e&&e.length>0?e:t}function l(e){return"boolean"==typeof e?e:"number"==typeof e?e>0:"string"==typeof e&&("1"===e||"true"===e)}function c(e,t,n){void 0===n&&(n=" "),"number"==typeof e&&(e=""+e),"number"==typeof n&&(n=""+n);var r=t-e.length;if(0===r)return e;if(r<0)return e.substr(Math.abs(r));if(r===n.length)return""+n+e;if(r<n.length)return""+n.substring(0,r)+e;for(var i=Math.floor(r/n.length),o=r-n.length*i,s="",a=0;a<i;a++)s+=n;return 0===o?""+s+e:""+s+n.substring(0,o)+e}function p(e){return{x:i(e.x,0),y:i(e.y,0)}}function u(e){if(null==e.width||isNaN(parseInt(e.width))||null==e.height||isNaN(parseInt(e.height)))throw new TypeError("invalid size.");return{width:parseInt(e.width),height:parseInt(e.height)}}function d(e){return r({moduleId:i(e.moduleId,null),moduleName:a(e.moduleName,null),moduleDescription:a(e.moduleDescription,null),moduleDisabled:l(e.moduleDisabled)},function(e){var t={agentId:i(e.agentId,null),agentName:a(e.agentName,null),agentAlias:a(e.agentAlias,null),agentDescription:a(e.agentDescription,null),agentAddress:a(e.agentAddress,null),agentDisabled:l(e.agentDisabled)};return null!=e.metaconsoleId?r({metaconsoleId:e.metaconsoleId},t):t}(e))}function h(e){var t={linkedLayoutStatusType:"default"};switch(e.linkedLayoutStatusType){case"weight":var n=i(e.linkedLayoutStatusTypeWeight,null);if(null==n)throw new TypeError("invalid status calculation properties.");e.linkedLayoutStatusTypeWeight&&(t={linkedLayoutStatusType:"weight",linkedLayoutStatusTypeWeight:n});break;case"service":var o=i(e.linkedLayoutStatusTypeWarningThreshold,null),s=i(e.linkedLayoutStatusTypeCriticalThreshold,null);if(null==o||null==s)throw new TypeError("invalid status calculation properties.");t={linkedLayoutStatusType:"service",linkedLayoutStatusTypeWarningThreshold:o,linkedLayoutStatusTypeCriticalThreshold:s}}return r({linkedLayoutId:i(e.linkedLayoutId,null),linkedLayoutNodeId:i(e.linkedLayoutNodeId,null)},t)}function m
/*!
* Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
2021-08-09 09:55:11 +02:00
var r={prefix:"fas",iconName:"list-alt",icon:[512,512,[],"f022","M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"]},i={prefix:"fas",iconName:"pencil-alt",icon:[512,512,[],"f303","M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"]},o={prefix:"fas",iconName:"plus-circle",icon:[512,512,[],"f055","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]},s={prefix:"fas",iconName:"trash-alt",icon:[448,512,[],"f2ed","M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return eventsHistoryPropsDecoder}));var _lib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_Item__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),__extends=(extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),extendStatics,__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eventsHistoryPropsDecoder(e){if(Object(_lib__WEBPACK_IMPORTED_MODULE_0__.s)(e.html)&&Object(_lib__WEBPACK_IMPORTED_MODULE_0__.s)(e.encodedHtml))throw new TypeError("missing html content.");return __assign(__assign(__assign({},Object(_Item__WEBPACK_IMPORTED_MODULE_1__.b)(e)),{type:14,maxTime:Object(_lib__WEBPACK_IMPORTED_MODULE_0__.n)(e.maxTime,null),legendColor:e.legendColor,html:Object(_lib__WEBPACK_IMPORTED_MODULE_0__.s)(e.html)?Object(_lib__WEBPACK_IMPORTED_MODULE_0__.d)(e.encodedHtml):e.html}),Object(_lib__WEBPACK_IMPORTED_MODULE_0__.j)(e))}var EventsHistory=function(_super){function EventsHistory(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(EventsHistory,_super),EventsHistory.prototype.createDomElement=function(){var element=document.createElement("div");element.className="events-history",element.innerHTML=this.props.html,!0!==this.props.agentDisabled&&!0!==this.props.moduleDisabled||(element.style.opacity="0.2");for(var scripts=element.getElementsByTagName("script"),_loop_1=function(i){0===scripts[i].src.length&&setTimeout((function(){try{eval(scripts[i].innerHTML.trim())}catch(e){}}),0)},
//# sourceMappingURL=vc.main.min.js.map