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

2 lines
155 KiB
JavaScript
Raw Normal View History

2019-09-22 20:35:51 +02:00
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}([function(t,e,n){"use strict";n.d(e,"p",function(){return l}),n.d(e,"o",function(){return c}),n.d(e,"v",function(){return u}),n.d(e,"m",function(){return p}),n.d(e,"n",function(){return h}),n.d(e,"r",function(){return _}),n.d(e,"u",function(){return m}),n.d(e,"l",function(){return f}),n.d(e,"k",function(){return v}),n.d(e,"j",function(){return b}),n.d(e,"s",function(){return y}),n.d(e,"e",function(){return g}),n.d(e,"h",function(){return E}),n.d(e,"i",function(){return x}),n.d(e,"t",function(){return w}),n.d(e,"d",function(){return C}),n.d(e,"a",function(){return I}),n.d(e,"b",function(){return M}),n.d(e,"w",function(){return k}),n.d(e,"g",function(){return T}),n.d(e,"q",function(){return j}),n.d(e,"f",function(){return A}),n.d(e,"c",function(){return P});var i=n(10),r=n.n(i),a=n(4),o=n(5),s=(n(13),function(){return(s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)});function l(t,e){return"number"==typeof t?t:"string"==typeof t&&t.length>0&&!isNaN(parseInt(t))?parseInt(t):e}function c(t,e){return"number"==typeof t?t:"string"==typeof t&&t.length>0&&!isNaN(parseFloat(t))?parseFloat(t):e}function u(t){return null==t||0===t.length}function p(t,e){return"string"==typeof t&&t.length>0?t:e}function h(t){return"boolean"==typeof t?t:"number"==typeof t?t>0:"string"==typeof t&&("1"===t||"true"===t)}function d(t,e,n){void 0===n&&(n=" "),"number"==typeof t&&(t=""+t),"number"==typeof n&&(n=""+n);var i=e-t.length;if(0===i)return t;if(i<0)return t.substr(Math.abs(i));if(i===n.length)return""+n+t;if(i<n.length)return""+n.substring(0,i)+t;for(var r=Math.floor(i/n.length),a=i-n.length*r,o="",s=0;s<r;s++)o+=n;return 0===a?""+o+t:""+o+n.substring(0,a)+t}function _(t){return{x:l(t.x,0),y:l(t.y,0)}}function m(t){if(null==t.width||isNaN(parseInt(t.width))||null==t.height||isNaN(parseInt(t.height)))throw new TypeError("invalid size.");return{width:parseInt(t.width),height:parseInt(t.height)}}function f(t){return s({moduleId:l(t.moduleId,null),moduleName:p(t.moduleName,null),moduleDescription:p(t.moduleDescription,null)},function(t){var e={agentId:l(t.agentId,null),agentName:p(t.agentName,null),agentAlias:p(t.agentAlias,null),agentDescription:p(t.agentDescription,null),agentAddress:p(t.agentAddress,null)};return null!=t.metaconsoleId?s({metaconsoleId:t.metaconsoleId},e):e}(t))}function v(t){var e={linkedLayoutStatusType:"default"};switch(t.linkedLayoutStatusType){case"weight":var n=l(t.linkedLayoutStatusTypeWeight,null);if(null==n)throw new TypeError("invalid status calculation properties.");t.linkedLayoutStatusTypeWeight&&(e={linkedLayoutStatusType:"weight",linkedLayoutStatusTypeWeight:n});break;case"service":var i=l(t.linkedLayoutStatusTypeWarningThreshold,null),r=l(t.linkedLayoutStatusTypeCriticalThreshold,null);if(null==i||null==r)throw new TypeError("invalid status calculation properties.");e={linkedLayoutStatusType:"service",linkedLayoutStatusTypeWarningThreshold:i,linkedLayoutStatusTypeCriticalThreshold:r}}return s({linkedLayoutId:l(t.linkedLayoutId,null),linkedLayoutNodeId:l(t.linkedLayoutNodeId,null)},e)}func
//# sourceMappingURL=vc.main.min.js.map